jodit 4.9.19 → 4.10.2

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 (62) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es2015/jodit.css +17 -5
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +3 -3
  5. package/es2015/jodit.js +47 -37
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +3 -3
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +3 -3
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +3 -3
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +17 -5
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +4 -4
  23. package/es2021/jodit.js +47 -37
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +4 -4
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +17 -5
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +4 -4
  35. package/es2021.en/jodit.js +47 -37
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +4 -4
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +47 -5
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +47 -37
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/plugins/inline-popup/config/config.js +9 -0
  61. package/esm/plugins/inline-popup/config/items/cells.js +1 -1
  62. package/package.json +1 -1
@@ -1,7 +1,7 @@
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.9.19
4
+ * Version: v4.10.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -136,7 +136,7 @@
136
136
  <label>~Border radius~</label>
137
137
  <input type="number" class="jodit-input &__borderRadius"/>
138
138
  </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),e=this.getElm("marginRight"),i=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([e,t,i].forEach(t=>{(0,u.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),e=this.getElm("marginRight"),i=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),e.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),e=this.getElm("marginRight"),i=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,p.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,p.normalSizeFromString)(e.value),this.state.values.marginBottom=(0,p.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,p.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([e,i])=>{let o=this.getElm(i);(0,l.css)(o,"display",t[e]?null:"none")})}constructor(t,e,i){super(t,{availableClasses:t.o.image.availableClasses}),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),this.state=e,this.handlers=i}}(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.align")],f.prototype,"onStateAlignChange",null),(0,s.__decorate)([(0,a.watch)("align:change")],f.prototype,"onChangeAlign",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),(0,s.__decorate)([(0,a.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),(0,s.__decorate)([(0,a.watch)("id:change")],f.prototype,"onChangeId",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),(0,s.__decorate)([(0,a.watch)("style:change")],f.prototype,"onChangeStyle",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),(0,s.__decorate)([(0,a.watch)("classes:change")],f.prototype,"onChangClasses",null),(0,s.__decorate)([(0,a.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),(0,s.__decorate)([(0,r.hook)("ready"),(0,a.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),(0,s.__decorate)([(0,a.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),(0,s.__decorate)([(0,r.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=(0,s.__decorate)([n.component],f)},17312:function(t,e,i){"use strict";function o(t){return Array.isArray(t)}i.d(e,{isArray:function(){return o}})},17326:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},17338:function(t,e,i){"use strict";i.d(e,{Ajax:function(){return d}});var o=i(25045),s=i(31635),n=i(91231),r=i(81937),a=i(49574),l=i(65946),c=i(33201),u=i(5266);i(37102);var h=i(32855);class d{className(){return"Ajax"}__buildParams(t,e){return(0,l.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,l.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,l.isFunction)(t.append)?t:(0,l.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;let{xhr:t,o:e}=this,i=this.prepareRequest();return this.__async.promise(async(o,s)=>{let n=()=>{this.__isFulfilled=!0,s(c.connection("Connection error"))},r=()=>{this.__isFulfilled=!0,o(new h.Response(i,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=r,t.onabort=()=>{this.__isFulfilled=!0,s(c.abort("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)?r():t.statusText&&(this.__isFulfilled=!0,s(c.connection(t.statusText))))},t.withCredentials=e.withCredentials??!1;let{url:a,data:u,method:d}=i;t.open(d,a,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:p}=e;(0,l.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 c.error("Need URL for AJAX request");let t=this.o.url,e=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&e&&(0,l.isPlainObject)(e)){let i=t.indexOf("?");if(-1!==i){let o=(0,l.parseQuery)(t);t=t.substring(0,i)+"?"+(0,l.buildQuery)({...o,...e})}else t+="?"+(0,l.buildQuery)(this.o.data)}let o={url:t,method:i,data:e};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,e=u.Config.prototype.defaultAjaxOptions){(0,o._)(this,"__async",new n.Async),(0,o._)(this,"xhr",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"__isFulfilled",!1),(0,o._)(this,"__activated",!1),(0,o._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,o._)(d,"log",[]),(0,s.__decorate)([a.autobind],d.prototype,"destruct",null)},17481:function(t,e,i){"use strict";i.d(e,{extractSelectedPart:function(){return a}});var o=i(23211),s=i(23175),n=i(4040),r=i(71125);function a(t,e,i){let o=i.s.createRange(),n=(0,s.isMarker)(e.previousSibling)?e.previousSibling:e;o.setStartBefore(t),o.setEndBefore(n),l(t,o,!0);let r=(0,s.isMarker)(e.nextSibling)?e.nextSibling:e;o.setStartAfter(r),o.setEndAfter(t),l(t,o,!1)}function l(t,e,i){let s=e.extractContents();s.textContent&&(0,n.trim)(s.textContent).length||!s.firstChild||o.Dom.unwrap(s.firstChild),t.parentNode&&(0,r.call)(i?o.Dom.before:o.Dom.after,t,s)}},17523:function(t,e,i){"use strict";i.d(e,{cases:function(){return d}});var o=i(26106),s=i(80951),n=i(58881),r=i(68709),a=i(5771),l=i(2409),c=i(93890),u=i(12443),h=i(10157);let d=[c.checkRemoveUnbreakableElement,r.checkRemoveContentNotEditable,n.checkRemoveChar,u.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,s.checkJoinTwoLists,o.checkJoinNeighbors,h.checkUnwrapFirstListItem]},17610:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return o.FileBrowser}});var o=i(62623)},17780:function(t,e,i){"use strict";i.d(e,{DEFAULT_SOURCE_NAME:function(){return f},default:function(){return g}});var o=i(25045),s=i(31635),n=i(81937),r=i(49574),a=i(91565),l=i(96340),c=i(77483),u=i(33201),h=i(52144),d=i(17338),p=i(58664);let f="default",m=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class g{get o(){return this.options}get(t){let e=this.__ajaxInstances;if(e.has(t)){let i=e.get(t);i?.abort(),e.delete(t)}let i=(0,c.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,c.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let o=new d.Ajax(i);e.set(t,o);let s=o.send();return s.finally(()=>{o.destruct(),e.delete(t),this.progressHandler(100)}).catch(()=>null),s.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,u.abort)();let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){let i=e.call(self,t);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(t){let e="allow"+t;if(!n.IS_PROD&&!m.has(e))throw(0,u.error)("Wrong action "+t);let i=this.o.permissionsPresets[e];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,i,o){let s=this.options;return s.items?(s.items.data.path=t,s.items.data.source=e,s.items.data.mods=i,this.get("items").then(t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,e,i={}){return this.__items(t,e,i,t=>this.__generateItemsList(t.data.sources,i))}itemsEx(t,e,i={}){return this.__items(t,e,i,t=>({items:this.__generateItemsList(t.data.sources,i),loadedTotal:t.data.sources.reduce((t,e)=>t+e.files.length,0)}))}__generateItemsList(t,e={}){let i=[],o=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){let{sort:s}=this.o;(0,a.isFunction)(s)&&e.sortBy&&t.files.sort((t,i)=>s(t,i,e.sortBy)),t.files.forEach(s=>{o(s)&&("folder"===s.type||!e.onlyImages||void 0===s.isImage||s.isImage)&&i.push(p.FileBrowserItem.create({...s,sourceName:t.name,source:t}))})}}),i}async tree(t,e){return(t=(0,l.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,h.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,u.error)(this.getMessage(t))})}createFolder(t,e,i){let{create:o}=this.o;if(!o)throw(0,u.error)("Set Create api options");return o.data.source=i,o.data.path=e,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}move(t,e,i,o){let s=o?"fileMove":"folderMove",n=this.options[s];if(!n)throw(0,u.error)("Set Move api options");return n.data.from=t,n.data.path=e,n.data.source=i,this.get(s).then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}__remove(t,e,i,o){let s=this.o[t];if(!s)throw(0,u.error)(`Set "${t}" api options`);return s.data.path=e,s.data.name=i,s.data.source=o,this.get(t).then(t=>(s.process&&(t=s.process.call(this,t)),this.getMessage(t)))}fileRemove(t,e,i){return this.__remove("fileRemove",t,e,i)}folderRemove(t,e,i){return this.__remove("folderRemove",t,e,i)}__rename(t,e,i,o,s){let n=this.o[t];if(!n)throw(0,u.error)(`Set "${t}" api options`);return n.data.path=e,n.data.name=i,n.data.newname=o,n.data.source=s,this.get(t).then(t=>(n.process&&(t=n.process.call(self,t)),this.getMessage(t)))}folderRename(t,e,i,o){return this.__rename("folderRename",t,e,i,o)}fileRename(t,e,i,o){return this.__rename("fileRename",t,e,i,o)}__changeImage(t,e,i,o,s,n){this.o[t]||(this.o[t]={data:{}});let r=this.o[t];return void 0===r.data&&(r.data={action:t}),r.data.newname=s||o,n&&(r.data.box=n),r.data.path=e,r.data.name=o,r.data.source=i,this.get(t).then(t=>t.data.newPath||!0)}crop(t,e,i,o,s){return this.__changeImage("crop",t,e,i,o,s)}resize(t,e,i,o,s){return this.__changeImage("resize",t,e,i,o,s)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,e){(0,o._)(this,"parent",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"__currentPermissions",void 0),(0,o._)(this,"__ajaxInstances",void 0),(0,o._)(this,"progressHandler",void 0),this.parent=t,this.options=e,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}(0,s.__decorate)([r.autobind],g.prototype,"onProgress",null),(0,s.__decorate)([r.autobind],g.prototype,"permissions",null),(0,s.__decorate)([r.autobind],g.prototype,"canI",null),(0,s.__decorate)([r.autobind],g.prototype,"items",null),(0,s.__decorate)([r.autobind],g.prototype,"itemsEx",null),(0,s.__decorate)([r.autobind],g.prototype,"tree",null),(0,s.__decorate)([r.autobind],g.prototype,"getPathByUrl",null),(0,s.__decorate)([r.autobind],g.prototype,"createFolder",null),(0,s.__decorate)([r.autobind],g.prototype,"move",null),(0,s.__decorate)([r.autobind],g.prototype,"fileRemove",null),(0,s.__decorate)([r.autobind],g.prototype,"folderRemove",null),(0,s.__decorate)([r.autobind],g.prototype,"folderRename",null),(0,s.__decorate)([r.autobind],g.prototype,"fileRename",null),(0,s.__decorate)([r.autobind],g.prototype,"crop",null),(0,s.__decorate)([r.autobind],g.prototype,"resize",null),(0,s.__decorate)([r.autobind],g.prototype,"getMessage",null),(0,s.__decorate)([r.autobind],g.prototype,"isSuccess",null),(0,s.__decorate)([r.autobind],g.prototype,"destruct",null)},17849:function(t,e,i){"use strict";var o=i(28686),s=i(80991);let n=t=>t.args&&(0,o.isString)(t.args[0])?t.args[0].toLowerCase():"";e.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(t,e,i)=>i,exec(t,e,{control:i}){let o=n(i);t.getInstance("Table",t.o).getAllSelectedCells().forEach(t=>{(0,s.css)(t,"vertical-align","normal"===o?"":o)})},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(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!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:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},17918:function(t){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"}},17995:function(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>'},18073:function(t,e,i){"use strict";i.d(e,{size:function(){return s}});var o=i(28686);function s(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},18080:function(t,e,i){"use strict";i.d(e,{i18n:function(){return c},sprintf:function(){return l}});var o=i(81937),s=i(85932),n=i(99436),r=i(93640),a=i(5266);let l=(t,e)=>{if(!e||!e.length)return t;let i=/%([sd])/g,o=i.exec(t),s=t,n=0;for(;o&&void 0!==e[n];)s=s.replace(o[0],e[n].toString()),n+=1,o=i.exec(t);return s};function c(t,e,i){if(!(0,s.isString)(t))throw(0,r.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!i?.debugLanguage,u={},h=t=>e&&e.length?l(t,e):t,d=(0,r.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,r.defaultLanguage)(i?.language,d),f=e=>{if(!e)return;if((0,s.isString)(e[t]))return h(e[t]);let i=t.toLowerCase();if((0,s.isString)(e[i]))return h(e[i]);let o=(0,n.ucfirst)(t);if((0,s.isString)(e[o]))return h(e[o])};void 0!==o.lang[p]?u=o.lang[p]:c||(u=void 0!==o.lang[d]?o.lang[d]:o.lang.en);let m=i?.i18n;if(m&&m[p]){let t=f(m[p]);if(t)return t}return f(u)||(!c&&o.lang.en&&(0,s.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(o.IS_PROD,h(t)))}},18210:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==s.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:e,endOffset:i}=this.j.selection.range;if(r.Dom.isText(e)&&e.nodeValue?.length===i){let{parentNode:t}=e;r.Dom.isInlineBlock(t)&&!r.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&r.Dom.after(t,this.j.createInside.text(s.NBSP_SPACE))}}}(0,o.__decorate)([(0,n.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272:function(t,e,i){"use strict";i.d(e,{makeContextMenu:function(){return r},makeDataProvider:function(){return n}});var o=i(67399),s=i(17780);function n(t,e){return new s.default(t,e)}function r(t){return new o.ContextMenu(t)}},18303:function(t,e,i){"use strict";function o(t){return null==t}i.d(e,{isVoid:function(){return o}})},18377:function(t,e,i){"use strict";i.d(e,{normalizePath:function(){return s}});var o=i(4040);let s=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((e,i)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),i&&(e=e.replace(/^\//,"")),i!==t.length-1&&(e=e.replace(/\/$/,"")),e)).join("/")},18380:function(t,e,i){"use strict";i.d(e,{readMargins:function(){return s}});var o=i(74264);function s(t,e,i){let s=!0,n=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let r=t.style.getPropertyValue((0,o.kebabCase)(i));if(!r){n=!0,e[i]=0;return}/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),e[i]=r,(n&&e[i]||s&&"marginTop"!==i&&e[i]!==e.marginTop)&&(s=!1)}),i.marginIsLocked=s}},18605:function(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>'},18762:function(t,e,i){"use strict";i.d(e,{FileSelectorWidget:function(){return a}});var o=i(23211),s=i(65946),n=i(4099),r=i(89636);let a=(t,e,i,a,c=!0)=>{let u,h=[],d=t.o.uploader;if(e.upload&&(d.url||d.insertImageAsBase64URI||d.customUploadFunction)){let i=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(i,i=>{let o=(0,s.isFunction)(e.upload)?e.upload:d.defaultHandlerSuccess;(0,s.isFunction)(o)&&o.call(t,i),t.e.fire("closeAllPopups")},e=>{t.message.error(e.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:i})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){let r=new n.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),a=new n.UIForm(t,[new n.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new n.UIInput(t,{name:"text",label:"Alternative text"}),new n.UIBlock(t,[r])]);u=null,i&&!o.Dom.isText(i)&&!o.Dom.isComment(i)&&(o.Dom.isTag(i,"img")||(0,s.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,s.$$)("img",i)[0],l(a.container,"input[name=url]",(0,s.attr)(u,"src")),l(a.container,"input[name=text]",(0,s.attr)(u,"alt")),r.state.text="Update"),i&&o.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,s.attr)(i,"href")),l(a.container,"input[name=text]",(0,s.attr)(i,"title")),r.state.text="Update"),a.onSubmit(i=>{(0,s.isFunction)(e.url)&&e.url.call(t,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}return(0,r.TabsWidget)(t,h)};function l(t,e,i){let o=t.querySelector(e);return o?(i&&(o.value=i),o.value):""}},18855:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return l}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(24497);class l extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:e}=this;e&&(0,a.isJoditObject)(t)&&e.forEach(e=>{t.registerButton(e)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.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;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(t)&&this.buttons?.forEach(e=>{t?.unregisterButton(e)}),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[]),(0,o._)(this,"hasStyle",!1),(0,o._)(this,"styles",void 0),(0,o._)(this,"__inited",!1),t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,o._)(l,"requires",[]),(0,s.__decorate)([r.autobind],l.prototype,"__afterPluginSystemInit",null),(0,s.__decorate)([r.autobind],l.prototype,"__afterInit",null),(0,s.__decorate)([r.autobind],l.prototype,"__beforeDestruct",null)},18869:function(t,e,i){"use strict";i.d(e,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return r}});var o=i(25045),s=i(88475),n=i(28712);let r="JoditEventDefaultNamespace";class a{get(t,e){if(this.__store.has(e)){let i=this.__store.get(e);return(0,n.assert)(i,"-"),i[t]}}indexOf(t,e,i){let o=this.get(t,e);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===i)return t}return!1}namespaces(t=!1){let e=(0,s.toArray)(this.__store.keys());return t?e.filter(t=>t!==r):e}events(t){let e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let s=this.__store.get(e);s||(s={},this.__store.set(e,s)),void 0===s[t]&&(s[t]=[]),o?s[t].unshift(i):s[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){let i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){(0,o._)(this,"__store",new Map)}}},18929:function(t,e,i){"use strict";var o=i(81937),s=i(29434),n=i(5266),r=i(9103),a=i.n(r);n.Config.prototype.beautifyHTML=!o.IS_IE,n.Config.prototype.sourceEditor="ace",n.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},n.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],n.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"],s.Icon.set("source",a()),n.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec(t){t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},18993:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(81875),r=i.n(n);s.Config.prototype.usePopupForSpecialCharacters=!1,s.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;"],o.Icon.set("symbols",r()),s.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,i){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(o),t.e.on(o,"close_dialog",i),e}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let e=o.querySelector("a");e&&e.focus()}}}},19147:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(70222),s=i(18303),n=i(93387),r=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,s.isVoid)(e)&&a.test(t)&&(0,o.isNumeric)(e.toString())?parseInt(e.toString(),10)+"px":e}function c(t,e){if("font-weight"===(0,r.kebabCase)(t)){switch(e.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(e.toString())&&(0,n.colorToHex)(e.toString())||e}},19213:function(t,e,i){"use strict";i.d(e,{clearSelectionWrappers:function(){return c},clearSelectionWrappersFromHTML:function(){return u},getSelectionWrappers:function(){return l},highlightTextRanges:function(){return a}});var o=i(81937),s=i(23211),n=i(28723);let r="jd-tmp-selection";function a(t,e,i,n,a){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue||function(t,e,i){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[e,...i].map(e=>{let i=t.selection.createRange();return i.setStart(e.startContainer,e.startOffset),i.setEnd(e.endContainer,e.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),i.length=0,!0}return!1}(t,e,i))return;let l=n.element("span",{[r]:!0});s.Dom.markTemporary(l),function(t,e,i){let o=t.startContainer.nodeValue,n=0;if(0!==t.startOffset){let e=i.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),s.Dom.before(t.startContainer,e),t.startContainer===t.endContainer&&(n=t.startOffset,t.endOffset-=n),t.startOffset=0}let r=t.endContainer.nodeValue;if(t.endOffset!==r.length){let o=i.text(r.substring(t.endOffset));for(let i of(t.endContainer.nodeValue=r.substring(0,t.endOffset),s.Dom.after(t.endContainer,o),e))if(i.startContainer===t.endContainer)i.startContainer=o,i.startOffset=i.startOffset-t.endOffset-n,i.endContainer===t.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-t.endOffset-n);else break;t.endOffset=t.endContainer.nodeValue.length}}(e,i,n);let c=e.startContainer;do{var u;if(!c||(s.Dom.isText(c)&&(u=c.parentNode,!(s.Dom.isElement(u)&&u.hasAttribute(r)))&&s.Dom.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)}function l(t){return(0,n.$$)(`[${r}]`,t)}function c(t){l(t.editor).forEach(t=>s.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function u(t){return t.replace(RegExp(`<span[^>]+${r}[^>]+>(.*?)</span>`,"g"),"$1")}},19549:function(t,e,i){"use strict";i.d(e,{getSuitParent:function(){return function t(e,i,r){let{parentNode:a}=i;return a===r||!o.Dom.isHTMLElement(a)||o.Dom.next(i,s.isNormalNode,a)||o.Dom.prev(i,s.isNormalNode,a)?null:e.isElementCommit&&e.elementIsBlock&&!o.Dom.isBlock(a)?t(e,a,r):(0,n.isSuitElement)(e,a,!1)&&(!o.Dom.isBlock(a)||e.elementIsBlock)?a:e.isElementCommit&&!o.Dom.isBlock(a)?t(e,a,r):null}}});var o=i(23211),s=i(83653),n=i(73019)},20784:function(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>'},21132:function(t,e,i){"use strict";i.d(e,{applyMargin:function(){return n}});var o=i(80991),s=i(10808);function n(t,e,i,n,r,a,l){let c=[e,i,n,r],u=(t,e)=>{let i=(0,o.css)(a,t),n=(0,s.normalSizeToString)(e);i.toString()!==n.toString()&&(0,o.css)(a,t,n)};if(l)u("margin",e);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((e,i)=>{u(t[i],e)})}}},21917:function(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:function(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>'},22289:function(t,e,i){"use strict";function o(t){return"boolean"==typeof t}i.d(e,{isBoolean:function(){return o}})},22533:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return T}});var o=i(25045),s=i(31635),n=i(69364),r=i(49574),a=i(51676),l=i(91672),c=i(68616),u=i(23211),h=i(17312),d=i(91565),p=i(24497),f=i(62101),m=i(85932),g=i(86878),_=i(57821),v=i(28712),b=i(7909),y=i(71125),w=i(59400),S=i(15982),C=i(29434),E=i(51116),I=i(4274);class T extends w.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,b.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,l.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){let{control:t,state:e}=this,i=this.toolbar;if(!i)return;let o=t.value?.(i.jodit,this);void 0!==o&&(e.value=o),e.disabled=this.__calculateDisabledStatus(i),e.activated=this.__calculateActivatedStatus(i),t.update?.(i.jodit,this)}__calculateActivatedStatus(t){return(!(0,p.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,b.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,b.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,e=this.j.c.span(t),i=super.createContainer();i.classList.remove(t),i.classList.add(t+"__button"),Object.defineProperty(i,"component",{value:this}),e.appendChild(i);let o=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${C.Icon.get("chevron")}</span>`);return i.appendChild(o),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):u.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,b.attr)(this.trigger,"disabled",t),(0,b.attr)(this.button,"disabled",t),(0,b.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:e}=this;this.updateSize(),e.name=t.name;let{textIcons:i}=this.j.o;if(!0===i||(0,d.isFunction)(i)&&i(t.name)||t.template)e.icon=(0,w.UIButtonState)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{let i=t.icon||t.name;e.icon.name=C.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=(0,d.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();let{control:e}=this;if((0,b.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,d.isFunction)(e.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,_.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.popup(this.j,i,this.__closePopup,this);o?t.setContent((0,m.isString)(o)?this.j.c.fromHTML(o):o).open(()=>(0,g.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,_.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){let e=this.jodit.options.controls??{},i=t=>(0,S.findControlType)(t,e),o=t.list,s=this.openPopup(),n=(0,I.makeCollection)(this.j);s.parentElement=this,n.parentElement=s,n.mode="vertical";let r=(e,o)=>{let s;if((0,m.isString)(o)&&i(o))return{name:o.toString(),...i(o)};if((0,m.isString)(e)&&i(e))return{name:e.toString(),...i(e),..."object"==typeof o?o:{}};s=e,(0,f.isPlainObject)(s)&&"title"in s&&"value"in s&&(o=e.value,e=e.title);let{childTemplate:n}=t,r={name:e.toString(),template:n&&((t,e,i)=>n(t,e,i,this)),exec:t.childExec?(e,i,o)=>t.childExec?.(e,i,{...o,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,o]};return(0,m.isString)(o)&&(r.text=o),r};n.build((0,h.isArray)(o)?o.map(r):(0,y.keys)(o,!1).map(t=>r(t,o[t])),this.target),s.setContent(n).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&u.Dom.isNode(t.target)&&(u.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new E.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,this.trigger&&(0,b.attr)(this.trigger,"aria-expanded",!1))}onClick(t){let{control:e}=this;if((0,d.isFunction)(e.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.exec(this.j,i,{control:e,originalEvent:t,button:this});if(!1!==o&&!0!==o&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==o)return}return e.list?this.__openControlList(e):(0,d.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,y.call)((0,p.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()}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"trigger",void 0),(0,o._)(this,"openedPopup",void 0),this.control=e,this.target=i,this.state={...(0,w.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const s=this.getElm("button");(0,v.assert)(s,"Element button should exists"),this.button=s,Object.defineProperty(s,"component",{value:this,configurable:!0});const r=this.getElm("trigger");(0,v.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),e.mods&&Object.keys(e.mods).forEach(t=>{e.mods&&this.setMod(t,e.mods[t])})}}(0,s.__decorate)([a.cacheHTML],T.prototype,"createContainer",null),(0,s.__decorate)([(0,c.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),(0,s.__decorate)([(0,c.watch)("trigger:click")],T.prototype,"onTriggerClick",null),(0,s.__decorate)([r.autobind],T.prototype,"onOutsideClick",null),(0,s.__decorate)([r.autobind],T.prototype,"__closePopup",null),T=(0,s.__decorate)([l.component],T)},22852:function(t,e,i){"use strict";i.d(e,{stripTags:function(){return function t(e,i=document,u=null){let h=i.createElement("div");return(0,s.isString)(e)?h.innerHTML=e:h.appendChild(e),(0,r.$$)("*",h).forEach(e=>{let s=e.parentNode;if(!s)return;if(u&&o.Dom.isTag(e,u)){let s=e.nodeName.toLowerCase(),n=o.Dom.isTag(e,c)?`%%%jodit-single-${s}%%%`:`%%%jodit-${s}%%%${t(e.innerHTML,i,u)}%%%/jodit-${s}%%%`;o.Dom.before(e,i.createTextNode(n)),o.Dom.safeRemove(e);return}if(o.Dom.isTag(e,l))return void o.Dom.safeRemove(e);if(!o.Dom.isTag(e,a))return;let n=e.nextSibling;!(o.Dom.isText(n)&&/^\s/.test(n.nodeValue||""))&&n&&s.insertBefore(i.createTextNode(" "),n)}),(0,n.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,e,i,o)=>`<${e?"/":""}${o}>`)}}});var o=i(23211),s=i(85932),n=i(4040),r=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:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class u extends c.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,i=!1;for(;e;){if(e=function(t,e){let i=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(i,"ul")?i.appendChild(o):i=r.Dom.wrap(o,"ul",e.createInside),o=t}else break;while(o)return i}(e,t),this.isSuitableStart(e)){i||t.s.save(),i=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(e,o);e&&this.isSuitable(e);){let t=e.nextSibling;o.appendChild(e),e=t}o.normalize(),e=o}e=e&&e.nextSibling}i&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;let i=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(i,o),r.Dom.append(t.editor,i),t.s.isFocused()&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(...t){super(...t),(0,o._)(this,"isSuitableStart",t=>r.Dom.isText(t)&&(0,l.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)),(0,o._)(this,"isSuitable",t=>r.Dom.isText(t)||this.isNotWrapped(t)),(0,o._)(this,"isNotWrapped",t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude)))}}(0,s.__decorate)([n.autobind],u.prototype,"postProcessSetEditorValue",null),(0,s.__decorate)([n.autobind],u.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",u)},23112:function(t,e,i){"use strict";function o(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(e.length));for(let t=0;t<e.length;t+=1)o[t]=e.charCodeAt(t);return new Blob([o.buffer],{type:i})}i.d(e,{dataURItoBlob:function(){return o}})},23175:function(t,e,i){"use strict";i.d(e,{isMarker:function(){return s}});var o=i(23211);function s(t){return o.Dom.isMarker(t)}},23183:function(t,e,i){"use strict";i.d(e,{Elms:function(){return s}});var o=i(88475);class s{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,o.toArray)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},23211:function(t,e,i){"use strict";i.d(e,{Dom:function(){return v}});var o=i(81937),s=i(88475),n=i(17312),r=i(91565),a=i(46248),l=i(3213),c=i(85932),u=i(18303),h=i(4040),d=i(28712),p=i(7909),f=i(80991),m=i(36400),g=i(33201),_=i(71125);class v{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,e,i){let o,s=t;i.s.save();let n=!1;do n=!1,(o=s.nextSibling)&&!v.isBlock(o)&&!v.isTag(o,"br")&&(n=!0,s=o);while(n)return v.__wrapElements(e,i,t,s)}static __wrapElements(t,e,i,o){let s=(0,c.isString)(t)?e.createInside.element(t):t;i.parentNode&&i.parentNode.insertBefore(s,i);let n=i;for(;n&&(n=i.nextSibling,s.appendChild(i),i!==o&&n);)i=n;return e.s.restore(),s}static wrapInline(t,e,i){let o,s=t,n=t;i.s.save();let r=!1;do r=!1,(o=s.previousSibling)&&!v.isBlock(o)&&(r=!0,s=o);while(r)do r=!1,(o=n.nextSibling)&&!v.isBlock(o)&&(r=!0,n=o);while(r)return v.__wrapElements(e,i,s,n)}static wrap(t,e,i){let o=(0,c.isString)(e)?i.element(e):e;if(v.isNode(t)){if(!t.parentNode)throw(0,g.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){let e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);v.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&!(t!==o&&i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=o?.nextSibling}o=t}}static replace(t,e,i,o=!1,n=!1){let r;if((0,a.isHTML)(e)&&((0,d.assert)(i,"Need create instance for new tag"),e=i.fromHTML(e)),(0,c.isString)(e)?((0,d.assert)(i,"Need create instance for new tag"),r=i.element(e)):r=e,!n)for(;t.firstChild;)r.appendChild(t.firstChild);return o&&v.isElement(t)&&v.isElement(r)&&(0,s.toArray)(t.attributes).forEach(t=>{r.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(r,t),r}static isEmptyTextNode(t){return v.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return v.each(t,t=>v.isEmptyTextNode(t))}static isContentEditable(t,e){return v.isNode(t)&&!v.closest(t,t=>v.isElement(t)&&"false"===t.getAttribute("contenteditable"),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){let i;if(!t)return!0;i=(0,r.isFunction)(e)?e:t=>e.has(t.nodeName.toLowerCase());let s=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return v.isText(t)?s(t):!(v.isElement(t)&&i(t))&&v.each(t,t=>{if(v.isText(t)&&!s(t)||v.isElement(t)&&i(t))return!1})}static isNode(t){return!!(t&&(0,c.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.isFunction)(t.appendChild))}static isCell(t){return v.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return v.isTag(t,o.LIST_TAGS)}static isLeaf(t){return v.isTag(t,"li")}static isImage(t){return v.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&v.isNode(t)&&o.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){return!!v.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){return!!v.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!v.isNode(t))return!1;let e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return v.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&v.isHTMLElement(t)&&v.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 i=t?.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==t)o=i?.previousSibling}i=o}while(i)return null}static prev(t,e,i,o=!0){return v.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return v.find(t,e,i,!0,o)}static prevWithClass(t,e){return v.prev(t,t=>v.isElement(t)&&t.classList.contains(e),t.parentNode)}static nextWithClass(t,e){return v.next(t,t=>v.isElement(t)&&t.classList.contains(e),t.parentNode)}static find(t,e,i,o=!0,s=!0){let n=this.nextGen(t,i,o,s),r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}return null}static*nextGen(t,e,i=!0,o=!0){let s=[],n=t;do{let e=i?n.nextSibling:n.previousSibling;for(;e;)s.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,s,i,o),n=n.parentNode}while(n&&n!==e)return null}static each(t,e,i=!0){let o=this.eachGen(t,i),s=o.next();for(;!s.done;){if(!1===e(s.value))return!1;s=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){let s=e.pop();if(o){let t=i?s.lastChild:s.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==s&&(yield s)}}static findWithCurrent(t,e,i,o="nextSibling",s="firstChild"){let n=t;do{if(e(n))return n||null;if(s&&n&&n[s]){let t=v.findWithCurrent(n[s],e,n,o,s);if(t)return t}for(;n&&!n[o]&&n!==i;)n=n.parentNode;n&&n[o]&&n!==i&&(n=n[o])}while(n&&n!==i)return null}static findSibling(t,e=!0,i=t=>!v.isEmptyTextNode(t)){let o=v.sibling(t,e);for(;o&&!i(o);)o=v.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return v.findSibling(t,e,t=>!v.isEmptyTextNode(t)&&!!(!v.isText(t)||t.nodeValue?.length&&(0,h.trim)(t.nodeValue)))}static findNotEmptyNeighbor(t,e,i){return(0,_.call)(e?v.prev:v.next,t,t=>!!(t&&(!(v.isText(t)||v.isComment(t))||(0,h.trim)(t?.nodeValue||"").length)),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let s=t;if(!s)return null;do{if(e(s))return s;if(s===i||!s.parentNode)break;s=s.parentNode}while(s&&s!==i)return s===i&&o&&e(s)?s:null}static closest(t,e,i){let o,s=t=>t.toLowerCase();if((0,r.isFunction)(e))o=e;else if((0,n.isArray)(e)||(0,l.isSet)(e)){let t=(0,l.isSet)(e)?e:new Set(e.map(s));o=e=>!!(e&&t.has(s(e.nodeName)))}else o=t=>!!(t&&s(e)===s(t.nodeName));return v.up(t,o,i)}static furthest(t,e,i){let o=null,s=t?.parentElement;for(;s&&s!==i;)e(s)&&(o=s),s=s?.parentElement;return o}static appendChildFirst(t,e){let i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){let{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){let{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,n.isArray)(e)?e.forEach(e=>{this.append(t,e)}):t.appendChild(e)}static moveContent(t,e,i=!1,n=()=>!0){let r=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,s.toArray)(t.childNodes).filter(t=>!!n(t)||(v.safeRemove(t),!1)).forEach(t=>{r.appendChild(t)}),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:!!(e&&t&&this.up(e,e=>e===t,t,!0))}static safeRemove(...t){t.forEach(t=>v.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();let i=v.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&v.isTag(t.startContainer,o.INSEPARABLE_TAGS)?v.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach(t=>v.isText(t)&&!t.nodeValue&&v.safeRemove(t))}static hide(t){t&&((0,m.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let e=(0,m.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;let i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw TypeError("Dom.isTag does not support array");return i===e||o===e}static markTemporary(t,e){return e&&(0,p.attr)(t,e),(0,p.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!v.isElement(t)&&(v.isMarker(t)||"true"===(0,p.attr)(t,o.TEMP_ATTR))}static isMarker(t){return v.isNode(t)&&v.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,s.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},23283:function(t,e,i){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}i.d(e,{isNativeFunction:function(){return o}})},23422:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(38187);var h=i(54308);class d extends u.Plugin{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;let e=(0,c.getDataTransfer)(t),i=[e?.getData(n.TEXT_PLAIN),e?.getData(n.TEXT_HTML),e?.getData(n.TEXT_RTF)];for(let e of i)if((0,c.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){let e=(0,c.getDataTransfer)(t),i=e?.getData(n.TEXT_HTML)||e?.getData(n.TEXT_PLAIN);if(e&&i&&""!==(0,c.trim)(i)){let o=this.j.e.fire("processPaste",t,i,(0,h.getAllTypes)(e));void 0!==o&&(i=o),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(t,i,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(t=>t.html===e);if(i)return this.__insertByType(t,e,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,h.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(t,e,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,e,i){if(this.pasteStack.push({html:e,action:i}),(0,c.isString)(e))switch(this.j.buffer.set(n.CLIPBOARD_ID,e),i){case n.INSERT_CLEAR_HTML:e=(0,c.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,c.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case n.INSERT_AS_TEXT:e=(0,c.htmlspecialchars)(e);break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",i,e,t);"string"==typeof o&&(e=o)}}(0,h.pasteInsertHtml)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,i){if(i===n.TEXT_PLAIN+";"&&!(0,c.isHTML)(e))return(0,c.nl2br)(e)}constructor(...t){super(...t),(0,o._)(this,"pasteStack",new c.LimitedStack(20)),(0,o._)(this,"_isDialogOpened",!1)}}(0,s.__decorate)([r.autobind],d.prototype,"onPaste",null),(0,s.__decorate)([r.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",d)},23599:function(t,e,i){"use strict";i.d(e,{position:function(){return function t(e,i,s=!1){let n=e.getBoundingClientRect(),r=n.left,a=n.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(e)&&!s){let{left:e,top:o}=t(i.iframe,i,!0);r+=e,a+=o}return{left:Math.round(r),top:Math.round(a),width:Math.round(e.offsetWidth??n.width),height:Math.round(e.offsetHeight??n.height)}}}});var o=i(24497)},23602:function(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>'},24268:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(49989),r=i.n(n);s.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",r()),s.Config.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:r(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475:function(t,e,i){"use strict";i.d(e,{Storage:function(){return l},StorageKey:function(){return a}});var o=i(25045),s=i(57821),n=i(59807),r=i(9505);let a="Jodit_";class l{set(t,e){return this.provider.set((0,s.camelCase)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,s.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,s.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,s.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,e){let i;return"localStorage"===t||"sessionStorage"===t?(0,n.canUsePersistentStorage)(t)&&(i=new n.LocalStorageProvider(a+(e||""),t)):!0===t&&(0,n.canUsePersistentStorage)("localStorage")&&(i=new n.LocalStorageProvider(a+(e||""))),i||(i=new r.MemoryStorageProvider),new l(i,e)}constructor(t,e){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=t,this.prefix=a,e&&(this.prefix+=e)}}},24497:function(t,e,i){"use strict";i.d(e,{isJoditObject:function(){return s}});var o=i(91565);function s(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},24641:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=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 t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,t)):r.Dom.safeRemove(t)}constructor(t,e){super(t,{...e,type:"checkbox"}),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e)}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,s.__decorate)([(0,n.watch)("state.checked"),(0,n.hook)("ready")],l.prototype,"onChangeChecked",null),(0,s.__decorate)([(0,n.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,s.__decorate)([(0,n.watch)("state.switch"),(0,n.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,s.__decorate)([n.component],l)},24735:function(t,e,i){"use strict";i.d(e,{Async:function(){return m}});var o=i(25045),s=i(81937),n=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),p=i(28712),f=i(14228);class m{delay(t){return this.promise(e=>this.setTimeout(e,t))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(e)&&(e=0),(0,l.isNumber)(e)||(e=(o=e).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,n.setTimeout)(t,e,...i),r=o.label||s;return this.timers.set(r,s),this.__callbacks.set(r,t),s}updateTimeout(t,e){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let i=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,n.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,h.isString)(t))return this.clearLabel(t);(0,n.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,s=!1,l=[],h=(...e)=>{if(!s){o=0;let i=t(...e);if(s=!0,l.length){let t=()=>{l.forEach(t=>t()),l.length=0};(0,u.isPromise)(i)?i.finally(t):t()}}},d=(...r)=>{s=!1,e?(!o&&i&&h(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(e)?e():e),this.timers.set(t,o)):h(...r)};return(0,c.isPlainObject)(e)&&e.promisify?(...t)=>{let e=this.promise(t=>{l.push(t)}).catch(t=>{if((0,r.isAbortError)(t))return null;throw t});return d(...t),e}:d}microDebounce(t,e=!1){let i,o=!1,s=!0;return(...n)=>{if(i=n,o){s=!0;return}s=!0,e&&(s=!1,t(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&s&&t(...i)})}}throttle(t,e,i=!1){let o=null,s,n,r;return(...i)=>{(s=!0,r=i,e)?o||(n=()=>{s?(t(...r),s=!1,o=this.setTimeout(n,(0,a.isFunction)(e)?e():e),this.timers.set(n,o)):o=null})():t(...r)}}promise(t){let e=()=>{},i=new Promise((i,o)=>{e=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(e),t(i,o)});return!i.finally&&"u">typeof process&&!s.IS_ES_NEXT&&(i.finally=t=>(i.then(t).catch(t),i)),i.finally(()=>{this.promisesRejections.delete(e)}).catch(()=>null),i.rejectCallback=e,i}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)});let e={};return Promise.race([t,e]).then(t=>t===e?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,e={timeout:100}){let i=this.__requestIdleCallbackNative(t,e);return this.__requestsIdle.add(i),i}requestIdlePromise(t){return this.promise(e=>{let i=this.requestIdleCallback(()=>e(i),t)})}schedulerPostTask(t,e={delay:0,priority:"user-visible"}){let i=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...e,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,s)=>{let n=this.setTimeout(()=>{try{o(t())}catch(t){s(t)}this.__controllers.delete(i)},e.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(n),this.__controllers.delete(i),s((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let 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,n.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((t,e)=>{let i=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},e?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)})),(0,o._)(this,"isDestructed",!1)}}},24772:function(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>'},24968:function(t,e,i){"use strict";i.d(e,{derive:function(){return s}});var o=i(91565);function s(...t){return e=>{let i=e.prototype;for(let e=0;e<t.length;e++){let s=t[e],n=Object.getOwnPropertyNames(s.prototype);for(let t=0;t<n.length;t++){let e=n[t],r=Object.getOwnPropertyDescriptor(s.prototype,e);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return r.value.call(this,...t)}})}}}}},25045:function(t,e,i){"use strict";function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{_:function(){return o}})},25222:function(t,e,i){"use strict";i.d(e,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return s.IndexedDBProvider},LocalStorageProvider:function(){return n.LocalStorageProvider},MemoryStorageProvider:function(){return r.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return s.canUseIndexedDB},canUsePersistentStorage:function(){return n.canUsePersistentStorage},clearUseIndexedDBCache:function(){return s.clearUseIndexedDBCache}});var o=i(8006),s=i(91162),n=i(59807),r=i(9505),a=i(24475)},25501:function(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>'},25974:function(t,e,i){"use strict";i.d(e,{makeInstance:function(){return n}});var o=i(81937),s=i(91565);function n(t,e){try{try{return(0,s.isFunction)(e)?new e(t):e}catch(i){if((0,s.isFunction)(e)&&!e.prototype)return e(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},26106:function(t,e,i){"use strict";i.d(e,{checkJoinNeighbors:function(){return r}});var o=i(81937),s=i(23211),n=i(15200);function r(t,e,i){let n=e,r=n;for(;n&&!s.Dom.findNotEmptySibling(n,i)&&n.parentElement!==t.editor;)r=n=n.parentElement;if(s.Dom.isElement(r)&&s.Dom.isContentEditable(r,t.editor)){var l,c;let n,u,h,d=s.Dom.findNotEmptySibling(r,i);if(d&&(l=r,c=d,n=s.Dom.isTag(c,o.LIST_TAGS),u=s.Dom.isTag(l,o.LIST_TAGS),h=(t,e)=>e?t.firstElementChild:t.lastElementChild,(u?(c=t.createInside.element(t.o.enterBlock),s.Dom.before(l,c),a(t,h(l,i),c,i)):!!c&&!!n&&!u&&a(t,l,h(c,!i),i))||a(t,r,d,i)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,i,o){if(e&&s.Dom.isElement(i)){s.Dom.moveContent(e,i,!o,(0,n.getMoveFilter)(t));let r=e;for(;r&&r!==t.editor&&s.Dom.isEmpty(r);){let t=r.parentElement;s.Dom.safeRemove(r),r=t}return!0}return!1}},26136:function(t,e,i){"use strict";i.d(e,{browser:function(){return o}});let o=t=>{let e=navigator.userAgent.toLowerCase(),i=/(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?i[2]:"webkit"===t?"chrome"===i[1]||"webkit"===i[1]:"ff"===t?"firefox"===i[1]:"msie"===t?"trident"===i[1]||"msie"===i[1]:i[1]===t}},26633:function(t,e,i){"use strict";i.d(e,{readAlign:function(){return s}});var o=i(80991);function s(t,e){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?e.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?e.align="center":e.align=""}},27137:function(t,e,i){"use strict";i.d(e,{UIImagePropertiesForm:function(){return p}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65946),l=i(63468),c=i(29434),u=i(15753),h=i(29596),d=i(17306);class p extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let e=super.getElm(t);if(e)return e;for(let e of this.elements){let i=e.getElm(t);if(i)return i}return null}render(){return`<form>
139
+ `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!1,e)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let s=n(i);t.execCommand(s,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},17918:function(t){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"}},17995:function(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>'},18073:function(t,e,i){"use strict";i.d(e,{size:function(){return s}});var o=i(28686);function s(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},18080:function(t,e,i){"use strict";i.d(e,{i18n:function(){return c},sprintf:function(){return l}});var o=i(81937),s=i(85932),n=i(99436),r=i(93640),a=i(5266);let l=(t,e)=>{if(!e||!e.length)return t;let i=/%([sd])/g,o=i.exec(t),s=t,n=0;for(;o&&void 0!==e[n];)s=s.replace(o[0],e[n].toString()),n+=1,o=i.exec(t);return s};function c(t,e,i){if(!(0,s.isString)(t))throw(0,r.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!i?.debugLanguage,u={},h=t=>e&&e.length?l(t,e):t,d=(0,r.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,r.defaultLanguage)(i?.language,d),f=e=>{if(!e)return;if((0,s.isString)(e[t]))return h(e[t]);let i=t.toLowerCase();if((0,s.isString)(e[i]))return h(e[i]);let o=(0,n.ucfirst)(t);if((0,s.isString)(e[o]))return h(e[o])};void 0!==o.lang[p]?u=o.lang[p]:c||(u=void 0!==o.lang[d]?o.lang[d]:o.lang.en);let m=i?.i18n;if(m&&m[p]){let t=f(m[p]);if(t)return t}return f(u)||(!c&&o.lang.en&&(0,s.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(o.IS_PROD,h(t)))}},18210:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==s.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:e,endOffset:i}=this.j.selection.range;if(r.Dom.isText(e)&&e.nodeValue?.length===i){let{parentNode:t}=e;r.Dom.isInlineBlock(t)&&!r.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&r.Dom.after(t,this.j.createInside.text(s.NBSP_SPACE))}}}(0,o.__decorate)([(0,n.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272:function(t,e,i){"use strict";i.d(e,{makeContextMenu:function(){return r},makeDataProvider:function(){return n}});var o=i(67399),s=i(17780);function n(t,e){return new s.default(t,e)}function r(t){return new o.ContextMenu(t)}},18303:function(t,e,i){"use strict";function o(t){return null==t}i.d(e,{isVoid:function(){return o}})},18377:function(t,e,i){"use strict";i.d(e,{normalizePath:function(){return s}});var o=i(4040);let s=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((e,i)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),i&&(e=e.replace(/^\//,"")),i!==t.length-1&&(e=e.replace(/\/$/,"")),e)).join("/")},18380:function(t,e,i){"use strict";i.d(e,{readMargins:function(){return s}});var o=i(74264);function s(t,e,i){let s=!0,n=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let r=t.style.getPropertyValue((0,o.kebabCase)(i));if(!r){n=!0,e[i]=0;return}/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),e[i]=r,(n&&e[i]||s&&"marginTop"!==i&&e[i]!==e.marginTop)&&(s=!1)}),i.marginIsLocked=s}},18605:function(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>'},18762:function(t,e,i){"use strict";i.d(e,{FileSelectorWidget:function(){return a}});var o=i(23211),s=i(65946),n=i(4099),r=i(89636);let a=(t,e,i,a,c=!0)=>{let u,h=[],d=t.o.uploader;if(e.upload&&(d.url||d.insertImageAsBase64URI||d.customUploadFunction)){let i=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(i,i=>{let o=(0,s.isFunction)(e.upload)?e.upload:d.defaultHandlerSuccess;(0,s.isFunction)(o)&&o.call(t,i),t.e.fire("closeAllPopups")},e=>{t.message.error(e.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:i})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){let r=new n.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),a=new n.UIForm(t,[new n.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new n.UIInput(t,{name:"text",label:"Alternative text"}),new n.UIBlock(t,[r])]);u=null,i&&!o.Dom.isText(i)&&!o.Dom.isComment(i)&&(o.Dom.isTag(i,"img")||(0,s.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,s.$$)("img",i)[0],l(a.container,"input[name=url]",(0,s.attr)(u,"src")),l(a.container,"input[name=text]",(0,s.attr)(u,"alt")),r.state.text="Update"),i&&o.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,s.attr)(i,"href")),l(a.container,"input[name=text]",(0,s.attr)(i,"title")),r.state.text="Update"),a.onSubmit(i=>{(0,s.isFunction)(e.url)&&e.url.call(t,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}return(0,r.TabsWidget)(t,h)};function l(t,e,i){let o=t.querySelector(e);return o?(i&&(o.value=i),o.value):""}},18855:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return l}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(24497);class l extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:e}=this;e&&(0,a.isJoditObject)(t)&&e.forEach(e=>{t.registerButton(e)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.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;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(t)&&this.buttons?.forEach(e=>{t?.unregisterButton(e)}),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[]),(0,o._)(this,"hasStyle",!1),(0,o._)(this,"styles",void 0),(0,o._)(this,"__inited",!1),t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,o._)(l,"requires",[]),(0,s.__decorate)([r.autobind],l.prototype,"__afterPluginSystemInit",null),(0,s.__decorate)([r.autobind],l.prototype,"__afterInit",null),(0,s.__decorate)([r.autobind],l.prototype,"__beforeDestruct",null)},18869:function(t,e,i){"use strict";i.d(e,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return r}});var o=i(25045),s=i(88475),n=i(28712);let r="JoditEventDefaultNamespace";class a{get(t,e){if(this.__store.has(e)){let i=this.__store.get(e);return(0,n.assert)(i,"-"),i[t]}}indexOf(t,e,i){let o=this.get(t,e);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===i)return t}return!1}namespaces(t=!1){let e=(0,s.toArray)(this.__store.keys());return t?e.filter(t=>t!==r):e}events(t){let e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let s=this.__store.get(e);s||(s={},this.__store.set(e,s)),void 0===s[t]&&(s[t]=[]),o?s[t].unshift(i):s[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){let i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){(0,o._)(this,"__store",new Map)}}},18929:function(t,e,i){"use strict";var o=i(81937),s=i(29434),n=i(5266),r=i(9103),a=i.n(r);n.Config.prototype.beautifyHTML=!o.IS_IE,n.Config.prototype.sourceEditor="ace",n.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},n.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],n.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"],s.Icon.set("source",a()),n.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec(t){t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},18993:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(81875),r=i.n(n);s.Config.prototype.usePopupForSpecialCharacters=!1,s.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;"],o.Icon.set("symbols",r()),s.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,i){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(o),t.e.on(o,"close_dialog",i),e}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let e=o.querySelector("a");e&&e.focus()}}}},19147:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(70222),s=i(18303),n=i(93387),r=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,s.isVoid)(e)&&a.test(t)&&(0,o.isNumeric)(e.toString())?parseInt(e.toString(),10)+"px":e}function c(t,e){if("font-weight"===(0,r.kebabCase)(t)){switch(e.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(e.toString())&&(0,n.colorToHex)(e.toString())||e}},19213:function(t,e,i){"use strict";i.d(e,{clearSelectionWrappers:function(){return c},clearSelectionWrappersFromHTML:function(){return u},getSelectionWrappers:function(){return l},highlightTextRanges:function(){return a}});var o=i(81937),s=i(23211),n=i(28723);let r="jd-tmp-selection";function a(t,e,i,n,a){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue||function(t,e,i){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[e,...i].map(e=>{let i=t.selection.createRange();return i.setStart(e.startContainer,e.startOffset),i.setEnd(e.endContainer,e.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),i.length=0,!0}return!1}(t,e,i))return;let l=n.element("span",{[r]:!0});s.Dom.markTemporary(l),function(t,e,i){let o=t.startContainer.nodeValue,n=0;if(0!==t.startOffset){let e=i.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),s.Dom.before(t.startContainer,e),t.startContainer===t.endContainer&&(n=t.startOffset,t.endOffset-=n),t.startOffset=0}let r=t.endContainer.nodeValue;if(t.endOffset!==r.length){let o=i.text(r.substring(t.endOffset));for(let i of(t.endContainer.nodeValue=r.substring(0,t.endOffset),s.Dom.after(t.endContainer,o),e))if(i.startContainer===t.endContainer)i.startContainer=o,i.startOffset=i.startOffset-t.endOffset-n,i.endContainer===t.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-t.endOffset-n);else break;t.endOffset=t.endContainer.nodeValue.length}}(e,i,n);let c=e.startContainer;do{var u;if(!c||(s.Dom.isText(c)&&(u=c.parentNode,!(s.Dom.isElement(u)&&u.hasAttribute(r)))&&s.Dom.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)}function l(t){return(0,n.$$)(`[${r}]`,t)}function c(t){l(t.editor).forEach(t=>s.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function u(t){return t.replace(RegExp(`<span[^>]+${r}[^>]+>(.*?)</span>`,"g"),"$1")}},19549:function(t,e,i){"use strict";i.d(e,{getSuitParent:function(){return function t(e,i,r){let{parentNode:a}=i;return a===r||!o.Dom.isHTMLElement(a)||o.Dom.next(i,s.isNormalNode,a)||o.Dom.prev(i,s.isNormalNode,a)?null:e.isElementCommit&&e.elementIsBlock&&!o.Dom.isBlock(a)?t(e,a,r):(0,n.isSuitElement)(e,a,!1)&&(!o.Dom.isBlock(a)||e.elementIsBlock)?a:e.isElementCommit&&!o.Dom.isBlock(a)?t(e,a,r):null}}});var o=i(23211),s=i(83653),n=i(73019)},20784:function(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>'},21132:function(t,e,i){"use strict";i.d(e,{applyMargin:function(){return n}});var o=i(80991),s=i(10808);function n(t,e,i,n,r,a,l){let c=[e,i,n,r],u=(t,e)=>{let i=(0,o.css)(a,t),n=(0,s.normalSizeToString)(e);i.toString()!==n.toString()&&(0,o.css)(a,t,n)};if(l)u("margin",e);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((e,i)=>{u(t[i],e)})}}},21917:function(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:function(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>'},22289:function(t,e,i){"use strict";function o(t){return"boolean"==typeof t}i.d(e,{isBoolean:function(){return o}})},22533:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return T}});var o=i(25045),s=i(31635),n=i(69364),r=i(49574),a=i(51676),l=i(91672),c=i(68616),u=i(23211),h=i(17312),d=i(91565),p=i(24497),f=i(62101),m=i(85932),g=i(86878),_=i(57821),v=i(28712),b=i(7909),y=i(71125),w=i(59400),S=i(15982),C=i(29434),E=i(51116),I=i(4274);class T extends w.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,b.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,l.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){let{control:t,state:e}=this,i=this.toolbar;if(!i)return;let o=t.value?.(i.jodit,this);void 0!==o&&(e.value=o),e.disabled=this.__calculateDisabledStatus(i),e.activated=this.__calculateActivatedStatus(i),t.update?.(i.jodit,this)}__calculateActivatedStatus(t){return(!(0,p.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,b.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,b.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,e=this.j.c.span(t),i=super.createContainer();i.classList.remove(t),i.classList.add(t+"__button"),Object.defineProperty(i,"component",{value:this}),e.appendChild(i);let o=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${C.Icon.get("chevron")}</span>`);return i.appendChild(o),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):u.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,b.attr)(this.trigger,"disabled",t),(0,b.attr)(this.button,"disabled",t),(0,b.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:e}=this;this.updateSize(),e.name=t.name;let{textIcons:i}=this.j.o;if(!0===i||(0,d.isFunction)(i)&&i(t.name)||t.template)e.icon=(0,w.UIButtonState)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{let i=t.icon||t.name;e.icon.name=C.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=(0,d.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();let{control:e}=this;if((0,b.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,d.isFunction)(e.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,_.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.popup(this.j,i,this.__closePopup,this);o?t.setContent((0,m.isString)(o)?this.j.c.fromHTML(o):o).open(()=>(0,g.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,_.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){let e=this.jodit.options.controls??{},i=t=>(0,S.findControlType)(t,e),o=t.list,s=this.openPopup(),n=(0,I.makeCollection)(this.j);s.parentElement=this,n.parentElement=s,n.mode="vertical";let r=(e,o)=>{let s;if((0,m.isString)(o)&&i(o))return{name:o.toString(),...i(o)};if((0,m.isString)(e)&&i(e))return{name:e.toString(),...i(e),..."object"==typeof o?o:{}};s=e,(0,f.isPlainObject)(s)&&"title"in s&&"value"in s&&(o=e.value,e=e.title);let{childTemplate:n}=t,r={name:e.toString(),template:n&&((t,e,i)=>n(t,e,i,this)),exec:t.childExec?(e,i,o)=>t.childExec?.(e,i,{...o,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,o]};return(0,m.isString)(o)&&(r.text=o),r};n.build((0,h.isArray)(o)?o.map(r):(0,y.keys)(o,!1).map(t=>r(t,o[t])),this.target),s.setContent(n).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&u.Dom.isNode(t.target)&&(u.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new E.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,this.trigger&&(0,b.attr)(this.trigger,"aria-expanded",!1))}onClick(t){let{control:e}=this;if((0,d.isFunction)(e.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.exec(this.j,i,{control:e,originalEvent:t,button:this});if(!1!==o&&!0!==o&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==o)return}return e.list?this.__openControlList(e):(0,d.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,y.call)((0,p.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()}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"trigger",void 0),(0,o._)(this,"openedPopup",void 0),this.control=e,this.target=i,this.state={...(0,w.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const s=this.getElm("button");(0,v.assert)(s,"Element button should exists"),this.button=s,Object.defineProperty(s,"component",{value:this,configurable:!0});const r=this.getElm("trigger");(0,v.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),e.mods&&Object.keys(e.mods).forEach(t=>{e.mods&&this.setMod(t,e.mods[t])})}}(0,s.__decorate)([a.cacheHTML],T.prototype,"createContainer",null),(0,s.__decorate)([(0,c.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),(0,s.__decorate)([(0,c.watch)("trigger:click")],T.prototype,"onTriggerClick",null),(0,s.__decorate)([r.autobind],T.prototype,"onOutsideClick",null),(0,s.__decorate)([r.autobind],T.prototype,"__closePopup",null),T=(0,s.__decorate)([l.component],T)},22852:function(t,e,i){"use strict";i.d(e,{stripTags:function(){return function t(e,i=document,u=null){let h=i.createElement("div");return(0,s.isString)(e)?h.innerHTML=e:h.appendChild(e),(0,r.$$)("*",h).forEach(e=>{let s=e.parentNode;if(!s)return;if(u&&o.Dom.isTag(e,u)){let s=e.nodeName.toLowerCase(),n=o.Dom.isTag(e,c)?`%%%jodit-single-${s}%%%`:`%%%jodit-${s}%%%${t(e.innerHTML,i,u)}%%%/jodit-${s}%%%`;o.Dom.before(e,i.createTextNode(n)),o.Dom.safeRemove(e);return}if(o.Dom.isTag(e,l))return void o.Dom.safeRemove(e);if(!o.Dom.isTag(e,a))return;let n=e.nextSibling;!(o.Dom.isText(n)&&/^\s/.test(n.nodeValue||""))&&n&&s.insertBefore(i.createTextNode(" "),n)}),(0,n.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,e,i,o)=>`<${e?"/":""}${o}>`)}}});var o=i(23211),s=i(85932),n=i(4040),r=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:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class u extends c.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,i=!1;for(;e;){if(e=function(t,e){let i=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(i,"ul")?i.appendChild(o):i=r.Dom.wrap(o,"ul",e.createInside),o=t}else break;while(o)return i}(e,t),this.isSuitableStart(e)){i||t.s.save(),i=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(e,o);e&&this.isSuitable(e);){let t=e.nextSibling;o.appendChild(e),e=t}o.normalize(),e=o}e=e&&e.nextSibling}i&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;let i=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(i,o),r.Dom.append(t.editor,i),t.s.isFocused()&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(...t){super(...t),(0,o._)(this,"isSuitableStart",t=>r.Dom.isText(t)&&(0,l.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)),(0,o._)(this,"isSuitable",t=>r.Dom.isText(t)||this.isNotWrapped(t)),(0,o._)(this,"isNotWrapped",t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude)))}}(0,s.__decorate)([n.autobind],u.prototype,"postProcessSetEditorValue",null),(0,s.__decorate)([n.autobind],u.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",u)},23112:function(t,e,i){"use strict";function o(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(e.length));for(let t=0;t<e.length;t+=1)o[t]=e.charCodeAt(t);return new Blob([o.buffer],{type:i})}i.d(e,{dataURItoBlob:function(){return o}})},23175:function(t,e,i){"use strict";i.d(e,{isMarker:function(){return s}});var o=i(23211);function s(t){return o.Dom.isMarker(t)}},23183:function(t,e,i){"use strict";i.d(e,{Elms:function(){return s}});var o=i(88475);class s{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,o.toArray)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},23211:function(t,e,i){"use strict";i.d(e,{Dom:function(){return v}});var o=i(81937),s=i(88475),n=i(17312),r=i(91565),a=i(46248),l=i(3213),c=i(85932),u=i(18303),h=i(4040),d=i(28712),p=i(7909),f=i(80991),m=i(36400),g=i(33201),_=i(71125);class v{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,e,i){let o,s=t;i.s.save();let n=!1;do n=!1,(o=s.nextSibling)&&!v.isBlock(o)&&!v.isTag(o,"br")&&(n=!0,s=o);while(n)return v.__wrapElements(e,i,t,s)}static __wrapElements(t,e,i,o){let s=(0,c.isString)(t)?e.createInside.element(t):t;i.parentNode&&i.parentNode.insertBefore(s,i);let n=i;for(;n&&(n=i.nextSibling,s.appendChild(i),i!==o&&n);)i=n;return e.s.restore(),s}static wrapInline(t,e,i){let o,s=t,n=t;i.s.save();let r=!1;do r=!1,(o=s.previousSibling)&&!v.isBlock(o)&&(r=!0,s=o);while(r)do r=!1,(o=n.nextSibling)&&!v.isBlock(o)&&(r=!0,n=o);while(r)return v.__wrapElements(e,i,s,n)}static wrap(t,e,i){let o=(0,c.isString)(e)?i.element(e):e;if(v.isNode(t)){if(!t.parentNode)throw(0,g.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){let e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);v.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&!(t!==o&&i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=o?.nextSibling}o=t}}static replace(t,e,i,o=!1,n=!1){let r;if((0,a.isHTML)(e)&&((0,d.assert)(i,"Need create instance for new tag"),e=i.fromHTML(e)),(0,c.isString)(e)?((0,d.assert)(i,"Need create instance for new tag"),r=i.element(e)):r=e,!n)for(;t.firstChild;)r.appendChild(t.firstChild);return o&&v.isElement(t)&&v.isElement(r)&&(0,s.toArray)(t.attributes).forEach(t=>{r.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(r,t),r}static isEmptyTextNode(t){return v.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return v.each(t,t=>v.isEmptyTextNode(t))}static isContentEditable(t,e){return v.isNode(t)&&!v.closest(t,t=>v.isElement(t)&&"false"===t.getAttribute("contenteditable"),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){let i;if(!t)return!0;i=(0,r.isFunction)(e)?e:t=>e.has(t.nodeName.toLowerCase());let s=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return v.isText(t)?s(t):!(v.isElement(t)&&i(t))&&v.each(t,t=>{if(v.isText(t)&&!s(t)||v.isElement(t)&&i(t))return!1})}static isNode(t){return!!(t&&(0,c.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.isFunction)(t.appendChild))}static isCell(t){return v.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return v.isTag(t,o.LIST_TAGS)}static isLeaf(t){return v.isTag(t,"li")}static isImage(t){return v.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&v.isNode(t)&&o.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){return!!v.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){return!!v.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!v.isNode(t))return!1;let e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return v.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&v.isHTMLElement(t)&&v.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 i=t?.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==t)o=i?.previousSibling}i=o}while(i)return null}static prev(t,e,i,o=!0){return v.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return v.find(t,e,i,!0,o)}static prevWithClass(t,e){return v.prev(t,t=>v.isElement(t)&&t.classList.contains(e),t.parentNode)}static nextWithClass(t,e){return v.next(t,t=>v.isElement(t)&&t.classList.contains(e),t.parentNode)}static find(t,e,i,o=!0,s=!0){let n=this.nextGen(t,i,o,s),r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}return null}static*nextGen(t,e,i=!0,o=!0){let s=[],n=t;do{let e=i?n.nextSibling:n.previousSibling;for(;e;)s.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,s,i,o),n=n.parentNode}while(n&&n!==e)return null}static each(t,e,i=!0){let o=this.eachGen(t,i),s=o.next();for(;!s.done;){if(!1===e(s.value))return!1;s=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){let s=e.pop();if(o){let t=i?s.lastChild:s.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==s&&(yield s)}}static findWithCurrent(t,e,i,o="nextSibling",s="firstChild"){let n=t;do{if(e(n))return n||null;if(s&&n&&n[s]){let t=v.findWithCurrent(n[s],e,n,o,s);if(t)return t}for(;n&&!n[o]&&n!==i;)n=n.parentNode;n&&n[o]&&n!==i&&(n=n[o])}while(n&&n!==i)return null}static findSibling(t,e=!0,i=t=>!v.isEmptyTextNode(t)){let o=v.sibling(t,e);for(;o&&!i(o);)o=v.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return v.findSibling(t,e,t=>!v.isEmptyTextNode(t)&&!!(!v.isText(t)||t.nodeValue?.length&&(0,h.trim)(t.nodeValue)))}static findNotEmptyNeighbor(t,e,i){return(0,_.call)(e?v.prev:v.next,t,t=>!!(t&&(!(v.isText(t)||v.isComment(t))||(0,h.trim)(t?.nodeValue||"").length)),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let s=t;if(!s)return null;do{if(e(s))return s;if(s===i||!s.parentNode)break;s=s.parentNode}while(s&&s!==i)return s===i&&o&&e(s)?s:null}static closest(t,e,i){let o,s=t=>t.toLowerCase();if((0,r.isFunction)(e))o=e;else if((0,n.isArray)(e)||(0,l.isSet)(e)){let t=(0,l.isSet)(e)?e:new Set(e.map(s));o=e=>!!(e&&t.has(s(e.nodeName)))}else o=t=>!!(t&&s(e)===s(t.nodeName));return v.up(t,o,i)}static furthest(t,e,i){let o=null,s=t?.parentElement;for(;s&&s!==i;)e(s)&&(o=s),s=s?.parentElement;return o}static appendChildFirst(t,e){let i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){let{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){let{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,n.isArray)(e)?e.forEach(e=>{this.append(t,e)}):t.appendChild(e)}static moveContent(t,e,i=!1,n=()=>!0){let r=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,s.toArray)(t.childNodes).filter(t=>!!n(t)||(v.safeRemove(t),!1)).forEach(t=>{r.appendChild(t)}),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:!!(e&&t&&this.up(e,e=>e===t,t,!0))}static safeRemove(...t){t.forEach(t=>v.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();let i=v.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&v.isTag(t.startContainer,o.INSEPARABLE_TAGS)?v.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach(t=>v.isText(t)&&!t.nodeValue&&v.safeRemove(t))}static hide(t){t&&((0,m.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let e=(0,m.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;let i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw TypeError("Dom.isTag does not support array");return i===e||o===e}static markTemporary(t,e){return e&&(0,p.attr)(t,e),(0,p.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!v.isElement(t)&&(v.isMarker(t)||"true"===(0,p.attr)(t,o.TEMP_ATTR))}static isMarker(t){return v.isNode(t)&&v.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,s.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},23283:function(t,e,i){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}i.d(e,{isNativeFunction:function(){return o}})},23422:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(38187);var h=i(54308);class d extends u.Plugin{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;let e=(0,c.getDataTransfer)(t),i=[e?.getData(n.TEXT_PLAIN),e?.getData(n.TEXT_HTML),e?.getData(n.TEXT_RTF)];for(let e of i)if((0,c.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){let e=(0,c.getDataTransfer)(t),i=e?.getData(n.TEXT_HTML)||e?.getData(n.TEXT_PLAIN);if(e&&i&&""!==(0,c.trim)(i)){let o=this.j.e.fire("processPaste",t,i,(0,h.getAllTypes)(e));void 0!==o&&(i=o),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(t,i,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(t=>t.html===e);if(i)return this.__insertByType(t,e,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,h.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(t,e,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,e,i){if(this.pasteStack.push({html:e,action:i}),(0,c.isString)(e))switch(this.j.buffer.set(n.CLIPBOARD_ID,e),i){case n.INSERT_CLEAR_HTML:e=(0,c.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,c.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case n.INSERT_AS_TEXT:e=(0,c.htmlspecialchars)(e);break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",i,e,t);"string"==typeof o&&(e=o)}}(0,h.pasteInsertHtml)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,i){if(i===n.TEXT_PLAIN+";"&&!(0,c.isHTML)(e))return(0,c.nl2br)(e)}constructor(...t){super(...t),(0,o._)(this,"pasteStack",new c.LimitedStack(20)),(0,o._)(this,"_isDialogOpened",!1)}}(0,s.__decorate)([r.autobind],d.prototype,"onPaste",null),(0,s.__decorate)([r.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",d)},23599:function(t,e,i){"use strict";i.d(e,{position:function(){return function t(e,i,s=!1){let n=e.getBoundingClientRect(),r=n.left,a=n.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(e)&&!s){let{left:e,top:o}=t(i.iframe,i,!0);r+=e,a+=o}return{left:Math.round(r),top:Math.round(a),width:Math.round(e.offsetWidth??n.width),height:Math.round(e.offsetHeight??n.height)}}}});var o=i(24497)},23602:function(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>'},24268:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(49989),r=i.n(n);s.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",r()),s.Config.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:r(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475:function(t,e,i){"use strict";i.d(e,{Storage:function(){return l},StorageKey:function(){return a}});var o=i(25045),s=i(57821),n=i(59807),r=i(9505);let a="Jodit_";class l{set(t,e){return this.provider.set((0,s.camelCase)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,s.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,s.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,s.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,e){let i;return"localStorage"===t||"sessionStorage"===t?(0,n.canUsePersistentStorage)(t)&&(i=new n.LocalStorageProvider(a+(e||""),t)):!0===t&&(0,n.canUsePersistentStorage)("localStorage")&&(i=new n.LocalStorageProvider(a+(e||""))),i||(i=new r.MemoryStorageProvider),new l(i,e)}constructor(t,e){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=t,this.prefix=a,e&&(this.prefix+=e)}}},24497:function(t,e,i){"use strict";i.d(e,{isJoditObject:function(){return s}});var o=i(91565);function s(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},24641:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=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 t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,t)):r.Dom.safeRemove(t)}constructor(t,e){super(t,{...e,type:"checkbox"}),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e)}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,s.__decorate)([(0,n.watch)("state.checked"),(0,n.hook)("ready")],l.prototype,"onChangeChecked",null),(0,s.__decorate)([(0,n.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,s.__decorate)([(0,n.watch)("state.switch"),(0,n.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,s.__decorate)([n.component],l)},24735:function(t,e,i){"use strict";i.d(e,{Async:function(){return m}});var o=i(25045),s=i(81937),n=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),p=i(28712),f=i(14228);class m{delay(t){return this.promise(e=>this.setTimeout(e,t))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(e)&&(e=0),(0,l.isNumber)(e)||(e=(o=e).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,n.setTimeout)(t,e,...i),r=o.label||s;return this.timers.set(r,s),this.__callbacks.set(r,t),s}updateTimeout(t,e){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let i=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,n.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,h.isString)(t))return this.clearLabel(t);(0,n.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,s=!1,l=[],h=(...e)=>{if(!s){o=0;let i=t(...e);if(s=!0,l.length){let t=()=>{l.forEach(t=>t()),l.length=0};(0,u.isPromise)(i)?i.finally(t):t()}}},d=(...r)=>{s=!1,e?(!o&&i&&h(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(e)?e():e),this.timers.set(t,o)):h(...r)};return(0,c.isPlainObject)(e)&&e.promisify?(...t)=>{let e=this.promise(t=>{l.push(t)}).catch(t=>{if((0,r.isAbortError)(t))return null;throw t});return d(...t),e}:d}microDebounce(t,e=!1){let i,o=!1,s=!0;return(...n)=>{if(i=n,o){s=!0;return}s=!0,e&&(s=!1,t(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&s&&t(...i)})}}throttle(t,e,i=!1){let o=null,s,n,r;return(...i)=>{(s=!0,r=i,e)?o||(n=()=>{s?(t(...r),s=!1,o=this.setTimeout(n,(0,a.isFunction)(e)?e():e),this.timers.set(n,o)):o=null})():t(...r)}}promise(t){let e=()=>{},i=new Promise((i,o)=>{e=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(e),t(i,o)});return!i.finally&&"u">typeof process&&!s.IS_ES_NEXT&&(i.finally=t=>(i.then(t).catch(t),i)),i.finally(()=>{this.promisesRejections.delete(e)}).catch(()=>null),i.rejectCallback=e,i}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)});let e={};return Promise.race([t,e]).then(t=>t===e?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,e={timeout:100}){let i=this.__requestIdleCallbackNative(t,e);return this.__requestsIdle.add(i),i}requestIdlePromise(t){return this.promise(e=>{let i=this.requestIdleCallback(()=>e(i),t)})}schedulerPostTask(t,e={delay:0,priority:"user-visible"}){let i=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...e,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,s)=>{let n=this.setTimeout(()=>{try{o(t())}catch(t){s(t)}this.__controllers.delete(i)},e.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(n),this.__controllers.delete(i),s((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let 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,n.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((t,e)=>{let i=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},e?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)})),(0,o._)(this,"isDestructed",!1)}}},24772:function(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>'},24968:function(t,e,i){"use strict";i.d(e,{derive:function(){return s}});var o=i(91565);function s(...t){return e=>{let i=e.prototype;for(let e=0;e<t.length;e++){let s=t[e],n=Object.getOwnPropertyNames(s.prototype);for(let t=0;t<n.length;t++){let e=n[t],r=Object.getOwnPropertyDescriptor(s.prototype,e);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return r.value.call(this,...t)}})}}}}},25045:function(t,e,i){"use strict";function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{_:function(){return o}})},25222:function(t,e,i){"use strict";i.d(e,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return s.IndexedDBProvider},LocalStorageProvider:function(){return n.LocalStorageProvider},MemoryStorageProvider:function(){return r.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return s.canUseIndexedDB},canUsePersistentStorage:function(){return n.canUsePersistentStorage},clearUseIndexedDBCache:function(){return s.clearUseIndexedDBCache}});var o=i(8006),s=i(91162),n=i(59807),r=i(9505),a=i(24475)},25501:function(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>'},25974:function(t,e,i){"use strict";i.d(e,{makeInstance:function(){return n}});var o=i(81937),s=i(91565);function n(t,e){try{try{return(0,s.isFunction)(e)?new e(t):e}catch(i){if((0,s.isFunction)(e)&&!e.prototype)return e(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},26106:function(t,e,i){"use strict";i.d(e,{checkJoinNeighbors:function(){return r}});var o=i(81937),s=i(23211),n=i(15200);function r(t,e,i){let n=e,r=n;for(;n&&!s.Dom.findNotEmptySibling(n,i)&&n.parentElement!==t.editor;)r=n=n.parentElement;if(s.Dom.isElement(r)&&s.Dom.isContentEditable(r,t.editor)){var l,c;let n,u,h,d=s.Dom.findNotEmptySibling(r,i);if(d&&(l=r,c=d,n=s.Dom.isTag(c,o.LIST_TAGS),u=s.Dom.isTag(l,o.LIST_TAGS),h=(t,e)=>e?t.firstElementChild:t.lastElementChild,(u?(c=t.createInside.element(t.o.enterBlock),s.Dom.before(l,c),a(t,h(l,i),c,i)):!!c&&!!n&&!u&&a(t,l,h(c,!i),i))||a(t,r,d,i)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,i,o){if(e&&s.Dom.isElement(i)){s.Dom.moveContent(e,i,!o,(0,n.getMoveFilter)(t));let r=e;for(;r&&r!==t.editor&&s.Dom.isEmpty(r);){let t=r.parentElement;s.Dom.safeRemove(r),r=t}return!0}return!1}},26136:function(t,e,i){"use strict";i.d(e,{browser:function(){return o}});let o=t=>{let e=navigator.userAgent.toLowerCase(),i=/(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?i[2]:"webkit"===t?"chrome"===i[1]||"webkit"===i[1]:"ff"===t?"firefox"===i[1]:"msie"===t?"trident"===i[1]||"msie"===i[1]:i[1]===t}},26633:function(t,e,i){"use strict";i.d(e,{readAlign:function(){return s}});var o=i(80991);function s(t,e){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?e.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?e.align="center":e.align=""}},27137:function(t,e,i){"use strict";i.d(e,{UIImagePropertiesForm:function(){return p}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65946),l=i(63468),c=i(29434),u=i(15753),h=i(29596),d=i(17306);class p extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let e=super.getElm(t);if(e)return e;for(let e of this.elements){let i=e.getElm(t);if(i)return i}return null}render(){return`<form>
140
140
  <div class="jodit-grid jodit-grid_xs-column">
141
141
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
142
142
  <div class="&__view-box">
@@ -250,8 +250,8 @@
250
250
  <div class="${e("resizer")}">${f.Icon.get("resize_handler")}</div>
251
251
  </div>
252
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,d.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");const s=this.getElm("resizer");(0,p.assert)(null!=s,"Resizer element does not exist");const n=this.getElm("header-title");(0,p.assert)(null!=n,"header-title element does not exist");const r=this.getElm("content");(0,p.assert)(null!=r,"Content element does not exist");const a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");const u=this.getElm("header-toolbar");(0,p.assert)(null!=u,"header-toolbar element does not exist"),this.dialog=i,this.resizer=s,this.dialogbox_header=n,this.dialogbox_content=r,this.dialogbox_footer=a,this.dialogbox_toolbar=u,(0,d.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const g=c.pluginSystem.get("fullsize");if((0,h.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,p.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}}(0,o._)(v,"defaultOptions",{...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,s.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,s.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,s.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"close",null),(0,s.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,s.__decorate)([a.component],v)},77036:function(t,e,i){"use strict";i.d(e,{persistent:function(){return n}});var o=i(69364),s=i(31534);function n(t,e){t.hookStatus(o.STATUSES.ready,t=>{let i=(0,s.isViewObject)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,n=t[e];Object.defineProperty(t,e,{get:()=>i.storage.get(o)??n,set(t){i.storage.set(o,t)}})})}},77213:function(t,e,i){"use strict";i.d(e,{ctrlKey:function(){return o}});let o=t=>{if("u">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}},77227:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(91115),r=i.n(n),a=i(1916),l=i.n(a);s.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",l()),o.Icon.set("ai-commands",r()),s.Config.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:i}){t.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},s.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,i){t.e.fire("generateAiAssistantForm.ai-assistant")}}},77367:function(t,e,i){"use strict";i.d(e,{normalizeColor:function(){return n}});var o=i(93387),s=i(4040);let n=t=>{let e=["#"],i=(0,o.colorToHex)(t);if(!i)return!1;if(3===(i=(i=(0,s.trim)(i.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483:function(t,e,i){"use strict";i.d(e,{ConfigDeepFlatten:function(){return function t(e){return(0,c.keys)(e,!1).reduce((i,o)=>(i[o]=(0,s.isPlainObject)(e[o])?t(e[o]):e[o],i),{})}},ConfigFlatten:function(){return u},ConfigProto:function(){return function t(e,i,c=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;let u=a.Config.defaultOptions;if((0,n.isString)(e.preset)){if(void 0!==u.presets[e.preset]){let t=u.presets[e.preset];Object.keys(t).forEach(i=>{(0,r.isVoid)(e[i])&&(e[i]=t[i])})}delete e.preset}let h={};return Object.keys(e).forEach(n=>{let r=e[n],a=i?i[n]:null;if((0,s.isPlainObject)(r)&&(0,s.isPlainObject)(a)&&!(0,l.isAtom)(r)){h[n]=t(r,a,c+1);return}if(0!==c&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){h[n]=[...r,...a.slice(r.length)];return}h[n]=r}),Object.setPrototypeOf(h,i),h}}});var o=i(17312),s=i(62101),n=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(71125);function u(t){return(0,c.keys)(t,!1).reduce((e,i)=>(e[i]=t[i],e),{})}},77911:function(t,e,i){"use strict";i.d(e,{ajaxInstances:function(){return r},send:function(){return a}});var o=i(65946),s=i(73714),n=i(89446);let r=new WeakMap;function a(t,e){let i=(0,n.buildData)(t,e),a=e=>{t.j.progressbar.show().progress(e),e>=100&&t.j.progressbar.hide()},l=(e,i)=>{let n=new s.Ajax({xhr(){let e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(i(10),e.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;i(e*=100)}},!1)):i(100),e},method:t.o.method||"POST",data:e,url:(0,o.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}),a=r.get(t);return a||(a=new Set,r.set(t,a)),a.add(n),t.j.e.one("beforeDestruct",n.destruct),n.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{n.destruct(),a?.delete(n)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(l=t.o.customUploadFunction),(0,o.isPromise)(i))?i.then(t=>l(t,a)).catch(e=>{t.o.error.call(t,e)}):l(i,a)}},78462:function(t,e,i){"use strict";i.d(e,{states:function(){return l},transactions:function(){return c}});var o=i(81937),s=i(23211),n=i(28712),r=i(51640),a=i(98394);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(t){let{element:e,jodit:i,style:o,mode:n,collapsed:c}=t;if((0,r.isInsideInvisibleElement)(e,i.editor)||!c&&s.Dom.isEmptyContent(e))return{...t,next:l.END};let u=(0,r.getSuitParent)(o,e,i.editor)||(0,r.getSuitChild)(o,e);if(u)return{...t,next:l.ELEMENT,element:u};let h=(0,r.suitableClosest)(o,e,i.editor);return o.elementIsList&&s.Dom.isList(h)?{...t,next:l.LIST}:h?{...t,next:l.EXTRACT}:{...t,next:n!==a.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(t){let{element:e,jodit:i,mode:n}=t;if(n!==a.INITIAL&&n!==a.UNWRAP&&n!==a.REPLACE)return{...t,next:l.END};let r=s.Dom.closest(e,"li",i.editor);return r&&s.Dom.closest(e,o.LIST_TAGS,i.editor)?{...t,element:r,next:l.TOGGLE_LIST}:{...t,next:l.END}}},[l.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,r.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:l.END})},[l.EXTRACT]:{exec(t){let{element:e,jodit:i,style:o}=t,a=(0,r.suitableClosest)(o,e,i.editor);return((0,n.assert)(a,"This place should have an element"),!o.elementIsBlock&&o.options.attributes?.style&&s.Dom.isBlock(a))?{...t,next:l.WRAP}:(o.elementIsBlock||(0,r.extractSelectedPart)(a,e,i),{...t,element:a,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(t){let{element:e,style:i}=t;return(0,r.unwrapChildren)(i,e)?{...t,mode:a.UNWRAP,next:l.END}:{...t,next:l.WRAP}}},[l.WRAP]:{exec(t){let{element:e,jodit:i,style:o}=t,s=(0,r.wrap)(o,e,i);return{...t,next:o.elementIsList?l.END:l.CHANGE,mode:a.WRAP,element:s}}},[l.ELEMENT]:{exec(t){let{style:e,element:i,jodit:o}=t;return(0,r.toggleAttributes)(e,i,o,a.INITIAL,!0)!==a.INITIAL?{...t,next:l.CHANGE}:s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,next:l.END}}},[l.CHANGE]:{exec(t){let{style:e,element:i,jodit:o,mode:n}=t,c=(0,r.toggleAttributes)(e,i,o,t.mode);return n!==a.WRAP&&c===a.UNSET&&!i.attributes.length&&s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,mode:c,next:l.END}}},[l.UNWRAP]:{exec:t=>t.element.attributes.length&&s.Dom.isTag(t.element,t.style.element)?{...t,next:l.REPLACE_DEFAULT}:(s.Dom.unwrap(t.element),{...t,mode:a.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:t=>(s.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:a.REPLACE,next:l.END})},[l.END]:{exec:t=>t}}},78690:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(5266);n.Config.prototype.autofocus=!1,n.Config.prototype.cursorAfterAutofocus="end",n.Config.prototype.saveSelectionOnBlur=!0,s.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.s.restore()});let e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){let e=o.Dom.last(t.editor,t=>o.Dom.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&&o.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))})})})},78982:function(t,e,i){"use strict";i.d(e,{asArray:function(){return s}});var o=i(17312);let s=t=>(0,o.isArray)(t)?t:[t]},79310:function(t,e,i){"use strict";i.d(e,{readLink:function(){return n}});var o=i(23211),s=i(7909);function n(t,e,i){let n=o.Dom.closest(t.sourceImage,"a",e.editor);n?(i.imageLink=(0,s.attr)(n,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,s.attr)(n,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},79821:function(t,e,i){"use strict";i.d(e,{Create:function(){return o.Create}});var o=i(76517)},79947:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return n},setTimeout:function(){return s}});var o=i(81937);function s(t,e,...i){return e?o.globalWindow.setTimeout(t,e,...i):(t.call(null,...i),0)}function n(t){o.globalWindow.clearTimeout(t)}},80202:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},80251:function(t,e,i){"use strict";i.d(e,{Component:function(){return c}});var o=i(25045),s=i(91231),n=i(69364),r=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(t,e,i){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),e&&(o.push("_",e),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,a.get)(t,e||this)}get isReady(){return this.componentStatus===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.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(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);let o=l.get(this),s=o?.[t];s&&s.length&&s.forEach(t=>t(e))}hookStatus(t,e){let i=l.get(this);i||(i={},l.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}constructor(){(0,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new s.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",n.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",n.STATUSES)},80347:function(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>'},80512:function(t,e,i){"use strict";i.d(e,{Dlgs:function(){return a}});var o=i(28077),s=i(28686),n=i(71125),r=i(37333);class a{dlg(t){let e=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new r.Dialog({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.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(t,e,i){return t=l(t,this),e=l(e,this),r.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,e,i)}prompt(t,e,i,o,s){return t=l(t,this),e=l(e,this),o=l(o,this),r.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o,s)}alert(t,e,i,o){return t=l(t,this),e=l(e,this),r.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o)}}function l(t,e){return(0,s.isString)(t)&&!(0,s.isHTML)(t)&&(t=e.i18n(t)),t}},80515:function(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>'},80538:function(t,e,i){"use strict";var o=i(81937),s=i(29434),n=i(5266),r=i(24772),a=i.n(r),l=i(66547),c=i.n(l);n.Config.prototype.fullsize=!1,n.Config.prototype.globalFullSize=!0,s.Icon.set("fullsize",a()).set("shrink",c()),n.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){let i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},80840:function(t,e,i){"use strict";i.d(e,{wait:function(){return r}});var o=i(69364),s=i(91565),n=i(33201);function r(t){return(e,i)=>{let r=e[i];if(!(0,s.isFunction)(r))throw(0,n.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:o}=e,s=e[i],n=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...r){o.clearTimeout(n),t(e)?s.apply(e,r):n=o.setTimeout(()=>i(...r),10)}})})}}},80951:function(t,e,i){"use strict";i.d(e,{checkJoinTwoLists:function(){return r}});var o=i(23211),s=i(71125),n=i(15200);function r(t,e,i){let r=o.Dom.findSibling(e,i),a=o.Dom.findSibling(e,!i);if(!o.Dom.closest(e,o.Dom.isElement,t.editor)&&o.Dom.isList(r)&&o.Dom.isList(a)&&o.Dom.isTag(r.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=t.s,u=r.lastElementChild,h=a.firstElementChild;return(0,s.call)(i?o.Dom.prepend:o.Dom.append,h,e),o.Dom.moveContent(a,r,!i,(0,n.getMoveFilter)(t)),o.Dom.safeRemove(a),(0,s.call)(i?o.Dom.append:o.Dom.prepend,u,e),(0,s.call)(i?l:c,e),!0}return!1}},80991:function(t,e,i){"use strict";i.d(e,{clearCenterAlign:function(){return c},css:function(){return l}});var o=i(22289),s=i(62101),n=i(19147),r=i(57821),a=i(74264);function l(t,e,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,s.isPlainObject)(e)||void 0!==i){let o=(t,e,i)=>{void 0!==(i=(0,n.normalizeCssNumericValue)(e,i))&&(null==i||l(t,e,!0)!==(0,n.normalizeCssValue)(e,i))&&(t.style[e]=i)};if((0,s.isPlainObject)(e)){let i=Object.keys(e);for(let s=0;s<i.length;s+=1)o(t,(0,r.camelCase)(i[s]),e[i[s]])}else o(t,(0,r.camelCase)(e),i);return""}let u=(0,a.kebabCase)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),p=t.style[e],f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(t).getPropertyValue(u)),n.NUMBER_FIELDS_REG.test(e)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,n.normalizeCssValue)(e,f)}let c=t=>{"block"===l(t,"display")&&l(t,"display","");let{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},81008:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(51457),r=i.n(n),a=i(23602),l=i.n(a),c=i(86899),u=i.n(c),h=i(95320),d=i.n(h);s.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},s.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},s.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r()).set("cut",l()).set("paste",u()).set("select-all",d())},81144:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946);i(17326),s.pluginSystem.add("iframe",function(t){let e=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,i)=>{let o=t||i.iframe.contentWindow.document;if(o.open(),o.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>'),o.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach(t=>{let e=o.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),o.head&&o.head.appendChild(e)}),e.iframeStyle){let t=o.createElement("style");t.innerHTML=e.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!e.iframe)return;let i=t.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",e.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=e.iframeSandbox&&i.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(i),t.iframe=i;let s=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,n.callPromise)(s,()=>{if(!t.iframe)return!1;let i=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let s=e.editHTMLDocumentMode,r=()=>{(0,n.attr)(i.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},a=t=>{let e=/<body.*<\/body>/im,i="{%%BODY%%}",o=e.exec(t);return o&&(t=t.replace(e,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(s){let 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",()=>a(t.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?a(i.documentElement.outerHTML)!==a(e)&&(i.open(),i.write(t.o.iframeDoctype+a(e)),i.close(),t.editor=i.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=e,!0),{top:!0})}if(t.editor=i.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let o=t.async.throttle((...i)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===e.height){let e=t.ew.getComputedStyle(t.editor),i=parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10);(0,n.css)(t.iframe,"height",t.editor.offsetHeight+i)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let e=new ResizeObserver(o);e.observe(i.body),t.e.on("beforeDestruct",()=>{e.disconnect()})}}return i.documentElement&&t.e.on(i.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===i.body&&t.s.setCursorIn(i.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events?.fire(t.ow,e)}),!1})})})},81488:function(t,e,i){"use strict";i.d(e,{inputValidators:function(){return o},selectValidators:function(){return s}});var o=i(48776),s=i(6490)},81576:function(t,e,i){"use strict";i.d(e,{generateCriticalCSS:function(){return n}});var o=i(25045),s=i(88475);function n(t){let e=(t,e=t.ownerDocument.styleSheets)=>(0,s.toArray)(e).map(t=>{try{return(0,s.toArray)(t.cssRules)}catch{}return[]}).flat().filter(e=>{try{return!!(e&&t.matches(e.selectorText))}catch{}return!1});class i{generateCSS(){let t="";for(let e in this.css)if(!/:not\(/.test(e)){for(let i in t+=e+" { ",this.css[e])t+=i+": "+this.css[e][i]+"; ";t+=`}
253
- `}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(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>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return z},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return R},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.9.19",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\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="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,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",P="Enter",A="Escape",N="Alt",M="ArrowLeft",R="ArrowUp",z="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,R,B,z,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">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",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(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>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(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>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getComponentClass:function(){return n.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return f}});var o=i(25045),s=i(81937),n=i(42689),r=i(32328),a=i(17312),l=i(52433),c=i(85932),u=i(55810),h=i(3050),d=i(25974),p=i(86189);class f{get size(){return this.__items.size}add(t,e){this.__items.set((0,p.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,f={},m=new Set;t.__plugins=f;let g=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void m.add(o)}e=!0;let l=(0,d.makeInstance)(t,s);if(!l){n.set(o,null),m.delete(o);return}(0,u.init)(t,o,s,l,n,m,this.opts.getContainer),f[o]=l}),e&&(t.e.fire("updatePlugins"),g())};e&&e.length&&(0,h.loadExtras)(this.__items,t,e,g),g(),t.e.on("beforeDestruct",()=>{Object.keys(f).forEach(e=>{let i=f[e];(0,l.isDestructable)(i)&&i.destruct(t),delete f[e]}),delete t.__plugins}),s.IS_PROD||m.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(t){(0,o._)(this,"opts",void 0),(0,o._)(this,"__items",void 0),this.opts=t,this.__items=new Map}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=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(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(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,o._)(this,"calc",this.j.async.throttle(()=>{let 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,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.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,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(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>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(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>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(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>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,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(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];if(t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)){let e=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(e.length?t.filter(t=>{let i=(0,l.isString)(t)?t:t.name;return!e.includes(i??"")}):t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container}this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.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){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
254
- `!==i&&!e.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,e,i)=>{this.showPopup(e,i||((0,l.isString)(t)?t:t.nodeName),(0,l.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&&u.UIElement.closestElement(t.target,h.Popup))return;let{snapRange:e}=this,{range:i}=this.j.s;(!e||i.collapsed||i.startContainer!==e.startContainer||i.startOffset!==e.startOffset||i.endContainer!==e.endContainer||i.endOffset!==e.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",e=this.j.s.sel,i=this.j.s.range;if(e?.isCollapsed||this.isSelectedTarget(i)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),t)}isSelectedTarget(t){let e=t.startContainer;return r.Dom.isElement(e)&&e===t.endContainer&&r.Dom.isTag(e.childNodes[t.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,l.camelCase)("click_"+t)).concat(t.map(t=>(0,l.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:e}=this.j.s;return e.getBoundingClientRect()},"toolbar")}constructor(...t){super(...t),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t)))}}(0,o._)(p,"requires",["select"]),(0,s.__decorate)([n.cache],p.prototype,"popup",null),(0,s.__decorate)([n.cache],p.prototype,"toolbar",null),(0,s.__decorate)([n.autobind],p.prototype,"onClick",null),(0,s.__decorate)([(0,n.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),(0,s.__decorate)([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],p.prototype,"hidePopup",null),(0,s.__decorate)([(0,n.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionStart",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionEnd",null),(0,s.__decorate)([(0,n.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,s.__decorate)([n.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},89081:function(t,e,i){"use strict";i.d(e,{unwrapChildren:function(){return a}});var o=i(23211),s=i(93640),n=i(9703),r=i(73019);function a(t,e){let i,a=[],l=[],c=t.options.attributes?.style;if(e.firstChild){let u=o.Dom.eachGen(e),h=u.next();for(;!h.done;){let e=h.value;(0,r.isSuitElement)(t,e,!0)&&(!c||(0,n.hasSameStyleKeys)(e,c))?(void 0===i&&(i=!0),a.push(e)):c&&(0,r.isSameStyleChild)(t,e)?(void 0===i&&(i=!1),l.push(()=>{(0,s.css)(e,Object.keys(c).reduce((t,e)=>(t[e]=null,t),{})),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null),(0,s.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||a.push(e)})):o.Dom.isEmptyTextNode(e)||void 0!==i||(i=!1),h=u.next()}}return l.forEach(t=>t()),a.forEach(o.Dom.unwrap),!!i}},89097:function(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>'},89308:function(t,e,i){"use strict";i.d(e,{get:function(){return n}});var o=i(85932),s=i(18303);function n(t,e){if(!(0,o.isString)(t)||!t.length)return null;let i=t.split("."),n=e;try{for(let t of i){if((0,s.isVoid)(n[t]))return null;n=n[t]}}catch{return null}return(0,s.isVoid)(n)?null:n}},89317:function(t,e,i){"use strict";var o=i(17312),s=i(41324),n=i.n(s),r=i(63837),a=i(53414);let l={};l={ar:n(),cs_cz:n(),de:n(),en:r,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()};let c=t=>t?t.default||t:{},u={};(0,o.isArray)(c(a))&&c(a).forEach((t,e)=>{u[e]=t}),Object.keys(l).forEach(t=>{let e=c(l[t]);(0,o.isArray)(e)?(l[t]={},e.forEach((e,i)=>{l[t][u[i]]=e})):l[t]=e}),e.default=l},89446:function(t,e,i){"use strict";i.d(e,{buildData:function(){return s}});var o=i(65946);function s(t,e){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);let i=t.ow.FormData;if(void 0!==i){if(e instanceof i||(0,o.isString)(e))return e;let t=new i;return Object.keys(e).forEach(i=>{t.append(i,e[i])}),t}return e}},89636:function(t,e,i){"use strict";i.d(e,{TabsWidget:function(){return l}});var o=i(16964),s=i(23211),n=i(91565),r=i(7909),a=i(4099);let l=(t,e,i)=>{let l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,r.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},d=[],p="";l.appendChild(u),l.appendChild(c);let f=t=>{h[t]&&(d.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach(({icon:l,name:m,content:g})=>{let _=t.c.div("jodit-tab");(0,r.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(t,l||m,m);v.state.role="tab",t.e.on(v.container,"pointerdown",t=>t.preventDefault()),p||(p=m),u.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.isFunction)(g)?_.classList.add("jodit-tab_empty"):_.appendChild(o.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(_),v.onAction(()=>(f(m),(0,n.isFunction)(g)&&!s.Dom.isElement(g)&&g.call(t),i&&(i.activeTab=m),!1)),h[m]={button:v,tab:_}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"}),f(i&&i.activeTab&&h[i.activeTab]?i.activeTab:p),i){let t=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,f(e)}})}return l}},89817:function(t,e,i){"use strict";i.d(e,{moveNodeInsideStart:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i){let n=s.Dom.findSibling(e,i),r=s.Dom.findSibling(e,!i);for(;s.Dom.isElement(n)&&!s.Dom.isTag(n,o.INSEPARABLE_TAGS)&&s.Dom.isContentEditable(n,t.editor)&&(!r||!s.Dom.closest(e,s.Dom.isElement,t.editor));)i||!n.firstChild?n.appendChild(e):s.Dom.before(n.firstChild,e),n=s.Dom.sibling(e,i),r=s.Dom.sibling(e,!i)}},89827:function(t,e,i){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}i.d(e,{checkNotCollapsed:function(){return o}})},89873:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(70235),r=i(17849),a=i(466),l=i(75711),c=i(59399),u=i(38681),h=i.n(u),d=i(64637),p=i.n(d),f=i(94190),m=i.n(f),g=i(51957),_=i.n(g),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineForSelection=!1,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",p()).set("merge",m()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),s.Config.prototype.popup={a:n.default,img:l.default,cells:r.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
253
+ `}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(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>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return z},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return R},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.10.2",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\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="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,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",P="Enter",A="Escape",N="Alt",M="ArrowLeft",R="ArrowUp",z="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,R,B,z,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">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",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(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>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(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>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getComponentClass:function(){return n.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return f}});var o=i(25045),s=i(81937),n=i(42689),r=i(32328),a=i(17312),l=i(52433),c=i(85932),u=i(55810),h=i(3050),d=i(25974),p=i(86189);class f{get size(){return this.__items.size}add(t,e){this.__items.set((0,p.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,f={},m=new Set;t.__plugins=f;let g=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void m.add(o)}e=!0;let l=(0,d.makeInstance)(t,s);if(!l){n.set(o,null),m.delete(o);return}(0,u.init)(t,o,s,l,n,m,this.opts.getContainer),f[o]=l}),e&&(t.e.fire("updatePlugins"),g())};e&&e.length&&(0,h.loadExtras)(this.__items,t,e,g),g(),t.e.on("beforeDestruct",()=>{Object.keys(f).forEach(e=>{let i=f[e];(0,l.isDestructable)(i)&&i.destruct(t),delete f[e]}),delete t.__plugins}),s.IS_PROD||m.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(t){(0,o._)(this,"opts",void 0),(0,o._)(this,"__items",void 0),this.opts=t,this.__items=new Map}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=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(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(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,o._)(this,"calc",this.j.async.throttle(()=>{let 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,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.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,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(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>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(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>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(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>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,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(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];if(t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)){let e=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(e.length?t.filter(t=>{let i=(0,l.isString)(t)?t:t.name;return!e.includes(i??"")}):t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container}this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.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){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
254
+ `!==i&&!e.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,e,i)=>{this.showPopup(e,i||((0,l.isString)(t)?t:t.nodeName),(0,l.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&&u.UIElement.closestElement(t.target,h.Popup))return;let{snapRange:e}=this,{range:i}=this.j.s;(!e||i.collapsed||i.startContainer!==e.startContainer||i.startOffset!==e.startOffset||i.endContainer!==e.endContainer||i.endOffset!==e.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",e=this.j.s.sel,i=this.j.s.range;if(e?.isCollapsed||this.isSelectedTarget(i)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),t)}isSelectedTarget(t){let e=t.startContainer;return r.Dom.isElement(e)&&e===t.endContainer&&r.Dom.isTag(e.childNodes[t.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,l.camelCase)("click_"+t)).concat(t.map(t=>(0,l.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:e}=this.j.s;return e.getBoundingClientRect()},"toolbar")}constructor(...t){super(...t),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t)))}}(0,o._)(p,"requires",["select"]),(0,s.__decorate)([n.cache],p.prototype,"popup",null),(0,s.__decorate)([n.cache],p.prototype,"toolbar",null),(0,s.__decorate)([n.autobind],p.prototype,"onClick",null),(0,s.__decorate)([(0,n.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),(0,s.__decorate)([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],p.prototype,"hidePopup",null),(0,s.__decorate)([(0,n.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionStart",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionEnd",null),(0,s.__decorate)([(0,n.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,s.__decorate)([n.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},89081:function(t,e,i){"use strict";i.d(e,{unwrapChildren:function(){return a}});var o=i(23211),s=i(93640),n=i(9703),r=i(73019);function a(t,e){let i,a=[],l=[],c=t.options.attributes?.style;if(e.firstChild){let u=o.Dom.eachGen(e),h=u.next();for(;!h.done;){let e=h.value;(0,r.isSuitElement)(t,e,!0)&&(!c||(0,n.hasSameStyleKeys)(e,c))?(void 0===i&&(i=!0),a.push(e)):c&&(0,r.isSameStyleChild)(t,e)?(void 0===i&&(i=!1),l.push(()=>{(0,s.css)(e,Object.keys(c).reduce((t,e)=>(t[e]=null,t),{})),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null),(0,s.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||a.push(e)})):o.Dom.isEmptyTextNode(e)||void 0!==i||(i=!1),h=u.next()}}return l.forEach(t=>t()),a.forEach(o.Dom.unwrap),!!i}},89097:function(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>'},89308:function(t,e,i){"use strict";i.d(e,{get:function(){return n}});var o=i(85932),s=i(18303);function n(t,e){if(!(0,o.isString)(t)||!t.length)return null;let i=t.split("."),n=e;try{for(let t of i){if((0,s.isVoid)(n[t]))return null;n=n[t]}}catch{return null}return(0,s.isVoid)(n)?null:n}},89317:function(t,e,i){"use strict";var o=i(17312),s=i(41324),n=i.n(s),r=i(63837),a=i(53414);let l={};l={ar:n(),cs_cz:n(),de:n(),en:r,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()};let c=t=>t?t.default||t:{},u={};(0,o.isArray)(c(a))&&c(a).forEach((t,e)=>{u[e]=t}),Object.keys(l).forEach(t=>{let e=c(l[t]);(0,o.isArray)(e)?(l[t]={},e.forEach((e,i)=>{l[t][u[i]]=e})):l[t]=e}),e.default=l},89446:function(t,e,i){"use strict";i.d(e,{buildData:function(){return s}});var o=i(65946);function s(t,e){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);let i=t.ow.FormData;if(void 0!==i){if(e instanceof i||(0,o.isString)(e))return e;let t=new i;return Object.keys(e).forEach(i=>{t.append(i,e[i])}),t}return e}},89636:function(t,e,i){"use strict";i.d(e,{TabsWidget:function(){return l}});var o=i(16964),s=i(23211),n=i(91565),r=i(7909),a=i(4099);let l=(t,e,i)=>{let l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,r.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},d=[],p="";l.appendChild(u),l.appendChild(c);let f=t=>{h[t]&&(d.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach(({icon:l,name:m,content:g})=>{let _=t.c.div("jodit-tab");(0,r.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(t,l||m,m);v.state.role="tab",t.e.on(v.container,"pointerdown",t=>t.preventDefault()),p||(p=m),u.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.isFunction)(g)?_.classList.add("jodit-tab_empty"):_.appendChild(o.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(_),v.onAction(()=>(f(m),(0,n.isFunction)(g)&&!s.Dom.isElement(g)&&g.call(t),i&&(i.activeTab=m),!1)),h[m]={button:v,tab:_}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"}),f(i&&i.activeTab&&h[i.activeTab]?i.activeTab:p),i){let t=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,f(e)}})}return l}},89817:function(t,e,i){"use strict";i.d(e,{moveNodeInsideStart:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i){let n=s.Dom.findSibling(e,i),r=s.Dom.findSibling(e,!i);for(;s.Dom.isElement(n)&&!s.Dom.isTag(n,o.INSEPARABLE_TAGS)&&s.Dom.isContentEditable(n,t.editor)&&(!r||!s.Dom.closest(e,s.Dom.isElement,t.editor));)i||!n.firstChild?n.appendChild(e):s.Dom.before(n.firstChild,e),n=s.Dom.sibling(e,i),r=s.Dom.sibling(e,!i)}},89827:function(t,e,i){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}i.d(e,{checkNotCollapsed:function(){return o}})},89873:function(t,e,i){"use strict";var o=i(28686),s=i(29434),n=i(5266),r=i(70235),a=i(17849),l=i(466),c=i(75711),u=i(59399),h=i(38681),d=i.n(h),p=i(64637),f=i.n(p),m=i(94190),g=i.n(m),_=i(51957),v=i.n(_),b=i(71940),y=i.n(b),w=i(43218),S=i.n(w),C=i(48007),E=i.n(C);n.Config.prototype.toolbarInline=!0,n.Config.prototype.toolbarInlineForSelection=!1,n.Config.prototype.toolbarInlineDisableFor=[],n.Config.prototype.toolbarInlineDisabledButtons=["source"],s.Icon.set("addcolumn",d()).set("addrow",f()).set("merge",g()).set("th",S()).set("splitg",v()).set("splitv",y()).set("th-list",E()),a.default.forEach(t=>{(0,o.isString)(t)||!t.name||n.Config.prototype.controls[t.name]||(n.Config.prototype.controls[t.name]=t)}),n.Config.prototype.popup={a:r.default,img:c.default,cells:a.default,toolbar:u.default,jodit:l.default,iframe:l.default,"jodit-media":l.default,selection:["bold","underline","italic","ul","ol",`
255
255
  `,"outdent","indent","fontsize","brush","cut",`
256
256
  `,"paragraph","link","align","dots"]}},90204:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class u extends l.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),(0,o._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,r.extendLang)(c)}}(0,s.__decorate)([n.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},90826:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(15753),c=i(64831),u=i.n(c);r.Icon.set("image",u()),a.Config.prototype.controls.image={popup(t,e,i){let s=null;return e&&!o.Dom.isText(e)&&o.Dom.isHTMLElement(e)&&(o.Dom.isTag(e,"img")||(0,n.$$)("img",e).length)&&(s=o.Dom.isTag(e,"img")?e:(0,n.$$)("img",e)[0]),t.s.save(),(0,l.FileSelectorWidget)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach(i=>t.s.insertImage(e.baseurl+i,null,t.o.imageDefaultWidth)),i()},upload:!0,async url(e,o){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);let n=s||t.createInside.element("img");n.setAttribute("src",e),n.setAttribute("alt",o),s||await t.s.insertImage(n,null,t.o.imageDefaultWidth),i()}},s,i)},tags:["img"],tooltip:"Insert Image"},s.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},90886:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(18855),u=i(59400);i(34689);var h=i(27137),d=i(28771),p=i(670),f=i(47744),m=i(71552);class g extends c.Plugin{get form(){return new h.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,p.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,m.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()}),i.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),e.close()}),i.cancel.onAction(()=>{e.close()}),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[i.cancel,i.remove],i.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,l.markOwner)(t,e.container),e}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,e)=>(0,f.readValuesFromImage)(this.j,this.state).then(t,e)).catch(t=>{(0,l.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){let e=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",i=>{let o=i.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;e.state.sourceImage=o,e.state.image=o.cloneNode(!0),t.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),e.open())}else i.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:e}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,l.isNumeric)(e.imageWidth)){let t=parseFloat(e.imageWidth.toString());e.imageHeight=Math.round(t/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,n.cached)(this,"__buttons")??{}).forEach(t=>t.destruct()),(0,n.cached)(this,"dialog")?.destruct(),(0,n.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(...t){super(...t),(0,o._)(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:""}}),(0,o._)(this,"activeTabState",{activeTab:"Image"})}}(0,s.__decorate)([n.cache],g.prototype,"form",null),(0,s.__decorate)([n.cache],g.prototype,"dialog",null),(0,s.__decorate)([n.cache],g.prototype,"__buttons",null),(0,s.__decorate)([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},91017:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},91115:function(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>'},91162:function(t,e,i){"use strict";i.d(e,{IndexedDBProvider:function(){return n},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=i(25045),s=i(81937);class n{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,e)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{e(i.error)},i.onsuccess=()=>{t(i.result)},i.onupgradeneeded=t=>{let e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,e){try{let i=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=e(i);return new Promise((t,e)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{e(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,e){try{await this.performTransaction("readwrite",i=>i.put(e,t))}catch(t){s.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",e=>e.delete(t))}catch{}return this}async get(t){try{return await this.performTransaction("readonly",e=>e.get(t))}catch{return}}async exists(t){try{let e=await this.performTransaction("readonly",e=>e.get(t));return void 0!==e}catch{return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch{}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch{}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>t+"")}catch{return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch{return[]}}async entries(){try{let[t,e]=await Promise.all([this.keys(),this.values()]);return t.map((t,i)=>[t,e[i]])}catch{return[]}}constructor(t="JoditDB",e="keyValueStore"){(0,o._)(this,"dbName",void 0),(0,o._)(this,"dbPromise",void 0),(0,o._)(this,"DB_VERSION",void 0),(0,o._)(this,"storeName",void 0),this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=e}}let r=null;function a(){r=null}async function l(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let t="___Jodit___"+Math.random().toString(),e=indexedDB.open(t);return r=await new Promise(i=>{e.onerror=()=>{i(!1)},e.onsuccess=()=>{indexedDB.deleteDatabase(t),i(!0)}})}catch{return r=!1,!1}}},91206:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},91231:function(t,e,i){"use strict";i.d(e,{Async:function(){return o.Async}});var o=i(24735)},91321:function(t,e,i){"use strict";i.d(e,{completeUrl:function(){return s}});var o=i(81937);let s=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},91535:function(t,e,i){"use strict";i.d(e,{Alert:function(){return l}});var o=i(23211),s=i(78982),n=i(91565),r=i(53681),a=i(76841);function l(t,e,i,c="jodit-dialog_alert"){(0,n.isFunction)(e)&&(i=e,e=void 0);let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),h=u.c.div(c),d=(0,r.Button)(u,"ok","Ok");return(0,s.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:u.c.fromHTML(t))}),d.onAction(()=>{i&&(0,n.isFunction)(i)&&!1===i(u)||u.close()}),u.setFooter([d]),u.open(h,e||"&nbsp;",!0,!0),d.focus(),u}},91560:function(t,e,i){"use strict";i.r(e),i.d(e,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return n.removeEmptyTextNode},removeInvTextNodes:function(){return r.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return c.tryRemoveNode}});var o=i(95559),s=i(39188),n=i(94561),r=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{isFunction:function(){return o}})},91672:function(t,e,i){"use strict";i.d(e,{component:function(){return r},getComponentClass:function(){return a}});var o=i(81937),s=i(421);let n=new Map;function r(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}let i=(0,s.getClassName)(t.prototype);if(n.has(i)&&!o.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return n.set(i,e),e}function a(t){return n.get(t)}},91678:function(t,e,i){"use strict";var o=i(28077),s=i(65946),n=i(29434),r=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),u=i.n(c),h=i(49972),d=i.n(h),p=i(45062),f=i.n(p),m=i(18605),g=i.n(m),_=i(83389),v=i.n(_);o.pluginSystem.add("bold",function(t){let e=e=>{let i,o=r.Config.defaultOptions.controls[e],n={...o.css};return Object.keys(n).forEach(t=>{i||(i={}),i[t]=(0,s.isArray)(n[t])?n[t][0]:n[t]}),t.s.commitStyle({element:o.tags?o.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.Icon.set("bold",l()).set("italic",u()).set("strikethrough",d()).set("subscript",f()).set("superscript",g()).set("underline",v())},91764:function(t,e,i){"use strict";i.d(e,{isURL:function(){return s}});var o=i(81937);function s(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}let e=o.globalDocument.createElement("a");return e.href=t,!!e.hostname}},91882:function(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>'},92063:function(t,e,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267:function(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>'},93387:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let 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";let i=parseInt(e[2],10),o=parseInt(e[3],10),s=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;s.length<6;)s="0"+s;return e[1]+"#"+s}},93637:function(t,e,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:function(t,e,i){"use strict";i.r(e),i.d(e,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return v.OptionsError},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return s.alreadyLoadedList},appendScriptAsync:function(){return s.appendScriptAsync},appendStyleAsync:function(){return s.appendStyleAsync},attr:function(){return l.attr},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},callThis:function(){return L.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return f.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return f.css},cssPath:function(){return D.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return w.getClassName},getDataTransfer:function(){return L.getDataTransfer},getPropertyDescriptor:function(){return L.getPropertyDescriptor},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return x.inView},isAtom:function(){return b.isAtom},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return s.loadNext},loadNextStyle:function(){return s.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return L.markOwner},memorizeExec:function(){return L.memorizeExec},options:function(){return v.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return D.refs},reset:function(){return T.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return x.scrollIntoViewIfNeeded},set:function(){return k.set}});var o=i(16849),s=i(47760),n=i(28712),r={};for(var a in n)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(t){return n[t]}).bind(0,a));i.d(e,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),p=i(3856),f=i(80991),m=i(77213),g=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:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return h}});var o=i(25045),s=i(81937),n=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);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,n.splitArray)(t).map(t=>t.trim()).forEach(t=>{let i=t.split("."),o=i[1]||u.defaultNameSpace;e.call(this,i[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let e=new u.EventHandlersStore;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){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,o){let n,u,h,p;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,u=t,h=e,p=i):(n=t,u=e,h=i,p=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(n))return n.forEach(t=>{this.on(t,u,h,p)}),this;let f=n,m=this.__getStore(f),g=this,_=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return d(f)&&(_=function(t){if(!g.isMuted(t.type)&&(g.__prepareEvent(t),h&&!1===h.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,e)=>{if(0===t.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(t,e,h)){let i={event:t,originalCallback:h,syntheticCallback:_};if(m.set(t,e,i,p?.top),d(f)){let e=s.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=e,f.addEventListener(t,_,e),this.__memoryDOMSubjectToHandler(f,_)}}}),this}__memoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let s,n,r,a;(0,l.isString)(t)||(0,l.isStringArray)(t)?(s=this,n=t,r=e,a=i):(s=t,n=e,r=i,a=o);let c=(...t)=>(this.off(s,n,c),r(...t));return this.on(s,n,c,a),this}off(t,e,i){let o,s,n;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,s=t,n=e):(o=t,s=e,n=i),(0,r.isArray)(o))return o.forEach(t=>{this.off(t,s,n)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(s)||(0,l.isStringArray)(s))||0===s.length)return h.namespaces().forEach(t=>{this.off(c,"."+t)}),this.__removeStoreFromSubject(c),this;let p=t=>{d(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void h.events(e).forEach(t=>{""!==t&&f(t,e)});let i=h.get(t,e);if(i&&i.length)if((0,a.isFunction)(n)){let o=h.indexOf(t,e,n);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(p),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(s,(t,e)=>{e===u.defaultNameSpace?h.namespaces().forEach(e=>{f(t,e)}):f(t,e)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){let i=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:e;if("string"!=typeof o)throw(0,c.error)("Need event names");let s=this.__getStore(i);this.__eachEvent(o,(t,e)=>{let o=s.get(t,e);o&&this.__stopped.push(o),e===u.defaultNameSpace&&s.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}__removeStop(t){if(t){let 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,...i){let o,s,n=(0,l.isString)(t)?this:t,r=(0,l.isString)(t)?t:e,a=(0,l.isString)(t)?[e,...i]:i;if(!d(n)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(n);return!(0,l.isString)(r)&&d(n)?this.__triggerNativeEvent(n,e):this.__eachEvent(r,(t,e)=>{if(d(n))this.__triggerNativeEvent(n,t);else{let i=h.get(t,e);if(i)try{[...i].every(e=>!this.__isStopped(i)&&(this.currents.push(t),s=e.syntheticCallback.call(n,t,...a),this.currents.pop(),void 0!==s&&(o=s),!0))}finally{this.__removeStop(i)}e!==u.defaultNameSpace||d(n)||h.namespaces().filter(t=>t!==e).forEach(e=>{let i=this.fire.apply(this,[n,t+"."+e,...a]);void 0!==i&&(o=i)})}}),o}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))}constructor(t){(0,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",s.globalDocument),(0,o._)(this,"__prepareEvent",t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(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}))}),(0,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),t&&(this.__doc=t),this.__key+=new Date().getTime()}}function d(t){return(0,a.isFunction)(t.addEventListener)}},93890:function(t,e,i){"use strict";i.d(e,{checkRemoveUnbreakableElement:function(){return r}});var o=i(81937),s=i(23211),n=i(2409);function r(t,e,i){let r=s.Dom.findSibling(e,i);return!!(s.Dom.isElement(r)&&(s.Dom.isTag(r,o.INSEPARABLE_TAGS)||s.Dom.isEmpty(r)))&&(s.Dom.safeRemove(r),s.Dom.isTag(r,"br")&&!s.Dom.findNotEmptySibling(e,!1)&&s.Dom.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),s.Dom.isTag(r,"br")&&(0,n.checkRemoveEmptyParent)(t,e,i),!0)}},94013:function(t,e,i){"use strict";i.d(e,{isEqual:function(){return s},isFastEqual:function(){return n}});var o=i(3347);function s(t,e){return t===e||(0,o.stringify)(t)===(0,o.stringify)(e)}function n(t,e){return t===e}},94092:function(t,e,i){"use strict";i.d(e,{PII:function(){return o},WARN:function(){return s}});let o=440,s=940},94190:function(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>'},94193:function(t,e,i){"use strict";i.d(e,{SourceEditor:function(){return s}});var o=i(25045);class s{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)}constructor(t,e,i,s){(0,o._)(this,"jodit",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"toWYSIWYG",void 0),(0,o._)(this,"fromWYSIWYG",void 0),(0,o._)(this,"instance",void 0),(0,o._)(this,"className",void 0),(0,o._)(this,"isReady",void 0),this.jodit=t,this.container=e,this.toWYSIWYG=i,this.fromWYSIWYG=s,this.className="",this.isReady=!1}}},94358:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(t){let e=t.dlg({closeOnClickOverlay:!0}),i=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
257
257
  <div>${i("Jodit Editor")} v.${t.getVersion()}</div>