jodit 4.6.19 → 4.7.3

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +248 -4
  4. package/es2015/jodit.js +35172 -37099
  5. package/es2015/jodit.min.js +248 -4
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +44 -74
  8. package/es2015/plugins/debug/debug.min.js +5 -4
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +616 -714
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -4
  12. package/es2018/jodit.fat.min.js +248 -4
  13. package/es2018/jodit.min.js +248 -4
  14. package/es2018/plugins/debug/debug.min.js +5 -4
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -4
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +262 -4
  18. package/es2021/jodit.js +34762 -36981
  19. package/es2021/jodit.min.js +262 -4
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +42 -72
  22. package/es2021/plugins/debug/debug.min.js +5 -4
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +614 -712
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -4
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +262 -4
  28. package/es2021.en/jodit.js +33513 -35465
  29. package/es2021.en/jodit.min.js +262 -4
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +42 -72
  32. package/es2021.en/plugins/debug/debug.min.js +5 -4
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +318 -347
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -4
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -4
  38. package/es5/jodit.js +42977 -39182
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -4
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +152 -163
  43. package/es5/plugins/debug/debug.min.js +2 -4
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +755 -777
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -4
  47. package/es5/polyfills.fat.min.js +8 -0
  48. package/es5/{415.js → polyfills.js} +177 -5
  49. package/es5/polyfills.min.js +8 -0
  50. package/esm/config.js +3 -0
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/helpers/utils/assert.js +4 -0
  53. package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
  54. package/esm/core/view/view.d.ts +1 -1
  55. package/esm/core/view/view.js +1 -1
  56. package/esm/jodit.js +6 -1
  57. package/esm/modules/dialog/dialog.js +5 -5
  58. package/esm/modules/status-bar/status-bar.d.ts +1 -1
  59. package/esm/plugins/tab/cases/on-tab-inside-li.js +1 -1
  60. package/esm/tsconfig.json +1 -1
  61. package/package.json +3 -5
  62. package/types/core/ui/form/inputs/input/input.d.ts +1 -0
  63. package/types/core/view/view.d.ts +1 -1
  64. package/types/modules/status-bar/status-bar.d.ts +1 -1
  65. package/types/tsconfig.json +1 -1
  66. package/es2018/jodit.css +0 -5386
  67. package/es2018/jodit.js +0 -45274
  68. package/es2018/plugins/debug/debug.css +0 -53
  69. package/es2018/plugins/debug/debug.js +0 -236
  70. package/es2018/plugins/speech-recognize/speech-recognize.css +0 -43
  71. package/es2018/plugins/speech-recognize/speech-recognize.js +0 -1199
  72. package/es5/415.fat.min.js +0 -10
  73. package/es5/415.min.js +0 -10
  74. package/es5/5.fat.min.js +0 -10
  75. package/es5/5.js +0 -76
  76. package/es5/5.min.js +0 -10
  77. package/esm/polyfills.js +0 -54
@@ -1,10 +1,268 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.6.19
4
+ * Version: v4.7.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
-
9
-
10
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],e);else{var s="object"==typeof exports?e(require("{}")):e(t["{}"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(t){return function(){var e={140(t,e,s){"use strict";s.d(e,{V(){return C}});var i=s(31635),r=s(77753),n=s(17352),o=s(22664),a=s(66927),l=s(50025),c=s(65147),h=s(63915),u=s(58597),d=s(14961),p=s(36115),m=(s(70265),s(9979)),g=s(31859),f=s(62994),v=s(18043),_=s(80004),b=s(75889),y=s(83797),w=s(10274);let C=class t extends d.T{className(){return"FileBrowser"}get dataProvider(){return(0,y.S)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[],s=[];this.state.activeElements.forEach((t=>{const i=t.fileURL;i&&(e.push(i),s.push(t.isImage||!1))})),this.close();const i={baseurl:"",files:e,isImages:s};(0,c.isFunction)(t)&&t(i),this.close()}return!1}}get _dialog(){const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach((e=>t.events.on(t,e,(()=>this.e.fire(e))))),t.setSize(this.o.width,this.o.height),t}get storage(){return h.wc.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){t&&!(0,c.isAbortError)(t)&&((0,c.isString)(t)||(t=t.message),(0,c.isString)(t)&&(0,c.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise(((e,s)=>{if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let i=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",(()=>{const e=(new Date).getTime();n.EMULATE_DBLCLICK_TIMEOUT>e-i&&this.onSelect(t)(),i=e})).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const r=this.c.div();this.toolbar?.appendTo(r),this.__updateToolbarButtons(),this._dialog.open(this.browser,r),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.r)(this).then(e,s).finally((()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")}))})).catch((t=>{if(!(0,c.isAbortError)(t)&&!n.IS_PROD)throw t}))}__getButtons(){return(this.o.buttons??[]).filter((t=>{if(!(0,c.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0}))}initUploader(t){const e=this,s=t?.options?.uploader,i=(0,c.ConfigProto)(s||{},p.T.defaultOptions.uploader),r=()=>(0,m.f)(this);e.uploader=e.getInstance("Uploader",i),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,r,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),e.e.on("bindUploader.filebrowser",(t=>{e.uploader.bind(t,r,e.errorHandler)}))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new w.V(this),this.files=new w.Q(this),this.state=(0,l.sH)({currentPath:"",currentSource:b.o,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,c.isAbortError)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(t);const e=this;e.options=(0,c.ConfigProto)(t||{},p.T.defaultOptions.filebrowser),e.browser.component=this,e.container=e.browser,e.o.showFoldersPanel&&e.browser.appendChild(e.tree.container),e.browser.appendChild(e.files.container),e.browser.appendChild(e.status_line),v.c.call(e),f.nW.call(e),_.r.call(e),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,c.ConfigProto)(this.options[t],this.o.ajax))}));const{storeView:s,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},o=s&&this.storage.get("view");e.state.view=o&&null==this.o.view?"list"===o?"list":"tiles":"list"===e.o.view?"list":"tiles",e.files.setMod("view",e.state.view);const a=i&&e.storage.get("sortBy");if(a){const t=a.split("-");e.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else e.state.sortBy=e.o.sortBy||"changed-desc";if(n){const t=e.storage.get("currentPath"),s=e.storage.get("currentSource");e.state.currentPath=t??"",e.state.currentSource=s??""}e.initUploader(e),e.setStatus(r.f.ready)}destruct(){this.isInDestruct||((0,o.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){const t=this.__getButtons();((t,e)=>{if(t.length!==e.length)return!1;for(let s=0;t.length>s;s++)if(t[s]!==e[s])return!1;return!0})(this.__prevButtons,t)||(this.__prevButtons=t,this.toolbar?.build(t))}};(0,i.Cg)([o.cache],C.prototype,"dataProvider",null),(0,i.Cg)([o.cache],C.prototype,"_dialog",null),(0,i.Cg)([o.cache],C.prototype,"storage",null),(0,i.Cg)([o.autobind],C.prototype,"status",null),(0,i.Cg)([o.autobind],C.prototype,"open",null),(0,i.Cg)([(0,a.w)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,i.Cg)([(0,o.derive)(u.z)],C)},223(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},225(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(71274),c=s(26150),h=s(38322),u=s(29866);s(50248);class d extends u.k{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.C)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",(t=>{t?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const t=this.j;if(t.o.readonly)return;let e=0,s=0;const i=t.s.current(),r=i&&o.J.closest(i,o.J.isBlock,t.editor)||t.editor,n=t.ew.getComputedStyle(r),a=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:c}=t.editor;if(o.J.isElement(c)&&!(0,l.r)(c)){const i=t.ew.getComputedStyle(c);e=parseInt(i.getPropertyValue("margin-top"),10),s=parseInt(i.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height");(0,h.A)(this.placeholderElm,{display:"block",textAlign:n.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(n.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(n.getPropertyValue("margin-left"),10),s)})}hide(){o.J.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===r.MODE_WYSIWYG&&(t=>{if(!t.firstChild)return!0;const e=t.firstChild;if(r.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;const s=o.J.next(e,(t=>t&&!o.J.isEmptyTextNode(t)),t);return o.J.isText(e)&&!s?o.J.isEmptyTextNode(e):!s&&o.J.each(e,(t=>!(o.J.isLeaf(t)||o.J.isList(t))&&(o.J.isEmpty(t)||o.J.isTag(t,"br"))))})(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}}(0,i.Cg)([(0,n.debounce)((t=>t.defaultTimeout/10),!0)],d.prototype,"toggle",null),a.fg.add("placeholder",d)},449(t,e,s){"use strict";s.d(e,{N(){return r},k(){return i}});const i=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},641(t,e,s){"use strict";s.d(e,{$(){return n},l(){return r}});var i=s(55186);function r(t,e,s){let i=t.getBoundingClientRect(),r=t;const n=i.top,o=i.height;for(;r&&r!==e&&r.parentNode;){if(r=r.parentNode,i=r.getBoundingClientRect(),n>i.bottom)return!1;if(i.top>=n+o)return!1}return(s.documentElement&&s.documentElement.clientHeight||0)>=n}function n(t,e,s){i.J.isHTMLElement(t)&&!r(t,e,s)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),r(t,e,s)||t.scrollIntoView())}},926(t,e,s){"use strict";s.d(e,{r(){return r}});var i=s(55186);function r(t,e,s,r,n,o){return i.J.isText(e)&&!e.nodeValue?(e===o&&t.s.isCollapsed()&&t.s.setCursorAfter(e),i.J.safeRemove(e),!0):s}},928(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},931(t,e,s){"use strict";s.d(e,{I(){return n}}),s(17352);var i=s(65147),r=s(38322);class n{static getIcon(t){return/<svg/i.test(t)?t:n.icons[t]||n.icons[t.replace(/-/g,"_")]||n.icons[t.replace(/_/g,"-")]||n.icons[(0,i.camelCase)(t)]||n.icons[(0,i.kebabCase)(t)]||n.icons[t.toLowerCase()]}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){if(!e)return;let s;const{name:i,iconURL:o,fill:a}=e,l=i.replace(/[^a-zA-Z0-9]/g,"_");let c;/<svg/.test(i)||(c=t.o.getIcon?.(i,l));const h=`${i}${o}${a}${c??""}`;if(t.o.cache&&this.__cache.has(h))return this.__cache.get(h)?.cloneNode(!0);if(o)s=t.c.span(),(0,r.A)(s,"backgroundImage","url("+o.replace("{basePath}",t?.basePath||"")+")");else{const e=c||n.get(i,"")||t.o.extraIcons?.[i];e&&(s=t.c.fromHTML(e.trim()),/^<svg/i.test(i)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,t.o.cache&&this.__cache.set(h,s.cloneNode(!0))),s}}n.icons={},n.__cache=new Map},1239(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(56298),o=s(71005);s(20797);class a extends o.k{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,s){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:s??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}}(0,i.Cg)([r.autobind],a.prototype,"onCommand",null),n.fg.add("orderedList",a)},1540(t,e,s){"use strict";s.d(e,{$(){return c}});var i,r=s(31635),n=s(24767),o=s(26150),a=s(69198),l=s(84103);let c=i=class t extends a.t{className(){return"UISelect"}createContainer(t){const e=super.createContainer(t),{j:s}=this,{nativeInput:i}=this,r=()=>s.create.element("option");if(void 0!==t.placeholder){const e=r();e.value="",e.text=s.i18n(t.placeholder),i.add(e)}return t.options?.forEach((t=>{const e=r();e.value=""+t.value,e.text=s.i18n(t.text),i.add(e)})),t.size&&t.size>0&&(0,o.C)(i,"size",t.size),t.multiple&&(0,o.C)(i,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.O.required),this.validators.add(l.U.m))}constructor(t,e){super(t,e),this.state={...i.defaultState},Object.assign(this.state,e)}};c.defaultState={...a.t.defaultState,options:[],size:1,multiple:!1},c=i=(0,r.Cg)([n.s],c)},1677(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(29866);s(63400);const h=!r.IS_ES_NEXT&&r.IS_IE;class u extends c.k{constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)},this.addSticky=t=>{this.__isToolbarStuck||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,l.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,l.css)(this.__dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.__isToolbarStuck&&((0,l.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",(()=>this.__isToolbarStuck))}__onScroll(){const{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;const e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,s=(0,l.offset)(t.container,t,t.od,!0),i=t.getMode()===r.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>s.top&&s.top+s.height>e+t.o.toolbarStickyOffset&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===i)return;const n=t.toolbarContainer;n&&(i?this.addSticky(n):this.removeSticky(n)),t.e.fire("toggleSticky",i)}__isMobile(){const{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){o.J.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}(0,i.Cg)([(0,n.throttle)()],u.prototype,"__onScroll",null),a.fg.add("sticky",u)},1916(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},1963(t,e,s){"use strict";s.d(e,{C(){return r}});var i=s(69052);function r(...t){return e=>{const s=e.prototype;for(let e=0;t.length>e;e++){const r=t[e],n=Object.getOwnPropertyNames(r.prototype);for(let t=0;n.length>t;t++){const e=n[t],o=Object.getOwnPropertyDescriptor(r.prototype,e);null!=o&&(0,i.T)(o.value)&&!(0,i.T)(s[e])&&Object.defineProperty(s,e,{enumerable:!0,configurable:!0,writable:!0,value(...t){return o.value.call(this,...t)}})}}}}},1992(t,e,s){"use strict";s.d(e,{b(){return n}});var i=s(65147),r=s(76134);function n(t,e,s,n,o){let a;if((0,i.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new r.p(e,s,n,o);break}default:a=new r.S(e,s,n,o)}return a.init(e),a.onReadyAlways((()=>{a.setReadOnly(e.o.readonly)})),a}},2461(t,e,s){"use strict";function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}s.d(e,{E(){return i}})},2533(t,e,s){"use strict";var i=s(17352),r=s(55186),n=s(56298),o=s(65147),a=s(11648);const l=new Set([i.KEY_TAB,i.KEY_LEFT,i.KEY_RIGHT,i.KEY_UP,i.KEY_DOWN]);n.fg.add("tableKeyboardNavigation",(t=>{t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(e=>{const{key:s}=e,n=((t,e)=>{if(!l.has(e))return;const s=t.s.current();if(!s)return;const n=r.J.up(s,r.J.isCell,t.editor);if(!n)return;const{range:a}=t.s;if(e!==i.KEY_TAB&&s!==n){const t=e===i.KEY_RIGHT||e===i.KEY_DOWN,l=(0,o.call)(t?r.J.next:r.J.prev,s,(t=>e===i.KEY_UP||e===i.KEY_DOWN?r.J.isTag(t,"br"):!!t),n);if(!t&&(l||e!==i.KEY_UP&&r.J.isText(s)&&0!==a.startOffset)||t&&(l||e!==i.KEY_DOWN&&r.J.isText(s)&&s.nodeValue&&a.startOffset!==s.nodeValue.length))return}return n})(t,s);if(!n)return;const c=t.getInstance(a.X,t.o),h=r.J.closest(n,"table",t.editor);let u=null;const d=s===i.KEY_LEFT||e.shiftKey,p=()=>(0,o.call)(d?r.J.prev:r.J.next,n,r.J.isCell,h);switch(s){case i.KEY_TAB:case i.KEY_LEFT:u=p(),u||(c.appendRow(h,!!d&&h.querySelector("tr"),!d),u=p());break;case i.KEY_UP:case i.KEY_DOWN:{const t=c.formalMatrix(h),[e,r]=c.formalCoordinate(h,n);s===i.KEY_UP?void 0!==t[e-1]&&(u=t[e-1][r]):void 0!==t[e+1]&&(u=t[e+1][r])}}if(u){if(t.e.fire("hidePopup hideResizer"),u.firstChild)s===i.KEY_TAB?t.s.select(u,!0):t.s.setCursorIn(u,s===i.KEY_RIGHT||s===i.KEY_DOWN);else{const e=t.createInside.element("br");u.appendChild(e),t.s.setCursorBefore(e)}return t.synchronizeValues(),!1}}))}))},2788(t,e,s){"use strict";s.d(e,{M(){return i}});class i{constructor(){this.data=new Map}set(t,e){return this.data.set(t,e),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}}},2805(t,e,s){"use strict";s(36115).T.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},3006(t,e,s){"use strict";s.d(e,{c(){return l}});var i,r=s(31635),n=s(22664),o=s(55186),a=s(69198);let l=i=class t extends a.t{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(t,e){super(t,{...e,type:"checkbox"}),this.state={...i.defaultState},Object.assign(this.state,e)}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),o.J.after(this.nativeInput,t)):o.J.safeRemove(t)}};l.defaultState={...a.t.defaultState,checked:!1,switch:!1},(0,r.Cg)([(0,n.watch)("state.checked"),(0,n.hook)("ready")],l.prototype,"onChangeChecked",null),(0,r.Cg)([(0,n.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,r.Cg)([(0,n.watch)("state.switch"),(0,n.hook)("ready")],l.prototype,"onChangeSwitch",null),l=i=(0,r.Cg)([n.component],l)},3101(t,e,s){"use strict";s.d(e,{L(){return a}});var i=s(71842),r=s(26150),n=s(61001),o=s(80394);function a(t,e,s){const a=((t,e,s)=>t.elementIsBlock?i.J.up(e,(t=>i.J.isBlock(t)&&!i.J.isTag(t,l)),s.editor)||(0,o.Y)(t,e,s):((0,r.C)(e,"size",null),e))(t,e,s);return t.elementIsList?(0,n.z)(t,a,s):i.J.replace(a,t.element,s.createInside,!0)}const l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},3258(t,e,s){"use strict";s.d(e,{I(){return m}});var i=s(31635),r=s(64567),n=s(22664),o=s(71842),a=s(65147),l=s(35265),c=s(57023),h=s(931),u=s(80071),d=s(97394),p=s(8809);let m=class t extends l.lD{className(){return"ToolbarButton"}get toolbar(){return this.closest(d.Q)}update(){const{control:t,state:e}=this,s=this.closest(d.Q);if(!s)return;const i=t.value?.(s.jodit,this);void 0!==i&&(e.value=i),e.disabled=this.__calculateDisabledStatus(s),e.activated=this.__calculateActivatedStatus(s),t.update?.(s.jodit,this)}__calculateActivatedStatus(t){return!((0,a.isJoditObject)(this.j)&&!this.j.editorIsActive||!this.control.isActive?.(this.j,this)&&(!t||!t.shouldBeActive(this)))}__calculateDisabledStatus(t){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&!this.control.isDisabled?.(this.j,this)&&(!t||!t.shouldBeDisabled(this)))}onChangeActivated(){(0,a.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,a.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,a.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const t=this.componentName,e=this.j.c.span(t),s=super.createContainer();(0,a.attr)(e,"role","listitem"),s.classList.remove(t),s.classList.add(t+"__button"),Object.defineProperty(s,"component",{value:this}),e.appendChild(s);const i=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${h.I.get("chevron")}</span>`);return s.appendChild(i),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):o.J.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const t=this.state.disabled?"disabled":null;(0,a.attr)(this.trigger,"disabled",t),(0,a.attr)(this.button,"disabled",t),(0,a.attr)(this.container,"disabled",t)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.state={...(0,l.ue)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const i=this.getElm("button");this.button=i,Object.defineProperty(i,"component",{value:this,configurable:!0});const n=this.getElm("trigger");this.trigger=n,n.remove(),t.e.on([this.button,this.trigger],"mousedown",(t=>t.preventDefault())),this.onAction(this.onClick),this.hookStatus(r.f.ready,(()=>{this.__initFromControl(),this.update()})),e.mods&&Object.keys(e.mods).forEach((t=>{e.mods&&this.setMod(t,e.mods[t])}))}__initFromControl(){const{control:t,state:e}=this;this.updateSize(),e.name=t.name;const{textIcons:s}=this.j.o;if(!0===s||(0,a.isFunction)(s)&&s(t.name)||t.template)e.icon=(0,l.ue)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{const s=t.icon||t.name;e.icon.name=h.I.exists(s)||this.j.o.extraIcons?.[s]?s:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,a.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.__closePopup();const{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,a.isFunction)(e.popup)){const s=this.openPopup();s.parentElement=this;try{if(!1!==this.j.e.fire((0,a.camelCase)(`before-${e.name}-open-popup`),this.target,e,s)){const t=this.toolbar?.getTarget(this)??this.target??null,i=e.popup(this.j,t,this.__closePopup,this);i?s.setContent((0,a.isString)(i)?this.j.c.fromHTML(i):i).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,a.camelCase)(`after-${e.name}-open-popup`),s.container)}}__openControlList(t){const e=this.jodit.options.controls??{},s=t=>(0,c.x)(t,e),i=t.list,r=this.openPopup(),n=(0,p.$K)(this.j);r.parentElement=this,n.parentElement=r,n.mode="vertical";const o=(e,i)=>{if((0,a.isString)(i)&&s(i))return{name:""+i,...s(i)};if((0,a.isString)(e)&&s(e))return{name:""+e,...s(e),..."object"==typeof i?i:{}};(t=>(0,a.isPlainObject)(t)&&"title"in t&&"value"in t)(e)&&(i=e.value,e=e.title);const{childTemplate:r}=t,n={name:""+e,template:r&&((t,e,s)=>r(t,e,s,this)),exec:t.childExec?(e,s,i)=>t.childExec?.(e,s,{...i,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,i]};return(0,a.isString)(i)&&(n.text=i),n};n.build((0,a.isArray)(i)?i.map(o):(0,a.keys)(i,!1).map((t=>o(t,i[t]))),this.target),r.setContent(n).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&o.J.isNode(t.target)&&(o.J.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new u.z(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){const{control:e}=this;if((0,a.isFunction)(e.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.exec(this.j,s,{control:e,originalEvent:t,button:this});if(!1!==i&&!0!==i&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==i)return}return e.list?this.__openControlList(e):(0,a.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,a.call)((0,a.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}};(0,i.Cg)([n.cacheHTML],m.prototype,"createContainer",null),(0,i.Cg)([(0,n.watch)("state.hasTrigger",{immediately:!1})],m.prototype,"onChangeHasTrigger",null),(0,i.Cg)([(0,n.watch)("trigger:click")],m.prototype,"onTriggerClick",null),(0,i.Cg)([n.autobind],m.prototype,"onOutsideClick",null),(0,i.Cg)([n.autobind],m.prototype,"__closePopup",null),m=(0,i.Cg)([n.component],m)},3392(t,e,s){"use strict";s.d(e,{i(){return r}});var i=s(55186);const r=(t,e)=>`${i.J.isCell(e)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`},3459(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(71842),o=s(56298),a=s(65147),l=s(71005),c=s(53048),h=s(96369),u=s(8809);s(15776);class d extends l.k{constructor(){super(...arguments),this.type=null,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter((t=>!this.isExcludedTarget(t)))}get popup(){return new h.z(this.jodit,!1)}get toolbar(){return(0,u.$K)(this.jodit,this.popup)}onClick(t){const e=this.elmsList,s=n.J.isTag(t,"img")?t:n.J.closest(t,e,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,a.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(t,e,s){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||s!==this.previousTarget){this.previousTarget=s;const t=this.j.o.popup[e];let i;i=(0,a.isFunction)(t)?t(this.j,s,this.popup.close):t,(0,a.isArray)(i)&&(this.toolbar.build(i,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,i=this.toolbar.container),this.popup.setContent(i),this.type=e}return this.popup.open(t),!0}hidePopup(t){!this.popup.isOpened||(0,a.isString)(t)&&t!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){const e=this.j.o.popup[t.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!e||this.isExcludedTarget(t))}isExcludedTarget(t){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map((t=>t.toLowerCase())).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",(e=>{if(this.toolbar===e){const e=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter((t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name))).filter((t=>{const s=(0,a.isString)(t)?t:t.name;return s&&"|"!==s&&"\n"!==s&&!e.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((t,e,s)=>{this.showPopup(e,s||((0,a.isString)(t)?t:t.nodeName),(0,a.isString)(t)?void 0:t)})).on("mousedown keydown",this.onSelectionStart).on("change",(()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)})).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&c.D$.closestElement(t.target,h.z))return;const{snapRange:e}=this,{range:s}=this.j.s;e&&!s.collapsed&&s.startContainer===e.startContainer&&s.startOffset===e.startOffset&&s.endContainer===e.endContainer&&s.endOffset===e.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const t="selection",e=this.j.s.sel,s=this.j.s.range;e?.isCollapsed||this.isSelectedTarget(s)?this.type===t&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),t)}isSelectedTarget(t){const e=t.startContainer;return n.J.isElement(e)&&e===t.endContainer&&n.J.isTag(e.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const t=this.elmsList;return t.map((t=>(0,a.camelCase)("click_"+t))).concat(t.map((t=>(0,a.camelCase)("touchstart_"+t)))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup((()=>{if(t)return t;const{range:e}=this.j.s;return e.getBoundingClientRect()}),"toolbar")}}d.requires=["select"],(0,i.Cg)([r.cache],d.prototype,"popup",null),(0,i.Cg)([r.cache],d.prototype,"toolbar",null),(0,i.Cg)([r.autobind],d.prototype,"onClick",null),(0,i.Cg)([(0,r.wait)((t=>!t.j.isLocked))],d.prototype,"showPopup",null),(0,i.Cg)([(0,r.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),r.autobind],d.prototype,"hidePopup",null),(0,i.Cg)([(0,r.watch)(":outsideClick")],d.prototype,"onOutsideClick",null),(0,i.Cg)([r.autobind],d.prototype,"onSelectionStart",null),(0,i.Cg)([r.autobind],d.prototype,"onSelectionEnd",null),(0,i.Cg)([(0,r.debounce)((t=>t.defaultTimeout))],d.prototype,"onSelectionChange",null),(0,i.Cg)([r.autobind],d.prototype,"showInlineToolbar",null),o.fg.add("inlinePopup",d)},3593(t,e,s){"use strict";s.r(e),s.d(e,{allowAttributes(){return i.f},fillEmptyParagraph(){return r.f},removeEmptyTextNode(){return n.r},removeInvTextNodes(){return o.u},replaceOldTags(){return a.H},sanitizeAttributes(){return l.L},tryRemoveNode(){return c.k}});var i=s(5232),r=s(63443),n=s(926),o=s(67431),a=s(81199),l=s(32782),c=s(32014)},3843(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},3947(t,e,s){"use strict";s.d(e,{E(){return n}});var i=s(12461),r=s(98253);function n(t){return(0,r.K)(t)&&(0,i.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},4909(t,e,s){"use strict";s.d(e,{Z(){return l}});var i=s(77753),r=s(55186),n=s(69052),o=s(26150),a=s(53048);const l=(t,e,s)=>{const l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),h=t.c.div("jodit-tabs__buttons");(0,o.C)(h,{role:"tablist","aria-orientation":"horizontal"});const u={},d=[];let p="";l.appendChild(h),l.appendChild(c);const m=t=>{u[t]&&(d.forEach((t=>{t.state.activated=!1})),Object.values(u).forEach((({tab:t})=>t.classList.remove("jodit-tab_active"))),u[t].button.state.activated=!0,u[t].tab.classList.add("jodit-tab_active"))};if(e.forEach((({icon:l,name:g,content:f})=>{const v=t.c.div("jodit-tab");(0,o.C)(v,{role:"tabpanel"});const _=(0,a.$n)(t,l||g,g);_.state.role="tab",t.e.on(_.container,"pointerdown",(t=>t.preventDefault())),p||(p=g),h.appendChild(_.container),d.push(_),_.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.T)(f)?v.appendChild(t.c.div("jodit-tab_empty")):v.appendChild(i.uA.isInstanceOf(f,a.D$)?f.container:f),c.appendChild(v),_.onAction((()=>(m(g),(0,n.T)(f)&&!r.J.isElement(f)&&f.call(t),s&&(s.activeTab=g),!1))),u[g]={button:_,tab:v}})),Object.values(u).forEach((({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"})),m(s&&s.activeTab&&u[s.activeTab]?s.activeTab:p),s){let t=s.activeTab;Object.defineProperty(s,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,m(e)}})}return l}},4960(t,e,s){"use strict";s.d(e,{G(){return r}});var i=s(17352);function r(t){const e=i.globalDocument.createElement("div");return e.textContent=t,e.innerHTML}},5232(t,e,s){"use strict";s.d(e,{f(){return r}});var i=s(55186);function r(t,e,s,r){if(r&&i.J.isElement(e)&&!0!==r[e.nodeName]){const t=e.attributes;if(t&&t.length){const i=[];for(let s=0;t.length>s;s+=1){const n=r[e.nodeName][t[s].name];(!n||!0!==n&&n!==t[s].value)&&i.push(t[s].name)}i.length&&(s=!0),i.forEach((t=>{e.removeAttribute(t)}))}}return s}},5298(t,e,s){"use strict";s.d(e,{W(){return n}});var i=s(17352),r=s(55186);function n(t,e,s){let n=r.J.findSibling(e,s),o=r.J.findSibling(e,!s);for(;r.J.isElement(n)&&!r.J.isTag(n,i.INSEPARABLE_TAGS)&&r.J.isContentEditable(n,t.editor)&&(!o||!r.J.closest(e,r.J.isElement,t.editor));)s||!n.firstChild?n.appendChild(e):r.J.before(n.firstChild,e),n=r.J.sibling(e,s),o=r.J.sibling(e,!s)}},5454(t,e,s){"use strict";s.d(e,{F(){return l}});var i,r=s(31635),n=s(22664),o=s(24767),a=s(69198);let l=i=class t extends a.t{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}constructor(t,e){super(t,e),this.state={...i.defaultState},Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}onChangeStateSize(){const{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}};l.defaultState={...a.t.defaultState,size:5,resizable:!0},(0,r.Cg)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=i=(0,r.Cg)([o.s],l)},5533(t,e,s){"use strict";s.d(e,{p(){return o}});var i=s(17352),r=s(65147),n=s(53380);class o extends n.F{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)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){const t=this.instance.session.getLength(),e=[];let s=0;for(let i=0;t>i;i++)s+=this.getLastColumnIndex(i),i>0&&(s+=1),e[i]=s;return e}getRowColumnIndices(t){const e=this.getLastColumnIndices();if(e[0]>=t)return{row:0,column:t};let s=1;for(let i=1;e.length>i;i++)t>e[i]&&(s=i+1);return{row:s,column:t-e[s-1]-1}}setSelectionRangeIndices(t,e){const s=this.getRowColumnIndices(t),i=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:s,end:i})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){const e=()=>{if(void 0!==this.instance||!this.aceExists())return;const e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e),this.instance=t.ow.ace.edit(e),"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()!==i.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.throttle((()=>{if(t.isInDestruct||t.getMode()===i.MODE_WYSIWYG)return;const e=this.instance.isFocused();this.instance.setOption("maxLines","auto"!==t.o.height?t.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize(),e&&this.focus()}),2*this.j.defaultTimeout);t.e.on(t,"resize",s).on("afterResize afterSetMode",s),s(),this.onReady()};t.e.on("afterSetMode",(()=>{t.getRealMode()!==i.MODE_SOURCE&&t.getMode()!==i.MODE_SPLIT||(this.fromWYSIWYG(),e())})),e(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then((()=>{t.isInDestruct||e()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,r.isString)(e)&&(t=e)}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(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){const e=this.instance.selection.getCursor(),s=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:s},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){const{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()}})}}},5549(t,e,s){"use strict";s.d(e,{U(){return l}});var i=s(26150),r=s(74260),n=s(33201),o=s(85079),a=s(17880);async function l(t,e){const{sourceImage:s,values:l}=e;return(0,r.g)(s,l),l.borderRadius=parseInt(s.style.borderRadius||"0",10)||0,l.id=(0,i.C)(s,"id")||"",l.imageTitle=(0,i.C)(s,"title")||"",l.imageAlt=(0,i.C)(s,"alt")||"",l.style=(0,i.C)(s,"style")||"",l.classes=((0,i.C)(s,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,o.E)(s,l,e),(0,n.X)(e,t,l),l.imageSrc=(0,i.C)(s,"src")||"",(0,a.P)(s,l,e)}},5832(t,e,s){"use strict";s.d(e,{IB(){return i.I},P1(){return r.P},q4(){return n.q}});var i=s(3258),r=s(49405),n=s(48053)},5854(t,e,s){"use strict";s.d(e,{F(){return l}});var i=s(55186),r=s(82317),n=s(69052),o=s(92032),a=s(58006);function l(t,e,s,l="jodit-dialog_alert"){(0,n.T)(e)&&(s=e,e=void 0);const c=this instanceof a.l?this:new a.l({closeOnClickOverlay:!0}),h=c.c.div(l),u=(0,o.$n)(c,"ok","Ok");return(0,r._)(t).forEach((t=>{h.appendChild(i.J.isNode(t)?t:c.c.fromHTML(t))})),u.onAction((()=>{s&&(0,n.T)(s)&&!1===s(c)||c.close()})),c.setFooter([u]),c.open(h,e||"&nbsp;",!0,!0),u.focus(),c}},5929(t,e,s){"use strict";var i=s(71842),r=s(56298),n=s(65147),o=s(59101),a=s(71005);class l extends a.k{afterInit(t){t.e.on("afterCommand.delete",(t=>{"delete"===t&&this.__afterDeleteCommand()})),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){const t=this.j,e=t.s.current();if(e&&i.J.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!((0,o.Bq)(t.editor.textContent||"")||t.editor.querySelector("img,table,jodit,iframe,hr")||e&&i.J.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){const{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();const e=t.s.range;e.deleteContents();const s=t.createInside.fake();e.insertNode(s);const r=i.J.findSibling(s,!0),n=i.J.findSibling(s,!1);return this.__moveContentInLeftSibling(s,r,n),e.setStartBefore(s),e.collapse(!0),this.__moveCursorInEditableSibling(t,r,s,e),this.__addBrInEmptyBlock(s,n,e),i.J.safeRemove(s),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,s){e=this.__defineRightLeftBox(e),!i.J.isList(s)&&!i.J.isTag(s,"table")&&i.J.isBlock(s)&&i.J.isBlock(e)&&(i.J.append(e,t),i.J.moveContent(s,e),i.J.safeRemove(s)),i.J.isList(s)&&i.J.isLeaf(s.firstElementChild)&&i.J.isEmpty(s.firstElementChild)&&i.J.safeRemove(s.firstElementChild)}__defineRightLeftBox(t){if(!i.J.isList(t))return t;let e=t.lastElementChild;return i.J.isLeaf(e)||(e=this.j.createInside.element("li"),i.J.append(t,e)),e}__addBrInEmptyBlock(t,e,s){const r=this.j;if(t.isConnected&&i.J.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){const e=r.createInside.element("br");i.J.after(t,e),s.setStartBefore(e),s.collapse(!0)}if(i.J.isTag(e,"table")){const t=(0,n.$$)("td,th",e).shift();i.J.isCell(t)&&i.J.isEmpty(t)&&i.J.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,s,r){if(!e||!i.J.isText(e)){const e=i.J.closest(s,i.J.isBlock,t.editor)??t.editor,n=i.J.prev(s,i.J.isText,e);n&&(r.setStartAfter(n),r.collapse(!0),i.J.safeRemove(s))}}}l.requires=["backspace"],r.fg.add("deleteCommand",l)},6110(t,e,s){"use strict";s.d(e,{l(){return o}});var i=s(17352),r=s(55186),n=s(641);function o(t,e,s){const o=!!r.J.closest(t,["pre","blockquote"],e.editor),l=!o&&r.J.closest(t,["td","th"],e.editor);if(e.o.enter.toLowerCase()===i.BR.toLowerCase()||l||s&&!o||!s&&o){if(o&&(t=>{const e=a(a(t));return!!e&&(r.J.safeRemove(a(t)),r.J.safeRemove(e),!0)})(t))return!1;const s=e.createInside.element("br");if(r.J.before(t,s),!r.J.findNotEmptySibling(s,!1)){const e=s.cloneNode();r.J.after(s,e),r.J.before(e,t)}return(0,n.$)(s,e.editor,e.ed),!0}return!1}function a(t){if(!t)return!1;const e=r.J.findSibling(t,!0);return!(!e||!r.J.isTag(e,"br"))&&e}},6295(t,e,s){"use strict";var i=s(26396);e.A=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},i.M]},6455(t,e,s){"use strict";s.d(e,{U(){return h}});var i,r=s(31635),n=s(37474),o=s(22664),a=s(55186),l=s(65147),c=s(29780);let h=i=class t extends c.D{className(){return"UIGroup"}get allChildren(){const t=[],e=[...this.elements];for(;e.length;){const s=e.shift();(0,l.isArray)(s)?e.push(...s):n.u.isInstanceOf(s,i)?e.push(...s.elements):s&&t.push(s)}return t}update(){this.elements.forEach((t=>t.update())),this.setMod("size",this.buttonSize)}append(t,e){if((0,l.isArray)(t)){if("number"==typeof e)throw Error("You can not use index when append array of elements");return t.forEach((t=>this.append(t,e))),this}const s=t;let i;if("number"==typeof e?(i=Math.min(Math.max(0,e),this.elements.length),this.elements.splice(i,0,s)):this.elements.push(s),s.name&&s.container.classList.add(this.getFullElName(s.name)),e&&"string"==typeof e){const t=this.getElm(e);if(null==t)throw Error("Element does not exist");t.appendChild(s.container)}else this.appendChildToContainer(s.container,i);return s.parentElement=this,this}afterSetMod(t,e){this.syncMod&&this.elements.forEach((s=>s.setMod(t,e)))}appendChildToContainer(t,e){void 0===e||0>e||e>this.elements.length-1||null==this.container.children[e]?this.container.appendChild(t):this.container.insertBefore(t,this.container.children[e])}remove(t){const e=this.elements.indexOf(t);return-1!==e&&(this.elements.splice(e,1),a.J.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach((t=>t.destruct())),this.elements.length=0,this}constructor(t,e,s){super(t,s),this.options=s,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach((t=>t&&this.append(t))),s?.name&&(this.name=s.name)}destruct(){return this.clear(),super.destruct()}};(0,r.Cg)([(0,o.watch)("buttonSize")],h.prototype,"update",null),h=i=(0,r.Cg)([o.component],h)},6589(t,e,s){"use strict";s.d(e,{As(){return a.A},Bq(){return l.Bq},Gd(){return l.Gd},Hp(){return r.H},N(){return o.N},Ru(){return n.R},Z2(){return c.Z},gj(){return l.gj},kW(){return o.k},nv(){return n.n},xQ(){return i.x}});var i=s(83260),r=s(67975),n=s(91093),o=s(449),a=s(28616),l=s(59101),c=s(10467)},6857(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(29866);s(69505);const h="__jodit-resizer_binded";class u extends c.k{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">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),o.J.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,l.offset)(this.element,this.j,this.j.ed),s=parseInt(this.rect.style.left||"0",10),i=e.top-t.top,r=e.left-t.left;parseInt(this.rect.style.top||"0",10)===i&&s===r&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,l.css)(this.rect,{top:i,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(s)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(t){(0,l.$$)("div",this.rect).forEach((e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))})),a.RR.on("hideHelpers",this.hide),t.e.on("readonly",(t=>{t&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))})),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let e=t.target;const{editor:s,options:{allowResizeTags:i}}=this.j;for(;e&&e!==s;){if(o.J.isTag(e,i))return this.__bind(e),void this.onClickElement(e);e=e.parentNode}}__afterInsertImage(t){if(this.j.o.resizer.forImageChangeAttributes)return;const e=(0,l.attr)(t,"width");e&&!(0,l.css)(t,"width",!0)&&((0,l.css)(t,"width",e),(0,l.attr)(t,"width",null))}addEventListeners(){const t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(t=>{this.isShown&&t.key===r.KEY_DELETE&&this.element&&!o.J.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,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;const{j:s}=this;s.e.fire("hidePopup"),s.lock(this.LOCK_KEY),s.e.on(s.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{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){if(!this.element)return;let e,s;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){const i=this.getWorkplacePosition();e=t.clientX+i.left-this.startX,s=t.clientY+i.top-this.startY}else e=this.pointerX-this.startX,s=this.pointerY-this.startY;const i=this.handle.className;let r=0,n=0;const a=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===a||a&&o.J.isTag(this.element,a))?(e?(r=this.width+(i.match(/left/)?-1:1)*e,n=Math.round(r/this.ratio)):(n=this.height+(i.match(/top/)?-1:1)*s,r=Math.round(n*this.ratio)),r>(0,l.innerWidth)(this.j.editor,this.j.ow)&&(r=(0,l.innerWidth)(this.j.editor,this.j.ow),n=Math.round(r/this.ratio))):(r=this.width+(i.match(/left/)?-1:1)*e,n=this.height+(i.match(/top/)?-1:1)*s),r>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>r?r:"100%"),n>this.j.o.resizer.min_height&&this.applySize(this.element,"height",n),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===r.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,e,s){const i=o.J.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;i&&(0,l.attr)(t,e,s),i&&!t.style[e]||(0,l.css)(t,e,s)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(o.J.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){if(!o.J.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,l.dataBind)(t,h))return;let e;if((0,l.dataBind)(t,h,!0),o.J.isTag(t,"iframe")){const s=t;o.J.isHTMLElement(t.parentNode)&&(0,l.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,l.attr)(e,"style",(0,l.attr)(t,"style")),(0,l.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",(()=>{(0,l.attr)(e,"data-jodit-wrapper_active",!0)})),t=e),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",(()=>{s.setAttribute("width",t.offsetWidth+"px"),s.setAttribute("height",t.offsetHeight+"px")}))}this.j.e.on(t,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(t,"mousedown",(e=>{o.J.isTag(t,"img")&&e.preventDefault()}))}showSizeViewer(t,e){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>t||this.sizeViewer.offsetHeight>e?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,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")),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,o.J.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.RR.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}}(0,i.Cg)([(0,n.watch)(":click")],u.prototype,"onEditorClick",null),(0,i.Cg)([(0,n.watch)(":afterInsertImage")],u.prototype,"__afterInsertImage",null),(0,i.Cg)([n.autobind],u.prototype,"onStartResizing",null),(0,i.Cg)([n.autobind],u.prototype,"onEndResizing",null),(0,i.Cg)([n.autobind],u.prototype,"onResize",null),(0,i.Cg)([n.autobind],u.prototype,"onKeyDown",null),(0,i.Cg)([n.autobind],u.prototype,"onKeyUp",null),(0,i.Cg)([n.autobind],u.prototype,"onClickOutside",null),(0,i.Cg)([(0,n.watch)(":change")],u.prototype,"__onChangeEditor",null),(0,i.Cg)([n.autobind],u.prototype,"__bind",null),(0,i.Cg)([n.autobind,(0,n.watch)(":hideResizer")],u.prototype,"hide",null),a.fg.add("resizer",u)},6939(t,e,s){"use strict";s.d(e,{m(){return r}});var i=s(17352);function r(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{const e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}const e=i.globalDocument.createElement("a");return e.href=t,!!e.hostname}},7920(t,e,s){"use strict";s.d(e,{r(){return i}});const i=(t,e)=>/^[0-9]+$/.test(""+t)?t+e:""+t},7982(t,e,s){"use strict";s.d(e,{v(){return r}});var i=s(37474);class r extends i.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},8136(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},8453(t,e,s){"use strict";s.d(e,{p(){return a}});var i=s(31635),r=s(22664),n=s(55186),o=s(43431);class a extends o.h{setWork(t){return this.isWorked&&this.break(),this.workNodes=n.J.eachGen(t,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch((()=>null))}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){this.isWorked=!0;let t=0;const e=this.options.timeoutChunkSize??50;for(;!this.isFinished&&e>=t;){const e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&(this.emit("visit",t)??!1)}}(0,i.Cg)([r.autobind],a.prototype,"__workPerform",null)},8757(t,e,s){"use strict";s.d(e,{x(){return a}});var i=s(17352),r=s(83260),n=s(12043),o=s(10494);class a{isApplied(t,e){const s=this.__applyMap.get(t);return!!s&&s[e]}setApplied(t,e){const s=this.__applyMap.get(t)??{};s[e]=!0,this.__applyMap.set(t,s)}get elementIsList(){return!(!this.options.element||!i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!(!this.options.element||!i.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!(!this.options.element||this.options.element===this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}constructor(t){this.options=t,this.__applyMap=new WeakMap}apply(t){const{hooks:e}=this.options,s=e?Object.keys(e):[];try{s.forEach((s=>{t.e.on((0,r.x)(n.ar+"_"+s),e[s])})),(0,o.O)(t,this)}finally{s.forEach((s=>{t.e.off((0,r.x)(n.ar+"_"+s),e[s])})),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}}},8809(t,e,s){"use strict";s.d(e,{$K(){return c},BJ(){return h},RR(){return u}});var i=s(65147),r=s(3258),n=s(49405),o=s(48053),a=s(97394),l=s(90428);function c(t,e){const s=(0,i.isJoditObject)(t)?new l.b(t):new a.Q(t);return t.o.textIcons&&s.container.classList.add("jodit_text_icons"),e&&(s.parentElement=e),t.o.toolbarButtonSize&&(s.buttonSize=t.o.toolbarButtonSize),s}function h(t,e,s=null){if((0,i.isFunction)(e.getContent))return new n.P(t,e,s);const o=new r.I(t,e,s);return o.state.tabIndex=t.o.allowTabNavigation?0:-1,o}function u(t,e,s=null){return new o.q(t,e,s)}},9103(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},9117(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(56298),a=s(71005);s(87238);class l extends a.k{afterInit(t){const{limitWords:e,limitChars:s}=t.o;if(t&&(e||s)){let e=null;t.e.off(".limit").on("beforePaste.limit",(()=>{e=t.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1}))}}shouldPreventInsertHTML(t){return(!t||!(r.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){const{jodit:e}=this,{limitWords:s,limitChars:i}=e.o,r=this.__splitWords(e.o.limitHTML?e.value:e.text);if(s&&c(r.length,s,t))return e.e.fire("denyWords.limit limit.limit"),!0;const n=!(!i||!c(r.join("").length,i,t));return n&&e.e.fire("denyChars.limit limit.limit"),n}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){const{jodit:s}=this;this.__shouldDenyInput(!0)&&(s.value=e)}__splitWords(t){return t.replace((0,r.INVISIBLE_SPACE_REG_EXP)(),"").split((0,r.SPACE_REG_EXP)()).filter((t=>t.length))}beforeDestruct(t){t.e.off(".limit")}}function c(t,e,s){return s?t>e:t>=e}(0,i.Cg)([n.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,i.Cg)([n.autobind],l.prototype,"checkPreventChanging",null),o.fg.add("limit",l)},9443(t,e,s){"use strict";var i=s(56298),r=s(83044),n=s(38322);s(70061);const o=new Set;i.fg.add("fullsize",(t=>{t.registerButton({name:"fullsize"});let e=!1,s=0,i=0,a=!1;const l=()=>{const{container:r,events:o}=t;o&&(e?(s=(0,n.A)(r,"height",!0),i=(0,n.A)(r,"width",!0),(0,n.A)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth}),a=!0):a&&(0,n.A)(r,{height:s||"auto",width:i||"auto"}))},c=s=>{const{container:i,events:a}=t;if(i){if(void 0===s&&(s=!i.classList.contains("jodit_fullsize")),t.setMod("fullsize",s),t.o.fullsize=s,e=s,i.classList.toggle("jodit_fullsize",s),t.toolbar&&((0,r.y)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,n.A)(t.toolbar.container,"width","auto")),s?o.add(i):o.delete(i),t.o.globalFullSize&&(1===o.size&&s||0===o.size&&!s)){let t=i.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",s),t=t.parentNode;l()}a.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",l),t.e.on("afterInit afterOpen",(()=>{t.toggleFullSize(t?.options?.fullsize)})).on("toggleFullSize",c).on("beforeDestruct",(()=>{e&&c(!1)})).on("beforeDestruct",(()=>{t.events&&t.e.off(t.ow,"resize",l)}))}))},9645(t,e,s){"use strict";s.d(e,{G(){return n},n(){return o}});var i=s(2461),r=s(59101);const n=t=>/^[-+]?[0-9.]+(px)?$/.test(""+t)?parseFloat(""+t):t,o=t=>(0,i.E)(t)?t?t+"px":""+t:(t=(0,r.Bq)(t),/^[0-9]+$/.test(t)?t+"px":t)},9810(t,e,s){"use strict";function i(t){return"boolean"==typeof t}s.d(e,{L(){return i}})},9823(t,e,s){"use strict";s.d(e,{AH(){return c.A},Bo(){return C.B},CE(){return h.C},E6(){return d.E},Et(){return v.E},Gp(){return u.n4},Kg(){return C.K},Lm(){return o.L},Mj(){return m.M},P5(){return a.P},Qd(){return b.Q},Rd(){return I.R},Tn(){return l.T},a3(){return f.a},cy(){return n.c},hH(){return T.h},kC(){return i.k},kO(){return u.kO},kf(){return _.k},l6(){return x.l},mv(){return E.m},n4(){return a.n},pV(){return u.pV},rg(){return g.r},uV(){return S.u},vM(){return w.v},y0(){return p.y},yL(){return y.y},zf(){return r.z}});var i=s(78479),r=s(99951),n=s(37923),o=s(9810),a=s(69810),l=s(69052),c=s(53701),h=s(21811),u=s(10058),d=s(3947),p=s(83044),m=s(82201),g=s(71274),f=s(34796),v=s(2461),_=s(12461),b=s(25376),y=s(92039),w=s(53470),C=s(98253),E=s(6939),S=s(59082),T=s(12041),I=s(35642),x=s(76776)},9979(t,e,s){"use strict";function i(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then((e=>{e&&(t.state.elements=e,t.state.activeElements=[])})).catch(t.status).finally((()=>t.files.setMod("loading",!1)))}s.d(e,{f(){return i}})},10004(t,e,s){"use strict";s.d(e,{X(){return r},d(){return n}});var i=s(42448);s(28712);const r="JoditEventDefaultNamespace";class n{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,s){const i=this.get(t,e);if(i)for(let t=0;i.length>t;t+=1)if(i[t].originalCallback===s)return t;return!1}namespaces(t=!1){const e=(0,i.$)(this.__store.keys());return t?e.filter((t=>t!==r)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,s,i=!1){let r=this.__store.get(e);r||(r={},this.__store.set(e,r)),void 0===r[t]&&(r[t]=[]),i?r[t].unshift(s):r[t].push(s)}clear(){this.__store.clear()}clearEvents(t,e){const s=this.__store.get(t);s&&s[e]&&(delete s[e],Object.keys(s).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}},10025(t,e,s){"use strict";function i(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}s.d(e,{H(){return i}})},10058(t,e,s){"use strict";s.d(e,{kO(){return l},n4(){return o},pV(){return a}});var i=s(55186),r=s(69052),n=s(35642);function o(t){return!(0,n.R)(t)&&(0,r.T)(t.init)}function a(t){return!(0,n.R)(t)&&(0,r.T)(t.destruct)}function l(t){return!(0,n.R)(t)&&i.J.isElement(t.container)}},10067(t,e,s){"use strict";s.d(e,{k(){return a}});var i=s(55186),r=s(65147),n=s(53048),o=s(4909);const a=(t,e,s,a,c=!0)=>{let h;const u=[];if(e.upload&&t.o.uploader&&(t.o.uploader.url||t.o.uploader.insertImageAsBase64URI)){const s=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(c?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(s,(s=>{const i=(0,r.isFunction)(e.upload)?e.upload:t.o.uploader.defaultHandlerSuccess;(0,r.isFunction)(i)&&i.call(t,s),t.e.fire("closeAllPopups")}),(e=>{t.message.error(e.message),t.e.fire("closeAllPopups")})),u.push({icon:"upload",name:"Upload",content:s})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&u.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){const o=new n.lD(t,{type:"submit",variant:"primary",text:"Insert"}),a=new n.XV(t,[new n.tS(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new n.tS(t,{name:"text",label:"Alternative text"}),new n.Yh(t,[o])]);h=null,!s||i.J.isText(s)||i.J.isComment(s)||!i.J.isTag(s,"img")&&!(0,r.$$)("img",s).length||(h="IMG"===s.tagName?s:(0,r.$$)("img",s)[0],l(a.container,"input[name=url]",(0,r.attr)(h,"src")),l(a.container,"input[name=text]",(0,r.attr)(h,"alt")),o.state.text="Update"),s&&i.J.isTag(s,"a")&&(l(a.container,"input[name=url]",(0,r.attr)(s,"href")),l(a.container,"input[name=text]",(0,r.attr)(s,"title")),o.state.text="Update"),a.onSubmit((s=>{(0,r.isFunction)(e.url)&&e.url.call(t,s.url,s.text)})),u.push({icon:"link",name:"URL",content:a.container})}return(0,o.Z)(t,u)};function l(t,e,s){const i=t.querySelector(e);return i?(s&&(i.value=s),i.value):""}},10274(t,e,s){"use strict";s.d(e,{Q(){return i.Q},V(){return r.V}});var i=s(96025),r=s(73307)},10466(t,e,s){"use strict";s.d(e,{E(){return i}}),s(17352),s(28712);class i{setState(t){this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(t,e){this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}dispatch(t,e){const s=this.transitions[this.getState()][t];if(s){const t=s.call(this,e);return this.setState(t.next),t}throw Error(`invalid action: ${this.getState()}.${""+t}`)}}},10467(t,e,s){"use strict";function i(t){return t.length?t[0].toUpperCase()+t.substring(1):""}s.d(e,{Z(){return i}})},10494(t,e,s){"use strict";s.d(e,{O(){return o}});var i=s(97621),r=s(12043),n=s(37649);function o(t,e){const{s,editor:o}=t;o.firstChild?.normalize();const a=s.fakes(),l=t.s.wrapInTagGen(a);let c=l.next();if(c.done)return;let h={collapsed:s.isCollapsed(),mode:r.DI,element:c.value,next:n.x.START,jodit:t,style:e};for(;c&&!c.done;){const t=new i.EF(n.x.START,n.g);for(h.element=c.value;t.getState()!==n.x.END;)h=t.dispatch("exec",h);c=l.next()}s.restoreFakes(a)}},11131(t,e,s){"use strict";s.d(e,{Y(){return r}});var i=s(42448);function r(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,i.$)(e).map((t=>{try{return(0,i.$)(t.cssRules)}catch{}return[]})).flat().filter((e=>{try{return!(!e||!t.matches(e.selectorText))}catch{}return!1}));class s{constructor(s,i,r){this.css={};const n=r||{},o=e=>{const s=e.selectorText.split(",").map((t=>t.trim())).sort().join(",");0==!!this.css[s]&&(this.css[s]={});const i=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;i.length>e;e++){if(!i[e])continue;const r=i[e].split(":");r[0]=r[0].trim(),r[1]=r[1].trim(),this.css[s][r[0]]=r[1].replace(/var\(([^)]+)\)/g,((e,s)=>{const[i,r]=s.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(i.trim())||r||e).trim()}))}};(()=>{const r=s.innerHeight,a=i.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(r>t.getBoundingClientRect().top||n.scanFullPage){const s=e(t);if(s)for(let t=0;s.length>t;t++)o(s[t])}}})()}generateCSS(){let t="";for(const e in this.css)if(!/:not\(/.test(e)){t+=e+" { ";for(const s in this.css[e])t+=s+": "+this.css[e][s]+"; ";t+="}\n"}return t}}try{return new s(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},11133(t,e,s){"use strict";s.d(e,{u(){return r}});var i=s(65147);class r{constructor(t){this.data=t,Object.keys(t).forEach((e=>{this[e]=t[e]}))}static create(t){return t instanceof r?t:new r(t)}get path(){return(0,i.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=this.time||""+(new Date).getTime(),{thumbIsAbsolute:e,source:s,thumb:r,file:n}=this.data,o=r||n;return e&&o?o:(0,i.normalizeUrl)(s.baseurl,s.path,o||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data;const{file:e,fileIsAbsolute:s,source:r}=this.data;return void 0!==e&&(t=e),s&&t?t:(0,i.normalizeUrl)(r.baseurl,r.path,t||"")}get time(){const{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){const t=this.data;let e=[t.sourceName,t.name,t.file,this.time,t.thumb].join("_");return e=e.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),e}toJSON(){return this.data}}},11648(t,e,s){"use strict";s.d(e,{X(){return u}});var i=s(31635),r=s(77753),n=s(17352),o=s(22664),a=s(71842),l=s(56298),c=s(65147);const h=new WeakMap;class u extends r.vG{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}__recalculateStyles(){const t=(0,l.My)(this.j,u,"style",!0),e=[];this.selected.forEach((t=>{const s=(0,c.cssPath)(t);s&&e.push(s)})),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();const e=a.J.closest(t,"table",this.j.editor);if(e){const s=u.__selectedByTable.get(e)||new Set;s.add(t),u.__selectedByTable.set(e,s)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();const e=a.J.closest(t,"table",this.j.editor);if(e){const s=u.__selectedByTable.get(e);s&&(s.delete(t),s.size||u.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){const e=u.__selectedByTable.get(t);return e?(0,c.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return u.__getRowsCount(t)}static __getColumnsCount(t){return u.__formalMatrix(t).reduce(((t,e)=>Math.max(t,e.length)),0)}getColumnsCount(t){return u.__getColumnsCount(t)}static __formalMatrix(t,e){const s=[[]],i=(0,c.toArray)(t.rows),r=(t,i)=>{void 0===s[i]&&(s[i]=[]);const r=t.colSpan,n=t.rowSpan;let o,a,l=0;for(;s[i][l];)l+=1;for(a=0;n>a;a+=1)for(o=0;r>o;o+=1){if(void 0===s[i+a]&&(s[i+a]=[]),e&&!1===e(t,i+a,l+o,r,n))return!1;s[i+a][l+o]=t}};for(let t=0;i.length>t;t+=1){const e=(0,c.toArray)(i[t].cells);for(let i=0;e.length>i;i+=1)if(!1===r(e[i],t))return s}return s}formalMatrix(t,e){return u.__formalMatrix(t,e)}static __formalCoordinate(t,e,s=!1){let i=0,r=0,n=1,o=1;return u.__formalMatrix(t,((t,a,l,c,h)=>{if(e===t)return i=a,r=l,n=c||1,o=h||1,s&&(r+=(c||1)-1,i+=(h||1)-1),!1})),[i,r,n,o]}formalCoordinate(t,e,s=!1){return u.__formalCoordinate(t,e,s)}static __appendRow(t,e,s,i){let r;if(e)r=e.cloneNode(!0),(0,c.$$)("td,th",e).forEach((t=>{const e=(0,c.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){const s=parseInt(e,10)-1;(0,c.attr)(t,"rowspan",s>1?s:null)}})),(0,c.$$)("td,th",r).forEach((t=>{t.innerHTML=""}));else{const e=u.__getColumnsCount(t);r=i.element("tr");for(let t=0;e>t;t+=1)r.appendChild(i.element("td"))}s&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(r,e.nextSibling):!s&&e?e.parentNode&&e.parentNode.insertBefore(r,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(r)}appendRow(t,e,s){return u.__appendRow(t,e,s,this.j.createInside)}static __removeRow(t,e){const s=u.__formalMatrix(t);let i;const r=t.rows[e];s[e].forEach(((n,o)=>{if(i=!1,0>e-1||s[e-1][o]!==n)if(s[e+1]&&s[e+1][o]===n){if(n.parentNode===r&&n.parentNode.nextSibling){i=!0;let r=o+1;for(;s[e+1][r]===n;)r+=1;const l=a.J.next(n.parentNode,(t=>a.J.isTag(t,"tr")),t);l&&(s[e+1][r]?l.insertBefore(n,s[e+1][r]):l.appendChild(n))}}else a.J.safeRemove(n);else i=!0;if(i&&(n.parentNode===r||n!==s[e][o-1])){const t=n.rowSpan;(0,c.attr)(n,"rowspan",t-1>1?t-1:null)}})),a.J.safeRemove(r)}removeRow(t,e){return u.__removeRow(t,e)}appendColumn(t,e,s=!0){const i=u.__formalMatrix(t);if(!s&&a.J.isCell(e.previousElementSibling))return this.appendColumn(t,e.previousElementSibling,!0);const r=s?e.cellIndex+((e.colSpan||1)-1):e.cellIndex,n=s?r+1:r;for(let t=0;i.length>t;){const e=i[t];if(e[r]!==e[n]||r===n){const t=this.j.createInside.element("td");s?a.J.after(e[r],t):a.J.before(e[r],t),e[r].rowSpan>1&&(t.rowSpan=e[r].rowSpan)}else e[r].colSpan+=1;t+=e[r].rowSpan||1}}static __removeColumn(t,e){const s=u.__formalMatrix(t);let i;s.forEach(((t,r)=>{const n=t[e];if(i=!1,0>e-1||s[r][e-1]!==n?t.length>e+1&&s[r][e+1]===n?i=!0:a.J.safeRemove(n):i=!0,i&&(0>r-1||n!==s[r-1][e])){const t=n.colSpan;(0,c.attr)(n,"colspan",t-1>1?""+(t-1):null)}}))}removeColumn(t,e){return u.__removeColumn(t,e)}static __getSelectedBound(t,e){const s=[[1/0,1/0],[0,0]],i=u.__formalMatrix(t);let r,n,o;for(r=0;i.length>r;r+=1)for(n=0;i[r]&&i[r].length>n;n+=1)e.includes(i[r][n])&&(s[0][0]=Math.min(r,s[0][0]),s[0][1]=Math.min(n,s[0][1]),s[1][0]=Math.max(r,s[1][0]),s[1][1]=Math.max(n,s[1][1]));for(r=s[0][0];s[1][0]>=r;r+=1)for(o=1,n=s[0][1];s[1][1]>=n;n+=1){for(;i[r]&&i[r][n-o]&&i[r][n]===i[r][n-o];)s[0][1]=Math.min(n-o,s[0][1]),s[1][1]=Math.max(n-o,s[1][1]),o+=1;for(o=1;i[r]&&i[r][n+o]&&i[r][n]===i[r][n+o];)s[0][1]=Math.min(n+o,s[0][1]),s[1][1]=Math.max(n+o,s[1][1]),o+=1;for(o=1;i[r-o]&&i[r][n]===i[r-o][n];)s[0][0]=Math.min(r-o,s[0][0]),s[1][0]=Math.max(r-o,s[1][0]),o+=1;for(o=1;i[r+o]&&i[r][n]===i[r+o][n];)s[0][0]=Math.min(r+o,s[0][0]),s[1][0]=Math.max(r+o,s[1][0]),o+=1}return s}getSelectedBound(t,e){return u.__getSelectedBound(t,e)}static __normalizeTable(t){const e=[],s=u.__formalMatrix(t);u.__removeExtraColspans(s,e),u.__removeExtraRowspans(s,e);for(let t=0;s.length>t;t+=1)for(let e=0;s[t].length>e;e+=1)void 0!==s[t][e]&&(s[t][e].hasAttribute("rowspan")&&1===s[t][e].rowSpan&&(0,c.attr)(s[t][e],"rowspan",null),s[t][e].hasAttribute("colspan")&&1===s[t][e].colSpan&&(0,c.attr)(s[t][e],"colspan",null),s[t][e].hasAttribute("class")&&!(0,c.attr)(s[t][e],"class")&&(0,c.attr)(s[t][e],"class",null));u.__unmark(e)}static __removeExtraColspans(t,e){for(let s=0;t[0].length>s;s+=1){let i=1e6,r=!1;for(let e=0;t.length>e;e+=1)if(void 0!==t[e][s]){if(2>t[e][s].colSpan){r=!0;break}i=Math.min(i,t[e][s].colSpan)}if(!r)for(let r=0;t.length>r;r+=1)void 0!==t[r][s]&&u.__mark(t[r][s],"colspan",t[r][s].colSpan-i+1,e)}}static __removeExtraRowspans(t,e){let s=0,i=0;for(s=0;t.length>s;s+=1){let r=1e6,n=!1;for(i=0;t[s].length>i;i+=1)if(void 0!==t[s][i]){if(2>t[s][i].rowSpan){n=!0;break}r=Math.min(r,t[s][i].rowSpan)}if(!n)for(i=0;t[s].length>i;i+=1)void 0!==t[s][i]&&u.__mark(t[s][i],"rowspan",t[s][i].rowSpan-r+1,e)}}normalizeTable(t){return u.__normalizeTable(t)}static __mergeSelected(t,e){const s=[],i=u.__getSelectedBound(t,u.__getSelectedCellsByTable(t));let r,o=0,l=null,h=0,p=0,m=0;const g=new Set,f=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(u.__formalMatrix(t,((t,n,a,v,_)=>{if(!(i[0][0]>n||n>i[1][0]||i[0][1]>a||a>i[1][1])){if(r=t,g.has(r))return;g.add(r),n===i[0][0]&&r.style.width&&(o+=r.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(t.innerHTML),v>1&&(p+=v-1),_>1&&(m+=_-1),l?(u.__mark(r,"remove",1,f),d(e).removeSelection(r)):(l=t,h=a)}})),p=i[1][1]-i[0][1]+1,m=i[1][0]-i[0][0]+1,l&&(p>1&&u.__mark(l,"colspan",p,f),m>1&&u.__mark(l,"rowspan",m,f),o&&(u.__mark(l,"width",(o/t.offsetWidth*100).toFixed(n.ACCURACY)+"%",f),h&&u.__setColumnWidthByDelta(t,h,0,!0,f)),l.innerHTML=s.join("<br/>"),d(e).addSelection(l),g.delete(l),u.__unmark(f),u.__normalizeTable(t),(0,c.toArray)(t.rows).forEach((t=>{t.cells.length||a.J.safeRemove(t)}))))}mergeSelected(t){return u.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let s,i,r,n,o;const l=[];u.__getSelectedCellsByTable(t).forEach((c=>{i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),r=e.createInside.element("tr"),s=u.__formalCoordinate(t,c),2>c.rowSpan?(u.__formalMatrix(t,((t,e,i)=>{s[0]===e&&s[1]!==i&&t!==c&&u.__mark(t,"rowspan",t.rowSpan+1,l)})),a.J.after(a.J.closest(c,"tr",t),r),r.appendChild(i)):(u.__mark(c,"rowspan",c.rowSpan-1,l),u.__formalMatrix(t,((e,i,r)=>{i>s[0]&&s[0]+c.rowSpan>i&&s[1]>r&&e.parentNode.rowIndex===i&&(o=e),i>s[0]&&e===c&&(n=t.rows[i])})),o?a.J.after(o,i):n.insertBefore(i,n.firstChild)),c.colSpan>1&&u.__mark(i,"colspan",c.colSpan,l),u.__unmark(l),d(e).removeSelection(c)})),this.__normalizeTable(t)}splitHorizontal(t){return u.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let s,i,r;const o=[];u.__getSelectedCellsByTable(t).forEach((l=>{s=u.__formalCoordinate(t,l),2>l.colSpan?u.__formalMatrix(t,((t,e,i)=>{s[1]===i&&s[0]!==e&&t!==l&&u.__mark(t,"colspan",t.colSpan+1,o)})):u.__mark(l,"colspan",l.colSpan-1,o),i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),l.rowSpan>1&&u.__mark(i,"rowspan",l.rowSpan,o);const c=l.offsetWidth;a.J.after(l,i),r=c/t.offsetWidth/2,u.__mark(l,"width",(100*r).toFixed(n.ACCURACY)+"%",o),u.__mark(i,"width",(100*r).toFixed(n.ACCURACY)+"%",o),u.__unmark(o),d(e).removeSelection(l)})),u.__normalizeTable(t)}splitVertical(t){return u.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,s,i,r){const o=u.__formalMatrix(t);let a=0;for(let i=0;o.length>i;i+=1){const l=o[i][e];if(1>=l.colSpan||1>=o.length){u.__mark(l,"width",((l.offsetWidth+s)/t.offsetWidth*100).toFixed(n.ACCURACY)+"%",r),a=i;break}}for(let t=a+1;o.length>t;t+=1)u.__mark(o[t][e],"width",null,r);i||u.__unmark(r)}setColumnWidthByDelta(t,e,s,i,r){return u.__setColumnWidthByDelta(t,e,s,i,r)}static __mark(t,e,s,i){i.push(t);const r=h.get(t)??{};r[e]=void 0===s?1:s,h.set(t,r)}static __unmark(t){t.forEach((t=>{const e=h.get(t);e&&(Object.keys(e).forEach((s=>{const i=e[s];switch(s){case"remove":a.J.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(i)&&i>1?i:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(i)&&i>1?i:null);break;case"width":null==i?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=""+i}delete e[s]})),h.delete(t))}))}}u.__selectedByTable=new WeakMap,(0,i.Cg)([(0,o.debounce)()],u.prototype,"__recalculateStyles",null);const d=t=>t.getInstance("Table",t.o)},11961(t,e,s){"use strict";s.d(e,{d(){return i.Ay}});var i=s(52201)},11995(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},no(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},ua(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},12041(t,e,s){"use strict";s.d(e,{h(){return r}});var i=s(69052);function r(t){return!!(t&&t instanceof Object&&(0,i.T)(t.constructor)&&t.isView)}},12043(t,e,s){"use strict";s.d(e,{Ag(){return o},DI(){return a},OJ(){return r},PL(){return n},Zk(){return i},ar(){return c},dj(){return l}});const i="wrap",r="unwrap",n="change",o="unset",a="initial",l="replace",c="commitStyle"},12461(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(98253);function r(t){if((0,i.K)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},13265(t,e,s){"use strict";s.d(e,{V(){return i}});const i=t=>t.split("/").reduce(((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t}),[]).join("/")+(t.endsWith("/")?"/":"")},13405(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(9810),c=s(29866),h=s(81781);class u extends c.k{afterInit(t){const e=t.o.enter.toLowerCase(),s=e===r.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=s?r.PARAGRAPH:e),t.registerCommand("enter",((t,e,s={})=>this.onEnter(s)))}onEnterKeyDown(t){if(t.key===r.KEY_ENTER){const e=this.j,s=e.e.fire("beforeEnter",t);return void 0!==s?s:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){const{jodit:e}=this,s=e.createInside.fake();try{o.J.safeInsertNode(e.s.range,s),(0,h.Mt)(e,s,["a"]);let i=(0,h.Dk)(s,e);const r=o.J.isLeaf(i);if((!r||t?.shiftKey)&&(0,h.lN)(s,e,t?.shiftKey))return!1;if(i||(0,h.tX)(s,e)||(i=(0,h.C1)(s,e)),!i)return(0,h.yh)(s,e,r?"li":e.o.enter),!1;if(!(0,h.bD)(s,e,i))return!1;if(r&&this.__isEmptyListLeaf(i))return(0,h.cf)(s,e,i),!1;(0,h.HS)(s,e,i)}finally{s.isConnected&&e.s.setCursorBefore(s),o.J.safeRemove(s)}}__isEmptyListLeaf(t){const e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.L)(e)?e:o.J.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,i.Cg)([(0,n.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),a.fg.add("enter",u)},13642(t,e,s){"use strict";s.d(e,{b(){return o}});var i=s(31635),r=s(24767),n=s(29780);let o=class t extends n.D{className(){return"UISpacer"}};o=(0,i.Cg)([r.s],o)},13676(t,e,s){"use strict";s.d(e,{D(){return a},M(){return o}});var i=s(95350),r=s(97369),n=(s(28712),s(70592));function o(t,e){return!t.attributes.length&&!(0,i.E)(e)||!(0,i.E)(e)||Object.keys(e).every((s=>"class"===s||"className"===s?t.classList.contains(e[s]):"style"===s?(0,n.g)(t,e[s]):(0,r.attr)(t,s)===e[s]))}function a(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every((t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value))}},13861(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(29866),h=(s(70674),s(90823));class u extends c.k{constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;const e=(0,l.getDataTransfer)(t),s=[e?.getData(r.TEXT_PLAIN),e?.getData(r.TEXT_HTML),e?.getData(r.TEXT_RTF)];for(const e of s)if((0,l.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:s[0],html:s[1],rtf:s[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){const e=(0,l.getDataTransfer)(t);let s=e?.getData(r.TEXT_HTML)||e?.getData(r.TEXT_PLAIN);if(e&&s&&""!==(0,l.trim)(s)){const i=this.j.e.fire("processPaste",t,s,(0,h.DI)(e));void 0!==i&&(s=i),((0,l.isString)(s)||o.J.isNode(s))&&this.__insertByType(t,s,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){const s=this.pasteStack.find((t=>t.html===e));if(s)return this.__insertByType(t,e,s.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const s=(0,h.PU)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(s=>{this._isDialogOpened=!1,this.__insertByType(t,e,s)}),this.j.o.pasteHTMLActionList);return s&&(this._isDialogOpened=!0,s.e.on("beforeClose",(()=>{this._isDialogOpened=!1}))),!0}__insertByType(t,e,s){if(this.pasteStack.push({html:e,action:s}),(0,l.isString)(e))switch(this.j.buffer.set(r.CLIPBOARD_ID,e),s){case r.INSERT_CLEAR_HTML:e=(0,l.cleanFromWord)(e);break;case r.INSERT_ONLY_TEXT:e=(0,l.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:e=(0,l.htmlspecialchars)(e);break;default:{const i=this.j.e.fire("onCustomPasteHTMLOption",s,e,t);"string"==typeof i&&(e=i)}}(0,h.sX)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,s){if(s===r.TEXT_PLAIN+";"&&!(0,l.isHTML)(e))return(0,l.nl2br)(e)}}(0,i.Cg)([n.autobind],u.prototype,"onPaste",null),(0,i.Cg)([n.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),a.fg.add("paste",u)},13917(t,e,s){"use strict";var i=s(17352),r=s(71842),n=s(56298),o=s(69052),a=s(71005),l=s(46602),c=(s(81982),s(90084)),h=s(89832);class u extends a.k{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,e="char"){const s=this.j,n=s.selection;if(n.isFocused()||n.focus(),(0,c.L)(s))return!1;const a=n.range,u=s.createInside.text(i.INVISIBLE_SPACE);try{if(r.J.safeInsertNode(a,u),!r.J.isOrContains(s.editor,u))return;if(s.e.fire("backSpaceBeforeCases",t,u))return!1;if((0,l.W8)(s,u,t),h.C.some((i=>{if((0,o.T)(i)&&i(s,u,t,e))return!0})))return!1}catch(t){throw t}finally{s.e.fire("backSpaceAfterDelete",t,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(t){const{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?r.J.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(r.J.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),r.J.safeRemove(t)}}u.requires=["hotkeys"],n.fg.add("backspace",u)},14006(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},14017(t){t.exports='<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>'},14221(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(65147),o=s(931),a=s(36115),l=s(17995),c=s.n(l);a.T.prototype.controls.about={exec(t){const e=t.dlg({closeOnClickOverlay:!0}),s=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(s("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${s("Jodit Editor")} v.${t.getVersion()}</div>\n\t\t\t\t\t<div>${s("License: %s",(0,n.isLicense)(t.o.license)?(0,n.normalizeLicense)(t.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${i.HOMEPAGE}" target="_blank">${i.HOMEPAGE}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${s("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${s("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${s("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,n.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:i.MODE_SOURCE+i.MODE_WYSIWYG},r.fg.add("about",(t=>{t.registerButton({name:"about",group:"info"})})),o.I.set("about",c())},14305(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},14367(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(71842),o=s(56298),a=s(98253),l=s(71005);s(2805);class c extends l.k{constructor(){super(...arguments),this.isSuitableStart=t=>n.J.isText(t)&&(0,a.K)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!n.J.isTemporary(t),this.isSuitable=t=>n.J.isText(t)||this.isNotWrapped(t),this.isNotWrapped=t=>n.J.isElement(t)&&!(n.J.isBlock(t)||n.J.isTag(t,this.j.o.wrapNodes.exclude))}afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,s=!1;for(;e;){if(e=h(e,t),this.isSuitableStart(e)){s||t.s.save(),s=!0;const i=t.createInside.element(t.o.enter);for(n.J.before(e,i);e&&this.isSuitable(e);){const t=e.nextSibling;i.appendChild(e),e=t}i.normalize(),e=i}e=e&&e.nextSibling}s&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){const{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;const s=t.createInside.element(t.o.enter),i=t.createInside.element("br");n.J.append(s,i),n.J.append(t.editor,s),t.s.isFocused()&&t.s.setCursorBefore(i),t.e.fire("internalChange")}}function h(t,e){let s=t,i=t;do{if(!n.J.isElement(i)||!n.J.isLeaf(i)||n.J.isList(i.parentElement))break;{const t=n.J.findNotEmptySibling(i,!1);n.J.isTag(s,"ul")?s.appendChild(i):s=n.J.wrap(i,"ul",e.createInside),i=t}}while(i);return s}(0,i.Cg)([r.autobind],c.prototype,"postProcessSetEditorValue",null),(0,i.Cg)([r.autobind],c.prototype,"preprocessInput",null),o.fg.add("wrapNodes",c)},14961(t,e,s){"use strict";s.d(e,{T(){return g}});var i=s(31635),r=s(64567),n=s(52201),o=s(66927),a=s(55186),l=s(32709),c=s(98253),h=s(58720),u=s(53048),d=s(39611),p=s(77782),m=s(8809);class g extends p.S{get toolbarContainer(){return this.o.fullsize||!(0,c.K)(this.o.toolbar)&&!a.J.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&a.J.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):(0,h.tI)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const t=this.o.buttons?(0,l.uM)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);const e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);const e=t.group??"other",s=this.groupToButtons[e];if(s){const i=s.indexOf(t.name);-1!==i&&s.splice(i,1),0===s.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map((t=>(0,d.i)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t))}constructor(t,e=!1){super(t,e),this.toolbar=(0,m.$K)(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.__tooltip=new u.SB(this),this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(r.f.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}(0,i.Cg)([(0,o.w)(":rebuildToolbar")],g.prototype,"buildToolbar",null),(0,i.Cg)([n.Ay],g.prototype,"beforeToolbarBuild",null)},15396(t,e,s){"use strict";s.d(e,{Zd(){return i.Z},eZ(){return o.e},hk(){return n.h},w5(){return r.w}});var i=s(60549),r=s(30526),n=s(20646),o=s(52306)},15776(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(97836),o=s(82558),a=s(6295),l=s(26396),c=s(58540),h=s(38681),u=s.n(h),d=s(64637),p=s.n(d),m=s(94190),g=s.n(m),f=s(51957),v=s.n(f),_=s(71940),b=s.n(_),y=s(43218),w=s.n(y),C=s(48007),E=s.n(C);r.T.prototype.toolbarInline=!0,r.T.prototype.toolbarInlineForSelection=!1,r.T.prototype.toolbarInlineDisableFor=[],r.T.prototype.toolbarInlineDisabledButtons=["source"],i.I.set("addcolumn",u()).set("addrow",p()).set("merge",g()).set("th",w()).set("splitg",v()).set("splitv",b()).set("th-list",E()),r.T.prototype.popup={a:n.A,img:l.A,cells:o.A,toolbar:c.A,jodit:a.A,iframe:a.A,"jodit-media":a.A,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},16113(t,e,s){"use strict";s.d(e,{Gq(){return n.G},HA(){return o.H},Kq(){return l.K},ZM(){return i.Z},t_(){return a.t},vn(){return a.v},wE(){return r.w}});var i=s(56176),r=s(94450),n=s(4960),o=s(10025),a=s(26328),l=s(61793)},16116(t,e,s){"use strict";s.d(e,{Kn(){return i.K},Zg(){return n.Z},kG(){return r.k}});var i=s(19633),r=s(10067),n=s(4909)},16841(t,e,s){"use strict";s.d(e,{J(){return n}});var i=s(98253),r=s(35642);function n(t,e){if(!(0,i.K)(t)||!t.length)return null;const s=t.split(".");let n=e;try{for(const t of s){if((0,r.R)(n[t]))return null;n=n[t]}}catch{return null}return(0,r.R)(n)?null:n}},17343(t,e,s){"use strict";var i=s(31635),r=(s(17352),s(22664)),n=s(71842),o=s(56298),a=s(65147),l=s(71005),c=(s(78593),s(78817)),h=s(63064);class u extends l.k{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new h.F(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=n.J.closest(t,n.J.isElement,this.j.editor);e||(e=n.J.prev(t,n.J.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,a.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let s=this[e];return s&&s.break(),s=new n.p(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=s,this.find(s,t).catch((t=>[]))}async findAndReplace(t){const e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let s=this.findCurrentIndexInRanges(e,this.j.s.range);-1===s&&(s=0);const i=e[s];if(i){try{const e=this.j.ed.createRange();e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),e.deleteContents();const r=this.j.createInside.text(this.ui.replace);n.J.safeInsertNode(e,r),(0,c.IJ)(this.j),this.j.s.setCursorAfter(r),this.tryScrollToElement(r),this.cache={},this.ui.currentIndex=s,await this.findAndSelect(t,!0).catch((t=>null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){const s=await this.findQueryBounds(t,"walker");if(!s.length)return!1;this.previousQuery===t&&(0,c.zy)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,c.IJ)(this.j),this.drawPromise=this.__drawSelectionRanges(s)),this.previousQuery=t;let i=this.ui.currentIndex-1;i=-1===i?0:e?i===s.length-1?0:i+1:0===i?s.length-1:i-1,this.ui.currentIndex=i+1;const r=s[i];if(r){const t=this.j.ed.createRange();try{t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),this.j.s.selectRange(t)}catch(t){}return this.tryScrollToElement(r.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex((t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset))}async isValidCache(t){return(await t).every((t=>t.startContainer.isConnected&&(t.startContainer.nodeValue?.length??0)>=t.startOffset&&t.endContainer.isConnected&&(t.endContainer.nodeValue?.length??0)>=t.endOffset))}async find(t,e){if(!e.length)return[];const s=this.cache[e];return s&&await this.isValidCache(s)?s:(this.cache[e]=this.j.async.promise((s=>{const i=new c.QN(this.j.o.search.fuzzySearch);t.on("break",(()=>{s([])})).on("visit",(t=>(n.J.isText(t)&&i.add(t),!1))).on("end",(()=>{s(i.ranges(e)??[])})).setWork(this.j.editor)})),this.cache[e])}__drawSelectionRanges(t){const{async:e,createInside:s,editor:i}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);const r=[...t];let n,o=0;return e.promise((t=>{const a=()=>{do{n=r.shift(),n&&(0,c._B)(this.j,n,r,s,i),o+=1}while(n&&5>=o);r.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()}))}onAfterGetValueFromEditor(t){t.value=(0,c.Tz)(t.value)}afterInit(t){if(t.o.useSearch){const e=this;t.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{(0,c.IJ)(t),this.ui.currentIndex=0,this.ui.count=0,this.cache={},t.focus()})).on("click",(()=>{this.ui.currentIndex=0,(0,c.IJ)(t)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",t.async.debounce((()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),t.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch((t=>{}))))).on("search.search",((t,s=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",s).catch((t=>{}))))),t.registerCommand("search",{exec(t,s,i=!0){return s&&e.findAndSelect(s,i).catch((t=>{})),!1}}).registerCommand("openSearchDialog",{exec(t,s){return e.ui.open(s),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec(s,i,r){return t.o.readonly||e.ui.open(i,r,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){(0,r.cached)(this,"ui")?.destruct(),t.e.off(".search")}}(0,i.Cg)([r.cache],u.prototype,"ui",null),(0,i.Cg)([(0,r.watch)("ui:needUpdateCounters")],u.prototype,"updateCounters",null),(0,i.Cg)([(0,r.watch)("ui:pressReplaceButton")],u.prototype,"onPressReplaceButton",null),(0,i.Cg)([r.autobind],u.prototype,"findQueryBounds",null),(0,i.Cg)([r.autobind],u.prototype,"findAndReplace",null),(0,i.Cg)([r.autobind],u.prototype,"findAndSelect",null),(0,i.Cg)([r.autobind],u.prototype,"find",null),(0,i.Cg)([(0,r.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),o.fg.add("search",u)},17352(t,e,s){"use strict";s.r(e),s.d(e,{ACCURACY(){return F},APP_VERSION(){return i},BASE_PATH(){return dt},BASE_PATH_IS_MIN(){return pt},BR(){return V},CLIPBOARD_ID(){return ft},COMMAND_KEYS(){return W},EMULATE_DBLCLICK_TIMEOUT(){return et},ES(){return r},FAT_MODE(){return c},HOMEPAGE(){return h},INSEPARABLE_TAGS(){return x},INSERT_AS_HTML(){return st},INSERT_AS_TEXT(){return rt},INSERT_CLEAR_HTML(){return it},INSERT_ONLY_TEXT(){return nt},INVISIBLE_SPACE(){return p},INVISIBLE_SPACE_REG_EXP(){return g},INVISIBLE_SPACE_REG_EXP_END(){return f},INVISIBLE_SPACE_REG_EXP_START(){return v},IS_BLOCK(){return E},IS_ES_MODERN(){return n},IS_ES_NEXT(){return o},IS_IE(){return K},IS_INLINE(){return S},IS_MAC(){return at},IS_PROD(){return a},IS_TEST(){return l},KEY_ALIASES(){return lt},KEY_ALT(){return P},KEY_BACKSPACE(){return L},KEY_DELETE(){return O},KEY_DOWN(){return D},KEY_ENTER(){return M},KEY_ESC(){return z},KEY_F3(){return J},KEY_LEFT(){return R},KEY_META(){return j},KEY_RIGHT(){return q},KEY_SPACE(){return B},KEY_TAB(){return A},KEY_UP(){return N},LIST_TAGS(){return T},MARKER_CLASS(){return tt},MODE_SOURCE(){return U},MODE_SPLIT(){return G},MODE_WYSIWYG(){return Y},NBSP_SPACE(){return m},NEARBY(){return H},NO_EMPTY_TAGS(){return k},PARAGRAPH(){return $},PASSIVE_EVENTS(){return _t},SAFE_COUNT_CHANGE_CALL(){return ot},SET_TEST(){return u},SOURCE_CONSUMER(){return vt},SPACE_REG_EXP(){return _},SPACE_REG_EXP_END(){return y},SPACE_REG_EXP_START(){return b},TEMP_ATTR(){return mt},TEXT_HTML(){return Z},TEXT_PLAIN(){return X},TEXT_RTF(){return Q},TOKENS(){return d},globalDocument(){return C},globalWindow(){return w},lang(){return gt}});const i="4.6.19",r="es2021",n=!0,o=!0,a=!0;let l=!1;const c=!0,h="https://xdsoft.net/jodit/",u=()=>l=!0,d={},p="\ufeff",m=" ",g=()=>/[\uFEFF]/g,f=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="undefined"!=typeof window?window:void 0,C="undefined"!=typeof document?document:void 0,E=/^(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,S=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,T=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...I,"br","hr"]),k=new Set(I),j="Meta",L="Backspace",A="Tab",M="Enter",z="Escape",P="Alt",R="ArrowLeft",N="ArrowUp",q="ArrowRight",D="ArrowDown",B="Space",O="Delete",J="F3",H=5,F=10,W=[j,L,O,N,D,q,R,M,z,J,A],V="br",$="p",Y=1,U=2,G=3,K="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=K?"text":"text/plain",Z=K?"html":"text/html",Q=K?"rtf":"text/rtf",tt="jodit-selection_marker",et=300,st="insert_as_html",it="insert_clear_html",rt="insert_as_text",nt="insert_only_text",ot=10,at=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),lt={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:at?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ct=t=>{const e=t.split("/"),s=!0;return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:s}:{basePath:t,isMin:s}},{basePath:ht,isMin:ut}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:!0};const t=C.currentScript;if(t)return ct(t.src);const e=C.querySelectorAll("script[src]");return ct(e&&e.length?e[e.length-1].src:w.location.href)})(),dt=ht,pt=ut,mt="data-jodit-temp",gt={},ft="clipboard",vt="source-consumer",_t=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},17527(t,e,s){"use strict";s.d(e,{e(){return n}});var i=s(17352),r=s(98253);const n=(t,e="en")=>"auto"!==t&&(0,r.K)(t)?t:i.globalDocument.documentElement&&i.globalDocument.documentElement.lang?i.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},17800(t,e,s){"use strict";s.d(e,{I(){return i},O(){return r}});const i=(()=>{let t;return()=>(void 0===t&&(t=(()=>{const t="___Jodit___"+Math.random();try{localStorage.setItem(t,"1");const e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch{}return!1})()),t)})();class r{set(t,e){try{const s=localStorage.getItem(this.rootKey),i=s?JSON.parse(s):{};i[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(i))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{const e=localStorage.getItem(this.rootKey),s=e?JSON.parse(e):{};return void 0!==s[t]?s[t]:void 0}catch{}}exists(t){return null!=this.get(t)}constructor(t){this.rootKey=t}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}},17880(t,e,s){"use strict";s.d(e,{P(){return a}});var i=s(12461),r=s(26150),n=s(38322),o=s(9645);async function a(t,e,s){await t.decode();const a=(0,n.A)(t,"width",!0)||(0,r.C)(t,"width")||!1,l=(0,n.A)(t,"height",!0)||(0,r.C)(t,"height")||!1;e.imageWidth=!1!==a?(0,o.G)(a):t.offsetWidth||t.naturalWidth,e.imageHeight=(0,i.k)(e.imageWidth)?!1!==l?(0,o.G)(l):t.offsetHeight||t.naturalHeight:l||"";const{imageWidth:c,imageHeight:h}=e,u=parseFloat(""+c);if((0,i.k)(c)&&(0,i.k)(h))return!1===l?(e.imageHeight=Math.round(u/s.ratio),void(s.sizeIsLocked=!0)):void(s.sizeIsLocked=1>Math.abs(u-parseFloat(""+h)*s.ratio));s.sizeIsLocked=!1}},17995(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18043(t,e,s){"use strict";s.d(e,{c(){return h}});var i=s(65147),r=s(9823),n=s(75889),o=s(97324),a=s(9979),l=s(31859),c=s(53804);function h(){const t=this.state,e=this.dataProvider,s=this;s.e.on("view.filebrowser",(e=>{e!==t.view&&(t.view=e)})).on("sort.filebrowser",(e=>{e!==t.sortBy&&(t.sortBy=e,(0,a.f)(s))})).on("filter.filebrowser",(e=>{e!==t.filterWord&&(t.filterWord=e,(0,a.f)(s))})).on("openFolder.filebrowser",(t=>{let e;e=".."===t.name?t.path.split("/").filter((t=>t.length)).slice(0,-1).join("/"):(0,i.normalizePath)(t.path,t.name),s.state.currentPath=e,s.state.currentSource="."===t.name?n.o:t.source})).on("removeFolder.filebrowser",(t=>{s.confirm("Are you sure?","Delete",(i=>{i&&e.folderRemove(t.path,t.name,t.source).then((t=>(s.status(t,!0),(0,l.r)(s)))).catch(s.status)}))})).on("renameFolder.filebrowser",(t=>{s.prompt("Enter new name","Rename",(i=>{if(!(0,r.uV)(i))return s.status(s.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,i,t.source).then((t=>(s.state.activeElements=[],s.status(t,!0),(0,l.r)(s)))).catch(s.status)}),"type name",t.name)})).on("addFolder.filebrowser",(t=>{s.prompt("Enter Directory name","Create directory",(i=>{e.createFolder(i,t.path,t.source).then((()=>(0,l.r)(s))).catch(s.status)}),"type name")})).on("fileRemove.filebrowser",(()=>{s.state.activeElements.length&&s.confirm("Are you sure?","",(t=>{if(t){const t=[];s.state.activeElements.forEach((e=>{t.push((0,o.W)(s,e.file||e.name||"",e.sourceName))})),s.state.activeElements=[],Promise.all(t).then((()=>(0,l.r)(s).catch(s.status)),s.status)}}))})).on("edit.filebrowser",(()=>{if(1===s.state.activeElements.length){const[t]=this.state.activeElements;c.B.call(s,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",((t,i,n)=>{1===s.state.activeElements.length&&s.prompt("Enter new name","Rename",(o=>{if(!(0,r.uV)(o))return s.status(s.i18n("Enter new name")),!1;e.fileRename(i,t,o,n).then((t=>{s.state.activeElements=[],s.status(t,!0),(0,a.f)(s)})).catch(s.status)}),"type name",t)})).on("update.filebrowser",(()=>{(0,l.r)(this).then(this.status,this.status)}))}},18605(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},19085(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(55186),o=s(56298),a=s(65147),l=s(29866),c=s(35265),h=(s(24654),s(31970)),u=s(80778),d=s(33733),p=s(5549),m=s(30393);class g extends l.k{constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:e}=this.image;return t/e||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}get form(){return new h.l(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.v)(this.j,this.state),openImagePopup:t=>(0,d.q)(this.j,this.dialog,this.state,t)})}get dialog(){const{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),s=this.__buttons;return s.check.onAction((()=>{(0,m.j)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()})),s.remove.onAction((()=>{t.s.removeNode(this.state.sourceImage),e.close()})),s.cancel.onAction((()=>{e.close()})),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[s.cancel,s.remove],s.check]),t.e.on(e,"afterClose",(()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)})),e.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,e.container),e}get __buttons(){const{j:t}=this;return{check:(0,c.$n)(t,"ok","Apply","primary"),remove:(0,c.$n)(t,"bin","Delete"),cancel:(0,c.$n)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise(((t,e)=>(0,p.U)(this.j,this.state).then(t,e))).catch((t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)})).finally((()=>this.__unlock())),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach((t=>t.state.disabled=!0))}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach((t=>t.state.disabled=!1))}afterInit(t){const e=this;t.e.on("afterConstructor changePlace",(()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",(s=>{const i=s.target;if(n.J.isTag(i,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",i))return;e.state.sourceImage=i,e.state.image=i.cloneNode(!0),t.o.readonly||(s.stopImmediatePropagation(),s.preventDefault(),e.open())}else s.stopImmediatePropagation(),t.s.select(i)}))})).on("openImageProperties.imageproperties",(t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()}))}async onStateValuesImageSrcChange(){const{image:t,values:e}=this.state;if(t.src)try{this.__lock(),await t.decode(),this.state.sizeIsLocked&&(0,a.isNumeric)(e.imageWidth)&&(e.imageHeight=Math.round(parseFloat(""+e.imageWidth)/this.state.ratio)),this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){Object.values((0,r.cached)(this,"__buttons")??{}).forEach((t=>t.destruct())),(0,r.cached)(this,"dialog")?.destruct(),(0,r.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}}(0,i.Cg)([r.cache],g.prototype,"form",null),(0,i.Cg)([r.cache],g.prototype,"dialog",null),(0,i.Cg)([r.cache],g.prototype,"__buttons",null),(0,i.Cg)([(0,r.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),o.fg.add("imageProperties",g)},19627(t,e,s){"use strict";s.d(e,{V(){return i.V}});var i=s(140)},19633(t,e,s){"use strict";s.d(e,{K(){return a}});var i=s(71842),r=s(65147),n=s(53048),o=s(54522);n.In.set("palette",s.n(o)());const a=(t,e,s)=>{const o="jodit-color-picker",a=(0,r.normalizeColor)(s),l=t.c.div(o),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:n.In.get("palette"),h=t=>{const e=[];return(0,r.isPlainObject)(t)?Object.keys(t).forEach((s=>{e.push(`<div class="${o}__group ${o}__group-${s}">`),e.push(h(t[s])),e.push("</div>")})):(0,r.isArray)(t)&&t.forEach((t=>{e.push(`<span class='${o}__color-item ${a===t?o+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)})),e.join("")};l.appendChild(t.c.fromHTML(`<div class="${o}__groups">${h(t.o.colors)}</div>`)),l.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${o}__extra"></div>`));const{extra:u}=(0,r.refs)(l);return t.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(u.appendChild(t.c.fromHTML(`<div class="${o}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(l,"change",(t=>{t.stopPropagation();const s=t.target;if(!s||!s.tagName||!i.J.isTag(s,"input"))return;const n=s.value||"";(0,r.isFunction)(e)&&e(n),t.preventDefault()}))),t.e.on(l,"mousedown touchend",(s=>{s.stopPropagation(),s.preventDefault();let n=s.target;if(n&&n.tagName&&!i.J.isTag(n,"svg")&&!i.J.isTag(n,"path")||!n.parentNode||(n=i.J.closest(n.parentNode,"span",t.editor)),!i.J.isTag(n,"span")||!n.classList.contains(o+"__color-item"))return;const a=(0,r.attr)(n,"-color")||"";e&&(0,r.isFunction)(e)&&e(a)})),t.e.fire("afterGenerateColorPicker",l,u,e,a),l}},20222(t,e,s){"use strict";s.d(e,{Rc(){return r.R},ZW(){return n.Z},h2(){return i.h},rV(){return i.r}});var i=s(21567),r=s(30495),n=s(34899)},20384(t,e,s){"use strict";s.d(e,{y(){return a}});var i=s(55186),r=s(71274),n=s(59101),o=s(84976);function a(t,e,s){const i=s.s.createRange(),n=(0,r.r)(e.previousSibling)?e.previousSibling:e;i.setStartBefore(t),i.setEndBefore(n),l(t,i,!0);const o=(0,r.r)(e.nextSibling)?e.nextSibling:e;i.setStartAfter(o),i.setEndAfter(t),l(t,i,!1)}function l(t,e,s){const r=e.extractContents();r.textContent&&(0,n.Bq)(r.textContent).length||!r.firstChild||i.J.unwrap(r.firstChild),t.parentNode&&(0,o.T1)(s?i.J.before:i.J.after,t,r)}},20646(t,e,s){"use strict";s.d(e,{h(){return o}});var i=s(55186),r=s(97369),n=s(30526);function o(t){const{s:e,editor:s,createInside:o}=t,{range:a}=e,l=a.cloneRange(),c=a.cloneRange(),h=o.fake(),u=o.fake();l.collapse(!0),c.collapse(!1),i.J.safeInsertNode(l,h),i.J.safeInsertNode(c,u),a.setStartBefore(h),a.collapse(!0),e.selectRange(a),(0,n.w)(t,h),a.setEndAfter(u),a.collapse(!1),e.selectRange(a),(0,n.w)(t,u);const d=[];i.J.between(h,u,(t=>{(0,n.D)(t)&&!i.J.isTag(t,"a")&&d.push(t),i.J.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)})),d.forEach((t=>i.J.unwrap(t)));const p=(t,e)=>{if(!i.J.findNotEmptySibling(t,e)){const i=t.parentNode;if(i&&i!==s&&(0,r.attr)(i,"style"))return(0,r.attr)(i,"style",null),p(i,e),!0}};p(h,!0)&&p(u,!1),a.setStartAfter(h),a.setEndBefore(u),e.selectRange(a),i.J.safeRemove(h),i.J.safeRemove(u)}},20703(t,e,s){"use strict";s.d(e,{$6(){return n.$6},F0(){return n.F0},XV(){return r.X},Yh(){return i.Y},cY(){return n.cY},nE(){return n.nE},tS(){return n.tS}});var i=s(68752),r=s(28709),n=s(47165)},20784(t){t.exports='<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>'},20785(t,e,s){"use strict";s.d(e,{b(){return h}});var i=s(31635),r=s(24767),n=s(66927),o=s(55186),a=s(98253),l=s(53048),c=s(29780);let h=class t extends c.D{className(){return"UIAiAssistant"}constructor(t,{onInsert:e,onInsertAfter:s}){super(t),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,l.$n)(t,"","Insert","primary").onAction((()=>e(this.__aiResult))),this.__insertAfterButton=(0,l.$n)(t,"","Insert After","initial").onAction((()=>s(this.__aiResult)));const i=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.$n)(t,"ai-assistant","").onAction(i),this.__tryAgainButton=(0,l.$n)(t,"update","","initial").onAction(i),this.promptInput=new l.F0(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.Yh(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.XV(t,[new l.Yh(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit((e=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",e.prompt);const s=this.getFullElName("","hide","true");this.__results.classList.remove(s),this.__buttons.classList.remove(s),o.J.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()})),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}render(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}setPrompt(t){if(t){const{jodit:e}=this,s=e.o.aiAssistant[t],{aiCommonPrefixPrompt:i,aiCommonSuffixPrompt:r}=e.o.aiAssistant;this.promptInput.value=[i,(0,a.K)(s)?s:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),o.J.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,o.J.detach(this.__results),this.__toggleSubmitButton(!1);const e=this.getFullElName("","hide","true");this.__results.classList.add(e),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}};(0,i.Cg)([(0,n.w)(":ai-assistant-response")],h.prototype,"onAiAssistentResponse",null),(0,i.Cg)([(0,n.w)(":ai-assistant-error")],h.prototype,"onAiAssistentError",null),(0,i.Cg)([(0,n.w)("promptInput:change")],h.prototype,"onChangePromptValue",null),h=(0,i.Cg)([r.s],h)},20797(t,e,s){"use strict";var i=s(72197),r=s(931),n=s(36115),o=s(40037),a=s.n(o),l=s(83207),c=s.n(l);const h=(t,e,{control:s})=>{const r="button"+s.command,n=(s.args&&s.args[0])??(0,i.m)(t,r);(0,i.m)(t,r,n),t.execCommand(s.command,!1,"default"===n?null:n)};r.I.set("ol",a()).set("ul",c()),n.T.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:h},n.T.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:h}},21329(t,e,s){"use strict";s.d(e,{B(){return n}});var i=s(35265),r=s(20703);const n=t=>{const{openInNewTabCheckbox:e,noFollowCheckbox:s,modeClassName:n,selectSizeClassName:o,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new r.XV(t,[new r.Yh(t,[new r.tS(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new r.Yh(t,[new r.tS(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),n?new r.Yh(t,["input"===n?new r.tS(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===n?new r.$6(t,{name:"className",ref:"className_select",label:"Class name",size:o,multiple:a,options:l}):null]):null,e?new r.cY(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,s?new r.cY(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new r.Yh(t,[new i.lD(t,{name:"unlink",variant:"default",text:"Unlink"}),new i.lD(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},21567(t,e,s){"use strict";function i(t="Aborted"){return new DOMException(t,"AbortError")}s.d(e,{h(){return i},r(){return r}});const r=s(99951).z},21811(t,e,s){"use strict";function i(t){return-1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}s.d(e,{C(){return i}})},21917(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22227(t){t.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'},22664(t,e,s){"use strict";s.r(e),s.d(e,{autobind(){return i.d},cache(){return r.PP},cacheHTML(){return r.OK},cached(){return r.PO},component(){return n.s},debounce(){return o.s},derive(){return a.C},getPropertyDescriptor(){return p.N},hook(){return l.A},idle(){return c.N},nonenumerable(){return h.m},persistent(){return u.y},throttle(){return o.n},wait(){return d.u},watch(){return p.w}});var i=s(11961),r=s(87875),n=s(24767),o=s(37075),a=s(1963),l=s(71151),c=s(86285),h=s(48791),u=s(33087),d=s(48647),p=s(66927)},23132(t,e,s){"use strict";s.d(e,{p(){return o}});var i=s(69052),r=s(92032),n=s(58006);function o(t,e,s){const o=this instanceof n.l?this:new n.l({closeOnClickOverlay:!0}),a=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=o.c.element("label");(0,i.T)(e)&&(s=e,e=void 0),l.appendChild(o.c.fromHTML(t)),a.appendChild(l);const c=t=>()=>{s&&!1===s(t)||o.close()},h=(0,r.$n)(o,"cancel","Cancel"),u=(0,r.$n)(o,"ok","Yes");return h.onAction(c(!1)),u.onAction(c(!0)),o.e.on(a,"submit",(()=>(c(!0)(),!1))),o.setFooter([u,h]),o.open(a,e||"&nbsp;",!0,!0),u.focus(),o}},23602(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24103(t,e,s){"use strict";var i=s(36115);i.T.prototype.mediaFakeTag="jodit-media",i.T.prototype.mediaInFakeBlock=!0,i.T.prototype.mediaBlocks=["video","audio"]},24593(t,e,s){"use strict";var i=s(17352),r=s(87875),n=s(56298),o=s(65147);s(51329),n.fg.add("clipboard",class a{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(t){this.buttons?.forEach((e=>t.registerButton(e))),t.e.off(`copy.${i.CLIPBOARD_ID} cut.${i.CLIPBOARD_ID}`).on(`copy.${i.CLIPBOARD_ID} cut.${i.CLIPBOARD_ID}`,(e=>{const s=t.s.html,r=(0,o.getDataTransfer)(e)||(0,o.getDataTransfer)(t.ew)||(0,o.getDataTransfer)(e.originalEvent);r&&(r.setData(i.TEXT_PLAIN,(0,o.stripTags)(s)),r.setData(i.TEXT_HTML,s)),t.buffer.set(i.CLIPBOARD_ID,s),t.e.fire("pasteStack",{html:s,action:t.o.defaultActionOnPaste||i.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",s)}))}destruct(t){(0,r.PO)(t,"buffer")?.set(i.CLIPBOARD_ID,""),t?.events?.off("."+i.CLIPBOARD_ID)}})},24654(t,e,s){"use strict";s(36115).T.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},24767(t,e,s){"use strict";function i(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}s.d(e,{s(){return i}})},24772(t){t.exports='<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>'},24834(t,e,s){"use strict";s.d(e,{w(){return a}});var i=s(83260),r=s(17800),n=s(2788);const o="Jodit_";class a{set(t,e){return this.provider.set((0,i.x)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,i.x)(this.prefix+t)),this}get(t){return this.provider.get((0,i.x)(this.prefix+t))}exists(t){return this.provider.exists((0,i.x)(this.prefix+t))}clear(){return this.provider.clear(),this}constructor(t,e){this.provider=t,this.prefix=o,e&&(this.prefix+=e)}static makeStorage(t=!1,e){let s;return t&&(0,r.I)()&&(s=new r.O(o+e)),s||(s=new n.M),new a(s,e)}}},24863(t,e,s){"use strict";s.d(e,{Z(){return a}});var i=s(53048);const r="jodit-image-editor",n=i.In.get.bind(i.In),o=(t,e="jodti-image-editor_active")=>t?e:"",a=(t,e)=>{const s=t.i18n.bind(t),i=(t,e,i=!0)=>`<div class="jodit-form__group">\n\t\t\t<label class="jodit-switcher-wrapper">\n\t\t\t\t<span class='jodit-switcher'>\n\t\t\t\t\t<input ${o(i,"checked")} data-ref="${e}" type="checkbox"/>\n\t\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t\t</span>\n\t\t\t\t<span>${s(t)}</span>\n\t\t\t</label>\n\t</div>`;return t.create.fromHTML(`<form class="${r} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div class="${r}__area ${r}__area_resize ${r}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${r}__box"></div>\n\t\t\t\t\t\t\t<div class="${r}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div class="${r}__area ${r}__area_crop ${o(!e.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${r}__box">\n\t\t\t\t\t\t\t\t<div class="${r}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${r}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div data-area="resize" class="${r}__slider ${r}_active">\n\t\t\t\t\t\t\t<div class="${r}__slider-title">\n\t\t\t\t\t\t\t\t${n("resize")}\n\t\t\t\t\t\t\t\t${s("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${r}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div data-area="crop" class="${r}__slider ${o(!e.resize)}'">\n\t\t\t\t\t\t\t<div class="${r}__slider-title">\n\t\t\t\t\t\t\t\t${n("crop")}\n\t\t\t\t\t\t\t\t${s("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${r}__slider-content">\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)}},25202(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},no(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},ua(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},25376(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(76776);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,i.l)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},25501(t){t.exports='<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>'},26150(t,e,s){"use strict";s.d(e,{C(){return o}});var i=s(9823),r=s(449),n=s(38322);function o(t,e,s){if(!t||!(0,i.Tn)(t.getAttribute))return null;if(!(0,i.Kg)(e))return Object.keys(e).forEach((s=>{const r=e[s];(0,i.Qd)(r)&&"style"===s?(0,n.A)(t,r):("className"===s&&(s="class"),o(t,s,r))})),null;let a=(0,r.N)(e);if(/^-/.test(a)){const e=o(t,"data"+a);if(e)return e;a=a.substr(1)}if(void 0!==s){if(null!=s){let e=""+s;return"IMG"!==t.nodeName||"width"!==a&&"height"!==a||(e=e.replace("px","")),t.setAttribute(a,e),e}t.hasAttribute(a)&&t.removeAttribute(a)}return t.getAttribute(a)}},26328(t,e,s){"use strict";s.d(e,{t(){return n},v(){return o}});var i=s(55186),r=s(97369);function n(t,e){(i.J.isElement(t)||i.J.isFragment(t))&&(e.removeOnError&&(o(t),(0,r.$$)("[onerror]",t).forEach((t=>o(t,e)))),e.safeJavaScriptLink&&(o(t),(0,r.$$)('a[href^="javascript"]',t).forEach((t=>o(t,e)))))}function o(t,{safeJavaScriptLink:e,removeOnError:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!i.J.isElement(t))return!1;let n=!1;s&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),n=!0);const o=t.getAttribute("href");return e&&o&&0===o.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+o),n=!0),n}},26396(t,e,s){"use strict";s.d(e,{M(){return a}});var i=s(71842),r=s(98253),n=s(40080),o=s(38322);const a={name:"left",childTemplate(t,e,s){return s},list:["Left","Right","Center","Normal"],exec(t,e,{control:s}){if(!i.J.isTag(e,new Set(["img","jodit","jodit-media"])))return;const o=s.args&&(0,r.K)(s.args[0])?s.args[0].toLowerCase():"";if(!o)return!1;(0,n.Mr)(e,o),i.J.isTag(e,new Set(["jodit","jodit-media"]))&&e.firstElementChild&&(0,n.Mr)(e.firstElementChild,o),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};e.A=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:s}){if(!i.J.isTag(e,"img"))return;const n=s.args&&(0,r.K)(s.args[0])?s.args[0].toLowerCase():"";if(!n)return!1;(0,o.A)(e,"vertical-align","normal"===n?"":n),t.e.fire("recalcPositionPopup")}},a]},26421(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(97369);s(24103),r.fg.add("media",(t=>{const e="jodit_fake_wrapper",{mediaFakeTag:s,mediaBlocks:r,mediaInFakeBlock:o}=t.options;o&&t.e.on("afterGetValueFromEditor",(t=>{const i=RegExp(`<${s}[^>]+data-${e}[^>]+>([^]+?)</${s}>`,"ig");i.test(t.value)&&(t.value=t.value.replace(i,"$1"))})).on("change afterInit afterSetMode changePlace",t.async.debounce((()=>{t.isDestructed||t.getMode()===i.MODE_SOURCE||(0,n.$$)(r.join(","),t.editor).forEach((i=>{(0,n.dataBind)(i,e)||((0,n.dataBind)(i,e,!0),(i=>{if(i.parentNode&&(0,n.attr)(i.parentNode,"data-jodit_iframe_wrapper"))i=i.parentNode;else{const r=t.createInside.element(s,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,n.attr)(r,"style",(0,n.attr)(i,"style")),r.style.display="inline-block"===i.style.display?"inline-block":"block",r.style.width=i.offsetWidth+"px",r.style.height=i.offsetHeight+"px",i.parentNode&&i.parentNode.insertBefore(r,i),r.appendChild(i),i=r}t.e.off(i,"mousedown.select touchstart.select").on(i,"mousedown.select touchstart.select",(()=>{t.s.setCursorAfter(i)}))})(i))}))}),t.defaultTimeout))}))},26495(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(65147);s(99689),r.fg.add("iframe",(t=>{const e=t.options;t.e.on("afterSetMode",(()=>{t.isEditorMode()&&t.s.focus()})).on("generateDocumentStructure.iframe",((t,s)=>{const i=t||s.iframe.contentWindow.document;if(i.open(),i.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,n.defaultLanguage)(e.language)}"><head>`+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),i.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach((t=>{const e=i.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),i.head&&i.head.appendChild(e)})),e.iframeStyle){const t=i.createElement("style");t.innerHTML=e.iframeStyle,i.head&&i.head.appendChild(t)}})).on("createEditor",(()=>{if(!e.iframe)return;const s=t.c.element("iframe");s.style.display="block",s.src="about:blank",s.className="jodit-wysiwyg_iframe",s.setAttribute("allowtransparency","true"),s.setAttribute("tabindex",""+e.tabIndex),s.setAttribute("frameborder","0"),null!=e.iframeSandbox&&s.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(s),t.iframe=s;const r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,n.callPromise)(r,(()=>{if(!t.iframe)return!1;const s=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;const r=()=>{(0,n.attr)(s.body,"contenteditable",t.getMode()!==i.MODE_SOURCE&&!t.getReadOnly()||null)},o=t=>{const e=/<body.*<\/body>/im,s="{%%BODY%%}",i=e.exec(t);return i&&(t=t.replace(e,s).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(s,i[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(e.editHTMLDocumentMode){const e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,n.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",(()=>o(t.o.iframeDoctype+s.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?o(s.documentElement.outerHTML)!==o(e)&&(s.open(),s.write(t.o.iframeDoctype+o(e)),s.close(),t.editor=s.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):s.body.innerHTML=e,!0)),{top:!0})}if(t.editor=s.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){s.documentElement&&(s.documentElement.style.overflowY="hidden");const i=t.async.throttle(((...s)=>{t.async.requestAnimationFrame((()=>{if(t.editor&&t.iframe&&"auto"===e.height){const e=t.ew.getComputedStyle(t.editor);(0,n.css)(t.iframe,"height",t.editor.offsetHeight+(parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)))}}))}),t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",i).on([t.iframe,t.ew,s.documentElement],"load",i).on(s,"readystatechange DOMContentLoaded",i),"function"==typeof ResizeObserver){const e=new ResizeObserver(i);e.observe(s.body),t.e.on("beforeDestruct",(()=>{e.disconnect()}))}}return s.documentElement&&t.e.on(s.documentElement,"mousedown touchend",(()=>{t.s.isFocused()||(t.s.focus(),t.editor===s.body&&t.s.setCursorIn(s.body))})).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(e=>{t.events?.fire(t.ow,e)})),!1}))}))}))},26538(t,e,s){"use strict";s.d(e,{d(){return l}});var i=s(77753),r=s(17352),n=s(65147),o=s(36115),a=s(74340);s(77334);class l extends i.vG{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,s){const i=()=>{t.classList.remove("jodit_drag_hover")},n=this,o=t=>{let o,l,c;const h=t.clipboardData,u=t=>{l&&(t.append("extension",c),t.append("mimetype",l.type))};if(!r.IS_IE&&(0,a.YQ)(h))return(0,a._9)(n,h.files,e,s).finally(i),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,a.dT)(n,h,e,s,i);if((0,a.Pb)(h)){const{items:r}=h;for(o=0;r.length>o;o+=1)if("file"===r[o].kind&&"image/png"===r[o].type){if(l=r[o].getAsFile(),l){const t=l.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,a._9)(n,[l],e,s,u).finally(i)}t.preventDefault();break}}};n.j&&n.j.editor!==t?n.j.e.on(t,"paste",o):n.j.e.on("beforePaste",o),this.attachEvents(t,e,s,i)}attachEvents(t,e,s,i){const r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",(t=>{t.preventDefault()})).on(t,"dragover",(e=>{((0,a.YQ)(e.dataTransfer)||(0,a.Pb)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())})).on(t,"dragend dragleave",(e=>{t.classList.remove("jodit_drag_hover"),(0,a.YQ)(e.dataTransfer)&&e.preventDefault()})).on(t,"drop",(n=>{t.classList.remove("jodit_drag_hover"),(0,a.YQ)(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),(0,a._9)(r,n.dataTransfer.files,e,s).finally(i))}));const n=t.querySelector("input[type=file]");n&&r.j.e.on(n,"change",(()=>{(0,a._9)(r,n.files,e,s).then((()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")})).finally(i)}))}uploadRemoteImage(t,e,s){const i=this,{o:r}=i,o=(0,n.isFunction)(s)?s:r.defaultHandlerError;(0,a.tN)(i,{action:"fileUploadRemote",url:t}).then((t=>{r.isSuccess.call(i,t)?((0,n.isFunction)(e)?e:r.defaultHandlerSuccess).call(i,r.process.call(i,t)):o.call(i,(0,n.error)(r.getMessage.call(i,t)))})).catch((t=>o.call(i,t)))}constructor(t,e){super(t),this.path="",this.source="default",this.options=(0,n.ConfigProto)(e||{},(0,n.ConfigProto)(o.T.defaultOptions.uploader,(0,n.isJoditObject)(t)?t.o.uploader:{}))}destruct(){this.setStatus(i.f.beforeDestruct);const t=a.$j.get(this);t&&(t.forEach((t=>{try{t.destruct()}catch{}})),t.clear()),super.destruct()}}},26725(t,e,s){"use strict";var i=s(65147),r=s(931),n=s(36115),o=s(223),a=s.n(o);n.T.prototype.defaultLineHeight=null,r.I.set("line-height",a()),n.T.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec(t,e,{control:s}){return(0,i.memorizeExec)(t,e,{control:s},(t=>t))}}},27195(t,e,s){"use strict";var i=s(36115);i.T.prototype.showCharsCounter=!0,i.T.prototype.countHTMLChars=!1,i.T.prototype.countTextSpaces=!1,i.T.prototype.showWordsCounter=!0},27301(t,e,s){"use strict";s.d(e,{EW(){return n},Qt(){return c},S5(){return l},w4(){return a},x_(){return h}});var i=s(98253),r=s(60346);const n=new Map,o=t=>(e,s)=>{if(n.has(s))return n.get(s);const i=t(e,s);return n.set(s,i),i},a=o(((t,e)=>t.async.promise(((s,i)=>{if(t.isInDestruct)return i();const n=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.X)(e)});t.e.one(n,"error",i).one(n,"load",s),t.od.body.appendChild(n)})))),l=o(((t,e)=>t.async.promise(((s,i)=>{if(t.isInDestruct)return i();const n=t.c.element("link");n.rel="stylesheet",n.media="all",n.crossOrigin="anonymous",!t.isInDestruct&&t.e.on(n,"load",(()=>s(n))).on(n,"error",i),n.href=(0,r.X)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(n):t.od.body.appendChild(n)}))));function c(t,e,s=0){return(0,i.K)(e[s])?a(t,e[s]).then((()=>c(t,e,s+1))):Promise.resolve()}function h(t,e,s=0){return(0,i.K)(e[s])?l(t,e[s]).then((()=>h(t,e,s+1))):Promise.resolve()}},27337(t,e,s){"use strict";s(36115).T.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest}},27509(t,e,s){"use strict";var i,r=s(31635),n=s(22664),o=s(71842),a=s(56298),l=s(65147),c=s(71005);s(96900),(t=>{t[t.IDLE=0]="IDLE",t[t.WAIT_DRAGGING=1]="WAIT_DRAGGING",t[t.DRAGGING=2]="DRAGGING"})(i||(i={}));class h extends c.k{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=i.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map((t=>t.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>i.IDLE)return;const e=t.target;if(!this.dragList.length||!e)return;const s=t=>!(!t||!this.dragList.includes(t.nodeName.toLowerCase()));let r=o.J.furthest(e,s,this.j.editor)||(s(e)?e:null);r&&(o.J.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=r.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",r),this.state=i.WAIT_DRAGGING,this.addDragListeners())}onDrag(t){if(!this.draggable||this.state===i.IDLE)return;const e=t.clientY;if(this.state!==i.WAIT_DRAGGING||Math.sqrt(Math.pow(t.clientX-this.startX,2)+Math.pow(e-this.startY,2))>=this.diffStep){if(this.state===i.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=i.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const e=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,a.My)(this.j,h).appendChild(this.draggable)}(0,l.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=i.IDLE,this.draggable&&(o.J.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||i.DRAGGING>this.state)return void this.onDragEnd();let t=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));const{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&o.J.isEmpty(e)&&!o.J.isCell(e)&&o.J.safeRemove(e),o.J.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}(0,r.Cg)([n.autobind],h.prototype,"onDragStart",null),(0,r.Cg)([(0,n.throttle)((t=>t.defaultTimeout/10))],h.prototype,"onDrag",null),(0,r.Cg)([n.autobind],h.prototype,"onDragEnd",null),(0,r.Cg)([n.autobind],h.prototype,"onDrop",null),a.fg.add("dragAndDropElement",h)},27594(t,e,s){"use strict";s.d(e,{G(){return r}});var i=s(83044);function r(t,e,s=!1){const n=t.getBoundingClientRect();let o=n.left,a=n.top;if((0,i.y)(e)&&e.iframe&&e.ed.body.contains(t)&&!s){const{left:t,top:s}=r(e.iframe,e,!0);o+=t,a+=s}return{left:Math.round(o),top:Math.round(a),width:Math.round(t.offsetWidth??n.width),height:Math.round(t.offsetHeight??n.height)}}},27912(t,e,s){"use strict";s.d(e,{$(){return o},t(){return a}});var i=s(65147),r=s(53883),n=s(89929);const o=new WeakMap;function a(t,e){const s=(0,n.$)(t,e),a=e=>{const s=new r.d({xhr(){const e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(t.j.progressbar.show().progress(10),e.upload.addEventListener("progress",(e=>{if(e.lengthComputable){let s=e.loaded/e.total;s*=100,t.j.progressbar.show().progress(s),100>s||t.j.progressbar.hide()}}),!1)):t.j.progressbar.hide(),e},method:t.o.method||"POST",data:e,url:(0,i.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1});let n=o.get(t);return n||(n=new Set,o.set(t,n)),n.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then((t=>t.json())).catch((t=>({success:!1,data:{messages:[t]}}))).finally((()=>{s.destruct(),n?.delete(s)}))};return(0,i.isPromise)(s)?s.then(a).catch((e=>{t.o.error.call(t,e)})):a(s)}},28313(t,e,s){"use strict";s.r(e),s.d(e,{checkBlockNesting(){return i.o}});var i=s(30958)},28616(t,e,s){"use strict";function i(t,e={}){if("object"!=typeof t)return t+"";const s=new Set(e.excludeKeys),i=new WeakMap;return JSON.stringify(t,((t,e)=>{if(!s.has(t)){if("object"==typeof e&&null!=e){if(i.get(e))return"[refObject]";i.set(e,!0)}return e}}),e.prettify)}s.d(e,{A(){return i}})},28709(t,e,s){"use strict";s.d(e,{X(){return h}});var i=s(31635),r=s(37474),n=s(24767),o=s(97369),a=s(69198),l=s(1540),c=s(6455);let h=class t extends c.U{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const t=this.allChildren.filter((t=>r.u.isInstanceOf(t,a.t)));for(const e of t)if(!e.validate())return!1;const e=this.allChildren.filter((t=>r.u.isInstanceOf(t,l.$)));for(const t of e)if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",(()=>{const e=this.allChildren.filter((t=>r.u.isInstanceOf(t,a.t)));return!!this.validate()&&(t(e.reduce(((t,e)=>(t[e.state.name]=e.value,t)),{})),!1)})),this}createContainer(){const t=this.j.c.element("form");return t.classList.add(this.componentName),(0,o.attr)(t,"dir",this.j.o.direction||"auto"),(0,o.attr)(t,"novalidate",""),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}};h=(0,i.Cg)([n.s],h)},28712(t){"use strict";t.exports={assert(){}}},29012(t,e,s){"use strict";s.d(e,{CP(){return n.C},Ue(){return i.U},bk(){return o.b},z4(){return r.z}});var i=s(6455),r=s(94070),n=s(86283),o=s(13642)},29348(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},29581(t,e,s){"use strict";s(36115).T.prototype.tableAllowCellSelection=!0},29780(t,e,s){"use strict";s.d(e,{D(){return d}});var i,r=s(31635),n=s(77753),o=s(1963),a=s(55186),l=s(98253),c=s(87906),h=s(75758),u=s(931);let d=i=class t extends n.vG{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){const e="object"==typeof t?e=>e===t:e=>n.uA.isInstanceOf(e,t);let s=this.__parentElement;for(;s;){if(e(s))return s;s=!s.parentElement&&s.container.parentElement?i.closestElement(s.container.parentElement,i):s.parentElement}return null}static closestElement(t,e){const s=a.J.up(t,(t=>{if(t){const{component:s}=t;return s&&n.uA.isInstanceOf(s,e)}return!1}));return s?s?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){const e=this.render(t);if((0,l.K)(e)){const t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((t,e)=>u.I.get(e)||"")).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,((t,e)=>this.i18n(e))))}constructor(t,e){super(t),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return a.J.safeRemove(this.container),this.parentElement=null,super.destruct()}};d=i=(0,r.Cg)([(0,o.C)(h.K,c.O)],d)},29822(t,e,s){"use strict";s.d(e,{V(){return o}});var i=s(71842),r=s(65147),n=s(46602);function o(t,e,s){let o=i.J.findSibling(e,s);return!o&&e.parentElement&&e.parentElement!==t.editor&&(o=i.J.findSibling(e.parentElement,s)),!(!i.J.isElement(o)||i.J.isContentEditable(o,t.editor)||((0,r.call)(s?i.J.before:i.J.after,o,e),i.J.safeRemove(o),(0,n.W8)(t,e,s),(0,r.call)(s?t.s.setCursorBefore:t.s.setCursorAfter,e),0))}},29866(t,e,s){"use strict";s.d(e,{k(){return a}});var i=s(31635),r=s(77753),n=s(22664),o=s(83044);class a extends r.vG{className(){return"Plugin"}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}__afterPluginSystemInit(){const{j:t,buttons:e}=this;e&&(0,o.y)(t)&&e.forEach((e=>{t.registerButton(e)}))}__afterInit(){this.__inited=!0,this.setStatus(r.f.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;const{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.f.beforeDestruct),!this.__inited)return super.destruct();(0,o.y)(t)&&this.buttons?.forEach((e=>{t?.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}}a.requires=[],(0,i.Cg)([n.autobind],a.prototype,"__afterPluginSystemInit",null),(0,i.Cg)([n.autobind],a.prototype,"__afterInit",null),(0,i.Cg)([n.autobind],a.prototype,"__beforeDestruct",null)},30393(t,e,s){"use strict";s.d(e,{j(){return l}});var i=s(55186),r=s(97369),n=s(88269),o=s(78139),a=s(58972);function l(t,e,s){const{style:l,imageSrc:c,borderRadius:h,imageTitle:u,imageAlt:d,imageLink:p,imageWidth:m,imageHeight:g,marginTop:f,marginRight:v,marginBottom:_,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:C,id:E}=e.values,S=t.o;S.image.editStyle&&(0,r.attr)(s,"style",l||null),c?((0,r.attr)(s,"src",c),s.style.borderRadius=h?h+"px":"",(0,r.attr)(s,"title",u||null),(0,r.attr)(s,"alt",d||null),(0,n.j)(t,s,p,y),(0,a.q)(s,m,g,e.sizeIsLocked),t.o.image.editMargins&&(0,o.N)(t,f,v,_,b,s,e.marginIsLocked),S.image.editClass&&(0,r.attr)(s,"class",C||null),S.image.editId&&(0,r.attr)(s,"id",E||null),S.image.editAlign&&(0,r.hAlignElement)(s,w)):i.J.safeRemove(s)}},30405(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(65147),o=s(71005);s(81522),r.fg.add("hotkeys",class a extends o.k{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],s=(t.key||String.fromCharCode(t.which)).toLowerCase(),i=[e||s];return["alt","ctrl","shift","meta"].forEach((s=>{t[s+"Key"]&&e!==s&&i.push(s)})),(0,n.normalizeKeyAliases)(i.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}afterInit(t){(0,n.keys)(t.o.commandToHotkeys,!1).forEach((e=>{const s=t.o.commandToHotkeys[e];s&&((0,n.isArray)(s)||(0,n.isString)(s))&&t.registerHotkeyToCommand(s,e)}));let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",(t=>{if(t.key===i.KEY_ESC)return this.j.e.fire("escape",t)})).on("keydown.hotkeys",(s=>{const i=this.onKeyPress(s),r={shouldStop:!0};if(!1===this.j.e.fire(i+".hotkey",s.type,r)){if(r.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;s.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}})},30495(t,e,s){"use strict";s.d(e,{R(){return i}});class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},30526(t,e,s){"use strict";s.d(e,{D(){return o},w(){return n}});var i=s(17352),r=s(55186);function n(t,e){const{s}=t;let i=e;if(!i){i=t.createInside.fake();const{range:e}=s;r.J.safeInsertNode(e,i),e.collapse()}const n=r.J.furthest(i,o,t.editor);if(n)if(s.cursorOnTheLeft(n))r.J.before(n,i);else if(s.cursorOnTheRight(n))r.J.after(n,i);else{const t=s.splitSelection(n);t&&r.J.after(t,i)}e||(s.setCursorBefore(i),r.J.safeRemove(i))}function o(t){return r.J.isInlineBlock(t)&&!r.J.isTag(t,i.INSEPARABLE_TAGS)}},30621(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(67975);class r{constructor(t=i.H){this.searchIndex=t,this.queue=[],this.value=""}add(t){const e=(t.nodeValue??"").toLowerCase();if(!e.length)return;const s=this.value.length;this.queue.push({startIndex:s,endIndex:s+e.length,node:t}),this.value+=e}ranges(t,e=0){const s=[];let i=e,r=0,n=0;do{if([i,r]=this.searchIndex(t,this.value,i),-1!==i){let t,e,o=0,a=0;for(let s=n;this.queue.length>s;s+=1)if(!t&&this.queue[s].endIndex>i&&(t=this.queue[s].node,o=i-this.queue[s].startIndex),t&&this.queue[s].endIndex>=i+r){e=this.queue[s].node,a=i+r-this.queue[s].startIndex,n=s;break}t&&e&&s.push({startContainer:t,startOffset:o,endContainer:e,endOffset:a}),i+=r}}while(-1!==i);return 0===s.length?null:s}}},30687(t,e,s){"use strict";s.d(e,{c(){return o}});var i=s(55186),r=s(58720),n=s(41159);function o(t,e,s){const o=i.J.closest(s,["ol","ul"],e.editor);if(!o)return;const a=o.parentElement,l=i.J.isLeaf(a),c=l?a:o,h=e.s.createRange();h.setStartAfter(s),h.setEndAfter(o);const u=h.extractContents();i.J.after(c,t),i.J.safeRemove(s),(0,r.$$)("li",o).length||i.J.safeRemove(o);const d=(0,n.y)(t,e,l?"li":e.o.enter);u.querySelector("li")&&(l?d.appendChild(u):i.J.after(d,u))}},30958(t,e,s){"use strict";s.d(e,{o(){return r}});var i=s(55186);function r(t,e){if(i.J.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&i.J.isBlock(e)){const e=i.J.furthest(t.s.current(),i.J.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),i.J.isEmpty(e)&&i.J.safeRemove(e))}}},31138(t,e,s){"use strict";s.d(e,{f(){return i}});const i=(t,e=8)=>{const s=[];for(;t.length;)s.push(t.substr(0,e)),t=t.substr(e);return s[1]=s[1].replace(/./g,"*"),s[2]=s[2].replace(/./g,"*"),s.join("-")}},31202(t,e,s){"use strict";s.d(e,{s(){return a}});var i=s(31635),r=s(24767),n=(s(28712),s(92032)),o=s(6455);let a=class t extends o.U{className(){return"UIButtonGroup"}render(t){return`<div>\n\t\t\t<div class="&__label">~${t.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}constructor(t,e={radio:!0}){super(t,e.options?.map((e=>{const s=new n.lD(t,{text:e.text,value:e.value,variant:"primary"});return s.onAction((()=>{this.select(e.value)})),s})),e),this.options=e,this.select(e.value??0)}select(t){this.elements.forEach(((e,s)=>{s===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)}));const e=this.elements.filter((t=>t.state.activated)).map((t=>({text:t.state.text,value:t.state.value})));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}};a=(0,i.Cg)([r.s],a)},31230(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},31365(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},31635(t,e,s){"use strict";function i(t,e,s,i){var r,n=arguments.length,o=3>n?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(3>n?r(o):n>3?r(e,s,o):r(e,s))||o);return n>3&&o&&Object.defineProperty(e,s,o),o}s.d(e,{Cg(){return i}}),"function"==typeof SuppressedError&&SuppressedError},31686(t,e,s){"use strict";var i=s(65147),r=s(35265),n=s(20703),o=s(931),a=s(36115),l=s(16116),c=s(36339),h=s.n(c);a.T.prototype.video={parseUrlToVideoEmbed:i.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},o.I.set("video",h()),a.T.prototype.controls.video={popup(t,e,s){const o=new n.XV(t,[new n.Yh(t,[new n.tS(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new n.Yh(t,[(0,r.$n)(t,"","Insert","primary").onAction((()=>o.submit()))])]),a=new n.XV(t,[new n.Yh(t,[new n.F0(t,{name:"code",required:!0,label:"Embed code"})]),new n.Yh(t,[(0,r.$n)(t,"","Insert","primary").onAction((()=>a.submit()))])]),c=[],h=e=>{t.s.restore(),t.s.insertHTML(e),s()};return t.s.save(),c.push({icon:"link",name:"Link",content:o.container},{icon:"source",name:"Code",content:a.container}),o.onSubmit((e=>{h((0,i.call)(t.o.video?.parseUrlToVideoEmbed??i.convertMediaUrlToVideoEmbed,e.url,{width:t.o.video?.defaultWidth,height:t.o.video?.defaultHeight}))})),a.onSubmit((t=>{h(t.code)})),(0,l.Zg)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},31859(t,e,s){"use strict";s.d(e,{r(){return n}});var i=s(71842),r=s(9979);async function n(t){t.tree.setMod("active",!0),i.J.detach(t.tree.container);const e=(0,r.f)(t);if(t.o.showFoldersPanel){t.tree.setMod("loading",!0);const s=t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then((e=>{t.state.sources=e})).catch(t.status).finally((()=>t.tree.setMod("loading",!1)));return Promise.all([s,e])}return t.tree.setMod("active",!1),e}},31970(t,e,s){"use strict";s.d(e,{l(){return d}});var i=s(31635),r=s(22664),n=s(24767),o=s(65147),a=s(6455),l=s(931),c=s(16116),h=s(33403),u=s(46681);let d=class t extends a.U{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){const e=super.getElm(t);if(e)return e;for(const e of this.elements){const s=e.getElm(t);if(s)return s}return null}constructor(t,e,s,i){super(t),this.state=e,this.handlers=i,this.__mainTab=new h.k(this.jodit,this.state,this.handlers),this.__positionTab=new u._(this.jodit,this.state,this.handlers),this.getElm("tabsBox").appendChild((0,c.Zg)(t,[{name:"Image",content:this.__mainTab},{name:"Advanced",content:this.__positionTab}],s)),this.setMod("lock-size",this.state.sizeIsLocked),this.append(this.__mainTab).append(this.__positionTab)}render(){return`<form>\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="&__view-box">\n\t\t\t\t\t<div class="&__imageView">\n\t\t\t\t\t\t<img class="&__imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="jodit-form__group &__imageSizes">\n\t\t\t\t\t\t<input type="text" class="jodit-input &__imageWidth"/>\n\t\t\t\t\t\t<a class="&__lockSize">${l.I.get("lock")}</a>\n\t\t\t\t\t\t<input type="text" class="&__imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>\n\t\t</div>\n\t</form>`}onChangeSizeIsLocked(){const t=this.getElm("lockSize"),e=this.getElm("imageWidth");t.innerHTML=l.I.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(e,"change")}onLockSizeClick(){this.state.sizeIsLocked=!this.state.sizeIsLocked}onStateValuesSizeChange(){const t=this.getElm("imageWidth"),e=this.getElm("imageHeight");t!==this.j.od.activeElement&&(t.value=""+this.state.values.imageWidth),e!==this.j.od.activeElement&&(e.value=""+this.state.values.imageHeight)}onImageWidthChange(t){const e=this.getElm("imageWidth"),s=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!(0,o.isNumeric)(e.value)||!(0,o.isNumeric)(s.value))return this.state.values.imageWidth=e.value,void(this.state.values.imageHeight=s.value);const i=parseFloat(e.value),r=parseFloat(s.value);t.target===e?(this.state.values.imageWidth=i,this.state.values.imageHeight=Math.round(i/this.state.ratio)):(this.state.values.imageWidth=Math.round(r*this.state.ratio),this.state.values.imageHeight=r)}onStateValuesImageSrcChange(){const{imageSrc:t}=this.state.values;if(!t)return;const e=this.getElm("imageViewSrc");(0,o.attr)(e,"src",t);const s=new Image;s.src=t,this.state.image=s}hideFieldByOptions(){const t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach((([e,s])=>{const i=this.getElm(s);(0,o.css)(i,"display",t[e]?null:"none")}))}};(0,i.Cg)([(0,r.hook)("ready"),(0,r.watch)("state.sizeIsLocked")],d.prototype,"onChangeSizeIsLocked",null),(0,i.Cg)([(0,r.watch)("lockSize:click")],d.prototype,"onLockSizeClick",null),(0,i.Cg)([(0,r.hook)("ready"),(0,r.watch)(["state.values.imageWidth","state.values.imageHeight"])],d.prototype,"onStateValuesSizeChange",null),(0,i.Cg)([(0,r.watch)(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),(0,r.debounce)()],d.prototype,"onImageWidthChange",null),(0,i.Cg)([(0,r.hook)("ready"),(0,r.watch)("state.values.imageSrc")],d.prototype,"onStateValuesImageSrcChange",null),(0,i.Cg)([(0,r.hook)("ready")],d.prototype,"hideFieldByOptions",null),d=(0,i.Cg)([n.s],d)},32013(t){t.exports='<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>'},32014(t,e,s){"use strict";s.d(e,{k(){return o}});var i=s(17352),r=s(55186),n=s(59101);function o(t,e,s,o,a,l){return((t,e,s,o,a)=>{if(!r.J.isText(e)){if(o&&!o[e.nodeName])return!0;if(!o&&a&&a[e.nodeName])return!0}return!!t.o.cleanHTML.removeEmptyElements&&r.J.isElement(e)&&null!=e.nodeName.match(i.IS_INLINE)&&!r.J.isTemporary(e)&&0===(0,n.gj)(e.innerHTML).length&&(null==s||!r.J.isOrContains(e,s))})(t,e,l,o,a)?(r.J.safeRemove(e),!0):s}},32291(t,e,s){"use strict";s.d(e,{M(){return l},o(){return h}});var i=s(17352),r=s(449),n=s(27301),o=s(96134);const a=new Set;async function l(t,e){const s=c(t,e,!1);if(!a.has(s))return a.add(s),(0,n.S5)(t,s)}function c(t,e,s){return e=(0,r.k)(e),t.basePath+"plugins/"+e+"/"+e+(t.minified?".min":"")+"."+(s?"js":"css")}function h(t,e,s,r){try{const i=s.filter((e=>!t.has((0,o.P)(e.name))));i.length&&((t,e,s)=>{e.map((e=>{const i=e.url||c(t,e.name,!0);return(0,n.w4)(t,i).then(s).catch((()=>null))}))})(e,i,r)}catch(t){if(!i.IS_PROD)throw t}}},32332(t,e,s){"use strict";s.d(e,{s(){return c}});var i=s(66927),r=s(37923),n=s(69810),o=s(25376);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},s={},c=(e,i)=>(0,r.c)(e)?(e.map((t=>c(t,i))),t):(s[e]||(s[e]=[]),s[e].push(i),t),h=(i,...n)=>{if((0,r.c)(i))i.map((t=>h(t,...n)));else try{!e[i]&&s[i]&&(e[i]=!0,s[i].forEach((e=>e.call(t,...n))))}finally{e[i]=!1}},u=(e,s=[])=>{const r={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=s.concat(l).filter((t=>t.length));r[l]=e[l];const d=(0,i.N)(e,l);Object.defineProperty(e,l,{set(e){const s=r[l];if(!(0,n.P)(r[l],e)){h(["beforeChange","beforeChange."+c.join(".")],l,e),(0,o.Q)(e)&&u(e,c),d&&d.set?d.set.call(t,e):r[l]=e;const i=[];h(["change",...c.reduce(((t,e)=>(i.push(e),t.push("change."+i.join(".")),t)),[])],c.join("."),s,e?.valueOf?e.valueOf():e)}},get(){return d&&d.get?d.get.call(t):r[l]},enumerable:!0,configurable:!0}),(0,o.Q)(r[l])&&u(r[l],c)})),Object.defineProperty(t,"on",{value:c}))};return u(t),t}},32709(t,e,s){"use strict";s.d(e,{$r(){return n.$},_j(){return i._},uM(){return r.u}});var i=s(82317),r=s(42589),n=s(42448)},32782(t,e,s){"use strict";s.d(e,{L(){return n}});var i=s(55186),r=s(65147);function n(t,e,s){return!(!i.J.isElement(e)||!(0,r.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||s}},33087(t,e,s){"use strict";s.d(e,{y(){return n}});var i=s(64567),r=s(12041);function n(t,e){t.hookStatus(i.f.ready,(t=>{const s=(0,r.h)(t)?t:t.jodit,i=`${s.options.namespace}${t.componentName}_prop_${e}`,n=t[e];Object.defineProperty(t,e,{get:()=>s.storage.get(i)??n,set(t){s.storage.set(i,t)}})}))}},33201(t,e,s){"use strict";s.d(e,{X(){return n}});var i=s(55186),r=s(26150);function n(t,e,s){const n=i.J.closest(t.sourceImage,"a",e.editor);n?(s.imageLink=(0,r.C)(n,"href")||"",s.imageLinkOpenInNewTab="_blank"===(0,r.C)(n,"target")):(s.imageLink="",s.imageLinkOpenInNewTab=!1)}},33403(t,e,s){"use strict";s.d(e,{k(){return c}});var i=s(31635),r=s(24767),n=s(71151),o=s(66927),a=s(65147),l=s(6455);let c=class t extends l.U{className(){return"UIImageMainTab"}appendChildToContainer(){}constructor(t,e,s){super(t),this.state=e,this.handlers=s}render(){return'<div class="jodit-form__group &__editSrc">\n\t\t\t<label>~Src~</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input class="jodit-input &__imageSrc" type="text"/>\n\t\t\t\t<div class="jodit-input_group-buttons &__fixImage">\n\t\t\t\t\t\t<a class="jodit-button &__changeImage">*image*</a>\n\t\t\t\t\t\t<a class="jodit-button &__editImage">*crop*</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editTitle">\n\t\t\t<label>~Title~</label>\n\t\t\t<input type="text" class="jodit-input &__imageTitle"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlt">\n\t\t\t<label>~Alternative~</label>\n\t\t\t<input type="text" class="jodit-input &__imageAlt"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLink">\n\t\t\t<label>~Link~</label>\n\t\t\t<input type="text" class="jodit-input &__imageLink"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLinkTarget">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n\t\t\t\t<span>~Open link in new tab~</span>\n\t\t\t</label>\n\t\t</div>'}async onStateImageSrcChange(){this.getElm("imageSrc").value=this.state.values.imageSrc}onImageSrcChange(){this.state.values.imageSrc=this.getElm("imageSrc").value}onEditImageClick(t){this.handlers.openImageEditor(),t.stopPropagation()}onChangeImageClick(t){this.handlers.openImagePopup(this.getElm("changeImage")),t.stopPropagation()}onStateTitleChange(){this.getElm("imageTitle").value=this.state.values.imageTitle}onTitleChange(){this.state.values.imageTitle=this.getElm("imageTitle").value}onStateAltChange(){this.getElm("imageAlt").value=this.state.values.imageAlt}onAltChange(){this.state.values.imageAlt=this.getElm("imageAlt").value}onStateImageLinkChange(){this.getElm("imageLink").value=this.state.values.imageLink}onImageLinkChange(){this.state.values.imageLink=this.getElm("imageLink").value}onStateImageLinkOpenInNewTabChange(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}onImageLinkOpenInNewTabChange(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}hideFieldByOptions(){const t=this.j.o,e=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach((([t,s])=>{const i=this.getElm(s);(0,a.css)(i,"display",e[t]?null:"none")}));const s=this.getElm("changeImage"),i=!(!t.filebrowser.ajax.url&&!t.uploader.url);(0,a.css)(s,"display",i?null:"none");const r=this.getElm("editImage"),n=!!t.filebrowser.ajax.url&&e.useImageEditor;(0,a.css)(r,"display",n?null:"none");const o=this.getElm("fixImage");(0,a.css)(o,"display",i||n?null:"none")}};(0,i.Cg)([(0,o.w)("state.values.imageSrc")],c.prototype,"onStateImageSrcChange",null),(0,i.Cg)([(0,o.w)("imageSrc:change")],c.prototype,"onImageSrcChange",null),(0,i.Cg)([(0,o.w)("editImage:click")],c.prototype,"onEditImageClick",null),(0,i.Cg)([(0,o.w)("changeImage:click")],c.prototype,"onChangeImageClick",null),(0,i.Cg)([(0,o.w)("state.values.imageTitle")],c.prototype,"onStateTitleChange",null),(0,i.Cg)([(0,o.w)("imageTitle:change")],c.prototype,"onTitleChange",null),(0,i.Cg)([(0,o.w)("state.values.imageAlt")],c.prototype,"onStateAltChange",null),(0,i.Cg)([(0,o.w)("imageAlt:change")],c.prototype,"onAltChange",null),(0,i.Cg)([(0,o.w)("state.values.imageLink")],c.prototype,"onStateImageLinkChange",null),(0,i.Cg)([(0,o.w)("imageLink:change")],c.prototype,"onImageLinkChange",null),(0,i.Cg)([(0,o.w)("state.values.imageLinkOpenInNewTab")],c.prototype,"onStateImageLinkOpenInNewTabChange",null),(0,i.Cg)([(0,o.w)("imageLinkOpenInNewTab:change")],c.prototype,"onImageLinkOpenInNewTabChange",null),(0,i.Cg)([(0,n.A)("ready")],c.prototype,"hideFieldByOptions",null),c=(0,i.Cg)([r.s],c)},33733(t,e,s){"use strict";s.d(e,{q(){return a}});var i=s(37923),r=s(27594),n=s(80071),o=s(10067);function a(t,e,s,a){const l=new n.z(e),c=()=>{l.close(),l.destruct()};l.setContent((0,o.k)(t,{upload(t){t.files&&t.files.length&&(s.values.imageSrc=t.baseurl+t.files[0]),c()},async filebrowser(t){t&&(0,i.c)(t.files)&&t.files.length&&(s.values.imageSrc=t.files[0],c())}},s.image,c)).open((()=>(0,r.G)(a)))}},34045(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},34125(t,e,s){"use strict";s.d(e,{Ej(){return o.E},G1(){return l.G},cY(){return a.c},mH(){return r.m},xM(){return n.x},y6(){return i.y}});var i=s(73780),r=s(98228),n=s(49744),o=s(95350),a=s(91594),l=s(27594)},34248(t,e,s){"use strict";s.d(e,{t(){return l}});var i=s(31635),r=s(24767),n=s(37923),o=s(92032),a=s(80071);let l=class t extends a.z{className(){return"ContextMenu"}show(t,e,s){const i=this;i.clear(),(0,n.c)(s)&&(s.forEach((t=>{if(!t)return;const e=(0,o.$n)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction((e=>(t.exec?.call(i,e),i.clear(),i.close(),!1))),this.append(e)})),this.open((()=>({left:t,top:e,width:0,height:0})),!0))}};l=(0,i.Cg)([r.s],l)},34256(t,e,s){"use strict";s.d(e,{Fc(){return i.F},XG(){return o.X},lG(){return n.l},pT(){return r.p}});var i=s(5854),r=s(23132),n=s(58006),o=s(91560)},34446(t,e,s){"use strict";s.d(e,{X(){return i}});const i=t=>{if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},34796(t,e,s){"use strict";function i(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}s.d(e,{a(){return i}})},34899(t,e,s){"use strict";s.d(e,{Z(){return i}});class i extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},35265(t,e,s){"use strict";s.d(e,{$n(){return i.$n},SB(){return n.S},lD(){return i.lD},ss(){return r.s},ue(){return i.ue}});var i=s(92032),r=s(31202),n=s(36434)},35523(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(55186),o=s(56298),a=s(83260),l=s(71005),c=s(53048);s(41133);class h extends l.k{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}beforeDestruct(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}onStartSelection(t){const{j:e}=this;let s,i=t.target;for(;void 0===s&&i&&i!==e.editor;)s=e.e.fire((0,a.x)(t.type+"_"+i.nodeName.toLowerCase()),i,t),i=i.parentElement;"click"===t.type&&void 0===s&&i===e.editor&&e.e.fire(t.type+"Editor",i,t)}onOutsideClick(t){const e=t.target;n.J.up(e,(t=>t===this.j.editor))||c.D$.closestElement(e,c.zD)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){const{s:t}=this.j;if(!t.isCollapsed()){const e=t.current();e&&n.J.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){const{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;const{s:e}=this.j,{startContainer:s,startOffset:i}=e.range;0===i&&n.J.isText(s)&&e.select(n.J.closest(s,n.J.isBlock,this.j.editor)||s,!0)}onCopyNormalizeSelectionBound(t){const{s:e,editor:s,o:i}=this.j;i.select.normalizeSelectionBeforeCutAndCopy&&!e.isCollapsed()&&(!t||t.isTrusted&&n.J.isNode(t.target)&&n.J.isOrContains(s,t.target))&&this.jodit.s.expandSelection()}}(0,i.Cg)([r.autobind],h.prototype,"onStartSelection",null),(0,i.Cg)([(0,r.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,i.Cg)([(0,r.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,i.Cg)([(0,r.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,i.Cg)([(0,r.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,i.Cg)([(0,r.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),o.fg.add("select",h)},35541(t,e,s){"use strict";var i=s(17352),r=s(55186),n=s(56298),o=s(97369),a=s(29866),l=(s(61964),s(84182));n.fg.add("symbols",class c extends a.k{constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,n.JW)(l)}afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",(()=>{const e=t.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),s=e.querySelector(".jodit-symbols__preview"),n=e.querySelector("table").tBodies[0],a=[];for(let e=0;t.o.specialCharacters.length>e;){const s=t.c.element("tr");for(let i=0;this.__countInRow>i&&t.o.specialCharacters.length>e;i+=1,e+=1){const r=t.c.element("td"),n=t.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${e}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${i}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${t.o.specialCharacters[e]}</a>`);a.push(n),r.appendChild(n),s.appendChild(r)}n.appendChild(s)}const l=this;return t.e.on(a,"focus",(function(){s.innerHTML=this.innerHTML})).on(a,"mousedown",(function(e){r.J.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),e?.shiftKey||t.e.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(a,"mouseenter",(function(){r.J.isTag(this,"a")&&this.focus()})).on(a,"keydown",(e=>{const s=e.target;if(r.J.isTag(s,"a")){const r=parseInt((0,o.attr)(s,"-index")||"0",10),n=parseInt((0,o.attr)(s,"data-index-j")||"0",10);let c;switch(e.key){case i.KEY_UP:case i.KEY_DOWN:c=e.key===i.KEY_UP?r-l.__countInRow:r+l.__countInRow,void 0===a[c]&&(c=e.key===i.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+n:n,c>a.length-1&&(c-=l.__countInRow)),a[c]&&a[c].focus();break;case i.KEY_RIGHT:case i.KEY_LEFT:c=e.key===i.KEY_LEFT?r-1:r+1,void 0===a[c]&&(c=e.key===i.KEY_LEFT?a.length-1:0),a[c]&&a[c].focus();break;case i.KEY_ENTER:t.e.fire(s,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}})),e}))}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}})},35642(t,e,s){"use strict";function i(t){return null==t}s.d(e,{R(){return i}})},36001(t,e,s){"use strict";s(36115).T.prototype.tableAllowCellResize=!0},36115(t,e,s){"use strict";s.d(e,{T(){return r}});var i=s(17352);class r{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=i.globalDocument,this.ownerWindow=i.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=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.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}static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}}r.prototype.controls={}},36133(t,e,s){"use strict";var i=s(17352),r=s(71842),n=s(56298),o=s(65147),a=s(71005),l=s(34248),c=s(8809);s(88850),n.fg.add("xpath",class h extends a.k{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new l.t(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.J.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.j.s.focus();const s=(0,o.attr)(e.target,"-path")||"/";if("/"===s)return this.j.execCommand("selectall"),!1;try{const t=this.j.ed.evaluate(s,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1},this.tpl=(t,e,s,i)=>{const r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${i}" tabindex="-1"'>${(0,o.trim)(s)}</a></span>`),n=r.firstChild;return this.j.e.on(n,"click",this.onSelectPath.bind(this,t)).on(n,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,c.BJ)(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;const t=this.j.s.current();if(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),t){let e,s,i;r.J.up(t,(t=>{!t||this.j.editor===t||r.J.isText(t)||r.J.isComment(t)||(e=t.nodeName.toLowerCase(),s=(0,o.getXPathByElement)(t,this.j.editor).replace(/^\//,""),i=this.tpl(t,s,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(i,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}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()===i.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=i.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.J.safeRemove(this.container),delete this.menu,delete this.container}})},36291(t,e,s){"use strict";s.d(e,{D(){return n}});var i=s(17352),r=s(55186);function n(t,e,s=i.IS_BLOCK){let o=t;const a=e.editor;do{if(!o||o===a)break;if(s.test(o.nodeName))return r.J.isLeaf(o)?o:n(o.parentNode,e,/^li$/i)||o;o=o.parentNode}while(o&&o!==a);return null}},36293(t,e,s){"use strict";var i=s(56298),r=s(65147);s(39626),i.fg.add("color",(t=>{t.registerButton({name:"brush",group:"color"});const e=(e,s,i)=>{const n=(0,r.normalizeColor)(i);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:n||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:n||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}))},36327(t){t.exports='<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>'},36339(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},36434(t,e,s){"use strict";s.d(e,{S(){return m}});var i,r=s(31635),n=s(77753),o=s(22664),a=s(71842),l=s(56298),c=s(27594),h=s(97369),u=s(29780);const d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];let m=i=class t extends u.D{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(t){super(t),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",(t=>{this.__onAttach(t)})),t.hookStatus(n.f.ready,(()=>{this.__onAttach(this.j.container)})))}__onAttach(t){(0,l.My)(this.j,i).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;const t=this.j;t.e.on(t.ow,d,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;const t=this.j;t.e.off(t.ow,d,this.__hide).off(p,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.J.isHTMLElement(t.target))return;const e=(0,h.attr)(t.target,"aria-label");if(!e)return;if((0,h.attr)(t.target,"disabled"))return;if(!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;const s=t.target;this.__open((()=>{const t=(0,c.G)(s);return{x:t.left+t.width/2,y:t.top+t.height}}),e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);const s=this.j.o.showTooltipDelay||this.j.defaultTimeout;s?this.__delayShowTimeout=this.j.async.setTimeout((()=>this.__show(t,e)),s):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;const s=t();(0,h.css)(this.container,{left:s.x,top:s.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,h.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach((t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)})),this.__hide(),super.destruct()}};(0,r.Cg)([o.autobind],m.prototype,"__onMouseLeave",null),(0,r.Cg)([o.autobind],m.prototype,"__onMouseEnter",null),(0,r.Cg)([o.autobind],m.prototype,"__hide",null),(0,r.Cg)([o.autobind],m.prototype,"__hideDelay",null),m=i=(0,r.Cg)([o.component],m)},36795(t,e,s){"use strict";s.d(e,{m(){return r}});var i=s(59101);const r=t=>!!(0,i.Bq)(t.value).length||(t.error="Please fill out this field",!1)},36969(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(56298),a=s(65147),l=s(71005),c=(s(93324),s(90823));class h extends l.k{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,s){const{j:i}=this,{processPasteFromWord:r,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:o,defaultActionOnPaste:l,pasteFromWordActionList:h}=i.o;return!(!r||!(0,a.isHtmlFromWord)(e)||(n?(0,c.PU)(i,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(i=>{this.insertFromWordByType(t,e,i,s)}),h):this.insertFromWordByType(t,e,o||l,s),0))}insertFromWordByType(t,e,s,i){switch(s){case r.INSERT_AS_HTML:{e=(0,a.applyStyles)(e);const t=this.j.events?.fire("beautifyHTML",e);(0,a.isString)(t)&&(e=t);break}case r.INSERT_AS_TEXT:e=(0,a.cleanFromWord)(e);break;case r.INSERT_ONLY_TEXT:e=(0,a.stripTags)((0,a.cleanFromWord)(e))}(0,c.sX)(t,this.j,e)}}h.requires=["paste"],(0,i.Cg)([(0,n.watch)(":processHTML")],h.prototype,"processWordHTML",null),o.fg.add("pasteFromWord",h)},37075(t,e,s){"use strict";s.d(e,{n(){return a},s(){return o}});var i=s(77753),r=s(9823),n=(s(28712),s(50156));function o(t,e=!1,s="debounce"){return(o,a)=>{const l=o[a];if(!(0,r.Tn)(l))throw(0,n.z3)("Handler must be a Function");return o.hookStatus(i.f.ready,(i=>{const{async:n}=i,o=(0,r.Tn)(t)?t(i):t,l=(0,r.Et)(o)||(0,r.Qd)(o)?o:i.defaultTimeout;Object.defineProperty(i,a,{configurable:!0,value:n[s](i[a].bind(i),l,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return o(t,e,"throttle")}},37424(t,e,s){"use strict";s.d(e,{Q(){return a}});var i=s(37923),r=s(97369),n=s(36115),o=s(57023);function a(t,e){return((0,i.c)(t)?t:(0,r.keys)(t,!1).map((e=>(0,r.ConfigProto)({name:e},t[e]||{})))).map((t=>(0,o.U)(t,e||n.T.defaultOptions.controls)))}},37435(t,e,s){"use strict";s.r(e),s.d(e,{Ajax(){return p.d},Alert(){return o.Fc},Async(){return l.j},Button(){return m.$n},CommitStyle(){return k.xk},Component(){return i.uA},Confirm(){return o.pT},ContextMenu(){return n.t},Create(){return c.X},Dialog(){return o.lG},Dom(){return h.J},EventEmitter(){return u.bk},EventHandlersStore(){return u.d$},Eventify(){return u.h5},FileBrowser(){return a.V},Helpers(){return r},History(){return v.B},Icon(){return m.In},ImageEditor(){return b.n},LazyWalker(){return h.p},Plugin(){return d.k},PluginSystem(){return x.$},Popup(){return m.zD},ProgressBar(){return m.z2},Prompt(){return o.XG},Response(){return p.Y},STATUSES(){return i.f},Selection(){return k.LN},Snapshot(){return _.F},StatusBar(){return w.e},Table(){return C.X},ToolbarButton(){return E.IB},ToolbarCollection(){return S.Q},ToolbarContent(){return E.P1},ToolbarEditorCollection(){return T.b},ToolbarSelect(){return E.q4},UIBlock(){return m.Yh},UIButton(){return m.lD},UIButtonGroup(){return m.ss},UIButtonState(){return m.ue},UICheckbox(){return m.cY},UIElement(){return m.D$},UIFileInput(){return m.nE},UIForm(){return m.XV},UIGroup(){return m.Ue},UIInput(){return m.tS},UIList(){return m.z4},UIMessages(){return y.N},UISelect(){return m.$6},UISeparator(){return m.CP},UISpacer(){return m.bk},UITextArea(){return m.F0},UITooltip(){return m.SB},Uploader(){return I.d},View(){return g.S},ViewComponent(){return i.vG},ViewWithToolbar(){return f.T},defaultNameSpace(){return u.Xr},observable(){return u.sH}});var i=s(77753),r=s(65147),n=s(34248),o=s(34256),a=s(19627),l=s(64890),c=s(40594),h=s(71842),u=s(50025),d=s(71005),p=s(53883),m=s(53048),g=s(77782),f=s(14961),v=s(69996),_=s(58770),b=s(53804),y=s(91902),w=s(62870),C=s(11648),E=s(5832),S=s(97394),T=s(90428),I=s(26538),x=s(77402),k=s(87332)},37474(t,e,s){"use strict";s.d(e,{u(){return l}});var i=s(64890),r=s(64567),n=s(56298),o=s(65147);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,o.kebabCase)(((0,o.isFunction)(this.className)?this.className():"")||(0,o.getClassName)(this))),this.__componentName}getFullElName(t,e,s){const i=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),i.push("__"+t)),e&&(i.push("_",e),i.push("_",(0,o.isVoid)(s)?"true":""+s)),i.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,o.get)(t,e||this)}get isReady(){return this.componentStatus===r.f.ready}get isDestructed(){return this.componentStatus===r.f.destructed}get isInDestruct(){return r.f.beforeDestruct===this.componentStatus||r.f.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.f.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new i.j,this.ownerWindow=window,this.__componentStatus=r.f.beforeInit,this.uid="jodit-uid-"+(0,n.w9)()}destruct(){this.setStatus(r.f.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const s=Object.getPrototypeOf(this);s&&(0,o.isFunction)(s.setStatusComponent)&&s.setStatusComponent(t,e);const i=a.get(this),r=i?.[t];r&&r.length&&r.forEach((t=>t(e)))}hookStatus(t,e){let s=a.get(this);s||(s={},a.set(this,s)),s[t]||(s[t]=[]),s[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=r.f},37649(t,e,s){"use strict";s.d(e,{g(){return l},x(){return a}});var i=s(17352),r=s(55186),n=(s(28712),s(87332)),o=s(97621);const a={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},l={[a.START]:{exec(t){const{element:e,jodit:s,style:i,mode:l,collapsed:c}=t;if((0,o.iu)(e,s.editor)||!c&&r.J.isEmptyContent(e))return{...t,next:a.END};const h=(0,o.AS)(i,e,s.editor)||(0,o.G6)(i,e);if(h)return{...t,next:a.ELEMENT,element:h};const u=(0,o.$s)(i,e,s.editor);return i.elementIsList&&r.J.isList(u)?{...t,next:a.LIST}:u?{...t,next:a.EXTRACT}:{...t,next:l!==n.OJ?a.UNWRAP_CHILDREN:a.END}}},[a.LIST]:{exec(t){const{element:e,jodit:s,mode:o}=t;if(o!==n.DI&&o!==n.OJ&&o!==n.dj)return{...t,next:a.END};const l=r.J.closest(e,"li",s.editor);return l&&r.J.closest(e,i.LIST_TAGS,s.editor)?{...t,element:l,next:a.TOGGLE_LIST}:{...t,next:a.END}}},[a.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,o.ks)(t.style,t.element,t.jodit,t.mode),next:a.END})},[a.EXTRACT]:{exec(t){const{element:e,jodit:s,style:i}=t,n=(0,o.$s)(i,e,s.editor);return!i.elementIsBlock&&i.options.attributes?.style&&r.J.isBlock(n)?{...t,next:a.WRAP}:(i.elementIsBlock||(0,o.yP)(n,e,s),{...t,element:n,next:a.ELEMENT})}},[a.UNWRAP_CHILDREN]:{exec(t){const{element:e,style:s}=t;return(0,o.tm)(s,e)?{...t,mode:n.OJ,next:a.END}:{...t,next:a.WRAP}}},[a.WRAP]:{exec(t){const{element:e,jodit:s,style:i}=t,r=(0,o.LV)(i,e,s);return{...t,next:i.elementIsList?a.END:a.CHANGE,mode:n.Zk,element:r}}},[a.ELEMENT]:{exec(t){const{style:e,element:s,jodit:i}=t;return(0,o.Yx)(e,s,i,n.DI,!0)!==n.DI?{...t,next:a.CHANGE}:r.J.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,next:a.END}}},[a.CHANGE]:{exec(t){const{style:e,element:s,jodit:i,mode:l}=t,c=(0,o.Yx)(e,s,i,t.mode);return l!==n.Zk&&c===n.Ag&&!s.attributes.length&&r.J.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,mode:c,next:a.END}}},[a.UNWRAP]:{exec:t=>t.element.attributes.length&&r.J.isTag(t.element,t.style.element)?{...t,next:a.REPLACE_DEFAULT}:(r.J.unwrap(t.element),{...t,mode:n.OJ,next:a.END})},[a.REPLACE_DEFAULT]:{exec:t=>(r.J.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:n.dj,next:a.END})},[a.END]:{exec:t=>t}}},37873(t,e,s){"use strict";var i=s(31635),r=s(66927),n=s(55186),o=s(56298),a=s(84976),l=s(71005),c=(s(71096),s(46173)),h=s(50834),u=s(25202);class d extends l.k{constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}afterInit(t){const{commands:e}=t.o.speechRecognize;e&&((0,o.JW)(u),(0,a.HP)(e,!1).forEach((s=>{s.split("|").forEach((i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=e[s];const r=t.i18n(i);r!==i&&r.split("|").forEach((t=>{this._commandToWord[t.trim().toLowerCase()]=e[s].trim()}))}))})))}beforeDestruct(t){n.J.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(t){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout((()=>{n.J.safeRemove(this.messagePopup)}),1e3),this.messagePopup.innerText=t+"|"}onSpeechRecognizeResult(t){this.j.async.clearTimeout(this.__hidePopupTimeout),n.J.safeRemove(this.messagePopup);const{j:e}=this,{s}=e;if(!this._checkCommand(t)){const{range:i}=s,r=s.current();if(s.isCollapsed()&&n.J.isText(r)&&n.J.isOrContains(e.editor,r)&&r.nodeValue){const n=r.nodeValue;r.nodeValue=n+(/[\u00A0 ]\uFEFF*$/.test(n)?"":" ")+t,i.setStartAfter(r),s.selectRange(i),e.synchronizeValues()}else s.insertHTML(t)}}_checkCommand(t){return t=t.toLowerCase().replace(/\./g,""),!!this._commandToWord[t]&&((0,h.F)(this.j,this._commandToWord[t]),!0)}}(0,i.Cg)([(0,r.w)(":speechRecognizeProgressResult")],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.Cg)([(0,r.w)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),c.x.plugins.add("speech-recognize",d)},37923(t,e,s){"use strict";function i(t){return Array.isArray(t)}s.d(e,{c(){return i}})},38046(t,e,s){"use strict";s.d(e,{_(){return n}});var i=s(55186),r=s(71274);function n(t){return!(!t||i.J.isEmptyTextNode(t)||i.J.isTemporary(t)||(0,r.r)(t))}},38101(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(55186),o=s(8453),a=s(56298),l=s(26328),c=s(29866),h=(s(74646),s(15396));class u extends c.k{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new o.p(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){const{jodit:t}=this,e=(0,h.Zd)(this.j.o.cleanHTML.allowTags),s=(0,h.Zd)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(i=>(0,h.eZ)(t,i,e,s,this.currentSelectionNode))).on("end",(t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,h.w5)(this.j):(0,h.hk)(this.j),!1}onBeforeSetNativeEditorValue(t){const[e,s]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return e.innerHTML=t.value,this.onSafeHTML(e),t.value=e.innerHTML,(0,l.t)(e,{safeJavaScriptLink:!0,removeOnError:!0}),n.J.safeRemove(s),!1}onSafeHTML(t){(0,l.t)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,i.Cg)([(0,r.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),(0,i.Cg)([(0,r.hook)("ready")],u.prototype,"startWalker",null),(0,i.Cg)([(0,r.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),(0,i.Cg)([(0,r.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),(0,i.Cg)([(0,r.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),a.fg.add("cleanHtml",u)},38271(t,e,s){"use strict";s.d(e,{Y(){return m}});var i=s(17352),r=s(55186),n=s(56298),o=(s(9823),s(59678)),a=s(95350),l=s(449),c=s(97369),h=s(38322),u=s(72197),d=s(12043);const p="toggleAttributes";function m(t,e,s,m,f=!1){if(!f&&t.isApplied(e,p))return m;!f&&t.setApplied(e,p);const{attributes:v}=t.options;return v&&(0,a.E)(v)>0&&Object.keys(v).forEach((a=>{const p=v[a];switch(a){case"style":m=((t,e,s,a,c,p)=>(Object.keys(s).forEach((m=>{const f=a.style.getPropertyValue((0,l.k)(m)),v=s[m];if(""!==f||null!=v){if(((t,e,s)=>{const o=t.create.element(e.tagName.toLowerCase());o.style.cssText=e.style.cssText;const a=(t=>{if(void 0!==(0,u.m)(t,"shadowRoot"))return(0,u.m)(t,"shadowRoot");const e=(0,n.My)(t),s=i.globalDocument.createElement("iframe");(0,h.A)(s,{width:0,height:0,position:"absolute",border:0}),s.src="about:blank",e.appendChild(s);const r=s.contentWindow?.document,o=r?r.body:t.od.body;return(0,u.m)(t,"shadowRoot",o),o})(t);a.appendChild(o);const l=(0,h.A)(o,s);return r.J.safeRemove(o),l})(e,a,m)===(0,o.iy)(m,v)){if(!f)return;return!c&&(0,h.A)(a,m,null),void(p=g(t,a,p=d.Ag))}p=d.PL,c||((0,h.A)(a,m,v),p=g(t,a,p))}})),p))(t,s,p,e,f,m);break;case"className":case"class":m=((t,e,s,i,r)=>{const n=t.e.fire.bind(t.e,d.ar+"AfterToggleAttribute");return s.classList.contains(""+e)?(i=d.Ag,r||(s.classList.remove(e),0===s.classList.length&&((0,c.attr)(s,"class",null),n(i,s,"class",null)))):(i=d.PL,r||(s.classList.add(e),n(i,s,"class",e))),i})(s,p,e,m,f);break;default:m=((t,e,s,i,r,n)=>{const o=t.e.fire.bind(t.e,d.ar+"AfterToggleAttribute");return(0,c.attr)(s,i)===e?(!r&&(0,c.attr)(s,i,null),n=d.Ag,!r&&o(n,s,i,e),n):(n=d.PL,r||((0,c.attr)(s,i,e),o(n,s,i,e)),n)})(s,p,e,a,f,m)}})),m}function g(t,e,s){return(0,c.attr)(e,"style")||((0,c.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(r.J.unwrap(e),s=d.OJ)),s}},38309(t,e,s){"use strict";var i=s(56298);s(31686),i.fg.add("video",(t=>{t.registerButton({name:"video",group:"media"})}))},38322(t,e,s){"use strict";s.d(e,{A(){return l},a(){return c}});var i=s(9810),r=s(25376),n=s(59678),o=s(83260),a=s(449);function l(t,e,s,c=!1){if((0,i.L)(s)&&(c=s,s=void 0),(0,r.Q)(e)||void 0!==s){const i=(t,e,s)=>{void 0===(s=(0,n.n8)(e,s))||null!=s&&l(t,e,!0)===(0,n.iy)(e,s)||(t.style[e]=s)};if((0,r.Q)(e)){const s=Object.keys(e);for(let r=0;s.length>r;r+=1)i(t,(0,o.x)(s[r]),e[s[r]])}else i(t,(0,o.x)(e),s);return""}const h=(0,a.k)(e),u=t.ownerDocument||document,d=!!u&&(u.defaultView||u.parentWindow),p=t.style[e];let m="";return void 0!==p&&""!==p?m=p:d&&!c&&(m=d.getComputedStyle(t).getPropertyValue(h)),n.b$.test(e)&&/^[-+]?[0-9.]+px$/.test(""+m)&&(m=parseInt(""+m,10)),(0,n.iy)(e,m)}const c=t=>{"block"===l(t,"display")&&l(t,"display","");const{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},38373(t,e,s){"use strict";var i=s(55186),r=s(56298),n=s(38322),o=s(931),a=s(36115),l=s(3843),c=s.n(l),h=s(94628);const u="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,e,s,i)=>{let r=(0,n.A)(s,e);return r===i[e]&&(r=s.parentNode&&s!==t.editor&&s.parentNode!==t.editor?p(t,e,s.parentNode,i):void 0),r};a.T.prototype.controls.copyformat={exec(t,e,{button:s}){if(e){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{const s={},r=i.J.up(e,(t=>t&&!i.J.isText(t)),t.editor)||t.editor,o=t.createInside.span();t.editor.appendChild(o),d.forEach((t=>{s[t]=(0,n.A)(o,t)})),o!==t.editor&&i.J.safeRemove(o);const a=((t,e,s)=>{const i={};return e&&d.forEach((r=>{i[r]=p(t,r,e,s),r.match(/border(Style|Color)/)&&!i.borderWidth&&(i[r]=void 0)})),i})(t,r,s),l=()=>{t.buffer.delete(u);const e=t.s.current();e&&(i.J.isTag(e,"img")?(0,n.A)(e,a):t.s.commitStyle({attributes:{style:a}})),t.e.off(t.editor,"mouseup."+u)};t.e.on(t.editor,"mouseup."+u,l),t.buffer.set(u,!0)}s.update()}},isActive(t){return t.buffer.exists(u)},tooltip:"Paint format"},r.fg.add("copyformat",(t=>{t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.JW)(h)})),o.I.set("copyformat",c())},38681(t){t.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},39053(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},ua(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},39147(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(37435);s(36001);const h="table_processor_observer-resize";class u extends c.Plugin{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{o.J.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(h),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,s=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)s=this.workTable.parentNode.getBoundingClientRect(),this.minX=s.left,this.maxX=this.minX+s.width;else{const t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,((s,i,n)=>{t[1]===n&&(e=s.getBoundingClientRect(),this.minX=Math.max(e.left+r.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===n&&(e=s.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-r.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX;const s=(0,l.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?s.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:s.left)+"px";const i=this.j.s.sel;i&&i.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[],s=this.module;s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const i=(0,l.call)(this.isRTL?o.J.prev:o.J.next,this.workCell,o.J.isCell,this.workCell.parentNode);s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,i)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,s=(0,l.getContentWidth)(this.workTable.parentNode,this.j.ew),i=!this.wholeTable;if(this.isRTL?!i:i)this.workTable.style.width=(e+t)/s*100+"%";else{const i=this.isRTL?"marginRight":"marginLeft",r=parseInt(this.j.ew.getComputedStyle(this.workTable)[i]||"0",10);this.workTable.style.width=(e-t)/s*100+"%",this.workTable.style[i]=(r+t)/s*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=o.J.up(t,(t=>o.J.isTag(t,"table")),this.j.editor)}calcHandlePosition(t,e,s=0,i=0){const n=(0,l.offset)(e,this.j,this.j.ed);if(s>r.NEARBY&&n.width-r.NEARBY>s)return void this.hideResizeHandle();const a=(0,l.offset)(this.j.workplace,this.j,this.j.od,!0),c=(0,l.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(s>r.NEARBY?n.left+n.width:n.left)-a.left+i+"px",Object.assign(this.resizeHandler.style,{height:c.height+"px",top:c.top-a.top+"px"}),this.showResizeHandle(),s>r.NEARBY){const t=(0,l.call)(this.isRTL?o.J.prev:o.J.next,e,o.J.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,l.call)(this.isRTL?o.J.next:o.J.prev,e,o.J.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,l.$$)("table",t.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const e=o.J.up(this.workCell,(t=>o.J.isTag(t,"table")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{const e=this.module;e.getAllSelectedCells().forEach((s=>{e.removeSelection(s),e.normalizeTable(o.J.closest(s,"table",t.editor))}))}))}observe(t){(0,l.dataBind)(t,h)||((0,l.dataBind)(t,h,!0),this.j.e.on(t,"mouseleave.resize-cells",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((e=>{if(this.j.isLocked)return;const s=o.J.up(e.target,o.J.isCell,t);s&&this.calcHandlePosition(t,s,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}}(0,i.Cg)([n.autobind],u.prototype,"onHandleMouseDown",null),(0,i.Cg)([n.autobind],u.prototype,"onMouseMove",null),(0,i.Cg)([n.autobind],u.prototype,"onMouseUp",null),(0,i.Cg)([n.autobind],u.prototype,"observe",null),a.fg.add("resizeCells",u)},39199(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},39344(t,e,s){"use strict";s.d(e,{l(){return i}});const i=(...t)=>t.filter((t=>t.length)).map((t=>t.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/")},39611(t,e,s){"use strict";s.d(e,{V(){return n},i(){return r}});var i=s(37923);const r=t=>(0,i.c)(t.buttons);function n(t,e){const s=e.getRegisteredButtonGroups();return new Set(t.reduce(((t,e)=>(r(e)?t=t.concat([...e.buttons,...s[e.group]??[]]):t.push(e),t)),[]))}},39626(t,e,s){"use strict";var i=s(55186),r=s(65147),n=s(931),o=s(36115),a=s(16116),l=s(45674);n.I.set("brush",s.n(l)()),o.T.prototype.controls.brushCell={isVisible(t){return!t.o.disablePlugins.includes("color")},icon:"brush",popup(t,e,s){if(!(0,r.isJoditObject)(t))return;const i=t.getInstance("Table",t.o).getAllSelectedCells();if(!i.length)return!1;const n=e=>(0,a.Kn)(t,(n=>{i.forEach((t=>{(0,r.css)(t,e,n)})),t.lock(),t.synchronizeValues(),s(),t.unlock()}),(0,r.css)(i[0],e));return(0,a.Zg)(t,[{name:"Background",content:n("background-color")},{name:"Text",content:n("color")},{name:"Border",content:n("border-color")}])},tooltip:"Background"},o.T.prototype.controls.brush={isVisible(t){return!t.o.disablePlugins.includes("color")},update(t,e){const s=(0,r.dataBind)(e,"color"),n=(s,i)=>{i&&i!==""+(0,r.css)(t.editor,s)&&(e.state.icon.fill=i)};if(s){const t=(0,r.dataBind)(e,"color");return void n("color"===t?t:"background-color",s)}const o=t.s.current();if(o&&!e.state.disabled){const e=i.J.closest(o,i.J.isElement,t.editor)||t.editor;n("color",""+(0,r.css)(e,"color")),n("background-color",""+(0,r.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(t,e,s,n){let o="",l="",c=[],h=null;return e&&e!==t.editor&&i.J.isNode(e)&&(i.J.isElement(e)&&t.s.isCollapsed()&&!i.J.isTag(e,new Set(["br","hr"]))&&(h=e),i.J.up(e,(t=>{if(i.J.isHTMLElement(t)){const e=(0,r.css)(t,"color",!0),s=(0,r.css)(t,"background-color",!0);if(e)return o=""+e,!0;if(s)return l=""+s,!0}}),t.editor)),c=[{name:"Background",content:(0,a.Kn)(t,(e=>{h?h.style.backgroundColor=e:t.execCommand("background",!1,e),(0,r.dataBind)(n,"color",e),(0,r.dataBind)(n,"color-mode","background"),s()}),l)},{name:"Text",content:(0,a.Kn)(t,(e=>{h?h.style.color=e:t.execCommand("forecolor",!1,e),(0,r.dataBind)(n,"color",e),(0,r.dataBind)(n,"color-mode","color"),s()}),o)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.Zg)(t,c,h)},exec(t,e,{button:s}){const n=(0,r.dataBind)(s,"color-mode"),o=(0,r.dataBind)(s,"color");if(!n)return!1;if(e&&e!==t.editor&&i.J.isNode(e)&&i.J.isElement(e))switch(n){case"color":e.style.color=o;break;case"background":e.style.backgroundColor=o}else t.execCommand("background"===n?n:"forecolor",!1,o)},tooltip:"Fill color or set the text color"}},39858(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},40037(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},40080(t,e,s){"use strict";s.d(e,{Mr(){return n},Op(){return a},Xm(){return o}});var i=s(71842),r=s(38322);function n(t,e){e&&"normal"!==e?"center"!==e?((0,r.A)(t,"float",e),(0,r.a)(t)):(0,r.A)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.A)(t,"float")&&-1!==["right","left"].indexOf((""+(0,r.A)(t,"float")).toLowerCase())&&(0,r.A)(t,"float",""),(0,r.a)(t))}function o(t){i.J.each(t,(t=>{i.J.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))}function a(t,e){if(i.J.isNode(e)&&i.J.isElement(e))switch(o(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},40594(t,e,s){"use strict";s.d(e,{X(){return i.X}});var i=s(92852)},40677(t,e,s){"use strict";s.d(e,{h(){return a}});var i=s(37923),r=s(12461),n=s(25376),o=s(98253);function a(t,e,s){if(!(0,o.K)(t)||!t.length)return;const a=t.split(".");let l=s,c=a[0];for(let t=0;a.length-1>t;t+=1)c=a[t],(0,i.c)(l[c])||(0,n.Q)(l[c])||(l[c]=(0,r.k)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},41111(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},41133(t,e,s){"use strict";s(36115).T.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},41159(t,e,s){"use strict";s.d(e,{y(){return n}});var i=s(55186),r=s(641);function n(t,e,s,n){const o="br"===s.toLowerCase(),{createInside:a}=e,l=a.element(s),c=a.element("br");return o||l.appendChild(c),n&&n.cssText&&l.setAttribute("style",n.cssText),i.J.after(t,l),i.J.before(o?l:c,t),(0,r.$)(l,e.editor,e.ed),l}},41324(e){"use strict";e.exports=t},42448(t,e,s){"use strict";s.d(e,{$(){return n}});var i=s(34796),r=s(44210);const n=(...t)=>((0,i.a)(Array.from)?Array.from:(0,r.c)("Array.from")??Array.from).apply(Array,t)},42589(t,e,s){"use strict";function i(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}s.d(e,{u(){return i}})},42898(t,e,s){"use strict";s.d(e,{C(){return o}});var i=s(17352),r=s(71842),n=s(72874);function o(t,e,s){let o=!1;const{setCursorBefore:a,setCursorIn:l}=t.s;let c=r.J.closest(e,r.J.isElement,t.editor);if(!c||!r.J.isEmpty(c))return!1;const h=r.J.findNotEmptyNeighbor(e,s,t.editor);do{if(!c||!r.J.isEmpty(c)||r.J.isCell(c))break;{r.J.after(c,e);const s=r.J.closest(c,(t=>r.J.isElement(t)&&t!==c),t.editor);r.J.safeRemove(c),o=!0,c=s}}while(c);return!(!o||!(0,n.a)(t,e,s))||(!h||r.J.isText(h)||r.J.isTag(h,i.INSEPARABLE_TAGS)?a(e):l(h,!s),o)}},43218(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43327(t,e,s){"use strict";s.d(e,{E(){return o}});var i=s(17352),r=s(55186),n=s(81779);function o(t,e,s){let n=e,o=n;for(;n&&!r.J.findNotEmptySibling(n,s)&&n.parentElement!==t.editor;)n=n.parentElement,o=n;if(r.J.isElement(o)&&r.J.isContentEditable(o,t.editor)){const n=r.J.findNotEmptySibling(o,s);if(n&&(((t,e,s,n)=>{const o=r.J.isTag(s,i.LIST_TAGS),l=r.J.isTag(e,i.LIST_TAGS),c=(t,e)=>e?t.firstElementChild:t.lastElementChild;return l?(s=t.createInside.element(t.o.enterBlock),r.J.before(e,s),a(t,c(e,n),s,n)):!(!s||!o||l)&&a(t,e,c(s,!n),n)})(t,o,n,s)||a(t,o,n,s)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,s,i){if(e&&r.J.isElement(s)){r.J.moveContent(e,s,!i,(0,n.g)(t));let o=e;for(;o&&o!==t.editor&&r.J.isEmpty(o);){const t=o.parentElement;r.J.safeRemove(o),o=t}return!0}return!1}},43431(t,e,s){"use strict";s.d(e,{h(){return i}});class i{constructor(){this.__map=new Map}on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let s;return this.__map.has(t)&&this.__map.get(t)?.forEach((t=>{s=t(...e)})),s}}},43655(t,e,s){"use strict";s(36115).T.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}}},44210(t,e,s){"use strict";s.d(e,{c(){return a}});var i=s(17352),r=s(69052),n=s(16841);const o={};function a(t){if(!(t in o)){const e=i.globalDocument.createElement("iframe");try{if(e.src="about:blank",i.globalDocument.body.appendChild(e),!e.contentWindow)return null;const s=(0,n.J)(t,e.contentWindow),a=(0,n.J)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,r.T)(s)&&(o[t]=s.bind(a))}catch(t){if(!i.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return o[t]??null}},44636(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44921(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(98434);s(36115).T.prototype.controls.preview={icon:"eye",command:"preview",mode:i.MODE_SOURCE+i.MODE_WYSIWYG,tooltip:"Preview"},r.fg.add("preview",(t=>{t.registerButton({name:"preview"}),t.registerCommand("preview",((e,s,i)=>{const r=t.dlg();r.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);const[,o]=(0,n.u)(t,i,"px",r.getElm("content"));r.e.on(r,"afterClose",o)}))}))},45062(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45244(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45674(t){t.exports='<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>'},46079(t,e,s){"use strict";var i=s(17352),r=s(71842),n=s(56298),o=s(97369),a=(s(97767),s(3392));const l=(t,e,s,i)=>{if(!e)return;if(t.has(e))return;const r=(0,a.i)(s.o.direction,e);t.add(e);let n=e.style[r]?parseInt(e.style[r],10):0;n+=s.o.indentMargin*("outdent"===i?-1:1),e.style[r]=n>0?n+"px":"",(0,o.attr)(e,"style")||(0,o.attr)(e,"style",null)};n.fg.add("indent",(t=>{t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const e=e=>{const s=new Set,{enter:n,enterBlock:a}=t.o,c=n.toLowerCase()===i.BR,h=t.s.current();if(c&&t.s.isCollapsed()&&h){const i=r.J.wrapNextInline(h,a,t);return l(s,i,t,e),!1}return t.s.eachSelection((i=>{t.s.save();let h=!!i&&r.J.up(i,r.J.isBlock,t.editor);if(!h&&i&&(h=(0,o.call)(c?r.J.wrapNextInline:r.J.wrapInline,i,c?a:n.toLowerCase(),t)),!h)return t.s.restore(),!1;l(s,h,t,e),t.s.restore()})),t.synchronizeValues(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}))},46173(t,e,s){"use strict";s.d(e,{x(){return Jodit}});var i,r=s(31635),n=s(17352),o=s(22664),a=s(56298),l=s(65147),c=s(53883),h=s(58597),u=s(36115),d=s(37435);const p="data-jodit-default-style-display",m="data-jodit-default-classes";let Jodit=i=class Jodit extends d.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((t=>{this.hookStatus("ready",(()=>t(this)))}))}static get ready(){return new Promise((t=>{a.RR.on("joditready",t)}))}get text(){if(this.editor)return this.editor.innerText||"";const t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:u.T.defaultOptions.defaultTimeout}static atom(t){return(0,l.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,l.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return u.T.defaultOptions}get createInside(){return new d.Create((()=>this.ed),this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const t=this,e=(0,l.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach(((s,i)=>{const r=e.baseurl+s;e.isImages&&e.isImages[i]?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${r}' title='${r}'>${r}</a>`))}))}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){const t=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){const e={value:t};this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let s;if(s=this.e.fire("beforeGetValueFromEditor",e),void 0!==s)return s;s=this.getNativeEditorValue().replace(n.INVISIBLE_SPACE_REG_EXP(),""),t&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===s&&(s="");const i={value:s};return this.e.fire("afterGetValueFromEditor",i,e),i.value}setEditorValue(t){const e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,l.isString)(e)&&(t=e),!this.editor)return void(void 0!==t&&this.__setElementValue(t));if(!(0,l.isString)(t)&&!(0,l.isVoid)(t))throw(0,l.error)("value must be string");(0,l.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");const s=this.getElementValue(),i=this.getEditorValue();if(!this.__isSilentChange&&s!==i&&n.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(i),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",i,s),this.e.fire(this.history,"change",i,s)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(t){if(!(0,l.isString)(t))throw(0,l.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){const e={value:t},s=this.e.fire("beforeSetElementValue",e);(0,l.callPromise)(s,(()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)}))}}registerCommand(t,e,s){const i=t.toLowerCase();let r=this.commands.get(i);if(void 0===r&&(r=[],this.commands.set(i,r)),r.push(e),!(0,l.isFunction)(e)){const r=this.o.commandToHotkeys[i]||this.o.commandToHotkeys[t]||e.hotkeys;r&&this.registerHotkeyToCommand(r,i,s?.stopPropagation)}return this}registerHotkeyToCommand(t,e,s=!0){const i=(0,l.asArray)(t).map(l.normalizeKeyAliases).map((t=>t+".hotkey")).join(" ");this.e.off(i).on(i,((t,i)=>(i&&(i.shouldStop=s??!0),this.execCommand(e))))}execCommand(t,e,s,...i){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(t))return;let r;if(t=t.toLowerCase(),r=this.e.fire("beforeCommand"+(0,l.ucfirst)(t),e,s,...i),!1!==r&&(r=this.e.fire("beforeCommand",t,e,s,...i)),!1!==r&&(r=this.__execCustomCommands(t,e,s,...i)),!1!==r){this.s.focus();try{r=this.nativeExecCommand(t,e,s)}catch(t){if(!n.IS_PROD)throw t}}return this.e.fire("afterCommand",t,e,s),this.__imdSynchronizeValues(),r}nativeExecCommand(t,e,s){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,s)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,s,...i){t=t.toLowerCase();const r=this.commands.get(t);if(void 0!==r){let n;return r.forEach((r=>{let o;o=(0,l.isFunction)(r)?r:r.exec;const a=o.call(this,t,e,s,...i);void 0!==a&&(n=a)})),n}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===n.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==n.MODE_SPLIT)return this.getMode();const t=this.od.activeElement;return t&&(t===this.iframe||d.Dom.isOrContains(this.editor,t)||d.Dom.isOrContains(this.toolbar.container,t))?n.MODE_WYSIWYG:n.MODE_SOURCE}setMode(t){const e=this.getMode(),s={mode:parseInt(""+t,10)},i=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",s)&&(this.__mode=[n.MODE_SOURCE,n.MODE_WYSIWYG,n.MODE_SPLIT].includes(s.mode)?s.mode:n.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),i.forEach((t=>{this.container.classList.remove(t)})),this.container.classList.add(i[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[n.MODE_SOURCE,n.MODE_WYSIWYG,this.o.useSplitMode?n.MODE_SPLIT:9].includes(t+1)?t+=1:t=n.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.disabled=t;const e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",""+t),this.container.classList.toggle("jodit_disabled",t),this.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==n.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,l.ConfigProto)(t||{},u.T.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(t,e){super(e,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=n.MODE_WYSIWYG,this.__callChangeCount=0,this.__isSilentChange=!1,this.__elementToPlace=new Map;try{const e=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);if(i.isJoditAssigned(e))return e.component}catch(t){if(!n.IS_PROD)throw t;throw this.destruct(),t}this.setStatus(d.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(t,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),a.VF[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new d.Selection(this);const s=this.beforeInitHook();(0,l.callPromise)(s,(()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.fg.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const s=this.addPlace(t,e);a.VF[this.id]=this,(0,l.callPromise)(s,(()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(d.STATUSES.ready),this.e.fire("afterConstructor",this))}))}))}addPlace(t,e){const s=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),s.attributes&&(0,l.toArray)(s.attributes).forEach((t=>{const s=t.name;let i=t.value;void 0===u.T.defaultOptions[s]||e&&void 0!==e[s]||(-1!==["readonly","disabled"].indexOf(s)&&(i=""===i||"true"===i),/^[0-9]+(\.)?([0-9]+)?$/.test(""+i)&&(i=Number(i)),this.options[s]=i)}));let i=this.c.div("jodit-container");i.classList.add("jodit"),i.classList.add("jodit-container"),i.classList.add("jodit_theme_"+(this.o.theme||"default")),g(this.o.className,i),this.o.containerStyle&&(0,l.css)(i,this.o.containerStyle);const{styleValues:r}=this.o;Object.keys(r).forEach((t=>{const e=(0,l.kebabCase)(t);i.style.setProperty("--jd-"+e,r[t])})),i.setAttribute("contenteditable","false");let n=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(s.nodeName)&&(i=s,s.setAttribute(m,""+s.className),n=i.innerHTML,i.innerHTML=""),i.classList.add("jodit_inline"),i.classList.add("jodit-container")),s!==i&&(s.style.display&&s.setAttribute(p,s.style.display),s.style.display="none");const o=this.c.div("jodit-workplace",{contenteditable:!1});i.appendChild(o),s.parentNode&&s!==i&&s.parentNode.insertBefore(i,s),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:this});const a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});o.appendChild(a);const c={editor:a,element:s,container:i,workplace:o,statusbar:new d.StatusBar(this,i),options:this.isReady?(0,l.ConfigProto)(e||{},u.T.defaultOptions):this.options,history:new d.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());const h=this.__initEditor(n),f=this.options;return(0,l.callPromise)(h,(()=>{f.enableDragAndDropFileToEditor&&f.uploader&&(f.uploader.url||f.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)}))}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(n.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){const e=this.__createEditor();return(0,l.callPromise)(e,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}}))}__createEditor(){const t=this.editor,e=this.e.fire("createEditor",this);return(0,l.callPromise)(e,(()=>{this.isInDestruct||((!1===e||(0,l.isPromise)(e))&&d.Dom.safeRemove(t),g(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",(()=>{this.setEditorValue()})).on("focus",(()=>{this.editorIsActive=!0})).on("blur",(()=>this.editorIsActive=!1)),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout)))}))}__prepareWYSIWYGEditor(){const{editor:t}=this;if(this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t),this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.e.on(t,"mousedown touchstart focus",(()=>{const e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(t=>{if(!this.o.readonly&&!this.__isSilentChange&&!(t instanceof this.ew.KeyboardEvent&&t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}}))}fetch(t,e){const s=new c.d({url:t,...e},this.o.defaultAjaxOptions),i=()=>{this.e.off("beforeDestruct",i),this.progressbar.progress(100).hide(),s.destruct()};this.e.one("beforeDestruct",i),this.progressbar.show().progress(30);const r=s.send();return r.finally(i).catch((()=>null)),r}destruct(){if(this.isInDestruct)return;this.setStatus(d.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,o.cached)(this,"storage")?.clear(),(0,o.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);const t=this.editor?this.getEditorValue():"";this.places.forEach((({container:e,workplace:s,statusbar:i,element:r,iframe:n,editor:o,history:a})=>{if(r){if(r!==e)if(r.hasAttribute(p)){const t=(0,l.attr)(r,p);t&&(r.style.display=t,r.removeAttribute(p))}else r.style.display="";else r.hasAttribute(m)&&(r.className=(0,l.attr)(r,m)||"",r.removeAttribute(m));r.hasAttribute("style")&&!(0,l.attr)(r,"style")&&r.removeAttribute("style"),i.destruct(),this.e.off(e),this.e.off(r),this.e.off(o),d.Dom.safeRemove(s),d.Dom.safeRemove(o),e!==r&&d.Dom.safeRemove(e),Object.defineProperty(r,"component",{enumerable:!1,configurable:!0,value:null}),d.Dom.safeRemove(n),e===r&&(r.innerHTML=t),a.destruct()}})),this.places.length=0,this.currentPlace={},delete a.VF[this.id],super.destruct()}};function g(t,e){t&&t.split(/\s+/).forEach((t=>e.classList.add(t)))}Jodit.fatMode=n.FAT_MODE,Jodit.plugins=a.fg,Jodit.modules=a.av,Jodit.ns=a.av,Jodit.decorators={},Jodit.constants=n,Jodit.instances=a.VF,Jodit.lang=n.lang,Jodit.core={Plugin:d.Plugin},(0,r.Cg)([o.cache],Jodit.prototype,"createInside",null),(0,r.Cg)([o.cache],Jodit.prototype,"message",null),(0,r.Cg)([o.cache],Jodit.prototype,"s",null),(0,r.Cg)([o.cache],Jodit.prototype,"uploader",null),(0,r.Cg)([o.cache],Jodit.prototype,"filebrowser",null),(0,r.Cg)([(0,o.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.Cg)([(0,o.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.Cg)([o.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=i=(0,r.Cg)([(0,o.derive)(h.z)],Jodit)},46602(t,e,s){"use strict";s.d(e,{Qe(){return o},W8(){return n.W},dY(){return a}});var i=s(17352),r=s(55186),n=s(5298);function o(t,e,s,r){const n=t.nodeValue?.length?t.nodeValue:"";if(r&&n.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").length>e)return!0;const o=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(n);return s&&(o&&e>o[0].length||!o&&e>0)}function a(t,e,s,i,n,o){if((t=e.startContainer.childNodes[e.startOffset])||(t=e.startContainer.childNodes[e.startOffset-1],s=!0),t&&i&&!r.J.isText(t))if(!s&&r.J.isText(t.previousSibling))t=t.previousSibling;else if(n){let e=o(t);for(;e;){if(e&&r.J.isText(e)){t=e;break}e=o(e)}}if(t&&!i&&!r.J.isText(t)){let e=t,s=t;do{e=e.firstChild,s=s.lastChild}while(e&&s&&!r.J.isText(e));e===s&&e&&r.J.isText(e)&&(t=e)}return{node:t,rightMode:s}}s(83541)},46681(t,e,s){"use strict";s.d(e,{_(){return p}});var i=s(31635),r=s(24767),n=s(71151),o=s(66927),a=s(65147),l=s(98253),c=s(26150),h=s(29780),u=s(931),d=s(9645);let p=class t extends h.D{className(){return"UIImagePositionTab"}constructor(t,e,s){super(t,{availableClasses:t.o.image.availableClasses}),this.state=e,this.handlers=s}render({availableClasses:t}){return`<div class="jodit-form__group &__editMargins">\n\t\t\t<label>~Margins~</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>\n\t\t\t\t<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlign">\n\t\t\t<label>~Align~</label>\n\t\t\t<select class="jodit-select &__align">\n\t\t\t\t<option value="">~--Not Set--~</option>\n\t\t\t\t<option value="left">~Left~</option>\n\t\t\t\t<option value="center">~Center~</option>\n\t\t\t\t<option value="right">~Right~</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editStyle">\n\t\t\t<label>~Styles~</label>\n\t\t\t<input type="text" class="jodit-input &__style"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editClass">\n\t\t\t<label>~Classes~</label>\n\t\t\t${(()=>{const e=[];return t&&t.length>0?(e.push('<select class="jodit-input jodit-select &__classes">'),t.forEach((t=>{(0,l.K)(t)?e.push(`<option value="${t}">${t}</option>`):e.push(`<option value="${t[0]}">${t[1]}</option>`)})),e.push("</select>")):e.push('<input type="text" class="jodit-input &__classes"/>'),e.join("")})()}\n\t\t</div>\n\t\t<div class="jodit-form__group &__editId">\n\t\t\t<label>Id</label>\n\t\t\t<input type="text" class="jodit-input &__id"/>\n\t\t</div>\n\t\t<div\n\t\t\tclass="jodit-form__group &__editBorderRadius"\n\t\t>\n\t\t\t<label>~Border radius~</label>\n\t\t\t<input type="number" class="jodit-input &__borderRadius"/>\n\t\t</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){const t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=""+this.state.values.borderRadius}onChangeBorderRadius(){const t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){const t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){const t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){const t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){const t=this.getElm("marginBottom"),e=this.getElm("marginRight"),s=this.getElm("marginLeft"),i=this.getElm("lockMargin");if([e,t,s].forEach((t=>{(0,c.C)(t,"disabled",this.state.marginIsLocked||null)})),i.innerHTML=u.I.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){const t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){const t=this.getElm("marginTop"),e=this.getElm("marginRight"),s=this.getElm("marginBottom"),i=this.getElm("marginLeft");t.value=""+this.state.values.marginTop,e.value=""+this.state.values.marginRight,s.value=""+this.state.values.marginBottom,i.value=""+this.state.values.marginLeft}onChangeMargin(){const t=this.getElm("marginTop"),e=this.getElm("marginRight"),s=this.getElm("marginBottom"),i=this.getElm("marginLeft");this.state.values.marginTop=(0,d.G)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,d.G)(e.value),this.state.values.marginBottom=(0,d.G)(s.value),this.state.values.marginLeft=(0,d.G)(i.value))}hideFieldByOptions(){const t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach((([e,s])=>{const i=this.getElm(s);(0,a.css)(i,"display",t[e]?null:"none")}))}};(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.values.align")],p.prototype,"onStateAlignChange",null),(0,i.Cg)([(0,o.w)("align:change")],p.prototype,"onChangeAlign",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.values.borderRadius")],p.prototype,"onStateValuesBorderRadiusChange",null),(0,i.Cg)([(0,o.w)("borderRadius:change")],p.prototype,"onChangeBorderRadius",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.values.id")],p.prototype,"onStateValuesIdChange",null),(0,i.Cg)([(0,o.w)("id:change")],p.prototype,"onChangeId",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.values.style")],p.prototype,"onStateValuesStyleChange",null),(0,i.Cg)([(0,o.w)("style:change")],p.prototype,"onChangeStyle",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.values.classes")],p.prototype,"onStateValuesClassesChange",null),(0,i.Cg)([(0,o.w)("classes:change")],p.prototype,"onChangClasses",null),(0,i.Cg)([(0,o.w)("lockMargin:click")],p.prototype,"onLockMarginClick",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)("state.marginIsLocked")],p.prototype,"onChangeMarginIsLocked",null),(0,i.Cg)([(0,n.A)("ready"),(0,o.w)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],p.prototype,"onStateValuesMarginChange",null),(0,i.Cg)([(0,o.w)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],p.prototype,"onChangeMargin",null),(0,i.Cg)([(0,n.A)("ready")],p.prototype,"hideFieldByOptions",null),p=(0,i.Cg)([r.s],p)},46939(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(71005),h=s(11648);s(29581);const u="table_processor_observer",d="onMoveTableSelectCell";class p extends c.k{constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}get __tableModule(){return this.j.getInstance(h.X,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",(t=>{t.key===r.KEY_TAB&&this.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((t=>t+".select-cells")).join(" "),this.onStartSelection).on("clickTr clickTbody",(()=>{const t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1}))}onStartSelection(t){if(this.j.o.readonly)return;if(this.unselectCells(),t===this.j.editor)return;const e=o.J.closest(t,"table",this.j.editor);return t&&e?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,e),{label:d,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,e)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(u))return;const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=o.J.closest(s,["td","th"],t);if(!i||!this.__selectedCell)return;i!==this.__selectedCell&&this.j.lock(u),this.unselectCells();const r=this.__tableModule.getSelectedBound(t,[i,this.__selectedCell]),n=this.__tableModule.formalMatrix(t);for(let t=r[0][0];r[1][0]>=t;t+=1)for(let e=r[0][1];r[1][1]>=e;e+=1)this.__tableModule.addSelection(n[t][e]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),(()=>{const t=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');i.appendChild(t),this.j.async.setTimeout((()=>{t.parentNode?.removeChild(t)}),this.j.defaultTimeout/5)})()}__onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,e){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=o.J.closest(s,["td","th"],t);if(!i)return;const r=o.J.closest(i,"table",t);if(r&&r!==t)return;const n=this.__tableModule.getSelectedBound(t,[i,this.__selectedCell]),a=this.__tableModule.formalMatrix(t),c=a[n[1][0]][n[1][1]],h=a[n[0][0]][n[0][1]];this.j.e.fire("showPopup",t,(()=>{const t=(0,l.position)(h,this.j),e=(0,l.position)(c,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}}),"cells"),(0,l.$$)("table",this.j.editor).forEach((t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(d)}unselectCells(t){const e=this.__tableModule,s=e.getAllSelectedCells();s.length&&s.forEach((s=>{t&&t===s||e.removeSelection(s)}))}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=this.__tableModule.getAllSelectedCells();if(e.length){const[s]=e;if(!s)return;const i=o.J.closest(s,"table",this.j.editor);if(!i)return;switch(t){case"splitv":this.__tableModule.splitVertical(i);break;case"splitg":this.__tableModule.splitHorizontal(i);break;case"merge":this.__tableModule.mergeSelected(i);break;case"empty":e.forEach((t=>o.J.detach(t)));break;case"bin":o.J.safeRemove(i);break;case"binrow":new Set(e.map((t=>t.parentNode))).forEach((t=>{this.__tableModule.removeRow(i,t.rowIndex)}));break;case"bincolumn":{const t=new Set;e.reduce(((e,s)=>(t.has(s.cellIndex)||(e.push(s),t.add(s.cellIndex)),e)),[]).forEach((t=>{this.__tableModule.removeColumn(i,t.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(i,s,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(i,s.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach((e=>(0,l.alignElement)(t,e)))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}}p.requires=["select"],(0,i.Cg)([n.autobind],p.prototype,"onStartSelection",null),(0,i.Cg)([(0,n.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,i.Cg)([(0,n.watch)(":change")],p.prototype,"onChange",null),(0,i.Cg)([n.autobind],p.prototype,"__onRemoveSelection",null),(0,i.Cg)([n.autobind],p.prototype,"__onStopSelection",null),(0,i.Cg)([n.autobind],p.prototype,"onExecCommand",null),(0,i.Cg)([n.autobind],p.prototype,"onAfterCommand",null),a.fg.add("selectCells",p)},47165(t,e,s){"use strict";s.d(e,{$6(){return a.$},F0(){return i.F},cY(){return r.c},nE(){return n.n},tS(){return o.t}});var i=s(5454),r=s(3006),n=s(47964),o=s(69198),a=s(1540)},47317(t,e,s){"use strict";s.d(e,{b(){return r}});var i=s(55186);function r(t,e,s){return!!i.J.canSplitBlock(s)||(i.J.before(t,e.createInside.element("br")),!1)}},47791(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(71842),o=s(56298),a=s(65147),l=s(71005);s(64953);class c extends l.k{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.__onDblClickOnLink),t.e.on(t.editor,"click.link",this.__onClickReadOnlyLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{const e=t.dlg({resizable:!1}),s=this.__generateForm(t.s.current(),(()=>{e.close()}));s.container.classList.add("jodit-dialog_alert"),e.setContent(s),e.open(),t.async.requestIdleCallback((()=>{const{url_input:t}=(0,a.refs)(s.container);t?.focus()}))},hotkeys:t.o.link.hotkeys})}__onDblClickOnLink(t){if(!n.J.isTag(t.target,"a"))return;const e=(0,a.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){const{jodit:s}=this;if((0,a.isURL)(e)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const t=(0,a.call)(s.o.video?.parseUrlToVideoEmbed??a.convertMediaUrlToVideoEmbed,e,{width:s.o.video?.defaultWidth,height:s.o.video?.defaultHeight});if(t!==e)return s.createInside.fromHTML(t)}if(s.s.isCollapsed()){const t=s.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,s.e.fire("applyLink",s,t,null),t}return s.s.commitStyle({element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){const{jodit:s}=this,i=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:o,formTemplate:l,formClassName:c,modeClassName:h}=s.o.link,u=l(s),d=(0,a.isString)(u)?s.c.fromHTML(u,{target_checkbox_box:r,nofollow_checkbox_box:o}):u,p=n.J.isElement(d)?d:d.container,m=(0,a.refs)(p),{insert:g,unlink:f,content_input_box:v}=m,{target_checkbox:_,nofollow_checkbox:b,url_input:y}=m,w=n.J.isImage(t);let{content_input:C}=m;const{className_input:E}=m,{className_select:S}=m;let T;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),w&&n.J.hide(v);const I=()=>T?T.innerText:(0,a.stripTags)(s.s.range.cloneContents(),s.ed);T=!(!t||!n.J.closest(t,"a",s.editor))&&n.J.closest(t,"a",s.editor),!w&&t&&(C.value=I()),T?(y.value=(0,a.attr)(T,"href")||"",h&&((t,e,s,i)=>{switch(t){case"input":e&&(e.value=(0,a.attr)(s,"class")||"");break;case"select":if(i){for(let t=0;i.selectedOptions.length>t;t++){const e=i.options.item(t);e&&(e.selected=!1)}((0,a.attr)(s,"class")||"").split(/\s+/).filter((t=>t.trim().length>0)).forEach((t=>{if(t)for(let e=0;i.options.length>e;e++){const s=i.options.item(e);s?.value&&s.value.split(/\s+/).map((t=>t.trim())).includes(t)&&(s.selected=!0)}}))}}})(h,E,T,S),r&&_&&(_.checked="_blank"===(0,a.attr)(T,"target")),o&&b&&(b.checked="nofollow"===(0,a.attr)(T,"rel")),g.textContent=i("Update")):n.J.hide(f),s.editor.normalize();const x=s.history.snapshot.make();f&&s.e.on(f,"click",(t=>{s.s.restore(),s.history.snapshot.restore(x),T&&n.J.unwrap(T),s.synchronizeValues(),e(),t.preventDefault()}));const k=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let t;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(x);const i=I()!==C.value.trim(),l=s.createInside;if(T&&n.J.isOrContains(s.editor,T))t=[T];else{if(s.s.isCollapsed()){const e=l.element("a");s.s.insertNode(e,!1,!1),t=[e]}else{const e=s.s.current();t=n.J.isTag(e,"img")?[n.J.wrap(e,"a",l)]:s.s.wrapInTag("a")}t.forEach((t=>s.s.select(t)))}return t.forEach((t=>{(0,a.attr)(t,"href",y.value),((t,e,s,i)=>{if(t&&(e??s))if("input"===t)""===e.value&&i.hasAttribute("class")&&(0,a.attr)(i,"class",null),""!==e.value&&(0,a.attr)(i,"class",e.value);else if("select"===t){i.hasAttribute("class")&&(0,a.attr)(i,"class",null);for(let t=0;s.selectedOptions.length>t;t++){const e=s.selectedOptions.item(t)?.value;e&&e.split(/\s+/).filter((t=>t.trim().length>0)).forEach((t=>{i.classList.add(t)}))}}})(h,E,S,t),w||((t,e,s,i)=>{let r=t.textContent;e.value.trim().length?s&&(r=e.value):r=i.value,r!==t.textContent&&(t.textContent=r)})(t,C,i,y),r&&_&&(0,a.attr)(t,"target",_.checked?"_blank":null),o&&b&&(0,a.attr)(t,"rel",b.checked?"nofollow":null),s.e.fire("applyLink",s,t,d)})),s.synchronizeValues(),e(),!1};return n.J.isElement(d)?s.e.on(d,"submit",(t=>(t.preventDefault(),t.stopImmediatePropagation(),k(),!1))):d.onSubmit(k),d}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(t.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(t){const{jodit:e}=this;e.o.readonly&&e.o.link.preventReadOnlyNavigation&&n.J.isTag(t.target,"a")&&t.preventDefault()}}(0,i.Cg)([r.autobind],c.prototype,"__onDblClickOnLink",null),(0,i.Cg)([r.autobind],c.prototype,"onProcessPasteLink",null),(0,i.Cg)([r.autobind],c.prototype,"__generateForm",null),(0,i.Cg)([r.autobind],c.prototype,"__onClickReadOnlyLink",null),o.fg.add("link",c)},47964(t,e,s){"use strict";s.d(e,{n(){return a}});var i=s(31635),r=s(24767),n=s(92032),o=s(69198);let a=class t extends o.t{className(){return"UIFileInput"}createContainer(t){this.button=new n.lD(this.j,{tooltip:t.tooltip,icon:{name:"plus"}});const{container:e}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),e.classList.add(this.componentName),e.appendChild(s),e}createNativeInput(t){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${t.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(t,e){super(t,{type:"file",...e}),this.state={...o.t.defaultState,type:"file",onlyImages:!0}}};a=(0,i.Cg)([r.s],a)},48007(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48053(t,e,s){"use strict";s.d(e,{q(){return l}});var i=s(31635),r=s(22664),n=s(25376),o=s(98253),a=s(3258);let l=class t extends a.I{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";const{list:t,data:e}=this.control;if(t){let s=this.state.value||(e&&(0,o.K)(e.currentValue)?e.currentValue:void 0);s||(s=Object.keys(t)[0]);const i=""+((0,n.Q)(t)&&t[""+s]||s);this.state.text=this.control.textTemplate?.(this.jodit,i)??i}}};l=(0,i.Cg)([r.component],l)},48647(t,e,s){"use strict";s.d(e,{u(){return o}});var i=s(64567),r=s(69052),n=s(50156);function o(t){return(e,s)=>{if(!(0,r.T)(e[s]))throw(0,n.z3)("Handler must be a Function");e.hookStatus(i.f.ready,(e=>{const{async:i}=e,r=e[s];let n=0;Object.defineProperty(e,s,{configurable:!0,value:function s(...o){i.clearTimeout(n),t(e)?r.apply(e,o):n=i.setTimeout((()=>s(...o)),10)}})}))}}},48791(t,e,s){"use strict";s.d(e,{m(){return i}});const i=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},48840(t,e,s){"use strict";s.d(e,{O(){return i.O}});var i=s(86572)},48842(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},49289(t,e,s){"use strict";var i=s(56298),r=s(65147),n=s(931),o=s(36115),a=(s(73124),s(52450)),l=s.n(a),c=s(41111),h=s.n(c),u=s(49972),d=s.n(u),p=s(45062),m=s.n(p),g=s(18605),f=s.n(g),v=s(83389),_=s.n(v);i.fg.add("bold",(t=>{const e=e=>{const s=o.T.defaultOptions.controls[e],i={...s.css};let n;return Object.keys(i).forEach((t=>{n||(n={}),n[t]=(0,r.isArray)(i[t])?i[t][0]:i[t]})),t.s.commitStyle({element:s.tags?s.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((e=>{t.registerButton({name:e,group:"font-style"})})),["superscript","subscript"].forEach((e=>{t.registerButton({name:e,group:"script"})})),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})})),n.I.set("bold",l()).set("italic",h()).set("strikethrough",d()).set("subscript",m()).set("superscript",f()).set("underline",_())},49405(t,e,s){"use strict";s.d(e,{P(){return l}});var i=s(31635),r=s(22664),n=s(71842),o=s(65147),a=s(35265);let l=class t extends a.lD{className(){return"ToolbarContent"}update(){const t=this.control.getContent(this.j,this);((0,o.isString)(t)||t.parentNode!==this.container)&&(n.J.detach(this.container),this.container.appendChild((0,o.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,o.attr)(this.container,"role","content")}};l=(0,i.Cg)([r.component],l)},49429(t,e,s){"use strict";s.d(e,{Hp(){return n},mA(){return r},y6(){return o}});var i=s(28616);function r(t){return t&&t.isAtom}function n(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function o(t){return JSON.parse((0,i.A)(t))}},49744(t,e,s){"use strict";s.d(e,{x(){return i}});const i=(t,e)=>{const s=e.getComputedStyle(t);let i=t.clientWidth;return i-=parseFloat(s.paddingLeft||"0")+parseFloat(s.paddingRight||"0"),i}},49777(t,e,s){"use strict";var i=s(71842),r=s(56298),n=s(65147),o=s(931),a=s(36115),l=s(16116),c=s(64831);o.I.set("image",s.n(c)()),a.T.prototype.controls.image={popup(t,e,s){let r=null;return e&&!i.J.isText(e)&&i.J.isHTMLElement(e)&&(i.J.isTag(e,"img")||(0,n.$$)("img",e).length)&&(r=i.J.isTag(e,"img")?e:(0,n.$$)("img",e)[0]),t.s.save(),(0,l.kG)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach((s=>t.s.insertImage(e.baseurl+s,null,t.o.imageDefaultWidth))),s()},upload:!0,async url(e,i){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);const n=r||t.createInside.element("img");n.setAttribute("src",e),n.setAttribute("alt",i),r||await t.s.insertImage(n,null,t.o.imageDefaultWidth),s()}},r,s)},tags:["img"],tooltip:"Insert Image"},r.fg.add("image",(t=>{t.registerButton({name:"image",group:"media"})}))},49853(t,e,s){"use strict";s.d(e,{d(){return u}});var i=s(31635),r=s(64890),n=s(17352),o=s(52201),a=s(65147),l=s(50156),c=s(36115),h=(s(27337),s(91672));class u{className(){return"Ajax"}constructor(t,e=c.T.prototype.defaultAjaxOptions){this.__async=new r.j,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(t,e){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,a.isString)(t)||t instanceof n.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;const{xhr:t,o:e}=this,s=this.prepareRequest();return this.__async.promise((async(i,r)=>{const n=()=>{this.__isFulfilled=!0,r(l.FI("Connection error"))},o=()=>{this.__isFulfilled=!0,i(new h.Y(s,t.status,t.statusText,t.responseType?t.response:t.responseText))};t.onload=o,t.onabort=()=>{this.__isFulfilled=!0,r(l.h2("Abort connection"))},t.onerror=n,t.ontimeout=n,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?o():t.statusText&&(this.__isFulfilled=!0,r(l.FI(t.statusText))))},t.withCredentials=e.withCredentials??!1;const{url:c,data:u,method:d}=s;t.open(d,c,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:p}=e;(0,a.isFunction)(p)&&(p=await p.call(this)),p&&t.setRequestHeader&&Object.keys(p).forEach((e=>{t.setRequestHeader(e,p[e])})),this.__async.setTimeout((()=>{t.send(u?this.__buildParams(u):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw l.z3("Need URL for AJAX request");let t=this.o.url;const e=this.o.data,s=(this.o.method||"get").toLowerCase();if("get"===s&&e&&(0,a.isPlainObject)(e)){const s=t.indexOf("?");if(-1!==s){const i=(0,a.parseQuery)(t);t=t.substring(0,s)+"?"+(0,a.buildQuery)({...i,...e})}else t+="?"+(0,a.buildQuery)(this.o.data)}const i={url:t,method:s,data:e};return u.log.splice(100),u.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}u.log=[],(0,i.Cg)([o.Ay],u.prototype,"destruct",null)},49931(t,e,s){"use strict";var i=s(71842),r=s(97369),n=s(931),o=s(77112),a=s(83797),l=s(97324),c=s(31859),h=s(62994),u=s(53804);const d="jodit-file-browser-preview",p=(t="next",e="right")=>`<div class="${d}__navigation ${d}__navigation_arrow_${t}">`+n.I.get("angle-"+e)+"</a>";e.A=t=>{if(!t.o.contextMenu)return()=>{};const e=(0,a.V)(t);return s=>{const n=(0,h.Gq)(s.target,t.container);if(!n)return;let a=n;const m=t.options,g=t=>(0,r.attr)(a,t)||"";return t.async.setTimeout((()=>{const f=(0,h.PZ)(n,(0,o.a)(t));f&&(t.state.activeElements=[f],e.show(s.clientX,s.clientY,[!("1"===g("data-is-file")||!m.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){return u.B.call(t,g("href"),g("data-name"),g("data-path"),g("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await(0,l.W)(t,g("data-name"),g("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,c.r)(t).catch(t.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){const e=t.dlg({buttons:["fullsize","dialog.close"]}),s=t.c.div(d,'<div class="jodit-icon_loader"></div>'),n=t.c.div(d+"__box"),o=t.c.fromHTML(p()),l=t.c.fromHTML(p("prev","left")),c=r=>{const c=t.c.element("img");c.setAttribute("src",r);const h=()=>{t.isInDestruct||(t.e.off(c,"load"),i.J.detach(s),m.showPreviewNavigation&&(i.J.prevWithClass(a,t.files.getFullElName("item"))&&s.appendChild(l),i.J.nextWithClass(a,t.files.getFullElName("item"))&&s.appendChild(o)),s.appendChild(n),n.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",h),c.complete&&h()};t.e.on([o,l],"click",(function(){if(a=this===o?i.J.nextWithClass(a,t.files.getFullElName("item")):i.J.prevWithClass(a,t.files.getFullElName("item")),!a)throw(0,r.error)("Need element");i.J.detach(s),i.J.detach(n),s.innerHTML='<div class="jodit-icon_loader"></div>',c(g("href"))})),t.e.on("beforeDestruct",(()=>{e.destruct()})),e.container.classList.add(d+"__dialog"),e.setContent(s),e.setPosition(),e.open(),c(g("href")),t.events.on("beforeDestruct",(()=>{e.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=g("href");e&&t.ow.open(e)}}]))}),t.defaultTimeout),t.e.on("beforeClose",(()=>{e.close()})).on("beforeDestruct",(()=>e.destruct())),s.stopPropagation(),s.preventDefault(),!1}}},49972(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989(t){t.exports='<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>'},50025(t,e,s){"use strict";s.d(e,{Xr(){return o.X},bk(){return i.b},d$(){return o.d},h5(){return r.h},sH(){return n.s}});var i=s(50658),r=s(43431),n=s(32332),o=s(10004)},50156(t,e,s){"use strict";s.d(e,{FI(){return i.FI},Rc(){return r.Rc},ZW(){return r.ZW},fF(){return i.fF},h2(){return r.h2},rV(){return r.rV},z3(){return i.z3}});var i=s(76166),r=s(20222)},50248(t,e,s){"use strict";var i=s(36115);i.T.prototype.showPlaceholder=!0,i.T.prototype.placeholder="Type something",i.T.prototype.useInputsPlaceholder=!0},50658(t,e,s){"use strict";s.d(e,{b(){return h}});var i=s(17352),r=s(42589),n=s(37923),o=s(69052),a=s(98253),l=s(50156),c=s(10004);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,r.u)(t).map((t=>t.trim())).forEach((t=>{const s=t.split(".");e.call(this,s[0],s[1]||c.X)}))}__getStore(t){if(!t)throw(0,l.z3)("Need subject");if(void 0===t[this.__key]){const e=new c.d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){const s=this.__doc.createEvent("HTMLEvents");(0,a.K)(e)?s.initEvent(e,!0,!0):(s.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(s,t,{value:e[t],enumerable:!0})})),Object.defineProperty(s,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(s)}get current(){return this.currents[this.currents.length-1]}on(t,e,s,r){let c,h,d,p;if((0,a.K)(t)||(0,a.B)(t)?(c=this,h=t,d=e,p=s):(c=t,h=e,d=s,p=r),!(0,a.K)(h)&&!(0,a.B)(h)||0===h.length)throw(0,l.z3)("Need events names");if(!(0,o.T)(d))throw(0,l.z3)("Need event handler");if((0,n.c)(c))return c.forEach((t=>{this.on(t,h,d,p)})),this;const m=c,g=this.__getStore(m),f=this;let v=function(t,...e){if(!f.isMuted(t))return d&&d.call(this,...e)};return u(m)&&(v=function(t){if(!f.isMuted(t.type))return f.__prepareEvent(t),d&&!1===d.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(h,((t,e)=>{if(0===t.length)throw(0,l.z3)("Need event name");if(!1===g.indexOf(t,e,d)&&(g.set(t,e,{event:t,originalCallback:d,syntheticCallback:v},p?.top),u(m))){const e=i.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;v.options=e,m.addEventListener(t,v,e),this.__memoryDOMSubjectToHandler(m,v)}})),this}__memoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap.get(t)||new Set;s.add(e),this.__domEventsMap.set(t,s)}__unmemoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap,i=s.get(t)||new Set;i.delete(e),i.size?s.set(t,i):s.delete(t)}one(t,e,s,i){let r,n,o,l;(0,a.K)(t)||(0,a.B)(t)?(r=this,n=t,o=e,l=s):(r=t,n=e,o=s,l=i);const c=(...t)=>(this.off(r,n,c),o(...t));return this.on(r,n,c,l),this}off(t,e,s){let i,r,l;if((0,a.K)(t)||(0,a.B)(t)?(i=this,r=t,l=e):(i=t,r=e,l=s),(0,n.c)(i))return i.forEach((t=>{this.off(t,r,l)})),this;const h=i,d=this.__getStore(h);if(!(0,a.K)(r)&&!(0,a.B)(r)||0===r.length)return d.namespaces().forEach((t=>{this.off(h,"."+t)})),this.__removeStoreFromSubject(h),this;const p=t=>{u(h)&&(h.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(h,t.syntheticCallback))},m=(t,e)=>{if(""===t)return void d.events(e).forEach((t=>{""!==t&&m(t,e)}));const s=d.get(t,e);if(s&&s.length)if((0,o.T)(l)){const i=d.indexOf(t,e,l);!1!==i&&(p(s[i]),s.splice(i,1),s.length||d.clearEvents(e,t))}else s.forEach(p),s.length=0,d.clearEvents(e,t)};return this.__eachEvent(r,((t,e)=>{e===c.X?d.namespaces().forEach((e=>{m(t,e)})):m(t,e)})),d.isEmpty()&&this.__removeStoreFromSubject(h),this}stopPropagation(t,e){const s=(0,a.K)(t)?this:t,i=(0,a.K)(t)?t:e;if("string"!=typeof i)throw(0,l.z3)("Need event names");const r=this.__getStore(s);this.__eachEvent(i,((t,e)=>{const i=r.get(t,e);i&&this.__stopped.push(i),e===c.X&&r.namespaces(!0).forEach((e=>this.stopPropagation(s,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...s){let i,r;const n=(0,a.K)(t)?this:t,o=(0,a.K)(t)?t:e,h=(0,a.K)(t)?[e,...s]:s;if(!u(n)&&!(0,a.K)(o))throw(0,l.z3)("Need events names");const d=this.__getStore(n);return!(0,a.K)(o)&&u(n)?this.__triggerNativeEvent(n,e):this.__eachEvent(o,((t,e)=>{if(u(n))this.__triggerNativeEvent(n,t);else{const s=d.get(t,e);if(s)try{[...s].every((e=>!this.__isStopped(s)&&(this.currents.push(t),r=e.syntheticCallback.call(n,t,...h),this.currents.pop(),void 0!==r&&(i=r),!0)))}finally{this.__removeStop(s)}e!==c.X||u(n)||d.namespaces().filter((t=>t!==e)).forEach((e=>{const s=this.fire.call(this,n,t+"."+e,...h);void 0!==s&&(i=s)}))}})),i}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=i.globalDocument,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,o.T)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})})),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function u(t){return(0,o.T)(t.addEventListener)}},50834(t,e,s){"use strict";function i(t,e){const[s,i]=e.split("::");t.execCommand(s,null,i)}s.d(e,{F(){return i}})},50974(t,e,s){"use strict";s(36115).T.prototype.tab={tabInsideLiInsertNewList:!0}},51271(t,e,s){"use strict";s.r(e),s.d(e,{required(){return n},url(){return o}});var i=s(6939),r=s(59101);const n=t=>!!(0,r.Bq)(t.value).length||(t.error="Please fill out this field",!1),o=t=>!!(0,i.m)((0,r.Bq)(t.value))||(t.error="Please enter a web address",!1)},51329(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(51457),o=s.n(n),a=s(23602),l=s.n(a),c=s(86899),h=s.n(c),u=s(95320),d=s.n(u);r.T.prototype.controls.cut={command:"cut",isDisabled(t){return t.s.isCollapsed()},tooltip:"Cut selection"},r.T.prototype.controls.copy={command:"copy",isDisabled(t){return t.s.isCollapsed()},tooltip:"Copy selection"},r.T.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},i.I.set("copy",o()).set("cut",l()).set("paste",h()).set("select-all",d())},51457(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51923(t,e,s){"use strict";function i(t){const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t+=1)r[t]=e.charCodeAt(t);return new Blob([r.buffer],{type:s})}s.d(e,{z(){return i}})},51957(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52052(t,e,s){"use strict";s.d(e,{A(){return o}});var i=s(55186),r=s(38046),n=s(95274);function o(t,e,s){const{parentNode:a}=e;return a===s||!i.J.isHTMLElement(a)||i.J.next(e,r._,a)||i.J.prev(e,r._,a)?null:t.isElementCommit&&t.elementIsBlock&&!i.J.isBlock(a)?o(t,a,s):!(0,n.sz)(t,a,!1)||i.J.isBlock(a)&&!t.elementIsBlock?t.isElementCommit&&!i.J.isBlock(a)?o(t,a,s):null:a}},52201(t,e,s){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,i(t)}function r(t,e,s){var r=s.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(i(r)));var n=!1;return{configurable:!0,get(){if(n||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var s=r.bind(this);return n=!0,Object.defineProperty(this,e,{configurable:!0,get(){return s},set(t){r=t,delete this[e]}}),n=!1,s},set(t){r=t}}}function n(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,r(t,e,s))}})),t}function o(){return 1===arguments.length?n.apply(void 0,arguments):r.apply(void 0,arguments)}s.d(e,{Ay(){return o}})},52306(t,e,s){"use strict";s.d(e,{e(){return n}}),s(17352);var i=s(3593);const r=Object.keys(i);function n(t,e,s,n,o){let a=!1;const l=t.o.cleanHTML.disableCleanFilter;for(const c of r)if(!(l&&l.has(c)||(a=(0,i[c])(t,e,a,s,n,o),e.isConnected)))return!0;return a}},52450(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},53048(t,e,s){"use strict";s.d(e,{$6(){return n.$6},$n(){return i.$n},CP(){return o.CP},D$(){return r.D},F0(){return n.F0},In(){return a.I},SB(){return i.SB},Ue(){return o.Ue},XV(){return n.XV},Yh(){return n.Yh},bk(){return o.bk},cY(){return n.cY},lD(){return i.lD},nE(){return n.nE},ss(){return i.ss},tS(){return n.tS},ue(){return i.ue},z2(){return c.z},z4(){return o.z4},zD(){return l.z}});var i=s(35265),r=s(29780),n=s(20703),o=s(29012),a=s(931),l=s(96369),c=s(92227)},53328(t){t.exports='<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>'},53380(t,e,s){"use strict";s.d(e,{F(){return i}});class i{constructor(t,e,s,i){this.jodit=t,this.container=e,this.toWYSIWYG=s,this.fromWYSIWYG=i,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}}},53414(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","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","Heading 2","Heading 3","Heading 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","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","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","Upload","Browse","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","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","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","Unlink","Update","pencil","Eye"," 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","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","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","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53470(t,e,s){"use strict";s.d(e,{v(){return r}});var i=s(69052);function r(t){return!!t&&(0,i.T)(t.has)&&(0,i.T)(t.add)&&(0,i.T)(t.delete)}},53701(t,e,s){"use strict";s.d(e,{A(){return r}});var i=s(98253);const r=t=>(0,i.K)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},53804(t,e,s){"use strict";s.d(e,{B(){return f},n(){return g}});var i,r=s(31635),n=s(77753),o=s(22664),a=s(71842),l=s(65147),c=s(35265),h=s(36115),u=(s(93027),s(24863));const d="jodit-image-editor",p="resize",m="crop";let g=i=class t extends n.vG{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise((s=>{const i=(new Date).getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.J.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.J.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+i:"?_tst="+i),this._dialog.open();const{widthInput:r,heightInput:n}=(0,l.refs)(this.editor),o=()=>{this.isDestructed||(this.image.removeEventListener("load",o),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=""+this.naturalWidth,n.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.J.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===m&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),s(this._dialog))};this.image.addEventListener("load",o),this.image.complete&&o()}))}onTitleModeClick(t){const e=this,s=t.target,i=s?.parentElement;if(!i)return;(0,l.$$)(`.${d}__slider,.${d}__area`,e.editor).forEach((t=>t.classList.remove(d+"_active"))),i.classList.add(d+"_active"),this.activeTab=(0,l.attr)(i,"-area")||p;const r=e.editor.querySelector(`.${d}__area.${d}__area_`+e.activeTab);r&&r.classList.add(d+"_active"),e.activeTab===m&&e.showCrop()}onChangeSizeInput(t){const e=this,s=t.target,{widthInput:i,heightInput:r}=(0,l.refs)(this.editor),n="widthInput"===(0,l.attr)(s,"data-ref"),o=parseInt(s.value,10),a=n?e.o.min_height:e.o.min_width;let c;o>(n?e.o.min_width:e.o.min_height)&&((0,l.css)(e.image,n?"width":"height",o),e.resizeUseRatio&&(c=Math.round(n?o/e.ratio:o*e.ratio),c>a&&((0,l.css)(e.image,n?"height":"width",c),n?r.value=""+c:i.value=""+c))),this.j.e.fire(e.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){const e=this;e.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),e.clicked=!0,e.start_x=t.clientX,e.start_y=t.clientY,e.activeTab===m?(e.top_x=(0,l.css)(e.cropHandler,"left"),e.top_y=(0,l.css)(e.cropHandler,"top"),e.width=e.cropHandler.offsetWidth,e.height=e.cropHandler.offsetHeight):(e.width=e.image.offsetWidth,e.height=e.image.offsetHeight),e.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){const e=this;if(!e.clicked)return;const{widthInput:s,heightInput:i}=(0,l.refs)(this.editor);e.diff_x=t.clientX-e.start_x,e.diff_y=t.clientY-e.start_y,e.activeTab===p&&e.resizeUseRatio||e.activeTab===m&&e.cropUseRatio?e.diff_x?(e.new_w=e.width+e.diff_x,e.new_h=Math.round(e.new_w/e.ratio)):(e.new_h=e.height+e.diff_y,e.new_w=Math.round(e.new_h*e.ratio)):(e.new_w=e.width+e.diff_x,e.new_h=e.height+e.diff_y),e.activeTab===p?(e.new_w>e.o.resizeMinWidth&&((0,l.css)(e.image,"width",e.new_w+"px"),s.value=""+e.new_w),e.new_h>e.o.resizeMinHeight&&((0,l.css)(e.image,"height",e.new_h+"px"),i.value=""+e.new_h),this.j.e.fire(e.resizeHandler,"updatesize")):(e.target!==e.cropHandler?(e.top_x+e.new_w>e.cropImage.offsetWidth&&(e.new_w=e.cropImage.offsetWidth-e.top_x),e.top_y+e.new_h>e.cropImage.offsetHeight&&(e.new_h=e.cropImage.offsetHeight-e.top_y),(0,l.css)(e.cropHandler,{width:e.new_w,height:e.new_h})):(e.top_x+e.diff_x+e.cropHandler.offsetWidth>e.cropImage.offsetWidth&&(e.diff_x=e.cropImage.offsetWidth-e.top_x-e.cropHandler.offsetWidth),(0,l.css)(e.cropHandler,"left",e.top_x+e.diff_x),e.top_y+e.diff_y+e.cropHandler.offsetHeight>e.cropImage.offsetHeight&&(e.diff_y=e.cropImage.offsetHeight-e.top_y-e.cropHandler.offsetHeight),(0,l.css)(e.cropHandler,"top",e.top_y+e.diff_y)),this.j.e.fire(e.cropHandler,"updatesize"))}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=p,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const t=this.crop_box.parentNode,e=.8*t.offsetWidth,s=.8*t.offsetHeight;let i=e,r=s;const{naturalWidth:n,naturalHeight:o}=this;e>n&&s>o?(i=n,r=o):this.ratio>e/s?(i=e,r=o*(e/n)):(i=n*(s/o),r=s),(0,l.css)(this.crop_box,{width:i,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=i.calcValueByPercent(t,this.o.cropDefaultWidth);const e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:i.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{const t=this,{widthInput:e,heightInput:s}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,(()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")})),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,s],"input",this.onChangeSizeInput);const{keepAspectRatioResize:i,keepAspectRatioCrop:r}=(0,l.refs)(this.editor);i&&i.addEventListener("change",(()=>{this.resizeUseRatio=i.checked})),r&&r.addEventListener("change",(()=>{this.cropUseRatio=r.checked})),t.j.e.on(t.resizeHandler,"updatesize",(()=>{(0,l.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()})).on(t.cropHandler,"updatesize",(()=>{if(!t.cropImage)return;let e=(0,l.css)(t.cropHandler,"left"),s=(0,l.css)(t.cropHandler,"top"),i=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;0>e&&(e=0),0>s&&(s=0),e+i>t.cropImage.offsetWidth&&(i=t.cropImage.offsetWidth-e,t.cropUseRatio&&(r=i/t.ratio)),s+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-s,t.cropUseRatio&&(i=r*t.ratio)),(0,l.css)(t.cropHandler,{width:i,height:r,left:e,top:s,backgroundPosition:-e-1+"px "+(-s-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()})),Object.values(t.buttons).forEach((i=>{i.onAction((()=>{const r={action:t.activeTab,box:t.activeTab===p?t.resizeBox:t.cropBox};switch(i){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",(e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,r,t.hide,(e=>{t.j.alert(e.message)}))}));break;case t.buttons.save:t.onSave(void 0,r,t.hide,(e=>{t.j.alert(e.message)}));break;case t.buttons.reset:t.activeTab===p?((0,l.css)(t.image,{width:null,height:null}),e.value=""+t.naturalWidth,s.value=""+t.naturalHeight,t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}}))}))},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:h.T.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.$n)(this.j,"update","Reset"),save:(0,c.$n)(this.j,"save","Save"),saveas:(0,c.$n)(this.j,"save","Save as ...")},this.activeTab=e.resize?p:m,this.editor=(0,u.Z)(this.j,this.options);const{resizeBox:s,cropBox:r}=(0,l.refs)(this.editor);this.resize_box=s,this.crop_box=r,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.J.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+d).off("."+d),super.destruct())}};function f(t,e,s,i,r,n){return this.getInstance("ImageEditor",this.o).open(t,((t,o,a,c)=>(0,l.call)("resize"===o.action?this.dataProvider.resize:this.dataProvider.crop,s,i,e,t,o.box).then((t=>{t&&(a(),r&&r())})).catch((t=>{c(t),n&&n(t)}))))}g.calcValueByPercent=(t,e)=>{const s=""+e,i=parseFloat(""+t);let r;return r=/^[-+]?[0-9]+(px)?$/.exec(s),r?parseInt(s,10):(r=/^([-+]?[0-9.]+)%$/.exec(s),r?Math.round(i*(parseFloat(r[1])/100)):i||0)},(0,r.Cg)([o.autobind],g.prototype,"hide",null),(0,r.Cg)([o.autobind],g.prototype,"open",null),(0,r.Cg)([o.autobind],g.prototype,"onTitleModeClick",null),(0,r.Cg)([(0,o.debounce)(),o.autobind],g.prototype,"onChangeSizeInput",null),(0,r.Cg)([o.autobind],g.prototype,"onResizeHandleMouseDown",null),(0,r.Cg)([o.autobind],g.prototype,"onGlobalMouseUp",null),(0,r.Cg)([(0,o.throttle)(10)],g.prototype,"onGlobalMouseMove",null),g=i=(0,r.Cg)([o.component],g)},53808(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53883(t,e,s){"use strict";s.d(e,{Y(){return r.Y},d(){return i.d}});var i=s(49853),r=s(91672)},54522(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},55186(t,e,s){"use strict";s.d(e,{J(){return l}});var i=s(17352),r=s(42448),n=s(9823),o=s(59101),a=s(97369);class l{constructor(){throw Error("Dom is static module")}static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,e,s){let i;const r=t;let n=t;s.s.save();let o=!1;do{o=!1,i=n.nextSibling,!i||l.isBlock(i)||l.isTag(i,"br")||(o=!0,n=i)}while(o);return l.__wrapElements(e,s,r,n)}static __wrapElements(t,e,s,i){const r=(0,n.Kg)(t)?e.createInside.element(t):t;s.parentNode&&s.parentNode.insertBefore(r,s);let o=s;for(;o&&(o=s.nextSibling,r.appendChild(s),s!==i&&o);)s=o;return e.s.restore(),r}static wrapInline(t,e,s){let i,r=t,n=t;s.s.save();let o=!1;do{o=!1,i=r.previousSibling,i&&!l.isBlock(i)&&(o=!0,r=i)}while(o);do{o=!1,i=n.nextSibling,i&&!l.isBlock(i)&&(o=!0,n=i)}while(o);return l.__wrapElements(e,s,r,n)}static wrap(t,e,s){const i=(0,n.Kg)(e)?s.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(i,t),i.appendChild(t)}else{const e=t.extractContents();t.insertNode(i),i.appendChild(e)}return i}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,s){let i=t;for(;i&&i!==e&&(t===i||!s(i));){let t=i.firstChild||i.nextSibling;if(!t){for(;i&&!i.nextSibling;)i=i.parentNode;t=i?.nextSibling}i=t}}static replace(t,e,s,i=!1,o=!1){let a;if((0,n.AH)(e)&&(e=s.fromHTML(e)),a=(0,n.Kg)(e)?s.element(e):e,!o)for(;t.firstChild;)a.appendChild(t.firstChild);return i&&l.isElement(t)&&l.isElement(a)&&(0,r.$)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=i.NO_EMPTY_TAGS){if(!t)return!0;let s;s=(0,n.Tn)(e)?e:t=>e.has(t.nodeName.toLowerCase());const r=t=>null==t.nodeValue||0===(0,o.Bq)(t.nodeValue).length;return l.isText(t)?r(t):!(l.isElement(t)&&s(t))&&l.each(t,(t=>{if(l.isText(t)&&!r(t)||l.isElement(t)&&s(t))return!1}))}static isNode(t){return!!(t&&(0,n.Kg)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,n.Tn)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,i.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,n.Rd)(t)&&"object"==typeof t&&l.isNode(t)&&i.IS_BLOCK.test(t.nodeName)}static isText(t){return!(!t||t.nodeType!==Node.TEXT_NODE)}static isComment(t){return!(!t||t.nodeType!==Node.COMMENT_NODE)}static isElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.ELEMENT_NODE)}static isFragment(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,a.css)(t,"display"))}static canSplitBlock(t){return!(0,n.Rd)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let s=t?.lastChild;if(!s)return null;do{if(e(s))return s;let i=s.lastChild;if(i||(i=s.previousSibling),!i&&s.parentNode!==t){do{s=s.parentNode}while(s&&!s?.previousSibling&&s.parentNode!==t);i=s?.previousSibling}s=i}while(s);return null}static prev(t,e,s,i=!0){return l.find(t,e,s,!1,i)}static next(t,e,s,i=!0){return l.find(t,e,s,!0,i)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,s,i=!0,r=!0){const n=this.nextGen(t,s,i,r);let o=n.next();for(;!o.done;){if(e(o.value))return o.value;o=n.next()}return null}static*nextGen(t,e,s=!0,i=!0){const r=[];let n=t;do{let e=s?n.nextSibling:n.previousSibling;for(;e;)r.unshift(e),e=s?e.nextSibling:e.previousSibling;yield*this.runInStack(t,r,s,i),n=n.parentNode}while(n&&n!==e);return null}static each(t,e,s=!0){const i=this.eachGen(t,s);let r=i.next();for(;!r.done;){if(!1===e(r.value))return!1;r=i.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,s,i=!0){for(;e.length;){const r=e.pop();if(i){let t=s?r.lastChild:r.firstChild;for(;t;)e.push(t),t=s?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,e,s,i="nextSibling",r="firstChild"){let n=t;do{if(e(n))return n||null;if(r&&n&&n[r]){const t=l.findWithCurrent(n[r],e,n,i,r);if(t)return t}for(;n&&!n[i]&&n!==s;)n=n.parentNode;n&&n[i]&&n!==s&&(n=n[i])}while(n&&n!==s);return null}static findSibling(t,e=!0,s=t=>!l.isEmptyTextNode(t)){let i=l.sibling(t,e);for(;i&&!s(i);)i=l.sibling(i,e);return i&&s(i)?i:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,o.Bq)(t.nodeValue))))}static findNotEmptyNeighbor(t,e,s){return(0,a.call)(e?l.prev:l.next,t,(t=>!(!t||(l.isText(t)||l.isComment(t))&&!(0,o.Bq)(t?.nodeValue||"").length)),s)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,s,i=!1){let r=t;if(!r)return null;do{if(e(r))return r;if(r===s||!r.parentNode)break;r=r.parentNode}while(r&&r!==s);return r===s&&i&&e(r)?r:null}static closest(t,e,s){let i;const r=t=>t.toLowerCase();if((0,n.Tn)(e))i=e;else if((0,n.cy)(e)||(0,n.vM)(e)){const t=(0,n.vM)(e)?e:new Set(e.map(r));i=e=>!(!e||!t.has(r(e.nodeName)))}else i=t=>!(!t||r(e)!==r(t.nodeName));return l.up(t,i,s)}static furthest(t,e,s){let i=null,r=t?.parentElement;for(;r&&r!==s;)e(r)&&(i=r),r=r?.parentElement;return i}static appendChildFirst(t,e){const s=t.firstChild;s?s!==e&&t.insertBefore(e,s):t.appendChild(e)}static after(t,e){const{parentNode:s}=t;s&&(s.lastChild===t?s.appendChild(e):s.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:s}=t;s&&s.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,n.cy)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,s=!1,n=()=>!0){const o=(t.ownerDocument||i.globalDocument).createDocumentFragment();(0,r.$)(t.childNodes).filter((t=>!!n(t)||(l.safeRemove(t),!1))).forEach((t=>{o.appendChild(t)})),s&&e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}static isOrContains(t,e,s=!1){return t===e?!s:!!(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const s=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,i.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),s&&t.setStartBefore(s)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const s=t.tagName.toLowerCase(),i=t.tagName.toUpperCase();if(e instanceof Set)return e.has(s)||e.has(i);if(Array.isArray(e))throw new TypeError("Dom.isTag does not support array");return s===e||i===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,i.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,n.rg)(t)||"true"===(0,a.attr)(t,i.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${i.TEMP_ATTR}]`,t)}}},55265(t,e,s){"use strict";s.d(e,{S(){return o}});var i=s(55186),r=s(38322),n=s(53380);class o extends n.F{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)}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.A)(this.instance,"minHeight",t)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(e=>{t.e.fire(e.type,e)})),this.autosize(),this.onReady()}destruct(){i.J.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){const e=this.getValue();if(0>this.getSelectionStart())this.setValue(e+t);else{const s=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(e.substring(0,s)+t+e.substring(i,e.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}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(){const{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",(e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1}))}}},55989(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(56298),o=s(65147),a=s(37435);s(84018);const l="addnewline";class c extends a.Plugin{constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${a.Icon.get("enter")}</span></div>`),this.__isMatchedTag=t=>!(!t||!this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,a.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=t=>null!=t&&a.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.__onClickLine=t=>{const e=this.j,s=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?a.Dom.prepend(e.editor,s):this.__current.parentNode.insertBefore(s,this.__current):e.editor.appendChild(s),e.s.setCursorIn(s),(0,o.scrollIntoViewIfNeeded)(s,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",(t=>{t.stopPropagation()})).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",(()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0})).on(this.__line,"mouseleave",(()=>{this.__lineInFocus=!1})).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){const t=this.j;t.e.off(t.editor,"."+l).off(t.container,"."+l).off("."+l).on([t.ow,t.ew,t.editor],"scroll."+l,this.__hideForce).on("finishedCleanHTMLWorker."+l,this.__hideForce).on(t.editor,"click."+l,this.__hide).on(t.container,"mouseleave."+l,this.__hide).on(t.editor,"mousemove."+l,this.__onMouseMove)}onDblClickEditor(t){const e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){const s=(0,o.offset)(e.editor,e,e.ed),i=t.pageY-e.ew.scrollX,r=e.createInside.element(e.o.enter);Math.abs(i-(s.height+s.top))>Math.abs(i-s.top)&&e.editor.firstChild?e.editor.insertBefore(r,e.editor.firstChild):e.editor.appendChild(r),e.s.setCursorIn(r),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){const e=this.j;let s=e.ed.elementFromPoint(t.clientX,t.clientY);if(!a.Dom.isHTMLElement(s)||!a.Dom.isOrContains(e.editor,s))return;if(e.editor===s||this.__isMatchedTag(s)||(s=a.Dom.closest(s,this.__isMatchedTag,e.editor)),!s)return void this.__hide();if(this.__isMatchedTag(s)){const t=a.Dom.up(s,a.Dom.isBlock,e.editor);t&&t!==e.editor&&(s=t)}const i=(0,o.position)(s,this.j);let r=!1,{clientY:n,clientX:l}=t;if(this.j.iframe){const{top:t,left:e}=(0,o.position)(this.j.iframe,this.j,!0);n+=t,l+=e}const c=this.j.o.addNewLineDeltaShow;Math.abs(n-i.top)>c?Math.abs(n-(i.top+i.height))>c||(r=i.top+i.height,this.__isBeforeContent=!1):(r=i.top,this.__isBeforeContent=!0);const h=e.editor===s;!1!==r&&(h&&!this.__isBeforeContent||!h&&!(0,o.call)(this.__isBeforeContent?a.Dom.prev:a.Dom.next,s,this.__canGetFocus,e.editor))?(this.__line.style.top=r+"px",this.__current=s,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",l-i.left-10+"px")):(this.__current=!1,this.__hide())}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),a.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+l).off(this.j.container,"."+l).off("."+l)}}(0,i.Cg)([(0,r.watch)(":lock")],c.prototype,"onLock",null),(0,i.Cg)([r.autobind],c.prototype,"__hide",null),(0,i.Cg)([(0,r.watch)(":dblclick")],c.prototype,"onDblClickEditor",null),(0,i.Cg)([(0,r.throttle)((t=>t.defaultTimeout))],c.prototype,"__onMouseMove",null),n.fg.add("addNewLine",c)},56176(t,e,s){"use strict";s.d(e,{Z(){return l}});var i=s(17352),r=s(55186),n=s(59101),o=s(58720);function a(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((t,e,s)=>{switch(s.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t}))}function l(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);const e=i.globalDocument.createElement("iframe");e.style.display="none",i.globalDocument.body.appendChild(e);let s="",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)""!==e[t].selectorText&&(l=(0,o.$$)(e[t].selectorText,c.body),l.forEach((s=>{s.style.cssText=a(e[t].style.cssText+";"+s.style.cssText)})))}}catch(t){if(!i.IS_PROD)throw t}r.J.each(c.body,(t=>{if(r.J.isElement(t)){const e=t,s=e.getAttribute("style");s&&(e.style.cssText=a(s)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}})),s=c.firstChild?(0,n.Bq)(c.body.innerHTML):""}}catch{}finally{r.J.safeRemove(e)}return s&&(t=s),(0,n.Bq)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},56298(t,e,s){"use strict";s.d(e,{JW(){return b},My(){return w},RR(){return E},VF(){return p},av(){return _},ef(){return C},fg(){return v},w9(){return f}});var i=s(65147),r=s(83044),n=s(98253),o=s(12041),a=s(449),l=s(75766),c=s(77402),h=s(17352),u=s(71842),d=s(50025);const p={};let m=1;const g=new Set;function f(){function t(){return m+=10*(Math.random()+1),Math.round(m).toString(16)}let e=t();for(;g.has(e);)e=t();return g.add(e),e}const v=new c.$,_={},b=t=>{Object.keys(t).forEach((e=>{h.lang[e]?Object.assign(h.lang[e],t[e]):h.lang[e]=t[e]}))},y=new WeakMap;function w(t,e,s="div",i=!1){const c=(0,n.K)(e)?e:e?(0,l.u)(e.prototype):"jodit-utils",h=y.get(t)||{},d=c+s,p=(0,o.h)(t)?t:t.j;let m=null;if(!h[d]){let e=p.c;if(m=C(p.o,p.container,t.od.body),i&&(0,r.y)(t)&&t.od!==t.ed){e=t.createInside;const i="style"===s?t.ed.head:t.ed.body;m=(0,r.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:i}const n=e.element(s,{className:`jodit jodit-${(0,a.k)(c)}-container jodit-box`});n.classList.add("jodit_theme_"+(p.o.theme||"default")),m.appendChild(n),h[d]=n,t.hookStatus("beforeDestruct",(()=>{p.events.off(n),u.J.safeRemove(n),delete h[d],Object.keys(h).length&&y.delete(t)})),y.set(t,h),p.events.fire("getContainer",n)}return h[d].classList.remove("jodit_theme_default","jodit_theme_dark"),h[d].classList.add("jodit_theme_"+(p.o.theme||"default")),h[d]}function C(t,e,s){return t.popupRoot??t.shadowRoot??u.J.closest(e,(t=>u.J.isHTMLElement(t)&&(u.J.isTag(t,"dialog")||["fixed","absolute"].includes((0,i.css)(t,"position")))),s)??s}const E=new d.bk},56701(t,e,s){"use strict";var i=s(17352),r=s(55186),n=s(56298),o=s(65147),a=s(29866),l=s(92032);n.fg.add("pasteStorage",class c extends a.k{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){const 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 e=this.currentIndex;-1!==[i.KEY_UP,i.KEY_DOWN,i.KEY_ENTER].indexOf(t.key)&&(t.key===i.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===i.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key!==i.KEY_ENTER?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&(0,o.toArray)(this.listBox.childNodes).forEach(((e,s)=>{e.classList.remove("jodit_active"),t===s&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())})),this.currentIndex=t},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach(((t,e)=>{const s=this.j.c.element("a");s.textContent=e+1+". "+t.replace((0,i.SPACE_REG_EXP)(),""),this.j.e.on(s,"keydown",this.onKeyDown),(0,o.attr)(s,"href","#"),(0,o.attr)(s,"data-index",""+e),(0,o.attr)(s,"tab-index","-1"),this.listBox&&this.listBox.appendChild(s)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=this.j.dlg();const t=(0,l.$n)(this.j,"paste","Paste","primary");t.onAction(this.paste);const e=(0,l.$n)(this.j,"","Cancel");e.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,e]),this.j.e.on(this.listBox,"click dblclick",(t=>{const e=t.target;return r.J.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,o.attr)(e,"-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.J.safeRemove(this.previewBox),r.J.safeRemove(this.listBox),r.J.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}})},57023(t,e,s){"use strict";s.d(e,{U(){return n},x(){return o}});var i=s(65147),r=s(36115);function n(t,e){let s;return e||(e=r.T.defaultOptions.controls),(0,i.isString)(t)?s=o(t,e)||{name:t,command:t,tooltip:t}:(s={name:"empty",...(0,i.ConfigFlatten)(t)},void 0!==e[s.name]&&(s={...(0,i.ConfigFlatten)(e[s.name]),...(0,i.ConfigFlatten)(s)})),s}function o(t,e){let[s,r]=t.split(/\./),n=e;return null!=r?void 0!==e[s]&&(n=e[s]):r=s,n[r]?{name:r,...(0,i.ConfigFlatten)(n[r])}:void 0}},57362(t,e,s){"use strict";var i=s(36115);i.T.prototype.allowResizeX=!1,i.T.prototype.allowResizeY=!0},58006(t,e,s){"use strict";s.d(e,{l(){return v}});var i,r=s(31635),n=s(77753),o=s(17352),a=s(22664),l=s(55186),c=s(56298),h=s(32709),u=s(9823),d=s(97369),p=(s(28712),s(53048)),m=s(77782),g=s(14961),f=s(36115);f.T.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},f.T.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let v=i=class t extends g.T{className(){return"Dialog"}get destination(){const{popupRoot:t,shadowRoot:e}=this.o;return t||e||this.od.body}setElements(t,e){const s=[];(0,h._j)(e).forEach((e=>{if((0,u.cy)(e)){const i=this.c.div(this.getFullElName("column"));return s.push(i),t.appendChild(i),this.setElements(i,e)}let i;i=(0,u.Kg)(e)?this.c.fromHTML(e):(0,u.kO)(e)?e.container:e,s.push(i),i.parentNode!==t&&t.appendChild(i)})),(0,h.$r)(t.childNodes).forEach((e=>{-1===s.indexOf(e)&&t.removeChild(e)}))}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(t){const e=t.target;!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,d.css)(this.dialog,"left"),this.startPoint.y=(0,d.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}__onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===o.KEY_ESC&&!0!==this.getMod("static")){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}__onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){const t=this;t.e.on(t.ow,"pointermove touchmove",t.__onMouseMove).on(t.ow,"pointerup touchend",t.__onMouseUp)}__removeGlobalResizeListeners(){const t=this;t.e.off(t.ow,"mousemove pointermove",t.__onMouseMove).off(t.ow,"mouseup pointerup",t.__onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,d.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let s=this.ow.innerWidth/2-this.dialog.offsetWidth/2,i=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>s&&(s=0),0>i&&(i=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-s)>100||Math.abs(e-i)>100),this.dialog.style.left=(t||s)+"px",this.dialog.style.top=(e||i)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,d.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t,e,s=0,i=this;return(0,d.$$)(".jodit-dialog",this.destination).forEach((r=>{t=r.component,e=parseInt((0,d.css)(r,"zIndex"),10),t.isOpened&&!isNaN(e)&&e>s&&(i=t,s=e)})),i}setMaxZIndex(){if(this.getMod("static"))return;let t=20000004,e=0;(0,d.$$)(".jodit-dialog",this.destination).forEach((s=>{e=parseInt((0,d.css)(s,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=""+(t+1)}toggleFullSize(t){(0,u.Rd)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,s,i){if(c.RR.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,u.Lm)(t)&&(s=t),(0,u.Lm)(e)&&(i=e),this.destroyAfterClose=!0===s;const r=(0,u.Lm)(t)?void 0:t,n=(0,u.Lm)(e)?void 0:e;return void 0!==n&&this.setHeader(n),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(i),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;const{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.J.safeRemove(this.container),this.__removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.__onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const e=this;e.options=(0,d.ConfigProto)(t,(0,d.ConfigProto)(f.T.prototype.dialog,i.defaultOptions)),l.J.safeRemove(e.container);const s=this.getFullElName.bind(this);e.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${s("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${s("header")}">\n\t\t\t\t\t\t<div class="${s("header-title")}"></div>\n\t\t\t\t\t\t<div class="${s("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s("content")}"></div>\n\t\t\t\t\t<div class="${s("footer")}"></div>\n\t\t\t\t\t<div class="${s("resizer")}">${p.In.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),"rtl"===e.options.direction&&(e.container.style.direction="rtl",e.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=""+this.o.zIndex),(0,d.attr)(e.container,"role","dialog"),Object.defineProperty(e.container,"component",{value:this}),e.setMod("theme",e.o.theme||"default").setMod("resizable",!!e.o.resizable);const r=e.getElm("panel"),n=e.getElm("resizer"),o=e.getElm("header-title"),a=e.getElm("content"),h=e.getElm("footer"),m=e.getElm("header-toolbar");this.dialog=r,this.resizer=n,this.dialogbox_header=o,this.dialogbox_content=a,this.dialogbox_footer=h,this.dialogbox_toolbar=m,(0,d.css)(e.dialog,{maxWidth:e.options.maxWidth,minHeight:e.options.minHeight,minWidth:e.options.minWidth});const g=e.getElm("header");g&&e.e.on(g,"pointerdown touchstart",e.__onHeaderMouseDown),e.e.on(e.resizer,"mousedown touchstart",e.__onResizerMouseDown);const v=c.fg.get("fullsize");if((0,u.Tn)(v)&&v(e),this.e.on(e.container,"close_dialog",e.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=e.getElm("overlay");this.e.on(t,"click",e.close)}}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.uM)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(n.f.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}};(0,r.Cg)([a.autobind],v.prototype,"__onMouseUp",null),(0,r.Cg)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,r.Cg)([a.autobind],v.prototype,"__onMouseMove",null),(0,r.Cg)([a.autobind],v.prototype,"__onEsc",null),(0,r.Cg)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,r.Cg)([a.autobind],v.prototype,"close",null),(0,r.Cg)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=i=(0,r.Cg)([a.component],v),v.defaultOptions={...m.S.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}},58157(t,e,s){"use strict";s.d(e,{k(){return n}});var i=s(17352),r=s(69052);function n(t,e){try{try{return(0,r.T)(e)?new e(t):e}catch(s){if((0,r.T)(e)&&!e.prototype)return e(t)}}catch(t){if(!i.IS_PROD)throw t}return null}},58269(t,e,s){"use strict";s.d(e,{T(){return a}});var i=s(17352),r=s(56298),n=s(9823),o=s(32291);function a(t,e,s,a,l,c){if((0,n.Gp)(a))try{a.init(t)}catch(t){if(!i.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,o.M)(t,e).catch((t=>{})),a.styles&&((0,r.My)(t,e,"style").innerHTML=a.styles)}},58446(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},58540(t,e){"use strict";e.A=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},58597(t,e,s){"use strict";s.d(e,{z(){return a}});var i=s(56298),r=s(9823),n=s(84976),o=s(34256);class a{dlg(t){const e=(0,i.ef)(this.o,this.container,this.od.body),s=new o.lG({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:e,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,n.b_)(this,s.container),s.parent=this,s.bindDestruct(this)}confirm(t,e,s){return t=l(t,this),e=l(e,this),o.pT.call(this.dlg({closeOnClickOverlay:!0}),t,e,s)}prompt(t,e,s,i,r){return t=l(t,this),e=l(e,this),i=l(i,this),o.XG.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,i,r)}alert(t,e,s,i){return t=l(t,this),e=l(e,this),o.Fc.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,i)}}function l(t,e){return(0,r.Kg)(t)&&!(0,r.AH)(t)&&(t=e.i18n(t)),t}},58720(t,e,s){"use strict";s.d(e,{$$(){return h},DY(){return d},bE(){return p},fz(){return u},tI(){return m}});var i=s(17352),r=s(55186),n=s(42448),o=s(98253),a=s(83260),l=s(97369);let c=1;function h(t,e){let s;if(i.IS_ES_NEXT||!/:scope/.test(t)||!i.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)s=e.querySelectorAll(t);else{const i=e.id,r=i||"_selector_id_"+(Math.random()+"").slice(2)+(c++,c);t=t.replace(/:scope/g,"#"+r),!i&&e.setAttribute("id",r),s=e.parentNode.querySelectorAll(t),i||e.removeAttribute("id")}return[].slice.call(s)}const u=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const s=[].filter.call(t.parentNode.childNodes,(e=>e.nodeName===t.nodeName));return u(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(s.length>1?"["+((0,n.$)(s).indexOf(t)+1)+"]":"")},d=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce(((t,e)=>{const s=(0,l.attr)(e,"-ref");return s&&(0,o.K)(s)&&(t[(0,a.x)(s)]=e,t[s]=e),t}),{})),p=t=>{if(!r.J.isElement(t))return null;const e=[];let s=t;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let t=s.nodeName.toLowerCase();if(s.id){t+="#"+s.id,e.unshift(t);break}{let e=s,i=1;do{e=e.previousElementSibling,e&&e.nodeName.toLowerCase()===t&&i++}while(e);t+=":nth-of-type("+i+")"}e.unshift(t),s=s.parentNode}return e.join(" > ")};function m(t,e){let s=t;if((0,o.K)(t))try{s=e.querySelector(t)}catch{throw(0,l.error)('String "'+t+'" should be valid HTML selector')}if(!s||"object"!=typeof s||!r.J.isElement(s)||!s.cloneNode)throw(0,l.error)('Element "'+t+'" should be string or HTMLElement instance');return s}},58770(t,e,s){"use strict";s.d(e,{F(){return o}});var i=s(77753),r=s(17352),n=s(55186);class o extends i.vG{constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;const e=t.parentNode.childNodes;let s=0,i=null;for(let r=0;e.length>r;r+=1){if(!i||this.isIgnoredNode(e[r])||n.J.isText(i)&&n.J.isText(e[r])||(s+=1),e[r]===t)return s;i=e[r]}return 0}static strokeOffset(t,e){for(;n.J.isText(t);)n.J.isText(t=t.previousSibling)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!n.J.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!o.isIgnoredNode(t)&&e.push(o.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,s=this.j.editor;for(e=0;s&&t.length>e;e+=1)s=s.childNodes[t[e]];return s}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!r.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);const e=this.j.s.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0),i=this.calcHierarchyLadder(s.startContainer),r=this.calcHierarchyLadder(s.endContainer);let n=o.strokeOffset(s.startContainer,s.startOffset),a=o.strokeOffset(s.endContainer,s.endOffset);i.length||s.startContainer===this.j.editor||(n=0),r.length||s.endContainer===this.j.editor||(a=0),t.range={startContainer:i,startOffset:n,endContainer:r,endOffset:a}}return t}restore(t){this.transaction((()=>{const e=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)}))}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){const{j:e}=this,{ow:s}=e;s.scrollTo(s.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){const e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return n.J.isText(t)&&!t.nodeValue||n.J.isTemporary(t)}__getCleanedEditorValue(t){const e=t.cloneNode(!0);return n.J.temporaryList(e).forEach(n.J.unwrap),e.innerHTML}}},58972(t,e,s){"use strict";s.d(e,{q(){return a}});var i=s(12461),r=s(26150),n=s(38322),o=s(9645);function a(t,e,s,a){if(e!==t.offsetWidth||s!==t.offsetHeight){const l=e?(0,o.n)(e):null;let c=s?(0,o.n)(s):null;(0,n.A)(t,{width:l,height:l&&a?null:c}),(0,r.C)(t,"width",l&&(0,i.k)(e)&&(0,r.C)(t,"width")?l:null),(0,r.C)(t,"width")&&!a||(c=null),(0,r.C)(t,"height",c)}}},59082(t,e,s){"use strict";function i(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}s.d(e,{u(){return i}})},59101(t,e,s){"use strict";s.d(e,{Bq(){return r},Gd(){return n},gj(){return o}});var i=s(17352);function r(t){return t.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function n(t,e){return t.replace(RegExp(`[${e}]+$`),"").replace(RegExp(`^[${e}]+`),"")}function o(t){return t.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},59146(t,e,s){"use strict";s.d(e,{D(){return n},w(){return r}});var i=s(17352);function r(t,e,...s){return e?i.globalWindow.setTimeout(t,e,...s):(t.call(null,...s),0)}function n(t){i.globalWindow.clearTimeout(t)}},59678(t,e,s){"use strict";s.d(e,{b$(){return a},iy(){return c},n8(){return l}});var i=s(12461),r=s(35642),n=s(96768),o=s(449);const a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,r.R)(e)&&a.test(t)&&(0,i.k)(""+e)?parseInt(""+e,10)+"px":e}function c(t,e){if("font-weight"===(0,o.k)(t)){switch((""+e).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.k)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(""+e)&&(0,n.s)(""+e)||e}},59827(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59965(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(56298),a=s(71005),l=(s(50974),s(48840));class c extends a.k{afterInit(t){}__onTab(t){if(t.key===r.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){const e=(0,l.O)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,i.Cg)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,i.Cg)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),o.fg.add("tab",c)},59988(t,e,s){"use strict";s.d(e,{_(){return r}});var i=s(55186);function r(t,e,s){const r=i.J.closest(e,i.J.isElement,t.editor);if(!r)return!1;const n=i.J.findNotEmptySibling(r,s);return!(!n||!i.J.isEmpty(n)||(i.J.safeRemove(n),t.s.setCursorBefore(e),0))}},60189(t,e,s){"use strict";var i=s(17352),r=s(56298),n=s(29866),o=s(931),a=s(36115),l=s(34045),c=s.n(l),h=s(39199),u=s.n(h);o.I.set("redo",c()).set("undo",u()),a.T.prototype.controls.redo={mode:i.MODE_SPLIT,isDisabled(t){return!t.history.canRedo()},tooltip:"Redo"},a.T.prototype.controls.undo={mode:i.MODE_SPLIT,isDisabled(t){return!t.history.canUndo()},tooltip:"Undo"},r.fg.add("redoUndo",class d extends n.k{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}})},60346(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(17352);const r=t=>("file:"===i.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},60549(t,e,s){"use strict";s.d(e,{Z(){return n}});var i=s(98253),r=s(59101);function n(t){const e=/([^[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,n=/^(.*)[\s]*=[\s]*(.*)$/,o={};return(0,i.K)(t)?(t.split(s).map((t=>{t=(0,r.Bq)(t);const i=e.exec(t),a={},l=t=>{t=(0,r.Bq)(t);const e=n.exec(t);e?a[e[1]]=e[2]:a[t]=!0};if(i){const t=i[2].split(s);i[1]&&(t.forEach(l),o[i[1].toUpperCase()]=a)}else o[t.toUpperCase()]=!0})),o):!!t&&(Object.keys(t).forEach((e=>{o[e.toUpperCase()]=t[e]})),o)}},60636(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},61001(t,e,s){"use strict";s.d(e,{z(){return o}});var i=s(71842),r=s(97621),n=s(12043);function o(t,e,s){const o=s.e.fire(n.ar+"BeforeWrapList",n.dj,e,t)??i.J.replace(e,"li",s.createInside),a=o.previousElementSibling,l=o.nextElementSibling;let c=i.J.isTag(a,t.element)?a:null;return c??=i.J.isTag(l,t.element)?l:null,i.J.isList(c)&&(0,r.M6)(c,t.options.attributes)||(c=s.createInside.element(t.element),(0,r.Yx)(t,c,s,n.DI),i.J.before(o,c)),a===c?i.J.append(c,o):i.J.prepend(c,o),i.J.isTag(c.nextElementSibling,t.element)&&(0,r.Dd)(c,c.nextElementSibling)&&(i.J.append(c,Array.from(c.nextElementSibling.childNodes)),i.J.safeRemove(c.nextElementSibling)),s.e.fire(n.ar+"AfterWrapList",n.Zk,c,t),c}},61589(t,e,s){"use strict";var i=s(31635),r=s(66927),n=s(56298),o=s(71005),a=(s(43655),s(69122)),l=s(28313);class c extends o.k{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach((e=>{l[e](this.j,t)}))}__onAfterInsertNode(t){Object.keys(a).forEach((e=>{a[e](this.j,t)}))}}(0,i.Cg)([(0,r.w)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,i.Cg)([(0,r.w)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.fg.add("dtd",c)},61793(t,e,s){"use strict";s.d(e,{K(){return h}});var i=s(55186),r=s(98253),n=s(59101),o=s(97369);const a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"]);function h(t,e=document,s=null){const u=e.createElement("div");return(0,r.K)(t)?u.innerHTML=t:u.appendChild(t),(0,o.$$)("*",u).forEach((t=>{const r=t.parentNode;if(!r)return;if(s&&i.J.isTag(t,s)){const r=t.nodeName.toLowerCase(),n=i.J.isTag(t,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${h(t.innerHTML,e,s)}%%%/jodit-${r}%%%`;return i.J.before(t,e.createTextNode(n)),void i.J.safeRemove(t)}if(i.J.isTag(t,l))return void i.J.safeRemove(t);if(!i.J.isTag(t,a))return;const n=t.nextSibling;i.J.isText(n)&&/^\s/.test(n.nodeValue||"")||n&&r.insertBefore(e.createTextNode(" "),n)})),(0,n.Bq)(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,((t,e,s,i)=>`<${e?"/":""}${i}>`))}},61964(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(81875),o=s.n(n);r.T.prototype.usePopupForSpecialCharacters=!1,r.T.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","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","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],i.I.set("symbols",o()),r.T.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,s){const i=t.e.fire("generateSpecialCharactersTable.symbols");if(i){if(t.o.usePopupForSpecialCharacters){const e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(i),t.e.on(i,"close_dialog",s),e}t.alert(i,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);const e=i.querySelector("a");e&&e.focus()}}}},62453(t,e,s){"use strict";s.d(e,{C(){return r}});var i=s(55186);function r(t,e){let s=t;i.J.up(s,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(s=t)}),e.editor);const r=i.J.wrapInline(s,e.o.enter,e);if(i.J.isEmpty(r)){const s=e.createInside.element("br");r.appendChild(s),i.J.before(s,t)}return r}},62870(t,e,s){"use strict";s.d(e,{e(){return c}});var i=s(31635),r=s(77753),n=s(22664),o=s(55186),a=s(87906),l=s(75758);let c=class t extends r.vG{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(t=!1){const e=this.getElms(t?"item-right":"item");for(let t=0;e.length>t;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){const s=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&s.classList.add(this.getFullElName("item-right")),s.appendChild(t),this.container?.appendChild(s),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(t,e){super(t),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(r.f.beforeDestruct),o.J.safeRemove(this.container),super.destruct())}};c=(0,i.Cg)([n.component,(0,n.derive)(l.K,a.O)],c)},62994(t,e,s){"use strict";s.d(e,{Gq(){return l},PZ(){return c},nW(){return h}});var i=s(71842),r=s(65147),n=s(49931),o=s(77112),a=s(31859);const l=(t,e,s="a")=>i.J.closest(t,(t=>i.J.isTag(t,s)),e),c=(t,e)=>{const{key:s}=t.dataset,{item:i}=e[s||""];return i};function h(){let t=!1;const e=(0,o.a)(this),s=this;s.e.on(s.tree.container,"dragstart",(e=>{const i=l(e.target,s.container);i&&s.o.moveFolder&&(t=i)})).on(s.tree.container,"drop",(e=>{if((s.o.moveFile||s.o.moveFolder)&&t){let i=(0,r.attr)(t,"-path")||"";if(!s.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item")))return!1;if(t.classList.contains(this.files.getFullElName("item"))&&(i+=(0,r.attr)(t,"-name"),!s.o.moveFile))return!1;const n=l(e.target,s.container);if(!n)return;s.dataProvider.move(i,(0,r.attr)(n,"-path")||"",(0,r.attr)(n,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then((()=>(0,a.r)(this))).catch(s.status),t=!1}})).on(s.files.container,"contextmenu",(0,n.A)(s)).on(s.files.container,"click",(t=>{(0,r.ctrlKey)(t)||(this.state.activeElements=[])})).on(s.files.container,"click",(t=>{const i=l(t.target,s.container);if(!i)return;const n=c(i,e);return n?(s.state.activeElements=(0,r.ctrlKey)(t)?[...s.state.activeElements,n]:[n],t.stopPropagation(),!1):void 0})).on(s.files.container,"dragstart",(e=>{if(s.o.moveFile){const i=l(e.target,s.container);if(!i)return;t=i}})).on(s.container,"drop",(t=>t.preventDefault()))}},63064(t,e,s){"use strict";s.d(e,{F(){return c}});var i=s(31635),r=s(17352),n=s(22664),o=s(71842),a=s(65147),l=s(53048);let c=class t extends l.D${className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${l.In.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${l.In.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${l.In.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=""+t}set count(t){this.countBox.innerText=""+t}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:e,replace:s,cancel:i,next:n,prev:o,replaceBtn:l,current:c,count:h}=(0,a.refs)(this.container);this.queryInput=e,this.replaceInput=s,this.closeButton=i,this.replaceButton=l,this.currentBox=c,this.countBox=h,t.e.on(this.closeButton,"pointerdown",(()=>(this.close(),!1))).on(this.queryInput,"input",(()=>{this.currentIndex=0})).on(this.queryInput,"pointerdown",(()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())})).on(this.replaceButton,"pointerdown",(()=>(t.e.fire(this,"pressReplaceButton"),!1))).on(n,"pointerdown",(()=>(t.e.fire("searchNext"),!1))).on(o,"pointerdown",(()=>(t.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,a.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((async e=>{e.key===r.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}onEditorKeyDown(t){if(!this.isOpened)return;const{j:e}=this;if(e.getRealMode()===r.MODE_WYSIWYG)switch(t.key){case r.KEY_ESC:this.close();break;case r.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,s=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",s);const i=t??""+(this.j.s.sel||"");i&&(this.queryInput.value=i),e&&(this.replaceInput.value=e),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),o.J.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){const t=(0,a.position)(this.j.toolbarContainer);(0,a.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,a.css)(this.container,{top:null,left:null})}};(0,i.Cg)([(0,n.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),(0,i.Cg)([n.autobind],c.prototype,"open",null),(0,i.Cg)([n.autobind],c.prototype,"close",null),(0,i.Cg)([(0,n.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=(0,i.Cg)([n.component],c)},63400(t,e,s){"use strict";var i=s(36115);i.T.prototype.toolbarSticky=!0,i.T.prototype.toolbarDisableStickyForMobile=!0,i.T.prototype.toolbarStickyOffset=0},63443(t,e,s){"use strict";s.d(e,{f(){return o}});var i=s(17352),r=s(55186);const n=new Set(["table","tbody","thead","tfoot","tr"]);function o(t,e,s){if(t.o.cleanHTML.fillEmptyParagraph&&r.J.isBlock(e)&&r.J.isEmpty(e,i.INSEPARABLE_TAGS)&&!r.J.isTag(e,n)){const s=t.createInside.element("br");return e.appendChild(s),!0}return s}},63634(t,e,s){"use strict";s.d(e,{M(){return r}});var i=s(55186);function r(t,e,s){const{s:r}=t,n=i.J.closest(e,s,t.editor);n&&(r.cursorOnTheRight(n,e)?i.J.after(n,e):r.cursorOnTheLeft(n,e)&&i.J.before(n,e))}},63837(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63915(t,e,s){"use strict";s.d(e,{wc(){return i.w}}),s(17800);var i=s(24834)},64107(t,e,s){"use strict";s.d(e,{t(){return r}});var i=s(55186);function r(t,e){return!!i.J.prev(t,(t=>i.J.isBlock(t)||i.J.isImage(t)),e.editor)}},64241(t,e,s){"use strict";var i=s(31635),r=s(87875),n=s(66927),o=s(56298),a=s(99951),l=s(29866),c=(s(66888),s(20785)),h=s(81026);class u extends l.k{get __dialog(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}get __container(){const{jodit:t,__dialog:e}=this;return new c.b(t,{onInsertAfter(s){t.s.focus(),t.s.setCursorAfter(t.s.current()),t.s.insertHTML(s),e.close()},onInsert(s){t.s.focus(),t.s.insertHTML(s),e.close()}})}constructor(t){super(t),this.buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],(0,o.JW)(h)}afterInit(){}onGenerateAiAssistantForm(t){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(t)}onInvokeAiAssistant(t){const{jodit:e}=this;e.s.focus();const s=e.s.html;e.async.promise((async(i,r)=>{try{i(await e.o.aiAssistant.aiAssistantCallback(t,s))}catch(t){r(t)}})).then((t=>{e.e.fire("ai-assistant-response",t)})).catch((t=>{(0,a.z)(t)||(e.message.error(t.message),e.e.fire("ai-assistant-error",t.message))}))}beforeDestruct(t){(0,r.PO)(this,"__container")?.destruct(),(0,r.PO)(this,"__dialog")?.destruct()}}(0,i.Cg)([r.PP],u.prototype,"__dialog",null),(0,i.Cg)([r.PP],u.prototype,"__container",null),(0,i.Cg)([(0,n.w)(":generateAiAssistantForm.ai-assistant")],u.prototype,"onGenerateAiAssistantForm",null),(0,i.Cg)([(0,n.w)(":invokeAiAssistant")],u.prototype,"onInvokeAiAssistant",null),o.fg.add("ai-assistant",u)},64565(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(71005),h=s(10274);class u extends c.k{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{const e=(0,l.getDataTransfer)(t);return e?e.getData(r.TEXT_HTML)||e.getData(r.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=o.J.isOrContains(this.j.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){const t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,(t=>o.J.isElement(t)&&t.classList.contains(h.Q.prototype.getFullElName("item")))(e)&&(e=e.querySelector("img")),o.J.isTag(e,"img")&&(this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(o.J.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;const e=this.j.s.sel,s=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null),i=this.__getWorkFragment(s,t);e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),i&&this.__insertFragment.call(this,i,s),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,e){let s=null;if(!this.draggable&&t)s=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){const[t,e]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];s=this.j.createInside.element(t),s.setAttribute(e,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(s.textContent=(0,l.attr)(s,e)||"")}else s=(0,l.dataBind)(this.draggable,"target");else this.getText(e)&&(s=this.j.createInside.fromHTML(this.getText(e)));return s}__insertFragment(t,e){this.j.s.insertNode(t,!1,!1),e&&t.firstChild&&t.lastChild&&(e.setStartBefore(t.firstChild),e.setEndAfter(t.lastChild),this.j.s.selectRange(e),this.j.e.fire("synchro")),o.J.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}(0,i.Cg)([n.autobind],u.prototype,"onDragStart",null),(0,i.Cg)([(0,n.throttle)((t=>t.defaultTimeout/10))],u.prototype,"onDrag",null),(0,i.Cg)([n.autobind],u.prototype,"onDragEnd",null),(0,i.Cg)([n.autobind],u.prototype,"onDrop",null),a.fg.add("dragAndDrop",u)},64567(t,e,s){"use strict";s.d(e,{f(){return i}});const i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},64637(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64890(t,e,s){"use strict";s.d(e,{j(){return i.j}});var i=s(86302)},64953(t,e,s){"use strict";var i=s(55186),r=s(931),n=s(36115),o=s(95032),a=s.n(o),l=s(73533),c=s.n(l),h=s(21329);n.T.prototype.link={formTemplate:h.B,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.I.set("link",a()).set("unlink",c()),n.T.prototype.controls.unlink={exec(t,e){const s=i.J.closest(e,"a",t.editor);s&&i.J.unwrap(s),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},n.T.prototype.controls.link={isActive(t){const e=t.s.current();return!(!e||!i.J.closest(e,"a",t.editor))},popup(t,e,s){return t.e.fire("generateLinkForm.link",e,s)},tags:["a"],tooltip:"Insert link"}},65147(t,e,s){"use strict";s.r(e),s.d(e,{CamelCaseToKebabCase(){return h.N},NUMBER_FIELDS_REG(){return l.b$},applyStyles(){return a.ZM},asArray(){return i._j},camelCase(){return h.xQ},cleanFromWord(){return a.wE},clearTimeout(){return r.D},colorToHex(){return o.s},fuzzySearchIndex(){return h.Hp},getContentWidth(){return c.y6},getScrollParent(){return c.mH},hasBrowserColorPicker(){return n.kC},hasContainer(){return n.kO},htmlspecialchars(){return a.Gq},i18n(){return h.Ru},innerWidth(){return c.xM},isAbortError(){return n.zf},isArray(){return n.cy},isBoolean(){return n.Lm},isDestructable(){return n.pV},isEqual(){return n.n4},isFastEqual(){return n.P5},isFunction(){return n.Tn},isHTML(){return n.AH},isHtmlFromWord(){return n.CE},isInitable(){return n.Gp},isInt(){return n.E6},isJoditObject(){return n.y0},isLicense(){return n.Mj},isMarker(){return n.rg},isNativeFunction(){return n.a3},isNumber(){return n.Et},isNumeric(){return n.kf},isPlainObject(){return n.Qd},isPromise(){return n.yL},isSet(){return n.vM},isString(){return n.Kg},isStringArray(){return n.Bo},isURL(){return n.mv},isValidName(){return n.uV},isViewObject(){return n.hH},isVoid(){return n.Rd},isWindow(){return n.l6},kebabCase(){return h.kW},nl2br(){return a.HA},normalizeColor(){return l.$2},normalizeCssNumericValue(){return l.n8},normalizeCssValue(){return l.iy},normalizeKeyAliases(){return l.jB},normalizeLicense(){return l.f},normalizePath(){return l.Fd},normalizeRelativePath(){return l.Vd},normalizeSize(){return l.rn},normalizeUrl(){return l.l2},offset(){return c.cY},position(){return c.G1},safeHTML(){return a.t_},sanitizeHTMLElement(){return a.vn},setTimeout(){return r.w},size(){return c.Ej},splitArray(){return i.uM},sprintf(){return h.nv},stringify(){return h.As},stripTags(){return a.Kq},toArray(){return i.$r},trim(){return h.Bq},trimChars(){return h.Gd},trimInv(){return h.gj},ucfirst(){return h.Z2}});var i=s(32709),r=s(89044),n=s(9823),o=s(93495),a=s(16113),l=s(65499),c=s(34125),h=s(6589),u=s(97369),d={};for(var p in u)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(d[p]=(t=>u[t]).bind(0,p));s.d(e,d)},65199(t,e,s){"use strict";var i=s(17352),r=s(55186),n=s(56298),o=s(29866);s(27195),n.fg.add("stat",class a extends o.k{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((()=>{const t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,i.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").split((0,i.SPACE_REG_EXP)()).filter((t=>t.length)).length))}),this.j.defaultTimeout)}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.J.safeRemove(this.charCounter),r.J.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}})},65499(t,e,s){"use strict";s.d(e,{$2(){return i.$},Fd(){return a.F},Vd(){return l.V},b$(){return r.b$},f(){return o.f},iy(){return r.iy},jB(){return n.j},l2(){return h.l},n8(){return r.n8},rn(){return c.r}});var i=s(73446),r=s(59678),n=s(74995),o=s(31138),a=s(92998),l=s(13265),c=s(7920),h=s(39344)},65717(t,e,s){"use strict";s.d(e,{T(){return i}});const i=t=>{const e=navigator.userAgent.toLowerCase(),s=/(firefox)[\s/]([\w.]+)/.exec(e)||/(chrome)[\s/]([\w.]+)/.exec(e)||/(webkit)[\s/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?s[2]:"webkit"===t?"chrome"===s[1]||"webkit"===s[1]:"ff"===t?"firefox"===s[1]:"msie"===t?"trident"===s[1]||"msie"===s[1]:s[1]===t}},66180(t,e,s){"use strict";s.d(e,{B(){return i}});class i{constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.commands.length-1>this.stackPosition}}},66547(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66888(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(91115),o=s.n(n),a=s(1916),l=s.n(a);r.T.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},i.I.set("ai-assistant",l()),i.I.set("ai-commands",o()),r.T.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:s}){t.e.fire("generateAiAssistantForm.ai-assistant",s.name)}},r.T.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,s){t.e.fire("generateAiAssistantForm.ai-assistant")}}},66927(t,e,s){"use strict";s.d(e,{N(){return h},w(){return u}});var i=s(64567),r=s(32332),n=s(42589),o=s(69052),a=s(25376),l=s(12041),c=s(50156);function h(t,e){let s;do{s=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!s&&t);return s}function u(t,e){return(s,u)=>{if(!(0,o.T)(s[u]))throw(0,c.z3)("Handler must be a Function");const d=e?.immediately??!0,p=e?.context,m=e=>{const i=(0,l.h)(e)?e:e.jodit;let c=(t,...s)=>{if(!e.isInDestruct)return e[u](t,...s)};d||(c=e.async.microDebounce(c,!0)),(0,n.u)(t).forEach((t=>{if(/:/.test(t)){const[s,r]=t.split(":");let n=p;return s.length&&(n=e.get(s)),(0,o.T)(n)&&(n=n(e)),i.events.on(n||e,r,c),n||i.events.on(r,c),void e.hookStatus("beforeDestruct",(()=>{i.events.off(n||e,r,c).off(r,c)}))}const n=t.split("."),[l]=n,u=n.slice(1);let d=e[l];(0,a.Q)(d)&&(0,r.s)(d).on("change."+u.join("."),c);const m=h(s,l);Object.defineProperty(e,l,{configurable:!0,set(t){const s=d;s!==t&&(d=t,m&&m.set&&m.set.call(e,t),(0,a.Q)(d)&&(d=(0,r.s)(d),d.on("change."+u.join("."),c)),c(l,s,d))},get:()=>m&&m.get?m.get.call(e):d})}))};(0,o.T)(s.hookStatus)?s.hookStatus(i.f.ready,m):m(s)}}},67176(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67335(t,e,s){"use strict";var i=s(55186),r=s(56298),n=s(36115),o=s(16116);n.T.prototype.controls.file={popup(t,e,s){const r=(e,s="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${s}">${s||e}</a>`))};let n=null;return e&&(i.J.isTag(e,"a")||i.J.closest(e,"a",t.editor))&&(n=i.J.isTag(e,"a")?e:i.J.closest(e,"a",t.editor)),(0,o.kG)(t,{filebrowser(t){t.files&&t.files.forEach((e=>r(t.baseurl+e))),s()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):r(t,e),s()}},n,s,!1)},tags:["a"],tooltip:"Insert file"},r.fg.add("file",(t=>{t.registerButton({name:"file",group:"media"})}))},67400(t,e,s){"use strict";s.d(e,{B(){return r},f(){return i}});const i=console;function r(t,e=[""],s=null){return(...r)=>(i.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(s,...r))}},67431(t,e,s){"use strict";s.d(e,{u(){return n}});var i=s(17352),r=s(55186);function n(t,e,s,n,o,a){if(a===e||!r.J.isText(e)||null==e.nodeValue)return s;if(!(0,i.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return s;const l=r.J.furthest(a,r.J.isBlock,t.editor);return!l||r.J.isOrContains(l,e)?s:(e.nodeValue=e.nodeValue.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||r.J.safeRemove(e),!0)}},67447(t){t.exports='<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>'},67915(t,e,s){"use strict";s(36115).T.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},67975(t,e,s){"use strict";s.d(e,{H(){return r}});var i=s(17352);function r(t,e,s=0,r=1){let n=0,o=0,a=-1,l=0,c=0;for(o=s;t.length>n&&e.length>o;)t[n].toLowerCase()===e[o].toLowerCase()?(n++,l++,c=0,-1===a&&(a=o)):n>0&&(r>c||e[o]===i.INVISIBLE_SPACE?(c++,l++):(n=0,a=-1,l=0,c=0,o--)),o++;return n===t.length?[a,l]:[-1,0]}},67986(t,e,s){"use strict";var i=s(71842),r=s(59101),n=s(38322),o=s(931),a=s(36115),l=s(48842),c=s.n(l),h=s(25501),u=s.n(h);a.T.prototype.defaultFontSizePoints="px",o.I.set("font",c()).set("fontsize",u()),a.T.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise(t,e){return/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate(t,e){return e+t.o.defaultFontSizePoints},childTemplate(t,e,s){return`${s}${t.o.defaultFontSizePoints}`},tooltip:"Font size",value(t,e){const s=t.s.current();if(!s)return;const r=i.J.closest(s,i.J.isElement,t.editor);if(!r)return;const o=e.control;return""+(0,n.A)(r,o.data?.cssRule||"font-size")},isChildActive(t,e){const s=e.state.value,i=e.control.data?.normalize??(t=>t);return!(!s||!e.control.args||i(""+e.control.args[0])!==i(""+s))},isActive(t,e){const s=e.state.value;if(!s)return!1;const i=e.control.data?.normalize??(t=>t);let r=e.control.data.cacheListSet;if(!r){const t=Object.keys(e.control.list).map(i);r=new Set(t),e.control.data.cacheListSet=r}return r.has(i(""+s))}},a.T.prototype.controls.font={...a.T.prototype.controls.fontsize,command:"fontname",textTemplate(t,e){const[s]=e.split(",");return(0,r.Gd)(s,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,e,s){let i=!1;try{i=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,s)}catch{}return`<span data-style="${e}" style="${i?`font-family: ${e}!important;`:""}">${s}</span>`},data:{cssRule:"font-family",normalize(t){return t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}},68752(t,e,s){"use strict";s.d(e,{Y(){return a}});var i=s(31635),r=s(24767),n=s(97369),o=s(6455);let a=class t extends o.U{className(){return"UIBlock"}constructor(t,e,s={align:"left"}){super(t,e),this.options=s,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,n.attr)(this.container,"data-ref",s.ref),(0,n.attr)(this.container,"ref",s.ref)}};a=(0,i.Cg)([r.s],a)},69052(t,e,s){"use strict";function i(t){return"function"==typeof t}s.d(e,{T(){return i}})},69077(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(56298),o=s(2461),a=s(38322),l=s(29866);s(78134);let c=class t extends l.k{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}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(){const{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){const s=t.storage.get("height");s&&(e=s)}(0,a.A)(t.editor,{minHeight:"100%"}),(0,a.A)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){const{clientHeight:e,clientWidth:s}=this.j.container;if((0,o.E)(t)){const{minHeight:e,maxHeight:s}=this.j.o;(0,o.E)(e)&&e>t&&(t=e),(0,o.E)(s)&&t>s&&(t=s)}(0,a.A)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:s})}__setWidth(t){const{clientHeight:e,clientWidth:s}=this.j.container;if((0,o.E)(t)){const{minWidth:e,maxWidth:s}=this.j.o;(0,o.E)(e)&&e>t&&(t=e),(0,o.E)(s)&&t>s&&(t=s)}(0,a.A)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:s})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:e}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const s=((0,a.A)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,o.E)(s)&&s>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,a.A)(t,"minHeight",s)})),this.j.e.fire("setMinHeight",s)),(0,o.E)(this.j.o.maxHeight)){const t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,a.A)(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,a.A)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");const{clientHeight:i,clientWidth:r}=this.j.container;t===i&&e===r||this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}};(0,i.Cg)([(0,r.throttle)()],c.prototype,"__initialize",null),(0,i.Cg)([r.autobind],c.prototype,"__resizeWorkspaceImd",null),c=(0,i.Cg)([r.autobind],c),n.fg.add("size",c)},69122(t,e,s){"use strict";s.r(e),s.d(e,{removeExtraBr(){return i.z}});var i=s(72984)},69198(t,e,s){"use strict";s.d(e,{t(){return d}});var i,r=s(31635),n=s(22664),o=s(55186),a=s(42448),l=s(97369),c=s(29780),h=s(84103),u=s(931);let d=i=class t extends c.D{className(){return"UIInput"}onChangeClear(){this.state.clearButton?o.J.after(this.nativeInput,this.clearButton):o.J.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const t=this.nativeInput,{name:e,icon:s,type:i,ref:r,required:n,placeholder:a,autocomplete:c,label:h}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",i),(0,l.attr)(t,"data-ref",r||e),(0,l.attr)(t,"ref",r||e),(0,l.attr)(t,"required",n||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),s&&u.I.exists(s)?(o.J.before(t,this.icon),this.icon.innerHTML=u.I.get(s)):o.J.safeRemove(this.icon),h?(o.J.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(h)):o.J.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(h.O.required),this.state.validators?.forEach((t=>{const e=h.O[t];e&&this.validators.add(e)}))}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):o.J.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){const t=""+this.state.value;t!==this.value&&(this.value=t)}onChangeValue(){const{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){this.error="";const t=(0,a.$)(this.validators).every((t=>t(this)));return this.__markInputInvalid(),t}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(t){const e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),this.wrapper.appendChild(s),e.appendChild(this.wrapper),(0,l.attr)(s,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}constructor(t,e){super(t,e),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),u.I.get("cancel")),this.state={...i.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==e?.value&&(e.value=""+e.value),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};d.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,r.Cg)([(0,n.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,r.Cg)([(0,n.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,r.Cg)([(0,n.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,n.debounce)()],d.prototype,"onChangeState",null),(0,r.Cg)([(0,n.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,r.Cg)([n.autobind],d.prototype,"onChangeValue",null),d=i=(0,r.Cg)([n.component],d)},69505(t,e,s){"use strict";var i=s(36115);i.T.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),i.T.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},69810(t,e,s){"use strict";s.d(e,{P(){return n},n(){return r}});var i=s(28616);function r(t,e){return t===e||(0,i.A)(t)===(0,i.A)(e)}function n(t,e){return t===e}},69996(t,e,s){"use strict";s.d(e,{B(){return h}});var i=s(31635),r=s(77753),n=s(22664),o=s(36115),a=s(84345),l=s(58770),c=s(66180);o.T.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends r.vG{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}constructor(t,e=new c.B(t.o.history.maxHistoryLength),s=new l.F(t)){super(t),this.updateTick=0,this.__stack=e,this.snapshot=s,t.o.history.enable&&t.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",(()=>{this.startValue=this.snapshot.make()})).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((t=>t+".history")).join(" "),(()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())})).on(this,"change.history",this.onChange))}))}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){const e=this.snapshot.make();if(!l.F.equal(e,this.startValue)){const s=new a.u(this.startValue,e,this,this.updateTick);if(t){const t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(s)}else this.__stack.push(s);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,i.Cg)([(0,n.debounce)()],h.prototype,"onChange",null)},70061(t,e,s){"use strict";var i=s(17352),r=s(931),n=s(36115),o=s(24772),a=s.n(o),l=s(66547),c=s.n(l);n.T.prototype.fullsize=!1,n.T.prototype.globalFullSize=!0,r.I.set("fullsize",a()).set("shrink",c()),n.T.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){const s=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=s:e.state.icon.name=s},tooltip:"Open in fullsize",mode:i.MODE_SOURCE+i.MODE_WYSIWYG}},70069(t,e,s){"use strict";s.d(e,{d(){return i}});class i{constructor(t){this.limit=t,this.stack=[]}push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}}},70214(t,e,s){"use strict";s.d(e,{H(){return o}});var i=s(55186),r=s(641),n=s(41159);function o(t,e,s){const o=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=i.J.isLeaf(s),h=s.tagName.toLowerCase()===l||c,u=o.cursorOnTheRight(s,t),d=o.cursorOnTheLeft(s,t);if(!h&&(u||d))return u?i.J.after(s,t):i.J.before(s,t),(0,n.y)(t,e,l),void(d&&!u&&i.J.prepend(s,t));const p=o.splitSelection(s,t);(0,r.$)(p,e.editor,e.ed)}},70265(t,e,s){"use strict";s(27337);var i=s(9823),r=s(99898),n=s(47964),o=s(36115);o.T.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,i.Kg)(t)?-1!==t.toLowerCase().indexOf(e):(0,i.Kg)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,i.Kg)(t.file)||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,s){const[n,o]=s.toLowerCase().split("-"),a="asc"===o,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,i.Kg)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[n]||"name"===n)return(0,i.Kg)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,i.Kg)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(n){case"changed":{const s=new Date(t.changed).getTime(),i=new Date(e.changed).getTime();return a?s-i:i-s}case"size":{const s=(0,r.z)(t.size),i=(0,r.z)(e.size);return a?s-i:i-s}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,i.cy)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,s){const i=this.options,r=this.files.getFullElName("item"),n=i.showFileName,o=i.showFileSize&&t.size,a=i.showFileChangeTime&&t.time;let l="";return void 0!==t.file&&(l=t.file),`<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${r}"\n\t\t\thref="${t.fileURL}"\n\t\t\tdata-source="${s}"\n\t\t\tdata-path="${t.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${t.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\t\t\tdata-src="${t.fileURL}"\n\t\t\t\t\tsrc="${t.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${n||o||a?`<div class="${r}-info">${n?`<span class="${r}-info-filename">${l}</span>`:""}${o?`<span class="${r}-info-filesize">${t.size}</span>`:""}${a?`<span class="${r}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...o.T.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:t=>t,process:t=>t},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},o.T.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled(t){return!t.dataProvider.canI("FileUpload")},getContent(t,e){const s=new n.n(t,{tooltip:e.control.tooltip,onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",s.container),s.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled(t){return!t.state.activeElements.length||!t.dataProvider.canI("FileRemove")},exec(t){t.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(t){t.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled(t){return!t.state.activeElements.length},exec(t){t.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive(t){return"tiles"===t.state.view},exec(t){t.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive(t){return"list"===t.state.view},exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e){const s=e.container.querySelector(".jodit-input");if(s)return s;const i=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return i.value=t.state.filterWord,t.e.on(i,"keydown mousedown",t.async.debounce((()=>{t.e.fire("filter.filebrowser",i.value)}),t.defaultTimeout)),i}},sort:{isInput:!0,getContent(t){const e=t.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${t.i18n("Sort by name")} (⬆)</option><option value="name-desc">${t.i18n("Sort by name")} (⬇)</option><option value="size-asc">${t.i18n("Sort by size")} (⬆)</option><option value="size-desc">${t.i18n("Sort by size")} (⬇)</option></select>`);return e.value=t.state.sortBy,t.e.on("sort.filebrowser",(t=>{e.value!==t&&(e.value=t)})).on(e,"change",(()=>{t.e.fire("sort.filebrowser",e.value)})),e}}}},70592(t,e,s){"use strict";s.d(e,{Y(){return c},g(){return l}});var i=s(17352),r=s(55186),n=s(35642),o=s(59678),a=(s(28712),s(38322));function l(t,e){return!(r.J.isTag(t,"font")||!r.J.isHTMLElement(t)||!Object.keys(e).every((s=>{const i=(0,a.A)(t,s,!0);return""===i&&(""===e[s]||null==e[s])||!(0,n.R)(i)&&""!==i&&!(0,n.R)(e[s])&&(""+(0,o.iy)(s,e[s])).toLowerCase()===(""+i).toLowerCase()})))}function c(t,e){return!(r.J.isTag(t,"font")||!r.J.isHTMLElement(t)||!Object.keys(e).every((e=>""!==(0,a.A)(t,e,!0))))}i.globalDocument&&(i.globalDocument.createElement("div").style.color="red"),i.globalDocument&&(i.globalDocument.createElement("div").style.color="red")},70674(t,e,s){"use strict";var i=s(17352),r=s(36115),n=s(90823);r.T.prototype.askBeforePasteHTML=!0,r.T.prototype.processPasteHTML=!0,r.T.prototype.scrollToPastedContent=!0,r.T.prototype.pasteExcludeStripTags=["br","hr"],r.T.prototype.pasteHTMLActionList=[{value:i.INSERT_AS_HTML,text:"Keep"},{value:i.INSERT_AS_TEXT,text:"Insert as Text"},{value:i.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.T.prototype.memorizeChoiceWhenPasteFragment=!1,r.T.prototype.nl2brInPlainText=!0;const o="pasteStorage";r.T.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:s}){if(s.name===o)return void t.execCommand("showPasteStorage");t.s.focus();let r="",a=!0;if(navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const e=await t[0].getType(i.TEXT_PLAIN);r=await new Response(e).text()}a=!1}catch(t){}if(a)try{r=await navigator.clipboard.readText(),a=!1}catch(t){}}a&&(r=t.buffer.get(i.CLIPBOARD_ID)||"",a=0===r.length);const l=t.value;a?(t.ed.execCommand("paste"),a=l===t.value,!a&&t.e.fire("afterPaste")):r.length?((0,n.sX)(null,t,r),t.e.fire("afterPaste")):a&&t.alert("Your browser doesn't support direct access to the clipboard.",(()=>{t.s.focus()}))},list:{[o]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},70697(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70807(t,e,s){"use strict";s.d(e,{m(){return i}});const i=t=>{const e={},s=t.substring(1).split("&");for(let t=0;s.length>t;t+=1){const i=s[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return e}},70881(t){t.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71005(t,e,s){"use strict";s.d(e,{k(){return i.k}});var i=s(29866);s(77402)},71096(t,e,s){"use strict";var i=s(9810),r=s(98253),n=s(26150),o=s(72197),a=s(931),l=s(36115),c=s(71722),h=s(93676),u=s(22227),d=s.n(u);l.T.prototype.speechRecognize={api:void 0!==c.o?c.o:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.I.set("speech-recognize",d()),l.T.prototype.controls.speechRecognize={isVisible:t=>!!t.o.speechRecognize.api,isActive(t,e){const s=(0,o.m)(t,"speech");return!!s?.isEnabled},isDisabled:t=>!t.o.speechRecognize.api,exec(t,e,{button:s,control:a}){const{api:l,lang:c,continuous:u,interimResults:d,sound:p}=t.o.speechRecognize;if(!l)return void t.alert("Speech recognize API unsupported in your browser");let m=(0,o.m)(t,"speech");if(!m){const e=new l;m=new h.g(t.async,e),m.lang=(0,r.K)(c)?c:(0,n.C)(t.od.documentElement,"lang")??void 0,m.continuous=u,m.interimResults=d,m.sound=p,(0,o.m)(t,"speech",m),m.on("pulse",(t=>{s.setMod("pulse",t)})),m.on("result",(e=>t.e.fire("speechRecognizeResult",e))),m.on("progress",(e=>t.e.fire("speechRecognizeProgressResult",e))),m.on("error",(e=>t.message.error(e))),s.hookStatus("beforeDestruct",(()=>{(0,o.m)(t,"speech",null),m.destruct()}))}if(a.args){const t=a.args[0];if((0,i.L)(m[t]))return m[t]=!m[t],void(m.isEnabled&&m.restart())}m.toggle(),m.isEnabled&&s.setMod("pulse",!0),s.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,e,s){const i=(0,o.m)(t,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${i?.[e]??t.o.speechRecognize[e]?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${s}</span>`},mods:{stroke:!1}}},71151(t,e,s){"use strict";s.d(e,{A(){return n}});var i=s(69052),r=s(50156);function n(t){return(e,s)=>{if(!(0,i.T)(e[s]))throw(0,r.z3)("Handler must be a Function");e.hookStatus(t,(t=>{t[s].call(t)}))}}},71274(t,e,s){"use strict";s.d(e,{r(){return n}});var i=s(17352),r=s(55186);function n(t){return r.J.isNode(t)&&r.J.isTag(t,"span")&&t.hasAttribute("data-"+i.MARKER_CLASS)}},71576(t,e,s){"use strict";var i=s(55186),r=s(25376),n=s(931),o=s(36115),a=s(29348);n.I.set("paragraph",s.n(a)()),o.T.prototype.controls.paragraph={command:"formatBlock",value(t,e){const s=e.control,r=t.s.current(),n=i.J.closest(r,i.J.isBlock,t.editor);return n?.nodeName.toLowerCase()??s.data?.currentValue},update(t,e){const s=e.control;if(!t.s.current())return!1;const i=e.state.value,n=s.list;return(0,r.Q)(n)&&n[""+i]&&t.o.textIcons&&(e.state.text=""+n[""+i]),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(t,e){return!(e.state.value!==e.control?.args?.[0])},isActive(t,e){return e.state.value!==t.o.enter&&(0,r.Q)(e.control.list)&&!!e.control.list[e.state.value]},childTemplate(t,e,s){return`<${e} style="margin:0;padding:0"><span>${t.i18n(s)}</span></${e}>`},tooltip:"Insert format block"}},71722(t,e,s){"use strict";s.d(e,{o(){return r}});var i=s(17352);const r=i.globalWindow?i.globalWindow.SpeechRecognition||i.globalWindow.webkitSpeechRecognition:void 0},71842(t,e,s){"use strict";s.d(e,{J(){return i.J},p(){return r.p}});var i=s(55186),r=s(8453)},71940(t){t.exports='<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>'},71948(t){t.exports='<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>'},72197(t,e,s){"use strict";s.d(e,{m(){return n}});var i=s(12041);const r=new WeakMap,n=(t,e,s)=>{let n=r.get(t);if(!n){n={},r.set(t,n);let e=null;(0,i.h)(t.j)&&(e=t.j.e),(0,i.h)(t)&&(e=t.e),e&&e.on("beforeDestruct",(()=>{r.delete(t)}))}return void 0===s?n[e]:(n[e]=s,s)}},72874(t,e,s){"use strict";s.d(e,{a(){return o}});var i=s(55186),r=s(84976),n=s(81779);function o(t,e,s){const o=i.J.findSibling(e,s),a=i.J.findSibling(e,!s);if(!i.J.closest(e,i.J.isElement,t.editor)&&i.J.isList(o)&&i.J.isList(a)&&i.J.isTag(o.lastElementChild,"li")&&i.J.isTag(a.firstElementChild,"li")){const{setCursorBefore:l,setCursorAfter:c}=t.s,h=o.lastElementChild;return(0,r.T1)(s?i.J.prepend:i.J.append,a.firstElementChild,e),i.J.moveContent(a,o,!s,(0,n.g)(t)),i.J.safeRemove(a),(0,r.T1)(s?i.J.append:i.J.prepend,h,e),(0,r.T1)(s?l:c,e),!0}return!1}},72984(t,e,s){"use strict";s.d(e,{z(){return n}});var i=s(55186);const r=new Set(["table","pre","blockquote","code"]);function n(t,e){if(!t.o.dtd.removeExtraBr||i.J.isTag(e,"br"))return;const s=i.J.furthest(e,i.J.isBlock,t.editor);if(s&&!i.J.isTag(s,r)){const s=i.J.isTag(e,"br")?e:i.J.findNotEmptySibling(e,!1);if(!i.J.isTag(s,"br"))return;t.s.setCursorBefore(s),i.J.safeRemove(s)}}},73077(t,e,s){"use strict";var i=s(56298),r=s(65147);s(67986),i.fg.add("font",(t=>{t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const e=(e,s,i)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(i,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:i}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}))},73124(t,e,s){"use strict";var i=s(36115);i.T.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},i.T.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},i.T.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},i.T.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},i.T.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},i.T.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},73307(t,e,s){"use strict";s.d(e,{V(){return r}});var i=s(53048);class r extends i.Ue{className(){return"FileBrowserTree"}}},73446(t,e,s){"use strict";s.d(e,{$(){return n}});var i=s(96768),r=s(59101);const n=t=>{const e=["#"];let s=(0,i.s)(t);if(!s)return!1;if(s=(0,r.Bq)(s.toUpperCase()),s=s.substring(1),3===s.length){for(let t=0;3>t;t+=1)e.push(s[t]),e.push(s[t]);return e.join("")}return s.length>6&&(s=s.slice(0,6)),"#"+s}},73533(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73780(t,e,s){"use strict";s.d(e,{y(){return i}});const i=(t,e)=>{const s=t=>parseInt(t,10),i=e.getComputedStyle(t);return t.offsetWidth-s(i.getPropertyValue("padding-left")||"0")-s(i.getPropertyValue("padding-right")||"0")}},74260(t,e,s){"use strict";s.d(e,{g(){return r}});var i=s(38322);function r(t,e){e.align=t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?(0,i.A)(t,"float"):"block"===(0,i.A)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?"center":""}},74340(t,e,s){"use strict";s.d(e,{$j(){return r.$},Pb(){return a},YQ(){return o},_9(){return n._},dT(){return i.d},tN(){return r.t}}),s(89929);var i=s(84759),r=s(27912),n=s(74714);function o(t){return!!(t&&t.files&&t.files.length>0)}function a(t){return!!(t&&t.items&&t.items.length>0)}},74470(t,e,s){"use strict";var i=s(37923),r=s(41324),n=s.n(r),o=s(63837),a=s(53414);let l={};l={ar:n(),cs_cz:n(),de:n(),en:o,es:n(),fi:n(),fr:n(),he:n(),hu:n(),id:n(),it:n(),ja:n(),ko:n(),mn:n(),nl:n(),no:n(),pl:n(),pt_br:n(),ru:n(),tr:n(),ua:n(),zh_cn:n(),zh_tw:n()};const c=t=>t?t.default||t:{},h={};(0,i.c)(c(a))&&c(a).forEach(((t,e)=>{h[e]=t})),Object.keys(l).forEach((t=>{const e=c(l[t]);(0,i.c)(e)?(l[t]={},e.forEach(((e,s)=>{l[t][h[s]]=e}))):l[t]=e})),e.A=l},74646(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(71948),o=s.n(n);r.T.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.T.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},i.I.set("eraser",o())},74714(t,e,s){"use strict";s.d(e,{_(){return n}});var i=s(65147),r=s(27912);function n(t,e,s,n,o){if(!e)return Promise.reject((0,i.error)("Need files"));const{o:a}=t;let l=(0,i.toArray)(e);if(!l.length)return Promise.reject((0,i.error)("Need files"));const c=[];if(a.insertImageAsBase64URI&&((t,e,s,r,n,o)=>{let a,l;for(l=0;t.length>l;l+=1)if(a=t[l],a&&a.type){const c=a.type.match(/\/([a-z0-9]+)/i),h=c[1]?c[1].toLowerCase():"";if(!e.includes(h))continue;const u=new FileReader;s.push(r.j.async.promise(((t,e)=>{u.onerror=e,u.onloadend=()=>{const e={baseurl:"",files:[u.result],isImages:[!0]};((0,i.isFunction)(n)?n:o).call(r,e),t(e)},u.readAsDataURL(a)}))),t[l]=null}})(l,a.imagesExtensions,c,t,s,a.defaultHandlerSuccess),l=l.filter((t=>t)),l.length){const e=new FormData;let h;e.append(a.pathVariableName,t.path),e.append("source",t.source);for(let s=0;l.length>s;s+=1)if(h=l[s],h){const i=/\.\w+$/.test(h.name),r=h.type.match(/\/([a-z0-9]+)/i),n=r&&r[1]?r[1].toLowerCase():"";let o=l[s].name||(""+Math.random()).replace(".","");if(!i&&n){let t=n;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(o)||(o+="."+n)}const[c,u,d]=a.processFileName.call(t,a.filesVariableName(s),l[s],o);e.append(c,u,d)}o&&o(e),a.data&&(0,i.isPlainObject)(a.data)&&Object.keys(a.data).forEach((t=>{e.append(t,a.data[t])})),a.prepareData.call(t,e),c.push((0,r.t)(t,e).then((e=>a.isSuccess.call(t,e)?(((0,i.isFunction)(s)?s:a.defaultHandlerSuccess).call(t,a.process.call(t,e)),e):(((0,i.isFunction)(n)?n:a.defaultHandlerError).call(t,(0,i.error)(a.getMessage.call(t,e))),e))).then((()=>{t.j.events&&t.j.e.fire("filesWereUploaded")})))}return Promise.all(c)}},74995(t,e,s){"use strict";s.d(e,{j(){return n}});var i=s(17352),r=s(59101);function n(t){const e={},s={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((t=>(0,r.Bq)(t.toLowerCase()))).map((t=>i.KEY_ALIASES[t]||t)).sort(((t,e)=>s[t]&&!s[e]?-1:!s[t]&&s[e]?1:s[t]&&s[e]?s[t]-s[e]:t>e?1:-1)).filter((t=>!e[t]&&""!==t&&(e[t]=!0))).join("+")}},75220(t,e,s){"use strict";s.d(e,{G(){return o}});var i=s(55186),r=s(38046),n=s(95274);function o(t,e){let{firstChild:s}=e;for(;s&&!(0,r._)(s);)if(s=s.nextSibling,!s)return null;return s&&!i.J.next(s,r._,e)&&(0,n.sz)(t,s,!1)?s:null}},75758(t,e,s){"use strict";s.d(e,{K(){return r}});var i=s(35642);class r{afterSetMod(t,e){}setMod(t,e,s){t=t.toLowerCase();const r=this.mods[t];if(r===e)return this;const n=`${this.componentName}_${t}_`,o=(s||this.container).classList;return null!=r&&o.remove(`${n}${(""+r).toLowerCase()}`),!(0,i.R)(e)&&""!==e&&o.add(`${n}${(""+e).toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},75766(t,e,s){"use strict";s.d(e,{M(){return r},u(){return n}});var i=s(69052);const r=new Map,n=t=>{if((0,i.T)(t.className))return t.className();const e=t.constructor?.originalConstructor||t.constructor;if(r.has(e))return r.get(e);if(e.name)return e.name;const s=RegExp(/^\s*function\s*(\S*)\s*\(/),n=(""+e).match(s);return n?n[1]:""}},75889(t,e,s){"use strict";s.d(e,{o(){return c}});var i=s(31635),r=s(17352),n=s(22664),o=s(65147),a=s(53883),l=s(11133);const c="default",h=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);let u=class t{constructor(t,e){this.parent=t,this.options=e,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}get o(){return this.options}get(t){const e=this.__ajaxInstances;if(e.has(t)){const s=e.get(t);s?.abort(),e.delete(t)}const s=(0,o.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,o.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));s.prepareData&&(s.data=s.prepareData.call(this,s.data));const i=new a.d(s);e.set(t,i);const r=i.send();return r.finally((()=>{i.destruct(),e.delete(t),this.progressHandler(100)})).catch((()=>null)),r.then((t=>t.json())).then((t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t}))}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions?(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url?this.get("permissions").then((t=>{if(this.parent.isInDestruct)throw(0,o.abort)();let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){const s=e.call(self,t);s.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,s.data.permissions),this.__currentPermissions=s.data.permissions)}return this.__currentPermissions})):null):null}canI(t){const e="allow"+t;if(!r.IS_PROD&&!h.has(e))throw(0,o.error)("Wrong action "+t);const s=this.o.permissionsPresets[e];return void 0!==s?s:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,s,i){const r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=e,r.items.data.mods=s,this.get("items").then((t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),i(t)}))):Promise.reject(Error("Set Items api options"))}items(t,e,s={}){return this.__items(t,e,s,(t=>this.generateItemsList(t.data.sources,s)))}itemsEx(t,e,s={}){return this.__items(t,e,s,(t=>{return{items:this.generateItemsList(t.data.sources,s),loadedTotal:(e=t.data.sources,e.reduce(((t,e)=>t+e.files.length),0))};var e}))}generateItemsList(t,e={}){const s=[],i=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach((t=>{if(t.files&&t.files.length){const{sort:r}=this.o;(0,o.isFunction)(r)&&e.sortBy&&t.files.sort(((t,s)=>r(t,s,e.sortBy))),t.files.forEach((r=>{i(r)&&(t=>"folder"===t.type||!e.onlyImages||void 0===t.isImage||t.isImage)(r)&&s.push(l.u.create({...r,sourceName:t.name,source:t}))}))}})),s}async tree(t,e){return t=(0,o.normalizeRelativePath)(t),this.o.folder?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then((t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources}))):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,o.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then((t=>{if(this.isSuccess(t))return t.data;throw(0,o.error)(this.getMessage(t))}))}createFolder(t,e,s){const{create:i}=this.o;if(!i)throw(0,o.error)("Set Create api options");return i.data.source=s,i.data.path=e,i.data.name=t,this.get("create").then((t=>{if(this.isSuccess(t))return!0;throw(0,o.error)(this.getMessage(t))}))}move(t,e,s,i){const r=i?"fileMove":"folderMove",n=this.options[r];if(!n)throw(0,o.error)("Set Move api options");return n.data.from=t,n.data.path=e,n.data.source=s,this.get(r).then((t=>{if(this.isSuccess(t))return!0;throw(0,o.error)(this.getMessage(t))}))}remove(t,e,s,i){const r=this.o[t];if(!r)throw(0,o.error)(`Set "${t}" api options`);return r.data.path=e,r.data.name=s,r.data.source=i,this.get(t).then((t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t))))}fileRemove(t,e,s){return this.remove("fileRemove",t,e,s)}folderRemove(t,e,s){return this.remove("folderRemove",t,e,s)}rename(t,e,s,i,r){const n=this.o[t];if(!n)throw(0,o.error)(`Set "${t}" api options`);return n.data.path=e,n.data.name=s,n.data.newname=i,n.data.source=r,this.get(t).then((t=>(n.process&&(t=n.process.call(self,t)),this.getMessage(t))))}folderRename(t,e,s,i){return this.rename("folderRename",t,e,s,i)}fileRename(t,e,s,i){return this.rename("fileRename",t,e,s,i)}changeImage(t,e,s,i,r,n){this.o[t]||(this.o[t]={data:{}});const o=this.o[t];return void 0===o.data&&(o.data={action:t}),o.data.newname=r||i,n&&(o.data.box=n),o.data.path=e,o.data.name=i,o.data.source=s,this.get(t).then((()=>!0))}crop(t,e,s,i,r){return this.changeImage("crop",t,e,s,i,r)}resize(t,e,s,i,r){return this.changeImage("resize",t,e,s,i,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()}};u=(0,i.Cg)([n.autobind],u),e.A=u},76104(t,e,s){"use strict";s.d(e,{Z(){return r}});var i=s(25376);const r=(t,e)=>{const s=[],n=encodeURIComponent;for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const a=e?e+"["+o+"]":o,l=t[o];s.push((0,i.Q)(l)?r(l,a):n(a)+"="+n(l))}return s.join("&")}},76134(t,e,s){"use strict";s.d(e,{S(){return r.S},p(){return i.p}});var i=s(5533),r=s(55265)},76166(t,e,s){"use strict";s.d(e,{FI(){return n},fF(){return o},z3(){return r}});var i=s(20222);function r(t){return new TypeError(t)}function n(t){return new i.Rc(t)}function o(t){return new i.ZW(t)}},76385(t,e,s){"use strict";var i=s(56298);s(94291),i.fg.add("table",(t=>{t.registerButton({name:"table",group:"insert"})}))},76693(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(71842),o=s(56298),a=s(71005),l=s(53048);s(57362);let c=class t extends a.k{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.In.get("resize_handler"))}afterInit(t){const{height:e,width:s,allowResizeX:i}=t.o;let{allowResizeY:r}=t.o;"auto"===e&&"auto"!==s&&(r=!1),"auto"===e&&"auto"===s||!i&&!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(){n.J.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};c.requires=["size"],c=(0,i.Cg)([r.autobind],c),o.fg.add("resizeHandler",c)},76776(t,e,s){"use strict";function i(t){return null!=t&&t===t.window}s.d(e,{l(){return i}})},76967(t,e,s){"use strict";var i=s(56298),r=s(65147),n=s(39611);s(88011),i.fg.add("mobile",(t=>{let e=0,s=(0,r.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",(s=>{if(s.changedTouches&&s.changedTouches.length){const i=(new Date).getTime(),r=i-e;r>t.o.mobileTapTimeout&&(e=i,1.5*t.o.mobileTapTimeout>r&&t.s.insertCursorAtPoint(s.clientX,s.clientY))}})),t.e.on("getDiffButtons.mobile",(e=>{if(e===t.toolbar){const e=(0,n.V)((0,r.splitArray)(t.o.buttons),t),i=(0,n.V)(s,t);return(0,r.toArray)(e).reduce(((t,e)=>(i.has(e)||t.push(e),t)),[])}})),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{if(!t.o.toolbar)return;const e=(t.container.parentElement??t.container).offsetWidth,i=(0,r.splitArray)(t.isFullSize||e>=t.o.sizeLG?t.o.buttons:t.o.sizeMD>e?t.o.sizeSM>e?t.o.buttonsXS:t.o.buttonsSM:t.o.buttonsMD);""+i!=""+s&&(s=i,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(s.concat(t.o.extraButtons)))})).on(t.ow,"load resize",(()=>t.e.fire("recalcAdaptive")))}))},77112(t,e,s){"use strict";s.d(e,{a(){return r}});const i=new WeakMap,r=t=>{let e=i.get(t);return e||(e={},i.set(t,e)),e}},77334(t,e,s){"use strict";var i=s(37923),r=s(83044),n=s(36115);n.T.prototype.enableDragAndDropFileToEditor=!0,n.T.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,i.c)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,s)=>[t,e,s],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){const e=this.j||this;(0,r.y)(e)&&t.files&&t.files.length&&t.files.forEach(((s,i)=>{const[r,n]=t.isImages&&t.isImages[i]?["img","src"]:["a","href"],o=e.createInside.element(r);o.setAttribute(n,t.baseurl+s),"a"===r&&(o.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,s)),"img"===r?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(o)}))},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},77402(t,e,s){"use strict";s.d(e,{$(){return h}}),s(17352);var i=s(56298),r=s(32709),n=s(9823),o=s(58269),a=s(32291),l=s(58157),c=s(96134);class h{constructor(){this.__items=new Map}get size(){return this.__items.size}add(t,e){this.__items.set((0,c.P)(t),e),i.RR.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,c.P)(t))}remove(t){this.__items.delete((0,c.P)(t))}__getFullPluginsList(t){const e=[];return this.__items.forEach(((s,i)=>{t&&!t.has(i)||e.push([i,s])})),e}__init(t){const{extraList:e,disableList:s,filter:i}=(t=>({extraList:t.o.extraPlugins.map((t=>(0,n.Kg)(t)?{name:t}:t)),disableList:new Set((0,r.uM)(t.o.disablePlugins).map(c.P)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null}))(t),h=new Map,u={},d=new Set;t.__plugins=u;const p=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(i).forEach((([i,r])=>{if(s.has(i)||h.has(i))return;const a=r?.requires;if(a&&(0,n.cy)(a)&&a.length){if(a.some((t=>s.has(t))))return;if(!a.every((t=>h.has(t))))return void d.add(i)}e=!0;const c=(0,l.k)(t,r);if(!c)return h.set(i,null),void d.delete(i);(0,o.T)(t,i,r,c,h,d),u[i]=c})),e&&(t.e.fire("updatePlugins"),p())};e&&e.length&&(0,a.o)(this.__items,t,e,p),p(),((t,e)=>{t.e.on("beforeDestruct",(()=>{Object.keys(e).forEach((s=>{const i=e[s];(0,n.pV)(i)&&i.destruct(t),delete e[s]})),delete t.__plugins}))})(t,u)}wait(t){return new Promise((e=>{if(this.get(t))return e();const s=()=>{e(),i.RR.off(`plugin:${t}:ready`,s)};i.RR.on(`plugin:${t}:ready`,s)}))}}},77753(t,e,s){"use strict";s.d(e,{f(){return r.f},uA(){return i.u},vG(){return n.v}});var i=s(37474),r=s(64567),n=s(7982)},77782(t,e,s){"use strict";s.d(e,{S(){return C}});var i,r=s(31635),n=s(77753),o=s(37474),a=s(64567),l=s(17352),c=s(92852),h=s(87875),u=s(1963),d=s(71151),p=s(71842),m=s(50025),g=s(56298),f=s(65147),v=s(24834),_=s(87906),b=s(75758),y=s(92227),w=s(91902);let C=i=class t extends o.u{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,f.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return v.w.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(t){return new w.N(this,t)}get storage(){return v.w.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new y.z(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,f.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return i.version}static getVersion(){return i.version}initOptions(t){this.options=(0,f.ConfigProto)(t||{},(0,f.ConfigProto)(this.options||{},i.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;const e=t?.events;e&&Object.keys(e).forEach((t=>this.e.on(t,e[t])))}constructor(t,e=!1){super(),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=i.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.initOptions(t),this.initOwners(),this.events=new m.bk(this.od),this.create=new c.X(this.od),this.container=this.c.div("jodit "+this.componentName)}getInstance(t,e){const s=(0,f.isFunction)(t)?t.prototype.className():t,i=this.e.fire((0,f.camelCase)("getInstance_"+s),e);if(i)return i;const r=(0,f.isFunction)(t)?t:g.av[s],o=this.__modulesInstances;if(!(0,f.isFunction)(r))throw(0,f.error)("Need real module name");if(!o.has(s)){const t=r.prototype instanceof n.vG?new r(this,e):new r(e);this.components.add(t),o.set(s,t)}return o.get(s)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(a.f.beforeDestruct,this),this.components.forEach((t=>{(0,f.isDestructable)(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear()}destruct(){this.isDestructed||((0,h.PO)(this,"progressbar")?.destruct(),(0,h.PO)(this,"message")?.destruct(),this.events&&(this.events.destruct(),this.events=void 0),(0,h.PO)(this,"buffer")?.clear(),p.J.safeRemove(this.container),super.destruct())}};C.ES=l.ES,C.version=l.APP_VERSION,C.esNext=l.IS_ES_NEXT,C.esModern=l.IS_ES_MODERN,(0,r.Cg)([h.PP],C.prototype,"buffer",null),(0,r.Cg)([h.PP],C.prototype,"message",null),(0,r.Cg)([h.PP],C.prototype,"storage",null),(0,r.Cg)([h.PP],C.prototype,"c",null),(0,r.Cg)([h.PP],C.prototype,"e",null),(0,r.Cg)([h.PP],C.prototype,"progressbar",null),(0,r.Cg)([(0,d.A)(a.f.beforeDestruct)],C.prototype,"beforeDestruct",null),C=i=(0,r.Cg)([(0,u.C)(b.K,_.O)],C),C.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},78134(t,e,s){"use strict";var i=s(36115);i.T.prototype.minWidth=200,i.T.prototype.maxWidth="100%",i.T.prototype.minHeight=200,i.T.prototype.maxHeight="auto",i.T.prototype.saveHeightInStorage=!1},78139(t,e,s){"use strict";s.d(e,{N(){return n}});var i=s(38322),r=s(9645);function n(t,e,s,n,o,a,l){const c=[e,s,n,o],h=(t,e)=>{const s=(0,i.A)(a,t),n=(0,r.n)(e);""+s!=""+n&&(0,i.A)(a,t,n)};if(l)h("margin",e);else{const t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach(((e,s)=>{h(t[s],e)}))}}},78479(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(17352);function r(){let t=!0;try{const e=i.globalDocument.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}},78593(t,e,s){"use strict";var i=s(17352),r=s(931),n=s(36115),o=s(21917),a=s.n(o);n.T.prototype.useSearch=!0,n.T.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:i.globalWindow&&void 0!==i.globalWindow.Highlight},r.I.set("search",a()),n.T.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,e,{control:s}){switch(s.args&&s.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate(t,e,s){return s}}},78703(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(49989),o=s.n(n);r.T.prototype.spellcheck=!1,i.I.set("spellcheck",o()),r.T.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:o(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},78757(t,e,s){"use strict";var i=s(17352),r=s(71842),n=s(56298),o=s(17527),a=s(98434),l=s(931),c=s(36115),h=s(11131),u=s(59827);l.I.set("print",s.n(u)()),c.T.prototype.controls.print={exec(t){const e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,n.My)(t,c.T).appendChild(e);const s=()=>{t.e.off(t.ow,"mousemove",s),r.J.safeRemove(e)},i=e.contentWindow;if(i){t.e.on(i,"onbeforeunload onafterprint",s).on(t.ow,"mousemove",s),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",i.document,t),i.document.body.innerHTML=t.value):(i.document.write('<!doctype html><html lang="'+(0,o.e)(t.o.language)+'"><head><title></title></head><style>'+(0,h.Y)(t)+"</style><body></body></html>"),i.document.close(),(0,a.u)(t,void 0,"px",i.document.body));const e=i.document.createElement("style");e.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",i.document.head.appendChild(e),i.focus(),i.print()}},mode:i.MODE_SOURCE+i.MODE_WYSIWYG,tooltip:"Print"},n.fg.add("print",(t=>{t.registerButton({name:"print"})}))},78777(t,e,s){"use strict";s.d(e,{i(){return r}});var i=s(55186);function r(t,e){return!!i.J.closest(t,["style","script"],e)}},78817(t,e,s){"use strict";s.d(e,{IJ(){return i.IJ},QN(){return r.Q},Tz(){return i.Tz},_B(){return i._B},zy(){return i.zy}});var i=s(89568),r=s(30621)},79721(t,e,s){"use strict";s.r(e),s.d(e,{angle_down(){return r.a},angle_left(){return o.a},angle_right(){return l.a},angle_up(){return h.a},bin(){return d.a},cancel(){return m.a},center(){return f.a},check(){return _.a},chevron(){return y.a},dots(){return C.a},eye(){return S.a},file(){return I.a},folder(){return k.a},info_circle(){return L.a},left(){return M.a},lock(){return P.a},ok(){return N.a},pencil(){return D.a},plus(){return O.a},resize_handler(){return H.a},right(){return W.a},save(){return $.a},settings(){return U.a},unlock(){return K.a},update(){return Z.a},upload(){return tt.a},valign(){return st.a}});var i=s(88497),r=s.n(i),n=s(91882),o=s.n(n),a=s(14305),l=s.n(a),c=s(58446),h=s.n(c),u=s(39858),d=s.n(u),p=s(70881),m=s.n(p),g=s(60636),f=s.n(g),v=s(32013),_=s.n(v),b=s(45512),y=s.n(b),w=s(80347),C=s.n(w),E=s(95134),S=s.n(E),T=s(70697),I=s.n(T),x=s(49983),k=s.n(x),j=s(98964),L=s.n(j),A=s(8136),M=s.n(A),z=s(94806),P=s.n(z),R=s(31365),N=s.n(R),q=s(44636),D=s.n(q),B=s(36327),O=s.n(B),J=s(53328),H=s.n(J),F=s(98711),W=s.n(F),V=s(53808),$=s.n(V),Y=s(20784),U=s.n(Y),G=s(70999),K=s.n(G),X=s(45244),Z=s.n(X),Q=s(99876),tt=s.n(Q),et=s(14006),st=s.n(et)},80004(t,e,s){"use strict";s.d(e,{r(){return l}});var i=s(71842),r=s(65499),n=s(92032),o=s(77112),a=s(31859);function l(){const t=(0,o.a)(this),{state:e,files:s,create:l,options:c}=this,h=e=>{const s=e.uniqueHashKey;if(t[s])return t[s].elm;const i=l.fromHTML(c.getThumbTemplate.call(this,e,e.source,""+e.sourceName));return i.dataset.key=s,t[s]={item:e,elm:i},t[s].elm};e.on(["change.currentPath","change.currentSource"],this.async.debounce((()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.r)(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.remove(s.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.add(s.getFullElName("item","active",!0))}))})).on("change.view",(()=>{s.setMod("view",e.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",e.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",e.sortBy)})).on("change.elements",this.async.debounce((()=>{i.J.detach(s.container),e.elements.length?e.elements.forEach((t=>{this.files.container.appendChild(h(t))})):s.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{i.J.detach(this.tree.container),e.sources.forEach((t=>{const e=t.name;if(e&&"default"!==e&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),e)),t.folders.forEach((s=>{const i=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,r.Fd)(t.path,s+"/"),"data-name":s,"data-source":e,"data-source-path":t.path},l.span(this.tree.getFullElName("item-title"),s)),o=i=>n=>{this.e.fire(i+".filebrowser",{name:s,path:(0,r.Fd)(t.path+"/"),source:e}),n.stopPropagation(),n.preventDefault()};if(this.e.on(i,"click",o("openFolder")),this.tree.container.appendChild(i),".."!==s&&"."!==s){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){const t=(0,n.$n)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(o("renameFolder")),i.appendChild(t.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){const t=(0,n.$n)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(o("removeFolder")),i.appendChild(t.container)}}})),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){const s=(0,n.$n)(this,"plus","Add folder","secondary");s.onAction((()=>{this.e.fire("addFolder",{path:(0,r.Fd)(t.path+"/"),source:e})})),this.tree.append(s)}}))}),this.defaultTimeout))}},80071(t,e,s){"use strict";s.d(e,{z(){return d}});var i=s(31635),r=s(37474),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=(s(28712),s(29780)),h=s(6455);const u=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class d extends h.U{className(){return"Popup"}appendChildToContainer(t){this.getElm("content").appendChild(t)}updateParentElement(t){return t!==this&&r.u.isInstanceOf(t,d)&&(this.__childrenPopups.forEach((e=>{!t.closest(e)&&e.isOpened&&e.close()})),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",(()=>{this.__childrenPopups.delete(t)})),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(r.u.isInstanceOf(t,c.D))this.append(t);else{const e=(0,l.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,s){if((0,l.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,s)s.appendChild(this.container);else{const t=(0,a.My)(this.jodit,d);s!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;const t=t=>{const e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(""+e,10)),!0)},{j:e}=this;if(t(e))return;let s=this.parentElement;for(;s;){if(t(s.j))return;if(s.container.style.zIndex)return void this.setZIndex(1+parseInt(""+s.container.style.zIndex,10));if(!s.parentElement&&s.container.parentElement){const t=c.D.closestElement(s.container.parentElement,c.D);if(t){s=t;continue}}s=s.parentElement}}getKeepBound(t){const e=t(),s=this.od.elementFromPoint(e.left,e.top);if(!s)return t;const i=o.J.isHTMLElement(s)?s:s.parentElement,r=(0,l.position)(i,this.j);return()=>{const e=t(),s=(0,l.position)(i,this.j);return{...e,top:e.top+(s.top-r.top),left:e.left+(s.left-r.left)}}}updatePosition(){if(!this.isOpened)return this;const[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,l.position)(this.container,this.j));return this.setMod("strategy",e),(0,l.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach((t=>t.updatePosition())),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,s,i=this.strategy){const r={left:t.left,right:t.left-(s.width-t.width)},n={bottom:t.top+t.height,top:t.top-s.height},o=Object.keys(r).reduce(((t,e)=>t.concat(Object.keys(n).map((t=>`${e}${(0,l.ucfirst)(t)}`)))),[]),a=t=>{const[e,i]=(0,l.kebabCase)(t).split("-");return{left:r[e],top:n[i],width:s.width,height:s.height}},c=t=>{let e=null;return e=d.boxInView(a(i),t)?i:o.find((e=>{if(d.boxInView(a(e),t))return e}))||null,e};let h=c((0,l.position)(this.j.container,this.j));return h&&d.boxInView(a(h),e)||(h=c(e)||h||i),[a(h),h]}static boxInView(t,e){return!(-2>t.top-e.top||-2>t.left-e.left||-2>e.top+e.height-(t.top+t.height)||-2>e.left+e.width-(t.left+t.width))}close(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach((t=>t.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),o.J.safeRemove(this.container),this):this}__closeOnOutsideClick(t){this.isOpened&&!this.isOwnClick(t)&&this.close()}isOwnClick(t){if(!t.target)return!1;const e=c.D.closestElement(t.target,d);return!(!e||this!==e&&!e.closest(this))}__addGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;a.RR.on("closeAllPopups",this.close),this.smart&&this.j.e.on(u,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),o.J.up(this.j.container,(e=>{e&&this.j.e.on(e,"scroll mousewheel",t)}))}__removeGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;a.RR.off("closeAllPopups",this.close),this.smart&&this.j.e.off(u,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&o.J.up(this.j.container,(e=>{e&&this.j.e.off(e,"scroll mousewheel",t)}))}setZIndex(t){this.container.style.zIndex=""+t}constructor(t,e=!0){super(t),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,l.attr)(this.container,"role","popup")}render(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}destruct(){return this.close(),super.destruct()}}(0,i.Cg)([n.autobind],d.prototype,"updatePosition",null),(0,i.Cg)([(0,n.throttle)(10),n.autobind],d.prototype,"__throttleUpdatePosition",null),(0,i.Cg)([n.autobind],d.prototype,"close",null),(0,i.Cg)([n.autobind],d.prototype,"__closeOnOutsideClick",null)},80347(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80394(t,e,s){"use strict";s.d(e,{Y(){return n}});var i=s(55186),r=s(71274);function n(t,e,s){const n=s.editor,o=s.createInside,a=(t,e="previousSibling")=>{let o=t,a=t;for(;a&&!(0,r.r)(a)&&!i.J.isTag(a,s.o.enter)&&(o=a,a=a[e]?a[e]:a.parentNode&&!i.J.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!i.J.isBlock(a)););return o},l=a(e),c=a(e,"nextSibling"),h=s.s.createRange();h.setStartBefore(l),h.setEndAfter(c);const u=h.extractContents(),d=o.element(t.element);return d.appendChild(u),i.J.safeInsertNode(h,d),t.elementIsBlock&&i.J.isEmpty(d)&&!i.J.isTag(d.firstElementChild,"br")&&d.appendChild(o.element("br")),d}},80515(t){t.exports='<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>'},80778(t,e,s){"use strict";s.d(e,{v(){return o}});var i=s(98253),r=s(26150),n=s(53804);function o(t,e){const s=(0,r.C)(e.image,"src")||"",o=t.c.element("a"),a=()=>{o.host===location.host||t.confirm("You can only edit your own images. Download this image on the host?",(s=>{s&&t.uploader&&t.uploader.uploadRemoteImage(""+o.href,(s=>{t.alert("The image has been successfully uploaded to the host!",(()=>{(0,i.K)(s.newfilename)&&(e.values.imageSrc=s.baseurl+s.newfilename)}))}),(e=>{t.alert("There was an error loading %s",e.message)}))}))};o.href=s,t.filebrowser.dataProvider.getPathByUrl(""+o.href).then((i=>{n.B.call(t.filebrowser,o.href,i.name,i.path,i.source,(()=>{const t=(new Date).getTime();e.values.imageSrc=s+(-1!==s.indexOf("?")?"":"?")+"&_tmp="+t}),(e=>{t.alert(e.message)}))})).catch((e=>{t.alert(e.message,a)}))}},81026(t,e,s){"use strict";s.r(e),s.d(e,{en(){return i},es(){return r}});var i=s(82585),r=s(41324)},81089(t,e,s){"use strict";s(56298).fg.add("poweredByJodit",(t=>{const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus("ready",(()=>{t.statusbar.append(t.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}))},81199(t,e,s){"use strict";s.d(e,{H(){return r}});var i=s(55186);function r(t,e,s){const r=((t,e,s)=>{if(!s||!i.J.isHTMLElement(e))return e;const r=s[e.nodeName.toLowerCase()]||s[e.nodeName];return r?i.J.replace(e,r,t.createInside,!0,!1):e})(t,e,t.o.cleanHTML.replaceOldTags);return e!==r?(e=r,!0):s}},81486(t,e,s){"use strict";s.d(e,{H(){return a}});var i=s(17352),r=s(71842),n=s(65147),o=s(81779);function a(t,e,s,o){const a=s?-1:1,u=r.J.sibling(e,!s);let d,p=r.J.sibling(e,s),m=null,g=!1;for(p||(p=l(e,s,t.editor));p&&(r.J.isText(p)||r.J.isInlineBlock(p));){for(;r.J.isInlineBlock(p);)p=s?p?.lastChild:p?.firstChild;if(!p)break;if(p.nodeValue?.length&&(d=c(p,s,a,u),!p.nodeValue.length&&r.J.isInlineBlock(p.parentNode)&&(p.nodeValue=i.INVISIBLE_SPACE)),p.nodeValue?.length||(m=p),!(0,n.isVoid)(d)&&d!==i.INVISIBLE_SPACE){h(s,p,e,o,d,t),g=!0;break}const f=l(p,s,t.editor);m&&(r.J.safeRemove(m),m=null),p=f}return m&&(r.J.safeRemove(m),m=null),g&&((t=>{let e=t.parentElement;for(;e&&r.J.isInlineBlock(e)&&r.J.isTag(e,"a");){const s=e.parentElement;r.J.isEmpty(e)&&(r.J.after(e,t),r.J.safeRemove(e)),e=s}})(e),((t,e)=>{e.parentElement!==t.editor&&r.J.isBlock(e.parentElement)&&r.J.each(e.parentElement,r.J.isEmptyTextNode)&&r.J.after(e,t.createInside.element("br"))})(t,e),t.s.setCursorBefore(e),r.J.isTag(e.previousSibling,"br")&&!r.J.findNotEmptySibling(e,!1)&&r.J.after(e,t.createInside.element("br"))),g}function l(t,e,s){let i=r.J.sibling(t,e);return!i&&t.parentNode&&t.parentNode!==s&&(i=(0,o.s)(t,!e,s,!0)),i}function c(t,e,s,o){let a=(0,n.toArray)(t.nodeValue);const l=a.length;let c=e?l-1:0;if(a[c]===i.INVISIBLE_SPACE)for(;a[c]===i.INVISIBLE_SPACE;)c+=s;const h=a[c];if(a[c+s]===i.INVISIBLE_SPACE){for(c+=s;a[c]===i.INVISIBLE_SPACE;)c+=s;c+=e?1:-1}return a=e&&0>c?[]:a.slice(e?0:c+1,e?c:l),((t,e,s)=>{if(!t||!r.J.isText(t)||(e?/^ /:/ $/).test(t.nodeValue??"")||!(0,n.trimInv)(t.nodeValue||"").length)for(let t=e?s.length-1:0;(e?t>=0:s.length>t)&&" "===s[t];t+=e?-1:1)s[t]=i.NBSP_SPACE})(o,e,a),t.nodeValue=a.join(""),h}function h(t,e,s,o,l,c){(0,n.call)(t?r.J.after:r.J.before,e,s),("sentence"===o||"word"===o&&" "!==l&&l!==i.NBSP_SPACE)&&a(c,s,t,o)}},81522(t,e,s){"use strict";s(36115).T.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},81629(t,e,s){"use strict";s.d(e,{N(){return i},Z(){return r}});const i=440,r=940},81779(t,e,s){"use strict";s.d(e,{g(){return n},s(){return r}});var i=s(71842);function r(t,e,s,r=!1){const n=t=>e?t.firstChild:t.lastChild;let o=i.J.findNotEmptyNeighbor(t,!e,s);if(r&&i.J.isElement(o)&&!i.J.isInlineBlock(o))return null;if(o)do{if(!n(o))return o;o=n(o)}while(o);return null}function n(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}},81781(t,e,s){"use strict";s.d(e,{C1(){return u.C},Dk(){return n.D},HS(){return h.H},Mt(){return l.M},bD(){return r.b},cf(){return c.c},lN(){return i.l},tX(){return o.t},yh(){return a.y}});var i=s(6110),r=s(47317),n=s(36291),o=s(64107),a=s(41159),l=s(63634),c=s(30687),h=s(70214),u=s(62453)},81875(t){t.exports='<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>'},81982(t,e,s){"use strict";s(36115).T.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},82201(t,e,s){"use strict";s.d(e,{M(){return r}});var i=s(98253);const r=t=>(0,i.K)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},82317(t,e,s){"use strict";s.d(e,{_(){return r}});var i=s(37923);const r=t=>(0,i.c)(t)?t:[t]},82558(t,e,s){"use strict";var i=s(9823),r=s(38322);const n=t=>t.args&&(0,i.Kg)(t.args[0])?t.args[0].toLowerCase():"";e.A=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate(t,e,s){return s},exec(t,e,{control:s}){const i=n(s);t.getInstance("Table",t.o).getAllSelectedCells().forEach((t=>{(0,r.A)(t,"vertical-align","normal"===i?"":i)}))},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(t,e,{control:s}){if(!(0,i.y0)(t))return;if(!s.args)return!1;const r=n(s);t.execCommand(r,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:s}){if(!(0,i.y0)(t))return;if(!s.args)return!1;const r=n(s);t.execCommand(r,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:s}){if(!(0,i.y0)(t))return;if(!s.args)return!1;const r=n(s);t.execCommand(r,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},82585(t){"use strict";t.exports={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"}},82807(t,e,s){"use strict";s.d(e,{m(){return o}});var i=s(17352),r=s(6939),n=s(70807);const o=(t,{width:e=400,height:s=345}={})=>{if(!(0,r.m)(t))return t;const o=i.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),s||(s=345);const l=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(t)?t.replace(a,'<iframe width="'+e+'" height="'+s+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const i=o.search?(0,n.m)(o.search):{v:o.pathname.substring(1)};return/^embed\/.*/.test(i.v)&&(i.v=i.v.substring(6)),i.v?'<iframe width="'+e+'" height="'+s+'" src="'+l+"//www.youtube.com/embed/"+i.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},83044(t,e,s){"use strict";s.d(e,{y(){return r}});var i=s(69052);function r(t){return!!(t&&t instanceof Object&&(0,i.T)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},83105(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(55186),o=s(56298),a=s(65147),l=s(71005),c=(s(26725),s(39053));class h extends l.k{constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,o.JW)(c)}afterInit(t){(0,a.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,s){const{s:i,createInside:r,editor:o,o:l}=this.j;let c;i.isFocused()||i.focus(),i.save();const h=t=>{let e=n.J.closest(t,n.J.isBlock,o);e||(e=n.J.wrap(t,l.enter,r));const i=(0,a.css)(e,"lineHeight");void 0===c&&(c=""+i!=""+s),(0,a.css)(e,"lineHeight",c?s:null)};try{if(i.isCollapsed()){const t=r.fake();i.insertNode(t,!1,!1),h(t),n.J.safeRemove(t)}else i.eachSelection(h)}finally{i.restore()}}beforeDestruct(t){(0,a.css)(t.editor,{lineHeight:null})}}(0,i.Cg)([r.autobind],h.prototype,"applyLineHeight",null),o.fg.add("lineHeight",h)},83207(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83260(t,e,s){"use strict";s.d(e,{x(){return i}});const i=t=>t.replace(/([-_])(.)/g,((t,e,s)=>s.toUpperCase()))},83389(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83541(t,e,s){"use strict";s.d(e,{G(){return r}});var i=s(55186);function r(t,e,s){let r=t;for(;r&&r!==s;){if(i.J.findSibling(r,e))return;if(i.J.isBlock(r.parentElement))break;r=r.parentElement,r&&r!==s&&(e?i.J.before(r,t):i.J.after(r,t))}}},83797(t,e,s){"use strict";s.d(e,{S(){return n},V(){return o}});var i=s(34248),r=s(75889);function n(t,e){return new r.A(t,e)}function o(t){return new i.t(t)}},84018(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(86634),o=s.n(n);r.T.prototype.addNewLine=!0,r.T.prototype.addNewLineOnDBLClick=!0,r.T.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],r.T.prototype.addNewLineDeltaShow=20,i.I.set("enter",o())},84103(t,e,s){"use strict";s.d(e,{O(){return i},U(){return r}});var i=s(51271),r=s(36795)},84182(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},ua(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},84323(t,e,s){"use strict";s.d(e,{f(){return o}});var i=s(17352),r=s(55186),n=s(42898);function o(t,e,s){const o=r.J.findSibling(e,s);return!(!r.J.isElement(o)||!r.J.isTag(o,i.INSEPARABLE_TAGS)&&!r.J.isEmpty(o)||(r.J.safeRemove(o),r.J.isTag(o,"br")&&!r.J.findNotEmptySibling(e,!1)&&r.J.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),r.J.isTag(o,"br")&&(0,n.C)(t,e,s),0))}},84345(t,e,s){"use strict";s.d(e,{u(){return i}});class i{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,s,i){this.oldValue=t,this.newValue=e,this.history=s,this.tick=i}}},84602(t,e,s){"use strict";s.d(e,{L(){return d}});var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(65147),l=s(9823),c=(s(28712),s(83541)),h=s(8757),u=s(46602);class d{constructor(t){this.jodit=t,t.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(t){if(!o.J.isNode(t))throw(0,a.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,l.Tn)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!o.J.isOrContains(this.area,e.startContainer))}createRange(t=!1){const e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){const t=this.sel,e=this.current();if(t&&e)for(let e=0;t.rangeCount>e;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!o.J.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");o.J.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{const s=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const i=this.doc.caretPositionFromPoint(t,e);if(i)return void s.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){const i=this.doc.caretRangeFromPoint(t,e);s.setStart(i.startContainer,i.startOffset)}})(),s.collapse(!0),this.selectRange(s),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){o.J.safeRemove.apply(null,this.markers)}marker(t=!1,e){let s=null;e&&(s=e.cloneRange(),s.collapse(t));const i=this.j.createInside.span();return i.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),i.style.lineHeight="0",i.style.display="none",o.J.markTemporary(i),(0,a.attr)(i,"data-"+r.MARKER_CLASS,t?"start":"end"),i.appendChild(this.j.createInside.text(r.INVISIBLE_SPACE)),s&&o.J.isOrContains(this.area,t?s.startContainer:s.endContainer)&&s.insertNode(i),i}restore(){let t=!1;const e=t=>`span[data-${r.MARKER_CLASS}=${t?"start":"end"}]`,s=this.area.querySelector(e(!0)),i=this.area.querySelector(e(!1));if(s){if(t=this.createRange(),i)t.setStartAfter(s),o.J.safeRemove(s),t.setEndBefore(i),o.J.safeRemove(i);else{const e=s.previousSibling;o.J.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(s),o.J.safeRemove(s),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=t.getRangeAt(0),s=e.cloneRange();s.collapse(!0);const i=this.j.createInside.fake();o.J.safeInsertNode(s,i),e.setStartBefore(i);const r=[i];if(!e.collapsed){const t=e.cloneRange();t.collapse(!1);const s=this.j.createInside.fake();o.J.safeInsertNode(t,s),e.setEndAfter(s),r.push(s)}return this.selectRange(e),r}restoreFakes(t){const e=t.filter((t=>t.isConnected));if(!e.length)return;const[s,i]=e,r=this.createRange();r.setStartAfter(s),i&&r.setEndBefore(i),this.selectRange(r),s.parentNode?.firstChild!==s.parentNode?.lastChild&&o.J.safeRemove(s),i?.parentNode?.firstChild!==i?.parentNode?.lastChild&&o.J.safeRemove(i)}save(t=!1){if(this.hasMarkers)return[];const e=this.sel;if(!e||!e.rangeCount)return[];const s=[],i=e.rangeCount,r=[];for(let t=0;i>t;t+=1)if(r[t]=e.getRangeAt(t),r[t].collapsed){const e=this.marker(!0,r[t]);s[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{const e=this.marker(!0,r[t]),i=this.marker(!1,r[t]);s[t]={startId:e.id,endId:i.id,collapsed:!1,startMarker:e.outerHTML,endMarker:i.outerHTML}}if(!t){e.removeAllRanges();for(let t=i-1;t>=0;--t){const i=this.doc.getElementById(s[t].startId);if(i){if(s[t].collapsed)r[t].setStartAfter(i),r[t].collapse(!0);else if(r[t].setStartBefore(i),s[t].endId){const e=this.doc.getElementById(s[t].endId);e&&r[t].setEndAfter(e)}try{e.addRange(r[t].cloneRange())}catch{}}}}return s}focus(t={preventScroll:!0}){if(!this.isFocused()){const e=(0,a.getScrollParent)(this.j.container),s=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),s&&e?.scrollTo&&e.scrollTo(0,s);const i=this.sel,r=i?.rangeCount?i?.getRangeAt(0):null;if(!r||!o.J.isOrContains(this.area,r.startContainer)){const t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){const t=this.sel;for(let e=0;t&&t.rangeCount>e;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;const e=this.sel;if(!e||0===e.rangeCount)return null;const s=e.getRangeAt(0);let i=s.startContainer,n=!1;const a=t=>n?t.lastChild:t.firstChild;if(o.J.isTag(i,"br")&&e.isCollapsed)return i;if(!o.J.isText(i)){const r=(0,u.dY)(i,s,n,e.isCollapsed,t,a);i=r.node,n=r.rightMode}return i&&o.J.isOrContains(this.area,i)?i:null}insertNode(t,e=!0,s=!0){this.errorNode(t);const i=o.J.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const r=this.sel;this.j.history.snapshot.transaction((()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){const e=r.getRangeAt(0),{firstChild:s}=t;o.J.isOrContains(this.area,e.commonAncestorContainer)?o.J.safeInsertNode(e,t):this.area.appendChild(t),[()=>s?.previousSibling,()=>s?.previousSibling,()=>s?.previousSibling?.lastChild].forEach((t=>{const e=t();e&&o.J.isEmptyTextNode(e)&&o.J.safeRemove(e)}))}else this.area.appendChild(t);const s=t=>{if(o.J.isBlock(t)){const e=t.lastChild;if(e)return s(e)}this.setCursorAfter(t)};e&&(o.J.isFragment(t)?i&&s(i):s(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(i??t,this.j.editor,this.doc)})),s&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",o.J.isFragment(t)?i:t)}insertHTML(t,e=!0){if(""===t)return;const s=this.j.createInside.div(),i=this.j.createInside.fragment();let r;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),o.J.isNode(t)?s.appendChild(t):s.innerHTML=""+t,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",s.innerHTML))&&(r=s.lastChild,r)){for(;s.firstChild;)r=s.firstChild,i.appendChild(s.firstChild);this.insertNode(i,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,s=null){const i=(0,l.Kg)(t)?this.j.createInside.element("img"):t;if((0,l.Kg)(t)&&i.setAttribute("src",t),null!=s){let t=""+s;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,a.attr)(i,"width",t)}e&&"object"==typeof e&&(0,a.css)(i,e);const r=()=>{(i.offsetHeight>i.naturalHeight||i.offsetWidth>i.naturalWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(t){const e=this.sel;if(!e||!e.rangeCount)return;const s=e.getRangeAt(0);let i=s.commonAncestorContainer;o.J.isHTMLElement(i)||(i=i.parentElement);const n=[],c=s.startOffset,h=i.childNodes.length;let u=s.startContainer===this.area?i.childNodes[h>c?c:h-1]:s.startContainer,d=s.endContainer===this.area?i.childNodes[s.endOffset-1]:s.endContainer;o.J.isText(u)&&u===s.startContainer&&s.startOffset===u.nodeValue?.length&&u.nextSibling&&(u=u.nextSibling),o.J.isText(d)&&d===s.endContainer&&0===s.endOffset&&d.previousSibling&&(d=d.previousSibling);const p=t=>{!t||t===i||o.J.isEmptyTextNode(t)||(0,l.rg)(t)||n.push(t)};p(u),u!==d&&o.J.isOrContains(i,u,!0)&&o.J.find(u,(t=>(p(t),t===d||t&&t.contains&&t.contains(d))),i,!0,!1);const m=e=>{if(o.J.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(e.childNodes).forEach(m);if(o.J.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{const t=this.j.createInside.text(r.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===n.length&&(o.J.isEmptyTextNode(u)&&n.push(u),u.firstChild&&n.push(u.firstChild)),n.forEach(m)}cursorInTheEdge(t,e,s=null){const i=!t,r=this.sel?.getRangeAt(0);if(s??=this.current(!1),!r||!s||!o.J.isOrContains(e,s,!0))return null;const n=t?r.startContainer:r.endContainer,l=t?r.startOffset:r.endOffset,c=t=>!(!t||o.J.isTag(t,"br")||o.J.isEmptyTextNode(t)||o.J.isTemporary(t)||o.J.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t));if(o.J.isText(n)){if((0,u.Qe)(n,l,t,i))return!1}else{const t=(0,a.toArray)(n.childNodes);if(i){if(t.slice(l).some(c))return!1}else if(t.slice(0,l).some(c))return!1}let h=s;for(;h&&h!==e;){const e=o.J.sibling(h,t);if(e){if(h=e,h&&c(h))return!1}else h=h.parentNode}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!o.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();let i=null;return o.J.isText(t)?e?s.setStart(t,0):s.setEnd(t,t.nodeValue?.length??0):(i=this.j.createInside.fake(),e?s.setStartBefore(t):s.setEndAfter(t),s.collapse(e),o.J.safeInsertNode(s,i),s.selectNode(i)),s.collapse(e),this.selectRange(s),i}setCursorIn(t,e=!1){if(this.errorNode(t),!o.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();let i=t,n=t;do{if(o.J.isText(i)||o.J.isTag(i,r.INSEPARABLE_TAGS))break;n=i,i=e?i.firstChild:i.lastChild}while(i);if(!i){const t=this.j.createInside.text(r.INVISIBLE_SPACE);o.J.isTag(n,r.INSEPARABLE_TAGS)?i=n:(n.appendChild(t),n=t)}const l=i||n;return o.J.isTag(l,r.INSEPARABLE_TAGS)?(e||o.J.isTag(l,"br")?s.setStartBefore(l):s.setEndAfter(l),s.collapse(e)):(s.selectNodeContents(l),s.collapse(e)),this.selectRange(s),n}selectRange(t,e=!0){const s=this.sel;return e&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!o.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();return s[e?"selectNodeContents":"selectNode"](t),this.selectRange(s)}get html(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(e),s.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);return this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,void o.J.unwrap(e)}(0,a.$$)("*[style*=font-size]",this.area).forEach((t=>{(0,a.attr)(t,"data-font-size",""+t.style.fontSize),t.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach((t=>{const e=(0,a.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,a.attr)(t,"data-font-size",null))}));const e=(0,a.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:s}=t;e&&e===s&&(0,l.rg)(e)||(e&&(0,l.rg)(e)&&o.J.before(t,e),s&&(0,l.rg)(s)&&o.J.after(t,s),yield t),o.J.unwrap(t)}}wrapInTag(t){const e=[];for(const s of this.wrapInTagGen())try{if(s.firstChild&&s.firstChild===s.lastChild&&(0,l.rg)(s.firstChild))continue;(0,l.Tn)(t)?t(s):e.push(o.J.replace(s,t,this.j.createInside))}finally{const t=s.parentNode;t&&(o.J.unwrap(s),o.J.isEmpty(t)&&o.J.unwrap(t))}return e}commitStyle(t){new h.x(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;const s=this.createRange(),i=this.range;s.setStartBefore(t);const n=this.cursorOnTheRight(t,e),a=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(n||a){e?o.J.before(e,l):o.J.safeInsertNode(i,l);const t=(t,e)=>{let s=e(t);for(;s;){const t=e(s);if(!s||!o.J.isTag(s,"br")&&!o.J.isEmptyTextNode(s))break;o.J.safeRemove(s),s=t}};t(l,(t=>t.nextSibling)),t(l,(t=>t.previousSibling)),o.J.after(l,h),o.J.before(l,c),n?(s.setEndBefore(l),i.setEndBefore(l)):(s.setEndAfter(l),i.setEndAfter(l))}else s.setEnd(i.startContainer,i.startOffset);const u=s.extractContents(),d=t=>o.J.each(t,(t=>o.J.isEmptyTextNode(t)&&o.J.safeRemove(t)));try{if(d(u),d(t),t.parentNode.insertBefore(u,t),!e&&n&&l?.parentNode){const t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!r.IS_PROD)throw t}const p=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};p(c),p(h)}finally{o.J.safeRemove(c),o.J.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:t}=this,e=t.cloneRange();if(!o.J.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;const s=e=>{const s=this.j.createInside.fake(),i=t.cloneRange();return i.collapse(e),o.J.safeInsertNode(i,s),(0,c.G)(s,e,this.j.editor),s},i=s(!0),r=s(!1);e.setStartAfter(i),e.setEndBefore(r);const n=o.J.findSibling(i,!1),l=o.J.findSibling(r,!0);if(n!==l){const t=o.J.isElement(n)&&o.J.isOrContains(n,r),s=!t&&o.J.isElement(l)&&o.J.isOrContains(l,i);if(t||s){let s=t?n:l,a=s;for(;o.J.isElement(s);)s=t?s.firstElementChild:s.lastElementChild,s&&o.J.isOrContains(s,t?r:i)&&(a=s);t?e.setStart(a,0):e.setEnd(a,a.childNodes.length)}}if(this.selectRange(e),o.J.safeRemove(i,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}}(0,i.Cg)([n.autobind],d.prototype,"createRange",null),(0,i.Cg)([n.autobind],d.prototype,"focus",null),(0,i.Cg)([n.autobind],d.prototype,"setCursorAfter",null),(0,i.Cg)([n.autobind],d.prototype,"setCursorBefore",null),(0,i.Cg)([n.autobind],d.prototype,"setCursorIn",null)},84759(t,e,s){"use strict";s.d(e,{d(){return c}});var i=s(17352),r=s(71842),n=s(56298),o=s(65147),a=s(51923),l=s(74714);function c(t,e,s,c,h){if(e&&(!e.types.length||e.types[0]!==i.TEXT_PLAIN)){const e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,n.My)(t.j,t.constructor).appendChild(e);const i=(0,o.isJoditObject)(t.j)?t.j.s.save():null,u=()=>i&&(0,o.isJoditObject)(t.j)&&t.j.s.restore();e.focus(),t.j.async.setTimeout((()=>{const i=e.firstChild;if(r.J.safeRemove(e),i&&i.hasAttribute("src")){const e=(0,o.attr)(i,"src")||"";u(),(0,l._)(t,[(0,a.z)(e)],s,c).finally(h)}}),t.j.defaultTimeout)}}},84976(t,e,s){"use strict";s.d(e,{HP(){return u},T1(){return a},b_(){return l},my(){return p},o_(){return c},qN(){return d},yt(){return h}});var i=s(92039),r=s(35642),n=s(26150),o=s(72197);function a(t,...e){return t(...e)}function l(t,e){(0,n.C)(e,"data-editor_id",t.id),!e.component&&Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,i.y)(t)?t.then((t=>t),(()=>null)).finally(e):e?.()}const h=(t,e)=>e.async.promise(((s,i)=>{const r=new Image,n=()=>{e.e.off(r),i?.()},o=()=>{e.e.off(r),s(r)};e.e.one(r,"load",o).one(r,"error",n).one(r,"abort",n),r.src=t,r.complete&&o()})),u=(t,e=!0)=>{if(e)return Object.keys(t);const s=[];for(const e in t)s.push(e);return s},d=(t,e,{control:s},i)=>{const n="button"+s.command;let a=(s.args&&s.args[0])??(0,o.m)(t,n);if((0,r.R)(a))return!1;(0,o.m)(t,n,a),i&&(a=i(a)),t.execCommand(s.command,!1,a??void 0)},p=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},85079(t,e,s){"use strict";s.d(e,{E(){return r}});var i=s(449);function r(t,e,s){let r=!0,n=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach((s=>{let o=t.style.getPropertyValue((0,i.k)(s));if(!o)return n=!0,void(e[s]=0);/^[0-9]+(px)?$/.test(o)&&(o=parseInt(o,10)),e[s]=o,(n&&e[s]||r&&"marginTop"!==s&&e[s]!==e.marginTop)&&(r=!1)})),s.marginIsLocked=r}},86248(t,e,s){"use strict";s.d(e,{VL(){return u},pi(){return d},tb(){return h}});var i=s(37923),r=s(25376),n=s(98253),o=s(35642),a=s(36115),l=s(49429),c=s(84976);function h(t,e,s=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;const c=a.T.defaultOptions;if((0,n.K)(t.preset)){if(void 0!==c.presets[t.preset]){const e=c.presets[t.preset];Object.keys(e).forEach((s=>{(0,o.R)(t[s])&&(t[s]=e[s])}))}delete t.preset}const u={};return Object.keys(t).forEach((n=>{const o=t[n],a=e?e[n]:null;u[n]=(0,r.Q)(o)&&(0,r.Q)(a)&&!(0,l.mA)(o)?h(o,a,s+1):0!==s&&(0,i.c)(o)&&!(0,l.mA)(o)&&(0,i.c)(a)?[...o,...a.slice(o.length)]:o})),Object.setPrototypeOf(u,e),u}function u(t){return(0,c.HP)(t,!1).reduce(((e,s)=>(e[s]=t[s],e)),{})}function d(t){return(0,c.HP)(t,!1).reduce(((e,s)=>(e[s]=(0,r.Q)(t[s])?d(t[s]):t[s],e)),{})}},86283(t,e,s){"use strict";s.d(e,{C(){return o}});var i=s(31635),r=s(24767),n=s(29780);let o=class t extends n.D{className(){return"UISeparator"}};o=(0,i.Cg)([r.s],o)},86285(t,e,s){"use strict";s.d(e,{N(){return o}});var i=s(77753),r=s(69052),n=s(50156);function o(){return(t,e)=>{if(!(0,r.T)(t[e]))throw(0,n.z3)("Handler must be a Function");t.hookStatus(i.f.ready,(t=>{const{async:s}=t,i=t[e];t[e]=(...e)=>s.requestIdleCallback(i.bind(t,...e))}))}}},86302(t,e,s){"use strict";s.d(e,{j(){return p}});var i=s(17352),r=s(89044),n=s(99951),o=s(69052),a=s(2461),l=s(25376),c=s(92039),h=s(98253),u=s(35642),d=(s(28712),s(21567));class p{constructor(){this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=window.requestIdleCallback?.bind(window)??((t,e)=>{const s=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),e?.timeout??1)}),this.__cancelIdleCallbackNative=window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)}),this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...s){if(this.isDestructed)return 0;let i={};(0,u.R)(e)&&(e=0),(0,a.E)(e)||(i=e,e=i.timeout||0),i.label&&this.clearLabel(i.label);const n=(0,r.w)(t,e,...s),o=i.label||n;return this.timers.set(o,n),this.__callbacks.set(o,t),n}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const s=this.__callbacks.get(t);return this.setTimeout(s,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,r.D)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,h.K)(t))return this.clearLabel(t);(0,r.D)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,s=!1){let i=0,a=!1;const h=[],u=(...e)=>{if(!a){i=0;const s=t(...e);if(a=!0,h.length){const t=()=>{h.forEach((t=>t())),h.length=0};(0,c.y)(s)?s.finally(t):t()}}},d=(...n)=>{a=!1,e?(!i&&s&&u(...n),(0,r.D)(i),i=this.setTimeout((()=>u(...n)),(0,o.T)(e)?e():e),this.timers.set(t,i)):u(...n)};return(0,l.Q)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{h.push(t)})).catch((t=>{if((0,n.z)(t))return null;throw t}));return d(...t),e}:d}microDebounce(t,e=!1){let s,i=!1,r=!0;return(...n)=>{s=n,i?r=!0:(r=!0,e&&(r=!1,t(...s)),i=!0,this.__queueMicrotaskNative((()=>{i=!1,this.isDestructed||r&&t(...s)})))}}throttle(t,e,s=!1){let i,r,n,a=null;return(...s)=>{i=!0,n=s,e?a||(r=()=>{i?(t(...n),i=!1,a=this.setTimeout(r,(0,o.T)(e)?e():e),this.timers.set(r,a)):a=null},r()):t(...n)}}promise(t){let e=()=>{};const s=new Promise(((s,i)=>{e=()=>i((0,d.h)("Abort async")),this.promisesRejections.add(e),t(s,i)}));return s.finally||"undefined"==typeof process||i.IS_ES_NEXT||(s.finally=t=>(s.then(t).catch(t),s)),s.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),s.rejectCallback=e,s}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e={timeout:100}){const s=this.__requestIdleCallbackNative(t,e);return this.__requestsIdle.add(s),s}requestIdlePromise(t){return this.promise((e=>{const s=this.requestIdleCallback((()=>e(s)),t)}))}schedulerPostTask(t,e={delay:0,priority:"user-visible"}){const s=new AbortController;if(e.signal&&e.signal.addEventListener("abort",(()=>s.abort())),this.__controllers.add(s),void 0!==globalThis.scheduler){const i=globalThis.scheduler.postTask(t,{...e,signal:s.signal});return i.finally((()=>{this.__controllers.delete(s)})).catch((()=>null)),i}return this.promise(((i,r)=>{const n=this.setTimeout((()=>{try{i(t())}catch(t){r(t)}this.__controllers.delete(s)}),e.delay||1);s.signal.addEventListener("abort",(()=>{this.clearTimeout(n),this.__controllers.delete(s),r((0,d.h)())}))}))}schedulerYield(){return this.schedulerPostTask((()=>{}),{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.__requestsRaf.add(e),e}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.__requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.__controllers.forEach((t=>t.abort())),this.timers.forEach((t=>(0,r.D)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},86500(t,e,s){"use strict";s.d(e,{t(){return a}});var i=s(55186),r=s(97369),n=s(70592),o=s(95274);function a(t,e){const s=[],a=[];let l;const c=t.options.attributes?.style;if(e.firstChild){const h=i.J.eachGen(e);let u=h.next();for(;!u.done;){const e=u.value;!(0,o.sz)(t,e,!0)||c&&!(0,n.Y)(e,c)?c&&(0,o.Wv)(t,e)?(void 0===l&&(l=!1),a.push((()=>{(0,r.css)(e,Object.keys(c).reduce(((t,e)=>(t[e]=null,t)),{})),(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null),(0,r.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||s.push(e)}))):i.J.isEmptyTextNode(e)||void 0===l&&(l=!1):(void 0===l&&(l=!0),s.push(e)),u=h.next()}}return a.forEach((t=>t())),s.forEach(i.J.unwrap),!!l}},86572(t,e,s){"use strict";s.d(e,{O(){return r}});var i=s(55186);function r(t,e=!1){if(!t.o.tab.tabInsideLiInsertNewList)return!1;const[s,r]=(t=>{const e=t.createInside.fake(),s=t.createInside.fake(),i=t.s.range.cloneRange();i.collapse(!0),i.insertNode(e);const r=t.s.range.cloneRange();return r.collapse(!1),r.insertNode(s),[e,s]})(t);try{const r=((t,e,s)=>{const r=i.J.closest(e,"li",t.editor);return!!r&&!(!s&&!i.J.isLeaf(r.previousElementSibling))&&!(s&&!i.J.closest(r,"li",t.editor))&&r})(t,s,e);if(!r)return!1;if(!((t,e,s)=>{const r=i.J.closest(s,"li",e.editor);return!(!r||r!==t&&!t.contains(r))})(r,t,s))return!1;const n=i.J.closest(r,["ol","ul"],t.editor);return!(!n||e&&!i.J.closest(n,"li",t.editor)||(e?((t,e,s)=>{const r=i.J.closest(e,"li",t.editor),n=Array.from(e.children).filter((t=>i.J.isLeaf(t)));i.J.after(r,s);const o=n.indexOf(s);if(0!==o&&1!==n.length||i.J.safeRemove(e),o!==n.length-1){const t=e.cloneNode();i.J.append(s,t);for(let e=o+1;n.length>e;e+=1)i.J.append(t,n[e])}})(t,n,r):((t,e,s)=>{const r=s.previousElementSibling,n=r.lastElementChild,o=i.J.isTag(n,e.tagName)?n:t.createInside.element(e.tagName,Array.from(e.attributes).reduce(((t,e)=>(t[e.name]=e.value,t)),{}));o.appendChild(s),n!==o&&r.appendChild(o)})(t,n,r),0))}finally{const e=t.s.createRange();e.setStartAfter(s),e.setEndBefore(r),t.s.selectRange(e),i.J.safeRemove(s),i.J.safeRemove(r)}}s(28712)},86634(t){t.exports='<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>'},86899(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87238(t,e,s){"use strict";var i=s(36115);i.T.prototype.limitWords=!1,i.T.prototype.limitChars=!1,i.T.prototype.limitHTML=!1},87332(t,e,s){"use strict";s.d(e,{Ag(){return n.Ag},DI(){return n.DI},LN(){return i.L},OJ(){return n.OJ},Zk(){return n.Zk},dj(){return n.dj},xk(){return r.x}});var i=s(84602),r=s(8757),n=s(12043)},87875(t,e,s){"use strict";s.d(e,{OK(){return c},PO(){return a},PP(){return l}});var i=s(64567),r=(s(17352),s(55186)),n=s(9823),o=s(76166);function a(t,e){const s=Object.getOwnPropertyDescriptor(t,e);return!s||(0,n.Tn)(s.get)?null:s.value}function l(t,e,s){const i=s.get;if(!i)throw(0,o.z3)("Getter property descriptor expected");s.get=function(){const t=i.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:s.configurable,enumerable:s.enumerable,writable:!1,value:t}),t}}function c(t,e,s){const a=s.value;if(!(0,n.Tn)(a))throw(0,o.z3)("Handler must be a Function");let l=!0;const c=new WeakMap;s.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);const e=a.apply(this,t);return l&&r.J.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(i.f.ready,(t=>{const e=(0,n.hH)(t)?t:t.jodit;l=!!e.options.cache}))}},87906(t,e,s){"use strict";s.d(e,{O(){return r}});var i=s(42448);class r{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,i.$)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},88011(t,e,s){"use strict";var i=s(17352),r=s(65147),n=s(36115),o=s(97394),a=s(8809);n.T.prototype.mobileTapTimeout=300,n.T.prototype.toolbarAdaptive=!0,n.T.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],n.T.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],n.T.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],n.T.prototype.controls.dots={mode:i.MODE_SOURCE+i.MODE_WYSIWYG,popup(t,e,s,i){let n=i.control.data;return void 0===n&&(n={toolbar:(0,a.$K)(t),rebuild(){if(i){const e=t.e.fire("getDiffButtons.mobile",i.closest(o.Q));e&&n&&(n.toolbar.build((0,r.splitArray)(e)),n.toolbar.container.style.width=3*((t.toolbar?.firstButton?.container.offsetWidth||36)+4)+"px")}}},i.control.data=n),n.rebuild(),n.toolbar},tooltip:"Show all"}},88222(t,e,s){"use strict";s(14221),s(55989),s(13917),s(5929),s(49289),s(98341),s(38101),s(24593),s(36293),s(38373),s(64565),s(27509),s(13405),s(67335),s(92553),s(73077),s(88429),s(9443),s(30405),s(89651),s(26495),s(49777),s(92097),s(19085),s(46079),s(3459),s(99573),s(92225),s(9117),s(83105),s(47791),s(26421),s(76967),s(1239),s(13861),s(36969),s(56701),s(225),s(81089),s(44921),s(78757),s(60189),s(39147),s(76693),s(6857),s(17343),s(35523),s(46939),s(69077),s(93669),s(97179),s(65199),s(1677),s(35541),s(64241),s(59965),s(76385),s(2533),s(38309),s(14367),s(61589),s(36133),s(37873)},88269(t,e,s){"use strict";s.d(e,{j(){return n}});var i=s(55186),r=s(26150);function n(t,e,s,n){let o=i.J.closest(e,"a",t.editor);s?(o||(o=i.J.wrap(e,"a",t.createInside)),(0,r.C)(o,"href",s),(0,r.C)(o,"target",n?"_blank":null)):o&&o.parentNode&&o.parentNode.replaceChild(e,o)}},88429(t,e,s){"use strict";var i=s(56298);s(71576),i.fg.add("formatBlock",(t=>{t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",((e,s,i)=>(t.s.commitStyle({element:i}),t.synchronizeValues(),!1)))}))},88497(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88850(t,e,s){"use strict";s(36115).T.prototype.showXPathInStatusbar=!0},89044(t,e,s){"use strict";s.d(e,{D(){return i.D},w(){return i.w}});var i=s(59146)},89097(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89568(t,e,s){"use strict";s.d(e,{IJ(){return c},Tz(){return h},_B(){return a},zy(){return l}});var i=s(17352),r=s(55186),n=s(58720);const o="jd-tmp-selection";function a(t,e,s,n,a){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue)return;if(((t,e,s)=>{if(t.o.search.useCustomHighlightAPI&&i.globalWindow&&void 0!==i.globalWindow.Highlight){const i=[e,...s].map((e=>{const s=t.selection.createRange();return s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),s})),r=new Highlight(...i);return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",r),s.length=0,!0}return!1})(t,e,s))return;const l=n.element("span",{[o]:!0});r.J.markTemporary(l),((t,e,s)=>{const i=t.startContainer.nodeValue;let n=0;if(0!==t.startOffset){const e=s.text(i.substring(0,t.startOffset));t.startContainer.nodeValue=i.substring(t.startOffset),r.J.before(t.startContainer,e),t.startContainer===t.endContainer&&(n=t.startOffset,t.endOffset-=n),t.startOffset=0}const o=t.endContainer.nodeValue;if(t.endOffset!==o.length){const i=s.text(o.substring(t.endOffset));t.endContainer.nodeValue=o.substring(0,t.endOffset),r.J.after(t.endContainer,i);for(const s of e){if(s.startContainer!==t.endContainer)break;s.startContainer=i,s.startOffset=s.startOffset-t.endOffset-n,s.endContainer===t.endContainer&&(s.endContainer=i,s.endOffset=s.endOffset-t.endOffset-n)}t.endOffset=t.endContainer.nodeValue.length}})(e,s,n);let c=e.startContainer;do{if(!c)break;if(!r.J.isText(c)||r.J.isElement(h=c.parentNode)&&h.hasAttribute(o)||r.J.wrap(c,l.cloneNode(),n),c===e.endContainer)break;let t=c.firstChild||c.nextSibling;if(!t){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;t=c?.nextSibling}c=t}while(c&&c!==a);var h}function l(t){return(0,n.$$)(`[${o}]`,t)}function c(t){l(t.editor).forEach((t=>r.J.unwrap(t))),(t=>{t.o.search.useCustomHighlightAPI&&i.globalWindow&&void 0!==i.globalWindow.Highlight&&CSS.highlights.clear()})(t)}function h(t){return t.replace(RegExp(`<span[^>]+${o}[^>]+>(.*?)</span>`,"g"),"$1")}},89651(t,e,s){"use strict";var i=s(71842),r=s(56298),n=s(931),o=s(36115),a=s(89097);n.I.set("hr",s.n(a)()),o.T.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.fg.add("hr",(t=>{t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",(()=>{const e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);const s=i.J.closest(e.parentElement,i.J.isBlock,t.editor);s&&i.J.isEmpty(s)&&s!==t.editor&&(i.J.after(s,e),i.J.safeRemove(s));let r=i.J.next(e,i.J.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),i.J.after(e,r)),t.s.setCursorIn(r),!1}))}))},89708(t,e,s){"use strict";s.d(e,{B(){return n}});var i=s(55186),r=s(97369);function n(t,e,s){const n=i.J.closest(e,i.J.isElement,t.editor),{s:o}=t;if(i.J.isLeaf(n)&&n?.parentElement?.[s?"firstElementChild":"lastElementChild"]===n&&o.cursorInTheEdge(s,n)){const a=n.parentElement,l=t.createInside.element(t.o.enterBlock);return(0,r.call)(s?i.J.before:i.J.after,a,l),i.J.moveContent(n,l),i.J.safeRemove(n),i.J.isEmpty(a)&&i.J.safeRemove(a),(0,r.call)(s?o.setCursorBefore:o.setCursorAfter,e),!0}return!1}},89832(t,e,s){"use strict";s.d(e,{C(){return d}});var i=s(43327),r=s(72874),n=s(81486),o=s(29822),a=s(59988),l=s(42898),c=s(84323),h=s(94766),u=s(89708);const d=[c.f,o.V,n.H,h.R,l.C,a._,r.a,i.E,u.B]},89929(t,e,s){"use strict";s.d(e,{$(){return r}});var i=s(65147);function r(t,e){if((0,i.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);const s=t.ow.FormData;if(void 0!==s){if(e instanceof s)return e;if((0,i.isString)(e))return e;const t=new s,r=e;return Object.keys(r).forEach((e=>{t.append(e,r[e])})),t}return e}},90084(t,e,s){"use strict";function i(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}s.d(e,{L(){return i}})},90325(t,e,s){"use strict";s.d(e,{k(){return l}});var i=s(55186),r=(s(28712),s(20384)),n=s(38271),o=s(12043),a=s(61001);function l(t,e,s,i){if(!e)return i;const r=e.parentElement;if(!r)return i;const l=s.e.fire(o.ar+"BeforeToggleList",i,t,r);if(void 0!==l)return l;const h=s.e.fire.bind(s.e,o.ar+"AfterToggleList");if(i!==o.OJ){const l=(0,n.Y)(t,e.parentElement,s,o.DI,!0)===o.PL;if(i===o.dj||l||r.tagName.toLowerCase()!==t.element){const i=c(o.dj,r,e,s,t),n=(0,a.z)(t,i,s);return h(o.dj,n,t),o.dj}}const u=c(o.OJ,r,e,s,t);return h(o.OJ,u,t),o.OJ}function c(t,e,s,n,a){return n.e.fire(o.ar+"BeforeUnwrapList",t,e,a)||((0,r.y)(e,s,n),i.J.unwrap(s.parentElement),i.J.replace(s,"br"!==n.o.enter.toLowerCase()?n.o.enter:n.createInside.fragment(),n.createInside))}},90428(t,e,s){"use strict";s.d(e,{b(){return c}});var i=s(31635),r=s(17352),n=s(22664),o=s(71842),a=s(65147),l=s(97394);let c=class t extends l.Q{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){const e=super.shouldBeDisabled(t);if(void 0!==e)return e;const s=void 0===t.control.mode?r.MODE_WYSIWYG:t.control.mode;return!(s===r.MODE_SPLIT||s===this.j.getRealMode())}shouldBeActive(t){const e=super.shouldBeActive(t);if(void 0!==e)return e;const s=this.j.selection?this.j.s.current():null;if(!s)return!1;let i;if(t.control.tags){const e=t.control.tags;if(i=s,o.J.up(i,(t=>{if(t&&-1!==e.indexOf(t.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(t.control.css){const e=t.control.css;if(i=s,o.J.up(i,(t=>{if(t&&!o.J.isText(t)&&!o.J.isComment(t))return this.checkActiveStatus(e,t)}),this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}constructor(t){super(t),this.checkActiveStatus=(t,e)=>{let s=0,i=0;return Object.keys(t).forEach((r=>{const n=t[r];(0,a.isFunction)(n)?n(this.j,""+(0,a.css)(e,r))&&(s+=1):-1!==n.indexOf(""+(0,a.css)(e,r))&&(s+=1),i+=1})),i===s},this.prependInvisibleInput(this.container)}prependInvisibleInput(t){const e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});o.J.appendChildFirst(t,e)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};c=(0,i.Cg)([n.component],c)},90722(t,e,s){"use strict";var i=s(17352),r=s(931),n=s(36115),o=s(9103),a=s.n(o);n.T.prototype.beautifyHTML=!i.IS_IE,n.T.prototype.sourceEditor="ace",n.T.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},n.T.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],n.T.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],r.I.set("source",a()),n.T.prototype.controls.source={mode:i.MODE_SPLIT,exec(t){t.toggleMode()},isActive(t){return t.getRealMode()===i.MODE_SOURCE},tooltip:"Change mode"}},90823(t,e,s){"use strict";s.d(e,{DI(){return l},PU(){return c},sX(){return a}});var i=s(17352),r=s(55186),n=s(9823),o=s(92032);function a(t,e,s){if(e.isInDestruct)return;(t=>!(!t||"drop"!==t.type))(t)&&e.s.insertCursorAtPoint(t.clientX,t.clientY);const i=e.e.fire("beforePasteInsert",s);!(0,n.Rd)(i)&&((0,n.Kg)(i)||(0,n.Et)(i)||r.J.isNode(i))&&(s=i),(0,n.Kg)(s)&&(s=(t=>{const e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));const s=t.search(/<!--EndFragment-->/i);return-1!==s&&(t=t.substring(0,s)),t})(s)),e.s.insertHTML(s)}function l(t){const e=t.types;let s="";if((0,n.cy)(e)||"[object DOMStringList]"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)s+=e[t]+";";else s=(e||i.TEXT_PLAIN)+";";return s}function c(t,e,s,i,r){if(!1===t.e.fire("beforeOpenPasteDialog",e,s,i,r))return;const n=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(s)),a=r.map((({text:e,value:s})=>(0,o.$n)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{n.close(),i(s)}))));n.e.one(n,"afterClose",(()=>{t.s.isFocused()||t.s.focus()}));const l=(0,o.$n)(t,{text:"Cancel",tabIndex:0}).onAction((()=>{n.close()}));return n.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",n,e,s,i,r),n}},91093(t,e,s){"use strict";s.d(e,{R(){return c},n(){return l}});var i=s(17352),r=s(98253),n=s(10467),o=s(97369),a=s(36115);const l=(t,e)=>{if(!e||!e.length)return t;const s=/%([sd])/g;let i=s.exec(t),r=t,n=0;for(;i&&void 0!==e[n];)r=r.replace(i[0],""+e[n]),n+=1,i=s.exec(t);return r};function c(t,e,s){if(!(0,r.K)(t))throw(0,o.error)("i18n: Need string in first argument");if(!t.length)return t;const c=!!s?.debugLanguage;let h={};const u=t=>e&&e.length?l(t,e):t,d=(0,o.defaultLanguage)(a.T.defaultOptions.language,a.T.defaultOptions.language),p=(0,o.defaultLanguage)(s?.language,d),m=e=>{if(!e)return;if((0,r.K)(e[t]))return u(e[t]);const s=t.toLowerCase();if((0,r.K)(e[s]))return u(e[s]);const i=(0,n.Z)(t);return(0,r.K)(e[i])?u(e[i]):void 0};void 0!==i.lang[p]?h=i.lang[p]:c||(h=void 0!==i.lang[d]?i.lang[d]:i.lang.en);const g=s?.i18n;if(g&&g[p]){const t=m(g[p]);if(t)return t}return m(h)||(!c&&i.lang.en&&(0,r.K)(i.lang.en[t])&&i.lang.en[t]?u(i.lang.en[t]):c?"{"+t+"}":u(t))}},91115(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91479(t,e,s){"use strict";s.d(e,{C(){return o}});var i=s(31635),r=s(24767),n=s(53048);let o=class t extends n.D${className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}};o=(0,i.Cg)([r.s],o)},91560(t,e,s){"use strict";s.d(e,{X(){return a}});var i=s(69052),r=s(26150),n=s(92032),o=s(58006);function a(t,e,s,a,l){const c=this instanceof o.l?this:new o.l({closeOnClickOverlay:!0}),h=(0,n.$n)(c,"cancel","Cancel"),u=(0,n.$n)(c,"ok","Ok"),d=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),m=c.c.element("label");(0,i.T)(e)&&(s=e,e=void 0),a&&(0,r.C)(p,"placeholder",a),m.appendChild(c.c.text(t)),d.appendChild(m),d.appendChild(p),h.onAction(c.close);const g=()=>{s&&(0,i.T)(s)&&!1===s(p.value)||c.close()};return u.onAction(g),c.e.on(d,"submit",(()=>(g(),!1))),c.setFooter([u,h]),c.open(d,e||"&nbsp;",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},91594(t,e,s){"use strict";s.d(e,{c(){return i}});const i=(t,e,s,r=!1)=>{let n;try{n=t.getBoundingClientRect()}catch(t){n={top:0,bottom:0,left:0,right:0,width:0,height:0}}const o=s.body,a=s.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},l=s.defaultView||s.parentWindow,c=l.pageYOffset||a.scrollTop||o.scrollTop,h=l.pageXOffset||a.scrollLeft||o.scrollLeft,u=a.clientTop||o.clientTop||0,d=a.clientLeft||o.clientLeft||0;let p,m;const g=e.iframe;if(!r&&e&&e.options&&e.o.iframe&&g){const{top:t,left:s}=i(g,e,e.od,!0);p=n.top+t,m=n.left+s}else p=n.top+c-u,m=n.left+h-d;return{top:Math.round(p),left:Math.round(m),width:n.width,height:n.height}}},91672(t,e,s){"use strict";s.d(e,{Y(){return i}});class i{get url(){return this.request.url}constructor(t,e,s,i){this.request=t,this.status=e,this.statusText=s,this.body=i}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}},91882(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},91902(t,e,s){"use strict";s.d(e,{N(){return l}});var i=s(31635),r=s(24767),n=s(38322),o=s(6455),a=s(91479);let l=class t extends o.U{className(){return"UIMessages"}constructor(t,e,s={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=e,this.options=s,this.__messages=new Set}info(t,e){this.__message(t,"info",e)}success(t,e){this.__message(t,"success",e)}error(t,e){this.__message(t,"error",e)}message(t,e,s){this.__message(t,e,s)}__message(t,e="info",s){const i=t+":"+e;if(this.__messages.has(i))return void this.async.updateTimeout(i,s||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+i);this.__box.appendChild(this.container);const r=new a.C(this.j,{text:t,variant:e});this.append(r),this.__calcOffsets(),this.__messages.add(i);const n=this.__getRemoveCallback(r,i);this.j.e.on(r.container,"pointerdown",n),this.async.setTimeout(n,{label:i,timeout:s||this.options.defaultTimeout})}__getRemoveCallback(t,e){const s=i=>{i&&i.preventDefault(),t.isInDestruct||(this.async.clearTimeout(e),this.j.e.off(t.container,"pointerdown",s),this.__messages.delete(e),t.setMod("active",!1),this.async.setTimeout((()=>{this.remove(t),t.destruct(),this.__calcOffsets()}),300))};return s}__calcOffsets(){let t=5;this.elements.forEach((e=>{(0,n.A)(e.container,"bottom",t+"px"),t+=e.container.offsetHeight+this.options.defaultOffset}))}};l=(0,i.Cg)([r.s],l)},92032(t,e,s){"use strict";s.d(e,{$n(){return g},lD(){return m},ue(){return p}});var i=s(31635),r=s(64567),n=s(22664),o=s(55186),a=s(69052),l=s(98253),c=s(97369),h=s(29780),u=s(94070),d=s(931);const p=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let m=class t extends h.D{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}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(){const t=this.closest(u.z);t&&(this.state.size=t.buttonSize)}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(){this.get("j.o.useNativeTooltip")&&(0,c.attr)(this.container,"title",this.state.tooltip),(0,c.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,c.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const t=this.get("j.o.textIcons");if(!0===t||(0,a.T)(t)&&t(this.state.name))return;o.J.detach(this.icon);const e=d.I.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){const{activeElement:t}=this.od;return!(!t||!o.J.isOrContains(this.container,t))}createContainer(){const t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),s=this.j.c.span(t+"__icon"),i=this.j.c.span(t+"__text");return e.appendChild(s),e.appendChild(i),e}constructor(t,e){super(t),this.isButton=!0,this.state=p(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(r.f.ready,(()=>{this.setState(e)}))}destruct(){return 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((e=>e.call(this,t)))}};function g(t,e,s,i){const r=new m(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,l.K)(e)?(r.state.icon.name=e,r.state.name=e,i&&(r.state.variant=i),s&&(r.state.text=s)):r.setState(e),r}(0,i.Cg)([n.cache],m.prototype,"text",null),(0,i.Cg)([n.cache],m.prototype,"icon",null),(0,i.Cg)([(0,n.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),(0,i.Cg)([(0,n.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),(0,i.Cg)([(0,n.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),(0,i.Cg)([(0,n.watch)("parentElement")],m.prototype,"updateSize",null),(0,i.Cg)([(0,n.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),(0,i.Cg)([(0,n.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),(0,i.Cg)([(0,n.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),(0,i.Cg)([(0,n.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,i.Cg)([(0,n.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,i.Cg)([(0,n.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),(0,i.Cg)([(0,n.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),(0,i.Cg)([(0,n.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),(0,i.Cg)([(0,n.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),(0,i.Cg)([n.cacheHTML],m.prototype,"createContainer",null),(0,i.Cg)([(0,n.watch)("button:click")],m.prototype,"__onActionFire",null),m=(0,i.Cg)([n.component],m)},92039(t,e,s){"use strict";function i(t){return t&&"function"==typeof t.then}s.d(e,{y(){return i}})},92097(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(56298),a=s(65147),l=s(71005);s(67915);const c="__jodit_imageprocessor_binded",h=c+"blob-id";class u extends l.k{afterInit(t){}beforeDestruct(t){const e=(0,n.cached)(t,"buffer"),s=e?.get(h);if(e&&s){const t=Object.keys(s);for(const e of t)URL.revokeObjectURL(e);e.delete(h)}}onAfterGetValueFromEditor(t,e){if(e!==r.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){const{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;const s=e.buffer.get(h);if(s){const e=Object.keys(s);for(const i of e)for(;t.value.includes(i);)t.value=t.value.replace(i,s[i])}}async afterChange(t){const{jodit:e}=this;e.editor&&(0,a.$$)("img",e.editor).forEach((t=>{(0,a.dataBind)(t,c)||((0,a.dataBind)(t,c,!0),t.complete||e.e.on(t,"load",(function s(){!e.isInDestruct&&e.e?.fire("resize"),e.e.off(t,"load",s)})),t.src&&/^data:/.test(t.src)&&((t,e)=>{if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const s=e.src,i=(t=>{const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t++)r[t]=e.charCodeAt(t);return new Blob([i],{type:s})})(s);e.src=URL.createObjectURL(i),t.e.fire("internalUpdate");const{buffer:r}=t,n=r.get(h)||{};n[e.src]=s,t.buffer.set(h,n)})(e,t),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}}(0,i.Cg)([(0,n.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),(0,i.Cg)([(0,n.watch)(":beforeSetElementValue")],u.prototype,"onBeforeSetElementValue",null),(0,i.Cg)([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],u.prototype,"afterChange",null),o.fg.add("imageProcessor",u)},92225(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(71005);class c extends l.k{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==r.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:e,endOffset:s}=this.j.selection.range;if(o.J.isText(e)&&e.nodeValue?.length===s){const{parentNode:t}=e;o.J.isInlineBlock(t)&&!o.J.findNotEmptyNeighbor(t,!1,this.j.editor)&&o.J.after(t,this.j.createInside.text(r.NBSP_SPACE))}}}(0,i.Cg)([(0,n.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.fg.add("keyArrowOutside",c)},92227(t,e,s){"use strict";s.d(e,{z(){return n}});var i=s(55186),r=s(29780);class n extends r.D{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return i.J.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},92553(t,e,s){"use strict";var i=s(71842),r=s(56298),n=s(36115);n.T.prototype.autofocus=!1,n.T.prototype.cursorAfterAutofocus="end",n.T.prototype.saveSelectionOnBlur=!0,r.fg.add("focus",(t=>{t.o.saveSelectionOnBlur&&t.e.on("blur",(()=>{t.isEditorMode()&&t.s.save(!0)})).on("focus",(()=>{t.s.restore()}));const e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){const e=i.J.last(t.editor,(t=>i.J.isText(t)));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",(()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())})),t.e.on("afterInit afterAddPlace",(()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",(e=>{t.isEditorMode()&&e.target&&i.J.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))}))}))}))},92852(t,e,s){"use strict";s.d(e,{X(){return o}});var i=s(17352),r=s(55186),n=s(65147);s(28712);class o{get doc(){return(0,n.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,s){const i=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(i),e&&((0,n.isPlainObject)(e)?(0,n.attr)(i,e):s=e),s&&(0,n.asArray)(s).forEach((t=>i.appendChild((0,n.isString)(t)?this.fromHTML(t):t))),i}div(t,e,s){const i=this.element("div",e,s);return t&&(i.className=t),i}sandbox(){const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const e=t.contentWindow?.document;if(!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),[e.body,t]}span(t,e,s){const i=this.element("span",e,s);return t&&(i.className=t),i}a(t,e,s){const i=this.element("a",e,s);return t&&(i.className=t),i}text(t){return this.doc.createTextNode(t)}fake(){return this.text(i.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const s=this.div();s.innerHTML=""+t;const i=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(r.J.safeRemove(i),e){const t=(0,n.refs)(i);Object.keys(e).forEach((s=>{const i=t[s];i&&!1===e[s]&&r.J.hide(i)}))}return i}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const s=e[t.tagName.toLowerCase()];(0,n.isFunction)(s)?s(t):(0,n.isPlainObject)(s)&&(0,n.attr)(t,s)}}}}},92998(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(59101);const r=(...t)=>t.filter((t=>(0,i.Bq)(t).length)).map(((e,s)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),s&&(e=e.replace(/^\//,"")),s!==t.length-1&&(e=e.replace(/\/$/,"")),e))).join("/")},93027(t,e,s){"use strict";var i=s(931),r=s(36115),n=s(928),o=s.n(n),a=s(31230),l=s.n(a);r.T.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},i.I.set("crop",o()).set("resize",l())},93267(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93324(t,e,s){"use strict";var i=s(17352),r=s(36115);r.T.prototype.askBeforePasteFromWord=!0,r.T.prototype.processPasteFromWord=!0,r.T.prototype.defaultActionOnPasteFromWord=null,r.T.prototype.pasteFromWordActionList=[{value:i.INSERT_AS_HTML,text:"Keep"},{value:i.INSERT_AS_TEXT,text:"Clean"},{value:i.INSERT_ONLY_TEXT,text:"Insert only Text"}]},93495(t,e,s){"use strict";s.d(e,{s(){return i.s}});var i=s(96768)},93669(t,e,s){"use strict";var i=s(31635),r=s(17352),n=s(22664),o=s(55186),a=s(56298),l=s(65147),c=s(71005),h=(s(90722),s(1992));class u extends c.k{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>this.sourceEditor?.getSelectionStart()??0,this.getSelectionEnd=()=>this.sourceEditor?.getSelectionEnd()??0}onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;const t=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(t=>{let e="";for(let s=0;t.length>s;s+=1)e+=r.INVISIBLE_SPACE;return e}));t>0&&e[t]===r.INVISIBLE_SPACE;)t--;let s=t;for(;s>0;){if(s--,"<"===e[s]&&void 0!==e[s+1]&&e[s+1].match(/[\w/]+/i))return s;if(">"===e[s])return t}return t}clnInv(t){return t.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.j.s.marker(!0),s=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,s)+this.clnInv(e.outerHTML)+t.substring(s))}else{const e=this.j.s.marker(!0),s=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,i)+this.clnInv(e.outerHTML)+t.slice(i,r)+this.clnInv(s.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,s=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e)}if(e=t.indexOf(this.tempMarkerStart),s=e,t=t.replace(this.tempMarkerStartReg,""),-1!==e){const e=t.indexOf(this.tempMarkerEnd);-1!==e&&(s=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,s),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",(()=>{t.workplace.appendChild(this.mirrorContainer)})),this.sourceEditor=(0,h.b)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",(t=>{t.key===r.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()})),this.onReadonlyReact(),t.e.on("placeholder.source",(t=>{this.sourceEditor?.setPlaceHolder(t)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(t=>t)),t.o.beautifyHTML){const e=()=>{if(t.isInDestruct)return!1;const e=t.ow.html_beautify;return!(!e||t.isInDestruct||(t.events?.off("beautifyHTML").on("beautifyHTML",(t=>e(t))),0))};e()||(0,l.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e,(()=>null))}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){const e=this.j;e.getMode()!==r.MODE_SPLIT&&e.getMode()!==r.MODE_SOURCE||this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){const e=(0,h.b)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways((()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}else this.sourceEditor?.onReadyAlways((()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),o.J.safeRemove(this.mirrorContainer)}}(0,i.Cg)([(0,n.watch)(":insertHTML.source")],u.prototype,"onInsertHTML",null),(0,i.Cg)([n.autobind],u.prototype,"fromWYSIWYG",null),(0,i.Cg)([n.autobind],u.prototype,"toWYSIWYG",null),(0,i.Cg)([n.autobind],u.prototype,"getNormalPosition",null),(0,i.Cg)([(0,n.watch)(":beforeCommand.source")],u.prototype,"onSelectAll",null),(0,i.Cg)([(0,n.watch)(":beforeSetMode.source")],u.prototype,"saveSelection",null),(0,i.Cg)([(0,n.watch)(":afterSetMode.source")],u.prototype,"removeSelection",null),(0,i.Cg)([n.autobind],u.prototype,"setMirrorSelectionRange",null),(0,i.Cg)([(0,n.watch)(":readonly.source")],u.prototype,"onReadonlyReact",null),(0,i.Cg)([n.autobind],u.prototype,"syncValueFromWYSIWYG",null),a.fg.add("source",u)},93676(t,e,s){"use strict";s.d(e,{g(){return c}});var i,r=s(31635),n=s(22664),o=s(43431),a=s(95473),l=s(81629);let c=i=class t extends o.h{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}constructor(t,e){super(),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout((()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.Z)}),5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=e,i._instances.add(this)}destruct(){this.stop(),i._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,i._instances.forEach((t=>{t!==this&&t.stop()}));try{this._api.start()}catch(t){return this._onError(t),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,e){return this._api.addEventListener(t,e),this}__off(t,e){return this._api.removeEventListener(t,e),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.N),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let e=0;t.results.length>e;e++){const s=t.results.item(e);if(s.length){const{transcript:t}=s.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),"language-unavailable"!==t.error&&"language-not-supported"!==t.error||this.emit("error","Language unavailable"),this._makeSound(l.Z),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,a.s)({frequency:t})}};c._instances=new Set,c=i=(0,r.Cg)([n.autobind],c)},94070(t,e,s){"use strict";s.d(e,{z(){return m}});var i=s(31635),r=s(37474),n=s(22664),o=s(42589),a=s(92032),l=s(6455),c=s(86283),h=s(13642),u=s(39611),d=s(57023),p=s(37424);let m=class t extends l.U{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}constructor(t){super(t),this.mode="horizontal",this.removeButtons=[]}makeGroup(){return new l.U(this.jodit)}get buttons(){return this.allChildren.filter((t=>r.u.isInstanceOf(t,a.lD)))}getButtonsNames(){return this.buttons.map((t=>t instanceof a.lD&&t.state.name||"")).filter((t=>""!==t))}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){t=(0,o.u)(t),this.clear();let s,i=!1,r=this.makeGroup();this.append(r),r.setMod("line",!0);const n=t=>{let n=null;switch(t.name){case"\n":r=this.makeGroup(),r.setMod("line",!0),s=this.makeGroup(),r.append(s),this.append(r);break;case"|":i||(i=!0,n=new c.C(this.j));break;case"---":{s.setMod("before-spacer",!0);const t=new h.b(this.j);r.append(t),s=this.makeGroup(),r.append(s),i=!1;break}default:i=!1,n="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}n&&(s||(s=this.makeGroup(),r.append(s)),s.append(n))},a=t=>!this.removeButtons.includes(t.name)&&(!t.isVisible||t.isVisible?.(this.j,t));return t.forEach((t=>{if((0,u.i)(t)){const e=t.buttons.filter((t=>t));e.length&&(s=this.makeGroup(),s.setMod("separated",!0).setMod("group",t.group),r.append(s),(0,p.Q)(e,this.j.o.controls).filter(a).forEach(n))}else{s||(s=this.makeGroup(),r.append(s));const e=(0,d.U)(t,this.j.o.controls);a(e)&&n(e)}})),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new a.lD(this.j,{name:t.name})}};(0,i.Cg)([(0,n.watch)("mode"),(0,n.hook)("ready")],m.prototype,"__onChangeMode",null),m=(0,i.Cg)([n.component],m)},94190(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94291(t,e,s){"use strict";var i=s(71842),r=s(65147),n=s(97369),o=s(931),a=s(36115),l=s(67447),c=s.n(l);a.T.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},o.I.set("table",c()),a.T.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,s,o){t.editor.normalize();const a=t.history.snapshot.make(),l=o.control,c=l.data&&l.data.rows?l.data.rows:10,h=l.data&&l.data.cols?l.data.cols:10,u=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";const e=[];if(l.data){const t=l.data.classList;Object.keys(t).forEach((s=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${s}" type="checkbox"/>${t[s]}</label>`)}))}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),d=u.querySelectorAll("span")[0],p=u.querySelectorAll("span")[1],m=u.querySelector(".jodit-form__container"),g=u.querySelector(".jodit-form__options"),f=[],v=c*h;for(let e=0;v>e;e+=1)f[e]||f.push(t.c.element("span",{dataIndex:e}));if(t.e.on(m,"mousemove",((t,e)=>{const s=t.target;if(!i.J.isTag(s,"span"))return;const r=void 0===e||isNaN(e)?parseInt((0,n.attr)(s,"-index")||"0",10):e||0,o=Math.ceil((r+1)/h),a=r%h+1;for(let t=0;f.length>t;t+=1)f[t].className=t%h+1>a||Math.ceil((t+1)/h)>o?"":"jodit_hovered";p.textContent=""+a,d.textContent=""+o})).on(m,"touchstart mousedown",(e=>{const o=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!i.J.isTag(o,"span"))return;const l=parseInt((0,n.attr)(o,"-index")||"0",10),c=Math.ceil((l+1)/h),u=l%h+1,d=t.createInside,p=d.element("tbody"),m=d.element("table");m.appendChild(p);let f,v,_=null;for(let t=1;c>=t;t+=1){f=d.element("tr");for(let t=1;u>=t;t+=1)v=d.element("td"),_||(_=v),(0,r.css)(v,"width",(100/u).toFixed(4)+"%"),v.appendChild(d.element("br")),f.appendChild(d.text("\n")),f.appendChild(d.text("\t")),f.appendChild(v);p.appendChild(d.text("\n")),p.appendChild(f)}(0,r.$$)("input[type=checkbox]:checked",g).forEach((t=>{t.value.split(/[\s]+/).forEach((t=>{m.classList.add(t)}))})),t.s.restore(),t.s.removeMarkers(),t.editor.normalize(),t.history.snapshot.restore(a);const b=i.J.furthest(t.s.current(),i.J.isBlock,t.editor);if(b&&i.J.isEmpty(b))i.J.replace(b,m,void 0,!1,!0);else if(b){const e=d.text("\n");if(t.o.table.splitBlockOnInsertTable){const s=t.s.range;s.collapse(!1),s.insertNode(e),s.collapse(!1),t.s.selectRange(s);const r=t.s.splitSelection(b,e);i.J.after(r,m)}else i.J.after(b,e),i.J.after(e,m)}else t.s.insertNode(m,!1);_&&(t.s.setCursorIn(_),(0,r.scrollIntoViewIfNeeded)(_,t.editor,t.ed)),s()})),o&&o.parentElement){for(let e=0;c>e;e+=1){const s=t.c.div();for(let t=0;h>t;t+=1)s.appendChild(f[e*h+t]);m.appendChild(s)}f[0]&&(f[0].className="hovered")}return u},tooltip:"Insert table"}},94450(t,e,s){"use strict";s.d(e,{w(){return a}});var i=s(17352),r=s(55186),n=s(42448),o=s(59101);function a(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const s=i.globalDocument.createElement("div");s.innerHTML=t;const o=[];s.firstChild&&r.J.each(s,(t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":o.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.J.unwrap(t);break;default:(0,n.$)(t.attributes).forEach((e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}))}break;case Node.TEXT_NODE:break;default:o.push(t)}})),r.J.safeRemove.apply(null,o),e=s.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(o.Bq).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},94628(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r.a},cs_cz(){return r.a},de(){return r.a},es(){return r.a},fa(){return r.a},fi(){return r.a},fr(){return r.a},he(){return r.a},hu(){return r.a},id(){return r.a},it(){return r.a},ja(){return r.a},ko(){return r.a},mn(){return r.a},nl(){return r.a},pl(){return r.a},pt_br(){return r.a},ru(){return r.a},tr(){return r.a},zh_cn(){return r.a},zh_tw(){return r.a}});var i=s(41324),r=s.n(i)},94766(t,e,s){"use strict";s.d(e,{R(){return r}});var i=s(55186);function r(t,e){return!!i.J.isCell(e.parentElement)}},94806(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},95032(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95274(t,e,s){"use strict";s.d(e,{$s(){return a},Wv(){return l},sz(){return o}});var i=s(55186),r=s(70592),n=s(38046);function o(t,e,s,o=!0){if(!e||!(0,n._)(e))return!1;const{element:a,elementIsDefault:l,options:c}=t;if(i.J.isList(e)&&t.elementIsList)return!0;const h=i.J.isTag(e,a);return!(!h||l&&s)||!(!c.attributes?.style||!(o?(0,r.g)(e,c.attributes.style):(0,r.Y)(e,c.attributes.style))||t.elementIsList)||!h&&!s&&l&&i.J.isInlineBlock(e)}function a(t,e,s){return i.J.closest(e,(e=>o(t,e,!0,!1)),s)}function l(t,e){const{element:s,options:i}=t;if(!e||!(0,n._)(e))return!1;const o=e.nodeName.toLowerCase()===s,a=!(!i.attributes?.style||!(0,r.Y)(e,i.attributes?.style));return o&&a}},95320(t){t.exports='<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>'},95350(t,e,s){"use strict";s.d(e,{E(){return r}});var i=s(9823);function r(t){return(0,i.Kg)(t)||(0,i.cy)(t)?t.length:(0,i.Qd)(t)?Object.keys(t).length:0}},95473(t,e,s){"use strict";s.d(e,{s(){return n}});var i=s(17352),r=s(81629);function n({sec:t=.1,frequency:e=r.N,gain:s=.1,type:n="sine"}={}){if(!i.globalWindow||void 0===i.globalWindow.AudioContext&&void 0===i.globalWindow.webkitAudioContext)return;const o=new(i.globalWindow.AudioContext||i.globalWindow.webkitAudioContext),a=o.createGain(),l=o.createOscillator();l.type=n,l.frequency.value=e,l.connect(a),a.connect(o.destination),l.start(),l.stop(o.currentTime+t),a.gain.value=s}},96025(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(53048);class r extends i.Ue{className(){return"FileBrowserFiles"}}},96134(t,e,s){"use strict";s.d(e,{P(){return r}});var i=s(449);function r(t){return(0,i.k)(t).toLowerCase()}},96369(t,e,s){"use strict";s.d(e,{z(){return i.z}});var i=s(80071)},96768(t,e,s){"use strict";s.d(e,{s(){return i}});const i=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;const e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";const s=parseInt(e[2],10),i=parseInt(e[3],10);let r=(parseInt(e[4],10)|i<<8|s<<16).toString(16).toUpperCase();for(;6>r.length;)r="0"+r;return e[1]+"#"+r}},96900(t,e,s){"use strict";s(36115).T.prototype.draggableTags=["img","jodit-media","jodit"]},97179(t,e,s){"use strict";var i=s(31635),r=s(22664),n=s(56298),o=s(26150),a=s(71005),l=(s(78703),s(11995));class c extends a.k{constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,n.JW)(l)}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,o.C)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}}(0,i.Cg)([r.autobind],c.prototype,"toggleSpellcheck",null),n.fg.add("spellcheck",c)},97324(t,e,s){"use strict";function i(t,e,s){return t.dataProvider.fileRemove(t.state.currentPath,e,s).then((s=>{t.status(s||t.i18n('File "%s" was deleted',e),!0)})).catch(t.status)}s.d(e,{W(){return i}})},97369(t,e,s){"use strict";s.r(e),s.d(e,{$$(){return k.$$},ConfigDeepFlatten(){return d.pi},ConfigFlatten(){return d.VL},ConfigProto(){return d.tb},ConnectionError(){return _.Rc},LimitedStack(){return L.d},OptionsError(){return _.ZW},abort(){return _.h2},alignElement(){return i.Op},alreadyLoadedList(){return r.EW},appendScriptAsync(){return r.w4},appendStyleAsync(){return r.S5},attr(){return l.C},browser(){return c.T},buildQuery(){return h.Z},call(){return A.T1},callPromise(){return A.o_},clearAlign(){return i.Xm},clearCenterAlign(){return m.a},cns(){return E.f},completeUrl(){return u.X},connection(){return _.FI},convertMediaUrlToVideoEmbed(){return p.m},css(){return m.A},cssPath(){return k.bE},ctrlKey(){return g.X},dataBind(){return f.m},defaultLanguage(){return v.e},error(){return _.z3},fastClone(){return b.y6},get(){return y.J},getClassName(){return w.u},getDataTransfer(){return A.my},getXPathByElement(){return k.fz},hAlignElement(){return i.Mr},humanSizeToBytes(){return C.z},inView(){return x.l},isAbort(){return _.rV},isAtom(){return b.mA},keepNames(){return w.M},keys(){return A.HP},loadImage(){return A.yt},loadNext(){return r.Qt},loadNextStyle(){return r.x_},markAsAtomic(){return b.Hp},markDeprecated(){return E.B},markOwner(){return A.b_},memorizeExec(){return A.qN},options(){return _.fF},parseQuery(){return S.m},previewBox(){return T.u},refs(){return k.DY},reset(){return I.c},resolveElement(){return k.tI},scrollIntoViewIfNeeded(){return x.$},set(){return j.h}});var i=s(40080),r=s(27301),n=s(28712),o={};for(var a in n)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(o[a]=(t=>n[t]).bind(0,a));s.d(e,o);var l=s(26150),c=s(65717),h=s(76104),u=s(60346),d=s(86248),p=s(82807),m=s(38322),g=s(34446),f=s(72197),v=s(17527),_=s(50156),b=s(49429),y=s(16841),w=s(75766),C=s(99898),E=s(67400),S=s(70807),T=s(98434),I=s(44210),x=s(641),k=s(58720),j=s(40677),L=s(70069),A=s(84976)},97394(t,e,s){"use strict";s.d(e,{Q(){return l}});var i=s(31635),r=s(22664),n=s(76166),o=s(53048),a=s(8809);let l=class t extends o.z4{className(){return"ToolbarCollection"}get firstButton(){const[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,a.BJ)(this.j,t,e)}makeSelect(t,e=null){return(0,a.RR)(this.j,t,e)}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)}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}__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,n.z3)("The method is not implemented for this class.")}build(t,e=null){const s=this.j.e.fire("beforeToolbarBuild",t);return s&&(t=s),super.build(t,e),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};(0,i.Cg)([r.autobind],l.prototype,"__immediateUpdate",null),(0,i.Cg)([(0,r.debounce)((t=>t.j.defaultTimeout),!0)],l.prototype,"update",null),(0,i.Cg)([(0,r.hook)("ready")],l.prototype,"__initEvents",null),l=(0,i.Cg)([r.component],l)},97621(t,e,s){"use strict";s.d(e,{$s(){return c.$s},AS(){return o.A},Dd(){return l.D},EF(){return r.E},G6(){return n.G},LV(){return p.L},M6(){return l.M},Yx(){return u.Y},iu(){return a.i},ks(){return h.k},tm(){return d.t},yP(){return i.y}});var i=s(20384),r=s(10466),n=s(75220),o=s(52052),a=(s(70592),s(78777)),l=(s(38046),s(13676)),c=s(95274),h=s(90325),u=(s(61001),s(38271)),d=s(86500),p=s(3101);s(80394)},97767(t,e,s){"use strict";var i=s(71842),r=s(931),n=s(36115),o=s(67176),a=s.n(o),l=s(14017),c=s.n(l),h=s(3392);r.I.set("indent",a()).set("outdent",c()),n.T.prototype.controls.indent={tooltip:"Increase Indent"},n.T.prototype.controls.outdent={isDisabled(t){const e=t.s.current();if(e){const s=i.J.closest(e,i.J.isBlock,t.editor);if(s){const e=(0,h.i)(t.o.direction,s);return!s.style[e]||0>=parseInt(s.style[e],10)}}return!0},tooltip:"Decrease Indent"},n.T.prototype.indentMargin=10},97836(t,e,s){"use strict";var i=s(26150);e.A=[{name:"eye",tooltip:"Open link",exec(t,e){const s=(0,i.C)(e,"href");e&&s&&t.ow.open(s)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},98228(t,e,s){"use strict";s.d(e,{m(){return o}});var i=s(17352),r=s(55186),n=s(97369);function o(t){if(!t)return null;const e=r.J.isHTMLElement(t),s=e&&(0,n.css)(t,"overflowY");return e&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:o(t.parentNode)||i.globalDocument.scrollingElement||i.globalDocument.body}},98253(t,e,s){"use strict";s.d(e,{B(){return n},K(){return r}});var i=s(37923);function r(t){return"string"==typeof t}function n(t){return(0,i.c)(t)&&r(t[0])}},98341(t,e,s){"use strict";var i=s(55186),r=s(56298),n=s(84976),o=s(71005),a=s(931),l=s(36115),c=s(93267),h=s.n(c);l.T.prototype.controls.classSpan={command:"applyClassName",exec:n.qN,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){const s=t.s.current();if(s){const r=i.J.closest(s,i.J.isElement,t.editor)||t.editor;return!(!e.control.args||!r.classList.contains(""+e.control.args[0]))}return!1},isActive(t,e){const s=t.s.current();if(s){const r=i.J.closest(s,i.J.isElement,t.editor)||t.editor;let n=!1;return e.control.list&&Object.keys(e.control.list).forEach((t=>{r.classList.contains(t)&&(n=!0)})),!(!r||r===t.editor||void 0===e.control.list||!n)}return!1},childTemplate(t,e,s){return`<span class="${e}">${t.i18n(s)}</span>`},tooltip:"Insert className"},r.fg.add("classSpan",class u extends o.k{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}afterInit(t){t.registerCommand("applyClassName",((e,s,i)=>(t.s.commitStyle({attributes:{class:i}}),!1)))}beforeDestruct(){}}),a.I.set("class-span",h())},98434(t,e,s){"use strict";s.d(e,{u(){return l}});var i=s(55186),r=s(98253),n=s(26150),o=s(38322),a=s(58720);function l(t,e,s="px",l=null){const c=[],h=((t,e)=>{const s=[];try{(0,a.$$)("img",t.editor).forEach((r=>{const o=[(0,n.C)(r,"width"),(0,n.C)(r,"height"),r.src];(0,n.C)(r,{width:r.offsetWidth+e,height:r.offsetHeight+e});const a=t.createInside.a();t.ed.body.appendChild(a),a.href=r.src,r.src=a.href,i.J.safeRemove(a),s.push((()=>{r.src=o[2]??"",(0,n.C)(r,{width:o[0]||null,height:o[1]||null})}))}))}catch(t){throw s.forEach((t=>t())),s.length=0,t}return s})(t,s);try{const a=t.e.fire("beforePreviewBox",e,s);if(null!=a)return a;let h=t.c.div("jodit__preview-box jodit-context");l&&l.appendChild(h),(0,o.A)(h,{position:"relative",padding:16});const u=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){const e=t.create.element("iframe");(0,o.A)(e,{minWidth:800,minHeight:600,border:0}),h.appendChild(e);const s=e.contentWindow;if(s&&(t.e.fire("generateDocumentStructure.iframe",s.document,t),h=s.document.body,"function"==typeof ResizeObserver)){let i=!1;const r=s.document.body,n=new ResizeObserver(t.async.debounce((()=>{n.unobserve(r),e.style.height=r.offsetHeight+20+"px",t.async.requestAnimationFrame((()=>{!i&&n.observe(r)}))}),100)),o=()=>{i=!0,n.unobserve(r),n.disconnect(),t.e.off("beforeDestruct",o)};c.push(o),t.e.on("beforeDestruct",o)}}else(0,o.A)(h,{minWidth:1024,minHeight:600,border:0});const d=(e,s)=>{const o=(0,r.K)(s)?t.c.div():s;(0,r.K)(s)&&(o.innerHTML=s);for(let t=0;o.childNodes.length>t;t+=1){const s=o.childNodes[t];if(i.J.isElement(s)){const t=e.ownerDocument.createElement(s.nodeName);for(let e=0;s.attributes.length>e;e+=1)(0,n.C)(t,s.attributes[e].nodeName,s.attributes[e].nodeValue);0===s.childNodes.length||i.J.isTag(s,"table")?"SCRIPT"===s.nodeName?s.textContent&&(t.textContent=s.textContent):s.innerHTML&&(t.innerHTML=s.innerHTML):d(t,s);try{e.appendChild(t)}catch{}}else try{e.appendChild(s.cloneNode(!0))}catch{}}};return d(h,u),t.e.fire("afterPreviewBox",h),[h,()=>{c.forEach((t=>t()))}]}finally{h.forEach((t=>t()))}}},98711(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98964(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},99573(t,e,s){"use strict";var i=s(55186),r=s(56298),n=s(65147),o=s(40080),a=s(38322),l=s(931),c=s(36115),h=s(80515);l.I.set("justify",s.n(h)()),c.T.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){const s=e.control,r=t.s.current();if(r){const o=i.J.closest(r,i.J.isBlock,t.editor)||t.editor;let l=""+(0,a.A)(o,"text-align");s.defaultValue&&-1!==s.defaultValue.indexOf(l)&&(l="left");const{list:c,data:h}=s;h&&h.currentValue!==l&&c&&((0,n.isPlainObject)(c)?c[l]:c.includes(l))&&(t.o.textIcons||"select"===s.component?e.state.text=l:e.state.icon.name=l,h.currentValue=l)}},isActive(t,e){const s=t.s.current();if(!s||!e.control.defaultValue)return!1;const r=i.J.closest(s,i.J.isBlock,t.editor)||t.editor;return-1===e.control.defaultValue.indexOf(""+(0,a.A)(r,"text-align"))},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.T.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.T.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.T.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.T.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},r.fg.add("justify",(t=>{t.registerButton({name:"align",group:"indent"});const e=e=>(t.s.focus(),t.s.eachSelection((s=>{if(!s)return;let r=i.J.up(s,i.J.isBlock,t.editor);r||(r=i.J.wrapInline(s,t.o.enterBlock,t)),(0,o.Op)(e,r)})),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}))},99689(t,e,s){"use strict";var i=s(36115);i.T.prototype.iframeBaseUrl="",i.T.prototype.iframeTitle="Jodit Editor",i.T.prototype.iframeDoctype="<!DOCTYPE html>",i.T.prototype.iframeDefaultSrc="about:blank",i.T.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',i.T.prototype.iframeCSSLinks=[],i.T.prototype.iframeSandbox=null},99876(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'},99898(t,e,s){"use strict";s.d(e,{z(){return i}});const i=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),s=["KB","MB","GB","TB"],i=parseFloat(t.substr(0,t.length-2));return-1!==s.indexOf(e)?i*Math.pow(1024,s.indexOf(e)+1):parseInt(t,10)}},99951(t,e,s){"use strict";function i(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}s.d(e,{z(){return i}})}},s={};function i(t){var r=s[t];if(void 0!==r)return r.exports;var n=s[t]={exports:{}};return e[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.r(r),i.d(r,{CommitMode(){return h},Jodit(){return t.x}});var t=i(46173),e=i(9823),s=i(17352),n=i(22664),o=i(37435),a=i(79721),l=i(74470);i(88222),Object.keys(s).forEach((e=>{t.x[e]=s[e]}));const c=t=>"__esModule"!==t;Object.keys(a).filter(c).forEach((t=>{o.Icon.set(t.replace("_","-"),a[t])})),Object.keys(o).filter(c).forEach((s=>{const i=o[s],r=(0,e.Tn)(i.prototype?.className)?i.prototype.className():s;(0,e.Kg)(r)&&(t.x.modules[r]=i)})),Object.keys(n).filter(c).forEach((e=>{t.x.decorators[e]=n[e]})),["Confirm","Alert","Prompt"].forEach((e=>{t.x[e]=o[e]})),Object.keys(l.A).filter(c).forEach((e=>{t.x.lang[e]=l.A[e]}));class h{}})(),r}()}));
8
+ ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],t);else{var i="object"==typeof exports?t(require("{}")):t(e["{}"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}})(self,e=>(()=>{var t={198(e,t,i){"use strict";i(28077).pluginSystem.add("poweredByJodit",e=>{let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
9
+ tabindex="-1"
10
+ style="text-transform: uppercase"
11
+ class="jodit-status-bar-link"
12
+ target="_blank"
13
+ href="https://xdsoft.net/jodit/">
14
+ Powered by Jodit
15
+ </a>`),!0)})})},223(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},421(e,t,i){"use strict";i.d(t,{getClassName:()=>r,keepNames:()=>o});var s=i(91565);let o=new Map,r=e=>{if((0,s.isFunction)(e.className))return e.className();let t=e.constructor?.originalConstructor||e.constructor;if(o.has(t))return o.get(t);if(t.name)return t.name;let i=new RegExp(/^\s*function\s*(\S*)\s*\(/),r=t.toString().match(i);return r?r[1]:""}},466(e,t,i){"use strict";var s=i(75711);t.default=[{name:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},s.align]},670(e,t,i){"use strict";i.d(t,{openImagePopup:()=>a});var s=i(17312),o=i(23599),r=i(51116),n=i(18762);function a(e,t,i,a){let l=new r.Popup(t),c=()=>{l.close(),l.destruct()};l.setContent((0,n.FileSelectorWidget)(e,{upload(e){e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),c()},async filebrowser(e){e&&(0,s.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],c())}},i.image,c)).open(()=>(0,o.position)(a))}},928(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},1080(e,t,i){"use strict";i.d(t,{LazyWalker:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=n.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){this.isWorked=!0;let e=0,t=this.options.timeoutChunkSize??50;for(;!this.isFinished&&e<=t;){let t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&(this.emit("visit",e)??!1)}constructor(e,t={}){super(),(0,s._)(this,"async",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"workNodes",void 0),(0,s._)(this,"hadAffect",void 0),(0,s._)(this,"isWorked",void 0),(0,s._)(this,"isFinished",void 0),(0,s._)(this,"idleId",void 0),(0,s._)(this,"__schedulerController",void 0),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}(0,o.__decorate)([r.autobind],l.prototype,"__workPerform",null)},1277(e,t,i){"use strict";i.d(t,{cleanFromWord:()=>a});var s=i(81937),o=i(23211),r=i(88475),n=i(4040);function a(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=s.globalDocument.createElement("div");i.innerHTML=e;let n=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":n.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:n.push(e)}}),o.Dom.safeRemove.apply(null,n),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(n.trim).join(`
16
+ `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},1305(e,t,i){"use strict";function s(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then(i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}i.d(t,{deleteFile:()=>s})},1488(e,t,i){"use strict";function s(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}i.d(t,{loadItems:()=>s})},1496(e,t,i){"use strict";i.d(t,{EventEmitter:()=>s.EventEmitter,EventHandlersStore:()=>n.EventHandlersStore,Eventify:()=>o.Eventify,defaultNameSpace:()=>n.defaultNameSpace,observable:()=>r.observable});var s=i(93747),o=i(60216),r=i(70535),n=i(18869)},1916(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},2222(e,t,i){"use strict";i.d(t,{ViewWithToolbar:()=>f});var s=i(25045),o=i(31635),r=i(69364),n=i(52201),a=i(68616),l=i(23211),c=i(45664),h=i(85932),d=i(28723),u=i(4099),p=i(2496),m=i(35099),g=i(4274);class f extends m.View{get toolbarContainer(){return!this.o.fullsize&&((0,h.isString)(this.o.toolbar)||l.Dom.isHTMLElement(this.o.toolbar))?(0,d.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&l.Dom.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer)}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;let e=this.o.buttons?(0,c.splitArray)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(e.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){this.registeredButtons.add(e);let t=e.group??"other";return this.groupToButtons[t]||(this.groupToButtons[t]=[]),null!=e.position?this.groupToButtons[t][e.position]=e.name:this.groupToButtons[t].push(e.name),this}unregisterButton(e){this.registeredButtons.delete(e);let t=e.group??"other",i=this.groupToButtons[t];if(i){let s=i.indexOf(e.name);-1!==s&&i.splice(s,1),0===i.length&&delete this.groupToButtons[t]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map(e=>(0,p.isButtonGroup)(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e)}destruct(){this.isDestructed||(this.setStatus(r.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(e,t=!1){super(e,t),(0,s._)(this,"toolbar",(0,g.makeCollection)(this)),(0,s._)(this,"__defaultToolbarContainer",this.c.div("jodit-toolbar__box")),(0,s._)(this,"registeredButtons",new Set),(0,s._)(this,"groupToButtons",{}),(0,s._)(this,"isJodit",!1),(0,s._)(this,"__tooltip",new u.UITooltip(this)),this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}(0,o.__decorate)([(0,a.watch)(":rebuildToolbar")],f.prototype,"buildToolbar",null),(0,o.__decorate)([n.default],f.prototype,"beforeToolbarBuild",null)},2409(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:()=>n});var s=i(81937),o=i(27795),r=i(80951);function n(e,t,i){let n=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!c||!o.Dom.isEmpty(c))return!1;let h=o.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&o.Dom.isEmpty(c)&&!o.Dom.isCell(c)){o.Dom.after(c,t);let i=o.Dom.closest(c,e=>o.Dom.isElement(e)&&e!==c,e.editor);o.Dom.safeRemove(c),n=!0,c=i}else break;while(c)return!!(n&&(0,r.checkJoinTwoLists)(e,t,i))||(!h||o.Dom.isText(h)||o.Dom.isTag(h,s.INSEPARABLE_TAGS)?a(t):l(h,!i),n)}},2496(e,t,i){"use strict";i.d(t,{flatButtonsSet:()=>r,isButtonGroup:()=>o});var s=i(17312);let o=e=>(0,s.isArray)(e.buttons);function r(e,t){let i=t.getRegisteredButtonGroups();return new Set(e.reduce((e,t)=>(o(t)?e=e.concat([...t.buttons,...i[t.group]??[]]):e.push(t),e),[]))}},2602(e,t,i){"use strict";i.d(t,{UICheckbox:()=>o.UICheckbox,UIFileInput:()=>r.UIFileInput,UIInput:()=>n.UIInput,UISelect:()=>a.UISelect,UITextArea:()=>s.UITextArea});var s=i(87329),o=i(24641),r=i(75587),n=i(65273),a=i(49999)},2756(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(91206),d=i(98803);i(69070);let u="table_processor_observer",p="onMoveTableSelectCell";class m extends h.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===r.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let e=this.__tableModule.getAllSelectedCells().length;if(e)return e>1&&this.j.s.sel?.removeAllRanges(),!1})}onStartSelection(e){if(this.j.o.readonly||(this.unselectCells(),e===this.j.editor))return;let t=a.Dom.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:p,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(u))return;let i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;let s=a.Dom.closest(i,["td","th"],e);if(!s||!this.__selectedCell)return;s!==this.__selectedCell&&this.j.lock(u),this.unselectCells();let o=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),r=this.__tableModule.formalMatrix(e);for(let e=o[0][0];e<=o[1][0];e+=1)for(let t=o[0][1];t<=o[1][1];t+=1)this.__tableModule.addSelection(r[e][t]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),t.stopPropagation();let n=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');s.appendChild(n),this.j.async.setTimeout(()=>{n.parentNode?.removeChild(n)},this.j.defaultTimeout/5)}__onRemoveSelection(e){if(!e?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;let s=a.Dom.closest(i,["td","th"],e);if(!s)return;let o=a.Dom.closest(s,"table",e);if(o&&o!==e)return;let r=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),n=this.__tableModule.formalMatrix(e),l=n[r[1][0]][r[1][1]],h=n[r[0][0]][r[0][1]];this.j.e.fire("showPopup",e,()=>{let e=(0,c.position)(h,this.j),t=(0,c.position)(l,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,c.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p)}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let s=a.Dom.closest(i,"table",this.j.editor);if(!s)return;switch(e){case"splitv":this.__tableModule.splitVertical(s);break;case"splitg":this.__tableModule.splitHorizontal(s);break;case"merge":this.__tableModule.mergeSelected(s);break;case"empty":t.forEach(e=>a.Dom.detach(e));break;case"bin":a.Dom.safeRemove(s);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(s,e.rowIndex)});break;case"bincolumn":{let e=new Set;t.reduce((t,i)=>(e.has(i.cellIndex)||(t.push(i),e.add(i.cellIndex)),t),[]).forEach(e=>{this.__tableModule.removeColumn(s,e.cellIndex)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(s,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(s,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,c.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(...e){super(...e),(0,s._)(this,"__selectedCell",null),(0,s._)(this,"__isSelectionMode",!1)}}(0,s._)(m,"requires",["select"]),(0,o.__decorate)([n.autobind],m.prototype,"onStartSelection",null),(0,o.__decorate)([(0,n.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,n.watch)(":change")],m.prototype,"onChange",null),(0,o.__decorate)([n.autobind],m.prototype,"__onRemoveSelection",null),(0,o.__decorate)([n.autobind],m.prototype,"__onStopSelection",null),(0,o.__decorate)([n.autobind],m.prototype,"onExecCommand",null),(0,o.__decorate)([n.autobind],m.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",m)},2923(e,t,i){"use strict";i.d(t,{onTabInsideLi:()=>s.onTabInsideLi});var s=i(8837)},2952(e,t,i){"use strict";var s=i(27795),o=i(28077),r=i(29434),n=i(5266),a=i(89097),l=i.n(a);r.Icon.set("hr",l()),n.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",e=>{e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=s.Dom.closest(t.parentElement,s.Dom.isBlock,e.editor);i&&s.Dom.isEmpty(i)&&i!==e.editor&&(s.Dom.after(i,t),s.Dom.safeRemove(i));let o=s.Dom.next(t,s.Dom.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),s.Dom.after(t,o)),e.s.setCursorIn(o),!1})})},3050(e,t,i){"use strict";i.d(t,{loadExtras:()=>h,loadStyle:()=>l});var s=i(81937),o=i(74264),r=i(47760),n=i(86189);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,o.kebabCase)(t);let s=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+s+"."+(i?"js":"css")}function h(e,t,i,o){try{let s=i.filter(t=>!e.has((0,n.normalizeName)(t.name)));s.length&&s.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!s.IS_PROD)throw e}}},3213(e,t,i){"use strict";i.d(t,{isSet:()=>o});var s=i(91565);function o(e){return!!e&&(0,s.isFunction)(e.has)&&(0,s.isFunction)(e.add)&&(0,s.isFunction)(e.delete)}},3244(e,t,i){"use strict";var s=i(81937),o=i(65946),r=i(5266),n=i(42573),a=i(4274);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
17
+ `,{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],r.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},`
18
+ `,{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:s.MODE_SOURCE+s.MODE_WYSIWYG,popup(e,t,i,s){let r=s.control.data;return void 0===r&&(r={toolbar:(0,a.makeCollection)(e),rebuild(){if(s){let t=e.e.fire("getDiffButtons.mobile",s.closest(n.ToolbarCollection));if(t&&r){r.toolbar.build((0,o.splitArray)(t));let i=e.toolbar?.firstButton?.container.offsetWidth||36;r.toolbar.container.style.width=(i+4)*3+"px"}}}},s.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},3347(e,t,i){"use strict";function s(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:()=>s})},3513(e,t,i){"use strict";function s(e){return null!=e&&e===e.window}i.d(t,{isWindow:()=>s})},3678(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(23211),a=i(28077),l=i(22289),c=i(18855),h=i(10918);class d extends c.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{n.Dom.safeInsertNode(t.s.range,i),(0,h.moveCursorOutFromSpecialTags)(t,i,["a"]);let s=(0,h.getBlockWrapper)(i,t),o=n.Dom.isLeaf(s);if((!o||e?.shiftKey)&&(0,h.checkBR)(i,t,e?.shiftKey))return!1;if(s||(0,h.hasPreviousBlock)(i,t)||(s=(0,h.wrapText)(i,t)),!s)return(0,h.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,h.checkUnsplittableBox)(i,t,s))return!1;if(o&&this.__isEmptyListLeaf(s))return(0,h.processEmptyLILeaf)(i,t,s),!1;(0,h.splitFragment)(i,t,s)}finally{i.isConnected&&t.s.setCursorBefore(i),n.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,l.isBoolean)(t)?t:n.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}(0,s.__decorate)([(0,r.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",d)},3843(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},3856(e,t,i){"use strict";i.d(t,{convertMediaUrlToVideoEmbed:()=>n});var s=i(81937),o=i(91764),r=i(36310);let n=(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let n=s.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;n.href=e,t||(t=400),i||(i=345);let l=n.protocol||"";switch(n.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let s=n.search?(0,r.parseQuery)(n.search):{v:n.pathname.substring(1)};return/^embed\/.*/.test(s.v)&&(s.v=s.v.substring(6)),s.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+s.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},4040(e,t,i){"use strict";i.d(t,{trim:()=>o,trimChars:()=>r,trimInv:()=>n});var s=i(81937);function o(e){return e.replace((0,s.SPACE_REG_EXP_END)(),"").replace((0,s.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function n(e){return e.replace((0,s.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,s.INVISIBLE_SPACE_REG_EXP_START)(),"")}},4099(e,t,i){"use strict";i.d(t,{Button:()=>s.Button,Icon:()=>a.Icon,Popup:()=>l.Popup,ProgressBar:()=>c.ProgressBar,UIBlock:()=>r.UIBlock,UIButton:()=>s.UIButton,UIButtonGroup:()=>s.UIButtonGroup,UIButtonState:()=>s.UIButtonState,UICheckbox:()=>r.UICheckbox,UIElement:()=>o.UIElement,UIFileInput:()=>r.UIFileInput,UIForm:()=>r.UIForm,UIGroup:()=>n.UIGroup,UIInput:()=>r.UIInput,UIList:()=>n.UIList,UISelect:()=>r.UISelect,UISeparator:()=>n.UISeparator,UISpacer:()=>n.UISpacer,UITextArea:()=>r.UITextArea,UITooltip:()=>s.UITooltip});var s=i(59400),o=i(96007),r=i(5658),n=i(64847),a=i(29434),l=i(56490),c=i(34396)},4274(e,t,i){"use strict";i.d(t,{makeButton:()=>h,makeCollection:()=>c,makeSelect:()=>d});var s=i(65946),o=i(22533),r=i(5772),n=i(61764),a=i(42573),l=i(6209);function c(e,t){let i=(0,s.isJoditObject)(e)?new l.ToolbarEditorCollection(e):new a.ToolbarCollection(e);return e.o.textIcons&&i.container.classList.add("jodit_text_icons"),t&&(i.parentElement=t),e.o.toolbarButtonSize&&(i.buttonSize=e.o.toolbarButtonSize),i}function h(e,t,i=null){if((0,s.isFunction)(t.getContent))return new r.ToolbarContent(e,t,i);let n=new o.ToolbarButton(e,t,i);return n.state.tabIndex=e.o.allowTabNavigation?0:-1,n}function d(e,t,i=null){return new n.ToolbarSelect(e,t,i)}},4561(e,t,i){"use strict";i.d(t,{UIBlock:()=>l});var s=i(25045),o=i(31635),r=i(91672),n=i(93640),a=i(63468);class l extends a.UIGroup{className(){return"UIBlock"}constructor(e,t,i={align:"left"}){super(e,t),(0,s._)(this,"options",void 0),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,n.attr)(this.container,"data-ref",i.ref),(0,n.attr)(this.container,"ref",i.ref)}}l=(0,o.__decorate)([r.component],l)},5070(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>s,cs_cz:()=>s,de:()=>s,es:()=>s,fa:()=>s,fi:()=>s,fr:()=>s,he:()=>s,hu:()=>s,id:()=>s,it:()=>s,ja:()=>s,ko:()=>s,mn:()=>s,nl:()=>s,pl:()=>s,pt_br:()=>s,ru:()=>s,tr:()=>s,ua:()=>s,zh_cn:()=>s,zh_tw:()=>s});var s=i(41324)},5266(e,t,i){"use strict";i.d(t,{Config:()=>n});var s=i(25045),o=i(81937);let r={};class n{static get defaultOptions(){return n.__defaultOptions||(n.__defaultOptions=new n),n.__defaultOptions}constructor(){(0,s._)(this,"cache",!0),(0,s._)(this,"defaultTimeout",100),(0,s._)(this,"namespace",""),(0,s._)(this,"safeMode",!1),(0,s._)(this,"width","auto"),(0,s._)(this,"height","auto"),(0,s._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,s._)(this,"commandToHotkeys",void 0),(0,s._)(this,"license",""),(0,s._)(this,"preset","custom"),(0,s._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,s._)(this,"ownerDocument",o.globalDocument),(0,s._)(this,"ownerWindow",o.globalWindow),(0,s._)(this,"shadowRoot",null),(0,s._)(this,"zIndex",0),(0,s._)(this,"readonly",!1),(0,s._)(this,"disabled",!1),(0,s._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,s._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,s._)(this,"toolbarButtonSize","middle"),(0,s._)(this,"allowTabNavigation",!1),(0,s._)(this,"inline",!1),(0,s._)(this,"theme","default"),(0,s._)(this,"saveModeInStorage",!1),(0,s._)(this,"editorClassName",!1),(0,s._)(this,"className",!1),(0,s._)(this,"style",!1),(0,s._)(this,"containerStyle",!1),(0,s._)(this,"styleValues",{}),(0,s._)(this,"triggerChangeEvent",!0),(0,s._)(this,"direction",""),(0,s._)(this,"language","auto"),(0,s._)(this,"debugLanguage",!1),(0,s._)(this,"i18n",!1),(0,s._)(this,"tabIndex",-1),(0,s._)(this,"toolbar",!0),(0,s._)(this,"statusbar",!0),(0,s._)(this,"showTooltip",!0),(0,s._)(this,"showTooltipDelay",200),(0,s._)(this,"useNativeTooltip",!1),(0,s._)(this,"defaultActionOnPaste",o.INSERT_AS_HTML),(0,s._)(this,"enter",o.PARAGRAPH),(0,s._)(this,"iframe",!1),(0,s._)(this,"editHTMLDocumentMode",!1),(0,s._)(this,"enterBlock","br"!==this.enter?this.enter:o.PARAGRAPH),(0,s._)(this,"defaultMode",o.MODE_WYSIWYG),(0,s._)(this,"useSplitMode",!1),(0,s._)(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"]}),(0,s._)(this,"colorPickerDefaultTab","background"),(0,s._)(this,"imageDefaultWidth",300),(0,s._)(this,"removeButtons",[]),(0,s._)(this,"disablePlugins",[]),(0,s._)(this,"extraPlugins",[]),(0,s._)(this,"basePath",void 0),(0,s._)(this,"extraButtons",[]),(0,s._)(this,"extraIcons",{}),(0,s._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,s._)(this,"sizeLG",900),(0,s._)(this,"sizeMD",700),(0,s._)(this,"sizeSM",400),(0,s._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
19
+ `,{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:[]}]),(0,s._)(this,"controls",void 0),(0,s._)(this,"events",{}),(0,s._)(this,"textIcons",!1),(0,s._)(this,"popupRoot",null),(0,s._)(this,"showBrowserColorPicker",!0),Object.assign(this,r)}}(0,s._)(n,"__defaultOptions",void 0),r=n.prototype,n.prototype.controls={}},5650(e,t,i){"use strict";i.d(t,{getHash:()=>r});var s=i(85932),o=i(4040);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,n={};return(0,s.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let s=t.exec(e),a={};if(s){let e=s[2].split(i);s[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),n[s[1].toUpperCase()]=a)}else n[e.toUpperCase()]=!0}),n):!!e&&(Object.keys(e).forEach(t=>{n[t.toUpperCase()]=e[t]}),n)}},5658(e,t,i){"use strict";i.d(t,{UIBlock:()=>s.UIBlock,UICheckbox:()=>r.UICheckbox,UIFileInput:()=>r.UIFileInput,UIForm:()=>o.UIForm,UIInput:()=>r.UIInput,UISelect:()=>r.UISelect,UITextArea:()=>r.UITextArea});var s=i(4561),o=i(98838),r=i(2602)},5771(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:()=>o});var s=i(23211);function o(e,t,i){let o=s.Dom.closest(t,s.Dom.isElement,e.editor);if(!o)return!1;let r=s.Dom.findNotEmptySibling(o,i);return!!(r&&s.Dom.isEmpty(r))&&(s.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},5772(e,t,i){"use strict";i.d(t,{ToolbarContent:()=>c});var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(65946),l=i(59400);class c extends l.UIButton{className(){return"ToolbarContent"}update(){let e=this.control.getContent(this.j,this);((0,a.isString)(e)||e.parentNode!==this.container)&&(n.Dom.detach(this.container),this.container.appendChild((0,a.isString)(e)?this.j.create.fromHTML(e):e)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),(0,s._)(this,"control",void 0),(0,s._)(this,"target",void 0),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,a.attr)(this.container,"role","content")}}c=(0,o.__decorate)([r.component],c)},6209(e,t,i){"use strict";i.d(t,{ToolbarEditorCollection:()=>h});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(27795),l=i(65946),c=i(42573);class h extends c.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?r.MODE_WYSIWYG:e.control.mode;return i!==r.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let s=this.j.selection?this.j.s.current():null;if(!s)return!1;if(e.control.tags){let i=e.control.tags;if(t=s,a.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=s,a.Dom.up(t,e=>{if(e&&!a.Dom.isText(e)&&!a.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});a.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),(0,s._)(this,"checkActiveStatus",(e,t)=>{let i=0,s=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,l.isFunction)(r)?r(this.j,(0,l.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,l.css)(t,o).toString())&&(i+=1),s+=1}),s===i}),this.prependInvisibleInput(this.container)}}h=(0,o.__decorate)([n.component],h)},6490(e,t,i){"use strict";i.d(t,{required:()=>o});var s=i(4040);let o=e=>!!(0,s.trim)(e.value).length||(e.error="Please fill out this field",!1)},6609(e,t,i){"use strict";i.d(t,{htmlspecialchars:()=>o});var s=i(81937);function o(e){let t=s.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},7018(e,t,i){"use strict";i.d(t,{colorToHex:()=>s.colorToHex});var s=i(93387)},7433(e,t,i){"use strict";var s=i(27795),o=i(4040),r=i(80991),n=i(29434),a=i(5266),l=i(48842),c=i.n(l),h=i(25501),d=i.n(h);a.Config.prototype.defaultFontSizePoints="px",n.Icon.set("font",c()).set("fontsize",d()),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(e,t)=>/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){let i=e.s.current();if(!i)return;let o=s.Dom.closest(i,s.Dom.isElement,e.editor);if(!o)return;let n=t.control,a=n.data?.cssRule||"font-size";return(0,r.css)(o,a).toString()},isChildActive(e,t){let i=t.state.value,s=t.control.data?.normalize??(e=>e);return!!(i&&t.control.args&&s(t.control.args[0].toString())===s(i.toString()))},isActive(e,t){let i=t.state.value;if(!i)return!1;let s=t.control.data?.normalize??(e=>e),o=t.control.data.cacheListSet;return o||(o=new Set(Object.keys(t.control.list).map(s)),t.control.data.cacheListSet=o),o.has(s(i.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,o.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(e,t,i){let s=!1;try{s=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch{}return`<span data-style="${t}" style="${s?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},7470(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:()=>o});var s=i(23211);function o(e,t,i){let o=e;for(;o&&o!==i&&!(s.Dom.findSibling(o,t)||s.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?s.Dom.before(o,e):s.Dom.after(o,e))}},7758(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(23211),n=i(28077),a=i(65946),l=i(18855),c=i(53681);class h extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,c.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,c.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return r.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),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(...e){super(...e),(0,s._)(this,"currentIndex",0),(0,s._)(this,"list",[]),(0,s._)(this,"container",null),(0,s._)(this,"listBox",null),(0,s._)(this,"previewBox",null),(0,s._)(this,"dialog",null),(0,s._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,s._)(this,"onKeyDown",e=>{let t=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(e.key)){if(e.key===o.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===o.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===o.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}}),(0,s._)(this,"selectIndex",e=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e}),(0,s._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",t.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}n.pluginSystem.add("pasteStorage",h)},7909(e,t,i){"use strict";i.d(t,{attr:()=>function e(t,i,n){if(!t||!(0,s.isFunction)(t.getAttribute))return null;if(!(0,s.isString)(i))return Object.keys(i).forEach(o=>{let n=i[o];(0,s.isPlainObject)(n)&&"style"===o?(0,r.css)(t,n):("className"===o&&(o="class"),e(t,o,n))}),null;let a=(0,o.CamelCaseToKebabCase)(i);if(/^-/.test(a)){let i=e(t,"data"+a);if(i)return i;a=a.substr(1)}if(void 0!==n)if(null==n)t.hasAttribute(a)&&t.removeAttribute(a);else{let e=n.toString();return"IMG"===t.nodeName&&("width"===a||"height"===a)&&(e=e.replace("px","")),t.setAttribute(a,e),e}return t.getAttribute(a)}});var s=i(28686),o=i(74264),r=i(80991)},7994(e,t,i){"use strict";var s=i(28077);i(48290),s.pluginSystem.add("table",e=>{e.registerButton({name:"table",group:"insert"})})},8071(e,t,i){"use strict";var s=i(23211),o=i(65946),r=i(29434),n=i(5266),a=i(15753),l=i(45674),c=i.n(l);r.Icon.set("brush",c()),n.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,o.isJoditObject)(e))return;let s=e.getInstance("Table",e.o).getAllSelectedCells();if(!s.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{s.forEach(e=>{(0,o.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(s[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},n.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,s)=>{if(s&&s!==(0,o.css)(e.editor,i).toString()){t.state.icon.fill=s;return}};if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let n=e.s.current();if(n&&!t.state.disabled){let t=s.Dom.closest(n,s.Dom.isElement,e.editor)||e.editor;r("color",(0,o.css)(t,"color").toString()),r("background-color",(0,o.css)(t,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let n="",l="",c=[],h=null;return t&&t!==e.editor&&s.Dom.isNode(t)&&(s.Dom.isElement(t)&&e.s.isCollapsed()&&!s.Dom.isTag(t,new Set(["br","hr"]))&&(h=t),s.Dom.up(t,e=>{if(s.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return n=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{h?h.style.backgroundColor=t:e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{h?h.style.color=t:e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},n)}],"background"!==e.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(e,c,h)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),n=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&s.Dom.isNode(t)&&s.Dom.isElement(t))switch(r){case"color":t.style.color=n;break;case"background":t.style.backgroundColor=n}else e.execCommand("background"===r?r:"forecolor",!1,n)},tooltip:"Fill color or set the text color"}},8105(e,t,i){"use strict";i.d(t,{AceEditor:()=>s.AceEditor,TextAreaEditor:()=>o.TextAreaEditor});var s=i(94978),o=i(45844)},8136(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},8257(e,t,i){"use strict";var s=i(5266);s.Config.prototype.showPlaceholder=!0,s.Config.prototype.placeholder="Type something",s.Config.prototype.useInputsPlaceholder=!0},8524(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:()=>o});var s=i(23211);function o(e,t,i){return!!s.Dom.canSplitBlock(i)||(s.Dom.before(e,t.createInside.element("br")),!1)}},8837(e,t,i){"use strict";i.d(t,{onTabInsideLi:()=>r});var s=i(23211),o=i(28712);function r(e,t=!1){if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[i,n]=(e=>{let t=e.createInside.fake(),i=e.createInside.fake(),s=e.s.range.cloneRange();s.collapse(!0),s.insertNode(t);let o=e.s.range.cloneRange();return o.collapse(!1),o.insertNode(i),[t,i]})(e);try{let r=((e,t,i)=>{let o=s.Dom.closest(t,"li",e.editor);return!!o&&(!!i||!!s.Dom.isLeaf(o.previousElementSibling))&&(!i||!!s.Dom.closest(o,"li",e.editor))&&o})(e,i,t);if(!r||!((e,t,i)=>{let o=s.Dom.closest(i,"li",t.editor);return!(!o||o!==e&&!e.contains(o))})(r,e,i))return!1;let n=s.Dom.closest(r,["ol","ul"],e.editor);if(!n||t&&!s.Dom.closest(n,"li",e.editor))return!1;return t?((e,t,i)=>{let r=s.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let n=Array.from(t.children).filter(e=>s.Dom.isLeaf(e));s.Dom.after(r,i);let a=n.indexOf(i);if((0===a||1===n.length)&&s.Dom.safeRemove(t),a!==n.length-1){let e=t.cloneNode();s.Dom.append(i,e);for(let t=a+1;t<n.length;t+=1)s.Dom.append(e,n[t])}})(e,n,r):((e,t,i)=>{let r=i.previousElementSibling;(0,o.assert)(r,"tab previousElementSibling is null");let n=r.lastElementChild,a=s.Dom.isTag(n,t.tagName)?n:e.createInside.element(t.tagName,Array.from(t.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}));a.appendChild(i),n!==a&&r.appendChild(a)})(e,n,r),!0}finally{let t=e.s.createRange();t.setStartAfter(i),t.setEndBefore(n),e.s.selectRange(t),s.Dom.safeRemove(i),s.Dom.safeRemove(n)}}},8838(e,t,i){"use strict";i.d(t,{Command:()=>o});var s=i(25045);class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,i,o){(0,s._)(this,"oldValue",void 0),(0,s._)(this,"newValue",void 0),(0,s._)(this,"history",void 0),(0,s._)(this,"tick",void 0),this.oldValue=e,this.newValue=t,this.history=i,this.tick=o}}},8908(e,t,i){"use strict";i.d(t,{form:()=>a});var s=i(4099);let o="jodit-image-editor",r=s.Icon.get.bind(s.Icon),n=(e,t="jodti-image-editor_active")=>e?t:"",a=(e,t)=>{let i=e.i18n.bind(e),s=(e,t,s=!0)=>`<div class="jodit-form__group">
20
+ <label class="jodit-switcher-wrapper">
21
+ <span class='jodit-switcher'>
22
+ <input ${n(s,"checked")} data-ref="${t}" type="checkbox"/>
23
+ <span class="jodit-switcher__slider"></span>
24
+ </span>
25
+ <span>${i(e)}</span>
26
+ </label>
27
+ </div>`;return e.create.fromHTML(`<form class="${o} jodit-properties">
28
+ <div class="jodit-grid jodit-grid_xs-column">
29
+ <div class="jodit_col-lg-3-4 jodit_col-sm-5-5">
30
+ ${t.resize?`<div class="${o}__area ${o}__area_resize ${o}_active">
31
+ <div data-ref="resizeBox" class="${o}__box"></div>
32
+ <div class="${o}__resizer">
33
+ <i class="jodit_bottomright"></i>
34
+ </div>
35
+ </div>`:""}
36
+ ${t.crop?`<div class="${o}__area ${o}__area_crop ${n(!t.resize)}">
37
+ <div data-ref="cropBox" class="${o}__box">
38
+ <div class="${o}__croper">
39
+ <i class="jodit_bottomright"></i>
40
+ <i class="${o}__sizes"></i>
41
+ </div>
42
+ </div>
43
+ </div>`:""}
44
+ </div>
45
+ <div class="jodit_col-lg-1-4 jodit_col-sm-5-5">
46
+ ${t.resize?`<div data-area="resize" class="${o}__slider ${o}_active">
47
+ <div class="${o}__slider-title">
48
+ ${r("resize")}
49
+ ${i("Resize")}
50
+ </div>
51
+ <div class="${o}__slider-content">
52
+ <div class="jodit-form__group">
53
+ <label>
54
+ ${i("Width")}
55
+ </label>
56
+ <input type="number" data-ref="widthInput" class="jodit-input"/>
57
+ </div>
58
+ <div class="jodit-form__group">
59
+ <label>
60
+ ${i("Height")}
61
+ </label>
62
+ <input type="number" data-ref="heightInput" class="jodit-input"/>
63
+ </div>
64
+ ${s("Keep Aspect Ratio","keepAspectRatioResize")}
65
+ </div>
66
+ </div>`:""}
67
+ ${t.crop?`<div data-area="crop" class="${o}__slider ${n(!t.resize)}'">
68
+ <div class="${o}__slider-title">
69
+ ${r("crop")}
70
+ ${i("Crop")}
71
+ </div>
72
+ <div class="${o}__slider-content">
73
+ ${s("Keep Aspect Ratio","keepAspectRatioCrop")}
74
+ </div>
75
+ </div>`:""}
76
+ </div>
77
+ </div>
78
+ </form>`)}},9103(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},9505(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:()=>o});var s=i(25045);class o{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){(0,s._)(this,"data",new Map)}}},9703(e,t,i){"use strict";i.d(t,{hasSameStyle:()=>c,hasSameStyleKeys:()=>h});var s=i(81937),o=i(23211),r=i(18303),n=i(19147),a=i(28712),l=i(80991);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let s=(0,l.css)(e,i,!0);return""===s&&(""===t[i]||null==t[i])||!(0,r.isVoid)(s)&&""!==s&&!(0,r.isVoid)(t[i])&&(0,n.normalizeCssValue)(i,t[i]).toString().toLowerCase()===s.toString().toLowerCase()}))}if(s.globalDocument){let e=s.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function h(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(s.globalDocument){let e=s.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(h(e,{color:"red"}),"Style test"),(0,a.assert)(!h(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!h(e,{border:"1px solid #ccc"}),"Style test")}},10081(e,t,i){"use strict";i.d(t,{UIMessages:()=>c});var s=i(25045),o=i(31635),r=i(91672),n=i(80991),a=i(63468),l=i(61466);class c extends a.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let s=e+":"+t;if(this.__messages.has(s))return void this.async.updateTimeout(s,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+s);this.__box.appendChild(this.container);let o=new l.UIMessage(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(s);let r=this.__getRemoveCallback(o,s);this.j.e.on(o.container,"pointerdown",r),this.async.setTimeout(r,{label:s,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=s=>{s&&s.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,n.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),(0,s._)(this,"__box",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"__messages",void 0),this.__box=t,this.options=i,this.__messages=new Set}}c=(0,o.__decorate)([r.component],c)},10157(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:()=>r});var s=i(23211),o=i(93640);function r(e,t,i){let r=s.Dom.closest(t,s.Dom.isElement,e.editor),{s:n}=e;if(s.Dom.isLeaf(r)&&r?.parentElement?.[i?"firstElementChild":"lastElementChild"]===r&&n.cursorInTheEdge(i,r)){let a=r.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?s.Dom.before:s.Dom.after,a,l),s.Dom.moveContent(r,l),s.Dom.safeRemove(r),s.Dom.isEmpty(a)&&s.Dom.safeRemove(a),(0,o.call)(i?n.setCursorBefore:n.setCursorAfter,t),!0}return!1}},10171(e,t,i){"use strict";i.d(t,{getSuitChild:()=>n});var s=i(23211),o=i(83653),r=i(73019);function n(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!s.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},10685(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(86634),n=i.n(r);o.Config.prototype.addNewLine=!0,o.Config.prototype.addNewLineOnDBLClick=!0,o.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],o.Config.prototype.addNewLineDeltaShow=20,s.Icon.set("enter",n())},10808(e,t,i){"use strict";i.d(t,{normalSizeFromString:()=>r,normalSizeToString:()=>n});var s=i(72412),o=i(4040);let r=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,n=e=>(0,s.isNumber)(e)?e?e+"px":e.toString():(e=(0,o.trim)(e),/^[0-9]+$/.test(e)?e+"px":e)},10918(e,t,i){"use strict";i.d(t,{checkBR:()=>s.checkBR,checkUnsplittableBox:()=>o.checkUnsplittableBox,getBlockWrapper:()=>r.getBlockWrapper,hasPreviousBlock:()=>n.hasPreviousBlock,insertParagraph:()=>a.insertParagraph,moveCursorOutFromSpecialTags:()=>l.moveCursorOutFromSpecialTags,processEmptyLILeaf:()=>c.processEmptyLILeaf,splitFragment:()=>h.splitFragment,wrapText:()=>d.wrapText});var s=i(34287),o=i(8524),r=i(83376),n=i(66862),a=i(65710),l=i(47919),c=i(34672),h=i(46303),d=i(52938)},11018(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(1080),l=i(28077),c=i(48155),h=i(18855);i(11173);var d=i(54053);class u extends h.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,d.getHash)(this.j.o.cleanHTML.allowTags),i=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",s=>(0,d.visitNodeWalker)(e,s,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return t.innerHTML=e.value,this.onSafeHTML(t),e.value=t.innerHTML,(0,c.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),n.Dom.safeRemove(i),!1}onSafeHTML(e){(0,c.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"eraser",group:"font-style"}]),(0,s._)(this,"currentSelectionNode",null),(0,s._)(this,"walker",new a.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}))}}(0,o.__decorate)([(0,r.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),(0,o.__decorate)([(0,r.hook)("ready")],u.prototype,"startWalker",null),(0,o.__decorate)([(0,r.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),(0,o.__decorate)([(0,r.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),(0,o.__decorate)([(0,r.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),l.pluginSystem.add("cleanHtml",u)},11080(e,t,i){"use strict";i.d(t,{OptionsError:()=>s});class s extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}},11173(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(71948),n=i.n(r);o.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},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},s.Icon.set("eraser",n())},11774(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(23211),n=i(28077),a=i(93640),l=i(18855);i(18993);var c=i(91017);class h extends l.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
79
+ <div class="jodit-symbols__container_table">
80
+ <table class="jodit-symbols__table"><tbody></tbody></table>
81
+ </div>
82
+ <div class="jodit-symbols__container_preview">
83
+ <div class="jodit-symbols__preview"></div>
84
+ </div>
85
+ </div>`),i=t.querySelector(".jodit-symbols__preview"),s=t.querySelector("table").tBodies[0],n=[];for(let t=0;t<e.o.specialCharacters.length;){let i=e.c.element("tr");for(let s=0;s<this.__countInRow&&t<e.o.specialCharacters.length;s+=1,t+=1){let o=e.c.element("td"),r=e.c.fromHTML(`<a
86
+ data-index="${t}"
87
+ data-index-j="${s}"
88
+ role="option"
89
+ tabindex="-1"
90
+ >${e.o.specialCharacters[t]}</a>`);n.push(r),o.appendChild(r),i.appendChild(o)}s.appendChild(i)}let l=this;return e.e.on(n,"focus",function(){i.innerHTML=this.innerHTML}).on(n,"mousedown",function(t){r.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),t?.shiftKey||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(n,"mouseenter",function(){r.Dom.isTag(this,"a")&&this.focus()}).on(n,"keydown",t=>{let i=t.target;if(r.Dom.isTag(i,"a")){let s,r=parseInt((0,a.attr)(i,"-index")||"0",10),c=parseInt((0,a.attr)(i,"data-index-j")||"0",10);switch(t.key){case o.KEY_UP:case o.KEY_DOWN:void 0===n[s=t.key===o.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(s=t.key===o.KEY_UP?Math.floor(n.length/l.__countInRow)*l.__countInRow+c:c)>n.length-1&&(s-=l.__countInRow),n[s]&&n[s].focus();break;case o.KEY_RIGHT:case o.KEY_LEFT:void 0===n[s=t.key===o.KEY_LEFT?r-1:r+1]&&(s=t.key===o.KEY_LEFT?n.length-1:0),n[s]&&n[s].focus();break;case o.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),(0,s._)(this,"buttons",[{name:"symbols",group:"insert"}]),(0,s._)(this,"__countInRow",17),(0,n.extendLang)(c)}}n.pluginSystem.add("symbols",h)},11917(e,t,i){"use strict";i.d(t,{getKey:()=>o});var s=i(23211);let o=(e,t)=>`${s.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},11981(e,t,i){"use strict";i.d(t,{ajaxInstances:()=>o.ajaxInstances,hasFiles:()=>n,hasItems:()=>a,processOldBrowserDrag:()=>s.processOldBrowserDrag,send:()=>o.send,sendFiles:()=>r.sendFiles}),i(89446);var s=i(95436),o=i(77911),r=i(46533);function n(e){return!!(e&&e.files&&e.files.length>0)}function a(e){return!!(e&&e.items&&e.items.length>0)}},12266(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(21917),a=i.n(n);r.Config.prototype.useSearch=!0,r.Config.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:s.globalWindow&&void 0!==s.globalWindow.Highlight},o.Icon.set("search",a()),r.Config.prototype.controls.find={tooltip:"Find",icon:"search",exec(e,t,{control:i}){switch(i.args&&i.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(e,t,i)=>i}},12443(e,t,i){"use strict";i.d(t,{checkTableCell:()=>o});var s=i(23211);function o(e,t){let i=t.parentElement;return!!s.Dom.isCell(i)}},13030(e,t,i){"use strict";i.d(t,{UiAiAssistant:()=>d});var s=i(25045),o=i(31635),r=i(91672),n=i(68616),a=i(23211),l=i(85932),c=i(4099),h=i(96007);class d extends h.UIElement{className(){return"UIAiAssistant"}render(){return`<div>
91
+ <div class="&__container">
92
+ <div class="&__error"></div>
93
+ <div class="&__body"></div>
94
+ <div class="&__buttons &_hide_true"></div>
95
+ <div class="&__results &_hide_true">
96
+ <div class="&__spinner"></div>
97
+ </div>
98
+ </div>
99
+ </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:s,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[s,(0,l.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),a.Dom.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,a.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),(0,s._)(this,"__body",void 0),(0,s._)(this,"__buttons",void 0),(0,s._)(this,"__results",void 0),(0,s._)(this,"__spinner",void 0),(0,s._)(this,"__error",void 0),(0,s._)(this,"promptInput",void 0),(0,s._)(this,"__insertAfterButton",void 0),(0,s._)(this,"__submitButton",void 0),(0,s._)(this,"__tryAgainButton",void 0),(0,s._)(this,"__insertButton",void 0),(0,s._)(this,"__formAiAssistant",void 0),(0,s._)(this,"__aiResult",""),this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,c.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,c.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,c.Button)(e,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,c.Button)(e,"update","","initial").onAction(o),this.promptInput=new c.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let r=new c.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new c.UIForm(e,[new c.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),a.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}}(0,o.__decorate)([(0,n.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),(0,o.__decorate)([(0,n.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),(0,o.__decorate)([(0,n.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=(0,o.__decorate)([r.component],d)},13564(e,t,i){"use strict";i.r(t),i.d(t,{angle_down:()=>o.a,angle_left:()=>n.a,angle_right:()=>l.a,angle_up:()=>h.a,bin:()=>u.a,cancel:()=>m.a,center:()=>f.a,check:()=>v.a,chevron:()=>y.a,dots:()=>S.a,eye:()=>E.a,file:()=>T.a,folder:()=>D.a,info_circle:()=>j.a,left:()=>A.a,lock:()=>N.a,ok:()=>z.a,pencil:()=>B.a,plus:()=>q.a,resize_handler:()=>H.a,right:()=>W.a,save:()=>$.a,settings:()=>G.a,unlock:()=>X.a,update:()=>Z.a,upload:()=>ee.a,valign:()=>ei.a});var s=i(88497),o=i.n(s),r=i(91882),n=i.n(r),a=i(14305),l=i.n(a),c=i(58446),h=i.n(c),d=i(39858),u=i.n(d),p=i(70881),m=i.n(p),g=i(60636),f=i.n(g),_=i(32013),v=i.n(_),b=i(45512),y=i.n(b),w=i(80347),S=i.n(w),C=i(95134),E=i.n(C),I=i(70697),T=i.n(I),x=i(49983),D=i.n(x),k=i(98964),j=i.n(k),L=i(8136),A=i.n(L),P=i(94806),N=i.n(P),M=i(31365),z=i.n(M),R=i(44636),B=i.n(R),O=i(36327),q=i.n(O),F=i(53328),H=i.n(F),U=i(98711),W=i.n(U),V=i(53808),$=i.n(V),Y=i(20784),G=i.n(Y),K=i(70999),X=i.n(K),J=i(45244),Z=i.n(J),Q=i(99876),ee=i.n(Q),et=i(14006),ei=i.n(et)},13810(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(91206);i(18929);var d=i(82495);class u extends h.Plugin{onInsertHTML(e){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=r.INVISIBLE_SPACE;return t});e>0&&t[e]===r.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){if("selectall"===e.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(e){this.sourceEditor?.setValue(e)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),s=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,s)+this.clnInv(t.outerHTML)+e.slice(s,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,c.isString)(t)&&(e=t)}if(i=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){let t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){this.sourceEditor?.setSelectionRange(e,t)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,d.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{e.key===r.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{this.sourceEditor?.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{if(e.isInDestruct)return!1;let t=e.ow.html_beautify;return!!t&&!e.isInDestruct&&(e.events?.off("beautifyHTML").on("beautifyHTML",e=>t(e)),!0)};t()||(0,c.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===r.MODE_SPLIT||t.getMode()===r.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){if("area"!==e.o.sourceEditor){let t=(0,d.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{this.sourceEditor?.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),e.events?.fire("sourceEditorReady",e)})}else this.sourceEditor?.onReadyAlways(()=>{this.syncValueFromWYSIWYG(!0),e.events?.fire("sourceEditorReady",e)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"source",group:"source"}]),(0,s._)(this,"sourceEditor",void 0),(0,s._)(this,"mirrorContainer",void 0),(0,s._)(this,"__lock",!1),(0,s._)(this,"__oldMirrorValue",""),(0,s._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,s._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,s._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,s._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,s._)(this,"getSelectionStart",()=>this.sourceEditor?.getSelectionStart()??0),(0,s._)(this,"getSelectionEnd",()=>this.sourceEditor?.getSelectionEnd()??0)}}(0,o.__decorate)([(0,n.watch)(":insertHTML.source")],u.prototype,"onInsertHTML",null),(0,o.__decorate)([n.autobind],u.prototype,"fromWYSIWYG",null),(0,o.__decorate)([n.autobind],u.prototype,"toWYSIWYG",null),(0,o.__decorate)([n.autobind],u.prototype,"getNormalPosition",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.source")],u.prototype,"onSelectAll",null),(0,o.__decorate)([(0,n.watch)(":beforeSetMode.source")],u.prototype,"saveSelection",null),(0,o.__decorate)([(0,n.watch)(":afterSetMode.source")],u.prototype,"removeSelection",null),(0,o.__decorate)([n.autobind],u.prototype,"setMirrorSelectionRange",null),(0,o.__decorate)([(0,n.watch)(":readonly.source")],u.prototype,"onReadonlyReact",null),(0,o.__decorate)([n.autobind],u.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",u)},14006(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},14017(e){e.exports='<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>'},14228(e,t,i){"use strict";function s(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:()=>s,isAbort:()=>o});let o=i(72068).isAbortError},14248(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(60936);i(51822);let d="table_processor_observer-resize";class u extends h.Plugin{get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{a.Dom.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(d),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{let e=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(i,s,o)=>{e[1]===o&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+r.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===o&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-r.NEARBY/2,this.maxX))})}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX,i=(0,c.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:i.left)+"px";let s=this.j.s.sel;s&&s.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){let e=this.resizeDelta,t=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);let s=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,this.workCell,a.Dom.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,s)[1],-e,!1,t)}resizeTable(){let e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,c.getContentWidth)(this.workTable.parentNode,this.j.ew),s=!this.wholeTable;if(this.isRTL?!s:s)this.workTable.style.width=(t+e)/i*100+"%";else{let s=this.isRTL?"marginRight":"marginLeft",o=parseInt(this.j.ew.getComputedStyle(this.workTable)[s]||"0",10);this.workTable.style.width=(t-e)/i*100+"%",this.workTable.style[s]=(o+e)/i*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=a.Dom.up(e,e=>a.Dom.isTag(e,"table"),this.j.editor)}calcHandlePosition(e,t,i=0,s=0){let o=(0,c.offset)(t,this.j,this.j.ed);if(i>r.NEARBY&&i<o.width-r.NEARBY)return void this.hideResizeHandle();let n=(0,c.offset)(this.j.workplace,this.j,this.j.od,!0),l=(0,c.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i<=r.NEARBY?o.left:o.left+o.width)-n.left+s+"px",Object.assign(this.resizeHandler.style,{height:l.height+"px",top:l.top-n.top+"px"}),this.showResizeHandle(),i<=r.NEARBY){let e=(0,c.call)(this.isRTL?a.Dom.next:a.Dom.prev,t,a.Dom.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}else{let e=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,t,a.Dom.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}}afterInit(e){e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{(0,c.$$)("table",e.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;let t=a.Dom.up(this.workCell,e=>a.Dom.isTag(e,"table"),e.editor);if(t){let e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}}).on("beforeSetMode.resize-cells",()=>{let t=this.module;t.getAllSelectedCells().forEach(i=>{t.removeSelection(i),t.normalizeTable(a.Dom.closest(i,"table",e.editor))})})}observe(e){(0,c.dataBind)(e,d)||((0,c.dataBind)(e,d,!0),this.j.e.on(e,"mouseleave.resize-cells",e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(t=>{if(this.j.isLocked)return;let i=a.Dom.up(t.target,a.Dom.isCell,e);i&&this.calcHandlePosition(e,i,t.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}constructor(...e){super(...e),(0,s._)(this,"selectMode",!1),(0,s._)(this,"resizeDelta",0),(0,s._)(this,"resizeHandler",void 0),(0,s._)(this,"createResizeHandle",()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))}),(0,s._)(this,"hideTimeout",0),(0,s._)(this,"drag",!1),(0,s._)(this,"wholeTable",void 0),(0,s._)(this,"workCell",void 0),(0,s._)(this,"workTable",void 0),(0,s._)(this,"minX",0),(0,s._)(this,"maxX",0),(0,s._)(this,"startX",0)}}(0,o.__decorate)([n.autobind],u.prototype,"onHandleMouseDown",null),(0,o.__decorate)([n.autobind],u.prototype,"onMouseMove",null),(0,o.__decorate)([n.autobind],u.prototype,"onMouseUp",null),(0,o.__decorate)([n.autobind],u.prototype,"observe",null),l.pluginSystem.add("resizeCells",u)},14282(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:()=>s.checkBlockNesting});var s=i(34693)},14305(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},14774(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(51676),n=i(68616),a=i(28077),l=i(72068),c=i(18855);i(77227);var h=i(13030),d=i(44599);class u extends c.Plugin{get __dialog(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}get __container(){let{jodit:e,__dialog:t}=this;return new h.UiAiAssistant(e,{onInsertAfter(i){e.s.focus(),e.s.setCursorAfter(e.s.current()),e.s.insertHTML(i),t.close()},onInsert(i){e.s.focus(),e.s.insertHTML(i),t.close()}})}afterInit(){}onGenerateAiAssistantForm(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}onInvokeAiAssistant(e){let{jodit:t}=this;t.s.focus();let i=t.s.html;t.async.promise(async(s,o)=>{try{let o=await t.o.aiAssistant.aiAssistantCallback(e,i);s(o)}catch(e){o(e)}}).then(e=>{t.e.fire("ai-assistant-response",e)}).catch(e=>{(0,l.isAbortError)(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}beforeDestruct(e){(0,r.cached)(this,"__container")?.destruct(),(0,r.cached)(this,"__dialog")?.destruct()}constructor(e){super(e),(0,s._)(this,"buttons",[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}]),(0,a.extendLang)(d)}}(0,o.__decorate)([r.cache],u.prototype,"__dialog",null),(0,o.__decorate)([r.cache],u.prototype,"__container",null),(0,o.__decorate)([(0,n.watch)(":generateAiAssistantForm.ai-assistant")],u.prototype,"onGenerateAiAssistantForm",null),(0,o.__decorate)([(0,n.watch)(":invokeAiAssistant")],u.prototype,"onInvokeAiAssistant",null),a.pluginSystem.add("ai-assistant",u)},14841(e,t,i){"use strict";i.d(t,{removeExtraBr:()=>r});var s=i(23211);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||s.Dom.isTag(t,"br"))return;let i=s.Dom.furthest(t,s.Dom.isBlock,e.editor);if(i&&!s.Dom.isTag(i,o)){let i=s.Dom.isTag(t,"br")?t:s.Dom.findNotEmptySibling(t,!1);if(!s.Dom.isTag(i,"br"))return;e.s.setCursorBefore(i),s.Dom.safeRemove(i)}}},14907(e,t,i){"use strict";i(5266).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},15200(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:()=>o,getMoveFilter:()=>r});var s=i(27795);function o(e,t,i,r=!1){let n=e=>t?e.firstChild:e.lastChild,a=s.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&s.Dom.isElement(a)&&!s.Dom.isInlineBlock(a))return null;if(a)do{if(!n(a))return a;a=n(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},15367(e,t,i){"use strict";i.d(t,{UIButtonGroup:()=>c});var s=i(25045),o=i(31635),r=i(91672),n=i(28712),a=i(53681),l=i(63468);class c extends l.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
100
+ <div class="&__label">~${e.label}~</div>
101
+ <div class="&__options"></div>
102
+ </div>`}appendChildToContainer(e){let t=this.getElm("options");(0,n.assert)(null!=t,"Options does not exist"),t.appendChild(e)}select(e){this.elements.forEach((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let t=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",t),this.options.onChange?.(t)}constructor(e,t={radio:!0}){super(e,t.options?.map(t=>{let i=new a.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction(()=>{this.select(t.value)}),i}),t),(0,s._)(this,"options",void 0),this.options=t,this.select(t.value??0)}}c=(0,o.__decorate)([r.component],c)},15753(e,t,i){"use strict";i.d(t,{ColorPickerWidget:()=>s.ColorPickerWidget,FileSelectorWidget:()=>o.FileSelectorWidget,TabsWidget:()=>r.TabsWidget});var s=i(72348),o=i(18762),r=i(89636)},15982(e,t,i){"use strict";i.d(t,{findControlType:()=>n,getControlType:()=>r});var s=i(65946),o=i(5266);function r(e,t){let i;return t||(t=o.Config.defaultOptions.controls),(0,s.isString)(e)?i=n(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(i={name:"empty",...(0,s.ConfigFlatten)(e)}).name]&&(i={...(0,s.ConfigFlatten)(t[i.name]),...(0,s.ConfigFlatten)(i)}),i}function n(e,t){let[i,o]=e.split(/\./),r=t;return null!=o?void 0!==t[i]&&(r=t[i]):o=i,r[o]?{name:o,...(0,s.ConfigFlatten)(r[o])}:void 0}},16849(e,t,i){"use strict";i.d(t,{alignElement:()=>a,clearAlign:()=>n,hAlignElement:()=>r});var s=i(27795),o=i(80991);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function n(e){s.Dom.each(e,e=>{s.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(s.Dom.isNode(t)&&s.Dom.isElement(t))switch(n(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},16964(e,t,i){"use strict";i.d(t,{Component:()=>s.Component,STATUSES:()=>o.STATUSES,ViewComponent:()=>r.ViewComponent});var s=i(80251),o=i(69364),r=i(59609)},17306(e,t,i){"use strict";i.d(t,{UIImagePositionTab:()=>m});var s=i(25045),o=i(31635),r=i(91672),n=i(29200),a=i(68616),l=i(65946),c=i(85932),h=i(7909),d=i(96007),u=i(29434),p=i(10808);class m extends d.UIElement{className(){return"UIImagePositionTab"}render({availableClasses:e}){return`<div class="jodit-form__group &__editMargins">
103
+ <label>~Margins~</label>
104
+ <div class="jodit-grid jodit_vertical_middle">
105
+ <input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>
106
+ <a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>
107
+ <input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>
108
+ <input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>
109
+ <input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>
110
+ </div>
111
+ </div>
112
+ <div class="jodit-form__group &__editAlign">
113
+ <label>~Align~</label>
114
+ <select class="jodit-select &__align">
115
+ <option value="">~--Not Set--~</option>
116
+ <option value="left">~Left~</option>
117
+ <option value="center">~Center~</option>
118
+ <option value="right">~Right~</option>
119
+ </select>
120
+ </div>
121
+ <div class="jodit-form__group &__editStyle">
122
+ <label>~Styles~</label>
123
+ <input type="text" class="jodit-input &__style"/>
124
+ </div>
125
+ <div class="jodit-form__group &__editClass">
126
+ <label>~Classes~</label>
127
+ ${(()=>{let t=[];return e&&e.length>0?(t.push('<select class="jodit-input jodit-select &__classes">'),e.forEach(e=>{(0,c.isString)(e)?t.push(`<option value="${e}">${e}</option>`):t.push(`<option value="${e[0]}">${e[1]}</option>`)}),t.push("</select>")):t.push('<input type="text" class="jodit-input &__classes"/>'),t.join("")})()}
128
+ </div>
129
+ <div class="jodit-form__group &__editId">
130
+ <label>Id</label>
131
+ <input type="text" class="jodit-input &__id"/>
132
+ </div>
133
+ <div
134
+ class="jodit-form__group &__editBorderRadius"
135
+ >
136
+ <label>~Border radius~</label>
137
+ <input type="number" class="jodit-input &__borderRadius"/>
138
+ </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){let e=this.getElm("marginBottom"),t=this.getElm("marginRight"),i=this.getElm("marginLeft"),s=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,h.attr)(e,"disabled",this.state.marginIsLocked||null)}),s.innerHTML=u.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),s=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),s.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),s=this.getElm("marginLeft");this.state.values.marginTop=(0,p.normalSizeFromString)(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,p.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,p.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,p.normalSizeFromString)(s.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let s=this.getElm(i);(0,l.css)(s,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),(0,s._)(this,"state",void 0),(0,s._)(this,"handlers",void 0),this.state=t,this.handlers=i}}(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.values.align")],m.prototype,"onStateAlignChange",null),(0,o.__decorate)([(0,a.watch)("align:change")],m.prototype,"onChangeAlign",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.values.borderRadius")],m.prototype,"onStateValuesBorderRadiusChange",null),(0,o.__decorate)([(0,a.watch)("borderRadius:change")],m.prototype,"onChangeBorderRadius",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.values.id")],m.prototype,"onStateValuesIdChange",null),(0,o.__decorate)([(0,a.watch)("id:change")],m.prototype,"onChangeId",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.values.style")],m.prototype,"onStateValuesStyleChange",null),(0,o.__decorate)([(0,a.watch)("style:change")],m.prototype,"onChangeStyle",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.values.classes")],m.prototype,"onStateValuesClassesChange",null),(0,o.__decorate)([(0,a.watch)("classes:change")],m.prototype,"onChangClasses",null),(0,o.__decorate)([(0,a.watch)("lockMargin:click")],m.prototype,"onLockMarginClick",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)("state.marginIsLocked")],m.prototype,"onChangeMarginIsLocked",null),(0,o.__decorate)([(0,n.hook)("ready"),(0,a.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],m.prototype,"onStateValuesMarginChange",null),(0,o.__decorate)([(0,a.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],m.prototype,"onChangeMargin",null),(0,o.__decorate)([(0,n.hook)("ready")],m.prototype,"hideFieldByOptions",null),m=(0,o.__decorate)([r.component],m)},17312(e,t,i){"use strict";function s(e){return Array.isArray(e)}i.d(t,{isArray:()=>s})},17326(e,t,i){"use strict";var s=i(5266);s.Config.prototype.iframeBaseUrl="",s.Config.prototype.iframeTitle="Jodit Editor",s.Config.prototype.iframeDoctype="<!DOCTYPE html>",s.Config.prototype.iframeDefaultSrc="about:blank",s.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',s.Config.prototype.iframeCSSLinks=[],s.Config.prototype.iframeSandbox=null},17338(e,t,i){"use strict";i.d(t,{Ajax:()=>u});var s=i(25045),o=i(31635),r=i(91231),n=i(81937),a=i(52201),l=i(65946),c=i(33201),h=i(5266);i(37102);var d=i(32855);class u{className(){return"Ajax"}__buildParams(e,t){return(0,l.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,l.isString)(e)||e instanceof n.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,l.isFunction)(e.append)?e:(0,l.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(s,o)=>{let r=()=>{this.__isFulfilled=!0,o(c.connection("Connection error"))},n=()=>{this.__isFulfilled=!0,s(new d.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=n,e.onabort=()=>{this.__isFulfilled=!0,o(c.abort("Abort connection"))},e.onerror=r,e.ontimeout=r,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{let t=0;e.lengthComputable&&(t=e.loaded/e.total*100),this.options.onProgress?.(t)},e.onreadystatechange=()=>{this.options.onProgress?.(10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?n():e.statusText&&(this.__isFulfilled=!0,o(c.connection(e.statusText))))},e.withCredentials=t.withCredentials??!1;let{url:a,data:h,method:u}=i;e.open(u,a,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,l.isFunction)(p)&&(p=await p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}prepareRequest(){if(!this.o.url)throw c.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,l.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let s=(0,l.parseQuery)(e);e=e.substring(0,i)+"?"+(0,l.buildQuery)({...s,...t})}else e+="?"+(0,l.buildQuery)(this.o.data)}let s={url:e,method:i,data:t};return u.log.splice(100),u.log.push(s),s}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=h.Config.prototype.defaultAjaxOptions){(0,s._)(this,"__async",new r.Async),(0,s._)(this,"xhr",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"__isFulfilled",!1),(0,s._)(this,"__activated",!1),(0,s._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,s._)(u,"log",[]),(0,o.__decorate)([a.default],u.prototype,"destruct",null)},17481(e,t,i){"use strict";i.d(t,{extractSelectedPart:()=>a});var s=i(23211),o=i(23175),r=i(4040),n=i(71125);function a(e,t,i){let s=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;s.setStartBefore(e),s.setEndBefore(r),l(e,s,!0);let n=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;s.setStartAfter(n),s.setEndAfter(e),l(e,s,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||s.Dom.unwrap(o.firstChild),e.parentNode&&(0,n.call)(i?s.Dom.before:s.Dom.after,e,o)}},17523(e,t,i){"use strict";i.d(t,{cases:()=>u});var s=i(26106),o=i(80951),r=i(58881),n=i(68709),a=i(5771),l=i(2409),c=i(93890),h=i(12443),d=i(10157);let u=[c.checkRemoveUnbreakableElement,n.checkRemoveContentNotEditable,r.checkRemoveChar,h.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,o.checkJoinTwoLists,s.checkJoinNeighbors,d.checkUnwrapFirstListItem]},17610(e,t,i){"use strict";i.d(t,{FileBrowser:()=>s.FileBrowser});var s=i(62623)},17780(e,t,i){"use strict";i.d(t,{DEFAULT_SOURCE_NAME:()=>h,default:()=>u});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(65946),l=i(73714),c=i(58664);let h="default",d=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);i?.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let s=new l.Ajax(i);t.set(e,s);let o=s.send();return o.finally(()=>{s.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),o.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,a.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(e){let t="allow"+e;if(!r.IS_PROD&&!d.has(t))throw(0,a.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,s){let o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),s(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}generateItemsList(e,t={}){let i=[],s=e=>!t.filterWord?.length||void 0===this.o.filter||this.o.filter(e,t.filterWord);return e.forEach(e=>{if(e.files&&e.files.length){let{sort:o}=this.o;(0,a.isFunction)(o)&&t.sortBy&&e.files.sort((e,i)=>o(e,i,t.sortBy)),e.files.forEach(o=>{s(o)&&("folder"===o.type||!t.onlyImages||void 0===o.isImage||o.isImage)&&i.push(c.FileBrowserItem.create({...o,sourceName:e.name,source:e}))})}}),i}async tree(e,t){return(e=(0,a.normalizeRelativePath)(e),this.o.folder)?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(e){return(0,a.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,a.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:s}=this.o;if(!s)throw(0,a.error)("Set Create api options");return s.data.source=i,s.data.path=t,s.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,a.error)(this.getMessage(e))})}move(e,t,i,s){let o=s?"fileMove":"folderMove",r=this.options[o];if(!r)throw(0,a.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(o).then(e=>{if(this.isSuccess(e))return!0;throw(0,a.error)(this.getMessage(e))})}remove(e,t,i,s){let o=this.o[e];if(!o)throw(0,a.error)(`Set "${e}" api options`);return o.data.path=t,o.data.name=i,o.data.source=s,this.get(e).then(e=>(o.process&&(e=o.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.remove("folderRemove",e,t,i)}rename(e,t,i,s,o){let r=this.o[e];if(!r)throw(0,a.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=s,r.data.source=o,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,s){return this.rename("folderRename",e,t,i,s)}fileRename(e,t,i,s){return this.rename("fileRename",e,t,i,s)}changeImage(e,t,i,s,o,r){this.o[e]||(this.o[e]={data:{}});let n=this.o[e];return void 0===n.data&&(n.data={action:e}),n.data.newname=o||s,r&&(n.data.box=r),n.data.path=t,n.data.name=s,n.data.source=i,this.get(e).then(()=>!0)}crop(e,t,i,s,o){return this.changeImage("crop",e,t,i,s,o)}resize(e,t,i,s,o){return this.changeImage("resize",e,t,i,s,o)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){(0,s._)(this,"parent",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"__currentPermissions",void 0),(0,s._)(this,"__ajaxInstances",void 0),(0,s._)(this,"progressHandler",void 0),this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}u=(0,o.__decorate)([n.autobind],u)},17849(e,t,i){"use strict";var s=i(28686),o=i(80991);let r=e=>e.args&&(0,s.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec(e,t,{control:i}){let s=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===s?"":s)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},`
139
+ `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(e,t,{control:i}){if(!(0,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},17918(e){e.exports={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"}},17995(e){e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18073(e,t,i){"use strict";i.d(t,{size:()=>o});var s=i(28686);function o(e){return(0,s.isString)(e)||(0,s.isArray)(e)?e.length:(0,s.isPlainObject)(e)?Object.keys(e).length:0}},18080(e,t,i){"use strict";i.d(t,{i18n:()=>c,sprintf:()=>l});var s=i(81937),o=i(85932),r=i(99436),n=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,s=i.exec(e),o=e,r=0;for(;s&&void 0!==t[r];)o=o.replace(s[0],t[r].toString()),r+=1,s=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,n.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!i?.debugLanguage,h={},d=e=>t&&t.length?l(e,t):e,u=(0,n.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,n.defaultLanguage)(i?.language,u),m=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let s=(0,r.ucfirst)(e);if((0,o.isString)(t[s]))return d(t[s])};void 0!==s.lang[p]?h=s.lang[p]:c||(h=void 0!==s.lang[u]?s.lang[u]:s.lang.en);let g=i?.i18n;if(g&&g[p]){let e=m(g[p]);if(e)return e}return m(h)||(!c&&s.lang.en&&(0,o.isString)(s.lang.en[e])&&s.lang.en[e]?d(s.lang.en[e]):c?"{"+e+"}":(!s.IS_PROD,d(e)))}},18210(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){if(e.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:t,endOffset:i}=this.j.selection.range;if(n.Dom.isText(t)&&t.nodeValue?.length===i){let{parentNode:e}=t;n.Dom.isInlineBlock(e)&&!n.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&n.Dom.after(e,this.j.createInside.text(o.NBSP_SPACE))}}}(0,s.__decorate)([(0,r.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272(e,t,i){"use strict";i.d(t,{makeContextMenu:()=>n,makeDataProvider:()=>r});var s=i(67399),o=i(17780);function r(e,t){return new o.default(e,t)}function n(e){return new s.ContextMenu(e)}},18303(e,t,i){"use strict";function s(e){return null==e}i.d(t,{isVoid:()=>s})},18377(e,t,i){"use strict";i.d(t,{normalizePath:()=>o});var s=i(4040);let o=(...e)=>e.filter(e=>(0,s.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},18380(e,t,i){"use strict";i.d(t,{readMargins:()=>o});var s=i(74264);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let n=e.style.getPropertyValue((0,s.kebabCase)(i));if(!n){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(n)&&(n=parseInt(n,10)),t[i]=n,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},18605(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},18762(e,t,i){"use strict";i.d(t,{FileSelectorWidget:()=>a});var s=i(23211),o=i(65946),r=i(4099),n=i(89636);let a=(e,t,i,a,c=!0)=>{let h,d=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(c?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let s=(0,o.isFunction)(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;(0,o.isFunction)(s)&&s.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content(){a&&a(),t.filebrowser&&e.filebrowser.open(t.filebrowser,c)}}),t.url){let n=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[n])]);h=null,i&&!s.Dom.isText(i)&&!s.Dom.isComment(i)&&(s.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(h="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"input[name=url]",(0,o.attr)(h,"src")),l(a.container,"input[name=text]",(0,o.attr)(h,"alt")),n.state.text="Update"),i&&s.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,o.attr)(i,"href")),l(a.container,"input[name=text]",(0,o.attr)(i,"title")),n.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:a.container})}return(0,n.TabsWidget)(e,d)};function l(e,t,i){let s=e.querySelector(t);return s?(i&&(s.value=i),s.value):""}},18855(e,t,i){"use strict";i.d(t,{Plugin:()=>l});var s=i(25045),o=i(31635),r=i(16964),n=i(84839),a=i(24497);class l extends r.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,a.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(r.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:e}=this;if(e.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(e)&&this.buttons?.forEach(t=>{e?.unregisterButton(t)}),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,s._)(this,"buttons",[]),(0,s._)(this,"hasStyle",!1),(0,s._)(this,"styles",void 0),(0,s._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,s._)(l,"requires",[]),(0,o.__decorate)([n.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__beforeDestruct",null)},18869(e,t,i){"use strict";i.d(t,{EventHandlersStore:()=>a,defaultNameSpace:()=>n});var s=i(25045),o=i(88475),r=i(28712);let n="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.assert)(i,"-"),i[e]}}indexOf(e,t,i){let s=this.get(e,t);if(s){for(let e=0;e<s.length;e+=1)if(s[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==n):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,s=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),s?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){(0,s._)(this,"__store",new Map)}}},18929(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(9103),a=i.n(n);r.Config.prototype.beautifyHTML=!s.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",a()),r.Config.prototype.controls.source={mode:s.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===s.MODE_SOURCE,tooltip:"Change mode"}},18993(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(81875),n=i.n(r);o.Config.prototype.usePopupForSpecialCharacters=!1,o.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","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","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],s.Icon.set("symbols",n()),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i){let s=e.e.fire("generateSpecialCharactersTable.symbols");if(s){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(s),e.e.on(s,"close_dialog",i),t}e.alert(s,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=s.querySelector("a");t&&t.focus()}}}},19147(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:()=>a,normalizeCssNumericValue:()=>l,normalizeCssValue:()=>c});var s=i(70222),o=i(18303),r=i(93387),n=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,s.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,n.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,s.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},19213(e,t,i){"use strict";i.d(t,{clearSelectionWrappers:()=>c,clearSelectionWrappersFromHTML:()=>h,getSelectionWrappers:()=>l,highlightTextRanges:()=>a});var s=i(81937),o=i(23211),r=i(28723);let n="jd-tmp-selection";function a(e,t,i,r,a){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue||((e,t,i)=>{if(e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight){let s=new Highlight(...[t,...i].map(t=>{let i=e.selection.createRange();return i.setStart(t.startContainer,t.startOffset),i.setEnd(t.endContainer,t.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",s),i.length=0,!0}return!1})(e,t,i))return;let l=r.element("span",{[n]:!0});o.Dom.markTemporary(l),((e,t,i)=>{let s=e.startContainer.nodeValue,r=0;if(0!==e.startOffset){let t=i.text(s.substring(0,e.startOffset));e.startContainer.nodeValue=s.substring(e.startOffset),o.Dom.before(e.startContainer,t),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}let n=e.endContainer.nodeValue;if(e.endOffset!==n.length){let s=i.text(n.substring(e.endOffset));for(let i of(e.endContainer.nodeValue=n.substring(0,e.endOffset),o.Dom.after(e.endContainer,s),t))if(i.startContainer===e.endContainer)i.startContainer=s,i.startOffset=i.startOffset-e.endOffset-r,i.endContainer===e.endContainer&&(i.endContainer=s,i.endOffset=i.endOffset-e.endOffset-r);else break;e.endOffset=e.endContainer.nodeValue.length}})(t,i,r);let c=t.startContainer;do{var h;if(!c||(o.Dom.isText(c)&&(h=c.parentNode,!(o.Dom.isElement(h)&&h.hasAttribute(n)))&&o.Dom.wrap(c,l.cloneNode(),r),c===t.endContainer))break;let e=c.firstChild||c.nextSibling;if(!e){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;e=c?.nextSibling}c=e}while(c&&c!==a)}function l(e){return(0,r.$$)(`[${n}]`,e)}function c(e){l(e.editor).forEach(e=>o.Dom.unwrap(e)),e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight&&CSS.highlights.clear()}function h(e){return e.replace(RegExp(`<span[^>]+${n}[^>]+>(.*?)</span>`,"g"),"$1")}},19549(e,t,i){"use strict";i.d(t,{getSuitParent:()=>function e(t,i,n){let{parentNode:a}=i;return a===n||!s.Dom.isHTMLElement(a)||s.Dom.next(i,o.isNormalNode,a)||s.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!s.Dom.isBlock(a)?e(t,a,n):(0,r.isSuitElement)(t,a,!1)&&(!s.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!s.Dom.isBlock(a)?e(t,a,n):null}});var s=i(23211),o=i(83653),r=i(73019)},20784(e){e.exports='<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>'},21132(e,t,i){"use strict";i.d(t,{applyMargin:()=>r});var s=i(80991),o=i(10808);function r(e,t,i,r,n,a,l){let c=[t,i,r,n],h=(e,t)=>{let i=(0,s.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,s.css)(a,e,r)};if(l)h("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{h(e[i],t)})}}},21917(e){e.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22227(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'},22289(e,t,i){"use strict";function s(e){return"boolean"==typeof e}i.d(t,{isBoolean:()=>s})},22533(e,t,i){"use strict";i.d(t,{ToolbarButton:()=>g});var s=i(25045),o=i(31635),r=i(69364),n=i(84839),a=i(27795),l=i(65946),c=i(59400),h=i(15982),d=i(29434),u=i(51116),p=i(42573),m=i(4274);class g extends c.UIButton{className(){return"ToolbarButton"}get toolbar(){return this.closest(p.ToolbarCollection)}update(){let{control:e,state:t}=this,i=this.closest(p.ToolbarCollection);if(!i)return;let s=e.value?.(i.jodit,this);void 0!==s&&(t.value=s),t.disabled=this.__calculateDisabledStatus(i),t.activated=this.__calculateActivatedStatus(i),e.update?.(i.jodit,this)}__calculateActivatedStatus(e){return(!(0,l.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(!!this.control.isActive?.(this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||this.control.isDisabled?.(this.j,this))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,l.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,l.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,l.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();(0,l.attr)(t,"role","listitem"),i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i);let s=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${d.Icon.get("chevron")}</span>`);return i.appendChild(s),t}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):a.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,l.attr)(this.trigger,"disabled",e),(0,l.attr)(this.button,"disabled",e),(0,l.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name;let{textIcons:i}=this.j.o;if(!0===i||(0,l.isFunction)(i)&&i(e.name)||e.template)t.icon=(0,c.UIButtonState)().icon,t.text=e.text||e.name;else{if(e.iconURL)t.icon.iconURL=e.iconURL;else{let i=e.icon||e.name;t.icon.name=d.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}e.tooltip&&(t.tooltip=this.j.i18n((0,l.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip)),t.hasTrigger=!!(e.list||e.popup&&e.exec)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();let{control:t}=this;if(e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,l.isFunction)(t.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,l.camelCase)(`before-${t.name}-open-popup`),this.target,t,e)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.popup(this.j,i,this.__closePopup,this);s?e.setContent((0,l.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,l.camelCase)(`after-${t.name}-open-popup`),e.container)}}__openControlList(e){let t=this.jodit.options.controls??{},i=e=>(0,h.findControlType)(e,t),s=e.list,o=this.openPopup(),r=(0,m.makeCollection)(this.j);o.parentElement=this,r.parentElement=o,r.mode="vertical";let n=(t,s)=>{let o;if((0,l.isString)(s)&&i(s))return{name:s.toString(),...i(s)};if((0,l.isString)(t)&&i(t))return{name:t.toString(),...i(t),..."object"==typeof s?s:{}};o=t,(0,l.isPlainObject)(o)&&"title"in o&&"value"in o&&(s=t.value,t=t.title);let{childTemplate:r}=e,n={name:t.toString(),template:r&&((e,t,i)=>r(e,t,i,this)),exec:e.childExec?(t,i,s)=>e.childExec?.(t,i,{...s,parentControl:e}):e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,s]};return(0,l.isString)(s)&&(n.text=s),n};r.build((0,l.isArray)(s)?s.map(n):(0,l.keys)(s,!1).map(e=>n(e,s[e])),this.target),o.setContent(r).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&a.Dom.isNode(e.target)&&(a.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new u.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){let{control:t}=this;if((0,l.isFunction)(t.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.exec(this.j,i,{control:t,originalEvent:e,button:this});if(!1!==s&&!0!==s&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==s)return}return t.list?this.__openControlList(t):(0,l.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,l.call)((0,l.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),(0,s._)(this,"control",void 0),(0,s._)(this,"target",void 0),(0,s._)(this,"state",void 0),(0,s._)(this,"trigger",void 0),(0,s._)(this,"openedPopup",void 0),this.control=t,this.target=i,this.state={...(0,c.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;let o=this.getElm("button");(0,l.assert)(o,"Element button should exists"),this.button=o,Object.defineProperty(o,"component",{value:this,configurable:!0});let n=this.getElm("trigger");(0,l.assert)(n,"Element trigger should exists"),this.trigger=n,n.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(r.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}}(0,o.__decorate)([n.cacheHTML],g.prototype,"createContainer",null),(0,o.__decorate)([(0,n.watch)("state.hasTrigger",{immediately:!1})],g.prototype,"onChangeHasTrigger",null),(0,o.__decorate)([(0,n.watch)("trigger:click")],g.prototype,"onTriggerClick",null),(0,o.__decorate)([n.autobind],g.prototype,"onOutsideClick",null),(0,o.__decorate)([n.autobind],g.prototype,"__closePopup",null),g=(0,o.__decorate)([n.component],g)},22852(e,t,i){"use strict";i.d(t,{stripTags:()=>function e(t,i=document,h=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,n.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(h&&s.Dom.isTag(t,h)){let o=t.nodeName.toLowerCase(),r=s.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,h)}%%%/jodit-${o}%%%`;s.Dom.before(t,i.createTextNode(r)),s.Dom.safeRemove(t);return}if(s.Dom.isTag(t,l))return void s.Dom.safeRemove(t);if(!s.Dom.isTag(t,a))return;let r=t.nextSibling;!(s.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(" "),r)}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,s)=>`<${t?"/":""}${s}>`)}});var s=i(23211),o=i(85932),r=i(4040),n=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},22980(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class h extends c.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=((e,t)=>{let i=e,s=e;do if(n.Dom.isElement(s)&&n.Dom.isLeaf(s)&&!n.Dom.isList(s.parentElement)){let e=n.Dom.findNotEmptySibling(s,!1);n.Dom.isTag(i,"ul")?i.appendChild(s):i=n.Dom.wrap(s,"ul",t.createInside),s=e}else break;while(s)return i})(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let s=e.createInside.element(e.o.enter);for(n.Dom.before(t,s);t&&this.isSuitable(t);){let e=t.nextSibling;s.appendChild(t),t=e}s.normalize(),t=s}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),s=e.createInside.element("br");n.Dom.append(i,s),n.Dom.append(e.editor,i),e.s.isFocused()&&e.s.setCursorBefore(s),e.e.fire("internalChange")}constructor(...e){super(...e),(0,s._)(this,"isSuitableStart",e=>n.Dom.isText(e)&&(0,l.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||e.parentNode?.firstChild===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!n.Dom.isTemporary(e)),(0,s._)(this,"isSuitable",e=>n.Dom.isText(e)||this.isNotWrapped(e)),(0,s._)(this,"isNotWrapped",e=>n.Dom.isElement(e)&&!(n.Dom.isBlock(e)||n.Dom.isTag(e,this.j.o.wrapNodes.exclude)))}}(0,o.__decorate)([r.autobind],h.prototype,"postProcessSetEditorValue",null),(0,o.__decorate)([r.autobind],h.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",h)},23112(e,t,i){"use strict";function s(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],s=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)s[e]=t.charCodeAt(e);return new Blob([s.buffer],{type:i})}i.d(t,{dataURItoBlob:()=>s})},23175(e,t,i){"use strict";i.d(t,{isMarker:()=>r});var s=i(81937),o=i(23211);function r(e){return o.Dom.isNode(e)&&o.Dom.isTag(e,"span")&&e.hasAttribute("data-"+s.MARKER_CLASS)}},23183(e,t,i){"use strict";i.d(t,{Elms:()=>o});var s=i(88475);class o{getElm(e){return this.container.querySelector("."+this.getFullElName(e))}getElms(e){return(0,s.toArray)(this.container.querySelectorAll("."+this.getFullElName(e)))}}},23211(e,t,i){"use strict";i.d(t,{Dom:()=>l});var s=i(81937),o=i(88475),r=i(28686),n=i(4040),a=i(93640);class l{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let s,o=e;i.s.save();let r=!1;do r=!1,(s=o.nextSibling)&&!l.isBlock(s)&&!l.isTag(s,"br")&&(r=!0,o=s);while(r)return l.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,s){let o=(0,r.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let n=i;for(;n&&(n=i.nextSibling,o.appendChild(i),i!==s&&n);)i=n;return t.s.restore(),o}static wrapInline(e,t,i){let s,o=e,r=e;i.s.save();let n=!1;do n=!1,(s=o.previousSibling)&&!l.isBlock(s)&&(n=!0,o=s);while(n)do n=!1,(s=r.nextSibling)&&!l.isBlock(s)&&(n=!0,r=s);while(n)return l.__wrapElements(t,i,o,r)}static wrap(e,t,i){let s=(0,r.isString)(t)?i.element(t):t;if(l.isNode(e)){if(!e.parentNode)throw(0,a.error)("Element should be in DOM");e.parentNode.insertBefore(s,e),s.appendChild(e)}else{let t=e.extractContents();e.insertNode(s),s.appendChild(t)}return s}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);l.safeRemove(e)}}static between(e,t,i){let s=e;for(;s&&s!==t&&!(e!==s&&i(s));){let e=s.firstChild||s.nextSibling;if(!e){for(;s&&!s.nextSibling;)s=s.parentNode;e=s?.nextSibling}s=e}}static replace(e,t,i,s=!1,n=!1){let c;if((0,r.isHTML)(t)&&((0,a.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,r.isString)(t)?((0,a.assert)(i,"Need create instance for new tag"),c=i.element(t)):c=t,!n)for(;e.firstChild;)c.appendChild(e.firstChild);return s&&l.isElement(e)&&l.isElement(c)&&(0,o.toArray)(e.attributes).forEach(e=>{c.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(c,e),c}static isEmptyTextNode(e){return l.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(s.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return l.each(e,e=>l.isEmptyTextNode(e))}static isContentEditable(e,t){return l.isNode(e)&&!l.closest(e,e=>l.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=s.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,r.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,n.trim)(e.nodeValue).length;return l.isText(e)?o(e):!(l.isElement(e)&&i(e))&&l.each(e,e=>{if(l.isText(e)&&!o(e)||l.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,r.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,r.isFunction)(e.appendChild))}static isCell(e){return l.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return l.isTag(e,s.LIST_TAGS)}static isLeaf(e){return l.isTag(e,"li")}static isImage(e){return l.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,r.isVoid)(e)&&"object"==typeof e&&l.isNode(e)&&s.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){if(!l.isNode(e))return!1;let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.HTMLElement)}static isInlineBlock(e){return l.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(e,"display").toString())}static canSplitBlock(e){return!(0,r.isVoid)(e)&&l.isHTMLElement(e)&&l.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=e?.lastChild;if(!i)return null;do{if(t(i))return i;let s=i.lastChild;if(s||(s=i.previousSibling),!s&&i.parentNode!==e){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==e)s=i?.previousSibling}i=s}while(i)return null}static prev(e,t,i,s=!0){return l.find(e,t,i,!1,s)}static next(e,t,i,s=!0){return l.find(e,t,i,!0,s)}static prevWithClass(e,t){return l.prev(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return l.next(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,s=!0,o=!0){let r=this.nextGen(e,i,s,o),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}return null}static*nextGen(e,t,i=!0,s=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,s),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let s=this.eachGen(e,i),o=s.next();for(;!o.done;){if(!1===t(o.value))return!1;o=s.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,s=!0){for(;t.length;){let o=t.pop();if(s){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,s="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=l.findWithCurrent(r[o],t,r,s,o);if(e)return e}for(;r&&!r[s]&&r!==i;)r=r.parentNode;r&&r[s]&&r!==i&&(r=r[s])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!l.isEmptyTextNode(e)){let s=l.sibling(e,t);for(;s&&!i(s);)s=l.sibling(s,t);return s&&i(s)?s:null}static findNotEmptySibling(e,t){return l.findSibling(e,t,e=>!l.isEmptyTextNode(e)&&!!(!l.isText(e)||e.nodeValue?.length&&(0,n.trim)(e.nodeValue)))}static findNotEmptyNeighbor(e,t,i){return(0,a.call)(t?l.prev:l.next,e,e=>!!(e&&(!(l.isText(e)||l.isComment(e))||(0,n.trim)(e?.nodeValue||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,s=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i)return o===i&&s&&t(o)?o:null}static closest(e,t,i){let s,o=e=>e.toLowerCase();if((0,r.isFunction)(t))s=t;else if((0,r.isArray)(t)||(0,r.isSet)(t)){let e=(0,r.isSet)(t)?t:new Set(t.map(o));s=t=>!!(t&&e.has(o(t.nodeName)))}else s=e=>!!(e&&o(t)===o(e.nodeName));return l.up(e,s,i)}static furthest(e,t,i){let s=null,o=e?.parentElement;for(;o&&o!==i;)t(o)&&(s=o),o=o?.parentElement;return s}static appendChildFirst(e,t){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let n=(e.ownerDocument||s.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(l.safeRemove(e),!1)).forEach(e=>{n.appendChild(e)}),i&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>l.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=l.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&l.isTag(e.startContainer,s.INSEPARABLE_TAGS)?l.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>l.isText(e)&&!e.nodeValue&&l.safeRemove(e))}static hide(e){e&&((0,a.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,a.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),s=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(s);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||s===t}static markTemporary(e,t){return t&&(0,a.attr)(e,t),(0,a.attr)(e,s.TEMP_ATTR,!0),e}static isTemporary(e){return!!l.isElement(e)&&((0,r.isMarker)(e)||"true"===(0,a.attr)(e,s.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,a.$$)(`[${s.TEMP_ATTR}]`,e)}constructor(){throw Error("Dom is static module")}}},23283(e,t,i){"use strict";function s(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{isNativeFunction:()=>s})},23422(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(18855);i(38187);var d=i(54308);class u extends h.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,c.getDataTransfer)(e),i=[t?.getData(r.TEXT_PLAIN),t?.getData(r.TEXT_HTML),t?.getData(r.TEXT_RTF)];for(let t of i)if((0,c.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,c.getDataTransfer)(e),i=t?.getData(r.TEXT_HTML)||t?.getData(r.TEXT_PLAIN);if(t&&i&&""!==(0,c.trim)(i)){let s=this.j.e.fire("processPaste",e,i,(0,d.getAllTypes)(t));void 0!==s&&(i=s),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,d.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,c.isString)(t))switch(this.j.buffer.set(r.CLIPBOARD_ID,t),i){case r.INSERT_CLEAR_HTML:t=(0,c.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,c.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:t=(0,c.htmlspecialchars)(t);break;default:{let s=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof s&&(t=s)}}(0,d.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===r.TEXT_PLAIN+";"&&!(0,c.isHTML)(t))return(0,c.nl2br)(t)}constructor(...e){super(...e),(0,s._)(this,"pasteStack",new c.LimitedStack(20)),(0,s._)(this,"_isDialogOpened",!1)}}(0,o.__decorate)([n.autobind],u.prototype,"onPaste",null),(0,o.__decorate)([n.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",u)},23599(e,t,i){"use strict";i.d(t,{position:()=>function e(t,i,o=!1){let r=t.getBoundingClientRect(),n=r.left,a=r.top;if((0,s.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:s}=e(i.iframe,i,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth??r.width),height:Math.round(t.offsetHeight??r.height)}}});var s=i(24497)},23602(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24268(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(49989),n=i.n(r);o.Config.prototype.spellcheck=!1,s.Icon.set("spellcheck",n()),o.Config.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:n(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475(e,t,i){"use strict";i.d(t,{Storage:()=>l});var s=i(25045),o=i(57821),r=i(59807),n=i(9505);let a="Jodit_";class l{set(e,t){return this.provider.set((0,o.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,o.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,o.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,o.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return e&&(0,r.canUsePersistentStorage)()&&(i=new r.LocalStorageProvider(a+t)),i||(i=new n.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,s._)(this,"provider",void 0),(0,s._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},24497(e,t,i){"use strict";i.d(t,{isJoditObject:()=>o});var s=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,s.isFunction)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},24641(e,t,i){"use strict";i.d(t,{UICheckbox:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(65273);class l extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),n.Dom.after(this.nativeInput,e)):n.Dom.safeRemove(e)}constructor(e,t){super(e,{...t,type:"checkbox"}),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t)}}(0,s._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,o.__decorate)([(0,r.watch)("state.checked"),(0,r.hook)("ready")],l.prototype,"onChangeChecked",null),(0,o.__decorate)([(0,r.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,o.__decorate)([(0,r.watch)("state.switch"),(0,r.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,o.__decorate)([r.component],l)},24735(e,t,i){"use strict";i.d(t,{Async:()=>g});var s=i(25045),o=i(81937),r=i(61077),n=i(72068),a=i(91565),l=i(72412),c=i(62101),h=i(52100),d=i(85932),u=i(18303),p=i(28712),m=i(14228);class g{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let s={};(0,u.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(s=t).timeout||0),s.label&&this.clearLabel(s.label);let o=(0,r.setTimeout)(e,t,...i),n=s.label||o;return this.timers.set(n,o),this.__callbacks.set(n,e),o}updateTimeout(e,t){if((0,p.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,r.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,r.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let s=0,o=!1,l=[],d=(...t)=>{if(!o){s=0;let i=e(...t);if(o=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,h.isPromise)(i)?i.finally(e):e()}}},u=(...n)=>{o=!1,t?(!s&&i&&d(...n),(0,r.clearTimeout)(s),s=this.setTimeout(()=>d(...n),(0,a.isFunction)(t)?t():t),this.timers.set(e,s)):d(...n)};return(0,c.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,n.isAbortError)(e))return null;throw e});return u(...e),t}:u}microDebounce(e,t=!1){let i,s=!1,o=!0;return(...r)=>{if(i=r,s){o=!0;return}o=!0,t&&(o=!1,e(...i)),s=!0,this.__queueMicrotaskNative(()=>{s=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let s=null,o,r,n;return(...i)=>{if(o=!0,n=i,!t)return void e(...n);s||(r=()=>{o?(e(...n),o=!1,s=this.setTimeout(r,(0,a.isFunction)(t)?t():t),this.timers.set(r,s)):s=null})()}}promise(e){let t=()=>{},i=new Promise((i,s)=>{t=()=>s((0,m.abort)("Abort async")),this.promisesRejections.add(t),e(i,s)});return i.finally||"undefined"==typeof process||o.IS_ES_NEXT||(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let s=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return s.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),s}return this.promise((s,o)=>{let r=this.setTimeout(()=>{try{s(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,m.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,r.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,s._)(this,"timers",new Map),(0,s._)(this,"__callbacks",new Map),(0,s._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,s._)(this,"promisesRejections",new Set),(0,s._)(this,"__requestsIdle",new Set),(0,s._)(this,"__controllers",new Set),(0,s._)(this,"__requestsRaf",new Set),(0,s._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((e,t)=>{let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},t?.timeout??1)})),(0,s._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(e=>{this.clearTimeout(e)})),(0,s._)(this,"isDestructed",!1)}}},24772(e){e.exports='<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>'},24968(e,t,i){"use strict";i.d(t,{derive:()=>o});var s=i(91565);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],n=Object.getOwnPropertyDescriptor(o.prototype,t);null!=n&&(0,s.isFunction)(n.value)&&!(0,s.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return n.value.call(this,...e)}})}}}}},25045(e,t,i){"use strict";function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{_:()=>s})},25222(e,t,i){"use strict";i.d(t,{Storage:()=>s.Storage}),i(59807);var s=i(24475)},25501(e){e.exports='<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>'},25974(e,t,i){"use strict";i.d(t,{makeInstance:()=>r});var s=i(81937),o=i(91565);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!s.IS_PROD)throw e}return null}},26106(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:()=>n});var s=i(81937),o=i(23211),r=i(15200);function n(e,t,i){let r=t,n=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)n=r=r.parentElement;if(o.Dom.isElement(n)&&o.Dom.isContentEditable(n,e.editor)){let r=o.Dom.findNotEmptySibling(n,i);if(r&&(((e,t,i,r)=>{let n=o.Dom.isTag(i,s.LIST_TAGS),l=o.Dom.isTag(t,s.LIST_TAGS),c=(e,t)=>t?e.firstElementChild:e.lastElementChild;return l?(i=e.createInside.element(e.o.enterBlock),o.Dom.before(t,i),a(e,c(t,r),i,r)):!!i&&!!n&&!l&&a(e,t,c(i,!r),r)})(e,n,r,i)||a(e,n,r,i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,s){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!s,(0,r.getMoveFilter)(e));let n=t;for(;n&&n!==e.editor&&o.Dom.isEmpty(n);){let e=n.parentElement;o.Dom.safeRemove(n),n=e}return!0}return!1}},26136(e,t,i){"use strict";i.d(t,{browser:()=>s});let s=e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}},26633(e,t,i){"use strict";i.d(t,{readAlign:()=>o});var s=i(80991);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,s.css)(e,"float"):"block"===(0,s.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},27137(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:()=>p});var s=i(25045),o=i(31635),r=i(84839),n=i(91672),a=i(65946),l=i(63468),c=i(29434),h=i(15753),d=i(29596),u=i(17306);class p extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
140
+ <div class="jodit-grid jodit-grid_xs-column">
141
+ <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
142
+ <div class="&__view-box">
143
+ <div class="&__imageView">
144
+ <img class="&__imageViewSrc" src="" alt=""/>
145
+ </div>
146
+ <div class="jodit-form__group &__imageSizes">
147
+ <input type="text" class="jodit-input &__imageWidth"/>
148
+ <a class="&__lockSize">${c.Icon.get("lock")}</a>
149
+ <input type="text" class="&__imageHeight jodit-input"/>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>
154
+ </div>
155
+ </form>`}onChangeSizeIsLocked(){let e=this.getElm("lockSize"),t=this.getElm("imageWidth");e.innerHTML=c.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(t,"change")}onLockSizeClick(){this.state.sizeIsLocked=!this.state.sizeIsLocked}onStateValuesSizeChange(){let e=this.getElm("imageWidth"),t=this.getElm("imageHeight");e!==this.j.od.activeElement&&(e.value=this.state.values.imageWidth.toString()),t!==this.j.od.activeElement&&(t.value=this.state.values.imageHeight.toString())}onImageWidthChange(e){let t=this.getElm("imageWidth"),i=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!(0,a.isNumeric)(t.value)||!(0,a.isNumeric)(i.value)){this.state.values.imageWidth=t.value,this.state.values.imageHeight=i.value;return}let s=parseFloat(t.value),o=parseFloat(i.value);e.target===t?(this.state.values.imageWidth=s,this.state.values.imageHeight=Math.round(s/this.state.ratio)):(this.state.values.imageWidth=Math.round(o*this.state.ratio),this.state.values.imageHeight=o)}onStateValuesImageSrcChange(){let{imageSrc:e}=this.state.values;if(!e)return;let t=this.getElm("imageViewSrc");(0,a.attr)(t,"src",e);let i=new Image;i.src=e,this.state.image=i}hideFieldByOptions(){let e=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(([t,i])=>{let s=this.getElm(i);(0,a.css)(s,"display",e[t]?null:"none")})}constructor(e,t,i,o){super(e),(0,s._)(this,"state",void 0),(0,s._)(this,"handlers",void 0),(0,s._)(this,"__mainTab",void 0),(0,s._)(this,"__positionTab",void 0),this.state=t,this.handlers=o,this.__mainTab=new d.UIImageMainTab(this.jodit,this.state,this.handlers),this.__positionTab=new u.UIImagePositionTab(this.jodit,this.state,this.handlers),this.getElm("tabsBox").appendChild((0,h.TabsWidget)(e,[{name:"Image",content:this.__mainTab},{name:"Advanced",content:this.__positionTab}],i)),this.setMod("lock-size",this.state.sizeIsLocked),this.append(this.__mainTab).append(this.__positionTab)}}(0,o.__decorate)([(0,r.hook)("ready"),(0,r.watch)("state.sizeIsLocked")],p.prototype,"onChangeSizeIsLocked",null),(0,o.__decorate)([(0,r.watch)("lockSize:click")],p.prototype,"onLockSizeClick",null),(0,o.__decorate)([(0,r.hook)("ready"),(0,r.watch)(["state.values.imageWidth","state.values.imageHeight"])],p.prototype,"onStateValuesSizeChange",null),(0,o.__decorate)([(0,r.watch)(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),(0,r.debounce)()],p.prototype,"onImageWidthChange",null),(0,o.__decorate)([(0,r.hook)("ready"),(0,r.watch)("state.values.imageSrc")],p.prototype,"onStateValuesImageSrcChange",null),(0,o.__decorate)([(0,r.hook)("ready")],p.prototype,"hideFieldByOptions",null),p=(0,o.__decorate)([n.component],p)},27611(e,t,i){"use strict";i.d(t,{tryRemoveNode:()=>n});var s=i(81937),o=i(23211),r=i(4040);function n(e,t,i,n,a,l){return!o.Dom.isText(t)&&(n&&!n[t.nodeName]||!n&&a&&a[t.nodeName])||e.o.cleanHTML.removeEmptyElements&&o.Dom.isElement(t)&&null!=t.nodeName.match(s.IS_INLINE)&&!o.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==l||!o.Dom.isOrContains(t,l))?(o.Dom.safeRemove(t),!0):i}},27795(e,t,i){"use strict";i.d(t,{Dom:()=>s.Dom,LazyWalker:()=>o.LazyWalker});var s=i(23211),o=i(1080)},27978(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:()=>r});var s=i(81937),o=i(4040);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>s.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},27987(e,t,i){"use strict";i.d(t,{UISpacer:()=>n});var s=i(31635),o=i(91672),r=i(96007);class n extends r.UIElement{className(){return"UISpacer"}}n=(0,s.__decorate)([o.component],n)},28077(e,t,i){"use strict";i.d(t,{eventEmitter:()=>C,extendLang:()=>b,getContainer:()=>w,getPopupViewRoot:()=>S,instances:()=>p,modules:()=>v,pluginSystem:()=>_,uniqueUid:()=>f});var s=i(65946),o=i(24497),r=i(85932),n=i(31534),a=i(74264),l=i(421),c=i(85305),h=i(81937),d=i(27795),u=i(1496);let p={},m=1,g=new Set;function f(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;g.has(t);)t=e();return g.add(t),t}let _=new c.PluginSystem,v={},b=e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},y=new WeakMap;function w(e,t,i="div",s=!1){let c=(0,r.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",h=y.get(e)||{},u=c+i,p=(0,n.isViewObject)(e)?e:e.j,m=null;if(!h[u]){let t=p.c;if(m=S(p.o,p.container,e.od.body),s&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let s="style"===i?e.ed.head:e.ed.body;m=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:s}let r=t.element(i,{className:`jodit jodit-${(0,a.kebabCase)(c)}-container jodit-box`});r.classList.add("jodit_theme_"+(p.o.theme||"default")),m.appendChild(r),h[u]=r,e.hookStatus("beforeDestruct",()=>{p.events.off(r),d.Dom.safeRemove(r),delete h[u],Object.keys(h).length&&y.delete(e)}),y.set(e,h),p.events.fire("getContainer",r)}return h[u].classList.remove("jodit_theme_default","jodit_theme_dark"),h[u].classList.add("jodit_theme_"+(p.o.theme||"default")),h[u]}function S(e,t,i){return e.popupRoot??e.shadowRoot??d.Dom.closest(t,e=>d.Dom.isHTMLElement(e)&&(d.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,s.css)(e,"position"))),i)??i}let C=new u.EventEmitter},28286(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(27795),n=i(28077),a=i(91565),l=i(91206),c=i(42259);i(33831);var h=i(89827),d=i(17523);class u extends l.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,s=i.selection;if(s.isFocused()||s.focus(),(0,h.checkNotCollapsed)(i))return!1;let n=s.range,l=i.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(n,l),!r.Dom.isOrContains(i.editor,l))return;if(i.e.fire("backSpaceBeforeCases",e,l)||((0,c.moveNodeInsideStart)(i,l,e),d.cases.some(s=>{if((0,a.isFunction)(s)&&s(i,l,e,t))return!o.IS_PROD,!0})))return!1}catch(e){throw!o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,l),this.safeRemoveEmptyNode(l)}return!1}safeRemoveEmptyNode(e){let{range:t}=this.j.s;t.startContainer===e&&(e.previousSibling?r.Dom.isText(e.previousSibling)?t.setStart(e.previousSibling,e.previousSibling.nodeValue?.length??0):t.setStartAfter(e.previousSibling):e.nextSibling&&(r.Dom.isText(e.nextSibling)?t.setStart(e.nextSibling,0):t.setStartBefore(e.nextSibling)),t.collapse(!0),this.j.s.selectRange(t)),r.Dom.safeRemove(e)}}(0,s._)(u,"requires",["hotkeys"]),n.pluginSystem.add("backspace",u)},28346(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(23175),h=i(7909),d=i(80991),u=i(18855);i(8257);class p extends u.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,s=e.s.current(),o=s&&a.Dom.closest(s,a.Dom.isBlock,e.editor)||e.editor,r=e.ew.getComputedStyle(o),n=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);let{firstChild:l}=e.editor;if(a.Dom.isElement(l)&&!(0,c.isMarker)(l)){let s=e.ew.getComputedStyle(l);t=parseInt(s.getPropertyValue("margin-top"),10),i=parseInt(s.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=s.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height");(0,d.css)(this.placeholderElm,{display:"block",textAlign:r.getPropertyValue("text-align"),paddingTop:parseInt(n.paddingTop,10)+"px",paddingLeft:parseInt(n.paddingLeft,10)+"px",paddingRight:parseInt(n.paddingRight,10)+"px",marginTop:Math.max(parseInt(r.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(r.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==r.MODE_WYSIWYG)return void this.hide();(e=>{if(!e.firstChild)return!0;let t=e.firstChild;if(r.INSEPARABLE_TAGS.has(t.nodeName?.toLowerCase())||/^(TABLE)$/i.test(t.nodeName))return!1;let i=a.Dom.next(t,e=>e&&!a.Dom.isEmptyTextNode(e),e);return a.Dom.isText(t)&&!i?a.Dom.isEmptyTextNode(t):!i&&a.Dom.each(t,e=>!(a.Dom.isLeaf(e)||a.Dom.isList(e))&&(a.Dom.isEmpty(e)||a.Dom.isTag(e,"br")))})(e.editor)?this.show():this.hide()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...e){super(...e),(0,s._)(this,"placeholderElm",void 0),(0,s._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,s._)(this,"addEvents",()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,h.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,o.__decorate)([(0,n.debounce)(e=>e.defaultTimeout/10,!0)],p.prototype,"toggle",null),l.pluginSystem.add("placeholder",p)},28686(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:()=>s.hasBrowserColorPicker,hasContainer:()=>d.hasContainer,isAbortError:()=>o.isAbortError,isArray:()=>r.isArray,isBoolean:()=>n.isBoolean,isDestructable:()=>d.isDestructable,isEqual:()=>a.isEqual,isFastEqual:()=>a.isFastEqual,isFunction:()=>l.isFunction,isHTML:()=>c.isHTML,isHtmlFromWord:()=>h.isHtmlFromWord,isInitable:()=>d.isInitable,isInt:()=>u.isInt,isJoditObject:()=>p.isJoditObject,isLicense:()=>m.isLicense,isMarker:()=>g.isMarker,isNativeFunction:()=>f.isNativeFunction,isNumber:()=>_.isNumber,isNumeric:()=>v.isNumeric,isPlainObject:()=>b.isPlainObject,isPromise:()=>y.isPromise,isSet:()=>w.isSet,isString:()=>S.isString,isStringArray:()=>S.isStringArray,isURL:()=>C.isURL,isValidName:()=>E.isValidName,isViewObject:()=>I.isViewObject,isVoid:()=>T.isVoid,isWindow:()=>x.isWindow});var s=i(98740),o=i(72068),r=i(17312),n=i(22289),a=i(94013),l=i(91565),c=i(46248),h=i(82166),d=i(52433),u=i(99732),p=i(24497),m=i(44998),g=i(23175),f=i(23283),_=i(72412),v=i(70222),b=i(62101),y=i(52100),w=i(3213),S=i(85932),C=i(91764),E=i(50083),I=i(31534),T=i(18303),x=i(3513)},28712(e){"use strict";e.exports={assert(){}}},28723(e,t,i){"use strict";i.d(t,{$$:()=>h,cssPath:()=>p,getXPathByElement:()=>d,refs:()=>u,resolveElement:()=>m});var s=i(81937),o=i(23211),r=i(88475),n=i(85932),a=i(57821),l=i(93640);let c=1;function h(e,t){let i;if(!s.IS_ES_NEXT&&/:scope/.test(e)&&s.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let s=t.id,o=s||"_selector_id_"+(Math.random()+"").slice(2)+ ++c;e=e.replace(/:scope/g,"#"+o),s||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),s||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let d=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return d(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")},u=e=>("container"in e&&(e=e.container),h("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,n.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),p=e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,s=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&s++;while(t)e+=":nth-of-type("+s+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function m(e,t){let i=e;if((0,n.isString)(e))try{i=t.querySelector(e)}catch{throw(0,l.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,l.error)('Element "'+e+'" should be string or HTMLElement instance');return i}},28771(e,t,i){"use strict";i.d(t,{openImageEditorDialog:()=>n});var s=i(85932),o=i(7909),r=i(43271);function n(e,t){let i=(0,o.attr)(t.image,"src")||"",n=e.c.element("a"),a=()=>{if(n.host!==location.host)return void e.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&e.uploader&&e.uploader.uploadRemoteImage(n.href.toString(),i=>{e.alert("The image has been successfully uploaded to the host!",()=>{(0,s.isString)(i.newfilename)&&(t.values.imageSrc=i.baseurl+i.newfilename)})},t=>{e.alert("There was an error loading %s",t.message)})})};n.href=i,e.filebrowser.dataProvider.getPathByUrl(n.href.toString()).then(s=>{r.openImageEditor.call(e.filebrowser,n.href,s.name,s.path,s.source,()=>{let e=new Date().getTime();t.values.imageSrc=i+(-1!==i.indexOf("?")?"":"?")+"&_tmp="+e.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,a)})}},29200(e,t,i){"use strict";i.d(t,{hook:()=>r});var s=i(91565),o=i(33201);function r(e){return(t,i)=>{if(!(0,s.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},29348(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},29433(e,t,i){"use strict";i.d(t,{StatusBar:()=>h});var s=i(25045),o=i(31635),r=i(16964),n=i(84839),a=i(23211),l=i(23183),c=i(81987);class h extends r.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){let i=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&i.classList.add(this.getFullElName("item-right")),i.appendChild(e),this.container?.appendChild(i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),a.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),(0,s._)(this,"target",void 0),(0,s._)(this,"container",void 0),(0,s._)(this,"mods",void 0),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}}h=(0,o.__decorate)([n.component,(0,n.derive)(c.Mods,l.Elms)],h)},29434(e,t,i){"use strict";i.d(t,{Icon:()=>a});var s=i(25045),o=i(81937),r=i(65946),n=i(80991);class a{static getIcon(e){if(/<svg/i.test(e))return e;let t=a.icons[e]||a.icons[e.replace(/-/g,"_")]||a.icons[e.replace(/_/g,"-")]||a.icons[(0,r.camelCase)(e)]||a.icons[(0,r.kebabCase)(e)]||a.icons[e.toLowerCase()];return!o.IS_PROD,t}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){let i,s;if(!t)return;let{name:o,iconURL:r,fill:l}=t,c=o.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(o)||(s=e.o.getIcon?.(o,c));let h=`${o}${r}${l}${s??""}`;if(e.o.cache&&this.__cache.has(h))return this.__cache.get(h)?.cloneNode(!0);if(r)i=e.c.span(),(0,n.css)(i,"backgroundImage","url("+r.replace("{basePath}",e?.basePath||"")+")");else{let t=s||a.get(o,"")||e.o.extraIcons?.[o];t&&(i=e.c.fromHTML(t.trim()),/^<svg/i.test(o)||i.classList.add("jodit-icon_"+c))}return i&&(i.classList.add("jodit-icon"),i.style.fill=l,e.o.cache&&this.__cache.set(h,i.cloneNode(!0))),i}}(0,s._)(a,"icons",{}),(0,s._)(a,"__cache",new Map)},29596(e,t,i){"use strict";i.d(t,{UIImageMainTab:()=>h});var s=i(25045),o=i(31635),r=i(91672),n=i(29200),a=i(68616),l=i(65946),c=i(63468);class h extends c.UIGroup{className(){return"UIImageMainTab"}appendChildToContainer(){}render(){return`<div class="jodit-form__group &__editSrc">
156
+ <label>~Src~</label>
157
+ <div class="jodit-input_group">
158
+ <input class="jodit-input &__imageSrc" type="text"/>
159
+ <div class="jodit-input_group-buttons &__fixImage">
160
+ <a class="jodit-button &__changeImage">*image*</a>
161
+ <a class="jodit-button &__editImage">*crop*</a>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div class="jodit-form__group &__editTitle">
166
+ <label>~Title~</label>
167
+ <input type="text" class="jodit-input &__imageTitle"/>
168
+ </div>
169
+ <div class="jodit-form__group &__editAlt">
170
+ <label>~Alternative~</label>
171
+ <input type="text" class="jodit-input &__imageAlt"/>
172
+ </div>
173
+ <div class="jodit-form__group &__editLink">
174
+ <label>~Link~</label>
175
+ <input type="text" class="jodit-input &__imageLink"/>
176
+ </div>
177
+ <div class="jodit-form__group &__editLinkTarget">
178
+ <label class="jodit_vertical_middle">
179
+ <input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>
180
+ <span>~Open link in new tab~</span>
181
+ </label>
182
+ </div>`}async onStateImageSrcChange(){this.getElm("imageSrc").value=this.state.values.imageSrc}onImageSrcChange(){this.state.values.imageSrc=this.getElm("imageSrc").value}onEditImageClick(e){this.handlers.openImageEditor(),e.stopPropagation()}onChangeImageClick(e){this.handlers.openImagePopup(this.getElm("changeImage")),e.stopPropagation()}onStateTitleChange(){this.getElm("imageTitle").value=this.state.values.imageTitle}onTitleChange(){this.state.values.imageTitle=this.getElm("imageTitle").value}onStateAltChange(){this.getElm("imageAlt").value=this.state.values.imageAlt}onAltChange(){this.state.values.imageAlt=this.getElm("imageAlt").value}onStateImageLinkChange(){this.getElm("imageLink").value=this.state.values.imageLink}onImageLinkChange(){this.state.values.imageLink=this.getElm("imageLink").value}onStateImageLinkOpenInNewTabChange(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}onImageLinkOpenInNewTabChange(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}hideFieldByOptions(){let e=this.j.o,t=e.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(([e,i])=>{let s=this.getElm(i);(0,l.css)(s,"display",t[e]?null:"none")});let i=this.getElm("changeImage"),s=!!(e.filebrowser.ajax.url||e.uploader.url);(0,l.css)(i,"display",s?null:"none");let o=this.getElm("editImage"),r=!!e.filebrowser.ajax.url&&t.useImageEditor;(0,l.css)(o,"display",r?null:"none");let n=this.getElm("fixImage");(0,l.css)(n,"display",s||r?null:"none")}constructor(e,t,i){super(e),(0,s._)(this,"state",void 0),(0,s._)(this,"handlers",void 0),this.state=t,this.handlers=i}}(0,o.__decorate)([(0,a.watch)("state.values.imageSrc")],h.prototype,"onStateImageSrcChange",null),(0,o.__decorate)([(0,a.watch)("imageSrc:change")],h.prototype,"onImageSrcChange",null),(0,o.__decorate)([(0,a.watch)("editImage:click")],h.prototype,"onEditImageClick",null),(0,o.__decorate)([(0,a.watch)("changeImage:click")],h.prototype,"onChangeImageClick",null),(0,o.__decorate)([(0,a.watch)("state.values.imageTitle")],h.prototype,"onStateTitleChange",null),(0,o.__decorate)([(0,a.watch)("imageTitle:change")],h.prototype,"onTitleChange",null),(0,o.__decorate)([(0,a.watch)("state.values.imageAlt")],h.prototype,"onStateAltChange",null),(0,o.__decorate)([(0,a.watch)("imageAlt:change")],h.prototype,"onAltChange",null),(0,o.__decorate)([(0,a.watch)("state.values.imageLink")],h.prototype,"onStateImageLinkChange",null),(0,o.__decorate)([(0,a.watch)("imageLink:change")],h.prototype,"onImageLinkChange",null),(0,o.__decorate)([(0,a.watch)("state.values.imageLinkOpenInNewTab")],h.prototype,"onStateImageLinkOpenInNewTabChange",null),(0,o.__decorate)([(0,a.watch)("imageLinkOpenInNewTab:change")],h.prototype,"onImageLinkOpenInNewTabChange",null),(0,o.__decorate)([(0,n.hook)("ready")],h.prototype,"hideFieldByOptions",null),h=(0,o.__decorate)([r.component],h)},29953(e,t,i){"use strict";i.d(t,{ConnectionError:()=>o.ConnectionError,OptionsError:()=>r.OptionsError,abort:()=>s.abort,isAbort:()=>s.isAbort});var s=i(14228),o=i(58250),r=i(11080)},30062(e,t,i){"use strict";var s=i(23211),o=i(28077),r=i(80991),n=i(29434),a=i(5266),l=i(3843),c=i.n(l),h=i(38639);let d="copy-format",u=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(e,t,i,s)=>{let o=(0,r.css)(i,t);return o===s[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?p(e,t,i.parentNode,s):void 0),o};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i={},o=s.Dom.up(t,e=>e&&!s.Dom.isText(e),e.editor)||e.editor,n=e.createInside.span();e.editor.appendChild(n),u.forEach(e=>{i[e]=(0,r.css)(n,e)}),n!==e.editor&&s.Dom.safeRemove(n);let a=((e,t,i)=>{let s={};return t&&u.forEach(o=>{s[o]=p(e,o,t,i),o.match(/border(Style|Color)/)&&!s.borderWidth&&(s[o]=void 0)}),s})(e,o,i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(s.Dom.isTag(t,"img")?(0,r.css)(t,a):e.s.commitStyle({attributes:{style:a}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},o.pluginSystem.add("copyformat",e=>{e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(h)}),n.Icon.set("copyformat",c())},30110(e,t,i){"use strict";var s=i(81937),o=i(23211),r=i(28077),n=i(65946),a=i(98803);let l=new Set([s.KEY_TAB,s.KEY_LEFT,s.KEY_RIGHT,s.KEY_UP,s.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",e=>{e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:i}=t,r=((e,t)=>{if(!l.has(t))return;let i=e.s.current();if(!i)return;let r=o.Dom.up(i,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==s.KEY_TAB&&i!==r){let e=t===s.KEY_RIGHT||t===s.KEY_DOWN,l=(0,n.call)(e?o.Dom.next:o.Dom.prev,i,e=>t===s.KEY_UP||t===s.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==s.KEY_UP&&o.Dom.isText(i)&&0!==a.startOffset)||e&&(l||t!==s.KEY_DOWN&&o.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return r})(e,i);if(!r)return;let c=e.getInstance(a.Table,e.o),h=o.Dom.closest(r,"table",e.editor),d=null,u=i===s.KEY_LEFT||t.shiftKey,p=()=>(0,n.call)(u?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,h);switch(i){case s.KEY_TAB:case s.KEY_LEFT:(d=p())||(c.appendRow(h,!!u&&h.querySelector("tr"),!u),d=p());break;case s.KEY_UP:case s.KEY_DOWN:{let e=c.formalMatrix(h),[t,o]=c.formalCoordinate(h,r);i===s.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)i===s.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,i===s.KEY_RIGHT||i===s.KEY_DOWN);else{let t=e.createInside.element("br");d.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},30500(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(27795),l=i(28077),c=i(65946),h=i(91206);i(12266);var d=i(87624),u=i(58317);class p extends h.Plugin{get ui(){return new u.UISearch(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(e){let t=a.Dom.closest(e,a.Dom.isElement,this.j.editor);t||(t=a.Dom.prev(e,a.Dom.isElement,this.j.editor)),t&&t!==this.j.editor&&(0,c.scrollIntoViewIfNeeded)(t,this.j.editor,this.j.ed)}async calcCounts(e){return(await this.findQueryBounds(e,"walkerCount")).length}async findQueryBounds(e,t){let i=this[t];return i&&i.break(),i=new a.LazyWalker(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[t]=i,this.find(i,e).catch(e=>(r.IS_PROD,[]))}async findAndReplace(e){let t=await this.findQueryBounds(e,"walker");if(!t.length)return!1;let i=this.findCurrentIndexInRanges(t,this.j.s.range);-1===i&&(i=0);let s=t[i];if(s){try{let t=this.j.ed.createRange();t.setStart(s.startContainer,s.startOffset),t.setEnd(s.endContainer,s.endOffset),t.deleteContents();let o=this.j.createInside.text(this.ui.replace);a.Dom.safeInsertNode(t,o),(0,d.clearSelectionWrappers)(this.j),this.j.s.setCursorAfter(o),this.tryScrollToElement(o),this.cache={},this.ui.currentIndex=i,await this.findAndSelect(e,!0).catch(e=>(r.IS_PROD,null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(e,t){let i=await this.findQueryBounds(e,"walker");if(!i.length)return!1;this.previousQuery===e&&(0,d.getSelectionWrappers)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,d.clearSelectionWrappers)(this.j),this.drawPromise=this.__drawSelectionRanges(i)),this.previousQuery=e;let s=this.ui.currentIndex-1;s=-1===s?0:t?s===i.length-1?0:s+1:0===s?i.length-1:s-1,this.ui.currentIndex=s+1;let o=i[s];if(o){let e=this.j.ed.createRange();try{e.setStart(o.startContainer,o.startOffset),e.setEnd(o.endContainer,o.endOffset),this.j.s.selectRange(e)}catch(e){r.IS_PROD}return this.tryScrollToElement(o.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(e,t){return e.findIndex(e=>e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset)}async isValidCache(e){return(await e).every(e=>e.startContainer.isConnected&&e.startOffset<=(e.startContainer.nodeValue?.length??0)&&e.endContainer.isConnected&&e.endOffset<=(e.endContainer.nodeValue?.length??0))}async find(e,t){if(!t.length)return[];let i=this.cache[t];return i&&await this.isValidCache(i)?i:(this.cache[t]=this.j.async.promise(i=>{let s=new d.SentenceFinder(this.j.o.search.fuzzySearch);e.on("break",()=>{i([])}).on("visit",e=>(a.Dom.isText(e)&&s.add(e),!1)).on("end",()=>{i(s.ranges(t)??[])}).setWork(this.j.editor)}),this.cache[t])}__drawSelectionRanges(e){let{async:t,createInside:i,editor:s}=this.j;t.cancelAnimationFrame(this.wrapFrameRequest);let o=[...e],r,n=0;return t.promise(e=>{let a=()=>{do(r=o.shift())&&(0,d.highlightTextRanges)(this.j,r,o,i,s),n+=1;while(r&&n<=5)o.length?this.wrapFrameRequest=t.requestAnimationFrame(a):e()};a()})}onAfterGetValueFromEditor(e){e.value=(0,d.clearSelectionWrappersFromHTML)(e.value)}afterInit(e){if(e.o.useSearch){let t=this;e.e.on("beforeSetMode.search",()=>{this.ui.close()}).on(this.ui,"afterClose",()=>{(0,d.clearSelectionWrappers)(e),this.ui.currentIndex=0,this.ui.count=0,this.cache={},e.focus()}).on("click",()=>{this.ui.currentIndex=0,(0,d.clearSelectionWrappers)(e)}).on("change.search",()=>{this.cache={}}).on("keydown.search mousedown.search",e.async.debounce(()=>{this.ui.selInfo&&(e.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()},e.defaultTimeout)).on("searchNext.search searchPrevious.search",()=>(this.ui.isOpened||this.ui.open(),t.findAndSelect(t.ui.query,"searchNext"===e.e.current).catch(e=>{r.IS_PROD}))).on("search.search",(e,i=!0)=>(this.ui.currentIndex=0,t.findAndSelect(e||"",i).catch(e=>{r.IS_PROD}))),e.registerCommand("search",{exec:(e,i,s=!0)=>(i&&t.findAndSelect(i,s).catch(e=>{r.IS_PROD}),!1)}).registerCommand("openSearchDialog",{exec:(e,i)=>(t.ui.open(i),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:(i,s,o)=>(e.o.readonly||t.ui.open(s,o,!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(e){(0,n.cached)(this,"ui")?.destruct(),e.e.off(".search")}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"find",group:"search"}]),(0,s._)(this,"previousQuery",""),(0,s._)(this,"drawPromise",null),(0,s._)(this,"walker",null),(0,s._)(this,"walkerCount",null),(0,s._)(this,"cache",{}),(0,s._)(this,"wrapFrameRequest",0)}}(0,o.__decorate)([n.cache],p.prototype,"ui",null),(0,o.__decorate)([(0,n.watch)("ui:needUpdateCounters")],p.prototype,"updateCounters",null),(0,o.__decorate)([(0,n.watch)("ui:pressReplaceButton")],p.prototype,"onPressReplaceButton",null),(0,o.__decorate)([n.autobind],p.prototype,"findQueryBounds",null),(0,o.__decorate)([n.autobind],p.prototype,"findAndReplace",null),(0,o.__decorate)([n.autobind],p.prototype,"findAndSelect",null),(0,o.__decorate)([n.autobind],p.prototype,"find",null),(0,o.__decorate)([(0,n.watch)(":afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),l.pluginSystem.add("search",p)},30893(e,t,i){"use strict";i.d(t,{applyStyles:()=>l});var s=i(81937),o=i(23211),r=i(4040),n=i(28723);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=s.globalDocument.createElement("iframe");t.style.display="none",s.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,n.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!s.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch{}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},31125(e,t,i){"use strict";i.d(t,{elementsMap:()=>o});let s=new WeakMap,o=e=>{let t=s.get(e);return t||(t={},s.set(e,t)),t}},31230(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},31262(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(68616),n=i(23211),a=i(28077),l=i(71125),c=i(91206);i(75143);var h=i(73302),d=i(86581),u=i(43219);class p extends c.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,a.extendLang)(u),(0,l.keys)(t,!1).forEach(i=>{i.split("|").forEach(s=>{s=s.trim().toLowerCase(),this._commandToWord[s]=t[i];let o=e.i18n(s);o!==s&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){n.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{n.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),n.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:s}=i,o=i.current();if(i.isCollapsed()&&n.Dom.isText(o)&&n.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,s.setStartAfter(o),i.selectRange(s),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,d.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,s._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,s._)(this,"messagePopup",void 0),(0,s._)(this,"__hidePopupTimeout",void 0),(0,s._)(this,"_commandToWord",{})}}(0,o.__decorate)([(0,r.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),(0,o.__decorate)([(0,r.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),h.Jodit.plugins.add("speech-recognize",p)},31365(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},31534(e,t,i){"use strict";i.d(t,{isViewObject:()=>o});var s=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,s.isFunction)(e.constructor)&&e.isView)}},31635(e,t,i){"use strict";i.d(t,{__decorate:()=>s});function s(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}Object.create||((e,t,i,s)=>{void 0===s&&(s=i),e[s]=t[i]}),Object.create||((e,t)=>{e.default=t});"function"==typeof SuppressedError&&SuppressedError},32013(e){e.exports='<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>'},32328(e,t,i){"use strict";function s(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:()=>s})},32560(e,t,i){"use strict";i.d(t,{sound:()=>r});var s=i(81937),o=i(94092);function r({sec:e=.1,frequency:t=o.PII,gain:i=.1,type:n="sine"}={}){if(!s.globalWindow||void 0===s.globalWindow.AudioContext&&void 0===s.globalWindow.webkitAudioContext)return;let a=new(s.globalWindow.AudioContext||s.globalWindow.webkitAudioContext),l=a.createGain(),c=a.createOscillator();c.type=n,c.frequency.value=t,c.connect(l),l.connect(a.destination),c.start(),c.stop(a.currentTime+e),l.gain.value=i}},32855(e,t,i){"use strict";i.d(t,{Response:()=>o});var s=i(25045);class o{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(e,t,i,o){(0,s._)(this,"status",void 0),(0,s._)(this,"statusText",void 0),(0,s._)(this,"request",void 0),(0,s._)(this,"body",void 0),this.request=e,this.status=t,this.statusText=i,this.body=o}}},33201(e,t,i){"use strict";i.d(t,{ConnectionError:()=>o.ConnectionError,OptionsError:()=>o.OptionsError,abort:()=>o.abort,connection:()=>s.connection,error:()=>s.error,isAbort:()=>o.isAbort,options:()=>s.options});var s=i(38027),o=i(29953)},33494(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>s,cs_cz:()=>s,de:()=>s,es:()=>s,fa:()=>s,fi:()=>s,fr:()=>s,he:()=>s,hu:()=>s,id:()=>s,it:()=>s,ja:()=>s,ko:()=>s,mn:()=>s,nl:()=>s,no:()=>s,pl:()=>s,pt_br:()=>s,ru:()=>s,tr:()=>s,ua:()=>s,zh_cn:()=>s,zh_tw:()=>s});var s=i(41324)},33511(e,t,i){"use strict";i.d(t,{Stack:()=>o});var s=i(25045);class o{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(e){(0,s._)(this,"size",void 0),(0,s._)(this,"commands",void 0),(0,s._)(this,"stackPosition",void 0),this.size=e,this.commands=[],this.stackPosition=-1}}},33831(e,t,i){"use strict";i(5266).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},33915(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:()=>s.removeExtraBr});var s=i(14841)},34027(e,t,i){"use strict";i.d(t,{getScrollParent:()=>function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),n=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==n&&"hidden"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||s.globalDocument.scrollingElement||s.globalDocument.body}});var s=i(81937),o=i(23211),r=i(93640)},34045(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},34142(e,t,i){"use strict";var s=i(28077);i(48899),s.pluginSystem.add("video",e=>{e.registerButton({name:"video",group:"media"})})},34269(e,t,i){"use strict";i.d(t,{elementToItem:()=>c,getItem:()=>l,nativeListeners:()=>h});var s=i(27795),o=i(65946),r=i(61334),n=i(31125),a=i(53202);let l=(e,t,i="a")=>s.Dom.closest(e,e=>s.Dom.isTag(e,i),t),c=(e,t)=>{let{key:i}=e.dataset,{item:s}=t[i||""];return s};function h(){let e=!1,t=(0,n.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",t=>{let s=l(t.target,i.container);s&&i.o.moveFolder&&(e=s)}).on(i.tree.container,"drop",t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let s=(0,o.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item"))||e.classList.contains(this.files.getFullElName("item"))&&(s+=(0,o.attr)(e,"-name"),!i.o.moveFile))return!1;let r=l(t.target,i.container);r&&(i.dataProvider.move(s,(0,o.attr)(r,"-path")||"",(0,o.attr)(r,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>(0,a.loadTree)(this)).catch(i.status),e=!1)}}).on(i.files.container,"contextmenu",(0,r.default)(i)).on(i.files.container,"click",e=>{(0,o.ctrlKey)(e)||(this.state.activeElements=[])}).on(i.files.container,"click",e=>{let s=l(e.target,i.container);if(!s)return;let r=c(s,t);if(r)return(0,o.ctrlKey)(e)?i.state.activeElements=[...i.state.activeElements,r]:i.state.activeElements=[r],e.stopPropagation(),!1}).on(i.files.container,"dragstart",t=>{if(i.o.moveFile){let s=l(t.target,i.container);s&&(e=s)}}).on(i.container,"drop",e=>e.preventDefault())}},34287(e,t,i){"use strict";i.d(t,{checkBR:()=>n});var s=i(81937),o=i(23211),r=i(60898);function n(e,t,i){let n=!!o.Dom.closest(e,["pre","blockquote"],t.editor),l=!n&&o.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===s.BR.toLowerCase()||l||i&&!n||!i&&n){if(n&&(e=>{let t=a(a(e));return!!t&&(o.Dom.safeRemove(a(e)),o.Dom.safeRemove(t),!0)})(e))return!1;let i=t.createInside.element("br");if(o.Dom.before(e,i),!o.Dom.findNotEmptySibling(i,!1)){let t=i.cloneNode();o.Dom.after(i,t),o.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(i,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},34396(e,t,i){"use strict";i.d(t,{ProgressBar:()=>r});var s=i(23211),o=i(96007);class r extends o.UIElement{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return s.Dom.safeRemove(this.container),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},34582(e,t,i){"use strict";i.d(t,{toggleOrderedList:()=>c});var s=i(23211),o=i(28712),r=i(17481),n=i(82794),a=i(98394),l=i(97110);function c(e,t,i,s){if(!t)return s;let o=t.parentElement;if(!o)return s;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,s,e,o);if(void 0!==r)return r;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(s!==a.UNWRAP){let r=(0,n.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(s===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let s=h(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,s,i);return c(a.REPLACE,r,e),a.REPLACE}}let d=h(a.UNWRAP,o,t,i,e);return c(a.UNWRAP,d,e),a.UNWRAP}function h(e,t,i,n,l){let c=n.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return c?((0,o.assert)(s.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,r.extractSelectedPart)(t,i,n),(0,o.assert)(s.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),s.Dom.unwrap(i.parentElement),s.Dom.replace(i,"br"!==n.o.enter.toLowerCase()?n.o.enter:n.createInside.fragment(),n.createInside))}},34672(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:()=>n});var s=i(23211),o=i(28723),r=i(65710);function n(e,t,i){let n=s.Dom.closest(i,["ol","ul"],t.editor);if(!n)return;let a=n.parentElement,l=s.Dom.isLeaf(a),c=l?a:n,h=t.s.createRange();h.setStartAfter(i),h.setEndAfter(n);let d=h.extractContents();s.Dom.after(c,e),s.Dom.safeRemove(i),(0,o.$$)("li",n).length||s.Dom.safeRemove(n);let u=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);d.querySelector("li")&&(l?u.appendChild(d):s.Dom.after(u,d))}},34689(e,t,i){"use strict";i(5266).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},34693(e,t,i){"use strict";i.d(t,{checkBlockNesting:()=>o});var s=i(23211);function o(e,t){if(s.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&s.Dom.isBlock(t)){let t=s.Dom.furthest(e.s.current(),s.Dom.isBlock,e.editor);t&&!e.o.dtd.blockLimits[t.tagName.toLowerCase()]&&(e.s.setCursorAfter(t),s.Dom.isEmpty(t)&&s.Dom.safeRemove(t))}}},35099(e,t,i){"use strict";i.d(t,{View:()=>S});var s=i(25045),o=i(31635),r=i(16964),n=i(80251),a=i(69364),l=i(81937),c=i(76517),h=i(51676),d=i(24968),u=i(29200),p=i(27795),m=i(1496),g=i(28077),f=i(65946),_=i(24475),v=i(23183),b=i(81987),y=i(34396),w=i(10081);class S extends n.Component{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,f.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return _.Storage.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(e){return new w.UIMessages(this,e)}get storage(){return _.Storage.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get progressbar(){return new y.ProgressBar(this)}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return(0,f.i18n)(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return S.version}static getVersion(){return S.version}initOptions(e){this.options=(0,f.ConfigProto)(e||{},(0,f.ConfigProto)(this.options||{},S.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(e){if(!e)return;let t=e?.events;t&&Object.keys(t).forEach(e=>this.e.on(e,t[e]))}getInstance(e,t){let i=(0,f.isFunction)(e)?e.prototype.className():e,s=this.e.fire((0,f.camelCase)("getInstance_"+i),t);if(s)return s;let o=(0,f.isFunction)(e)?e:g.modules[i],n=this.__modulesInstances;if(!(0,f.isFunction)(o))throw(0,f.error)("Need real module name");if(!n.has(i)){let e=o.prototype instanceof r.ViewComponent?new o(this,t):new o(t);this.components.add(e),n.set(i,e)}return n.get(i)}addDisclaimer(e){this.container.appendChild(e)}beforeDestruct(){this.e.fire(a.STATUSES.beforeDestruct,this),this.components.forEach(e=>{(0,f.isDestructable)(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}destruct(){this.isDestructed||((0,h.cached)(this,"progressbar")?.destruct(),(0,h.cached)(this,"message")?.destruct(),this.events&&(this.events.destruct(),this.events=void 0),(0,h.cached)(this,"buffer")?.clear(),p.Dom.safeRemove(this.container),super.destruct())}constructor(e,t=!1){super(),(0,s._)(this,"isJodit",void 0),(0,s._)(this,"isView",void 0),(0,s._)(this,"parent",void 0),(0,s._)(this,"mods",void 0),(0,s._)(this,"id",void 0),(0,s._)(this,"components",void 0),(0,s._)(this,"create",void 0),(0,s._)(this,"__container",void 0),(0,s._)(this,"events",void 0),(0,s._)(this,"OPTIONS",void 0),(0,s._)(this,"__options",void 0),(0,s._)(this,"__isFullSize",void 0),(0,s._)(this,"__whoLocked",void 0),(0,s._)(this,"isLockedNotBy",void 0),(0,s._)(this,"__modulesInstances",void 0),this.isJodit=t,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=S.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=new Date().getTime().toString(),this.initOptions(e),this.initOwners(),this.events=new m.EventEmitter(this.od),this.create=new c.Create(this.od),this.__container=this.c.div("jodit "+this.componentName)}}(0,s._)(S,"ES",l.ES),(0,s._)(S,"version",l.APP_VERSION),(0,s._)(S,"esNext",l.IS_ES_NEXT),(0,s._)(S,"esModern",l.IS_ES_MODERN),(0,s._)(S,"defaultOptions",void 0),(0,o.__decorate)([h.cache],S.prototype,"buffer",null),(0,o.__decorate)([h.cache],S.prototype,"message",null),(0,o.__decorate)([h.cache],S.prototype,"storage",null),(0,o.__decorate)([h.cache],S.prototype,"c",null),(0,o.__decorate)([h.cache],S.prototype,"e",null),(0,o.__decorate)([h.cache],S.prototype,"progressbar",null),(0,o.__decorate)([(0,u.hook)(a.STATUSES.beforeDestruct)],S.prototype,"beforeDestruct",null),(S=(0,o.__decorate)([(0,d.derive)(b.Mods,v.Elms)],S)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},35104(e,t,i){"use strict";i.d(t,{replaceOldTags:()=>o});var s=i(23211);function o(e,t,i){let o=((e,t,i)=>{if(!i||!s.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?s.Dom.replace(t,o,e.createInside,!0,!1):t})(e,t,e.o.cleanHTML.replaceOldTags);return t!==o?(t=o,!0):i}},35676(e,t,i){"use strict";i.d(t,{UISeparator:()=>n});var s=i(31635),o=i(91672),r=i(96007);class n extends r.UIElement{className(){return"UISeparator"}}n=(0,s.__decorate)([o.component],n)},35718(e,t,i){"use strict";i.d(t,{idle:()=>n});var s=i(16964),o=i(91565),r=i(33201);function n(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(s.STATUSES.ready,e=>{let{async:i}=e,s=e[t];e[t]=(...t)=>i.requestIdleCallback(s.bind(e,...t))})}}},36310(e,t,i){"use strict";i.d(t,{parseQuery:()=>s});let s=e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let s=i[e].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1]||"")}return t}},36327(e){e.exports='<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>'},36339(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},36400(e,t,i){"use strict";i.d(t,{dataBind:()=>r});var s=i(31534);let o=new WeakMap,r=(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,s.isViewObject)(e.j)&&(t=e.j.e),(0,s.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}},36664(e,t,i){"use strict";i.d(t,{selfListeners:()=>h});var s=i(65946),o=i(28686),r=i(17780),n=i(1305),a=i(1488),l=i(53202),c=i(43271);function h(){let e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,(0,a.loadItems)(i))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,(0,a.loadItems)(i))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):(0,s.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?r.DEFAULT_SOURCE_NAME:e.source}).on("removeFolder.filebrowser",e=>{i.confirm("Are you sure?","Delete",s=>{s&&t.folderRemove(e.path,e.name,e.source).then(e=>(i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",e=>{i.prompt("Enter new name","Rename",s=>{if(!(0,o.isValidName)(s))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,s,e.source).then(e=>(i.state.activeElements=[],i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{i.prompt("Enter Directory name","Create directory",s=>{t.createFolder(s,e.path,e.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",e=>{if(e){let e=[];i.state.activeElements.forEach(t=>{e.push((0,n.deleteFile)(i,t.file||t.name||"",t.sourceName))}),i.state.activeElements=[],Promise.all(e).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[e]=this.state.activeElements;c.openImageEditor.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,s,r)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",n=>{if(!(0,o.isValidName)(n))return i.status(i.i18n("Enter new name")),!1;t.fileRename(s,e,n,r).then(e=>{i.state.activeElements=[],i.status(e,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",e)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},36833(e,t,i){"use strict";i.d(t,{buildQuery:()=>o});var s=i(62101);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let a=t?t+"["+n+"]":n,l=e[n];i.push((0,s.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")}},37102(e,t,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest}},37333(e,t,i){"use strict";i.d(t,{Alert:()=>s.Alert,Confirm:()=>o.Confirm,Dialog:()=>r.Dialog,Prompt:()=>n.Prompt});var s=i(91535),o=i(88329),r=i(76841),n=i(74103)},37427(e,t,i){"use strict";i.d(t,{humanSizeToBytes:()=>s});let s=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],s=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?s*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}},37431(e,t,i){"use strict";i.d(t,{isInlineBlock:()=>n,removeFormatForCollapsedSelection:()=>r});var s=i(81937),o=i(23211);function r(e,t){let{s:i}=e,s=t;if(!s){s=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,s),t.collapse()}let r=o.Dom.furthest(s,n,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,s);else if(i.cursorOnTheRight(r))o.Dom.after(r,s);else{let e=i.splitSelection(r);e&&o.Dom.after(e,s)}t||(i.setCursorBefore(s),o.Dom.safeRemove(s))}function n(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,s.INSEPARABLE_TAGS)}},38027(e,t,i){"use strict";i.d(t,{connection:()=>r,error:()=>o,options:()=>n});var s=i(29953);function o(e){return TypeError(e)}function r(e){return new s.ConnectionError(e)}function n(e){return new s.OptionsError(e)}},38187(e,t,i){"use strict";var s=i(81937),o=i(5266),r=i(54308);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:s.INSERT_AS_HTML,text:"Keep"},{value:s.INSERT_AS_TEXT,text:"Insert as Text"},{value:s.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let n="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===n)return void e.execCommand("showPasteStorage");e.s.focus();let o="",a=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=await e[0].getType(s.TEXT_PLAIN);o=await new Response(t).text()}a=!1}catch(e){s.IS_PROD}if(a)try{o=await navigator.clipboard.readText(),a=!1}catch(e){s.IS_PROD}}a&&(a=0===(o=e.buffer.get(s.CLIPBOARD_ID)||"").length);let l=e.value;a?(e.ed.execCommand("paste"),(a=l===e.value)||e.e.fire("afterPaste")):o.length?((0,r.pasteInsertHtml)(null,e,o),e.e.fire("afterPaste")):a&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[n]:"Paste Storage"},isChildDisabled:e=>2>e.e.fire("pasteStorageList")}},38639(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>o.a,cs_cz:()=>o.a,de:()=>o.a,es:()=>o.a,fa:()=>o.a,fi:()=>o.a,fr:()=>o.a,he:()=>o.a,hu:()=>o.a,id:()=>o.a,it:()=>o.a,ja:()=>o.a,ko:()=>o.a,mn:()=>o.a,nl:()=>o.a,pl:()=>o.a,pt_br:()=>o.a,ru:()=>o.a,tr:()=>o.a,zh_cn:()=>o.a,zh_tw:()=>o.a});var s=i(41324),o=i.n(s)},38681(e){e.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},39e3(e,t,i){"use strict";var s=i(81937),o=i(27795),r=i(28077),n=i(93640);i(42360);var a=i(11917);let l=(e,t,i,s)=>{if(!t||e.has(t))return;let o=(0,a.getKey)(i.o.direction,t);e.add(t);let r=t.style[o]?parseInt(t.style[o],10):0;r+=i.o.indentMargin*("outdent"===s?-1:1),t.style[o]=r>0?r+"px":"",(0,n.attr)(t,"style")||(0,n.attr)(t,"style",null)};r.pluginSystem.add("indent",e=>{e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let t=t=>{let i=new Set,{enter:r,enterBlock:a}=e.o,c=r.toLowerCase()===s.BR,h=e.s.current();return c&&e.s.isCollapsed()&&h?l(i,o.Dom.wrapNextInline(h,a,e),e,t):(e.s.eachSelection(s=>{e.s.save();let h=!!s&&o.Dom.up(s,o.Dom.isBlock,e.editor);if(!h&&s&&(h=(0,n.call)(c?o.Dom.wrapNextInline:o.Dom.wrapInline,s,c?a:r.toLowerCase(),e)),!h)return e.s.restore(),!1;l(i,h,e,t),e.s.restore()}),e.synchronizeValues()),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})},39188(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:()=>n});var s=i(81937),o=i(23211);let r=new Set(["table","tbody","thead","tfoot","tr"]);function n(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,s.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return t.appendChild(i),!0}return i}},39199(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},39608(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:()=>o});var s=i(23211);function o(e,t){return!!s.Dom.closest(e,["style","script"],t)}},39709(e,t,i){"use strict";i.d(t,{ToolbarButton:()=>s.ToolbarButton,ToolbarContent:()=>o.ToolbarContent,ToolbarSelect:()=>r.ToolbarSelect});var s=i(22533),o=i(5772),r=i(61764)},39858(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},39978(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(28077),a=i(65946),l=i(91206);i(51034);let c="__jodit_imageprocessor_binded",h=c+"blob-id";class d extends l.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,r.cached)(e,"buffer"),i=t?.get(h);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(h)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(h);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,c)||((0,a.dataBind)(e,c,!0),e.complete||t.e.on(e,"load",function i(){t.isInDestruct||t.e?.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&((e,t)=>{if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;let i=t.src,s=(e=>{let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],s=new ArrayBuffer(t.length),o=new Uint8Array(s);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([s],{type:i})})(i);t.src=URL.createObjectURL(s),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(h)||{};r[t.src]=i,e.buffer.set(h,r)})(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}(0,s.__decorate)([(0,r.watch)(":afterGetValueFromEditor")],d.prototype,"onAfterGetValueFromEditor",null),(0,s.__decorate)([(0,r.watch)(":beforeSetElementValue")],d.prototype,"onBeforeSetElementValue",null),(0,s.__decorate)([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],d.prototype,"afterChange",null),n.pluginSystem.add("imageProcessor",d)},40013(e,t,i){"use strict";var s=i(17312),o=i(24497),r=i(5266);r.Config.prototype.enableDragAndDropFileToEditor=!0,r.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:e=>`files[${e}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:e=>e,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,s.isArray)(e.data.messages)?e.data.messages.join(" "):"",processFileName:(e,t,i)=>[e,t,i],process:e=>e.data,error(e){this.j.message.error(e.message,4e3)},getDisplayName:(e,t)=>e+t,defaultHandlerSuccess(e){let t=this.j||this;(0,o.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach((i,s)=>{let[o,r]=e.isImages&&e.isImages[s]?["img","src"]:["a","href"],n=t.createInside.element(o);n.setAttribute(r,e.baseurl+i),"a"===o&&(n.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,i)),"img"===o?t.s.insertImage(n,null,t.o.imageDefaultWidth):t.s.insertNode(n)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},40037(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},40253(e,t,i){"use strict";i.d(t,{getStrongControlTypes:()=>a});var s=i(17312),o=i(93640),r=i(5266),n=i(15982);function a(e,t){return((0,s.isArray)(e)?e:(0,o.keys)(e,!1).map(t=>{let i=e[t]||{};return(0,o.ConfigProto)({name:t},i)})).map(e=>(0,n.getControlType)(e,t||r.Config.defaultOptions.controls))}},40291(e,t,i){"use strict";var s=i(5266);s.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},s.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},s.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},s.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},s.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},s.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},41111(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},41134(e,t,i){"use strict";var s=i(81937),o=i(27795),r=i(28077),n=i(97228),a=i(57075),l=i(29434),c=i(5266),h=i(81576),d=i(59827),u=i.n(d);l.Icon.set("print",u()),c.Config.prototype.controls.print={exec(e){let t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,r.getContainer)(e,c.Config).appendChild(t);let i=()=>{e.e.off(e.ow,"mousemove",i),o.Dom.safeRemove(t)},s=t.contentWindow;if(s){e.e.on(s,"onbeforeunload onafterprint",i).on(e.ow,"mousemove",i),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",s.document,e),s.document.body.innerHTML=e.value):(s.document.write('<!doctype html><html lang="'+(0,n.defaultLanguage)(e.o.language)+'"><head><title></title></head><style>'+(0,h.generateCriticalCSS)(e)+"</style><body></body></html>"),s.document.close(),(0,a.previewBox)(e,void 0,"px",s.document.body));let t=s.document.createElement("style");t.innerHTML=`@media print {
183
+ body {
184
+ -webkit-print-color-adjust: exact;
185
+ }
186
+ }`,s.document.head.appendChild(t),s.focus(),s.print()}},mode:s.MODE_SOURCE+s.MODE_WYSIWYG,tooltip:"Print"},r.pluginSystem.add("print",e=>{e.registerButton({name:"print"})})},41324(t){"use strict";t.exports=e},41360(e,t,i){"use strict";i.d(t,{nonenumerable:()=>s});let s=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},42259(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:()=>n,findCorrectCurrentNode:()=>a,moveNodeInsideStart:()=>r.moveNodeInsideStart});var s=i(81937),o=i(23211),r=i(89817);function n(e,t,i,o){let r=e.nodeValue?.length?e.nodeValue:"";if(o&&r.replace((0,s.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let n=(0,s.INVISIBLE_SPACE_REG_EXP_START)().exec(r);return i&&(n&&n[0].length<t||!n&&t>0)}function a(e,t,i,s,r,n){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&s&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=n(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=n(t)}}}if(e&&!s&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t))t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(7470)},42360(e,t,i){"use strict";var s=i(27795),o=i(29434),r=i(5266),n=i(67176),a=i.n(n),l=i(14017),c=i.n(l),h=i(11917);o.Icon.set("indent",a()).set("outdent",c()),r.Config.prototype.controls.indent={tooltip:"Increase Indent"},r.Config.prototype.controls.outdent={isDisabled(e){let t=e.s.current();if(t){let i=s.Dom.closest(t,s.Dom.isBlock,e.editor);if(i){let t=(0,h.getKey)(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10},42462(e,t,i){"use strict";var s=i(28077),o=i(65946);i(8071),s.pluginSystem.add("color",e=>{e.registerButton({name:"brush",group:"color"});let t=(t,i,s)=>{let r=(0,o.normalizeColor)(s);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:r||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:r||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},42573(e,t,i){"use strict";i.d(t,{ToolbarCollection:()=>c});var s=i(25045),o=i(31635),r=i(84839),n=i(38027),a=i(4099),l=i(4274);class c extends a.UIList{className(){return"ToolbarCollection"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,l.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,l.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,n.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),(0,s._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,o.__decorate)([r.autobind],c.prototype,"__immediateUpdate",null),(0,o.__decorate)([(0,r.debounce)(e=>e.j.defaultTimeout,!0)],c.prototype,"update",null),(0,o.__decorate)([(0,r.hook)("ready")],c.prototype,"__initEvents",null),c=(0,o.__decorate)([r.component],c)},42766(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(28077),a=i(65946),l=i(60936);i(10685);let c="addnewline";class h extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(e){e&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(e){e.o.addNewLine&&(e.e.on(this.__line,"mousemove",e=>{e.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let e=this.j;e.e.off(e.editor,"."+c).off(e.container,"."+c).off("."+c).on([e.ow,e.ew,e.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(e.editor,"click."+c,this.__hide).on(e.container,"mouseleave."+c,this.__hide).on(e.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(e){let t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){let i=(0,a.offset)(t.editor,t,t.ed),s=e.pageY-t.ew.scrollX,o=t.createInside.element(t.o.enter);Math.abs(s-i.top)<Math.abs(s-(i.height+i.top))&&t.editor.firstChild?t.editor.insertBefore(o,t.editor.firstChild):t.editor.appendChild(o),t.s.setCursorIn(o),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}__onMouseMove(e){let t=this.j,i=t.ed.elementFromPoint(e.clientX,e.clientY);if(!l.Dom.isHTMLElement(i)||!l.Dom.isOrContains(t.editor,i))return;if(t.editor===i||this.__isMatchedTag(i)||(i=l.Dom.closest(i,this.__isMatchedTag,t.editor)),!i)return void this.__hide();if(this.__isMatchedTag(i)){let e=l.Dom.up(i,l.Dom.isBlock,t.editor);e&&e!==t.editor&&(i=e)}let s=(0,a.position)(i,this.j),o=!1,{clientY:r,clientX:n}=e;if(this.j.iframe){let{top:e,left:t}=(0,a.position)(this.j.iframe,this.j,!0);r+=e,n+=t}let c=this.j.o.addNewLineDeltaShow;Math.abs(r-s.top)<=c?(o=s.top,this.__isBeforeContent=!0):Math.abs(r-(s.top+s.height))<=c&&(o=s.top+s.height,this.__isBeforeContent=!1);let h=t.editor===i;!1===o||(!h||this.__isBeforeContent)&&(h||(0,a.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,i,this.__canGetFocus,t.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=o+"px",this.__current=i,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",n-s.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),l.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(...e){super(...e),(0,s._)(this,"__line",this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${l.Icon.get("enter")}</span></div>`)),(0,s._)(this,"__isMatchedTag",e=>!!(e&&this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase()))),(0,s._)(this,"__timeout",void 0),(0,s._)(this,"__isBeforeContent",!1),(0,s._)(this,"__current",void 0),(0,s._)(this,"__lineInFocus",!1),(0,s._)(this,"__isShown",!1),(0,s._)(this,"__hideForce",()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,l.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))}),(0,s._)(this,"__canGetFocus",e=>null!=e&&l.Dom.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)),(0,s._)(this,"__onClickLine",e=>{let t=this.j,i=t.createInside.element(t.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===t.editor?l.Dom.prepend(t.editor,i):this.__current.parentNode.insertBefore(i,this.__current):t.editor.appendChild(i),t.s.setCursorIn(i),(0,a.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.synchronizeValues(),this.__hideForce(),e.preventDefault()})}}(0,o.__decorate)([(0,r.watch)(":lock")],h.prototype,"onLock",null),(0,o.__decorate)([r.autobind],h.prototype,"__hide",null),(0,o.__decorate)([(0,r.watch)(":dblclick")],h.prototype,"onDblClickEditor",null),(0,o.__decorate)([(0,r.throttle)(e=>e.defaultTimeout)],h.prototype,"__onMouseMove",null),n.pluginSystem.add("addNewLine",h)},42820(e,t,i){"use strict";i.d(t,{LimitedStack:()=>o});var s=i(25045);class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){(0,s._)(this,"limit",void 0),(0,s._)(this,"stack",void 0),this.limit=e,this.stack=[]}}},43102(e,t,i){"use strict";var s,o=i(25045),r=i(31635),n=i(84839),a=i(27795),l=i(28077),c=i(65946),h=i(91206);i(65701);var d=((s=d||{})[s.IDLE=0]="IDLE",s[s.WAIT_DRAGGING=1]="WAIT_DRAGGING",s[s.DRAGGING=2]="DRAGGING",s);class u extends h.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>0)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),s=a.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);s&&(a.Dom.isTag(s.parentElement,"a")&&s.parentElement.firstChild===s&&s.parentElement.lastChild===s&&(s=s.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=(0,c.ctrlKey)(e),this.draggable=s.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",s),this.state=1,this.addDragListeners())}onDrag(e){if(!this.draggable||0===this.state)return;let t=e.clientX,i=e.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(t-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let t=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:t?.offsetWidth??100,height:t?.offsetHeight??100}),(0,l.getContainer)(this.j,u).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let e=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&a.Dom.isEmpty(t)&&!a.Dom.isCell(t)&&a.Dom.safeRemove(t),a.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...e){super(...e),(0,o._)(this,"dragList",[]),(0,o._)(this,"draggable",null),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"diffStep",10),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"state",0)}}(0,r.__decorate)([n.autobind],u.prototype,"onDragStart",null),(0,r.__decorate)([(0,n.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),(0,r.__decorate)([n.autobind],u.prototype,"onDragEnd",null),(0,r.__decorate)([n.autobind],u.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",u)},43218(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43219(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>s,cs_cz:()=>s,de:()=>s,es:()=>s,fa:()=>s,fi:()=>s,fr:()=>s,he:()=>s,hu:()=>s,id:()=>s,it:()=>s,ja:()=>s,ko:()=>s,mn:()=>s,nl:()=>s,no:()=>s,pl:()=>s,pt_br:()=>s,ru:()=>s,tr:()=>s,ua:()=>s,zh_cn:()=>s,zh_tw:()=>s});var s=i(41324)},43271(e,t,i){"use strict";i.d(t,{ImageEditor:()=>g,openImageEditor:()=>f});var s=i(25045),o=i(31635),r=i(16964),n=i(84839),a=i(27795),l=i(65946),c=i(59400),h=i(5266);i(54500);var d=i(8908);let u="jodit-image-editor",p="resize",m="crop";class g extends r.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(i=>{let s=new Date().getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+s:e+="?_tst="+s,this.image.setAttribute("src",e),this._dialog.open();let{widthInput:o,heightInput:r}=(0,l.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,o.value=this.naturalWidth.toString(),r.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===m&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",n),this.image.complete&&n()})}onTitleModeClick(e){let t=e.target,i=t?.parentElement;if(!i)return;(0,l.$$)(`.${u}__slider,.${u}__area`,this.editor).forEach(e=>e.classList.remove(`${u}_active`)),i.classList.add(`${u}_active`),this.activeTab=(0,l.attr)(i,"-area")||p;let s=this.editor.querySelector(`.${u}__area.${u}__area_`+this.activeTab);s&&s.classList.add(`${u}_active`),this.activeTab===m&&this.showCrop()}onChangeSizeInput(e){let t,i=e.target,{widthInput:s,heightInput:o}=(0,l.refs)(this.editor),r="widthInput"===(0,l.attr)(i,"data-ref"),n=parseInt(i.value,10),a=r?this.o.min_width:this.o.min_height,c=r?this.o.min_height:this.o.min_width;n>a&&((0,l.css)(this.image,r?"width":"height",n),this.resizeUseRatio&&(t=r?Math.round(n/this.ratio):Math.round(n*this.ratio))>c&&((0,l.css)(this.image,r?"height":"width",t),r?o.value=t.toString():s.value=t.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){this.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),this.clicked=!0,this.start_x=e.clientX,this.start_y=e.clientY,this.activeTab===m?(this.top_x=(0,l.css)(this.cropHandler,"left"),this.top_y=(0,l.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){if(!this.clicked)return;let{widthInput:t,heightInput:i}=(0,l.refs)(this.editor);this.diff_x=e.clientX-this.start_x,this.diff_y=e.clientY-this.start_y,this.activeTab===p&&this.resizeUseRatio||this.activeTab===m&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===p?(this.new_w>this.o.resizeMinWidth&&((0,l.css)(this.image,"width",this.new_w+"px"),t.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,l.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,l.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,l.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,l.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+u).off("."+u),super.destruct())}constructor(e){super(e),(0,s._)(this,"options",void 0),(0,s._)(this,"onSave",void 0),(0,s._)(this,"resizeUseRatio",!0),(0,s._)(this,"cropUseRatio",!0),(0,s._)(this,"_dialog",void 0),(0,s._)(this,"image",void 0),(0,s._)(this,"cropImage",void 0),(0,s._)(this,"clicked",!1),(0,s._)(this,"target",void 0),(0,s._)(this,"start_x",0),(0,s._)(this,"start_y",0),(0,s._)(this,"top_x",0),(0,s._)(this,"top_y",0),(0,s._)(this,"width",0),(0,s._)(this,"height",0),(0,s._)(this,"activeTab",p),(0,s._)(this,"naturalWidth",0),(0,s._)(this,"naturalHeight",0),(0,s._)(this,"ratio",0),(0,s._)(this,"new_h",0),(0,s._)(this,"new_w",0),(0,s._)(this,"diff_x",0),(0,s._)(this,"diff_y",0),(0,s._)(this,"buttons",void 0),(0,s._)(this,"editor",void 0),(0,s._)(this,"resize_box",void 0),(0,s._)(this,"crop_box",void 0),(0,s._)(this,"sizes",void 0),(0,s._)(this,"resizeHandler",void 0),(0,s._)(this,"cropHandler",void 0),(0,s._)(this,"cropBox",{x:0,y:0,w:0,h:0}),(0,s._)(this,"resizeBox",{w:0,h:0}),(0,s._)(this,"calcCropBox",()=>{let e=this.crop_box.parentNode,t=.8*e.offsetWidth,i=.8*e.offsetHeight,s=t,o=i,{naturalWidth:r,naturalHeight:n}=this;t>r&&i>n?(s=r,o=n):this.ratio>t/i?(s=t,o=t/r*n):(s=i/n*r,o=i),(0,l.css)(this.crop_box,{width:s,height:o})}),(0,s._)(this,"showCrop",()=>{if(!this.cropImage)return;this.calcCropBox();let e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=g.calcValueByPercent(e,this.o.cropDefaultWidth);let t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=g.calcValueByPercent(t,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")}),(0,s._)(this,"updateCropBox",()=>{if(!this.cropImage)return;let e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)}),(0,s._)(this,"updateResizeBox",()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight}),(0,s._)(this,"setHandlers",()=>{let e=this,{widthInput:t,heightInput:i}=(0,l.refs)(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown."+u,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+u,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${u}__slider-title`)),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:s,keepAspectRatioCrop:o}=(0,l.refs)(this.editor);s&&s.addEventListener("change",()=>{this.resizeUseRatio=s.checked}),o&&o.addEventListener("change",()=>{this.cropUseRatio=o.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{(0,l.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=(0,l.css)(e.cropHandler,"left"),i=(0,l.css)(e.cropHandler,"top"),s=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),i<0&&(i=0),t+s>e.cropImage.offsetWidth&&(s=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=s/e.ratio)),i+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-i,e.cropUseRatio&&(s=o*e.ratio)),(0,l.css)(e.cropHandler,{width:s,height:o,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(s=>{s.onAction(()=>{let o={action:e.activeTab,box:e.activeTab===p?e.resizeBox:e.cropBox};switch(s){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!(0,l.trim)(t))return e.j.alert("The name should not be empty"),!1;e.onSave(t,o,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.onSave(void 0,o,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===p?((0,l.css)(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),i.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})}),this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:h.Config.defaultOptions.imageeditor;let t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,c.Button)(this.j,"update","Reset"),save:(0,c.Button)(this.j,"save","Save"),saveas:(0,c.Button)(this.j,"save","Save as ...")},this.activeTab=t.resize?p:m,this.editor=(0,d.form)(this.j,this.options);let{resizeBox:i,cropBox:o}=(0,l.refs)(this.editor);this.resize_box=i,this.crop_box=o,this.sizes=this.editor.querySelector(`.${u}__area.${u}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${u}__resizer`),this.cropHandler=this.editor.querySelector(`.${u}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}}function f(e,t,i,s,o,r){return this.getInstance("ImageEditor",this.o).open(e,(e,n,a,c)=>(0,l.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,i,s,t,e,n.box).then(e=>{e&&(a(),o&&o())}).catch(e=>{c(e),r&&r(e)}))}(0,s._)(g,"calcValueByPercent",(e,t)=>{let i,s=t.toString(),o=parseFloat(e.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(s))?parseInt(s,10):(i=/^([-+]?[0-9.]+)%$/.exec(s))?Math.round(o*(parseFloat(i[1])/100)):o||0}),(0,o.__decorate)([n.autobind],g.prototype,"hide",null),(0,o.__decorate)([n.autobind],g.prototype,"open",null),(0,o.__decorate)([n.autobind],g.prototype,"onTitleModeClick",null),(0,o.__decorate)([(0,n.debounce)(),n.autobind],g.prototype,"onChangeSizeInput",null),(0,o.__decorate)([n.autobind],g.prototype,"onResizeHandleMouseDown",null),(0,o.__decorate)([n.autobind],g.prototype,"onGlobalMouseUp",null),(0,o.__decorate)([(0,n.throttle)(10)],g.prototype,"onGlobalMouseMove",null),g=(0,o.__decorate)([n.component],g)},43354(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(51676),n=i(28077),a=i(65946);i(81008);class l{init(e){this.buttons?.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{let i=e.s.html,s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(o.TEXT_PLAIN,(0,a.stripTags)(i)),s.setData(o.TEXT_HTML,i)),e.buffer.set(o.CLIPBOARD_ID,i),e.e.fire("pasteStack",{html:i,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),e?.events?.fire("afterCopy",i)})}destruct(e){(0,r.cached)(e,"buffer")?.set(o.CLIPBOARD_ID,""),e?.events?.off("."+o.CLIPBOARD_ID)}constructor(){(0,s._)(this,"jodit",void 0),(0,s._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}n.pluginSystem.add("clipboard",l)},43379(e,t,i){"use strict";i.d(t,{reset:()=>a});var s=i(81937),o=i(91565),r=i(89308);let n={};function a(e){if(!(e in n)){let t=s.globalDocument.createElement("iframe");try{if(t.src="about:blank",s.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,r.get)(e,t.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,o.isFunction)(i)&&(n[e]=i.bind(a))}catch(e){if(!s.IS_PROD)throw e}finally{t.parentNode?.removeChild(t)}}return n[e]??null}},44322(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(28077),a=i(72412),l=i(80991),c=i(18855);i(80202);class h extends c.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,l.css)(e.editor,{minHeight:"100%"}),(0,l.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&i<e&&(e=i)}(0,l.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&e>i&&(e=i)}(0,l.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}this.j.container&&(0,l.css)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");let{clientHeight:s,clientWidth:o}=this.j.container;(e!==s||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...e){super(...e),(0,s._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,o.__decorate)([(0,r.throttle)()],h.prototype,"__initialize",null),(0,o.__decorate)([r.autobind],h.prototype,"__resizeWorkspaceImd",null),h=(0,o.__decorate)([r.autobind],h),n.pluginSystem.add("size",h)},44599(e,t,i){"use strict";i.r(t),i.d(t,{en:()=>s,es:()=>o});var s=i(17918),o=i(41324)},44636(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44998(e,t,i){"use strict";i.d(t,{isLicense:()=>o});var s=i(85932);let o=e=>(0,s.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},45062(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45219(e,t,i){"use strict";i.d(t,{visitNodeWalker:()=>n});var s=i(81937),o=i(91560);let r=Object.keys(o);function n(e,t,i,n,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let h of r){if(!(c&&c.has(h))){if(l=(0,o[h])(e,t,l,i,n,a),!s.IS_PROD,!t.isConnected)return!0}}return l}},45244(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45664(e,t,i){"use strict";i.d(t,{asArray:()=>s.asArray,splitArray:()=>o.splitArray,toArray:()=>r.toArray});var s=i(78982),o=i(32328),r=i(88475)},45674(e){e.exports='<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>'},45778(e,t,i){"use strict";i.d(t,{formTemplate:()=>r});var s=i(59400),o=i(5658);let r=e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:r,selectSizeClassName:n,selectMultipleClassName:a,selectOptionsClassName:l}=e.o.link;return new o.UIForm(e,[new o.UIBlock(e,[new o.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new o.UIBlock(e,["input"===r?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:n,multiple:a,options:l}):null]):null,t?new o.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new o.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new o.UIBlock(e,[new s.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new s.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},45844(e,t,i){"use strict";i.d(t,{TextAreaEditor:()=>a});var s=i(25045),o=i(23211),r=i(80991),n=i(94193);class a extends n.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),s=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(s,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){this.instance.setAttribute("placeholder",e)}setReadOnly(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...e){super(...e),(0,s._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout))}}},46248(e,t,i){"use strict";i.d(t,{isHTML:()=>o});var s=i(85932);let o=e=>(0,s.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},46303(e,t,i){"use strict";i.d(t,{splitFragment:()=>n});var s=i(23211),o=i(60898),r=i(65710);function n(e,t,i){let n=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=s.Dom.isLeaf(i),h=i.tagName.toLowerCase()===l||c,d=n.cursorOnTheRight(i,e),u=n.cursorOnTheLeft(i,e);if(!h&&(d||u)){d?s.Dom.after(i,e):s.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),u&&!d&&s.Dom.prepend(i,e);return}let p=n.splitSelection(i,e);(0,o.scrollIntoViewIfNeeded)(p,t.editor,t.ed)}},46363(e,t,i){"use strict";i.d(t,{Snapshot:()=>a});var s=i(25045),o=i(16964),r=i(81937),n=i(23211);class a extends o.ViewComponent{className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;let t=e.parentNode.childNodes,i=0,s=null;for(let o=0;o<t.length;o+=1){if(!s||this.isIgnoredNode(t[o])||n.Dom.isText(s)&&n.Dom.isText(t[o])||(i+=1),t[o]===e)return i;s=t[o]}return 0}static strokeOffset(e,t){for(;n.Dom.isText(e);)e=e.previousSibling,n.Dom.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){let t=[];if(!e||!e.parentNode||!n.Dom.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!a.isIgnoredNode(e)&&t.push(a.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t=this.j.editor,i;for(i=0;t&&i<e.length;i+=1)t=t.childNodes[e[i]];return t}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!r.IS_PROD)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);let t=this.j.s.sel;if(t&&t.rangeCount){let i=t.getRangeAt(0),s=this.calcHierarchyLadder(i.startContainer),o=this.calcHierarchyLadder(i.endContainer),r=a.strokeOffset(i.startContainer,i.startOffset),n=a.strokeOffset(i.endContainer,i.endOffset);s.length||i.startContainer===this.j.editor||(r=0),o.length||i.endContainer===this.j.editor||(n=0),e.range={startContainer:s,startOffset:r,endContainer:o,endOffset:n}}return e}restore(e){this.transaction(()=>{let t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){let{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){let t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),r.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return n.Dom.isText(e)&&!e.nodeValue||n.Dom.isTemporary(e)}__getCleanedEditorValue(e){let t=e.cloneNode(!0);return n.Dom.temporaryList(t).forEach(n.Dom.unwrap),t.innerHTML}constructor(...e){super(...e),(0,s._)(this,"__isBlocked",!1),(0,s._)(this,"__levelOfTransaction",0)}}},46533(e,t,i){"use strict";i.d(t,{sendFiles:()=>r});var s=i(65946),o=i(77911);function r(e,t,i,r,n){if(!t)return Promise.reject((0,s.error)("Need files"));let{o:a}=e,l=(0,s.toArray)(t);if(!l.length)return Promise.reject((0,s.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&((e,t,i,o,r,n)=>{let a,l;for(l=0;l<e.length;l+=1)if((a=e[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),h=c[1]?c[1].toLowerCase():"";if(!t.includes(h))continue;let d=new FileReader;i.push(o.j.async.promise((e,t)=>{d.onerror=t,d.onloadend=()=>{let t={baseurl:"",files:[d.result],isImages:[!0]};((0,s.isFunction)(r)?r:n).call(o,t),e(t)},d.readAsDataURL(a)})),e[l]=null}})(l,a.imagesExtensions,c,e,i,a.defaultHandlerSuccess),(l=l.filter(e=>e)).length){let t,h=new FormData;h.append(a.pathVariableName,e.path),h.append("source",e.source);for(let i=0;i<l.length;i+=1)if(t=l[i]){let s=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",n=l[i].name||Math.random().toString().replace(".","");if(!s&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(n)||(n+="."+r)}let[c,d,u]=a.processFileName.call(e,a.filesVariableName(i),l[i],n);h.append(c,d,u)}n&&n(h),a.data&&(0,s.isPlainObject)(a.data)&&Object.keys(a.data).forEach(e=>{h.append(e,a.data[e])}),a.prepareData.call(e,h),c.push((0,o.send)(e,h).then(t=>(a.isSuccess.call(e,t)?((0,s.isFunction)(i)?i:a.defaultHandlerSuccess).call(e,a.process.call(e,t)):((0,s.isFunction)(r)?r:a.defaultHandlerError).call(e,(0,s.error)(a.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},47670(e,t,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},47744(e,t,i){"use strict";i.d(t,{readValuesFromImage:()=>l});var s=i(7909),o=i(26633),r=i(79310),n=i(18380),a=i(57339);async function l(e,t){let{sourceImage:i,values:l}=t;return(0,o.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,s.attr)(i,"id")||"",l.imageTitle=(0,s.attr)(i,"title")||"",l.imageAlt=(0,s.attr)(i,"alt")||"",l.style=(0,s.attr)(i,"style")||"",l.classes=((0,s.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,n.readMargins)(i,l,t),(0,r.readLink)(t,e,l),l.imageSrc=(0,s.attr)(i,"src")||"",(0,a.readSizes)(i,l,t)}},47760(e,t,i){"use strict";i.d(t,{alreadyLoadedList:()=>r,appendScriptAsync:()=>a,appendStyleAsync:()=>l,loadNext:()=>function e(t,i,o=0){return(0,s.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()},loadNextStyle:()=>function e(t,i,o=0){return(0,s.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}});var s=i(85932),o=i(91321);let r=new Map,n=e=>(t,i)=>{if(r.has(i))return r.get(i);let s=e(t,i);return r.set(i,s),s},a=n((e,t)=>e.async.promise((i,s)=>{if(e.isInDestruct)return s();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",s).one(r,"load",i),e.od.body.appendChild(r)})),l=n((e,t)=>e.async.promise((i,s)=>{if(e.isInDestruct)return s();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",s),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},47919(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:()=>o});var s=i(23211);function o(e,t,i){let{s:o}=e,r=s.Dom.closest(t,i,e.editor);r&&(o.cursorOnTheRight(r,t)?s.Dom.after(r,t):o.cursorOnTheLeft(r,t)&&s.Dom.before(r,t))}},48007(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48009(e,t,i){"use strict";i.d(t,{normalizeUrl:()=>s});let s=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},48155(e,t,i){"use strict";i.d(t,{safeHTML:()=>r,sanitizeHTMLElement:()=>n});var s=i(23211),o=i(93640);function r(e,t){(s.Dom.isElement(e)||s.Dom.isFragment(e))&&(t.removeOnError&&(n(e),(0,o.$$)("[onerror]",e).forEach(e=>n(e,t))),t.safeJavaScriptLink&&(n(e),(0,o.$$)('a[href^="javascript"]',e).forEach(e=>n(e,t))))}function n(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!s.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let a=e.getAttribute("href");return t&&a&&0===a.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+a),r=!0),r}},48290(e,t,i){"use strict";var s=i(27795),o=i(65946),r=i(93640),n=i(29434),a=i(5266),l=i(67447),c=i.n(l);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},n.Icon.set("table",c()),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(e,t,i,n){e.editor.normalize();let a=e.history.snapshot.make(),l=n.control,c=l.data&&l.data.rows?l.data.rows:10,h=l.data&&l.data.cols?l.data.cols:10,d=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(l.data){let e=l.data.classList;Object.keys(e).forEach(i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),u=d.querySelectorAll("span")[0],p=d.querySelectorAll("span")[1],m=d.querySelector(".jodit-form__container"),g=d.querySelector(".jodit-form__options"),f=[],_=c*h;for(let t=0;t<_;t+=1)f[t]||f.push(e.c.element("span",{dataIndex:t}));if(e.e.on(m,"mousemove",(e,t)=>{let i=e.target;if(!s.Dom.isTag(i,"span"))return;let o=void 0===t||isNaN(t)?parseInt((0,r.attr)(i,"-index")||"0",10):t||0,n=Math.ceil((o+1)/h),a=o%h+1;for(let e=0;e<f.length;e+=1)a>=e%h+1&&n>=Math.ceil((e+1)/h)?f[e].className="jodit_hovered":f[e].className="";p.textContent=a.toString(),u.textContent=n.toString()}).on(m,"touchstart mousedown",t=>{let n=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!s.Dom.isTag(n,"span"))return;let l=parseInt((0,r.attr)(n,"-index")||"0",10),c=Math.ceil((l+1)/h),d=l%h+1,u=e.createInside,p=u.element("tbody"),m=u.element("table");m.appendChild(p);let f=null,_,v;for(let e=1;c>=e;e+=1){_=u.element("tr");for(let e=1;e<=d;e+=1)v=u.element("td"),f||(f=v),(0,o.css)(v,"width",(100/d).toFixed(4)+"%"),v.appendChild(u.element("br")),_.appendChild(u.text(`
187
+ `)),_.appendChild(u.text(" ")),_.appendChild(v);p.appendChild(u.text(`
188
+ `)),p.appendChild(_)}(0,o.$$)("input[type=checkbox]:checked",g).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{m.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(a);let b=s.Dom.furthest(e.s.current(),s.Dom.isBlock,e.editor);if(b&&s.Dom.isEmpty(b))s.Dom.replace(b,m,void 0,!1,!0);else if(b){let t=u.text(`
189
+ `);if(e.o.table.splitBlockOnInsertTable){let i=e.s.range;i.collapse(!1),i.insertNode(t),i.collapse(!1),e.s.selectRange(i);let o=e.s.splitSelection(b,t);s.Dom.after(o,m)}else s.Dom.after(b,t),s.Dom.after(t,m)}else e.s.insertNode(m,!1);f&&(e.s.setCursorIn(f),(0,o.scrollIntoViewIfNeeded)(f,e.editor,e.ed)),i()}),n&&n.parentElement){for(let t=0;t<c;t+=1){let i=e.c.div();for(let e=0;e<h;e+=1)i.appendChild(f[t*h+e]);m.appendChild(i)}f[0]&&(f[0].className="hovered")}return d},tooltip:"Insert table"}},48729(e,t,i){"use strict";i.d(t,{FiniteStateMachine:()=>a});var s=i(25045),o=i(81937),r=i(85932),n=i(28712);class a{setState(e){(0,n.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,n.assert)(e&&e!==t,"Action should return new value"),(0,n.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,n.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),!o.IS_PROD&&!this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){(0,s._)(this,"transitions",void 0),(0,s._)(this,"__state",void 0),(0,s._)(this,"silent",void 0),(0,s._)(this,"__previewsStates",void 0),this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},48776(e,t,i){"use strict";i.r(t),i.d(t,{required:()=>r,url:()=>n});var s=i(91764),o=i(4040);let r=e=>!!(0,o.trim)(e.value).length||(e.error="Please fill out this field",!1),n=e=>!!(0,s.isURL)((0,o.trim)(e.value))||(e.error="Please enter a web address",!1)},48838(e,t,i){"use strict";function s(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:()=>s})},48842(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},48899(e,t,i){"use strict";var s=i(65946),o=i(59400),r=i(5658),n=i(29434),a=i(5266),l=i(15753),c=i(36339),h=i.n(c);a.Config.prototype.video={parseUrlToVideoEmbed:s.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},n.Icon.set("video",h()),a.Config.prototype.controls.video={popup(e,t,i){let n=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>n.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],h=t=>{e.s.restore(),e.s.insertHTML(t),i()};return e.s.save(),c.push({icon:"link",name:"Link",content:n.container},{icon:"source",name:"Code",content:a.container}),n.onSubmit(t=>{h((0,s.call)(e.o.video?.parseUrlToVideoEmbed??s.convertMediaUrlToVideoEmbed,t.url,{width:e.o.video?.defaultWidth,height:e.o.video?.defaultHeight}))}),a.onSubmit(e=>{h(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},49147(e,t,i){"use strict";i.d(t,{applySize:()=>a});var s=i(70222),o=i(7909),r=i(80991),n=i(10808);function a(e,t,i,a){if(t!==e.offsetWidth||i!==e.offsetHeight){let l=t?(0,n.normalSizeToString)(t):null,c=i?(0,n.normalSizeToString)(i):null;(0,r.css)(e,{width:l,height:l&&a?null:c}),(0,o.attr)(e,"width",l&&(0,s.isNumeric)(t)&&(0,o.attr)(e,"width")?l:null),(!(0,o.attr)(e,"width")||a)&&(c=null),(0,o.attr)(e,"height",c)}}},49385(e,t,i){"use strict";i.d(t,{cns:()=>s,markDeprecated:()=>o});let s=console;function o(e,t=[""],i=null){return(...o)=>(s.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}},49422(e,t,i){"use strict";i.d(t,{applyLink:()=>r});var s=i(23211),o=i(7909);function r(e,t,i,r){let n=s.Dom.closest(t,"a",e.editor);i?(n||(n=s.Dom.wrap(t,"a",e.createInside)),(0,o.attr)(n,"href",i),(0,o.attr)(n,"target",r?"_blank":null)):n&&n.parentNode&&n.parentNode.replaceChild(t,n)}},49574(e,t,i){"use strict";i.d(t,{autobind:()=>s.default});var s=i(52201)},49663(e,t,i){"use strict";i.d(t,{normalizeLicense:()=>s});let s=(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},49690(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(57075);i(5266).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:s.MODE_SOURCE+s.MODE_WYSIWYG,tooltip:"Preview"},o.pluginSystem.add("preview",e=>{e.registerButton({name:"preview"}),e.registerCommand("preview",(t,i,s)=>{let o=e.dlg();o.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0);let[,n]=(0,r.previewBox)(e,s,"px",o.getElm("content"));o.e.on(o,"afterClose",n)})})},49764(e,t,i){"use strict";var s=i(23211),o=i(28077),r=i(5266),n=i(15753);r.Config.prototype.controls.file={popup(e,t,i){let o=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},r=null;return t&&(s.Dom.isTag(t,"a")||s.Dom.closest(t,"a",e.editor))&&(r=s.Dom.isTag(t,"a")?t:s.Dom.closest(t,"a",e.editor)),(0,n.FileSelectorWidget)(e,{filebrowser(e){e.files&&e.files.forEach(t=>o(e.baseurl+t)),i()},upload:!0,url(e,t){r?(r.setAttribute("href",e),r.setAttribute("title",t)):o(e,t),i()}},r,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",e=>{e.registerButton({name:"file",group:"media"})})},49972(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989(e){e.exports='<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>'},49999(e,t,i){"use strict";i.d(t,{UISelect:()=>c});var s=i(25045),o=i(31635),r=i(91672),n=i(7909),a=i(65273),l=i(81488);class c extends a.UIInput{className(){return"UISelect"}createContainer(e){let t=super.createContainer(e),{j:i}=this,{nativeInput:s}=this,o=()=>i.create.element("option");if(void 0!==e.placeholder){let t=o();t.value="",t.text=i.i18n(e.placeholder),s.add(t)}return e.options?.forEach(e=>{let t=o();t.value=e.value.toString(),t.text=i.i18n(e.text),s.add(t)}),e.size&&e.size>0&&(0,n.attr)(s,"size",e.size),e.multiple&&(0,n.attr)(s,"multiple",""),t}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(e,t){super(e,t),(0,s._)(this,"state",{...c.defaultState}),Object.assign(this.state,t)}}(0,s._)(c,"defaultState",{...a.UIInput.defaultState,options:[],size:1,multiple:!1}),c=(0,o.__decorate)([r.component],c)},50083(e,t,i){"use strict";function s(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:()=>s})},50294(e,t,i){"use strict";var s=i(28077),o=i(65946);i(7433),s.pluginSystem.add("font",e=>{e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,s)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(s,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:s}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},50662(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(o.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t,i;let{jodit:s}=this,{limitWords:o,limitChars:r}=s.o,n=s.o.limitHTML?s.value:s.text,a=this.__splitWords(n);if(o&&(t=a.length,e?t>o:t>=o))return s.e.fire("denyWords.limit limit.limit"),!0;let l=!!(r&&(i=a.join("").length,e?i>r:i>=r));return l&&s.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}(0,s.__decorate)([r.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,s.__decorate)([r.autobind],l.prototype,"checkPreventChanging",null),n.pluginSystem.add("limit",l)},50982(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(28077),n=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(e){(0,n.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,n.isArray)(i)||(0,n.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let s=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(s+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(...e){super(...e),(0,s._)(this,"onKeyPress",e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),s=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&s.push(i)}),(0,n.normalizeKeyAliases)(s.join("+"))}),(0,s._)(this,"specialKeys",{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"})}}r.pluginSystem.add("hotkeys",l)},51034(e,t,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},51116(e,t,i){"use strict";i.d(t,{Popup:()=>m});var s=i(25045),o=i(31635),r=i(80251),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(28712),d=i(96007),u=i(63468);let p=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class m extends u.UIGroup{className(){return"Popup"}appendChildToContainer(e){let t=this.getElm("content");(0,h.assert)(t,"Content element should exist"),t.appendChild(e)}updateParentElement(e){return e!==this&&r.Component.isInstanceOf(e,m)&&(this.__childrenPopups.forEach(t=>{!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",()=>{this.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){if(this.allChildren.length)throw Error("Remove children");if(r.Component.isInstanceOf(e,d.UIElement))this.append(e);else{let t=(0,c.isString)(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}open(e,t=!1,i){if((0,c.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=t?this.getKeepBound(e):e,i)i.appendChild(this.container);else{let e=(0,l.getContainer)(this.jodit,m);i!==this.container.parentElement&&e.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;let e=e=>{let t=e.container.style.zIndex||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(t.toString(),10)),!0)},{j:t}=this;if(e(t))return;let i=this.parentElement;for(;i;){if(e(i.j))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(i.container.style.zIndex.toString(),10));if(!i.parentElement&&i.container.parentElement){let e=d.UIElement.closestElement(i.container.parentElement,d.UIElement);if(e){i=e;continue}}i=i.parentElement}}getKeepBound(e){let t=e(),i=this.od.elementFromPoint(t.left,t.top);if(!i)return e;let s=a.Dom.isHTMLElement(i)?i:i.parentElement,o=(0,c.position)(s,this.j);return()=>{let t=e(),i=(0,c.position)(s,this.j);return{...t,top:t.top+(i.top-o.top),left:t.left+(i.left-o.left)}}}updatePosition(){if(!this.isOpened)return this;let[e,t]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,c.position)(this.container,this.j));return this.setMod("strategy",t),(0,c.css)(this.container,{left:e.left,top:e.top}),this.__childrenPopups.forEach(e=>e.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(e,t,i,s=this.strategy){let o={left:e.left,right:e.left-(i.width-e.width)},r={bottom:e.top+e.height,top:e.top-i.height},n=Object.keys(o).reduce((e,t)=>e.concat(Object.keys(r).map(e=>`${t}${(0,c.ucfirst)(e)}`)),[]),a=e=>{let[t,s]=(0,c.kebabCase)(e).split("-");return{left:o[t],top:r[s],width:i.width,height:i.height}},l=e=>m.boxInView(a(s),e)?s:n.find(t=>{if(m.boxInView(a(t),e))return t})||null,h=l((0,c.position)(this.j.container,this.j));return h&&m.boxInView(a(h),t)||(h=l(t)||h||s),[a(h),h]}static boxInView(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}close(){return this.isOpened&&(this.isOpened=!1,this.__childrenPopups.forEach(e=>e.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),a.Dom.safeRemove(this.container)),this}__closeOnOutsideClick(e){!this.isOpened||this.isOwnClick(e)||this.close()}isOwnClick(e){if(!e.target)return!1;let t=d.UIElement.closestElement(e.target,m);return!!(t&&(this===t||t.closest(this)))}__addGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;l.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(p,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),a.Dom.up(this.j.container,t=>{t&&this.j.e.on(t,"scroll mousewheel",e)})}__removeGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;l.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(p,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),this.j.container.isConnected&&a.Dom.up(this.j.container,t=>{t&&this.j.e.off(t,"scroll mousewheel",e)})}setZIndex(e){this.container.style.zIndex=e.toString()}render(){return`<div>
190
+ <div class="&__content"></div>
191
+ </div>`}destruct(){return this.close(),super.destruct()}constructor(e,t=!0){super(e),(0,s._)(this,"smart",void 0),(0,s._)(this,"isOpened",void 0),(0,s._)(this,"strategy",void 0),(0,s._)(this,"viewBound",void 0),(0,s._)(this,"__targetBound",void 0),(0,s._)(this,"__childrenPopups",void 0),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,c.attr)(this.container,"role","popup")}}(0,o.__decorate)([n.autobind],m.prototype,"updatePosition",null),(0,o.__decorate)([(0,n.throttle)(10),n.autobind],m.prototype,"__throttleUpdatePosition",null),(0,o.__decorate)([n.autobind],m.prototype,"close",null),(0,o.__decorate)([n.autobind],m.prototype,"__closeOnOutsideClick",null)},51457(e){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51640(e,t,i){"use strict";i.d(t,{FiniteStateMachine:()=>o.FiniteStateMachine,elementsEqualAttributes:()=>l.elementsEqualAttributes,extractSelectedPart:()=>s.extractSelectedPart,getSuitChild:()=>r.getSuitChild,getSuitParent:()=>n.getSuitParent,isInsideInvisibleElement:()=>a.isInsideInvisibleElement,isSameAttributes:()=>l.isSameAttributes,suitableClosest:()=>c.suitableClosest,toggleAttributes:()=>d.toggleAttributes,toggleOrderedList:()=>h.toggleOrderedList,unwrapChildren:()=>u.unwrapChildren,wrap:()=>p.wrap});var s=i(17481),o=i(48729),r=i(10171),n=i(19549);i(9703);var a=i(39608);i(83653);var l=i(95971),c=i(73019),h=i(34582);i(97110);var d=i(82794),u=i(89081),p=i(73154);i(83335)},51676(e,t,i){"use strict";i.d(t,{cache:()=>c,cacheHTML:()=>h,cached:()=>l});var s=i(69364),o=i(81937),r=i(23211),n=i(28686),a=i(38027);function l(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,n.isFunction)(i.get)?null:i.value}function c(e,t,i){let s=i.get;if(!s)throw(0,a.error)("Getter property descriptor expected");i.get=function(){o.IS_PROD||this.isInDestruct;let e=s.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function h(e,t,i){let o=i.value;if(!(0,n.isFunction)(o))throw(0,a.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);let t=o.apply(this,e);return l&&r.Dom.isElement(t)&&c.set(this.constructor,t),l?t.cloneNode(!0):t},e.hookStatus(s.STATUSES.ready,e=>{l=!!((0,n.isViewObject)(e)?e:e.jodit).options.cache})}},51730(e,t,i){"use strict";var s=i(5266);s.Config.prototype.mediaFakeTag="jodit-media",s.Config.prototype.mediaInFakeBlock=!0,s.Config.prototype.mediaBlocks=["video","audio"]},51822(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},51957(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52014(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(27795),n=i(28077),a=i(65946),l=i(91206),c=i(67399),h=i(4274);i(92063);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(...e){super(...e),(0,s._)(this,"onContext",(e,t)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?r.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1)),(0,s._)(this,"onSelectPath",(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch{}return this.j.s.select(e),!1}),(0,s._)(this,"tpl",(e,t,i,s)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${s}" tabindex="-1"'>${(0,a.trim)(i)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o}),(0,s._)(this,"selectAllButton",void 0),(0,s._)(this,"removeSelectAll",()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)}),(0,s._)(this,"appendSelectAll",()=>{this.removeSelectAll(),this.selectAllButton=(0,h.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)}),(0,s._)(this,"calcPathImd",()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),e){let t,i,s;r.Dom.up(e,e=>{e&&this.j.editor!==e&&!r.Dom.isText(e)&&!r.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,a.getXPathByElement)(e,this.j.editor).replace(/^\//,""),s=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(s,this.container.firstChild))},this.j.editor)}this.appendSelectAll()}),(0,s._)(this,"calcPath",this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)),(0,s._)(this,"container",void 0),(0,s._)(this,"menu",void 0)}}n.pluginSystem.add("xpath",d)},52100(e,t,i){"use strict";function s(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:()=>s})},52144(e,t,i){"use strict";i.d(t,{set:()=>a});var s=i(17312),o=i(70222),r=i(62101),n=i(85932);function a(e,t,i){if(!(0,n.isString)(e)||!e.length)return;let a=e.split("."),l=i,c=a[0];for(let e=0;e<a.length-1;e+=1)c=a[e],(0,s.isArray)(l[c])||(0,r.isPlainObject)(l[c])||(l[c]=(0,o.isNumeric)(a[e+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=t)}},52201(e,t,i){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e=>typeof e:e=>e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e)(e)}function o(e,t,i){var o=i.value;if("function"!=typeof o)throw TypeError("@boundMethod decorator can only be applied to methods not: ".concat(s(o)));var r=!1;return{configurable:!0,get:function(){if(r||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var i=o.bind(this);return r=!0,Object.defineProperty(this,t,{configurable:!0,get:()=>i,set:function(e){o=e,delete this[t]}}),r=!1,i},set(e){o=e}}}function r(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach(t=>{if("constructor"!==t){var i=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof i.value&&Object.defineProperty(e.prototype,t,o(e,t,i))}}),e}function n(){return 1==arguments.length?r.apply(void 0,arguments):o.apply(void 0,arguments)}i.d(t,{default:()=>n})},52433(e,t,i){"use strict";i.d(t,{hasContainer:()=>l,isDestructable:()=>a,isInitable:()=>n});var s=i(23211),o=i(91565),r=i(18303);function n(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&s.Dom.isElement(e.container)}},52450(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},52938(e,t,i){"use strict";i.d(t,{wrapText:()=>o});var s=i(23211);function o(e,t){let i=e;s.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=s.Dom.wrapInline(i,t.o.enter,t);if(s.Dom.isEmpty(o)){let i=t.createInside.element("br");o.appendChild(i),s.Dom.before(i,e)}return o}},53202(e,t,i){"use strict";i.d(t,{loadTree:()=>r});var s=i(27795),o=i(1488);async function r(e){e.tree.setMod("active",!0),s.Dom.detach(e.tree.container);let t=(0,o.loadItems)(e);return e.o.showFoldersPanel?(e.tree.setMod("loading",!0),Promise.all([e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1)),t])):(e.tree.setMod("active",!1),t)}},53328(e){e.exports='<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>'},53390(e,t,i){"use strict";var s=i(28077);i(96863),s.pluginSystem.add("formatBlock",e=>{e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,s)=>(e.s.commitStyle({element:s}),e.synchronizeValues(),!1))})},53414(e){e.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","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","Heading 2","Heading 3","Heading 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","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","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","Upload","Browse","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","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","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","Unlink","Update","pencil","Eye"," 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","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","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","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53514(e,t,i){"use strict";i.d(t,{removeInvTextNodes:()=>r});var s=i(81937),o=i(23211);function r(e,t,i,r,n,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,s.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},53681(e,t,i){"use strict";i.d(t,{Button:()=>f,UIButton:()=>g,UIButtonState:()=>m});var s=i(25045),o=i(31635),r=i(69364),n=i(84839),a=i(23211),l=i(91565),c=i(85932),h=i(93640),d=i(96007),u=i(97959),p=i(29434);let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class g extends d.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,h.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,h.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let e=this.closest(u.UIList);if(e){this.state.size=e.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,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",this.state.tooltip),(0,h.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=p.Icon.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),s=this.j.c.span(e+"__text");return t.appendChild(i),t.appendChild(s),t}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e))}constructor(e,t){super(e),(0,s._)(this,"isButton",!0),(0,s._)(this,"state",m()),(0,s._)(this,"button",void 0),(0,s._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(r.STATUSES.ready,()=>{this.setState(t)})}}function f(e,t,i,s){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,s&&(o.state.variant=s),i&&(o.state.text=i)):o.setState(t),o}(0,o.__decorate)([n.cache],g.prototype,"text",null),(0,o.__decorate)([n.cache],g.prototype,"icon",null),(0,o.__decorate)([(0,n.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),(0,o.__decorate)([(0,n.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),(0,o.__decorate)([(0,n.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),(0,o.__decorate)([(0,n.watch)("parentElement")],g.prototype,"updateSize",null),(0,o.__decorate)([(0,n.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),(0,o.__decorate)([(0,n.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),(0,o.__decorate)([(0,n.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),(0,o.__decorate)([(0,n.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),(0,o.__decorate)([(0,n.watch)("state.activated")],g.prototype,"onChangeActivated",null),(0,o.__decorate)([(0,n.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),(0,o.__decorate)([(0,n.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),(0,o.__decorate)([(0,n.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),(0,o.__decorate)([(0,n.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),(0,o.__decorate)([n.cacheHTML],g.prototype,"createContainer",null),(0,o.__decorate)([(0,n.watch)("button:click")],g.prototype,"__onActionFire",null),g=(0,o.__decorate)([n.component],g)},53808(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53855(e,t,i){"use strict";i.d(t,{History:()=>d});var s=i(25045),o=i(31635),r=i(16964),n=i(84839),a=i(5266),l=i(8838),c=i(46363),h=i(33511);a.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class d extends r.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){let t=this.snapshot.make();if(!c.Snapshot.equal(t,this.startValue)){let i=new l.Command(this.startValue,t,this,this.updateTick);if(e){let e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(e,t=new h.Stack(e.o.history.maxHistoryLength),i=new c.Snapshot(e)){super(e),(0,s._)(this,"__startValue",void 0),(0,s._)(this,"__stack",void 0),(0,s._)(this,"snapshot",void 0),(0,s._)(this,"updateTick",0),this.__stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}(0,o.__decorate)([(0,n.debounce)()],d.prototype,"onChange",null)},54053(e,t,i){"use strict";i.d(t,{getHash:()=>s.getHash,removeFormatForCollapsedSelection:()=>o.removeFormatForCollapsedSelection,removeFormatForSelection:()=>r.removeFormatForSelection,visitNodeWalker:()=>n.visitNodeWalker});var s=i(5650),o=i(37431),r=i(70195),n=i(45219)},54308(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:()=>c,getAllTypes:()=>l,pasteInsertHtml:()=>a});var s=i(81937),o=i(23211),r=i(28686),n=i(53681);function a(e,t,i){if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let s=t.e.fire("beforePasteInsert",i);!(0,r.isVoid)(s)&&((0,r.isString)(s)||(0,r.isNumber)(s)||o.Dom.isNode(s))&&(i=s),(0,r.isString)(i)&&(i=(e=>{let t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));let i=e.search(/<!--EndFragment-->/i);return -1!==i&&(e=e.substring(0,i)),e})(i)),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,r.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||s.TEXT_PLAIN).toString()+";";return i}function c(e,t,i,s,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,s,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=o.map(({text:t,value:i})=>(0,n.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),s(i)}));r.e.one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,n.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,s,o),r}},54447(e,t,i){"use strict";i.d(t,{getContentWidth:()=>s});let s=(e,t)=>{let i=e=>parseInt(e,10),s=t.getComputedStyle(e);return e.offsetWidth-i(s.getPropertyValue("padding-left")||"0")-i(s.getPropertyValue("padding-right")||"0")}},54500(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(928),n=i.n(r),a=i(31230),l=i.n(a);o.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},s.Icon.set("crop",n()).set("resize",l())},54522(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},54794(e,t,i){"use strict";i.d(t,{fastClone:()=>n,isAtom:()=>o,markAsAtomic:()=>r});var s=i(3347);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function n(e){return JSON.parse((0,s.stringify)(e))}},55184(e,t,i){"use strict";i.d(t,{debounce:()=>a,throttle:()=>l});var s=i(16964),o=i(28686),r=i(28712),n=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,n.error)("Handler must be a Function");return a.hookStatus(s.STATUSES.ready,s=>{let{async:n}=s;(0,r.assert)(null!=n,`Component ${s.componentName||s.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(s):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:s.defaultTimeout;Object.defineProperty(s,l,{configurable:!0,value:n[i](s[l].bind(s),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55376(e,t,i){"use strict";i.d(t,{FileBrowserTree:()=>o});var s=i(4099);class o extends s.UIGroup{className(){return"FileBrowserTree"}}},55810(e,t,i){"use strict";i.d(t,{init:()=>a});var s=i(81937),o=i(28077),r=i(28686),n=i(3050);function a(e,t,i,a,l,c){if((0,r.isInitable)(a))try{a.init(e)}catch(e){if(!s.IS_PROD)throw e}l.set(t,a),c.delete(t),a.hasStyle&&(0,n.loadStyle)(e,t).catch(e=>{s.IS_PROD}),a.styles&&((0,o.getContainer)(e,t,"style").innerHTML=a.styles)}},56490(e,t,i){"use strict";i.d(t,{Popup:()=>s.Popup});var s=i(51116)},56894(e,t,i){"use strict";var s=i(31635),o=i(68616),r=i(28077),n=i(91206);i(96722);var a=i(33915),l=i(14282);class c extends n.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(l).forEach(t=>{l[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}}(0,s.__decorate)([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,s.__decorate)([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",c)},57075(e,t,i){"use strict";i.d(t,{previewBox:()=>l});var s=i(23211),o=i(85932),r=i(7909),n=i(80991),a=i(28723);function l(e,t,i="px",c=null){let h=[],d=((e,t)=>{let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let n=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,s.Dom.safeRemove(a),i.push(()=>{o.src=n[2]??"",(0,r.attr)(o,{width:n[0]||null,height:n[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i})(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let l=e.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,n.css)(l,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,n.css)(t,{minWidth:800,minHeight:600,border:0}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let s=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{s||r.observe(o)})},100)),n=()=>{s=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",n)};h.push(n),e.e.on("beforeDestruct",n)}}else(0,n.css)(l,{minWidth:1024,minHeight:600,border:0});let u=(t,i)=>{let n=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(n.innerHTML=i);for(let e=0;e<n.childNodes.length;e+=1){let i=n.childNodes[e];if(s.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||s.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):u(e,i);try{t.appendChild(e)}catch{}}else try{t.appendChild(i.cloneNode(!0))}catch{}}};return u(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{h.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},57339(e,t,i){"use strict";i.d(t,{readSizes:()=>a});var s=i(70222),o=i(7909),r=i(80991),n=i(10808);async function a(e,t,i){await e.decode();let a=(0,r.css)(e,"width",!0)||(0,o.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,n.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,s.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,n.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:h}=t,d=parseFloat(c.toString());if(!(0,s.isNumeric)(c)||!(0,s.isNumeric)(h)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(h.toString())*i.ratio)}},57626(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:()=>o});var s=i(81937);function o(e,t,i=0,r=1){let n=0,a=0,l=-1,c=0,h=0;for(a=i;n<e.length&&a<t.length;)e[n].toLowerCase()===t[a].toLowerCase()?(n++,c++,h=0,-1===l&&(l=a)):n>0&&(h>=r&&t[a]!==s.INVISIBLE_SPACE?(n=0,l=-1,c=0,h=0,a--):(h++,c++)),a++;return n===e.length?[l,c]:[-1,0]}},57821(e,t,i){"use strict";i.d(t,{camelCase:()=>s});let s=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},58250(e,t,i){"use strict";i.d(t,{ConnectionError:()=>s});class s extends Error{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}},58293(e,t,i){"use strict";var s=i(5266);s.Config.prototype.allowResizeX=!1,s.Config.prototype.allowResizeY=!0},58317(e,t,i){"use strict";i.d(t,{UISearch:()=>h});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(27795),l=i(65946),c=i(4099);class h extends c.UIElement{className(){return"UISearch"}render(){return`<div>
192
+ <div class="&__box">
193
+ <div class="&__inputs">
194
+ <input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
195
+ <input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>
196
+ </div>
197
+ <div class="&__counts">
198
+ <span data-ref="counter-box">
199
+ <span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>
200
+ </span>
201
+ </div>
202
+ <div class="&__buttons">
203
+ <button data-ref="next" tabindex="0" type="button">${c.Icon.get("angle-down")}</button>
204
+ <button data-ref="prev" tabindex="0" type="button">${c.Icon.get("angle-up")}</button>
205
+ <button data-ref="cancel" tabindex="0" type="button">${c.Icon.get("cancel")}</button>
206
+ <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
207
+ </div>
208
+ </div>
209
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===r.MODE_WYSIWYG)switch(e.key){case r.KEY_ESC:this.close();break;case r.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let s=e??(this.j.s.sel||"").toString();s&&(this.queryInput.value=s),t&&(this.replaceInput.value=t),this.setMod("empty-query",!s.length),this.j.e.fire(this,"needUpdateCounters"),s?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(e){super(e),(0,s._)(this,"queryInput",void 0),(0,s._)(this,"replaceInput",void 0),(0,s._)(this,"selInfo",null),(0,s._)(this,"closeButton",void 0),(0,s._)(this,"replaceButton",void 0),(0,s._)(this,"currentBox",void 0),(0,s._)(this,"countBox",void 0),(0,s._)(this,"_currentIndex",0),(0,s._)(this,"isOpened",!1);let{query:t,replace:i,cancel:o,next:n,prev:a,replaceBtn:c,current:h,count:d}=(0,l.refs)(this.container);this.queryInput=t,this.replaceInput=i,this.closeButton=o,this.replaceButton=c,this.currentBox=h,this.countBox=d,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(n,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async t=>{t.key===r.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),await e.e.fire("searchNext")&&this.close()):e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,o.__decorate)([(0,n.watch)([":keydown","queryInput:keydown"])],h.prototype,"onEditorKeyDown",null),(0,o.__decorate)([n.autobind],h.prototype,"open",null),(0,o.__decorate)([n.autobind],h.prototype,"close",null),(0,o.__decorate)([(0,n.watch)(":toggleSticky")],h.prototype,"calcSticky",null),h=(0,o.__decorate)([n.component],h)},58354(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(28077),l=i(65946),c=i(91206);i(87908);var h=i(5070);class d extends c.Plugin{afterInit(e){(0,l.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let s,{s:o,createInside:r,editor:a,o:c}=this.j;o.isFocused()||o.focus(),o.save();let h=e=>{let t=n.Dom.closest(e,n.Dom.isBlock,a);t||(t=n.Dom.wrap(e,c.enter,r));let o=(0,l.css)(t,"lineHeight");void 0===s&&(s=o.toString()!==i.toString()),(0,l.css)(t,"lineHeight",s?i:null)};try{if(o.isCollapsed()){let e=r.fake();o.insertNode(e,!1,!1),h(e),n.Dom.safeRemove(e)}else o.eachSelection(h)}finally{o.restore()}}beforeDestruct(e){(0,l.css)(e.editor,{lineHeight:null})}constructor(e){super(e),(0,s._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(h)}}(0,o.__decorate)([r.autobind],d.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",d)},58446(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},58664(e,t,i){"use strict";i.d(t,{FileBrowserItem:()=>r});var s=i(25045),o=i(65946);class r{static create(e){return e instanceof r?e:new r(e)}get path(){return(0,o.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:s,file:r}=this.data,n=s||r;return t&&n?n:(0,o.normalizeUrl)(i.baseurl,i.path,n||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:s}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,o.normalizeUrl)(s.baseurl,s.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){(0,s._)(this,"data",void 0),(0,s._)(this,"source",void 0),(0,s._)(this,"sourceName",void 0),(0,s._)(this,"type",void 0),this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},58881(e,t,i){"use strict";i.d(t,{checkRemoveChar:()=>function e(t,i,n,l){var c,h;let d,u=n?-1:1,p=o.Dom.sibling(i,!n),m=o.Dom.sibling(i,n),g=null,f=!1;for(m||(m=a(i,n,t.editor));m&&(o.Dom.isText(m)||o.Dom.isInlineBlock(m));){for(;o.Dom.isInlineBlock(m);)m=n?m?.lastChild:m?.firstChild;if(!m)break;if(m.nodeValue?.length&&(d=((e,t,i,n)=>{let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===s.INVISIBLE_SPACE)for(;a[c]===s.INVISIBLE_SPACE;)c+=i;let h=a[c];if(a[c+i]===s.INVISIBLE_SPACE){for(c+=i;a[c]===s.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),((e,t,i)=>{if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(e.nodeValue??"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=s.NBSP_SPACE;else break})(n,t,a),e.nodeValue=a.join(""),h})(m,n,u,p),!m.nodeValue.length&&o.Dom.isInlineBlock(m.parentNode)&&(m.nodeValue=s.INVISIBLE_SPACE)),m.nodeValue?.length||(g=m),!(0,r.isVoid)(d)&&d!==s.INVISIBLE_SPACE){c=m,h=d,(0,r.call)(n?o.Dom.after:o.Dom.before,c,i),("sentence"===l||"word"===l&&" "!==h&&h!==s.NBSP_SPACE)&&e(t,i,n,l),f=!0;break}let _=a(m,n,t.editor);g&&(o.Dom.safeRemove(g),g=null),m=_}return g&&(o.Dom.safeRemove(g),g=null),f&&(((e,t)=>{let i=e.parentElement;for(;i&&o.Dom.isInlineBlock(i)&&o.Dom.isTag(i,t);){let t=i.parentElement;o.Dom.isEmpty(i)&&(o.Dom.after(i,e),o.Dom.safeRemove(i)),i=t}})(i,"a"),i.parentElement!==t.editor&&o.Dom.isBlock(i.parentElement)&&o.Dom.each(i.parentElement,o.Dom.isEmptyTextNode)&&o.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),f}});var s=i(81937),o=i(27795),r=i(65946),n=i(15200);function a(e,t,i){let s=o.Dom.sibling(e,t);return!s&&e.parentNode&&e.parentNode!==i&&(s=(0,n.findMostNestedNeighbor)(e,!t,i,!0)),s}},58910(e,t,i){"use strict";var s=i(25045),o=i(23211),r=i(28077),n=i(71125),a=i(91206),l=i(29434),c=i(5266),h=i(93267),d=i.n(h);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:n.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let s=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&s.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let s=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{s.classList.contains(e)&&(r=!0)}),!!(s&&s!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class u extends a.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,s)=>(e.s.commitStyle({attributes:{class:s}}),!1))}beforeDestruct(){}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"classSpan",group:"script"}])}}r.pluginSystem.add("classSpan",u),l.Icon.set("class-span",d())},59276(e,t,i){"use strict";i.d(t,{SentenceFinder:()=>r});var s=i(25045),o=i(57626);class r{add(e){let t=(e.nodeValue??"").toLowerCase();if(!t.length)return;let i=this.value.length;this.queue.push({startIndex:i,endIndex:i+t.length,node:e}),this.value+=t}ranges(e,t=0){let i=[],s=t,o=0,r=0;do if([s,o]=this.searchIndex(e,this.value,s),-1!==s){let e,t=0,n,a=0;for(let i=r;i<this.queue.length;i+=1)if(!e&&this.queue[i].endIndex>s&&(e=this.queue[i].node,t=s-this.queue[i].startIndex),e&&this.queue[i].endIndex>=s+o){n=this.queue[i].node,a=s+o-this.queue[i].startIndex,r=i;break}e&&n&&i.push({startContainer:e,startOffset:t,endContainer:n,endOffset:a}),s+=o}while(-1!==s)return 0===i.length?null:i}constructor(e=o.fuzzySearchIndex){(0,s._)(this,"searchIndex",void 0),(0,s._)(this,"queue",void 0),(0,s._)(this,"value",void 0),this.searchIndex=e,this.queue=[],this.value=""}}},59399(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
210
+ `,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},59400(e,t,i){"use strict";i.d(t,{Button:()=>s.Button,UIButton:()=>s.UIButton,UIButtonGroup:()=>o.UIButtonGroup,UIButtonState:()=>s.UIButtonState,UITooltip:()=>r.UITooltip});var s=i(53681),o=i(15367),r=i(95399)},59609(e,t,i){"use strict";i.d(t,{ViewComponent:()=>r});var s=i(25045),o=i(80251);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),(0,s._)(this,"jodit",void 0),this.setParentView(e)}}},59758(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(28077),n=i(18855),a=i(29434),l=i(5266),c=i(34045),h=i.n(c),d=i(39199),u=i.n(d);a.Icon.set("redo",h()).set("undo",u()),l.Config.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class p extends n.Plugin{beforeDestruct(){}afterInit(e){let t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}r.pluginSystem.add("redoUndo",p)},59807(e,t,i){"use strict";let s;i.d(t,{LocalStorageProvider:()=>n,canUsePersistentStorage:()=>r});var o=i(25045);let r=()=>(void 0===s&&(s=(()=>{let e="___Jodit___"+Math.random().toString();try{localStorage.setItem(e,"1");let t="1"===localStorage.getItem(e);return localStorage.removeItem(e),t}catch{}return!1})()),s);class n{set(e,t){try{let i=localStorage.getItem(this.rootKey),s=i?JSON.parse(i):{};s[e]=t,localStorage.setItem(this.rootKey,JSON.stringify(s))}catch{}return this}delete(e){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(e){try{let t=localStorage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch{}}exists(e){return null!=this.get(e)}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}constructor(e){(0,o._)(this,"rootKey",void 0),this.rootKey=e}}},59827(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59841(e,t,i){"use strict";i.d(t,{CommitStyle:()=>o.CommitStyle,INITIAL:()=>r.INITIAL,REPLACE:()=>r.REPLACE,Selection:()=>s.Selection,UNSET:()=>r.UNSET,UNWRAP:()=>r.UNWRAP,WRAP:()=>r.WRAP});var s=i(98595),o=i(84578),r=i(98394)},60162(e,t,i){"use strict";var s=i(36400),o=i(29434),r=i(5266),n=i(40037),a=i.n(n),l=i(83207),c=i.n(l);let h=(e,t,{control:i})=>{let o="button"+i.command,r=(i.args&&i.args[0])??(0,s.dataBind)(e,o);(0,s.dataBind)(e,o,r),e.execCommand(i.command,!1,"default"===r?null:r)};o.Icon.set("ol",a()).set("ul",c()),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:h},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:h}},60216(e,t,i){"use strict";i.d(t,{Eventify:()=>o});var s=i(25045);class o{on(e,t){return this.__map.has(e)||this.__map.set(e,new Set),this.__map.get(e)?.add(t),this}off(e,t){return this.__map.has(e)&&this.__map.get(e)?.delete(t),this}destruct(){this.__map.clear()}emit(e,...t){let i;return this.__map.has(e)&&this.__map.get(e)?.forEach(e=>{i=e(...t)}),i}constructor(){(0,s._)(this,"__map",new Map)}}},60636(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},60898(e,t,i){"use strict";i.d(t,{inView:()=>o,scrollIntoViewIfNeeded:()=>r});var s=i(23211);function o(e,t,i){let s=e.getBoundingClientRect(),o=e,r=s.top,n=s.height;for(;o&&o!==t&&o.parentNode;)if(!(r<=(s=(o=o.parentNode).getBoundingClientRect()).bottom)||r+n<=s.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){s.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},60936(e,t,i){"use strict";i.r(t),i.d(t,{Ajax:()=>p.Ajax,Alert:()=>n.Alert,Async:()=>l.Async,Button:()=>m.Button,CommitStyle:()=>D.CommitStyle,Component:()=>s.Component,Confirm:()=>n.Confirm,ContextMenu:()=>r.ContextMenu,Create:()=>c.Create,Dialog:()=>n.Dialog,Dom:()=>h.Dom,EventEmitter:()=>d.EventEmitter,EventHandlersStore:()=>d.EventHandlersStore,Eventify:()=>d.Eventify,FileBrowser:()=>a.FileBrowser,Helpers:()=>o,History:()=>_.History,Icon:()=>m.Icon,ImageEditor:()=>b.ImageEditor,LazyWalker:()=>h.LazyWalker,Plugin:()=>u.Plugin,PluginSystem:()=>x.PluginSystem,Popup:()=>m.Popup,ProgressBar:()=>m.ProgressBar,Prompt:()=>n.Prompt,Response:()=>p.Response,STATUSES:()=>s.STATUSES,Selection:()=>D.Selection,Snapshot:()=>v.Snapshot,StatusBar:()=>w.StatusBar,Table:()=>S.Table,ToolbarButton:()=>C.ToolbarButton,ToolbarCollection:()=>E.ToolbarCollection,ToolbarContent:()=>C.ToolbarContent,ToolbarEditorCollection:()=>I.ToolbarEditorCollection,ToolbarSelect:()=>C.ToolbarSelect,UIBlock:()=>m.UIBlock,UIButton:()=>m.UIButton,UIButtonGroup:()=>m.UIButtonGroup,UIButtonState:()=>m.UIButtonState,UICheckbox:()=>m.UICheckbox,UIElement:()=>m.UIElement,UIFileInput:()=>m.UIFileInput,UIForm:()=>m.UIForm,UIGroup:()=>m.UIGroup,UIInput:()=>m.UIInput,UIList:()=>m.UIList,UIMessages:()=>y.UIMessages,UISelect:()=>m.UISelect,UISeparator:()=>m.UISeparator,UISpacer:()=>m.UISpacer,UITextArea:()=>m.UITextArea,UITooltip:()=>m.UITooltip,Uploader:()=>T.Uploader,View:()=>g.View,ViewComponent:()=>s.ViewComponent,ViewWithToolbar:()=>f.ViewWithToolbar,defaultNameSpace:()=>d.defaultNameSpace,observable:()=>d.observable});var s=i(16964),o=i(65946),r=i(67399),n=i(37333),a=i(17610),l=i(91231),c=i(79821),h=i(27795),d=i(1496),u=i(91206),p=i(73714),m=i(4099),g=i(35099),f=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),S=i(98803),C=i(39709),E=i(42573),I=i(6209),T=i(94925),x=i(85305),D=i(59841)},61077(e,t,i){"use strict";i.d(t,{clearTimeout:()=>s.clearTimeout,setTimeout:()=>s.setTimeout});var s=i(79947)},61334(e,t,i){"use strict";var s=i(27795),o=i(93640),r=i(29434),n=i(31125),a=i(18272),l=i(1305),c=i(53202),h=i(34269),d=i(43271);let u="jodit-file-browser-preview",p=(e="next",t="right")=>`<div class="${u}__navigation ${u}__navigation_arrow_${e}">`+r.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,a.makeContextMenu)(e);return i=>{let r=(0,h.getItem)(i.target,e.container);if(!r)return;let a=r,m=e.options,g=e=>(0,o.attr)(a,e)||"";return e.async.setTimeout(()=>{let f=(0,h.elementToItem)(r,(0,n.elementsMap)(e));f&&(e.state.activeElements=[f],t.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>d.openImageEditor.call(e,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){e.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,l.deleteFile)(e,g("data-name"),g("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,c.loadTree)(e).catch(e.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(u,'<div class="jodit-icon_loader"></div>'),r=e.c.div(u+"__box"),n=e.c.fromHTML(p()),l=e.c.fromHTML(p("prev","left")),c=o=>{let c=e.c.element("img");c.setAttribute("src",o);let h=()=>{e.isInDestruct||(e.e.off(c,"load"),s.Dom.detach(i),m.showPreviewNavigation&&(s.Dom.prevWithClass(a,e.files.getFullElName("item"))&&i.appendChild(l),s.Dom.nextWithClass(a,e.files.getFullElName("item"))&&i.appendChild(n)),i.appendChild(r),r.appendChild(c),t.setPosition(),e?.events?.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",h),c.complete&&h()};e.e.on([n,l],"click",function(){if(!(a=this===n?s.Dom.nextWithClass(a,e.files.getFullElName("item")):s.Dom.prevWithClass(a,e.files.getFullElName("item"))))throw(0,o.error)("Need element");s.Dom.detach(i),s.Dom.detach(r),i.innerHTML='<div class="jodit-icon_loader"></div>',c(g("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(u+"__dialog"),t.setContent(i),t.setPosition(),t.open(),c(g("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){let t=g("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},61466(e,t,i){"use strict";i.d(t,{UIMessage:()=>n});var s=i(31635),o=i(91672),r=i(4099);class n extends r.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}}n=(0,s.__decorate)([o.component],n)},61764(e,t,i){"use strict";i.d(t,{ToolbarSelect:()=>l});var s=i(31635),o=i(84839),r=i(62101),n=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:e,data:t}=this.control;if(e){let i=this.state.value||(t&&(0,n.isString)(t.currentValue)?t.currentValue:void 0);i||(i=Object.keys(e)[0]);let s=((0,r.isPlainObject)(e)&&e[i.toString()]||i).toString();this.state.text=this.control.textTemplate?.(this.jodit,s)??s}}}l=(0,s.__decorate)([o.component],l)},62101(e,t,i){"use strict";i.d(t,{isPlainObject:()=>o});var s=i(3513);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,s.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},62623(e,t,i){"use strict";i.d(t,{FileBrowser:()=>C});var s=i(25045),o=i(31635),r=i(16964),n=i(81937),a=i(84839),l=i(68616),c=i(1496),h=i(65946),d=i(25222),u=i(80512),p=i(2222),m=i(5266);i(68502);var g=i(1488),f=i(53202),_=i(34269),v=i(36664),b=i(74833),y=i(17780),w=i(18272),S=i(63425);class C extends p.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){let t=[],i=[];this.state.activeElements.forEach(e=>{let s=e.fileURL;s&&(t.push(s),i.push(e.isImage||!1))}),this.close(),(0,h.isFunction)(e)&&e({baseurl:"",files:t,isImages:i}),this.close()}return!1}}get _dialog(){let e=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(t=>e.events.on(e,t,()=>this.e.fire(t))),e.setSize(this.o.width,this.o.height),e}get storage(){return d.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){!(!e||(0,h.isAbortError)(e))&&((0,h.isString)(e)||(e=e.message),(0,h.isString)(e)&&(0,h.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,i)=>{if(!this.o.items||!this.o.items.url)throw(0,h.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{let t=new Date().getTime();t-s<n.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(e)(),s=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));let o=this.c.div();this.toolbar?.appendTo(o),this.__updateToolbarButtons(),this._dialog.open(this.browser,o),this.e.fire("sort.filebrowser",this.state.sortBy),(0,f.loadTree)(this).then(t,i).finally(()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!(0,h.isAbortError)(e)&&!n.IS_PROD)throw e})}__getButtons(){return(this.o.buttons??[]).filter(e=>{if(!(0,h.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){let t=this,i=e?.options?.uploader,s=(0,h.ConfigProto)(i||{},m.Config.defaultOptions.uploader),o=()=>(0,g.loadItems)(this);t.uploader=t.getInstance("Uploader",s),t.uploader.setPath(t.state.currentPath).setSource(t.state.currentSource).bind(t.browser,o,t.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),t.e.on("bindUploader.filebrowser",e=>{t.uploader.bind(e,o,t.errorHandler)})}destruct(){!this.isInDestruct&&((0,a.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){let e=this.__getButtons();((e,t)=>{if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0})(this.__prevButtons,e)||(this.__prevButtons=e,this.toolbar?.build(e))}constructor(e){super(e),(0,s._)(this,"browser",this.c.div(this.componentName)),(0,s._)(this,"status_line",this.c.div(this.getFullElName("status"))),(0,s._)(this,"tree",new S.FileBrowserTree(this)),(0,s._)(this,"files",new S.FileBrowserFiles(this)),(0,s._)(this,"state",(0,c.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1})),(0,s._)(this,"errorHandler",e=>{(0,h.isAbortError)(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))}),(0,s._)(this,"uploader",void 0),(0,s._)(this,"close",()=>{this._dialog.close()}),(0,s._)(this,"__prevButtons",[]),this.attachEvents(e),this.options=(0,h.ConfigProto)(e||{},m.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),v.selfListeners.call(this),_.nativeListeners.call(this),b.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=(0,h.ConfigProto)(this.options[e],this.o.ajax))});let{storeView:t,storeSortBy:i,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},n=t&&this.storage.get("view");n&&null==this.o.view?this.state.view="list"===n?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);let a=i&&this.storage.get("sortBy");if(a){let e=a.split("-");this.state.sortBy=["changed","name","size"].includes(e[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(o){let e=this.storage.get("currentPath"),t=this.storage.get("currentSource");this.state.currentPath=e??"",this.state.currentSource=t??""}this.initUploader(this),this.setStatus(r.STATUSES.ready)}}(0,o.__decorate)([a.cache],C.prototype,"dataProvider",null),(0,o.__decorate)([a.cache],C.prototype,"_dialog",null),(0,o.__decorate)([a.cache],C.prototype,"storage",null),(0,o.__decorate)([a.autobind],C.prototype,"status",null),(0,o.__decorate)([a.autobind],C.prototype,"open",null),(0,o.__decorate)([(0,l.watch)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,o.__decorate)([(0,a.derive)(u.Dlgs)],C)},63425(e,t,i){"use strict";i.d(t,{FileBrowserFiles:()=>s.FileBrowserFiles,FileBrowserTree:()=>o.FileBrowserTree});var s=i(86122),o=i(55376)},63468(e,t,i){"use strict";i.d(t,{UIGroup:()=>h});var s=i(25045),o=i(31635),r=i(80251),n=i(84839),a=i(23211),l=i(65946),c=i(96007);class h extends c.UIElement{className(){return"UIGroup"}get allChildren(){let e=[],t=[...this.elements];for(;t.length;){let i=t.shift();(0,l.isArray)(i)?t.push(...i):r.Component.isInstanceOf(i,h)?t.push(...i.elements):i&&e.push(i)}return e}update(){this.elements.forEach(e=>e.update()),this.setMod("size",this.buttonSize)}append(e,t){let i;if((0,l.isArray)(e)){if("number"==typeof t)throw Error("You can not use index when append array of elements");return e.forEach(e=>this.append(e,t)),this}if("number"==typeof t?(i=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(i,0,e)):this.elements.push(e),e.name&&e.container.classList.add(this.getFullElName(e.name)),t&&"string"==typeof t){let i=this.getElm(t);if(null==i)throw Error("Element does not exist");i.appendChild(e.container)}else this.appendChildToContainer(e.container,i);return e.parentElement=this,this}afterSetMod(e,t){this.syncMod&&this.elements.forEach(i=>i.setMod(e,t))}appendChildToContainer(e,t){void 0===t||t<0||t>this.elements.length-1||null==this.container.children[t]?this.container.appendChild(e):this.container.insertBefore(e,this.container.children[t])}remove(e){let t=this.elements.indexOf(e);return -1!==t&&(this.elements.splice(t,1),a.Dom.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach(e=>e.destruct()),this.elements.length=0,this}destruct(){return this.clear(),super.destruct()}constructor(e,t,i){super(e,i),(0,s._)(this,"options",void 0),(0,s._)(this,"syncMod",void 0),(0,s._)(this,"elements",void 0),(0,s._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",t?.forEach(e=>e&&this.append(e)),i?.name&&(this.name=i.name)}}(0,o.__decorate)([(0,n.watch)("buttonSize")],h.prototype,"update",null),h=(0,o.__decorate)([n.component],h)},63837(e){e.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63974(e,t,i){"use strict";var s=i(25045),o=i(27795),r=i(28077),n=i(65946),a=i(4040),l=i(91206);class c extends l.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,a.trim)(e.editor.textContent||"")&&!e.editor.querySelector("img,table,jodit,iframe,hr")&&(!t||!o.Dom.closest(t,"table",e.editor))){e.editor.innerHTML="";let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let s=o.Dom.findSibling(i,!0),r=o.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,s,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,s,i,t),this.__addBrInEmptyBlock(i,r,t),o.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)&&o.Dom.isEmpty(i.firstElementChild)&&o.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let s=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=s.createInside.element("br");o.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(o.Dom.isTag(t,"table")){let e=(0,n.$$)("td,th",t).shift();o.Dom.isCell(e)&&o.Dom.isEmpty(e)&&o.Dom.append(e,s.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,s){if(!t||!o.Dom.isText(t)){let t=o.Dom.closest(i,o.Dom.isBlock,e.editor)??e.editor,r=o.Dom.prev(i,o.Dom.isText,t);r&&(s.setStartAfter(r),s.collapse(!0),o.Dom.safeRemove(i))}}}(0,s._)(c,"requires",["backspace"]),r.pluginSystem.add("deleteCommand",c)},64094(e,t,i){"use strict";var s=i(23211),o=i(28077),r=i(65946),n=i(16849),a=i(80991),l=i(29434),c=i(5266),h=i(80515),d=i.n(h);l.Icon.set("justify",d()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,o=e.s.current();if(o){let n=s.Dom.closest(o,s.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(n,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:h}=i;h&&h.currentValue!==l&&c&&((0,r.isPlainObject)(c)?c[l]:c.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,h.currentValue=l)}},isActive(e,t){let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let o=s.Dom.closest(i,s.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(o,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},o.pluginSystem.add("justify",e=>{e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let o=s.Dom.up(i,s.Dom.isBlock,e.editor);o||(o=s.Dom.wrapInline(i,e.o.enterBlock,e)),(0,n.alignElement)(t,o)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},64222(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(91206),d=i(63425);class u extends h.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,c.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,a.Dom.isElement(t)&&t.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),s=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),s&&this.__insertFragment.call(this,s,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,c.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(e)).setAttribute(t,(0,c.attr)(this.draggable,"data-src")||(0,c.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,c.attr)(i,t)||"")}else i=(0,c.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),a.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...e){super(...e),(0,s._)(this,"isFragmentFromEditor",!1),(0,s._)(this,"isCopyMode",!1),(0,s._)(this,"startDragPoint",{x:0,y:0}),(0,s._)(this,"draggable",null),(0,s._)(this,"bufferRange",null),(0,s._)(this,"getText",e=>{let t=(0,c.getDataTransfer)(e);return t?t.getData(r.TEXT_HTML)||t.getData(r.TEXT_PLAIN):null})}}(0,o.__decorate)([n.autobind],u.prototype,"onDragStart",null),(0,o.__decorate)([(0,n.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),(0,o.__decorate)([n.autobind],u.prototype,"onDragEnd",null),(0,o.__decorate)([n.autobind],u.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",u)},64637(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64847(e,t,i){"use strict";i.d(t,{UIGroup:()=>s.UIGroup,UIList:()=>o.UIList,UISeparator:()=>r.UISeparator,UISpacer:()=>n.UISpacer});var s=i(63468),o=i(97959),r=i(35676),n=i(27987)},65015(e,t,i){"use strict";i.d(t,{sanitizeAttributes:()=>r});var s=i(23211),o=i(65946);function r(e,t,i){return!!(s.Dom.isElement(t)&&(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:e.options.cleanHTML.safeJavaScriptLink,removeOnError:e.options.cleanHTML.removeOnError}))||i}},65230(e,t,i){"use strict";var s=i(23211),o=i(29434),r=i(5266),n=i(95032),a=i.n(n),l=i(73533),c=i.n(l),h=i(45778);r.Config.prototype.link={formTemplate:h.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"]},o.Icon.set("link",a()).set("unlink",c()),r.Config.prototype.controls.unlink={exec(e,t){let i=s.Dom.closest(t,"a",e.editor);i&&s.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},r.Config.prototype.controls.link={isActive(e){let t=e.s.current();return!!(t&&s.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},65273(e,t,i){"use strict";i.d(t,{UIInput:()=>u});var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(88475),l=i(93640),c=i(96007),h=i(81488),d=i(29434);class u extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?n.Dom.after(this.nativeInput,this.clearButton):n.Dom.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let e=this.nativeInput,{name:t,icon:i,type:s,ref:o,required:r,placeholder:a,autocomplete:c,label:h}=this.state;(0,l.attr)(e,"name",t),(0,l.attr)(e,"type",s),(0,l.attr)(e,"data-ref",o||t),(0,l.attr)(e,"ref",o||t),(0,l.attr)(e,"required",r||null),(0,l.attr)(e,"autocomplete",c?null:"off"),(0,l.attr)(e,"placeholder",a?this.j.i18n(a):""),i&&d.Icon.exists(i)?(n.Dom.before(e,this.icon),this.icon.innerHTML=d.Icon.get(i)):n.Dom.safeRemove(this.icon),h?(n.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(h)):n.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(h.inputValidators.required),this.state.validators?.forEach(e=>{let t=h.inputValidators[e];t&&this.validators.add(t)})}set error(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):n.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){let e=this.state.value.toString();e!==this.value&&(this.value=e)}onChangeValue(){let{value:e}=this;this.state.value!==e&&(this.state.value=e,this.j.e.fire(this,"change",e),this.state.onChange?.(e))}validate(){this.error="";let e=(0,a.toArray)(this.validators).every(e=>e(this));return this.__markInputInvalid(),e}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(e){let t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),t.appendChild(this.wrapper),(0,l.attr)(i,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(e,t){super(e,t),(0,s._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,s._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,s._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),d.Icon.get("cancel"))),(0,s._)(this,"state",{...u.defaultState}),(0,s._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,s._)(this,"validators",new Set([])),t?.value!==void 0&&(t.value=t.value.toString()),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,s._)(u,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,o.__decorate)([(0,r.watch)("state.clearButton")],u.prototype,"onChangeClear",null),(0,o.__decorate)([(0,r.watch)("state.className")],u.prototype,"onChangeClassName",null),(0,o.__decorate)([(0,r.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,r.debounce)()],u.prototype,"onChangeState",null),(0,o.__decorate)([(0,r.watch)("state.value")],u.prototype,"onChangeStateValue",null),(0,o.__decorate)([r.autobind],u.prototype,"onChangeValue",null),u=(0,o.__decorate)([r.component],u)},65701(e,t,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},65710(e,t,i){"use strict";i.d(t,{insertParagraph:()=>r});var s=i(23211),o=i(60898);function r(e,t,i,r){let n="br"===i.toLowerCase(),{createInside:a}=t,l=a.element(i),c=a.element("br");return n||l.appendChild(c),r&&r.cssText&&l.setAttribute("style",r.cssText),s.Dom.after(e,l),s.Dom.before(n?l:c,e),(0,o.scrollIntoViewIfNeeded)(l,t.editor,t.ed),l}},65946(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase:()=>h.CamelCaseToKebabCase,NUMBER_FIELDS_REG:()=>l.NUMBER_FIELDS_REG,applyStyles:()=>a.applyStyles,asArray:()=>s.asArray,camelCase:()=>h.camelCase,cleanFromWord:()=>a.cleanFromWord,clearTimeout:()=>o.clearTimeout,colorToHex:()=>n.colorToHex,fuzzySearchIndex:()=>h.fuzzySearchIndex,getContentWidth:()=>c.getContentWidth,getScrollParent:()=>c.getScrollParent,hasBrowserColorPicker:()=>r.hasBrowserColorPicker,hasContainer:()=>r.hasContainer,htmlspecialchars:()=>a.htmlspecialchars,i18n:()=>h.i18n,innerWidth:()=>c.innerWidth,isAbortError:()=>r.isAbortError,isArray:()=>r.isArray,isBoolean:()=>r.isBoolean,isDestructable:()=>r.isDestructable,isEqual:()=>r.isEqual,isFastEqual:()=>r.isFastEqual,isFunction:()=>r.isFunction,isHTML:()=>r.isHTML,isHtmlFromWord:()=>r.isHtmlFromWord,isInitable:()=>r.isInitable,isInt:()=>r.isInt,isJoditObject:()=>r.isJoditObject,isLicense:()=>r.isLicense,isMarker:()=>r.isMarker,isNativeFunction:()=>r.isNativeFunction,isNumber:()=>r.isNumber,isNumeric:()=>r.isNumeric,isPlainObject:()=>r.isPlainObject,isPromise:()=>r.isPromise,isSet:()=>r.isSet,isString:()=>r.isString,isStringArray:()=>r.isStringArray,isURL:()=>r.isURL,isValidName:()=>r.isValidName,isViewObject:()=>r.isViewObject,isVoid:()=>r.isVoid,isWindow:()=>r.isWindow,kebabCase:()=>h.kebabCase,nl2br:()=>a.nl2br,normalizeColor:()=>l.normalizeColor,normalizeCssNumericValue:()=>l.normalizeCssNumericValue,normalizeCssValue:()=>l.normalizeCssValue,normalizeKeyAliases:()=>l.normalizeKeyAliases,normalizeLicense:()=>l.normalizeLicense,normalizePath:()=>l.normalizePath,normalizeRelativePath:()=>l.normalizeRelativePath,normalizeSize:()=>l.normalizeSize,normalizeUrl:()=>l.normalizeUrl,offset:()=>c.offset,position:()=>c.position,safeHTML:()=>a.safeHTML,sanitizeHTMLElement:()=>a.sanitizeHTMLElement,setTimeout:()=>o.setTimeout,size:()=>c.size,splitArray:()=>s.splitArray,sprintf:()=>h.sprintf,stringify:()=>h.stringify,stripTags:()=>a.stripTags,toArray:()=>s.toArray,trim:()=>h.trim,trimChars:()=>h.trimChars,trimInv:()=>h.trimInv,ucfirst:()=>h.ucfirst});var s=i(45664),o=i(61077),r=i(28686),n=i(7018),a=i(82658),l=i(97022),c=i(86878),h=i(97642),d=i(93640),u={};for(var p in d)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(u[p]=(e=>d[e]).bind(0,p));i.d(t,u)},66547(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66862(e,t,i){"use strict";i.d(t,{hasPreviousBlock:()=>o});var s=i(23211);function o(e,t){return!!s.Dom.prev(e,e=>s.Dom.isBlock(e)||s.Dom.isImage(e),t.editor)}},67176(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67399(e,t,i){"use strict";i.d(t,{ContextMenu:()=>l});var s=i(31635),o=i(91672),r=i(17312),n=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(e,t,i){let s=this;s.clear(),(0,r.isArray)(i)&&(i.forEach(e=>{if(!e)return;let t=(0,n.Button)(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction(t=>(e.exec?.call(s,t),s.clear(),s.close(),!1)),this.append(t)}),this.open(()=>({left:e,top:t,width:0,height:0}),!0))}}l=(0,s.__decorate)([o.component],l)},67447(e){e.exports='<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>'},67582(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(18855);i(79803);let d=!r.IS_ES_NEXT&&r.IS_IE;class u extends h.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,c.offset)(e.container,e,e.od,!0),s=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===s)return;let o=e.toolbarContainer;o&&(s?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",s)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){a.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...e){super(...e),(0,s._)(this,"__isToolbarStuck",!1),(0,s._)(this,"__dummyBox",void 0),(0,s._)(this,"__createDummy",e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,e)}),(0,s._)(this,"addSticky",e=>{this.__isToolbarStuck||(d&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,c.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,c.css)(this.__dummyBox,{height:e.offsetHeight})}),(0,s._)(this,"removeSticky",e=>{this.__isToolbarStuck&&((0,c.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,o.__decorate)([(0,n.throttle)()],u.prototype,"__onScroll",null),l.pluginSystem.add("sticky",u)},68097(e,t,i){"use strict";i.d(t,{RecognizeManager:()=>c});var s=i(25045),o=i(31635),r=i(84839),n=i(60216),a=i(32560),l=i(94092);class c extends n.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.PII),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(l.WARN),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,a.sound)({frequency:e})}constructor(e,t){super(),(0,s._)(this,"async",void 0),(0,s._)(this,"_lang",void 0),(0,s._)(this,"_continuous",void 0),(0,s._)(this,"_interimResults",void 0),(0,s._)(this,"sound",void 0),(0,s._)(this,"_isEnabled",void 0),(0,s._)(this,"_restartTimeout",void 0),(0,s._)(this,"_onSpeechStart",void 0),(0,s._)(this,"_api",void 0),(0,s._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,c._instances.add(this)}}(0,s._)(c,"_instances",new Set),c=(0,o.__decorate)([r.autobind],c)},68502(e,t,i){"use strict";i(37102);var s=i(28686),o=i(37427),r=i(75587),n=i(5266);n.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(e,t)=>(t=t.toLowerCase(),(0,s.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,s.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,s.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t),sortBy:"changed-desc",sort(e,t,i){let[r,n]=i.toLowerCase().split("-"),a="asc"===n,l=(e,t)=>t>e?a?-1:1:e>t?a?1:-1:0;if((0,s.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[r]||"name"===r)return(0,s.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,s.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(r){case"changed":{let i=new Date(e.changed).getTime(),s=new Date(t.changed).getTime();return a?i-s:s-i}case"size":{let i=(0,o.humanSizeToBytes)(e.size),s=(0,o.humanSizeToBytes)(t.size);return a?i-s:s-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,s.isArray)(e.data.messages)?e.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let s=this.options,o=this.files.getFullElName("item"),r=s.showFileName,n=s.showFileSize&&e.size,a=s.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let c=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${n?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
211
+ data-jodit-file-browser-item="true"
212
+ data-is-file="${+!e.isImage}"
213
+ draggable="true"
214
+ class="${o}"
215
+ href="${e.fileURL}"
216
+ data-source="${i}"
217
+ data-path="${e.path}"
218
+ data-name="${l}"
219
+ title="${l}"
220
+ data-url="${e.fileURL}">
221
+ <img
222
+ data-is-file="${+!e.isImage}"
223
+ data-src="${e.fileURL}"
224
+ src="${e.imageURL}"
225
+ alt="${l}"
226
+ loading="lazy"
227
+ />
228
+ ${r||n||a?c:""}
229
+ </a>`},ajax:{...n.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},n.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e,t){let i=new r.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(e){let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t){let i=t.container.querySelector(".jodit-input");if(i)return i;let s=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return s.value=e.state.filterWord,e.e.on(s,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",s.value)},e.defaultTimeout)),s}},sort:{isInput:!0,getContent(e){let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},68616(e,t,i){"use strict";i.d(t,{getPropertyDescriptor:()=>h,watch:()=>d});var s=i(69364),o=i(70535),r=i(32328),n=i(91565),a=i(62101),l=i(31534),c=i(33201);function h(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}function d(e,t){return(i,d)=>{if(!(0,n.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let u=t?.immediately??!0,p=t?.context,m=t=>{let s=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};u||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;i.length&&(r=t.get(i)),(0,n.isFunction)(r)&&(r=r(t)),s.events.on(r||t,o,c),r||s.events.on(o,c),t.hookStatus("beforeDestruct",()=>{s.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),u=t[l];(0,a.isPlainObject)(u)&&(0,o.observable)(u).on("change."+d.join("."),c);let m=h(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=u;i!==e&&(u=e,m&&m.set&&m.set.call(t,e),(0,a.isPlainObject)(u)&&(u=(0,o.observable)(u)).on("change."+d.join("."),c),c(l,i,u))},get:()=>m&&m.get?m.get.call(t):u})})};(0,n.isFunction)(i.hookStatus)?i.hookStatus(s.STATUSES.ready,m):m(i)}}},68624(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(65946),c=i(91206);i(65230);class h extends c.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);e?.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!n.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let e=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,t,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,{jodit:s}=this,o=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:a,formTemplate:c,formClassName:h,modeClassName:d}=s.o.link,u=c(s),p=(0,l.isString)(u)?s.c.fromHTML(u,{target_checkbox_box:r,nofollow_checkbox_box:a}):u,m=n.Dom.isElement(p)?p:p.container,g=(0,l.refs)(m),{insert:f,unlink:_,content_input_box:v}=g,{target_checkbox:b,nofollow_checkbox:y,url_input:w}=g,S=n.Dom.isImage(e),{content_input:C}=g,{className_input:E}=g,{className_select:I}=g;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),h&&m.classList.add(h),S&&n.Dom.hide(v);let T=()=>i?i.innerText:(0,l.stripTags)(s.s.range.cloneContents(),s.ed);i=!!(e&&n.Dom.closest(e,"a",s.editor))&&n.Dom.closest(e,"a",s.editor),!S&&e&&(C.value=T()),i?(w.value=(0,l.attr)(i,"href")||"",d&&((e,t,i,s)=>{switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(s){for(let e=0;e<s.selectedOptions.length;e++){let t=s.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<s.options.length;t++){let i=s.options.item(t);i?.value&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}})(d,E,i,I),r&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),f.textContent=o("Update")):n.Dom.hide(_),s.editor.normalize();let x=s.history.snapshot.make();_&&s.e.on(_,"click",e=>{s.s.restore(),s.history.snapshot.restore(x),i&&n.Dom.unwrap(i),s.synchronizeValues(),t(),e.preventDefault()});let D=()=>{let e;if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(x);let o=T()!==C.value.trim(),c=s.createInside;if(i&&n.Dom.isOrContains(s.editor,i))e=[i];else{if(s.s.isCollapsed()){let t=c.element("a");s.s.insertNode(t,!1,!1),e=[t]}else{let t=s.s.current();e=n.Dom.isTag(t,"img")?[n.Dom.wrap(t,"a",c)]:s.s.wrapInTag("a")}e.forEach(e=>s.s.select(e))}return e.forEach(e=>{var t;let i;(0,l.attr)(e,"href",w.value),((e,t,i,s)=>{if(e&&(t??i)){if("input"===e)""===t.value&&s.hasAttribute("class")&&(0,l.attr)(s,"class",null),""!==t.value&&(0,l.attr)(s,"class",t.value);else if("select"===e){s.hasAttribute("class")&&(0,l.attr)(s,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=i.selectedOptions.item(e)?.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{s.classList.add(e)})}}}})(d,E,I,e),S||(t=C,i=e.textContent,t.value.trim().length?o&&(i=t.value):i=w.value,i!==e.textContent&&(e.textContent=i)),r&&b&&(0,l.attr)(e,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(e,"rel",y.checked?"nofollow":null),s.e.fire("applyLink",s,e,p)}),s.synchronizeValues(),t(),!1};return n.Dom.isElement(p)?s.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),D(),!1)):p.onSubmit(D),p}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&n.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,o.__decorate)([r.autobind],h.prototype,"__onDblClickOnLink",null),(0,o.__decorate)([r.autobind],h.prototype,"onProcessPasteLink",null),(0,o.__decorate)([r.autobind],h.prototype,"__generateForm",null),(0,o.__decorate)([r.autobind],h.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",h)},68709(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:()=>n});var s=i(27795),o=i(65946),r=i(42259);function n(e,t,i){let n=s.Dom.findSibling(t,i);return!n&&t.parentElement&&t.parentElement!==e.editor&&(n=s.Dom.findSibling(t.parentElement,i)),!(!s.Dom.isElement(n)||s.Dom.isContentEditable(n,e.editor))&&((0,o.call)(i?s.Dom.before:s.Dom.after,n,t),s.Dom.safeRemove(n),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},69023(e,t,i){"use strict";i(5266).Config.prototype.tab={tabInsideLiInsertNewList:!0}},69070(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},69143(e,t,i){"use strict";i.d(t,{offset:()=>s});let s=(e,t,i,o=!1)=>{let r,n,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},h=i.defaultView||i.parentWindow,d=h.pageYOffset||c.scrollTop||l.scrollTop,u=h.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,m=c.clientLeft||l.clientLeft||0,g=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&g){let{top:e,left:i}=s(g,t,t.od,!0);n=r.top+e,a=r.left+i}else n=r.top+d-p,a=r.left+u-m;return{top:Math.round(n),left:Math.round(a),width:r.width,height:r.height}}},69364(e,t,i){"use strict";i.d(t,{STATUSES:()=>s});let s={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},69696(e,t,i){"use strict";var s=i(28077),o=i(24497),r=i(80991);i(80538);let n=new Set;s.pluginSystem.add("fullsize",e=>{e.registerButton({name:"fullsize"});let t=!1,i=0,s=0,a=!1,l=()=>{let{container:o,events:n}=e;n&&(t?(i=(0,r.css)(o,"height",!0),s=(0,r.css)(o,"width",!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth}),a=!0):a&&(0,r.css)(o,{height:i||"auto",width:s||"auto"}))},c=i=>{let{container:s,events:a}=e;if(s){if(void 0===i&&(i=!s.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,s.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,o.isJoditObject)(e)&&e.toolbarContainer?.appendChild(e.toolbar.container),(0,r.css)(e.toolbar.container,"width","auto")),i?n.add(s):n.delete(s),e.o.globalFullSize&&(1===n.size&&i||0===n.size&&!i)){let e=s.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{e.toggleFullSize(e?.options?.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{t&&c(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},70195(e,t,i){"use strict";i.d(t,{removeFormatForSelection:()=>n});var s=i(23211),o=i(93640),r=i(37431);function n(e){let{s:t,editor:i,createInside:n}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),h=n.fake(),d=n.fake();l.collapse(!0),c.collapse(!1),s.Dom.safeInsertNode(l,h),s.Dom.safeInsertNode(c,d),a.setStartBefore(h),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,h),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let u=[];s.Dom.between(h,d,e=>{(0,r.isInlineBlock)(e)&&!s.Dom.isTag(e,"a")&&u.push(e),s.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),u.forEach(e=>s.Dom.unwrap(e));let p=(e,t)=>{if(!s.Dom.findNotEmptySibling(e,t)){let s=e.parentNode;if(s&&s!==i&&(0,o.attr)(s,"style"))return(0,o.attr)(s,"style",null),p(s,t),!0}};p(h,!0)&&p(d,!1),a.setStartAfter(h),a.setEndBefore(d),t.selectRange(a),s.Dom.safeRemove(h),s.Dom.safeRemove(d)}},70222(e,t,i){"use strict";i.d(t,{isNumeric:()=>o});var s=i(85932);function o(e){if((0,s.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},70235(e,t,i){"use strict";var s=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec(e,t){let i=(0,s.attr)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},70535(e,t,i){"use strict";i.d(t,{observable:()=>c});var s=i(68616),o=i(17312),r=i(94013),n=i(62101);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,s)=>((0,o.isArray)(t)?t.map(e=>c(e,s)):(i[t]||(i[t]=[]),i[t].push(s)),e),h=(s,...r)=>{if((0,o.isArray)(s))return void s.map(e=>h(e,...r));try{!t[s]&&i[s]&&(t[s]=!0,i[s].forEach(t=>t.call(e,...r)))}finally{t[s]=!1}},d=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,r.isFastEqual)(o[a],t)){h(["beforeChange","beforeChange."+l.join(".")],a,t),(0,n.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let s=[];h(["change",...l.reduce((e,t)=>(s.push(t),e.push("change."+s.join(".")),e),[])],l.join("."),i,t?.valueOf?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,n.isPlainObject)(o[a])&&d(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},70697(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70881(e){e.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71125(e,t,i){"use strict";i.d(t,{call:()=>a,callPromise:()=>c,getDataTransfer:()=>p,keys:()=>d,loadImage:()=>h,markOwner:()=>l,memorizeExec:()=>u});var s=i(52100),o=i(18303),r=i(7909),n=i(36400);function a(e,...t){return e(...t)}function l(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,s.isPromise)(e)?e.then(e=>e,()=>null).finally(t):t?.()}let h=(e,t)=>t.async.promise((i,s)=>{let o=new Image,r=()=>{t.e.off(o),s?.()},n=()=>{t.e.off(o),i(o)};t.e.one(o,"load",n).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&n()}),d=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},u=(e,t,{control:i},s)=>{let r="button"+i.command,a=(i.args&&i.args[0])??(0,n.dataBind)(e,r);if((0,o.isVoid)(a))return!1;(0,n.dataBind)(e,r,a),s&&(a=s(a)),e.execCommand(i.command,!1,a??void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch{return null}}},71552(e,t,i){"use strict";i.d(t,{applyValuesToImage:()=>l});var s=i(23211),o=i(93640),r=i(49422),n=i(21132),a=i(49147);function l(e,t,i){let{style:l,imageSrc:c,borderRadius:h,imageTitle:d,imageAlt:u,imageLink:p,imageWidth:m,imageHeight:g,marginTop:f,marginRight:_,marginBottom:v,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:S,id:C}=t.values,E=e.o;if(E.image.editStyle&&(0,o.attr)(i,"style",l||null),!c)return void s.Dom.safeRemove(i);(0,o.attr)(i,"src",c),i.style.borderRadius=h?h+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",u||null),(0,r.applyLink)(e,i,p,y),(0,a.applySize)(i,m,g,t.sizeIsLocked),e.o.image.editMargins&&(0,n.applyMargin)(e,f,_,v,b,i,t.marginIsLocked),E.image.editClass&&(0,o.attr)(i,"class",S||null),E.image.editId&&(0,o.attr)(i,"id",C||null),E.image.editAlign&&(0,o.hAlignElement)(i,w)}},71693(e,t,i){"use strict";var s=i(81937),o=i(5266);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:s.INSERT_AS_HTML,text:"Keep"},{value:s.INSERT_AS_TEXT,text:"Clean"},{value:s.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71940(e){e.exports='<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>'},71948(e){e.exports='<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>'},72068(e,t,i){"use strict";function s(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:()=>s})},72214(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(91206),c=i(4099);i(58293);class h extends l.Plugin{afterInit(e){let{height:t,width:i,allowResizeX:s}=e.o,{allowResizeY:o}=e.o;"auto"===t&&"auto"!==i&&(o=!1),("auto"!==t||"auto"!==i)&&(s||o)&&(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.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),e.preventDefault()}onHandleResize(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.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(){n.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...e){super(...e),(0,s._)(this,"isResized",!1),(0,s._)(this,"start",{x:0,y:0,w:0,h:0}),(0,s._)(this,"handle",this.j.c.div("jodit-editor__resize",c.Icon.get("resize_handler")))}}(0,s._)(h,"requires",["size"]),h=(0,o.__decorate)([r.autobind],h),a.pluginSystem.add("resizeHandler",h)},72348(e,t,i){"use strict";i.d(t,{ColorPickerWidget:()=>l});var s=i(27795),o=i(65946),r=i(4099),n=i(54522),a=i.n(n);r.Icon.set("palette",a());let l=(e,t,i)=>{let n="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(n),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),h=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${n}__group ${n}__group-${i}">`),t.push(h(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${n}__color-item ${a===e?n+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${n}__groups">${h(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));let{extra:d}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(d.appendChild(e.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!s.Dom.isTag(i,"input"))return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||s.Dom.isTag(r,"svg")||s.Dom.isTag(r,"path"))&&r.parentNode&&(r=s.Dom.closest(r.parentNode,"span",e.editor)),!s.Dom.isTag(r,"span")||!r.classList.contains(n+"__color-item"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,d,t,a),l}},72412(e,t,i){"use strict";function s(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:()=>s})},73019(e,t,i){"use strict";i.d(t,{isSameStyleChild:()=>l,isSuitElement:()=>n,suitableClosest:()=>a});var s=i(23211),o=i(9703),r=i(83653);function n(e,t,i,a=!0){if(!t||!(0,r.isNormalNode)(t))return!1;let{element:l,elementIsDefault:c,options:h}=e;if(s.Dom.isList(t)&&e.elementIsList)return!0;let d=s.Dom.isTag(t,l);return!!(d&&!(c&&i)||h.attributes?.style&&(a?(0,o.hasSameStyle)(t,h.attributes.style):(0,o.hasSameStyleKeys)(t,h.attributes.style))&&!e.elementIsList)||!d&&!i&&c&&s.Dom.isInlineBlock(t)}function a(e,t,i){return s.Dom.closest(t,t=>n(e,t,!0,!1),i)}function l(e,t){let{element:i,options:s}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let n=t.nodeName.toLowerCase()===i,a=!!(s.attributes?.style&&(0,o.hasSameStyleKeys)(t,s.attributes?.style));return n&&a}},73154(e,t,i){"use strict";i.d(t,{wrap:()=>a});var s=i(27795),o=i(7909),r=i(97110),n=i(83335);function a(e,t,i){var a,c,h;let d=(a=e,c=t,h=i,a.elementIsBlock?s.Dom.up(c,e=>s.Dom.isBlock(e)&&!s.Dom.isTag(e,l),h.editor)||(0,n.wrapUnwrappedText)(a,c,h):((0,o.attr)(c,"size",null),c));return e.elementIsList?(0,r.wrapList)(e,d,i):s.Dom.replace(d,e.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},73302(e,t,i){"use strict";i.d(t,{Jodit:()=>Jodit});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(28077),l=i(65946),c=i(73714),h=i(80512),d=i(5266),u=i(60936);let p="data-jodit-default-style-display",m="data-jodit-default-classes";class Jodit extends u.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{a.eventEmitter.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";let e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:d.Config.defaultOptions.defaultTimeout}static atom(e){return(0,l.markAsAtomic)(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&(0,l.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return d.Config.defaultOptions}get createInside(){return new u.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let e=this,t=(0,l.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((i,s)=>{let o=t.baseurl+i;t.isImages&&t.isImages[s]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){let e=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){let t={value:e};!this.e.fire("beforeSetNativeEditorValue",t)&&this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",t)))return i;i=this.getNativeEditorValue().replace(r.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let s={value:i};return this.e.fire("afterGetValueFromEditor",s,t),s.value}setEditorValue(e){let t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,l.isString)(t)&&(e=t),!this.editor){void 0!==e&&this.__setElementValue(e);return}if(!(0,l.isString)(e)&&!(0,l.isVoid)(e))throw(0,l.error)("value must be string");(0,l.isVoid)(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),s=this.getEditorValue();if(!this.__isSilentChange&&i!==s&&this.__callChangeCount<r.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(s),this.__callChangeCount+=1,r.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",s,i),this.e.fire(this.history,"change",s,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!(0,l.isString)(e))throw(0,l.error)("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){let t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,l.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,i){let s=e.toLowerCase(),o=this.commands.get(s);if(void 0===o&&(o=[],this.commands.set(s,o)),o.push(t),!(0,l.isFunction)(t)){let o=this.o.commandToHotkeys[s]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,s,i?.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){let s=(0,l.asArray)(e).map(l.normalizeKeyAliases).map(e=>e+".hotkey").join(" ");this.e.off(s).on(s,(e,s)=>(s&&(s.shouldStop=i??!0),this.execCommand(t)))}execCommand(e,t,i,...s){let o;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){if(e=e.toLowerCase(),!1!==(o=this.e.fire("beforeCommand"+(0,l.ucfirst)(e),t,i,...s))&&(o=this.e.fire("beforeCommand",e,t,i,...s)),!1!==o&&(o=this.__execCustomCommands(e,t,i,...s)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,i)}catch(e){if(!r.IS_PROD)throw e}}return this.e.fire("afterCommand",e,t,i),this.__imdSynchronizeValues(),o}}nativeExecCommand(e,t,i){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,i,...s){e=e.toLowerCase();let o=this.commands.get(e);if(void 0!==o){let r;return o.forEach(o=>{let n=((0,l.isFunction)(o)?o:o.exec).call(this,e,t,i,...s);void 0!==n&&(r=n)}),r}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===r.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==r.MODE_SPLIT)return this.getMode();let e=this.od.activeElement;return e&&(e===this.iframe||u.Dom.isOrContains(this.editor,e)||u.Dom.isOrContains(this.toolbar.container,e))?r.MODE_WYSIWYG:r.MODE_SOURCE}setMode(e){let t=this.getMode(),i={mode:parseInt(e.toString(),10)},s=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[r.MODE_SOURCE,r.MODE_WYSIWYG,r.MODE_SPLIT].includes(i.mode)?i.mode:r.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),s.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(s[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[r.MODE_SOURCE,r.MODE_WYSIWYG,this.o.useSplitMode?r.MODE_SPLIT:9].includes(e+1)?e+=1:e=r.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;let t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==r.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,l.ConfigProto)(e||{},d.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){let i=(0,l.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,l.toArray)(i.attributes).forEach(e=>{let i=e.name,s=e.value;void 0===d.Config.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(s=""===s||"true"===s),/^[0-9]+(\.)?([0-9]+)?$/.test(s.toString())&&(s=Number(s)),this.options[i]=s)});let s=this.c.div("jodit-container");s.classList.add("jodit"),s.classList.add("jodit-container"),s.classList.add("jodit_theme_"+(this.o.theme||"default")),g(this.o.className,s),this.o.containerStyle&&(0,l.css)(s,this.o.containerStyle);let{styleValues:o}=this.o;Object.keys(o).forEach(e=>{let t=(0,l.kebabCase)(e);s.style.setProperty("--jd-"+t,o[e])}),s.setAttribute("contenteditable","false");let r=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(s=i,i.setAttribute(m,i.className.toString()),r=s.innerHTML,s.innerHTML=""),s.classList.add("jodit_inline"),s.classList.add("jodit-container")),i!==s&&(i.style.display&&i.setAttribute(p,i.style.display),i.style.display="none");let n=this.c.div("jodit-workplace",{contenteditable:!1});s.appendChild(n),i.parentNode&&i!==s&&i.parentNode.insertBefore(s,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);let c={editor:a,element:i,container:s,workplace:n,statusbar:new u.StatusBar(this,s),options:this.isReady?(0,l.ConfigProto)(t||{},d.Config.defaultOptions):this.options,history:new u.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());let h=this.__initEditor(r),f=this.options,_=()=>{f.enableDragAndDropFileToEditor&&f.uploader&&(f.uploader.url||f.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)};return(0,l.callPromise)(h,_)}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(r.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){let t=this.__createEditor();return(0,l.callPromise)(t,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){let e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}})}__createEditor(){let e=this.editor,t=this.e.fire("createEditor",this);return(0,l.callPromise)(t,()=>{!this.isInDestruct&&((!1===t||(0,l.isPromise)(t))&&u.Dom.safeRemove(e),g(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:e}=this;if(this.o.direction){let e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e),this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{let t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(e instanceof this.ew.KeyboardEvent)||!e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}})}fetch(e,t){let i=new c.Ajax({url:e,...t},this.o.defaultAjaxOptions),s=()=>{this.e.off("beforeDestruct",s),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",s),this.progressbar.show().progress(30);let o=i.send();return o.finally(s).catch(()=>null),o}destruct(){if(this.isInDestruct)return;this.setStatus(u.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,n.cached)(this,"storage")?.clear(),(0,n.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let e=this.editor?this.getEditorValue():"";this.places.forEach(({container:t,workplace:i,statusbar:s,element:o,iframe:r,editor:n,history:a})=>{if(o){if(o!==t)if(o.hasAttribute(p)){let e=(0,l.attr)(o,p);e&&(o.style.display=e,o.removeAttribute(p))}else o.style.display="";else o.hasAttribute(m)&&(o.className=(0,l.attr)(o,m)||"",o.removeAttribute(m));o.hasAttribute("style")&&!(0,l.attr)(o,"style")&&o.removeAttribute("style"),s.destruct(),this.e.off(t),this.e.off(o),this.e.off(n),u.Dom.safeRemove(i),u.Dom.safeRemove(n),t!==o&&u.Dom.safeRemove(t),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),u.Dom.safeRemove(r),t===o&&(o.innerHTML=e),a.destruct()}}),this.places.length=0,this.currentPlace={},delete a.instances[this.id],super.destruct()}constructor(e,t){super(t,!0),(0,s._)(this,"isJodit",!0),(0,s._)(this,"commands",new Map),(0,s._)(this,"__selectionLocked",null),(0,s._)(this,"__wasReadOnly",!1),(0,s._)(this,"editorIsActive",!1),(0,s._)(this,"selection",void 0),(0,s._)(this,"__mode",r.MODE_WYSIWYG),(0,s._)(this,"__callChangeCount",0),(0,s._)(this,"__isSilentChange",!1),(0,s._)(this,"currentPlace",{options:this.__options}),(0,s._)(this,"places",[]),(0,s._)(this,"__elementToPlace",new Map);try{let t=(0,l.resolveElement)(e,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){if(!r.IS_PROD)throw e;throw this.destruct(),e}this.setStatus(u.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(e,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),a.instances[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new u.Selection(this);let i=this.beforeInitHook();(0,l.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(e,t);a.instances[this.id]=this;let s=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(u.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,l.callPromise)(i,s)})}}function g(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}(0,s._)(Jodit,"fatMode",r.FAT_MODE),(0,s._)(Jodit,"plugins",a.pluginSystem),(0,s._)(Jodit,"modules",a.modules),(0,s._)(Jodit,"ns",a.modules),(0,s._)(Jodit,"decorators",{}),(0,s._)(Jodit,"constants",r),(0,s._)(Jodit,"instances",a.instances),(0,s._)(Jodit,"lang",r.lang),(0,s._)(Jodit,"core",{Plugin:u.Plugin}),(0,o.__decorate)([n.cache],Jodit.prototype,"createInside",null),(0,o.__decorate)([n.cache],Jodit.prototype,"message",null),(0,o.__decorate)([n.cache],Jodit.prototype,"s",null),(0,o.__decorate)([n.cache],Jodit.prototype,"uploader",null),(0,o.__decorate)([n.cache],Jodit.prototype,"filebrowser",null),(0,o.__decorate)([(0,n.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,o.__decorate)([(0,n.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,o.__decorate)([n.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,o.__decorate)([(0,n.derive)(h.Dlgs)],Jodit)},73533(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73714(e,t,i){"use strict";i.d(t,{Ajax:()=>s.Ajax,Response:()=>o.Response});var s=i(17338),o=i(32855)},74103(e,t,i){"use strict";i.d(t,{Prompt:()=>a});var s=i(91565),o=i(7909),r=i(53681),n=i(76841);function a(e,t,i,a,l){let c=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),h=(0,r.Button)(c,"cancel","Cancel"),d=(0,r.Button)(c,"ok","Ok"),u=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),m=c.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),a&&(0,o.attr)(p,"placeholder",a),m.appendChild(c.c.text(e)),u.appendChild(m),u.appendChild(p),h.onAction(c.close);let g=()=>{i&&(0,s.isFunction)(i)&&!1===i(p.value)||c.close()};return d.onAction(g),c.e.on(u,"submit",()=>(g(),!1)),c.setFooter([d,h]),c.open(u,t||"&nbsp;",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},74240(e,t,i){"use strict";var s=i(28077),o=i(65946),r=i(2496);i(3244),s.pluginSystem.add("mobile",e=>{let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let s=new Date().getTime(),o=s-t;o>e.o.mobileTapTimeout&&(t=s,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),s=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(s.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!e.o.toolbar)return;let t=(e.container.parentElement??e.container).offsetWidth,s=e.isFullSize||t>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):t>=e.o.sizeMD?(0,o.splitArray)(e.o.buttonsMD):t>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),e.toolbar?.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},74264(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:()=>o,kebabCase:()=>s});let s=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},74522(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(18855);i(96608);let d="__jodit-resizer_binded";class u extends h.Plugin{afterInit(e){(0,c.$$)("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),l.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{let t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target,{editor:i,options:{allowResizeTags:s}}=this.j;for(;t&&t!==i;){if(a.Dom.isTag(t,s)){this.__bind(t),this.onClickElement(t);return}t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;let t=(0,c.attr)(e,"width");t&&!(0,c.css)(e,"width",!0)&&((0,c.css)(e,"width",t),(0,c.attr)(e,"width",null))}addEventListeners(){let e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===r.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){let t,i;if(!this.element)return;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){let s=this.getWorkplacePosition();t=e.clientX+s.left-this.startX,i=e.clientY+s.top-this.startY}else t=this.pointerX-this.startX,i=this.pointerY-this.startY;let s=this.handle.className,o=0,r=0,n=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===n||n&&a.Dom.isTag(this.element,n))?(t?r=Math.round((o=this.width+(s.match(/left/)?-1:1)*t)/this.ratio):o=Math.round((r=this.height+(s.match(/top/)?-1:1)*i)*this.ratio),o>(0,c.innerWidth)(this.j.editor,this.j.ow)&&(r=Math.round((o=(0,c.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(o=this.width+(s.match(/left/)?-1:1)*t,r=this.height+(s.match(/top/)?-1:1)*i),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===r.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(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,c.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){let s=a.Dom.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;s&&(0,c.attr)(e,t,i),(!s||e.style[t])&&(0,c.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,c.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(e){let t;if(!(!a.Dom.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||(0,c.dataBind)(e,d))){if((0,c.dataBind)(e,d,!0),a.Dom.isTag(e,"iframe")){let i=e;a.Dom.isHTMLElement(e.parentNode)&&(0,c.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,c.attr)(t,"style",(0,c.attr)(e,"style")),(0,c.css)(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{(0,c.attr)(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(e,"mousedown",t=>{a.Dom.isTag(e,"img")&&t.preventDefault()})}}showSizeViewer(e,t){if(this.j.o.resizer.showSize){if(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,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,c.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,c.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,c.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>(0,c.attr)(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...e){super(...e),(0,s._)(this,"LOCK_KEY","resizer"),(0,s._)(this,"handle",void 0),(0,s._)(this,"element",null),(0,s._)(this,"isResizeMode",!1),(0,s._)(this,"isShown",!1),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"width",0),(0,s._)(this,"height",0),(0,s._)(this,"ratio",0),(0,s._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
230
+ <div class="jodit-resizer__top-left"></div>
231
+ <div class="jodit-resizer__top-right"></div>
232
+ <div class="jodit-resizer__bottom-right"></div>
233
+ <div class="jodit-resizer__bottom-left"></div>
234
+ <span>100x100</span>
235
+ </div>`)),(0,s._)(this,"sizeViewer",this.rect.getElementsByTagName("span")[0]),(0,s._)(this,"pointerX",0),(0,s._)(this,"pointerY",0),(0,s._)(this,"isAltMode",!1),(0,s._)(this,"onClickElement",e=>{!this.isResizeMode&&(this.element===e&&this.isShown||(this.element=e,this.show(),a.Dom.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize)))}),(0,s._)(this,"updateSize",()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){let e=this.getWorkplacePosition(),t=(0,c.offset)(this.element,this.j,this.j.ed),i=parseInt(this.rect.style.left||"0",10),s=parseInt(this.rect.style.top||"0",10),o=this.rect.offsetWidth,r=this.rect.offsetHeight,n=t.top-e.top,a=t.left-e.left;(s!==n||i!==a||o!==this.element.offsetWidth||r!==this.element.offsetHeight)&&((0,c.css)(this.rect,{top:n,left:a,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(i)||this.j.e.fire("resize")))}}),(0,s._)(this,"hideSizeViewer",()=>{this.sizeViewer.style.opacity="0"})}}(0,o.__decorate)([(0,n.watch)(":click")],u.prototype,"onEditorClick",null),(0,o.__decorate)([(0,n.watch)(":afterInsertImage")],u.prototype,"__afterInsertImage",null),(0,o.__decorate)([n.autobind],u.prototype,"onStartResizing",null),(0,o.__decorate)([n.autobind],u.prototype,"onEndResizing",null),(0,o.__decorate)([n.autobind],u.prototype,"onResize",null),(0,o.__decorate)([n.autobind],u.prototype,"onKeyDown",null),(0,o.__decorate)([n.autobind],u.prototype,"onKeyUp",null),(0,o.__decorate)([n.autobind],u.prototype,"onClickOutside",null),(0,o.__decorate)([(0,n.watch)(":change")],u.prototype,"__onChangeEditor",null),(0,o.__decorate)([n.autobind],u.prototype,"__bind",null),(0,o.__decorate)([n.autobind,(0,n.watch)(":hideResizer")],u.prototype,"hide",null),l.pluginSystem.add("resizer",u)},74833(e,t,i){"use strict";i.d(t,{stateListeners:()=>l});var s=i(27795),o=i(97022),r=i(53681),n=i(31125),a=i(53202);function l(){let e=(0,n.elementsMap)(this),{state:t,files:i,create:l,options:c}=this,h=t=>{let i=t.uniqueHashKey;if(e[i])return e[i].elm;let s=l.fromHTML(c.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return s.dataset.key=i,e[i]={item:t,elm:s},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{let{elm:s}=e[t.uniqueHashKey];s&&s.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{let{elm:s}=e[t.uniqueHashKey];s&&s.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{s.Dom.detach(i.container),t.elements.length?t.elements.forEach(e=>{this.files.container.appendChild(h(e))}):i.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{s.Dom.detach(this.tree.container),t.sources.forEach(e=>{let t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(i=>{let s=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,o.normalizePath)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},l.span(this.tree.getFullElName("item-title"),i)),n=s=>r=>{this.e.fire(`${s}.filebrowser`,{name:i,path:(0,o.normalizePath)(e.path+"/"),source:t}),r.stopPropagation(),r.preventDefault()};if(this.e.on(s,"click",n("openFolder")),this.tree.container.appendChild(s),".."!==i&&"."!==i){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let e=(0,r.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(n("renameFolder")),s.appendChild(e.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let e=(0,r.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(n("removeFolder")),s.appendChild(e.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let i=(0,r.Button)(this,"plus","Add folder","secondary");i.onAction(()=>{this.e.fire("addFolder",{path:(0,o.normalizePath)(e.path+"/"),source:t})}),this.tree.append(i)}})},this.defaultTimeout))}},75143(e,t,i){"use strict";var s=i(22289),o=i(85932),r=i(7909),n=i(36400),a=i(29434),l=i(5266),c=i(97743),h=i(68097),d=i(22227),u=i.n(d);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",u()),l.Config.prototype.controls.speechRecognize={isVisible:e=>!!e.o.speechRecognize.api,isActive(e,t){let i=(0,n.dataBind)(e,"speech");return!!i?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:i,control:a}){let{api:l,lang:c,continuous:d,interimResults:u,sound:p}=e.o.speechRecognize;if(!l)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,n.dataBind)(e,"speech");if(!m){let t=new l;(m=new h.RecognizeManager(e.async,t)).lang=(0,o.isString)(c)?c:(0,r.attr)(e.od.documentElement,"lang")??void 0,m.continuous=d,m.interimResults=u,m.sound=p,(0,n.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),i.hookStatus("beforeDestruct",()=>{(0,n.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,s.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){let s=(0,n.dataBind)(e,"speech"),o=s?.[t]??e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${o?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},75587(e,t,i){"use strict";i.d(t,{UIFileInput:()=>l});var s=i(25045),o=i(31635),r=i(91672),n=i(53681),a=i(65273);class l extends a.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new n.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
236
+ type="file"
237
+ accept="${e.onlyImages?"image/*":"*"}"
238
+ tabindex="-1"
239
+ dir="auto"
240
+ multiple=""
241
+ />`)}constructor(e,t){super(e,{type:"file",...t}),(0,s._)(this,"state",{...a.UIInput.defaultState,type:"file",onlyImages:!0})}}l=(0,o.__decorate)([r.component],l)},75711(e,t,i){"use strict";i.d(t,{align:()=>a});var s=i(27795),o=i(85932),r=i(16849),n=i(80991);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec(e,t,{control:i}){if(!s.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let n=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!n)return!1;(0,r.hAlignElement)(t,n),s.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,r.hAlignElement)(t.firstElementChild,n),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(e,t,{control:i}){if(!s.Dom.isTag(t,"img"))return;let r=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,n.css)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a]},76517(e,t,i){"use strict";i.d(t,{Create:()=>l});var s=i(25045),o=i(81937),r=i(23211),n=i(65946),a=i(28712);class l{get doc(){return(0,n.isFunction)(this.document)?this.document():this.document}element(e,t,i){let s=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(s),t&&((0,n.isPlainObject)(t)?(0,n.attr)(s,t):i=t),i&&(0,n.asArray)(i).forEach(e=>s.appendChild((0,n.isString)(e)?this.fromHTML(e):e)),s}div(e,t,i){let s=this.element("div",t,i);return e&&(s.className=e),s}sandbox(){let e=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(e);let t=e.contentWindow?.document;if((0,a.assert)(t,"iframe.contentWindow.document"),!t)throw Error("Iframe error");return t.open(),t.write("<!DOCTYPE html><html><head></head><body></body></html>"),t.close(),[t.body,e]}span(e,t,i){let s=this.element("span",t,i);return e&&(s.className=e),s}a(e,t,i){let s=this.element("a",t,i);return e&&(s.className=e),s}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let s=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(r.Dom.safeRemove(s),t){let e=(0,n.refs)(s);Object.keys(t).forEach(i=>{let s=e[i];s&&!1===t[i]&&r.Dom.hide(s)})}return s}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,n.isFunction)(i)?i(e):(0,n.isPlainObject)(i)&&(0,n.attr)(e,i)}}}constructor(e,t){(0,s._)(this,"document",void 0),(0,s._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},76830(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(93640);i(51730),o.pluginSystem.add("media",e=>{let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:n}=e.options;n&&e.e.on("afterGetValueFromEditor",e=>{let s=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");s.test(e.value)&&(e.value=e.value.replace(s,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===s.MODE_SOURCE||(0,r.$$)(o.join(","),e.editor).forEach(s=>{if(!(0,r.dataBind)(s,t)){(0,r.dataBind)(s,t,!0);var o=s;if(o.parentNode&&(0,r.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{let s=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,r.attr)(s,"style",(0,r.attr)(o,"style")),s.style.display="inline-block"===o.style.display?"inline-block":"block",s.style.width=o.offsetWidth+"px",s.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(s,o),s.appendChild(o),o=s}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(o)})}})},e.defaultTimeout))})},76841(e,t,i){"use strict";i.d(t,{Dialog:()=>v});var s=i(25045),o=i(31635),r=i(16964),n=i(81937),a=i(84839),l=i(23211),c=i(28077),h=i(45664),d=i(28686),u=i(93640),p=i(28712),m=i(4099),g=i(35099),f=i(2222),_=i(5266);_.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},_.Config.prototype.controls.dialog={close:{icon:"cancel",exec(e){e.close()}}};class v extends f.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:e,shadowRoot:t}=this.o;return e||t||this.od.body}setElements(e,t){let i=[];(0,h.asArray)(t).forEach(t=>{let s;if((0,d.isArray)(t)){let s=this.c.div(this.getFullElName("column"));return i.push(s),e.appendChild(s),this.setElements(s,t)}s=(0,d.isString)(t)?this.c.fromHTML(t):(0,d.hasContainer)(t)?t.container:t,i.push(s),s.parentNode!==e&&e.appendChild(s)}),(0,h.toArray)(e.childNodes).forEach(t=>{-1===i.indexOf(t)&&e.removeChild(t)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(e){let t=e.target;!(!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=(0,u.css)(this.dialog,"left"),this.startPoint.y=(0,u.css)(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}__onEsc(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===n.KEY_ESC&&!0!==this.getMod("static")){let t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}__onResizerMouseDown(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),(0,u.css)(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){let i=this.ow.innerWidth,s=this.ow.innerHeight,o=i/2-this.dialog.offsetWidth/2,r=s/2-this.dialog.offsetHeight/2;return o<0&&(o=0),r<0&&(r=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-r)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||r)+"px",this}setHeader(e){return this.setElements(this.dialogbox_header,e),this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",!!e),this}getZIndex(){return parseInt((0,u.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e=0,t,i,s=this;return(0,u.$$)(".jodit-dialog",this.destination).forEach(o=>{t=o.component,i=parseInt((0,u.css)(o,"zIndex"),10),t.isOpened&&!isNaN(i)&&i>e&&(s=t,e=i)}),s}setMaxZIndex(){if(this.getMod("static"))return;let e=0x1312d04,t=0;(0,u.$$)(".jodit-dialog",this.destination).forEach(i=>{e=Math.max(isNaN(t=parseInt((0,u.css)(i,"zIndex"),10))?0:t,e)}),this.container.style.zIndex=(e+1).toString()}toggleFullSize(e){(0,d.isVoid)(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),super.toggleFullSize(e)}open(e,t,i,s){if(c.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,d.isBoolean)(e)&&(i=e),(0,d.isBoolean)(t)&&(s=t),this.destroyAfterClose=!0===i;let o=(0,d.isBoolean)(e)?void 0:e,r=(0,d.isBoolean)(t)?void 0:t;return void 0!==r&&this.setHeader(r),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,this.setModal(s),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=!!e,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e}=this;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(e={}){super(e),(0,s._)(this,"resizer",void 0),(0,s._)(this,"offsetX",void 0),(0,s._)(this,"offsetY",void 0),(0,s._)(this,"destroyAfterClose",!1),(0,s._)(this,"moved",!1),(0,s._)(this,"resizable",!1),(0,s._)(this,"draggable",!1),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"startPoint",{x:0,y:0,w:0,h:0}),(0,s._)(this,"lockSelect",()=>{this.setMod("moved",!0)}),(0,s._)(this,"unlockSelect",()=>{this.setMod("moved",!1)}),(0,s._)(this,"__onResize",()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()}),(0,s._)(this,"dialog",void 0),(0,s._)(this,"workplace",void 0),(0,s._)(this,"dialogbox_header",void 0),(0,s._)(this,"dialogbox_content",void 0),(0,s._)(this,"dialogbox_footer",void 0),(0,s._)(this,"dialogbox_toolbar",void 0),(0,s._)(this,"isModal",!1),(0,s._)(this,"isOpened",!1),this.options=(0,u.ConfigProto)(e,(0,u.ConfigProto)(_.Config.prototype.dialog,v.defaultOptions)),l.Dom.safeRemove(this.container);let t=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
242
+ <div class="${t("overlay")}"></div>
243
+ <div class="${this.getFullElName("panel")}">
244
+ <div class="${t("header")}">
245
+ <div class="${t("header-title")}"></div>
246
+ <div class="${t("header-toolbar")}"></div>
247
+ </div>
248
+ <div class="${t("content")}"></div>
249
+ <div class="${t("footer")}"></div>
250
+ <div class="${t("resizer")}">${m.Icon.get("resize_handler")}</div>
251
+ </div>
252
+ </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,u.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,p.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,p.assert)(null!=r,"header-title element does not exist");let n=this.getElm("content");(0,p.assert)(null!=n,"Content element does not exist");let a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");let h=this.getElm("header-toolbar");(0,p.assert)(null!=h,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=n,this.dialogbox_footer=a,this.dialogbox_toolbar=h,(0,u.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let g=this.getElm("header");g&&this.e.on(g,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let f=c.pluginSystem.get("fullsize");if((0,d.isFunction)(f)&&f(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,p.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}}(0,s._)(v,"defaultOptions",{...g.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,o.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,o.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,o.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"close",null),(0,o.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,o.__decorate)([a.component],v)},77036(e,t,i){"use strict";i.d(t,{persistent:()=>r});var s=i(69364),o=i(31534);function r(e,t){e.hookStatus(s.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,s=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get:()=>i.storage.get(s)??r,set(e){i.storage.set(s,e)}})})}},77213(e,t,i){"use strict";i.d(t,{ctrlKey:()=>s});let s=e=>{if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},77227(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(91115),n=i.n(r),a=i(1916),l=i.n(a);o.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},s.Icon.set("ai-assistant",l()),s.Icon.set("ai-commands",n()),o.Config.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(e,t,{control:i}){e.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},o.Config.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(e,t,i){e.e.fire("generateAiAssistantForm.ai-assistant")}}},77367(e,t,i){"use strict";i.d(t,{normalizeColor:()=>r});var s=i(93387),o=i(4040);let r=e=>{let t=["#"],i=(0,s.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:()=>function e(t){return(0,c.keys)(t,!1).reduce((i,s)=>(i[s]=(0,o.isPlainObject)(t[s])?e(t[s]):t[s],i),{})},ConfigFlatten:()=>h,ConfigProto:()=>function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let h=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==h.presets[t.preset]){let e=h.presets[t.preset];Object.keys(e).forEach(i=>{(0,n.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let n=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(n)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(n)){d[r]=e(n,a,c+1);return}if(0!==c&&(0,s.isArray)(n)&&!(0,l.isAtom)(n)&&(0,s.isArray)(a)){d[r]=[...n,...a.slice(n.length)];return}d[r]=n}),Object.setPrototypeOf(d,i),d}});var s=i(17312),o=i(62101),r=i(85932),n=i(18303),a=i(5266),l=i(54794),c=i(71125);function h(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},77911(e,t,i){"use strict";i.d(t,{ajaxInstances:()=>n,send:()=>a});var s=i(65946),o=i(73714),r=i(89446);let n=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{let i=new o.Ajax({xhr(){let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(e.j.progressbar.show().progress(10),t.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;i*=100,e.j.progressbar.show().progress(i),i>=100&&e.j.progressbar.hide()}},!1)):e.j.progressbar.hide(),t},method:e.o.method||"POST",data:t,url:(0,s.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),r=n.get(e);return r||(r=new Set,n.set(e,r)),r.add(i),e.j.e.one("beforeDestruct",i.destruct),i.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{i.destruct(),r?.delete(i)})};return(0,s.isPromise)(i)?i.then(a).catch(t=>{e.o.error.call(e,t)}):a(i)}},78462(e,t,i){"use strict";i.d(t,{states:()=>l,transactions:()=>c});var s=i(81937),o=i(23211),r=i(28712),n=i(59841),a=i(51640);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(e){let{element:t,jodit:i,style:s,mode:r,collapsed:c}=e;if((0,a.isInsideInvisibleElement)(t,i.editor)||!c&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let h=(0,a.getSuitParent)(s,t,i.editor)||(0,a.getSuitChild)(s,t);if(h)return{...e,next:l.ELEMENT,element:h};let d=(0,a.suitableClosest)(s,t,i.editor);return s.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:r!==n.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==n.INITIAL&&r!==n.UNWRAP&&r!==n.REPLACE)return{...e,next:l.END};let a=o.Dom.closest(t,"li",i.editor);return a&&o.Dom.closest(t,s.LIST_TAGS,i.editor)?{...e,element:a,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec:e=>({...e,mode:(0,a.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END})},[l.EXTRACT]:{exec(e){let{element:t,jodit:i,style:s}=e,n=(0,a.suitableClosest)(s,t,i.editor);return((0,r.assert)(n,"This place should have an element"),!s.elementIsBlock&&s.options.attributes?.style&&o.Dom.isBlock(n))?{...e,next:l.WRAP}:(s.elementIsBlock||(0,a.extractSelectedPart)(n,t,i),{...e,element:n,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,a.unwrapChildren)(i,t)?{...e,mode:n.UNWRAP,next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:s}=e,o=(0,a.wrap)(s,t,i);return{...e,next:s.elementIsList?l.END:l.CHANGE,mode:n.WRAP,element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:s}=e;return(0,a.toggleAttributes)(t,i,s,n.INITIAL,!0)!==n.INITIAL?{...e,next:l.CHANGE}:o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,next:l.END}}},[l.CHANGE]:{exec(e){let{style:t,element:i,jodit:s,mode:r}=e,c=(0,a.toggleAttributes)(t,i,s,e.mode);return r!==n.WRAP&&c===n.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:c,next:l.END}}},[l.UNWRAP]:{exec:e=>e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(e.element),{...e,mode:n.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:e=>(o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:n.REPLACE,next:l.END})},[l.END]:{exec:e=>e}}},78690(e,t,i){"use strict";var s=i(27795),o=i(28077),r=i(5266);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,o.pluginSystem.add("focus",e=>{e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.s.restore()});let t=()=>{if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){let t=s.Dom.last(e.editor,e=>s.Dom.isText(e));t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&s.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},78982(e,t,i){"use strict";i.d(t,{asArray:()=>o});var s=i(17312);let o=e=>(0,s.isArray)(e)?e:[e]},79310(e,t,i){"use strict";i.d(t,{readLink:()=>r});var s=i(23211),o=i(7909);function r(e,t,i){let r=s.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803(e,t,i){"use strict";var s=i(5266);s.Config.prototype.toolbarSticky=!0,s.Config.prototype.toolbarDisableStickyForMobile=!0,s.Config.prototype.toolbarStickyOffset=0},79821(e,t,i){"use strict";i.d(t,{Create:()=>s.Create});var s=i(76517)},79947(e,t,i){"use strict";i.d(t,{clearTimeout:()=>r,setTimeout:()=>o});var s=i(81937);function o(e,t,...i){return t?s.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){s.globalWindow.clearTimeout(e)}},80202(e,t,i){"use strict";var s=i(5266);s.Config.prototype.minWidth=200,s.Config.prototype.maxWidth="100%",s.Config.prototype.minHeight=200,s.Config.prototype.maxHeight="auto",s.Config.prototype.saveHeightInStorage=!1},80251(e,t,i){"use strict";i.d(t,{Component:()=>c});var s=i(25045),o=i(91231),r=i(69364),n=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let s=[this.componentName];return e&&s.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(s.push("_",t),s.push("_",(0,a.isVoid)(i)?"true":i.toString())),s.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let s=l.get(this),o=s?.[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=l.get(this);i||(i={},l.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){(0,s._)(this,"__componentName",void 0),(0,s._)(this,"async",new o.Async),(0,s._)(this,"uid",void 0),(0,s._)(this,"ownerWindow",window),(0,s._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,n.uniqueUid)()}}(0,s._)(c,"STATUSES",r.STATUSES)},80347(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512(e,t,i){"use strict";i.d(t,{Dlgs:()=>a});var s=i(28077),o=i(28686),r=i(71125),n=i(37333);class a{dlg(e){let t=(0,s.getPopupViewRoot)(this.o,this.container,this.od.body),i=new n.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return(0,r.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=l(e,this),t=l(t,this),n.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,s,o){return e=l(e,this),t=l(t,this),s=l(s,this),n.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s,o)}alert(e,t,i,s){return e=l(e,this),t=l(t,this),n.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},80515(e){e.exports='<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>'},80538(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(24772),a=i.n(n),l=i(66547),c=i.n(l);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",a()).set("shrink",c()),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:s.MODE_SOURCE+s.MODE_WYSIWYG}},80840(e,t,i){"use strict";i.d(t,{wait:()=>n});var s=i(69364),o=i(91565),r=i(33201);function n(e){return(t,i)=>{let n=t[i];if(!(0,o.isFunction)(n))throw(0,r.error)("Handler must be a Function");t.hookStatus(s.STATUSES.ready,t=>{let{async:s}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...n){s.clearTimeout(r),e(t)?o.apply(t,n):r=s.setTimeout(()=>i(...n),10)}})})}}},80951(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:()=>n});var s=i(23211),o=i(71125),r=i(15200);function n(e,t,i){let n=s.Dom.findSibling(t,i),a=s.Dom.findSibling(t,!i);if(!s.Dom.closest(t,s.Dom.isElement,e.editor)&&s.Dom.isList(n)&&s.Dom.isList(a)&&s.Dom.isTag(n.lastElementChild,"li")&&s.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,h=n.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?s.Dom.prepend:s.Dom.append,d,t),s.Dom.moveContent(a,n,!i,(0,r.getMoveFilter)(e)),s.Dom.safeRemove(a),(0,o.call)(i?s.Dom.append:s.Dom.prepend,h,t),(0,o.call)(i?l:c,t),!0}return!1}},80991(e,t,i){"use strict";i.d(t,{clearCenterAlign:()=>c,css:()=>l});var s=i(22289),o=i(62101),r=i(19147),n=i(57821),a=i(74264);function l(e,t,i,c=!1){if((0,s.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let s=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)s(e,(0,n.camelCase)(i[o]),t[i[o]])}else s(e,(0,n.camelCase)(t),i);return""}let h=(0,a.kebabCase)(t),d=e.ownerDocument||document,u=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:u&&!c&&(m=u.getComputedStyle(e).getPropertyValue(h)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}let c=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},81008(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(51457),n=i.n(r),a=i(23602),l=i.n(a),c=i(86899),h=i.n(c),d=i(95320),u=i.n(d);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},s.Icon.set("copy",n()).set("cut",l()).set("paste",h()).set("select-all",u())},81144(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(65946);i(17326),o.pluginSystem.add("iframe",e=>{let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let s=e||i.iframe.contentWindow.document;if(s.open(),s.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,r.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),s.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=s.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),s.head&&s.head.appendChild(t)}),t.iframeStyle){let e=s.createElement("style");e.innerHTML=t.iframeStyle,s.head&&s.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",t.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=t.iframeSandbox&&i.setAttribute("sandbox",t.iframeSandbox),e.workplace.appendChild(i),e.iframe=i;let o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,r.callPromise)(o,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,n=()=>{(0,r.attr)(i.body,"contenteditable",e.getMode()!==s.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",s=t.exec(e);return s&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,s[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(o){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,r.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?a(i.documentElement.outerHTML)!==a(t)&&(i.open(),i.write(e.o.iframeDoctype+a(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),n(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=t,!0),{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",n),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let s=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,r.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",s).on([e.iframe,e.ew,i.documentElement],"load",s).on(i,"readystatechange DOMContentLoaded",s),"function"==typeof ResizeObserver){let t=new ResizeObserver(s);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{e.events?.fire(e.ow,t)}),!1})})})},81488(e,t,i){"use strict";i.d(t,{inputValidators:()=>s,selectValidators:()=>o});var s=i(48776),o=i(6490)},81576(e,t,i){"use strict";i.d(t,{generateCriticalCSS:()=>r});var s=i(25045),o=i(88475);function r(e){let t=(e,t=e.ownerDocument.styleSheets)=>(0,o.toArray)(t).map(e=>{try{return(0,o.toArray)(e.cssRules)}catch{}return[]}).flat().filter(t=>{try{return!!(t&&e.matches(t.selectorText))}catch{}return!1});class i{generateCSS(){let e="";for(let t in this.css)if(!/:not\(/.test(t)){for(let i in e+=t+" { ",this.css[t])e+=i+": "+this.css[t][i]+"; ";e+=`}
253
+ `}return e}constructor(i,o,r){(0,s._)(this,"css",{});let n=r||{},a=t=>{let i=t.selectorText.split(",").map(e=>e.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let s=t.style.cssText.split(/;(?![A-Za-z0-9])/);for(let t=0;t<s.length;t++){if(!s[t])continue;let o=s[t].split(":");o[0]=o[0].trim(),o[1]=o[1].trim(),this.css[i][o[0]]=o[1].replace(/var\(([^)]+)\)/g,(t,i)=>{let[s,o]=i.split(",");return(e.ew.getComputedStyle(e.editor).getPropertyValue(s.trim())||o||t).trim()})}};(()=>{let s=i.innerHeight,r=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;r.nextNode();){let e=r.currentNode;if(e.getBoundingClientRect().top<s||n.scanFullPage){let i=t(e);if(i)for(let e=0;e<i.length;e++)a(i[e])}}})()}}try{return new i(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(e){}__onTab(e){if(e.key===o.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,l.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}(0,s.__decorate)([(0,r.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,s.__decorate)([(0,r.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),n.pluginSystem.add("tab",c)},81875(e){e.exports='<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>'},81937(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY:()=>U,APP_VERSION:()=>s,BASE_PATH:()=>eu,BASE_PATH_IS_MIN:()=>ep,BR:()=>V,CLIPBOARD_ID:()=>ef,COMMAND_KEYS:()=>W,EMULATE_DBLCLICK_TIMEOUT:()=>et,ES:()=>o,FAT_MODE:()=>c,HOMEPAGE:()=>h,INSEPARABLE_TAGS:()=>x,INSERT_AS_HTML:()=>ei,INSERT_AS_TEXT:()=>eo,INSERT_CLEAR_HTML:()=>es,INSERT_ONLY_TEXT:()=>er,INVISIBLE_SPACE:()=>p,INVISIBLE_SPACE_REG_EXP:()=>g,INVISIBLE_SPACE_REG_EXP_END:()=>f,INVISIBLE_SPACE_REG_EXP_START:()=>_,IS_BLOCK:()=>C,IS_ES_MODERN:()=>r,IS_ES_NEXT:()=>n,IS_IE:()=>X,IS_INLINE:()=>E,IS_MAC:()=>ea,IS_PROD:()=>a,IS_TEST:()=>l,KEY_ALIASES:()=>el,KEY_ALT:()=>N,KEY_BACKSPACE:()=>j,KEY_DELETE:()=>q,KEY_DOWN:()=>B,KEY_ENTER:()=>A,KEY_ESC:()=>P,KEY_F3:()=>F,KEY_LEFT:()=>M,KEY_META:()=>k,KEY_RIGHT:()=>R,KEY_SPACE:()=>O,KEY_TAB:()=>L,KEY_UP:()=>z,LIST_TAGS:()=>I,MARKER_CLASS:()=>ee,MODE_SOURCE:()=>G,MODE_SPLIT:()=>K,MODE_WYSIWYG:()=>Y,NBSP_SPACE:()=>m,NEARBY:()=>H,NO_EMPTY_TAGS:()=>D,PARAGRAPH:()=>$,PASSIVE_EVENTS:()=>ev,SAFE_COUNT_CHANGE_CALL:()=>en,SET_TEST:()=>d,SOURCE_CONSUMER:()=>e_,SPACE_REG_EXP:()=>v,SPACE_REG_EXP_END:()=>y,SPACE_REG_EXP_START:()=>b,TEMP_ATTR:()=>em,TEXT_HTML:()=>Z,TEXT_PLAIN:()=>J,TEXT_RTF:()=>Q,TOKENS:()=>u,globalDocument:()=>S,globalWindow:()=>w,lang:()=>eg});let s="4.7.3",o="es2021",r=!0,n=!0,a=!0,l=!1,c=!0,h="https://xdsoft.net/jodit/",d=()=>l=!0,u={},p="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,f=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="undefined"!=typeof window?window:void 0,S="undefined"!=typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",A="Enter",P="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,A,P,F,L],V="br",$="p",Y=1,G=2,K=3,X="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",es="insert_clear_html",eo="insert_as_text",er="insert_only_text",en=10,ea=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eh,isMin:ed}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:!0};let e=S.currentScript;if(e)return ec(e.src);let t=S.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(w.location.href)})(),eu=eh,ep=ed,em="data-jodit-temp",eg={},ef="clipboard",e_="source-consumer",ev=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987(e,t,i){"use strict";i.d(t,{Mods:()=>o});var s=i(18303);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,n=(i||this.container).classList;return null!=o&&n.remove(`${r}${o.toString().toLowerCase()}`),(0,s.isVoid)(t)||""===t||n.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){return this.mods[e]??null}}},82147(e,t,i){"use strict";var s=i(5266);s.Config.prototype.limitWords=!1,s.Config.prototype.limitChars=!1,s.Config.prototype.limitHTML=!1},82166(e,t,i){"use strict";function s(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:()=>s})},82495(e,t,i){"use strict";i.d(t,{createSourceEditor:()=>r});var s=i(65946),o=i(8105);function r(e,t,i,r,n){let a;if((0,s.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,n);break}default:a=new o.TextAreaEditor(t,i,r,n)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},82658(e,t,i){"use strict";i.d(t,{applyStyles:()=>s.applyStyles,cleanFromWord:()=>o.cleanFromWord,htmlspecialchars:()=>r.htmlspecialchars,nl2br:()=>n.nl2br,safeHTML:()=>a.safeHTML,sanitizeHTMLElement:()=>a.sanitizeHTMLElement,stripTags:()=>l.stripTags});var s=i(30893),o=i(1277),r=i(6609),n=i(48838),a=i(48155),l=i(22852)},82794(e,t,i){"use strict";i.d(t,{toggleAttributes:()=>g});var s=i(81937),o=i(23211),r=i(28077),n=i(28686),a=i(19147),l=i(18073),c=i(74264),h=i(93640),d=i(80991),u=i(36400),p=i(98394);let m="toggleAttributes";function g(e,t,i,_,v=!1){if(!v&&e.isApplied(t,m))return _;v||e.setApplied(t,m);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(m=>{let g=b[m];switch(m){case"style":var y;y=_,(0,h.assert)((0,n.isPlainObject)(g)&&(0,l.size)(g),"Style must be an object"),Object.keys(g).forEach(n=>{let l=t.style.getPropertyValue((0,c.kebabCase)(n)),h=g[n];if(""!==l||null!=h){if(((e,t,i)=>{let n=e.create.element(t.tagName.toLowerCase());n.style.cssText=t.style.cssText,(e=>{if(void 0!==(0,u.dataBind)(e,"shadowRoot"))return(0,u.dataBind)(e,"shadowRoot");let t=(0,r.getContainer)(e),i=s.globalDocument.createElement("iframe");(0,d.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",t.appendChild(i);let o=i.contentWindow?.document,n=o?o.body:e.od.body;return(0,u.dataBind)(e,"shadowRoot",n),n})(e).appendChild(n);let a=(0,d.css)(n,i);return o.Dom.safeRemove(n),a})(i,t,n)===(0,a.normalizeCssValue)(n,h)){if(!l)return;v||(0,d.css)(t,n,null),y=f(e,t,y=p.UNSET);return}y=p.CHANGE,v||((0,d.css)(t,n,h),y=f(e,t,y))}}),_=y;break;case"className":case"class":_=((e,t,i,s,o)=>{(0,h.assert)((0,n.isString)(t),"Class name must be a string");let r=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return i.classList.contains(t.toString())?(s=p.UNSET,o||(i.classList.remove(t),0===i.classList.length&&((0,h.attr)(i,"class",null),r(s,i,"class",null)))):(s=p.CHANGE,o||(i.classList.add(t),r(s,i,"class",t))),s})(i,g,t,_,v);break;default:_=((e,t,i,s,o,r)=>{(0,h.assert)((0,n.isString)(t)||(0,n.isNumber)(t)||(0,n.isBoolean)(t)||null==t,"Attribute value must be a string or number or boolean or null");let a=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return(0,h.attr)(i,s)===t?(o||(0,h.attr)(i,s,null),r=p.UNSET,o||a(r,i,s,t)):(r=p.CHANGE,o||((0,h.attr)(i,s,t),a(r,i,s,t))),r})(i,g,t,m,v,_)}}),_}function f(e,t,i){return(0,h.attr)(t,"style")||((0,h.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=p.UNWRAP)),i}},83207(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215(e,t,i){"use strict";i.d(t,{innerWidth:()=>s});let s=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:()=>r});var s=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,n=i.createInside,a=(e,t="previousSibling")=>{let n=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!s.Dom.isTag(a,i.o.enter)&&(n=a,a=a[t]?a[t]:a.parentNode&&!s.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!s.Dom.isBlock(a)););return n},l=a(t),c=a(t,"nextSibling"),h=i.s.createRange();h.setStartBefore(l),h.setEndAfter(c);let d=h.extractContents(),u=n.element(e.element);return u.appendChild(d),s.Dom.safeInsertNode(h,u),e.elementIsBlock&&s.Dom.isEmpty(u)&&!s.Dom.isTag(u.firstElementChild,"br")&&u.appendChild(n.element("br")),u}},83376(e,t,i){"use strict";i.d(t,{getBlockWrapper:()=>function e(t,i,r=s.IS_BLOCK){let n=t,a=i.editor;do{if(!n||n===a)break;if(r.test(n.nodeName)){if(o.Dom.isLeaf(n))return n;return e(n.parentNode,i,/^li$/i)||n}n=n.parentNode}while(n&&n!==a)return null}});var s=i(81937),o=i(23211)},83389(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653(e,t,i){"use strict";i.d(t,{isNormalNode:()=>r});var s=i(23211),o=i(23175);function r(e){return!!(e&&!s.Dom.isEmptyTextNode(e)&&!s.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},84578(e,t,i){"use strict";i.d(t,{CommitStyle:()=>l});var s=i(25045),o=i(81937),r=i(57821),n=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&i[t]}setApplied(e,t){let i=this.__applyMap.get(e)??{};i[t]=!0,this.__applyMap.set(e,i)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,r.camelCase)(n._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(n._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){(0,s._)(this,"options",void 0),(0,s._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},84839(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>s.autobind,cache:()=>o.cache,cacheHTML:()=>o.cacheHTML,cached:()=>o.cached,component:()=>r.component,debounce:()=>n.debounce,derive:()=>a.derive,getPropertyDescriptor:()=>p.getPropertyDescriptor,hook:()=>l.hook,idle:()=>c.idle,nonenumerable:()=>h.nonenumerable,persistent:()=>d.persistent,throttle:()=>n.throttle,wait:()=>u.wait,watch:()=>p.watch});var s=i(49574),o=i(51676),r=i(91672),n=i(55184),a=i(24968),l=i(29200),c=i(35718),h=i(41360),d=i(77036),u=i(80840),p=i(68616)},85305(e,t,i){"use strict";i.d(t,{PluginSystem:()=>u});var s=i(25045),o=i(81937),r=i(28077),n=i(45664),a=i(28686),l=i(55810),c=i(3050),h=i(25974),d=i(86189);class u{get size(){return this.__items.size}add(e,t){this.__items.set((0,d.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,d.normalizeName)(e))}remove(e){this.__items.delete((0,d.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,s)=>{(!e||e.has(s))&&t.push([s,i])}),t}__init(e){var t;let{extraList:i,disableList:s,filter:r}={extraList:(t=e).o.extraPlugins.map(e=>(0,a.isString)(e)?{name:e}:e),disableList:new Set((0,n.splitArray)(t.o.disablePlugins).map(d.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},u=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(r).forEach(([i,o])=>{if(s.has(i)||u.has(i))return;let r=o?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(e=>s.has(e)))return;if(!r.every(e=>u.has(e)))return void m.add(i)}t=!0;let n=(0,h.makeInstance)(e,o);if(!n){u.set(i,null),m.delete(i);return}(0,l.init)(e,i,o,n,u,m),p[i]=n}),t&&(e.e.fire("updatePlugins"),g())};i&&i.length&&(0,c.loadExtras)(this.__items,e,i,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[t]}),delete e.__plugins}),o.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(){(0,s._)(this,"__items",new Map)}}},85932(e,t,i){"use strict";i.d(t,{isString:()=>o,isStringArray:()=>r});var s=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,s.isArray)(e)&&o(e[0])}},86038(e,t,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122(e,t,i){"use strict";i.d(t,{FileBrowserFiles:()=>o});var s=i(4099);class o extends s.UIGroup{className(){return"FileBrowserFiles"}}},86189(e,t,i){"use strict";i.d(t,{normalizeName:()=>o});var s=i(74264);function o(e){return(0,s.kebabCase)(e).toLowerCase()}},86236(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(23211),n=i(28077),a=i(18855);i(88580);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(...e){super(...e),(0,s._)(this,"charCounter",null),(0,s._)(this,"wordCounter",null),(0,s._)(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()}),(0,s._)(this,"calc",this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout))}}n.pluginSystem.add("stat",l)},86581(e,t,i){"use strict";function s(e,t){let[i,s]=t.split("::");e.execCommand(i,null,s)}i.d(t,{execSpellCommand:()=>s})},86634(e){e.exports='<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>'},86878(e,t,i){"use strict";i.d(t,{getContentWidth:()=>s.getContentWidth,getScrollParent:()=>o.getScrollParent,innerWidth:()=>r.innerWidth,offset:()=>a.offset,position:()=>l.position,size:()=>n.size});var s=i(54447),o=i(34027),r=i(83215),n=i(18073),a=i(69143),l=i(23599)},86899(e){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329(e,t,i){"use strict";i.d(t,{UITextArea:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;this.nativeInput.style.resize=t?"auto":"none",this.nativeInput.rows=e??5}constructor(e,t){super(e,t),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,s._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,o.__decorate)([(0,r.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,o.__decorate)([n.component],l)},87624(e,t,i){"use strict";i.d(t,{SentenceFinder:()=>o.SentenceFinder,clearSelectionWrappers:()=>s.clearSelectionWrappers,clearSelectionWrappersFromHTML:()=>s.clearSelectionWrappersFromHTML,getSelectionWrappers:()=>s.getSelectionWrappers,highlightTextRanges:()=>s.highlightTextRanges});var s=i(19213),o=i(59276)},87908(e,t,i){"use strict";var s=i(65946),o=i(29434),r=i(5266),n=i(223),a=i.n(n);r.Config.prototype.defaultLineHeight=null,o.Icon.set("line-height",a()),r.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,s.memorizeExec)(e,t,{control:i},e=>e)}},88329(e,t,i){"use strict";i.d(t,{Confirm:()=>n});var s=i(91565),o=i(53681),r=i(76841);function n(e,t,i){let n=this instanceof r.Dialog?this:new r.Dialog({closeOnClickOverlay:!0}),a=n.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=n.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),l.appendChild(n.c.fromHTML(e)),a.appendChild(l);let c=e=>()=>{i&&!1===i(e)||n.close()},h=(0,o.Button)(n,"cancel","Cancel"),d=(0,o.Button)(n,"ok","Yes");return h.onAction(c(!1)),d.onAction(c(!0)),n.e.on(a,"submit",()=>(c(!0)(),!1)),n.setFooter([d,h]),n.open(a,t||"&nbsp;",!0,!0),d.focus(),n}},88475(e,t,i){"use strict";i.d(t,{toArray:()=>r});var s=i(23283),o=i(43379);let r=(...e)=>((0,s.isNativeFunction)(Array.from)?Array.from:(0,o.reset)("Array.from")??Array.from).apply(Array,e)},88497(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580(e,t,i){"use strict";var s=i(5266);s.Config.prototype.showCharsCounter=!0,s.Config.prototype.countHTMLChars=!1,s.Config.prototype.countTextSpaces=!1,s.Config.prototype.showWordsCounter=!0},88952(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(65946),c=i(91206),h=i(4099),d=i(56490),u=i(4274);i(89873);class p extends c.Plugin{get popup(){return new d.Popup(this.jodit,!1)}get toolbar(){return(0,u.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=n.Dom.isTag(e,"img")?e:n.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let s=this.j.o.popup[t];e=(0,l.isFunction)(s)?s(this.j,i,this.popup.close):s,(0,l.isArray)(e)&&(this.toolbar.build(e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container),this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,l.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,l.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,l.isString)(e)?e:e.name;return i&&"|"!==i&&`
254
+ `!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,l.isString)(e)?e:e.nodeName),(0,l.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&h.UIElement.closestElement(e.target,d.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if(t?.isCollapsed||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),e)}isSelectedTarget(e){let t=e.startContainer;return n.Dom.isElement(t)&&t===e.endContainer&&n.Dom.isTag(t.childNodes[e.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,l.camelCase)("click_"+e)).concat(e.map(e=>(0,l.camelCase)("touchstart_"+e))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(...e){super(...e),(0,s._)(this,"type",null),(0,s._)(this,"previousTarget",void 0),(0,s._)(this,"snapRange",null),(0,s._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,s._)(p,"requires",["select"]),(0,o.__decorate)([r.cache],p.prototype,"popup",null),(0,o.__decorate)([r.cache],p.prototype,"toolbar",null),(0,o.__decorate)([r.autobind],p.prototype,"onClick",null),(0,o.__decorate)([(0,r.wait)(e=>!e.j.isLocked)],p.prototype,"showPopup",null),(0,o.__decorate)([(0,r.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),r.autobind],p.prototype,"hidePopup",null),(0,o.__decorate)([(0,r.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionStart",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionEnd",null),(0,o.__decorate)([(0,r.debounce)(e=>e.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,o.__decorate)([r.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},89081(e,t,i){"use strict";i.d(t,{unwrapChildren:()=>a});var s=i(23211),o=i(93640),r=i(9703),n=i(73019);function a(e,t){let i,a=[],l=[],c=e.options.attributes?.style;if(t.firstChild){let h=s.Dom.eachGen(t),d=h.next();for(;!d.done;){let t=d.value;(0,n.isSuitElement)(e,t,!0)&&(!c||(0,r.hasSameStyleKeys)(t,c))?(void 0===i&&(i=!0),a.push(t)):c&&(0,n.isSameStyleChild)(e,t)?(void 0===i&&(i=!1),l.push(()=>{(0,o.css)(t,Object.keys(c).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||a.push(t)})):s.Dom.isEmptyTextNode(t)||void 0!==i||(i=!1),d=h.next()}}return l.forEach(e=>e()),a.forEach(s.Dom.unwrap),!!i}},89097(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89308(e,t,i){"use strict";i.d(t,{get:()=>r});var s=i(85932),o=i(18303);function r(e,t){if(!(0,s.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch{return null}return(0,o.isVoid)(r)?null:r}},89317(e,t,i){"use strict";var s=i(17312),o=i(41324),r=i.n(o),n=i(63837),a=i(53414);let l={};l={ar:r(),cs_cz:r(),de:r(),en:n,es:r(),fi:r(),fr:r(),he:r(),hu:r(),id:r(),it:r(),ja:r(),ko:r(),mn:r(),nl:r(),no:r(),pl:r(),pt_br:r(),ru:r(),tr:r(),ua:r(),zh_cn:r(),zh_tw:r()};let c=e=>e?e.default||e:{},h={};(0,s.isArray)(c(a))&&c(a).forEach((e,t)=>{h[t]=e}),Object.keys(l).forEach(e=>{let t=c(l[e]);(0,s.isArray)(t)?(l[e]={},t.forEach((t,i)=>{l[e][h[i]]=t})):l[e]=t}),t.default=l},89446(e,t,i){"use strict";i.d(t,{buildData:()=>o});var s=i(65946);function o(e,t){if((0,s.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,s.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},89636(e,t,i){"use strict";i.d(t,{TabsWidget:()=>l});var s=i(16964),o=i(23211),r=i(91565),n=i(7909),a=i(4099);let l=(e,t,i)=>{let l=e.c.div("jodit-tabs"),c=e.c.div("jodit-tabs__wrapper"),h=e.c.div("jodit-tabs__buttons");(0,n.attr)(h,{role:"tablist","aria-orientation":"horizontal"});let d={},u=[],p="";l.appendChild(h),l.appendChild(c);let m=e=>{d[e]&&(u.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:g,content:f})=>{let _=e.c.div("jodit-tab");(0,n.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(e,l||g,g);v.state.role="tab",e.e.on(v.container,"pointerdown",e=>e.preventDefault()),p||(p=g),h.appendChild(v.container),u.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(f)?_.appendChild(e.c.div("jodit-tab_empty")):_.appendChild(s.Component.isInstanceOf(f,a.UIElement)?f.container:f),c.appendChild(_),v.onAction(()=>(m(g),(0,r.isFunction)(f)&&!o.Dom.isElement(f)&&f.call(e),i&&(i.activeTab=g),!1)),d[g]={button:v,tab:_}}),Object.values(d).forEach(({button:e})=>{e.container.style.width=(100/t.length).toFixed(10)+"%"}),m(i&&i.activeTab&&d[i.activeTab]?i.activeTab:p),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,m(t)}})}return l}},89817(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:()=>r});var s=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),n=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,s.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!n||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?r.appendChild(t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),n=o.Dom.sibling(t,!i)}},89827(e,t,i){"use strict";function s(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:()=>s})},89873(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(70235),n=i(17849),a=i(466),l=i(75711),c=i(59399),h=i(38681),d=i.n(h),u=i(64637),p=i.n(u),m=i(94190),g=i.n(m),f=i(51957),_=i.n(f),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);o.Config.prototype.toolbarInline=!0,o.Config.prototype.toolbarInlineForSelection=!1,o.Config.prototype.toolbarInlineDisableFor=[],o.Config.prototype.toolbarInlineDisabledButtons=["source"],s.Icon.set("addcolumn",d()).set("addrow",p()).set("merge",g()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),o.Config.prototype.popup={a:r.default,img:l.default,cells:n.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
255
+ `,"outdent","indent","fontsize","brush","cut",`
256
+ `,"paragraph","link","align","dots"]}},90204(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class h extends l.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),(0,s._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,n.extendLang)(c)}}(0,o.__decorate)([r.autobind],h.prototype,"toggleSpellcheck",null),n.pluginSystem.add("spellcheck",h)},90826(e,t,i){"use strict";var s=i(27795),o=i(28077),r=i(65946),n=i(29434),a=i(5266),l=i(15753),c=i(64831),h=i.n(c);n.Icon.set("image",h()),a.Config.prototype.controls.image={popup(e,t,i){let o=null;return t&&!s.Dom.isText(t)&&s.Dom.isHTMLElement(t)&&(s.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=s.Dom.isTag(t,"img")?t:(0,r.$$)("img",t)[0]),e.s.save(),(0,l.FileSelectorWidget)(e,{filebrowser(t){e.s.restore(),t.files&&t.files.forEach(i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth)),i()},upload:!0,async url(t,s){e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);let r=o||e.createInside.element("img");r.setAttribute("src",t),r.setAttribute("alt",s),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",e=>{e.registerButton({name:"image",group:"media"})})},90886(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(28077),l=i(65946),c=i(18855),h=i(59400);i(34689);var d=i(27137),u=i(28771),p=i(670),m=i(47744),g=i(71552);class f extends c.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,p.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,g.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,l.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,h.Button)(e,"ok","Apply","primary"),remove:(0,h.Button)(e,"bin","Delete"),cancel:(0,h.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,m.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,l.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let s=i.target;if(n.Dom.isTag(s,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",s))return;t.state.sourceImage=s,t.state.image=s.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(s)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{if(this.__lock(),await e.decode(),this.state.sizeIsLocked&&(0,l.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){Object.values((0,r.cached)(this,"__buttons")??{}).forEach(e=>e.destruct()),(0,r.cached)(this,"dialog")?.destruct(),(0,r.cached)(this,"form")?.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(...e){super(...e),(0,s._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,s._)(this,"activeTabState",{activeTab:"Image"})}}(0,o.__decorate)([r.cache],f.prototype,"form",null),(0,o.__decorate)([r.cache],f.prototype,"dialog",null),(0,o.__decorate)([r.cache],f.prototype,"__buttons",null),(0,o.__decorate)([(0,r.watch)("state.image")],f.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",f)},91017(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>s,cs_cz:()=>s,de:()=>s,es:()=>s,fa:()=>s,fi:()=>s,fr:()=>s,he:()=>s,hu:()=>s,id:()=>s,it:()=>s,ja:()=>s,ko:()=>s,mn:()=>s,nl:()=>s,pl:()=>s,pt_br:()=>s,ru:()=>s,tr:()=>s,ua:()=>s,zh_cn:()=>s,zh_tw:()=>s});var s=i(41324)},91115(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91206(e,t,i){"use strict";i.d(t,{Plugin:()=>s.Plugin});var s=i(18855);i(85305)},91231(e,t,i){"use strict";i.d(t,{Async:()=>s.Async});var s=i(24735)},91321(e,t,i){"use strict";i.d(t,{completeUrl:()=>o});var s=i(81937);let o=e=>("file:"===s.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},91535(e,t,i){"use strict";i.d(t,{Alert:()=>l});var s=i(23211),o=i(78982),r=i(91565),n=i(53681),a=i(76841);function l(e,t,i,c="jodit-dialog_alert"){(0,r.isFunction)(t)&&(i=t,t=void 0);let h=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=h.c.div(c),u=(0,n.Button)(h,"ok","Ok");return(0,o.asArray)(e).forEach(e=>{d.appendChild(s.Dom.isNode(e)?e:h.c.fromHTML(e))}),u.onAction(()=>{i&&(0,r.isFunction)(i)&&!1===i(h)||h.close()}),h.setFooter([u]),h.open(d,t||"&nbsp;",!0,!0),u.focus(),h}},91560(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:()=>s.allowAttributes,fillEmptyParagraph:()=>o.fillEmptyParagraph,removeEmptyTextNode:()=>r.removeEmptyTextNode,removeInvTextNodes:()=>n.removeInvTextNodes,replaceOldTags:()=>a.replaceOldTags,sanitizeAttributes:()=>l.sanitizeAttributes,tryRemoveNode:()=>c.tryRemoveNode});var s=i(95559),o=i(39188),r=i(94561),n=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565(e,t,i){"use strict";function s(e){return"function"==typeof e}i.d(t,{isFunction:()=>s})},91672(e,t,i){"use strict";function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}return t}i.d(t,{component:()=>s})},91678(e,t,i){"use strict";var s=i(28077),o=i(65946),r=i(29434),n=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),h=i.n(c),d=i(49972),u=i.n(d),p=i(45062),m=i.n(p),g=i(18605),f=i.n(g),_=i(83389),v=i.n(_);s.pluginSystem.add("bold",e=>{let t=t=>{let i,s=n.Config.defaultOptions.controls[t],r={...s.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:s.tags?s.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",l()).set("italic",h()).set("strikethrough",u()).set("subscript",m()).set("superscript",f()).set("underline",v())},91764(e,t,i){"use strict";i.d(t,{isURL:()=>o});var s=i(81937);function o(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=s.globalDocument.createElement("a");return t.href=e,!!t.hostname}},91882(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063(e,t,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387(e,t,i){"use strict";i.d(t,{colorToHex:()=>s});let s=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),s=parseInt(t[3],10),o=(parseInt(t[4],10)|s<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},93637(e,t,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014),i(31262)},93640(e,t,i){"use strict";i.r(t),i.d(t,{$$:()=>D.$$,ConfigDeepFlatten:()=>u.ConfigDeepFlatten,ConfigFlatten:()=>u.ConfigFlatten,ConfigProto:()=>u.ConfigProto,ConnectionError:()=>v.ConnectionError,LimitedStack:()=>j.LimitedStack,OptionsError:()=>v.OptionsError,abort:()=>v.abort,alignElement:()=>s.alignElement,alreadyLoadedList:()=>o.alreadyLoadedList,appendScriptAsync:()=>o.appendScriptAsync,appendStyleAsync:()=>o.appendStyleAsync,attr:()=>l.attr,browser:()=>c.browser,buildQuery:()=>h.buildQuery,call:()=>L.call,callPromise:()=>L.callPromise,clearAlign:()=>s.clearAlign,clearCenterAlign:()=>m.clearCenterAlign,cns:()=>C.cns,completeUrl:()=>d.completeUrl,connection:()=>v.connection,convertMediaUrlToVideoEmbed:()=>p.convertMediaUrlToVideoEmbed,css:()=>m.css,cssPath:()=>D.cssPath,ctrlKey:()=>g.ctrlKey,dataBind:()=>f.dataBind,defaultLanguage:()=>_.defaultLanguage,error:()=>v.error,fastClone:()=>b.fastClone,get:()=>y.get,getClassName:()=>w.getClassName,getDataTransfer:()=>L.getDataTransfer,getXPathByElement:()=>D.getXPathByElement,hAlignElement:()=>s.hAlignElement,humanSizeToBytes:()=>S.humanSizeToBytes,inView:()=>x.inView,isAbort:()=>v.isAbort,isAtom:()=>b.isAtom,keepNames:()=>w.keepNames,keys:()=>L.keys,loadImage:()=>L.loadImage,loadNext:()=>o.loadNext,loadNextStyle:()=>o.loadNextStyle,markAsAtomic:()=>b.markAsAtomic,markDeprecated:()=>C.markDeprecated,markOwner:()=>L.markOwner,memorizeExec:()=>L.memorizeExec,options:()=>v.options,parseQuery:()=>E.parseQuery,previewBox:()=>I.previewBox,refs:()=>D.refs,reset:()=>T.reset,resolveElement:()=>D.resolveElement,scrollIntoViewIfNeeded:()=>x.scrollIntoViewIfNeeded,set:()=>k.set});var s=i(16849),o=i(47760),r=i(28712),n={};for(var a in r)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(n[a]=(e=>r[e]).bind(0,a));i.d(t,n);var l=i(7909),c=i(26136),h=i(36833),d=i(91321),u=i(77483),p=i(3856),m=i(80991),g=i(77213),f=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),x=i(60898),D=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747(e,t,i){"use strict";i.d(t,{EventEmitter:()=>d});var s=i(25045),o=i(81937),r=i(32328),n=i(17312),a=i(91565),l=i(85932),c=i(33201),h=i(18869);class d{mute(e){return this.__mutedEvents.add(e??"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(e??"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),s=i[1]||h.defaultNameSpace;t.call(this,i[0],s)})}__getStore(e){if(!e)throw(0,c.error)("Need subject");if(void 0===e[this.__key]){let t=new h.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,s){let r,h,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,h=e,d=t,p=i):(r=e,h=t,d=i,p=s),!((0,l.isString)(h)||(0,l.isStringArray)(h))||0===h.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,c.error)("Need event handler");if((0,n.isArray)(r))return r.forEach(e=>{this.on(e,h,d,p)}),this;let m=r,g=this.__getStore(m),f=this,_=function(e,...t){if(!f.isMuted(e))return d&&d.call(this,...t)};return u(m)&&(_=function(e){if(!f.isMuted(e.type)&&(f.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(h,(e,t)=>{if(0===e.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(e,t,d)){let i={event:e,originalCallback:d,syntheticCallback:_};if(g.set(e,t,i,p?.top),u(m)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=t,m.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(m,_)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,s=i.get(e)||new Set;s.delete(t),s.size?i.set(e,s):i.delete(e)}one(e,t,i,s){let o,r,n,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,n=t,a=i):(o=e,r=t,n=i,a=s);let c=(...e)=>(this.off(o,r,c),n(...e));return this.on(o,r,c,a),this}off(e,t,i){let s,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(s=this,o=e,r=t):(s=e,o=t,r=i),(0,n.isArray)(s))return s.forEach(e=>{this.off(e,o,r)}),this;let c=s,d=this.__getStore(c);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(c,"."+e)}),this.__removeStoreFromSubject(c),this;let p=e=>{u(c)&&(c.removeEventListener(e.event,e.syntheticCallback,e.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,e.syntheticCallback))},m=(e,t)=>{if(""===e)return void d.events(t).forEach(e=>{""!==e&&m(e,t)});let i=d.get(e,t);if(i&&i.length)if((0,a.isFunction)(r)){let s=d.indexOf(e,t,r);!1!==s&&(p(i[s]),i.splice(s,1),i.length||d.clearEvents(t,e))}else i.forEach(p),i.length=0,d.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===h.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t;if("string"!=typeof s)throw(0,c.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(s,(e,t)=>{let s=o.get(e,t);s&&this.__stopped.push(s),t===h.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let s,o,r=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,l.isString)(n))throw(0,c.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(n)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(n,(e,t)=>{if(u(r))this.__triggerNativeEvent(r,e);else{let i=d.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...a),this.currents.pop(),void 0!==o&&(s=o),!0))}finally{this.__removeStop(i)}t!==h.defaultNameSpace||u(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(s=i)})}}),s}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){(0,s._)(this,"__domEventsMap",new Map),(0,s._)(this,"__mutedEvents",new Set),(0,s._)(this,"__key","__JoditEventEmitterNamespaces"),(0,s._)(this,"__doc",o.globalDocument),(0,s._)(this,"__prepareEvent",e=>{!e.cancelBubble&&(e.composed&&(0,a.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,s._)(this,"currents",[]),(0,s._)(this,"__stopped",[]),(0,s._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function u(e){return(0,a.isFunction)(e.addEventListener)}},93890(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:()=>n});var s=i(81937),o=i(23211),r=i(2409);function n(e,t,i){let n=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(n)&&(o.Dom.isTag(n,s.INSEPARABLE_TAGS)||o.Dom.isEmpty(n)))&&(o.Dom.safeRemove(n),o.Dom.isTag(n,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(n,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},94013(e,t,i){"use strict";i.d(t,{isEqual:()=>o,isFastEqual:()=>r});var s=i(3347);function o(e,t){return e===t||(0,s.stringify)(e)===(0,s.stringify)(t)}function r(e,t){return e===t}},94092(e,t,i){"use strict";i.d(t,{PII:()=>s,WARN:()=>o});let s=440,o=940},94190(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193(e,t,i){"use strict";i.d(t,{SourceEditor:()=>o});var s=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){this.isReady?e():this.j.events?.on(this,"ready",e)}constructor(e,t,i,o){(0,s._)(this,"jodit",void 0),(0,s._)(this,"container",void 0),(0,s._)(this,"toWYSIWYG",void 0),(0,s._)(this,"fromWYSIWYG",void 0),(0,s._)(this,"instance",void 0),(0,s._)(this,"className",void 0),(0,s._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},94358(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(65946),n=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(e){let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
257
+ <div>${i("Jodit Editor")} v.${e.getVersion()}</div>
258
+ <div>${i("License: %s",!(0,r.isLicense)(e.o.license)?"MIT":(0,r.normalizeLicense)(e.o.license))}</div>
259
+ <div>
260
+ <a href="${s.HOMEPAGE}" target="_blank">${s.HOMEPAGE}</a>
261
+ </div>
262
+ <div>
263
+ <a href="https://xdsoft.net/jodit/docs/" target="_blank">${i("Jodit User's Guide")}</a>
264
+ ${i("contains detailed help for using")}
265
+ </div>
266
+ <div>${i("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>
267
+ </div>`),(0,r.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:s.MODE_SOURCE+s.MODE_WYSIWYG},o.pluginSystem.add("about",e=>{e.registerButton({name:"about",group:"info"})}),n.Icon.set("about",c())},94561(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:()=>o});var s=i(23211);function o(e,t,i,o,r,n){return s.Dom.isText(t)&&!t.nodeValue?(t===n&&e.s.isCollapsed()&&e.s.setCursorAfter(t),s.Dom.safeRemove(t),!0):i}},94806(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925(e,t,i){"use strict";i.d(t,{Uploader:()=>c});var s=i(25045),o=i(16964),r=i(81937),n=i(65946),a=i(5266),l=i(11981);i(40013);class c extends o.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let s=()=>{e.classList.remove("jodit_drag_hover")},o=this,n=e=>{let n,a,c,h=e.clipboardData,d=e=>{a&&(e.append("extension",c),e.append("mimetype",a.type))};if(!r.IS_IE&&(0,l.hasFiles)(h))return(0,l.sendFiles)(o,h.files,t,i).finally(s),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(o,h,t,i,s);if((0,l.hasItems)(h)){let{items:r}=h;for(n=0;n<r.length;n+=1)if("file"===r[n].kind&&"image/png"===r[n].type){if(a=r[n].getAsFile()){let e=a.type.match(/\/([a-z0-9]+)/i);c=e[1]?e[1].toLowerCase():"",(0,l.sendFiles)(o,[a],t,i,d).finally(s)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",n):o.j.e.on("beforePaste",n),this.attachEvents(e,t,i,s)}attachEvents(e,t,i,s){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,l.hasFiles)(t.dataTransfer)||(0,l.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,l.sendFiles)(o,r.dataTransfer.files,t,i).finally(s))});let r=e.querySelector("input[type=file]");r&&o.j.e.on(r,"change",()=>{(0,l.sendFiles)(o,r.files,t,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")}).finally(s)})}uploadRemoteImage(e,t,i){let s=this,{o}=s,r=(0,n.isFunction)(i)?i:o.defaultHandlerError;(0,l.send)(s,{action:"fileUploadRemote",url:e}).then(e=>{if(o.isSuccess.call(s,e))return void((0,n.isFunction)(t)?t:o.defaultHandlerSuccess).call(s,o.process.call(s,e));r.call(s,(0,n.error)(o.getMessage.call(s,e)))}).catch(e=>r.call(s,e))}destruct(){this.setStatus(o.STATUSES.beforeDestruct);let e=l.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch{}}),e.clear()),super.destruct()}constructor(e,t){super(e),(0,s._)(this,"path",""),(0,s._)(this,"source","default"),(0,s._)(this,"options",void 0),this.options=(0,n.ConfigProto)(t||{},(0,n.ConfigProto)(a.Config.defaultOptions.uploader,(0,n.isJoditObject)(e)?e.o.uploader:{}))}}},94978(e,t,i){"use strict";i.d(t,{AceEditor:()=>a});var s=i(25045),o=i(81937),r=i(65946),n=i(94193);class a extends n.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let s=0;e>s;s++)i+=this.getLastColumnIndex(s),s>0&&(i+=1),t[s]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let s=1;s<t.length;s++)e>t[s]&&(i=s+1);let s=e-t[i-1]-1;return{row:i,column:s}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),s=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:s})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let s=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===o.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",s).on("afterResize afterSetMode",s),s(),this.onReady()};e.e.on("afterSetMode",()=>{(e.getRealMode()===o.MODE_SOURCE||e.getMode()===o.MODE_SPLIT)&&(this.fromWYSIWYG(),t())}),t(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(()=>{e.isInDestruct||t()}).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}constructor(...e){super(...e),(0,s._)(this,"className","jodit_ace_editor"),(0,s._)(this,"proxyOnBlur",e=>{this.j.e.fire("blur",e)}),(0,s._)(this,"proxyOnFocus",e=>{this.j.e.fire("focus",e)}),(0,s._)(this,"proxyOnMouseDown",e=>{this.j.e.fire("mousedown",e)})}}},95032(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320(e){e.exports='<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>'},95399(e,t,i){"use strict";i.d(t,{UITooltip:()=>m});var s=i(25045),o=i(31635),r=i(16964),n=i(84839),a=i(27795),l=i(28077),c=i(23599),h=i(93640),d=i(96007);let u=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class m extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(e){(0,l.getContainer)(this.j,m).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,u,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,u,this.__hide).off(p,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!a.Dom.isHTMLElement(e.target))return;let t=(0,h.attr)(e.target,"aria-label");if(!t||(0,h.attr)(e.target,"disabled")||!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;let i=e.target;this.__open(()=>{let e=(0,c.position)(i);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;if(!i)return void this.__show(e,t);this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),i)}__show(e,t){this.setMod("visible",!0),this.getElm("content").innerHTML=t;let i=e();(0,h.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,h.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),(0,s._)(this,"__isOpened",!1),(0,s._)(this,"__attachedContainers",new Set),(0,s._)(this,"__listenClose",!1),(0,s._)(this,"__currentTarget",null),(0,s._)(this,"__delayShowTimeout",0),(0,s._)(this,"__hideTimeout",0),e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,o.__decorate)([n.autobind],m.prototype,"__onMouseLeave",null),(0,o.__decorate)([n.autobind],m.prototype,"__onMouseEnter",null),(0,o.__decorate)([n.autobind],m.prototype,"__hide",null),(0,o.__decorate)([n.autobind],m.prototype,"__hideDelay",null),m=(0,o.__decorate)([n.component],m)},95436(e,t,i){"use strict";i.d(t,{processOldBrowserDrag:()=>c});var s=i(81937),o=i(27795),r=i(28077),n=i(65946),a=i(23112),l=i(46533);function c(e,t,i,c,h){if(t&&(!t.types.length||t.types[0]!==s.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,r.getContainer)(e.j,e.constructor).appendChild(t);let s=(0,n.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,n.attr)(r,"src")||"";s&&(0,n.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,c).finally(h)}},e.j.defaultTimeout)}}},95559(e,t,i){"use strict";i.d(t,{allowAttributes:()=>o});var s=i(23211);function o(e,t,i,o){if(o&&s.Dom.isElement(t)&&!0!==o[t.nodeName]){let e=t.attributes;if(e&&e.length){let s=[];for(let i=0;i<e.length;i+=1){let r=o[t.nodeName][e[i].name];r&&(!0===r||r===e[i].value)||s.push(e[i].name)}s.length&&(i=!0),s.forEach(e=>{t.removeAttribute(e)})}}return i}},95971(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:()=>l,isSameAttributes:()=>a});var s=i(18073),o=i(93640),r=i(28712),n=i(9703);function a(e,t){return!((e.attributes.length||(0,s.size)(t))&&(0,s.size)(t))||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>"class"===i||"className"===i?e.classList.contains(t[i]):"style"===i?(0,n.hasSameStyle)(e,t[i]):(0,o.attr)(e,i)===t[i]))}function l(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value)}},96007(e,t,i){"use strict";i.d(t,{UIElement:()=>u});var s=i(25045),o=i(31635),r=i(16964),n=i(24968),a=i(23211),l=i(85932),c=i(23183),h=i(81987),d=i(29434);class u extends r.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){return this.__parentElement?.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>r.Component.isInstanceOf(t,e),i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?u.closestElement(i.container.parentElement,u):i.parentElement}return null}static closestElement(e,t){let i=a.Dom.up(e,e=>{if(e){let{component:i}=e;return i&&r.Component.isInstanceOf(i,t)}return!1});return i?i?.component:null}update(){}appendTo(e){return e.appendChild(this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,l.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>d.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),(0,s._)(this,"container",void 0),(0,s._)(this,"name",""),(0,s._)(this,"__parentElement",null),(0,s._)(this,"mods",{}),this.container=this.createContainer(t),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}u=(0,o.__decorate)([(0,n.derive)(h.Mods,c.Elms)],u)},96127(e,t,i){"use strict";i.d(t,{ApplyStyle:()=>n});var s=i(51640),o=i(98394),r=i(78462);function n(e,t){let{s:i,editor:n}=e;n.firstChild?.normalize();let a=i.fakes(),l=e.s.wrapInTagGen(a),c=l.next();if(c.done)return;let h={collapsed:i.isCollapsed(),mode:o.INITIAL,element:c.value,next:r.states.START,jodit:e,style:t};for(;c&&!c.done;){let e=new s.FiniteStateMachine(r.states.START,r.transactions);for(h.element=c.value;e.getState()!==r.states.END;)h=e.dispatch("exec",h);c=l.next()}i.restoreFakes(a)}},96340(e,t,i){"use strict";i.d(t,{normalizeRelativePath:()=>s});let s=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},96608(e,t,i){"use strict";var s=i(5266);s.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),s.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722(e,t,i){"use strict";i(5266).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}}},96730(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var h=i(54308);class d extends c.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:s}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:n,defaultActionOnPaste:a,pasteFromWordActionList:c}=s.o;return!!(o&&(0,l.isHtmlFromWord)(t))&&(r?(0,h.askInsertTypeDialog)(s,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",s=>{this.insertFromWordByType(e,t,s,i)},c):this.insertFromWordByType(e,t,n||a,i),!0)}insertFromWordByType(e,t,i,s){switch(i){case r.INSERT_AS_HTML:{t=(0,l.applyStyles)(t);let e=this.j.events?.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e);break}case r.INSERT_AS_TEXT:t=(0,l.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,l.stripTags)((0,l.cleanFromWord)(t))}(0,h.pasteInsertHtml)(e,this.j,t)}}(0,s._)(d,"requires",["paste"]),(0,o.__decorate)([(0,n.watch)(":processHTML")],d.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",d)},96863(e,t,i){"use strict";var s=i(23211),o=i(62101),r=i(29434),n=i(5266),a=i(29348),l=i.n(a);r.Icon.set("paragraph",l()),n.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){let i=t.control,o=e.s.current(),r=s.Dom.closest(o,s.Dom.isBlock,e.editor);return r?.nodeName.toLowerCase()??i.data?.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let s=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[s.toString()]&&e.o.textIcons&&(t.state.text=r[s.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(e,t)=>t.state.value===t.control?.args?.[0],isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},97022(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:()=>o.NUMBER_FIELDS_REG,normalizeColor:()=>s.normalizeColor,normalizeCssNumericValue:()=>o.normalizeCssNumericValue,normalizeCssValue:()=>o.normalizeCssValue,normalizeKeyAliases:()=>r.normalizeKeyAliases,normalizeLicense:()=>n.normalizeLicense,normalizePath:()=>a.normalizePath,normalizeRelativePath:()=>l.normalizeRelativePath,normalizeSize:()=>c.normalizeSize,normalizeUrl:()=>h.normalizeUrl});var s=i(77367),o=i(19147),r=i(27978),n=i(49663),a=i(18377),l=i(96340),c=i(98831),h=i(48009)},97110(e,t,i){"use strict";i.d(t,{wrapList:()=>n});var s=i(27795),o=i(51640),r=i(98394);function n(e,t,i){let n=i.e.fire(`${r._PREFIX}BeforeWrapList`,r.REPLACE,t,e)??s.Dom.replace(t,"li",i.createInside),a=n.previousElementSibling,l=n.nextElementSibling,c=s.Dom.isTag(a,e.element)?a:null;return c??=s.Dom.isTag(l,e.element)?l:null,s.Dom.isList(c)&&(0,o.isSameAttributes)(c,e.options.attributes)||(c=i.createInside.element(e.element),(0,o.toggleAttributes)(e,c,i,r.INITIAL),s.Dom.before(n,c)),a===c?s.Dom.append(c,n):s.Dom.prepend(c,n),s.Dom.isTag(c.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(c,c.nextElementSibling)&&(s.Dom.append(c,Array.from(c.nextElementSibling.childNodes)),s.Dom.safeRemove(c.nextElementSibling)),i.e.fire(`${r._PREFIX}AfterWrapList`,r.WRAP,c,e),c}},97228(e,t,i){"use strict";i.d(t,{defaultLanguage:()=>r});var s=i(81937),o=i(85932);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:s.globalDocument.documentElement&&s.globalDocument.documentElement.lang?s.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},97642(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:()=>n.CamelCaseToKebabCase,camelCase:()=>s.camelCase,fuzzySearchIndex:()=>o.fuzzySearchIndex,i18n:()=>r.i18n,kebabCase:()=>n.kebabCase,sprintf:()=>r.sprintf,stringify:()=>a.stringify,trim:()=>l.trim,trimChars:()=>l.trimChars,trimInv:()=>l.trimInv,ucfirst:()=>c.ucfirst});var s=i(57821),o=i(57626),r=i(18080),n=i(74264),a=i(3347),l=i(4040),c=i(99436)},97743(e,t,i){"use strict";i.d(t,{SpeechRecognition:()=>o});var s=i(81937);let o=s.globalWindow?s.globalWindow.SpeechRecognition||s.globalWindow.webkitSpeechRecognition:void 0},97959(e,t,i){"use strict";i.d(t,{UIList:()=>g});var s=i(25045),o=i(31635),r=i(80251),n=i(84839),a=i(32328),l=i(53681),c=i(63468),h=i(35676),d=i(27987),u=i(2496),p=i(15982),m=i(40253);class g extends c.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(e=>r.Component.isInstanceOf(e,l.UIButton))}getButtonsNames(){return this.buttons.map(e=>e instanceof l.UIButton&&e.state.name||"").filter(e=>""!==e)}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){let i;e=(0,a.splitArray)(e),this.clear();let s=!1,o=this.makeGroup();this.append(o),o.setMod("line",!0);let r=e=>{let r=null;switch(e.name){case`
268
+ `:(o=this.makeGroup()).setMod("line",!0),i=this.makeGroup(),o.append(i),this.append(o);break;case"|":s||(s=!0,r=new h.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let e=new d.UISpacer(this.j);o.append(e),i=this.makeGroup(),o.append(i),s=!1;break}default:s=!1,r="select"===e.component?this.makeSelect(e,t):this.makeButton(e,t)}r&&(i||(i=this.makeGroup(),o.append(i)),i.append(r))},n=e=>!this.removeButtons.includes(e.name)&&(!e.isVisible||e.isVisible?.(this.j,e));return e.forEach(e=>{if((0,u.isButtonGroup)(e)){let t=e.buttons.filter(e=>e);t.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",e.group),o.append(i),(0,m.getStrongControlTypes)(t,this.j.o.controls).filter(n).forEach(r))}else{i||(i=this.makeGroup(),o.append(i));let t=(0,p.getControlType)(e,this.j.o.controls);n(t)&&r(t)}}),this.update(),this}makeSelect(e,t){throw Error("Not implemented behaviour")}makeButton(e,t){return new l.UIButton(this.j,{name:e.name})}constructor(e){super(e),(0,s._)(this,"mode","horizontal"),(0,s._)(this,"removeButtons",[])}}(0,o.__decorate)([(0,n.watch)("mode"),(0,n.hook)("ready")],g.prototype,"__onChangeMode",null),g=(0,o.__decorate)([n.component],g)},98394(e,t,i){"use strict";i.d(t,{CHANGE:()=>r,INITIAL:()=>a,REPLACE:()=>l,UNSET:()=>n,UNWRAP:()=>o,WRAP:()=>s,_PREFIX:()=>c});let s="wrap",o="unwrap",r="change",n="unset",a="initial",l="replace",c="commitStyle"},98595(e,t,i){"use strict";i.d(t,{Selection:()=>m});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(65946),c=i(28686),h=i(28712),d=i(7470),u=i(84578),p=i(42259);class m{get j(){return this.jodit}errorNode(e){if(!a.Dom.isNode(e))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,c.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this,t=e?.rangeCount?e.getRangeAt(0):null;return!(!t||!a.Dom.isOrContains(this.area,t.startContainer))}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(e){if(!a.Dom.isOrContains(this.j.editor,e,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let s=this.doc.caretPositionFromPoint(e,t);if(s)return i.setStart(s.offsetNode,s.offset)}if(this.doc.caretRangeFromPoint){let s=this.doc.caretRangeFromPoint(e,t);(0,h.assert)(s,"Incorrect caretRangeFromPoint behaviour"),i.setStart(s.startContainer,s.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let s=this.j.createInside.span();return s.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),s.style.lineHeight="0",s.style.display="none",a.Dom.markTemporary(s),(0,l.attr)(s,"data-"+r.MARKER_CLASS,e?"start":"end"),s.appendChild(this.j.createInside.text(r.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(s),s}restore(){let e=!1,t=e=>`span[data-${r.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),s=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),s)e.setStartAfter(i),a.Dom.safeRemove(i),e.setEndBefore(s),a.Dom.safeRemove(s);else{let t=i.previousSibling;a.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),a.Dom.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,h.assert)(t,"Range is null");let i=t.cloneRange();i.collapse(!0);let s=this.j.createInside.fake();a.Dom.safeInsertNode(i,s),t.setStartBefore(s);let o=[s];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(e,i),t.setEndAfter(i),o.push(i)}return this.selectRange(t),o}restoreFakes(e){let t=e.filter(e=>e.isConnected);if(!t.length)return;let[i,s]=t,o=this.createRange();o.setStartAfter(i),s&&o.setEndBefore(s),this.selectRange(o),i.parentNode?.firstChild!==i.parentNode?.lastChild&&a.Dom.safeRemove(i),s?.parentNode?.firstChild!==s?.parentNode?.lastChild&&a.Dom.safeRemove(s)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],s=t.rangeCount,o=[];for(let e=0;s>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),s=this.marker(!1,o[e]);i[e]={startId:t.id,endId:s.id,collapsed:!1,startMarker:t.outerHTML,endMarker:s.outerHTML}}if(!e){t.removeAllRanges();for(let e=s-1;e>=0;--e){let s=this.doc.getElementById(i[e].startId);if(s){if(i[e].collapsed)o[e].setStartAfter(s),o[e].collapse(!0);else if(o[e].setStartBefore(s),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch{}}}}return i}focus(e={preventScroll:!0}){if(!this.isFocused()){let t=(0,l.getScrollParent)(this.j.container),i=t?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),i&&t?.scrollTo&&t.scrollTo(0,i);let s=this.sel,o=s?.rangeCount?s?.getRangeAt(0):null;if(!o||!a.Dom.isOrContains(this.area,o.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),s=i.startContainer,o=!1;if(a.Dom.isTag(s,"br")&&t.isCollapsed)return s;if(!a.Dom.isText(s)){let r=(0,p.findCorrectCurrentNode)(s,i,o,t.isCollapsed,e,e=>o?e.lastChild:e.firstChild);s=r.node,o=r.rightMode}return s&&a.Dom.isOrContains(this.area,s)?s:null}insertNode(e,t=!0,i=!0){this.errorNode(e);let s=a.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;a.Dom.isOrContains(this.area,t.commonAncestorContainer)?a.Dom.safeInsertNode(t,e):this.area.appendChild(e),[()=>i?.previousSibling,()=>i?.previousSibling,()=>i?.previousSibling?.lastChild].forEach(e=>{let t=e();t&&a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)})}else this.area.appendChild(e);let i=e=>{if(a.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(a.Dom.isFragment(e)?s&&i(s):i(e)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(s??e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(e)?s:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),s=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(e)?i.appendChild(e):i.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,s.appendChild(i.firstChild);this.insertNode(s,t,!1),this.j.__imdSynchronizeValues()}}insertImage(e,t=null,i=null){let s=(0,c.isString)(e)?this.j.createInside.element("img"):e;if((0,c.isString)(e)&&s.setAttribute("src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>(e+"").indexOf("px")&&0>(e+"").indexOf("%")&&(e+="px"),(0,l.attr)(s,"width",e)}t&&"object"==typeof t&&(0,l.css)(s,t);let o=()=>{(s.naturalHeight<s.offsetHeight||s.naturalWidth<s.offsetWidth)&&(s.style.width="",s.style.height=""),s.removeEventListener("load",o)};this.j.e.on(s,"load",o),s.complete&&o(),this.insertNode(s),this.j.e.fire("afterInsertImage",s)}eachSelection(e){let t=this.sel;if(!t||!t.rangeCount)return;let i=t.getRangeAt(0),s=i.commonAncestorContainer;a.Dom.isHTMLElement(s)||(s=s.parentElement);let o=[],n=i.startOffset,h=s.childNodes.length,d=i.startContainer===this.area?s.childNodes[n<h?n:h-1]:i.startContainer,u=i.endContainer===this.area?s.childNodes[i.endOffset-1]:i.endContainer;a.Dom.isText(d)&&d===i.startContainer&&i.startOffset===d.nodeValue?.length&&d.nextSibling&&(d=d.nextSibling),a.Dom.isText(u)&&u===i.endContainer&&0===i.endOffset&&u.previousSibling&&(u=u.previousSibling);let p=e=>{!e||e===s||a.Dom.isEmptyTextNode(e)||(0,c.isMarker)(e)||o.push(e)};p(d),d!==u&&a.Dom.isOrContains(s,d,!0)&&a.Dom.find(d,e=>(p(e),e===u||e&&e.contains&&e.contains(u)),s,!0,!1);let m=t=>{if(a.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(t.childNodes).forEach(m);if(a.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(r.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===o.length&&(a.Dom.isEmptyTextNode(d)&&o.push(d),d.firstChild&&o.push(d.firstChild)),o.forEach(m)}cursorInTheEdge(e,t,i=null){let s=!e,o=this.sel?.getRangeAt(0);if(i??=this.current(!1),!o||!i||!a.Dom.isOrContains(t,i,!0))return null;let r=e?o.startContainer:o.endContainer,n=e?o.startOffset:o.endOffset,c=e=>!!(e&&!a.Dom.isTag(e,"br")&&!a.Dom.isEmptyTextNode(e)&&!a.Dom.isTemporary(e)&&!(a.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(a.Dom.isText(r)){if((0,p.cursorInTheEdgeOfString)(r,n,e,s))return!1}else{let e=(0,l.toArray)(r.childNodes);if(s){if(e.slice(n).some(c))return!1}else if(e.slice(0,n).some(c))return!1}let h=i;for(;h&&h!==t;){let t=a.Dom.sibling(h,e);if(!t){h=h.parentNode;continue}if((h=t)&&c(h))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),s=null;return a.Dom.isText(e)?t?i.setStart(e,0):i.setEnd(e,e.nodeValue?.length??0):(s=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),a.Dom.safeInsertNode(i,s),i.selectNode(s)),i.collapse(t),this.selectRange(i),s}setCursorIn(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),s=e,o=e;do{if(a.Dom.isText(s)||a.Dom.isTag(s,r.INSEPARABLE_TAGS))break;o=s,s=t?s.firstChild:s.lastChild}while(s)if(!s){let e=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.isTag(o,r.INSEPARABLE_TAGS)?s=o:(o.appendChild(e),o=e)}let n=s||o;return a.Dom.isTag(n,r.INSEPARABLE_TAGS)?t||a.Dom.isTag(n,"br")?i.setStartBefore(n):i.setEndAfter(n):i.selectNodeContents(n),i.collapse(t),this.selectRange(i),o}selectRange(e,t=!0){let i=this.sel;return t&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,a.Dom.unwrap(t);return}for(let e of((0,l.$$)("*[style*=font-size]",this.area).forEach(e=>{(0,l.attr)(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(e=>{let t=(0,l.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,l.attr)(e,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,c.isMarker)(t)){a.Dom.unwrap(e);continue}t&&(0,c.isMarker)(t)&&a.Dom.before(e,t),i&&(0,c.isMarker)(i)&&a.Dom.after(e,i),yield e,a.Dom.unwrap(e)}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,c.isMarker)(i.firstChild))continue;(0,c.isFunction)(e)?e(i):t.push(a.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(a.Dom.unwrap(i),a.Dom.isEmpty(e)&&a.Dom.unwrap(e))}return t}commitStyle(e){(0,h.assert)((0,l.size)(e)>0,"Need to pass at least one option"),new u.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;let i=this.createRange(),s=this.range;i.setStartBefore(e);let o=this.cursorOnTheRight(e,t),n=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),d=c.cloneNode();try{if(o||n){t?a.Dom.before(t,l):a.Dom.safeInsertNode(s,l);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),a.Dom.after(l,d),a.Dom.before(l,c),o?(i.setEndBefore(l),s.setEndBefore(l)):(i.setEndAfter(l),s.setEndAfter(l))}else i.setEnd(s.startContainer,s.startOffset);let u=i.extractContents(),p=e=>a.Dom.each(e,e=>a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e));(0,h.assert)(e.parentNode,"Splitting fails");try{if(p(u),p(e),e.parentNode.insertBefore(u,e),!t&&o&&l?.parentNode){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!r.IS_PROD)throw e}let m=e=>{e?.parentNode?.firstChild===e?.parentNode?.lastChild&&e?.parentNode?.appendChild(l.cloneNode())};m(c),m(d)}finally{a.Dom.safeRemove(c),a.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!a.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;let i=t=>{let i=this.j.createInside.fake(),s=e.cloneRange();return s.collapse(t),a.Dom.safeInsertNode(s,i),(0,d.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},s=i(!0),o=i(!1);t.setStartAfter(s),t.setEndBefore(o);let r=a.Dom.findSibling(s,!1),n=a.Dom.findSibling(o,!0);if(r!==n){let e=a.Dom.isElement(r)&&a.Dom.isOrContains(r,o),i=!e&&a.Dom.isElement(n)&&a.Dom.isOrContains(n,s);if(e||i){let i=e?r:n,l=i;for(;a.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?a.Dom.isOrContains(i,o):a.Dom.isOrContains(i,s))&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}if(this.selectRange(t),a.Dom.safeRemove(s,o),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(e){(0,s._)(this,"jodit",void 0),this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,o.__decorate)([n.autobind],m.prototype,"createRange",null),(0,o.__decorate)([n.autobind],m.prototype,"focus",null),(0,o.__decorate)([n.autobind],m.prototype,"setCursorAfter",null),(0,o.__decorate)([n.autobind],m.prototype,"setCursorBefore",null),(0,o.__decorate)([n.autobind],m.prototype,"setCursorIn",null)},98711(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98740(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:()=>o});var s=i(81937);function o(){let e=!0;try{let t=s.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},98792(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,o.__decorate)([r.autobind],l.prototype,"onCommand",null),n.pluginSystem.add("orderedList",l)},98803(e,t,i){"use strict";i.d(t,{Table:()=>u});var s=i(25045),o=i(31635),r=i(16964),n=i(81937),a=i(84839),l=i(27795),c=i(28077),h=i(65946);let d=new WeakMap;class u extends r.ViewComponent{className(){return"Table"}__recalculateStyles(){let e=(0,c.getContainer)(this.j,u,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,h.cssPath)(e);i&&t.push(i)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t)||new Set;i.add(e),u.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t);i&&(i.delete(e),i.size||u.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,h.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=u.__selectedByTable.get(e);return t?(0,h.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return u.__getRowsCount(e)}static __getColumnsCount(e){return u.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return u.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],s=(0,h.toArray)(e.rows),o=(e,s)=>{void 0===i[s]&&(i[s]=[]);let o=e.colSpan,r=e.rowSpan,n,a,l=0;for(;i[s][l];)l+=1;for(a=0;r>a;a+=1)for(n=0;n<o;n+=1){if(void 0===i[s+a]&&(i[s+a]=[]),t&&!1===t(e,s+a,l+n,o,r))return!1;i[s+a][l+n]=e}};for(let e=0;e<s.length;e+=1){let t=(0,h.toArray)(s[e].cells);for(let s=0;s<t.length;s+=1)if(!1===o(t[s],e))return i}return i}formalMatrix(e,t){return u.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let s=0,o=0,r=1,n=1;return u.__formalMatrix(e,(e,a,l,c,h)=>{if(t===e)return s=a,o=l,r=c||1,n=h||1,i&&(o+=(c||1)-1,s+=(h||1)-1),!1}),[s,o,r,n]}formalCoordinate(e,t,i=!1){return u.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,s){let o;if(t)o=t.cloneNode(!0),(0,h.$$)("td,th",t).forEach(e=>{let t=(0,h.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,h.attr)(e,"rowspan",i>1?i:null)}}),(0,h.$$)("td,th",o).forEach(e=>{e.innerHTML=""});else{let t=u.__getColumnsCount(e);o=s.element("tr");for(let e=0;e<t;e+=1)o.appendChild(s.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(o,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(o,t):(e.getElementsByTagName("tbody")?.[0]||e).appendChild(o)}appendRow(e,t,i){return u.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,s=u.__formalMatrix(e),o=e.rows[t];s[t].forEach((r,n)=>{if(i=!1,t-1>=0&&s[t-1][n]===r)i=!0;else if(s[t+1]&&s[t+1][n]===r){if(r.parentNode===o&&r.parentNode.nextSibling){i=!0;let o=n+1;for(;s[t+1][o]===r;)o+=1;let a=l.Dom.next(r.parentNode,e=>l.Dom.isTag(e,"tr"),e);a&&(s[t+1][o]?a.insertBefore(r,s[t+1][o]):a.appendChild(r))}}else l.Dom.safeRemove(r);if(i&&(r.parentNode===o||r!==s[t][n-1])){let e=r.rowSpan;(0,h.attr)(r,"rowspan",e-1>1?e-1:null)}}),l.Dom.safeRemove(o)}removeRow(e,t){return u.__removeRow(e,t)}appendColumn(e,t,i=!0){let s=u.__formalMatrix(e);if(!i&&l.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let o=i?t.cellIndex+((t.colSpan||1)-1):t.cellIndex,r=i?o+1:o;for(let e=0;e<s.length;){let t=s[e];if(t[o]!==t[r]||o===r){let e=this.j.createInside.element("td");i?l.Dom.after(t[o],e):l.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,s=u.__formalMatrix(e);s.forEach((e,o)=>{let r=e[t];if(i=!1,t-1>=0&&s[o][t-1]===r||t+1<e.length&&s[o][t+1]===r?i=!0:l.Dom.safeRemove(r),i&&(o-1<0||r!==s[o-1][t])){let e=r.colSpan;(0,h.attr)(r,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return u.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,s,o,r=[[1/0,1/0],[0,0]],n=u.__formalMatrix(e);for(i=0;i<n.length;i+=1)for(s=0;n[i]&&s<n[i].length;s+=1)t.includes(n[i][s])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(s,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(s,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,s=r[0][1];s<=r[1][1];s+=1){for(;n[i]&&n[i][s-o]&&n[i][s]===n[i][s-o];)r[0][1]=Math.min(s-o,r[0][1]),r[1][1]=Math.max(s-o,r[1][1]),o+=1;for(o=1;n[i]&&n[i][s+o]&&n[i][s]===n[i][s+o];)r[0][1]=Math.min(s+o,r[0][1]),r[1][1]=Math.max(s+o,r[1][1]),o+=1;for(o=1;n[i-o]&&n[i][s]===n[i-o][s];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;n[i+o]&&n[i][s]===n[i+o][s];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return u.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=u.__formalMatrix(e);u.__removeExtraColspans(i,t),u.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,h.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,h.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,h.attr)(i[e][t],"class")&&(0,h.attr)(i[e][t],"class",null));u.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let s=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}s=Math.min(s,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&u.__mark(e[o][i],"colspan",e[o][i].colSpan-s+1,t)}}static __removeExtraRowspans(e,t){let i=0,s=0;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(s=0;s<e[i].length;s+=1)if(void 0!==e[i][s]){if(e[i][s].rowSpan<2){r=!0;break}o=Math.min(o,e[i][s].rowSpan)}if(!r)for(s=0;s<e[i].length;s+=1)void 0!==e[i][s]&&u.__mark(e[i][s],"rowspan",e[i][s].rowSpan-o+1,t)}}normalizeTable(e){return u.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],s=u.__getSelectedBound(e,u.__getSelectedCellsByTable(e)),o=0,r=null,a=0,c=0,d=0,m=new Set,g=[];s&&(s[0][0]-s[1][0]||s[0][1]-s[1][1])&&(u.__formalMatrix(e,(e,n,l,f,_)=>{n>=s[0][0]&&n<=s[1][0]&&l>=s[0][1]&&l<=s[1][1]&&(m.has(e)||(m.add(e),n===s[0][0]&&e.style.width&&(o+=e.offsetWidth),""!==(0,h.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),f>1&&(c+=f-1),_>1&&(d+=_-1),r?(u.__mark(e,"remove",1,g),p(t).removeSelection(e)):(r=e,a=l)))}),c=s[1][1]-s[0][1]+1,d=s[1][0]-s[0][0]+1,r&&(c>1&&u.__mark(r,"colspan",c,g),d>1&&u.__mark(r,"rowspan",d,g),o&&(u.__mark(r,"width",(o/e.offsetWidth*100).toFixed(n.ACCURACY)+"%",g),a&&u.__setColumnWidthByDelta(e,a,0,!0,g)),r.innerHTML=i.join("<br/>"),p(t).addSelection(r),m.delete(r),u.__unmark(g),u.__normalizeTable(e),(0,h.toArray)(e.rows).forEach(e=>{e.cells.length||l.Dom.safeRemove(e)})))}mergeSelected(e){return u.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,s,o,r,n,a=[];u.__getSelectedCellsByTable(e).forEach(c=>{(s=t.createInside.element("td")).appendChild(t.createInside.element("br")),o=t.createInside.element("tr"),i=u.__formalCoordinate(e,c),c.rowSpan<2?(u.__formalMatrix(e,(e,t,s)=>{i[0]===t&&i[1]!==s&&e!==c&&u.__mark(e,"rowspan",e.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(c,"tr",e),o),o.appendChild(s)):(u.__mark(c,"rowspan",c.rowSpan-1,a),u.__formalMatrix(e,(t,s,o)=>{s>i[0]&&s<i[0]+c.rowSpan&&i[1]>o&&t.parentNode.rowIndex===s&&(n=t),i[0]<s&&t===c&&(r=e.rows[s])}),n?l.Dom.after(n,s):r.insertBefore(s,r.firstChild)),c.colSpan>1&&u.__mark(s,"colspan",c.colSpan,a),u.__unmark(a),p(t).removeSelection(c)}),this.__normalizeTable(e)}splitHorizontal(e){return u.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,s,o,r=[];u.__getSelectedCellsByTable(e).forEach(a=>{i=u.__formalCoordinate(e,a),a.colSpan<2?u.__formalMatrix(e,(e,t,s)=>{i[1]===s&&i[0]!==t&&e!==a&&u.__mark(e,"colspan",e.colSpan+1,r)}):u.__mark(a,"colspan",a.colSpan-1,r),(s=t.createInside.element("td")).appendChild(t.createInside.element("br")),a.rowSpan>1&&u.__mark(s,"rowspan",a.rowSpan,r);let c=a.offsetWidth;l.Dom.after(a,s),o=c/e.offsetWidth/2,u.__mark(a,"width",(100*o).toFixed(n.ACCURACY)+"%",r),u.__mark(s,"width",(100*o).toFixed(n.ACCURACY)+"%",r),u.__unmark(r),p(t).removeSelection(a)}),u.__normalizeTable(e)}splitVertical(e){return u.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,s,o){let r=u.__formalMatrix(e),a=0;for(let s=0;s<r.length;s+=1){let l=r[s][t];if(l.colSpan>1&&r.length>1)continue;let c=(l.offsetWidth+i)/e.offsetWidth*100;u.__mark(l,"width",c.toFixed(n.ACCURACY)+"%",o),a=s;break}for(let e=a+1;e<r.length;e+=1){let i=r[e][t];u.__mark(i,"width",null,o)}s||u.__unmark(o)}setColumnWidthByDelta(e,t,i,s,o){return u.__setColumnWidthByDelta(e,t,i,s,o)}static __mark(e,t,i,s){s.push(e);let o=d.get(e)??{};o[t]=void 0===i?1:i,d.set(e,o)}static __unmark(e){e.forEach(e=>{let t=d.get(e);t&&(Object.keys(t).forEach(i=>{let s=t[i];switch(i){case"remove":l.Dom.safeRemove(e);break;case"rowspan":(0,h.attr)(e,"rowspan",(0,h.isNumber)(s)&&s>1?s:null);break;case"colspan":(0,h.attr)(e,"colspan",(0,h.isNumber)(s)&&s>1?s:null);break;case"width":null==s?(e.style.removeProperty("width"),(0,h.attr)(e,"style")||(0,h.attr)(e,"style",null)):e.style.width=s.toString()}delete t[i]}),d.delete(e))})}constructor(...e){super(...e),(0,s._)(this,"selected",new Set)}}(0,s._)(u,"__selectedByTable",new WeakMap),(0,o.__decorate)([(0,a.debounce)()],u.prototype,"__recalculateStyles",null);let p=e=>e.getInstance("Table",e.o)},98831(e,t,i){"use strict";i.d(t,{normalizeSize:()=>s});let s=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},98838(e,t,i){"use strict";i.d(t,{UIForm:()=>h});var s=i(31635),o=i(80251),r=i(91672),n=i(93640),a=i(65273),l=i(49999),c=i(63468);class h extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,l.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,n.attr)(e,"dir",this.j.o.direction||"auto"),(0,n.attr)(e,"novalidate",""),e}constructor(...e){super(...e),this.options?.className&&this.container.classList.add(this.options?.className)}}h=(0,s.__decorate)([r.component],h)},98964(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},98988(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(28077),l=i(57821),c=i(91206),h=i(4099);i(47670);class d extends c.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,s=e.target;for(;void 0===i&&s&&s!==t.editor;)i=t.e.fire((0,l.camelCase)(e.type+"_"+s.nodeName.toLowerCase()),s,e),s=s.parentElement;"click"===e.type&&void 0===i&&s===t.editor&&t.e.fire(e.type+"Editor",s,e)}onOutsideClick(e){let t=e.target;!n.Dom.up(t,e=>e===this.j.editor)&&(h.UIElement.closestElement(t,h.Popup)||this.j.e.fire("outsideClick",e))}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&n.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:s}=t.range;0===s&&n.Dom.isText(i)&&t.select(n.Dom.closest(i,n.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:s}=this.j;!(!s.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed())&&(!e||e.isTrusted&&n.Dom.isNode(e.target)&&n.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(...e){super(...e),(0,s._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,o.__decorate)([r.autobind],d.prototype,"onStartSelection",null),(0,o.__decorate)([(0,r.watch)("ow:click")],d.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),(0,o.__decorate)([(0,r.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),(0,o.__decorate)([(0,r.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",d)},99436(e,t,i){"use strict";function s(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:()=>s})},99732(e,t,i){"use strict";i.d(t,{isInt:()=>r});var s=i(70222),o=i(85932);function r(e){return(0,o.isString)(e)&&(0,s.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},99876(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";s.r(o),s.d(o,{CommitMode:()=>h,Jodit:()=>e.Jodit});var e=s(73302),t=s(28686),i=s(81937),r=s(84839),n=s(60936),a=s(13564),l=s(89317);s(93637),Object.keys(i).forEach(t=>{e.Jodit[t]=i[t]});let c=e=>"__esModule"!==e;Object.keys(a).filter(c).forEach(e=>{n.Icon.set(e.replace("_","-"),a[e])}),Object.keys(n).filter(c).forEach(i=>{let s=n[i],o=(0,t.isFunction)(s.prototype?.className)?s.prototype.className():i;(0,t.isString)(o)&&(e.Jodit.modules[o]=s)}),Object.keys(r).filter(c).forEach(t=>{e.Jodit.decorators[t]=r[t]}),["Confirm","Alert","Prompt"].forEach(t=>{e.Jodit[t]=n[t]}),Object.keys(l.default).filter(c).forEach(t=>{e.Jodit.lang[t]=l.default[t]});class h{}})(),o})());