jodit 4.9.9 → 4.9.11

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 (124) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +5 -5
  4. package/es2015/jodit.js +217 -71
  5. package/es2015/jodit.min.js +5 -5
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +5 -5
  13. package/es2018/jodit.min.js +5 -5
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +5 -5
  18. package/es2021/jodit.js +217 -71
  19. package/es2021/jodit.min.js +5 -5
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +5 -5
  28. package/es2021.en/jodit.js +217 -71
  29. package/es2021.en/jodit.min.js +5 -5
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +226 -71
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/config.d.ts +268 -88
  51. package/esm/config.js +166 -51
  52. package/esm/core/constants.js +1 -1
  53. package/esm/core/decorators/autobind/autobind.d.ts +0 -5
  54. package/esm/core/decorators/autobind/autobind.js +1 -1
  55. package/esm/core/decorators/component/component.d.ts +1 -1
  56. package/esm/core/event-emitter/global.d.ts +8 -0
  57. package/esm/core/event-emitter/global.js +8 -0
  58. package/esm/core/storage/async-storage.d.ts +8 -0
  59. package/esm/core/storage/async-storage.js +5 -0
  60. package/esm/core/ui/element.d.ts +1 -0
  61. package/esm/core/ui/element.js +6 -0
  62. package/esm/core/ui/group/group.d.ts +1 -0
  63. package/esm/core/ui/group/group.js +3 -0
  64. package/esm/modules/file-browser/builders/utils.d.ts +8 -0
  65. package/esm/modules/file-browser/builders/utils.js +5 -0
  66. package/esm/modules/toolbar/button/button.d.ts +1 -0
  67. package/esm/modules/toolbar/button/button.js +3 -1
  68. package/esm/plugins/add-new-line/config.d.ts +4 -3
  69. package/esm/plugins/backspace/config.d.ts +3 -0
  70. package/esm/plugins/clean-html/config.d.ts +2 -3
  71. package/esm/plugins/fullsize/config.d.ts +2 -2
  72. package/esm/plugins/hotkeys/config.d.ts +0 -1
  73. package/esm/plugins/iframe/config.d.ts +2 -5
  74. package/esm/plugins/image-processor/config.d.ts +3 -0
  75. package/esm/plugins/image-properties/config.d.ts +4 -0
  76. package/esm/plugins/inline-popup/config/config.d.ts +16 -0
  77. package/esm/plugins/limit/config.d.ts +3 -3
  78. package/esm/plugins/placeholder/config.d.ts +3 -3
  79. package/esm/plugins/resize-cells/config.d.ts +3 -0
  80. package/esm/plugins/resize-handler/config.d.ts +6 -0
  81. package/esm/plugins/resizer/config.d.ts +1 -1
  82. package/esm/plugins/select/config.d.ts +0 -1
  83. package/esm/plugins/select-cells/config.d.ts +3 -0
  84. package/esm/plugins/size/config.js +1 -2
  85. package/esm/plugins/source/config.d.ts +6 -2
  86. package/esm/plugins/stat/config.d.ts +12 -0
  87. package/esm/plugins/sticky/config.d.ts +5 -2
  88. package/esm/plugins/symbols/config.d.ts +6 -0
  89. package/esm/plugins/table/config.d.ts +3 -0
  90. package/esm/plugins/xpath/config.d.ts +3 -0
  91. package/esm/types/ui.d.ts +1 -0
  92. package/package.json +1 -1
  93. package/types/config.d.ts +268 -88
  94. package/types/core/decorators/autobind/autobind.d.ts +0 -5
  95. package/types/core/decorators/component/component.d.ts +1 -1
  96. package/types/core/event-emitter/global.d.ts +8 -0
  97. package/types/core/storage/async-storage.d.ts +8 -0
  98. package/types/core/ui/element.d.ts +1 -0
  99. package/types/core/ui/group/group.d.ts +1 -0
  100. package/types/modules/file-browser/builders/utils.d.ts +8 -0
  101. package/types/modules/toolbar/button/button.d.ts +1 -0
  102. package/types/plugins/add-new-line/config.d.ts +4 -3
  103. package/types/plugins/backspace/config.d.ts +3 -0
  104. package/types/plugins/clean-html/config.d.ts +2 -3
  105. package/types/plugins/fullsize/config.d.ts +2 -2
  106. package/types/plugins/hotkeys/config.d.ts +0 -1
  107. package/types/plugins/iframe/config.d.ts +2 -5
  108. package/types/plugins/image-processor/config.d.ts +3 -0
  109. package/types/plugins/image-properties/config.d.ts +4 -0
  110. package/types/plugins/inline-popup/config/config.d.ts +16 -0
  111. package/types/plugins/limit/config.d.ts +3 -3
  112. package/types/plugins/placeholder/config.d.ts +3 -3
  113. package/types/plugins/resize-cells/config.d.ts +3 -0
  114. package/types/plugins/resize-handler/config.d.ts +6 -0
  115. package/types/plugins/resizer/config.d.ts +1 -1
  116. package/types/plugins/select/config.d.ts +0 -1
  117. package/types/plugins/select-cells/config.d.ts +3 -0
  118. package/types/plugins/source/config.d.ts +6 -2
  119. package/types/plugins/stat/config.d.ts +12 -0
  120. package/types/plugins/sticky/config.d.ts +5 -2
  121. package/types/plugins/symbols/config.d.ts +6 -0
  122. package/types/plugins/table/config.d.ts +3 -0
  123. package/types/plugins/xpath/config.d.ts +3 -0
  124. package/types/types/ui.d.ts +1 -0
@@ -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.9
4
+ * Version: v4.9.11
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 l},default:function(){return u}});var o=i(25045),s=i(81937),n=i(65946),r=i(73714),a=i(58664);let l="default",c=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{get o(){return this.options}get(t){let e=this.__ajaxInstances;if(e.has(t)){let i=e.get(t);i?.abort(),e.delete(t)}let i=(0,n.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,n.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let o=new r.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,n.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(!s.IS_PROD&&!c.has(e))throw(0,n.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,n.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(a.FileBrowserItem.create({...s,sourceName:t.name,source:t}))})}}),i}async tree(t,e){return(t=(0,n.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,n.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,n.error)(this.getMessage(t))})}createFolder(t,e,i){let{create:o}=this.o;if(!o)throw(0,n.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,n.error)(this.getMessage(t))})}move(t,e,i,o){let s=o?"fileMove":"folderMove",r=this.options[s];if(!r)throw(0,n.error)("Set Move api options");return r.data.from=t,r.data.path=e,r.data.source=i,this.get(s).then(t=>{if(this.isSuccess(t))return!0;throw(0,n.error)(this.getMessage(t))})}remove(t,e,i,o){let s=this.o[t];if(!s)throw(0,n.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 r=this.o[t];if(!r)throw(0,n.error)(`Set "${t}" api options`);return r.data.path=e,r.data.name=i,r.data.newname=o,r.data.source=s,this.get(t).then(t=>(r.process&&(t=r.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(()=>!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=>{}}}},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"}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();(0,b.attr)(e,"role","listitem"),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="trigger" 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(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)}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:"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"}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="trigger" 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(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)}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">
@@ -207,7 +207,7 @@
207
207
  </div>
208
208
  </div>
209
209
  </div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:e}=this;if(e.getRealMode()===n.MODE_WYSIWYG)switch(t.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let o=t??(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),e&&(this.replaceInput.value=e),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(t){super(t),(0,o._)(this,"queryInput",void 0),(0,o._)(this,"replaceInput",void 0),(0,o._)(this,"selInfo",null),(0,o._)(this,"closeButton",void 0),(0,o._)(this,"replaceButton",void 0),(0,o._)(this,"currentBox",void 0),(0,o._)(this,"countBox",void 0),(0,o._)(this,"_currentIndex",0),(0,o._)(this,"isOpened",!1);const{query:e,replace:i,cancel:s,next:r,prev:a,replaceBtn:c,current:u,count:h}=(0,l.refs)(this.container);this.queryInput=e,this.replaceInput=i,this.closeButton=s,this.replaceButton=c,this.currentBox=u,this.countBox=h,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(r,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async e=>{e.key===n.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,s.__decorate)([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),(0,s.__decorate)([r.autobind],u.prototype,"open",null),(0,s.__decorate)([r.autobind],u.prototype,"close",null),(0,s.__decorate)([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=(0,s.__decorate)([r.component],u)},58354: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(91206);i(87908);var u=i(5070);class h extends c.Plugin{afterInit(t){(0,l.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,i){let o,{s,createInside:n,editor:a,o:c}=this.j;s.isFocused()||s.focus(),s.save();let u=t=>{let e=r.Dom.closest(t,r.Dom.isBlock,a);e||(e=r.Dom.wrap(t,c.enter,n));let s=(0,l.css)(e,"lineHeight");void 0===o&&(o=s.toString()!==i.toString()),(0,l.css)(e,"lineHeight",o?i:null)};try{if(s.isCollapsed()){let t=n.fake();s.insertNode(t,!1,!1),u(t),r.Dom.safeRemove(t)}else s.eachSelection(u)}finally{s.restore()}}beforeDestruct(t){(0,l.css)(t.editor,{lineHeight:null})}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(u)}}(0,s.__decorate)([n.autobind],h.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",h)},58446:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},58664:function(t,e,i){"use strict";i.d(e,{FileBrowserItem:function(){return n}});var o=i(25045),s=i(65946);class n{static create(t){return t instanceof n?t:new n(t)}get path(){return(0,s.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let t=this.time||new Date().getTime().toString(),{thumbIsAbsolute:e,source:i,thumb:o,file:n}=this.data,r=o||n;return e&&r?r:(0,s.normalizeUrl)(i.baseurl,i.path,r||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data,{file:e,fileIsAbsolute:i,source:o}=this.data;return void 0!==e&&(t=e),i&&t?t:(0,s.normalizeUrl)(o.baseurl,o.path,t||"")}get time(){let{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){let t=this.data;return[t.sourceName,t.name,t.file,this.time,t.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(t){(0,o._)(this,"data",void 0),(0,o._)(this,"source",void 0),(0,o._)(this,"sourceName",void 0),(0,o._)(this,"type",void 0),this.data=t,Object.keys(t).forEach(e=>{this[e]=t[e]})}}},58881:function(t,e,i){"use strict";i.d(e,{checkRemoveChar:function(){return function t(e,i,r,l){var c,u;let h,d=r?-1:1,p=s.Dom.sibling(i,!r),f=s.Dom.sibling(i,r),m=null,g=!1;for(f||(f=a(i,r,e.editor));f&&(s.Dom.isText(f)||s.Dom.isInlineBlock(f));){for(;s.Dom.isInlineBlock(f);)f=r?f?.lastChild:f?.firstChild;if(!f)break;if(f.nodeValue?.length&&(h=function(t,e,i,r){let a=(0,n.toArray)(t.nodeValue),l=a.length,c=e?l-1:0;if(a[c]===o.INVISIBLE_SPACE)for(;a[c]===o.INVISIBLE_SPACE;)c+=i;let u=a[c];if(a[c+i]===o.INVISIBLE_SPACE){for(c+=i;a[c]===o.INVISIBLE_SPACE;)c+=i;c+=e?1:-1}return a=e&&c<0?[]:a.slice(e?0:c+1,e?c:l),function(t,e,i){if(!t||!s.Dom.isText(t)||(!e?/ $/:/^ /).test(t.nodeValue??"")||!(0,n.trimInv)(t.nodeValue||"").length)for(let t=e?i.length-1:0;e?t>=0:t<i.length;t+=e?-1:1)if(" "===i[t])i[t]=o.NBSP_SPACE;else break}(r,e,a),t.nodeValue=a.join(""),u}(f,r,d,p),!f.nodeValue.length&&s.Dom.isInlineBlock(f.parentNode)&&(f.nodeValue=o.INVISIBLE_SPACE)),f.nodeValue?.length||(m=f),!(0,n.isVoid)(h)&&h!==o.INVISIBLE_SPACE){c=f,u=h,(0,n.call)(r?s.Dom.after:s.Dom.before,c,i),("sentence"===l||"word"===l&&" "!==u&&u!==o.NBSP_SPACE)&&t(e,i,r,l),g=!0;break}let _=a(f,r,e.editor);m&&(s.Dom.safeRemove(m),m=null),f=_}return m&&(s.Dom.safeRemove(m),m=null),g&&(function(t){let e=t.parentElement;for(;e&&s.Dom.isInlineBlock(e)&&s.Dom.isTag(e,"a");){let i=e.parentElement;s.Dom.isEmpty(e)&&(s.Dom.after(e,t),s.Dom.safeRemove(e)),e=i}}(i),i.parentElement!==e.editor&&s.Dom.isBlock(i.parentElement)&&s.Dom.each(i.parentElement,s.Dom.isEmptyTextNode)&&s.Dom.after(i,e.createInside.element("br")),e.s.setCursorBefore(i),s.Dom.isTag(i.previousSibling,"br")&&!s.Dom.findNotEmptySibling(i,!1)&&s.Dom.after(i,e.createInside.element("br"))),g}}});var o=i(81937),s=i(27795),n=i(65946),r=i(15200);function a(t,e,i){let o=s.Dom.sibling(t,e);return!o&&t.parentNode&&t.parentNode!==i&&(o=(0,r.findMostNestedNeighbor)(t,!e,i,!0)),o}},58910:function(t,e,i){"use strict";var o=i(25045),s=i(23211),n=i(28077),r=i(71125),a=i(91206),l=i(29434),c=i(5266),u=i(93267),h=i.n(u);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){let i=t.s.current();if(i){let o=s.Dom.closest(i,s.Dom.isElement,t.editor)||t.editor;return!!(e.control.args&&o.classList.contains(e.control.args[0].toString()))}return!1},isActive(t,e){let i=t.s.current();if(i){let o=s.Dom.closest(i,s.Dom.isElement,t.editor)||t.editor,n=!1;return e.control.list&&Object.keys(e.control.list).forEach(t=>{o.classList.contains(t)&&(n=!0)}),!!(o&&o!==t.editor&&void 0!==e.control.list&&n)}return!1},childTemplate:(t,e,i)=>`<span class="${e}">${t.i18n(i)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(e,i,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"classSpan",group:"script"}])}}n.pluginSystem.add("classSpan",d),l.Icon.set("class-span",h())},59276:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return n}});var o=i(25045),s=i(57626);class n{add(t){let e=(t.nodeValue??"").toLowerCase();if(!e.length)return;let i=this.value.length;this.queue.push({startIndex:i,endIndex:i+e.length,node:t}),this.value+=e}ranges(t,e=0){let i=[],o=e,s=0,n=0;do if([o,s]=this.searchIndex(t,this.value,o),-1!==o){let t,e=0,r,a=0;for(let i=n;i<this.queue.length;i+=1)if(!t&&this.queue[i].endIndex>o&&(t=this.queue[i].node,e=o-this.queue[i].startIndex),t&&this.queue[i].endIndex>=o+s){r=this.queue[i].node,a=o+s-this.queue[i].startIndex,n=i;break}t&&r&&i.push({startContainer:t,startOffset:e,endContainer:r,endOffset:a}),o+=s}while(-1!==o)return 0===i.length?null:i}constructor(t=s.fuzzySearchIndex){(0,o._)(this,"searchIndex",void 0),(0,o._)(this,"queue",void 0),(0,o._)(this,"value",void 0),this.searchIndex=t,this.queue=[],this.value=""}}},59399:function(t,e){"use strict";e.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
210
- `,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},59400:function(t,e,i){"use strict";i.d(e,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return s.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return n.UITooltip}});var o=i(53681),s=i(15367),n=i(95399)},59609:function(t,e,i){"use strict";i.d(e,{ViewComponent:function(){return n}});var o=i(25045),s=i(80251);class n extends s.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),(0,o._)(this,"jodit",void 0),this.setParentView(t)}}},59758:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(28077),r=i(18855),a=i(29434),l=i(5266),c=i(34045),u=i.n(c),h=i(39199),d=i.n(h);a.Icon.set("redo",u()).set("undo",d()),l.Config.prototype.controls.redo={mode:s.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:s.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class p extends r.Plugin{beforeDestruct(){}afterInit(t){let e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}n.pluginSystem.add("redoUndo",p)},59807:function(t,e,i){"use strict";i.d(e,{LocalStorageProvider:function(){return n},canUsePersistentStorage:function(){return s}});var o=i(25045);let s=(t="localStorage")=>{let e=new Map;if(e.has(t))return e.get(t);let i="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(i,"1");let s="1"===o.getItem(i);return o.removeItem(i),e.set(t,s),s}catch{}return e.set(t,!1),!1};class n{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,e){try{let i=this.storage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[t]=e,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch{}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch{}return this}get(t){try{let e=this.storage.getItem(this.rootKey),i=e?JSON.parse(e):{};return void 0!==i[t]?i[t]:void 0}catch{}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch{}return this}constructor(t,e="localStorage"){(0,o._)(this,"rootKey",void 0),(0,o._)(this,"strategy",void 0),this.rootKey=t,this.strategy=e}}},59827:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59841:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return s.CommitStyle},Selection:function(){return o.Selection}});var o=i(98595),s=i(84578)},60162:function(t,e,i){"use strict";var o=i(36400),s=i(29434),n=i(5266),r=i(40037),a=i.n(r),l=i(83207),c=i.n(l);let u=(t,e,{control:i})=>{let s="button"+i.command,n=(i.args&&i.args[0])??(0,o.dataBind)(t,s);(0,o.dataBind)(t,s,n),t.execCommand(i.command,!1,"default"===n?null:n)};s.Icon.set("ol",a()).set("ul",c()),n.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},n.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},60216:function(t,e,i){"use strict";i.d(e,{Eventify:function(){return s}});var o=i(25045);class s{on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let i;return this.__map.has(t)&&this.__map.get(t)?.forEach(t=>{i=t(...e)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},60636: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 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},60898:function(t,e,i){"use strict";i.d(e,{inView:function(){return s},scrollIntoViewIfNeeded:function(){return n}});var o=i(23211);function s(t,e,i){let o=t.getBoundingClientRect(),s=t,n=o.top,r=o.height;for(;s&&s!==e&&s.parentNode;)if(!(n<=(o=(s=s.parentNode).getBoundingClientRect()).bottom)||n+r<=o.top)return!1;return n<=(i.documentElement&&i.documentElement.clientHeight||0)}function n(t,e,i){o.Dom.isHTMLElement(t)&&!s(t,e,i)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),s(t,e,i)||t.scrollIntoView())}},60936:function(t,e,i){"use strict";i.r(e),i.d(e,{Ajax:function(){return p.Ajax},Alert:function(){return r.Alert},Async:function(){return l.Async},AsyncStorage:function(){return k.AsyncStorage},Button:function(){return f.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return o.Component},Confirm:function(){return r.Confirm},ContextMenu:function(){return n.ContextMenu},Create:function(){return c.Create},Dialog:function(){return r.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return s},History:function(){return _.History},Icon:function(){return f.Icon},ImageEditor:function(){return b.ImageEditor},IndexedDBProvider:function(){return k.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return k.LocalStorageProvider},MemoryStorageProvider:function(){return k.MemoryStorageProvider},Plugin:function(){return d.Plugin},PluginSystem:function(){return x.PluginSystem},Popup:function(){return f.Popup},ProgressBar:function(){return f.ProgressBar},Prompt:function(){return r.Prompt},Response:function(){return p.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return k.Storage},StorageKey:function(){return k.StorageKey},Table:function(){return S.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return E.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return I.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return f.UIBlock},UIButton:function(){return f.UIButton},UIButtonGroup:function(){return f.UIButtonGroup},UIButtonState:function(){return f.UIButtonState},UICheckbox:function(){return f.UICheckbox},UIElement:function(){return f.UIElement},UIFileInput:function(){return f.UIFileInput},UIForm:function(){return f.UIForm},UIGroup:function(){return f.UIGroup},UIInput:function(){return f.UIInput},UIList:function(){return f.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return f.UISelect},UISeparator:function(){return f.UISeparator},UISpacer:function(){return f.UISpacer},UITextArea:function(){return f.UITextArea},UITooltip:function(){return f.UITooltip},Uploader:function(){return T.Uploader},View:function(){return m.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return k.canUseIndexedDB},canUsePersistentStorage:function(){return k.canUsePersistentStorage},clearUseIndexedDBCache:function(){return k.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=i(16964),s=i(65946),n=i(67399),r=i(37333),a=i(17610),l=i(91231),c=i(79821),u=i(27795),h=i(1496),d=i(91206),p=i(73714),f=i(4099),m=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),S=i(98803),C=i(39709),E=i(42573),I=i(6209),T=i(94925),x=i(85305),D=i(59841),k=i(25222)},61077:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},61334:function(t,e,i){"use strict";var o=i(27795),s=i(7909),n=i(33201),r=i(29434),a=i(31125),l=i(66206),c=i(18272),u=i(1305),h=i(53202),d=i(43271);let p="jodit-file-browser-preview",f=(t="next",e="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${t}">`+r.Icon.get("angle-"+e)+"</a>";e.default=t=>{if(!t.o.contextMenu)return()=>{};let e=(0,c.makeContextMenu)(t);return i=>{let r=(0,l.getItem)(i.target,t.container);if(!r)return;let c=r,m=t.options,g=t=>(0,s.attr)(c,t)||"";return t.async.setTimeout(()=>{let s=(0,l.elementToItem)(r,(0,a.elementsMap)(t));s&&(t.state.activeElements=[s],e.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>d.openImageEditor.call(t,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,u.deleteFile)(t,g("data-name"),g("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,h.loadTree)(t).catch(t.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){let e=t.dlg({buttons:["fullsize","dialog.close"]}),i=t.c.div(p,'<div class="jodit-icon_loader"></div>'),s=t.c.div(p+"__box"),r=t.c.fromHTML(f()),a=t.c.fromHTML(f("prev","left")),l=n=>{let l=t.c.element("img");l.setAttribute("src",n);let u=()=>{t.isInDestruct||(t.e.off(l,"load"),o.Dom.detach(i),m.showPreviewNavigation&&(o.Dom.prevWithClass(c,t.files.getFullElName("item"))&&i.appendChild(a),o.Dom.nextWithClass(c,t.files.getFullElName("item"))&&i.appendChild(r)),i.appendChild(s),s.appendChild(l),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(l,"load",u),l.complete&&u()};t.e.on([r,a],"click",function(){if(!(c=this===r?o.Dom.nextWithClass(c,t.files.getFullElName("item")):o.Dom.prevWithClass(c,t.files.getFullElName("item"))))throw(0,n.error)("Need element");o.Dom.detach(i),o.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',l(g("href"))}),t.e.on("beforeDestruct",()=>{e.destruct()}),e.container.classList.add(p+"__dialog"),e.setContent(i),e.setPosition(),e.open(),l(g("href")),t.events.on("beforeDestruct",()=>{e.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){let e=g("href");e&&t.ow.open(e)}}]))},t.defaultTimeout),t.e.on("beforeClose",()=>{e.close()}).on("beforeDestruct",()=>e.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},61466:function(t,e,i){"use strict";i.d(e,{UIMessage:function(){return r}});var o=i(31635),s=i(91672),n=i(4099);class r extends n.UIElement{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}}r=(0,o.__decorate)([s.component],r)},61764:function(t,e,i){"use strict";i.d(e,{ToolbarSelect:function(){return l}});var o=i(31635),s=i(84839),n=i(62101),r=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:t,data:e}=this.control;if(t){let i=this.state.value||(e&&(0,r.isString)(e.currentValue)?e.currentValue:void 0);i||(i=Object.keys(t)[0]);let o=((0,n.isPlainObject)(t)&&t[i.toString()]||i).toString();this.state.text=this.control.textTemplate?.(this.jodit,o)??o}}}l=(0,o.__decorate)([s.component],l)},62101:function(t,e,i){"use strict";i.d(e,{isPlainObject:function(){return s}});var o=i(3513);function s(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},62623:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return C}});var o=i(25045),s=i(31635),n=i(16964),r=i(81937),a=i(84839),l=i(68616),c=i(1496),u=i(65946),h=i(25222),d=i(80512),p=i(2222),f=i(5266);i(68502);var m=i(1488),g=i(53202),_=i(34269),v=i(36664),b=i(74833),y=i(17780),w=i(18272),S=i(63425);class C extends p.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let e=[],i=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(e.push(o),i.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:e,isImages:i}),this.close()}return!1}}get _dialog(){let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return h.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){!t||(0,u.isAbortError)(t)||((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise((e,i)=>{if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let o=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let e=new Date().getTime();e-o<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),o=e}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let s=this.c.div();this.toolbar?.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(e,i).finally(()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){return(this.o.buttons??[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){let e=this,i=t?.options?.uploader,o=(0,u.ConfigProto)(i||{},f.Config.defaultOptions.uploader),s=()=>(0,m.loadItems)(this);e.uploader=e.getInstance("Uploader",o),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,s,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),e.e.on("bindUploader.filebrowser",t=>{e.uploader.bind(t,s,e.errorHandler)})}destruct(){!this.isInDestruct&&((0,a.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){let t=this.__getButtons();!function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,this.toolbar?.build(t))}constructor(t){super(t),(0,o._)(this,"browser",this.c.div(this.componentName)),(0,o._)(this,"status_line",this.c.div(this.getFullElName("status"))),(0,o._)(this,"tree",new S.FileBrowserTree(this)),(0,o._)(this,"files",new S.FileBrowserFiles(this)),(0,o._)(this,"state",(0,c.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1})),(0,o._)(this,"errorHandler",t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))}),(0,o._)(this,"uploader",void 0),(0,o._)(this,"close",()=>{this._dialog.close()}),(0,o._)(this,"__prevButtons",[]),this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},f.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),v.selfListeners.call(this),_.nativeListeners.call(this),b.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:e,storeSortBy:i,storeLastOpenedFolder:s}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=e&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=i&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(s){const t=this.storage.get("currentPath"),e=this.storage.get("currentSource");this.state.currentPath=t??"",this.state.currentSource=e??""}this.initUploader(this),this.setStatus(n.STATUSES.ready)}}(0,s.__decorate)([a.cache],C.prototype,"dataProvider",null),(0,s.__decorate)([a.cache],C.prototype,"_dialog",null),(0,s.__decorate)([a.cache],C.prototype,"storage",null),(0,s.__decorate)([a.autobind],C.prototype,"status",null),(0,s.__decorate)([a.autobind],C.prototype,"open",null),(0,s.__decorate)([(0,l.watch)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,s.__decorate)([(0,a.derive)(d.Dlgs)],C)},63425:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return s.FileBrowserTree}});var o=i(86122),s=i(55376)},63468:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return u}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(23211),l=i(65946),c=i(96007);class u extends c.UIElement{className(){return"UIGroup"}get allChildren(){let t=[],e=[...this.elements];for(;e.length;){let i=e.shift();(0,l.isArray)(i)?e.push(...i):n.Component.isInstanceOf(i,u)?e.push(...i.elements):i&&t.push(i)}return t}update(){this.elements.forEach(t=>t.update()),this.setMod("size",this.buttonSize)}append(t,e){let i;if((0,l.isArray)(t)){if("number"==typeof e)throw Error("You can not use index when append array of elements");return t.forEach(t=>this.append(t,e)),this}if("number"==typeof e?(i=Math.min(Math.max(0,e),this.elements.length),this.elements.splice(i,0,t)):this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e&&"string"==typeof e){let i=this.getElm(e);if(null==i)throw Error("Element does not exist");i.appendChild(t.container)}else this.appendChildToContainer(t.container,i);return t.parentElement=this,this}afterSetMod(t,e){this.syncMod&&this.elements.forEach(i=>i.setMod(t,e))}appendChildToContainer(t,e){void 0===e||e<0||e>this.elements.length-1||null==this.container.children[e]?this.container.appendChild(t):this.container.insertBefore(t,this.container.children[e])}remove(t){let e=this.elements.indexOf(t);return -1!==e&&(this.elements.splice(e,1),a.Dom.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach(t=>t.destruct()),this.elements.length=0,this}setParentView(t){return this.elements?.forEach(e=>e.setParentView(t)),super.setParentView(t)}destruct(){return this.clear(),super.destruct()}constructor(t,e,i){super(t,i),(0,o._)(this,"options",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach(t=>t&&this.append(t)),i?.name&&(this.name=i.name)}}(0,s.__decorate)([(0,r.watch)("buttonSize")],u.prototype,"update",null),u=(0,s.__decorate)([r.component],u)},63837:function(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63974:function(t,e,i){"use strict";var o=i(25045),s=i(27795),n=i(28077),r=i(65946),a=i(4040),l=i(91206);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,e=t.s.current();if(e&&s.Dom.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!e||!s.Dom.closest(e,"table",t.editor))){t.editor.innerHTML="";let e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let e=t.s.range;e.deleteContents();let i=t.createInside.fake();e.insertNode(i);let o=s.Dom.findSibling(i,!0),n=s.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,n),e.setStartBefore(i),e.collapse(!0),this.__moveCursorInEditableSibling(t,o,i,e),this.__addBrInEmptyBlock(i,n,e),s.Dom.safeRemove(i),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,i){e=this.__defineRightLeftBox(e),!s.Dom.isList(i)&&!s.Dom.isTag(i,"table")&&s.Dom.isBlock(i)&&s.Dom.isBlock(e)&&(s.Dom.append(e,t),s.Dom.moveContent(i,e),s.Dom.safeRemove(i)),s.Dom.isList(i)&&s.Dom.isLeaf(i.firstElementChild)&&s.Dom.isEmpty(i.firstElementChild)&&s.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(t){if(!s.Dom.isList(t))return t;let e=t.lastElementChild;return s.Dom.isLeaf(e)||(e=this.j.createInside.element("li"),s.Dom.append(t,e)),e}__addBrInEmptyBlock(t,e,i){let o=this.j;if(t.isConnected&&s.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let e=o.createInside.element("br");s.Dom.after(t,e),i.setStartBefore(e),i.collapse(!0)}if(s.Dom.isTag(e,"table")){let t=(0,r.$$)("td,th",e).shift();s.Dom.isCell(t)&&s.Dom.isEmpty(t)&&s.Dom.append(t,o.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,i,o){if(!e||!s.Dom.isText(e)){let e=s.Dom.closest(i,s.Dom.isBlock,t.editor)??t.editor,n=s.Dom.prev(i,s.Dom.isText,e);n&&(o.setStartAfter(n),o.collapse(!0),s.Dom.safeRemove(i))}}}(0,o._)(c,"requires",["backspace"]),n.pluginSystem.add("deleteCommand",c)},64094:function(t,e,i){"use strict";var o=i(23211),s=i(28077),n=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){let i=e.control,s=t.s.current();if(s){let r=o.Dom.closest(s,o.Dom.isBlock,t.editor)||t.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,n.isPlainObject)(c)?c[l]:c.includes(l))&&(t.o.textIcons||"select"===i.component?e.state.text=l:e.state.icon.name=l,u.currentValue=l)}},isActive(t,e){let i=t.s.current();if(!i||!e.control.defaultValue)return!1;let s=o.Dom.closest(i,o.Dom.isBlock,t.editor)||t.editor;return -1===e.control.defaultValue.indexOf((0,a.css)(s,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},s.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let e=e=>(t.s.focus(),t.s.eachSelection(i=>{if(!i)return;let s=o.Dom.up(i,o.Dom.isBlock,t.editor);s||(s=o.Dom.wrapInline(i,t.o.enterBlock,t)),(0,r.alignElement)(e,s)}),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)})},64222: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(91206),h=i(63425);class d extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var e;let i=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,c.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,e=i,a.Dom.isElement(e)&&e.classList.contains(h.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let e=this.j.s.sel,i=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null),o=this.__getWorkFragment(i,t);e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,i),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,e){let i=null;if(!this.draggable&&t)i=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,e]="1"===(0,c.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(t)).setAttribute(e,(0,c.attr)(this.draggable,"data-src")||(0,c.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,c.attr)(i,e)||"")}else i=(0,c.dataBind)(this.draggable,"target");else this.getText(e)&&(i=this.j.createInside.fromHTML(this.getText(e)));return i}__insertFragment(t,e){this.j.s.insertNode(t,!1,!1),e&&t.firstChild&&t.lastChild&&(e.setStartBefore(t.firstChild),e.setEndAfter(t.lastChild),this.j.s.selectRange(e),this.j.e.fire("synchro")),a.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...t){super(...t),(0,o._)(this,"isFragmentFromEditor",!1),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"startDragPoint",{x:0,y:0}),(0,o._)(this,"draggable",null),(0,o._)(this,"bufferRange",null),(0,o._)(this,"getText",t=>{let e=(0,c.getDataTransfer)(t);return e?e.getData(n.TEXT_HTML)||e.getData(n.TEXT_PLAIN):null})}}(0,s.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,s.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,s.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,s.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",d)},64637:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64847:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return o.UIGroup},UIList:function(){return s.UIList},UISeparator:function(){return n.UISeparator},UISpacer:function(){return r.UISpacer}});var o=i(63468),s=i(97959),n=i(35676),r=i(27987)},65015:function(t,e,i){"use strict";i.d(e,{sanitizeAttributes:function(){return n}});var o=i(23211),s=i(65946);function n(t,e,i){return!!(o.Dom.isElement(e)&&(0,s.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||i}},65230:function(t,e,i){"use strict";var o=i(23211),s=i(29434),n=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);n.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},s.Icon.set("link",a()).set("unlink",c()),n.Config.prototype.controls.unlink={exec(t,e){let i=o.Dom.closest(e,"a",t.editor);i&&o.Dom.unwrap(i),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},n.Config.prototype.controls.link={isActive(t){let e=t.s.current();return!!(e&&o.Dom.closest(e,"a",t.editor))},popup:(t,e,i)=>t.e.fire("generateLinkForm.link",e,i),tags:["a"],tooltip:"Insert link"}},65273:function(t,e,i){"use strict";i.d(e,{UIInput:function(){return d}});var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(88475),l=i(93640),c=i(96007),u=i(81488),h=i(29434);class d extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?r.Dom.after(this.nativeInput,this.clearButton):r.Dom.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let t=this.nativeInput,{name:e,icon:i,type:o,ref:s,required:n,placeholder:a,autocomplete:c,label:u}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",o),(0,l.attr)(t,"data-ref",s||e),(0,l.attr)(t,"ref",s||e),(0,l.attr)(t,"required",n||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),i&&h.Icon.exists(i)?(r.Dom.before(t,this.icon),this.icon.innerHTML=h.Icon.get(i)):r.Dom.safeRemove(this.icon),u?(r.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):r.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.inputValidators.required),this.state.validators?.forEach(t=>{let e=u.inputValidators[t];e&&this.validators.add(e)})}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):r.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){let t=this.state.value.toString();t!==this.value&&(this.value=t)}onChangeValue(){let{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){this.error="";let t=(0,a.toArray)(this.validators).every(t=>t(this));return this.__markInputInvalid(),t}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(t){let e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),e.appendChild(this.wrapper),(0,l.attr)(i,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(t,e){super(t,e),(0,o._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,o._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,o._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,o._)(this,"state",{...d.defaultState}),(0,o._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,o._)(this,"validators",new Set([])),e?.value!==void 0&&(e.value=e.value.toString()),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,o._)(d,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,s.__decorate)([(0,n.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,s.__decorate)([(0,n.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,s.__decorate)([(0,n.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,n.debounce)()],d.prototype,"onChangeState",null),(0,s.__decorate)([(0,n.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,s.__decorate)([n.autobind],d.prototype,"onChangeValue",null),d=(0,s.__decorate)([n.component],d)},65701:function(t,e,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},65710:function(t,e,i){"use strict";i.d(e,{insertParagraph:function(){return n}});var o=i(23211),s=i(60898);function n(t,e,i,n){let r="br"===i.toLowerCase(),{createInside:a}=e,l=a.element(i),c=a.element("br");return r||l.appendChild(c),n&&n.cssText&&l.setAttribute("style",n.cssText),o.Dom.after(t,l),o.Dom.before(r?l:c,t),(0,s.scrollIntoViewIfNeeded)(l,e.editor,e.ed),l}},65946:function(t,e,i){"use strict";i.r(e),i.d(e,{CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return s.clearTimeout},colorToHex:function(){return r.colorToHex},fuzzySearchIndex:function(){return u.fuzzySearchIndex},getContentWidth:function(){return c.getContentWidth},getScrollParent:function(){return c.getScrollParent},hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return n.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return u.i18n},innerWidth:function(){return c.innerWidth},isAbortError:function(){return n.isAbortError},isArray:function(){return n.isArray},isBoolean:function(){return n.isBoolean},isDestructable:function(){return n.isDestructable},isEqual:function(){return n.isEqual},isFastEqual:function(){return n.isFastEqual},isFunction:function(){return n.isFunction},isHTML:function(){return n.isHTML},isHtmlFromWord:function(){return n.isHtmlFromWord},isInitable:function(){return n.isInitable},isInt:function(){return n.isInt},isJoditObject:function(){return n.isJoditObject},isLicense:function(){return n.isLicense},isMarker:function(){return n.isMarker},isNativeFunction:function(){return n.isNativeFunction},isNumber:function(){return n.isNumber},isNumeric:function(){return n.isNumeric},isPlainObject:function(){return n.isPlainObject},isPromise:function(){return n.isPromise},isSet:function(){return n.isSet},isString:function(){return n.isString},isStringArray:function(){return n.isStringArray},isURL:function(){return n.isURL},isValidName:function(){return n.isValidName},isViewObject:function(){return n.isViewObject},isVoid:function(){return n.isVoid},isWindow:function(){return n.isWindow},kebabCase:function(){return u.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},position:function(){return c.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return s.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=i(45664),s=i(61077),n=i(28686),r=i(7018),a=i(82658),l=i(97022),c=i(86878),u=i(97642),h=i(93640),d={};for(var p in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(d[p]=(function(t){return h[t]}).bind(0,p));i.d(e,d)},66206:function(t,e,i){"use strict";i.d(e,{elementToItem:function(){return n},getItem:function(){return s}});var o=i(23211);let s=(t,e,i="a")=>o.Dom.closest(t,t=>o.Dom.isTag(t,i),e),n=(t,e)=>{let{key:i}=t.dataset,{item:o}=e[i||""];return o}},66547:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66862:function(t,e,i){"use strict";i.d(e,{hasPreviousBlock:function(){return s}});var o=i(23211);function s(t,e){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),e.editor)}},67176:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67399:function(t,e,i){"use strict";i.d(e,{ContextMenu:function(){return l}});var o=i(31635),s=i(91672),n=i(17312),r=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(t,e,i){let o=this;o.clear(),(0,n.isArray)(i)&&(i.forEach(t=>{if(!t)return;let e=(0,r.Button)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction(e=>(t.exec?.call(o,e),o.clear(),o.close(),!1)),this.append(e)}),this.open(()=>({left:t,top:e,width:0,height:0}),!0))}}l=(0,o.__decorate)([s.component],l)},67447:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},67582: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(79803);let h=!n.IS_ES_NEXT&&n.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,i=(0,c.offset)(t.container,t,t.od,!0),o=t.getMode()===n.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>i.top&&e+t.o.toolbarStickyOffset<i.top+i.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let s=t.toolbarContainer;s&&(o?this.addSticky(s):this.removeSticky(s)),t.e.fire("toggleSticky",o)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){a.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...t){super(...t),(0,o._)(this,"__isToolbarStuck",!1),(0,o._)(this,"__dummyBox",void 0),(0,o._)(this,"__createDummy",t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)}),(0,o._)(this,"addSticky",t=>{this.__isToolbarStuck||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,c.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,c.css)(this.__dummyBox,{height:t.offsetHeight})}),(0,o._)(this,"removeSticky",t=>{this.__isToolbarStuck&&((0,c.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,s.__decorate)([(0,r.throttle)()],d.prototype,"__onScroll",null),l.pluginSystem.add("sticky",d)},68097:function(t,e,i){"use strict";i.d(e,{RecognizeManager:function(){return c}});var o=i(25045),s=i(31635),n=i(84839),r=i(60216),a=i(32560),l=i(94092);class c extends r.Eventify{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}destruct(){this.stop(),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(t=>{t!==this&&t.stop()});try{this._api.start()}catch(t){this._onError(t),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,e){return this._api.addEventListener(t,e),this}__off(t,e){return this._api.removeEventListener(t,e),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.PII),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let e=0;e<t.results.length;e++){let i=t.results.item(e);if(i.length){let{transcript:t}=i.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),("language-unavailable"===t.error||"language-not-supported"===t.error)&&this.emit("error","Language unavailable"),this._makeSound(l.WARN),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,a.sound)({frequency:t})}constructor(t,e){super(),(0,o._)(this,"async",void 0),(0,o._)(this,"_lang",void 0),(0,o._)(this,"_continuous",void 0),(0,o._)(this,"_interimResults",void 0),(0,o._)(this,"sound",void 0),(0,o._)(this,"_isEnabled",void 0),(0,o._)(this,"_restartTimeout",void 0),(0,o._)(this,"_onSpeechStart",void 0),(0,o._)(this,"_api",void 0),(0,o._)(this,"__interimResults",void 0),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=e,c._instances.add(this)}}(0,o._)(c,"_instances",new Set),(0,s.__decorate)([n.autobind],c.prototype,"_onResults",null),(0,s.__decorate)([n.autobind],c.prototype,"_onProgress",null),(0,s.__decorate)([n.autobind],c.prototype,"_onError",null)},68502:function(t,e,i){"use strict";i(37102);var o=i(28686),s=i(37427),n=i(75587),r=i(5266);r.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,o.isString)(t))?-1!==t.toLowerCase().indexOf(e):(0,o.isString)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,o.isString)(t.file)||-1!==t.file.toLowerCase().indexOf(e),sortBy:"changed-desc",sort(t,e,i){let[n,r]=i.toLowerCase().split("-"),a="asc"===r,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,o.isString)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[n]||"name"===n)return(0,o.isString)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,o.isString)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(t.changed).getTime(),o=new Date(e.changed).getTime();return a?i-o:o-i}case"size":{let i=(0,s.humanSizeToBytes)(t.size),o=(0,s.humanSizeToBytes)(e.size);return a?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,i){let o=this.options,s=this.files.getFullElName("item"),n=o.showFileName,r=o.showFileSize&&t.size,a=o.showFileChangeTime&&t.time,l="";void 0!==t.file&&(l=t.file);let c=`<div class="${s}-info">${n?`<span class="${s}-info-filename">${l}</span>`:""}${r?`<span class="${s}-info-filesize">${t.size}</span>`:""}${a?`<span class="${s}-info-filechanged">${a}</span>`:""}</div>`;return`<a
210
+ `,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},59400:function(t,e,i){"use strict";i.d(e,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return s.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return n.UITooltip}});var o=i(53681),s=i(15367),n=i(95399)},59609:function(t,e,i){"use strict";i.d(e,{ViewComponent:function(){return n}});var o=i(25045),s=i(80251);class n extends s.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),(0,o._)(this,"jodit",void 0),this.setParentView(t)}}},59758:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(28077),r=i(18855),a=i(29434),l=i(5266),c=i(34045),u=i.n(c),h=i(39199),d=i.n(h);a.Icon.set("redo",u()).set("undo",d()),l.Config.prototype.controls.redo={mode:s.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:s.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class p extends r.Plugin{beforeDestruct(){}afterInit(t){let e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}n.pluginSystem.add("redoUndo",p)},59807:function(t,e,i){"use strict";i.d(e,{LocalStorageProvider:function(){return n},canUsePersistentStorage:function(){return s}});var o=i(25045);let s=(t="localStorage")=>{let e=new Map;if(e.has(t))return e.get(t);let i="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(i,"1");let s="1"===o.getItem(i);return o.removeItem(i),e.set(t,s),s}catch{}return e.set(t,!1),!1};class n{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,e){try{let i=this.storage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[t]=e,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch{}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch{}return this}get(t){try{let e=this.storage.getItem(this.rootKey),i=e?JSON.parse(e):{};return void 0!==i[t]?i[t]:void 0}catch{}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch{}return this}constructor(t,e="localStorage"){(0,o._)(this,"rootKey",void 0),(0,o._)(this,"strategy",void 0),this.rootKey=t,this.strategy=e}}},59827:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59841:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return s.CommitStyle},Selection:function(){return o.Selection}});var o=i(98595),s=i(84578)},60162:function(t,e,i){"use strict";var o=i(36400),s=i(29434),n=i(5266),r=i(40037),a=i.n(r),l=i(83207),c=i.n(l);let u=(t,e,{control:i})=>{let s="button"+i.command,n=(i.args&&i.args[0])??(0,o.dataBind)(t,s);(0,o.dataBind)(t,s,n),t.execCommand(i.command,!1,"default"===n?null:n)};s.Icon.set("ol",a()).set("ul",c()),n.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},n.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},60216:function(t,e,i){"use strict";i.d(e,{Eventify:function(){return s}});var o=i(25045);class s{on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let i;return this.__map.has(t)&&this.__map.get(t)?.forEach(t=>{i=t(...e)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},60636: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 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},60898:function(t,e,i){"use strict";i.d(e,{inView:function(){return s},scrollIntoViewIfNeeded:function(){return n}});var o=i(23211);function s(t,e,i){let o=t.getBoundingClientRect(),s=t,n=o.top,r=o.height;for(;s&&s!==e&&s.parentNode;)if(!(n<=(o=(s=s.parentNode).getBoundingClientRect()).bottom)||n+r<=o.top)return!1;return n<=(i.documentElement&&i.documentElement.clientHeight||0)}function n(t,e,i){o.Dom.isHTMLElement(t)&&!s(t,e,i)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),s(t,e,i)||t.scrollIntoView())}},60936:function(t,e,i){"use strict";i.r(e),i.d(e,{Ajax:function(){return p.Ajax},Alert:function(){return r.Alert},Async:function(){return l.Async},AsyncStorage:function(){return k.AsyncStorage},Button:function(){return f.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return o.Component},Confirm:function(){return r.Confirm},ContextMenu:function(){return n.ContextMenu},Create:function(){return c.Create},Dialog:function(){return r.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return s},History:function(){return _.History},Icon:function(){return f.Icon},ImageEditor:function(){return b.ImageEditor},IndexedDBProvider:function(){return k.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return k.LocalStorageProvider},MemoryStorageProvider:function(){return k.MemoryStorageProvider},Plugin:function(){return d.Plugin},PluginSystem:function(){return x.PluginSystem},Popup:function(){return f.Popup},ProgressBar:function(){return f.ProgressBar},Prompt:function(){return r.Prompt},Response:function(){return p.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return k.Storage},StorageKey:function(){return k.StorageKey},Table:function(){return S.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return E.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return I.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return f.UIBlock},UIButton:function(){return f.UIButton},UIButtonGroup:function(){return f.UIButtonGroup},UIButtonState:function(){return f.UIButtonState},UICheckbox:function(){return f.UICheckbox},UIElement:function(){return f.UIElement},UIFileInput:function(){return f.UIFileInput},UIForm:function(){return f.UIForm},UIGroup:function(){return f.UIGroup},UIInput:function(){return f.UIInput},UIList:function(){return f.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return f.UISelect},UISeparator:function(){return f.UISeparator},UISpacer:function(){return f.UISpacer},UITextArea:function(){return f.UITextArea},UITooltip:function(){return f.UITooltip},Uploader:function(){return T.Uploader},View:function(){return m.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return k.canUseIndexedDB},canUsePersistentStorage:function(){return k.canUsePersistentStorage},clearUseIndexedDBCache:function(){return k.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=i(16964),s=i(65946),n=i(67399),r=i(37333),a=i(17610),l=i(91231),c=i(79821),u=i(27795),h=i(1496),d=i(91206),p=i(73714),f=i(4099),m=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),S=i(98803),C=i(39709),E=i(42573),I=i(6209),T=i(94925),x=i(85305),D=i(59841),k=i(25222)},61077:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},61334:function(t,e,i){"use strict";var o=i(27795),s=i(7909),n=i(33201),r=i(29434),a=i(31125),l=i(66206),c=i(18272),u=i(1305),h=i(53202),d=i(43271);let p="jodit-file-browser-preview",f=(t="next",e="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${t}">`+r.Icon.get("angle-"+e)+"</a>";e.default=t=>{if(!t.o.contextMenu)return()=>{};let e=(0,c.makeContextMenu)(t);return i=>{let r=(0,l.getItem)(i.target,t.container);if(!r)return;let c=r,m=t.options,g=t=>(0,s.attr)(c,t)||"";return t.async.setTimeout(()=>{let s=(0,l.elementToItem)(r,(0,a.elementsMap)(t));s&&(t.state.activeElements=[s],e.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>d.openImageEditor.call(t,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,u.deleteFile)(t,g("data-name"),g("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,h.loadTree)(t).catch(t.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){let e=t.dlg({buttons:["fullsize","dialog.close"]}),i=t.c.div(p,'<div class="jodit-icon_loader"></div>'),s=t.c.div(p+"__box"),r=t.c.fromHTML(f()),a=t.c.fromHTML(f("prev","left")),l=n=>{let l=t.c.element("img");l.setAttribute("src",n);let u=()=>{t.isInDestruct||(t.e.off(l,"load"),o.Dom.detach(i),m.showPreviewNavigation&&(o.Dom.prevWithClass(c,t.files.getFullElName("item"))&&i.appendChild(a),o.Dom.nextWithClass(c,t.files.getFullElName("item"))&&i.appendChild(r)),i.appendChild(s),s.appendChild(l),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(l,"load",u),l.complete&&u()};t.e.on([r,a],"click",function(){if(!(c=this===r?o.Dom.nextWithClass(c,t.files.getFullElName("item")):o.Dom.prevWithClass(c,t.files.getFullElName("item"))))throw(0,n.error)("Need element");o.Dom.detach(i),o.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',l(g("href"))}),t.e.on("beforeDestruct",()=>{e.destruct()}),e.container.classList.add(p+"__dialog"),e.setContent(i),e.setPosition(),e.open(),l(g("href")),t.events.on("beforeDestruct",()=>{e.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){let e=g("href");e&&t.ow.open(e)}}]))},t.defaultTimeout),t.e.on("beforeClose",()=>{e.close()}).on("beforeDestruct",()=>e.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},61466:function(t,e,i){"use strict";i.d(e,{UIMessage:function(){return r}});var o=i(31635),s=i(91672),n=i(4099);class r extends n.UIElement{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}}r=(0,o.__decorate)([s.component],r)},61764:function(t,e,i){"use strict";i.d(e,{ToolbarSelect:function(){return l}});var o=i(31635),s=i(84839),n=i(62101),r=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:t,data:e}=this.control;if(t){let i=this.state.value||(e&&(0,r.isString)(e.currentValue)?e.currentValue:void 0);i||(i=Object.keys(t)[0]);let o=((0,n.isPlainObject)(t)&&t[i.toString()]||i).toString();this.state.text=this.control.textTemplate?.(this.jodit,o)??o}}}l=(0,o.__decorate)([s.component],l)},62101:function(t,e,i){"use strict";i.d(e,{isPlainObject:function(){return s}});var o=i(3513);function s(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},62623:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return C}});var o=i(25045),s=i(31635),n=i(16964),r=i(81937),a=i(84839),l=i(68616),c=i(1496),u=i(65946),h=i(25222),d=i(80512),p=i(2222),f=i(5266);i(68502);var m=i(1488),g=i(53202),_=i(34269),v=i(36664),b=i(74833),y=i(17780),w=i(18272),S=i(63425);class C extends p.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let e=[],i=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(e.push(o),i.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:e,isImages:i}),this.close()}return!1}}get _dialog(){let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return h.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){!t||(0,u.isAbortError)(t)||((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise((e,i)=>{if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let o=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let e=new Date().getTime();e-o<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),o=e}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let s=this.c.div();this.toolbar?.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(e,i).finally(()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){return(this.o.buttons??[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){let e=this,i=t?.options?.uploader,o=(0,u.ConfigProto)(i||{},f.Config.defaultOptions.uploader),s=()=>(0,m.loadItems)(this);e.uploader=e.getInstance("Uploader",o),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,s,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),e.e.on("bindUploader.filebrowser",t=>{e.uploader.bind(t,s,e.errorHandler)})}destruct(){!this.isInDestruct&&((0,a.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){let t=this.__getButtons();!function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,this.toolbar?.build(t))}constructor(t){super(t),(0,o._)(this,"browser",this.c.div(this.componentName)),(0,o._)(this,"status_line",this.c.div(this.getFullElName("status"))),(0,o._)(this,"tree",new S.FileBrowserTree(this)),(0,o._)(this,"files",new S.FileBrowserFiles(this)),(0,o._)(this,"state",(0,c.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1})),(0,o._)(this,"errorHandler",t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))}),(0,o._)(this,"uploader",void 0),(0,o._)(this,"close",()=>{this._dialog.close()}),(0,o._)(this,"__prevButtons",[]),this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},f.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),v.selfListeners.call(this),_.nativeListeners.call(this),b.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:e,storeSortBy:i,storeLastOpenedFolder:s}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=e&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=i&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(s){const t=this.storage.get("currentPath"),e=this.storage.get("currentSource");this.state.currentPath=t??"",this.state.currentSource=e??""}this.initUploader(this),this.setStatus(n.STATUSES.ready)}}(0,s.__decorate)([a.cache],C.prototype,"dataProvider",null),(0,s.__decorate)([a.cache],C.prototype,"_dialog",null),(0,s.__decorate)([a.cache],C.prototype,"storage",null),(0,s.__decorate)([a.autobind],C.prototype,"status",null),(0,s.__decorate)([a.autobind],C.prototype,"open",null),(0,s.__decorate)([(0,l.watch)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,s.__decorate)([(0,a.derive)(d.Dlgs)],C)},63425:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return s.FileBrowserTree}});var o=i(86122),s=i(55376)},63468:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return u}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(23211),l=i(65946),c=i(96007);class u extends c.UIElement{className(){return"UIGroup"}getRole(){return"list"}get allChildren(){let t=[],e=[...this.elements];for(;e.length;){let i=e.shift();(0,l.isArray)(i)?e.push(...i):n.Component.isInstanceOf(i,u)?e.push(...i.elements):i&&t.push(i)}return t}update(){this.elements.forEach(t=>t.update()),this.setMod("size",this.buttonSize)}append(t,e){let i;if((0,l.isArray)(t)){if("number"==typeof e)throw Error("You can not use index when append array of elements");return t.forEach(t=>this.append(t,e)),this}if("number"==typeof e?(i=Math.min(Math.max(0,e),this.elements.length),this.elements.splice(i,0,t)):this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e&&"string"==typeof e){let i=this.getElm(e);if(null==i)throw Error("Element does not exist");i.appendChild(t.container)}else this.appendChildToContainer(t.container,i);return t.parentElement=this,this}afterSetMod(t,e){this.syncMod&&this.elements.forEach(i=>i.setMod(t,e))}appendChildToContainer(t,e){void 0===e||e<0||e>this.elements.length-1||null==this.container.children[e]?this.container.appendChild(t):this.container.insertBefore(t,this.container.children[e])}remove(t){let e=this.elements.indexOf(t);return -1!==e&&(this.elements.splice(e,1),a.Dom.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach(t=>t.destruct()),this.elements.length=0,this}setParentView(t){return this.elements?.forEach(e=>e.setParentView(t)),super.setParentView(t)}destruct(){return this.clear(),super.destruct()}constructor(t,e,i){super(t,i),(0,o._)(this,"options",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach(t=>t&&this.append(t)),i?.name&&(this.name=i.name)}}(0,s.__decorate)([(0,r.watch)("buttonSize")],u.prototype,"update",null),u=(0,s.__decorate)([r.component],u)},63837:function(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63974:function(t,e,i){"use strict";var o=i(25045),s=i(27795),n=i(28077),r=i(65946),a=i(4040),l=i(91206);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,e=t.s.current();if(e&&s.Dom.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!e||!s.Dom.closest(e,"table",t.editor))){t.editor.innerHTML="";let e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let e=t.s.range;e.deleteContents();let i=t.createInside.fake();e.insertNode(i);let o=s.Dom.findSibling(i,!0),n=s.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,n),e.setStartBefore(i),e.collapse(!0),this.__moveCursorInEditableSibling(t,o,i,e),this.__addBrInEmptyBlock(i,n,e),s.Dom.safeRemove(i),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,i){e=this.__defineRightLeftBox(e),!s.Dom.isList(i)&&!s.Dom.isTag(i,"table")&&s.Dom.isBlock(i)&&s.Dom.isBlock(e)&&(s.Dom.append(e,t),s.Dom.moveContent(i,e),s.Dom.safeRemove(i)),s.Dom.isList(i)&&s.Dom.isLeaf(i.firstElementChild)&&s.Dom.isEmpty(i.firstElementChild)&&s.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(t){if(!s.Dom.isList(t))return t;let e=t.lastElementChild;return s.Dom.isLeaf(e)||(e=this.j.createInside.element("li"),s.Dom.append(t,e)),e}__addBrInEmptyBlock(t,e,i){let o=this.j;if(t.isConnected&&s.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let e=o.createInside.element("br");s.Dom.after(t,e),i.setStartBefore(e),i.collapse(!0)}if(s.Dom.isTag(e,"table")){let t=(0,r.$$)("td,th",e).shift();s.Dom.isCell(t)&&s.Dom.isEmpty(t)&&s.Dom.append(t,o.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,i,o){if(!e||!s.Dom.isText(e)){let e=s.Dom.closest(i,s.Dom.isBlock,t.editor)??t.editor,n=s.Dom.prev(i,s.Dom.isText,e);n&&(o.setStartAfter(n),o.collapse(!0),s.Dom.safeRemove(i))}}}(0,o._)(c,"requires",["backspace"]),n.pluginSystem.add("deleteCommand",c)},64094:function(t,e,i){"use strict";var o=i(23211),s=i(28077),n=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){let i=e.control,s=t.s.current();if(s){let r=o.Dom.closest(s,o.Dom.isBlock,t.editor)||t.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,n.isPlainObject)(c)?c[l]:c.includes(l))&&(t.o.textIcons||"select"===i.component?e.state.text=l:e.state.icon.name=l,u.currentValue=l)}},isActive(t,e){let i=t.s.current();if(!i||!e.control.defaultValue)return!1;let s=o.Dom.closest(i,o.Dom.isBlock,t.editor)||t.editor;return -1===e.control.defaultValue.indexOf((0,a.css)(s,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},s.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let e=e=>(t.s.focus(),t.s.eachSelection(i=>{if(!i)return;let s=o.Dom.up(i,o.Dom.isBlock,t.editor);s||(s=o.Dom.wrapInline(i,t.o.enterBlock,t)),(0,r.alignElement)(e,s)}),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)})},64222: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(91206),h=i(63425);class d extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var e;let i=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,c.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,e=i,a.Dom.isElement(e)&&e.classList.contains(h.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let e=this.j.s.sel,i=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null),o=this.__getWorkFragment(i,t);e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,i),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,e){let i=null;if(!this.draggable&&t)i=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,e]="1"===(0,c.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(t)).setAttribute(e,(0,c.attr)(this.draggable,"data-src")||(0,c.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,c.attr)(i,e)||"")}else i=(0,c.dataBind)(this.draggable,"target");else this.getText(e)&&(i=this.j.createInside.fromHTML(this.getText(e)));return i}__insertFragment(t,e){this.j.s.insertNode(t,!1,!1),e&&t.firstChild&&t.lastChild&&(e.setStartBefore(t.firstChild),e.setEndAfter(t.lastChild),this.j.s.selectRange(e),this.j.e.fire("synchro")),a.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...t){super(...t),(0,o._)(this,"isFragmentFromEditor",!1),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"startDragPoint",{x:0,y:0}),(0,o._)(this,"draggable",null),(0,o._)(this,"bufferRange",null),(0,o._)(this,"getText",t=>{let e=(0,c.getDataTransfer)(t);return e?e.getData(n.TEXT_HTML)||e.getData(n.TEXT_PLAIN):null})}}(0,s.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,s.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,s.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,s.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",d)},64637:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64847:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return o.UIGroup},UIList:function(){return s.UIList},UISeparator:function(){return n.UISeparator},UISpacer:function(){return r.UISpacer}});var o=i(63468),s=i(97959),n=i(35676),r=i(27987)},65015:function(t,e,i){"use strict";i.d(e,{sanitizeAttributes:function(){return n}});var o=i(23211),s=i(65946);function n(t,e,i){return!!(o.Dom.isElement(e)&&(0,s.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||i}},65230:function(t,e,i){"use strict";var o=i(23211),s=i(29434),n=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);n.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},s.Icon.set("link",a()).set("unlink",c()),n.Config.prototype.controls.unlink={exec(t,e){let i=o.Dom.closest(e,"a",t.editor);i&&o.Dom.unwrap(i),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},n.Config.prototype.controls.link={isActive(t){let e=t.s.current();return!!(e&&o.Dom.closest(e,"a",t.editor))},popup:(t,e,i)=>t.e.fire("generateLinkForm.link",e,i),tags:["a"],tooltip:"Insert link"}},65273:function(t,e,i){"use strict";i.d(e,{UIInput:function(){return d}});var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(88475),l=i(93640),c=i(96007),u=i(81488),h=i(29434);class d extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?r.Dom.after(this.nativeInput,this.clearButton):r.Dom.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let t=this.nativeInput,{name:e,icon:i,type:o,ref:s,required:n,placeholder:a,autocomplete:c,label:u}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",o),(0,l.attr)(t,"data-ref",s||e),(0,l.attr)(t,"ref",s||e),(0,l.attr)(t,"required",n||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),i&&h.Icon.exists(i)?(r.Dom.before(t,this.icon),this.icon.innerHTML=h.Icon.get(i)):r.Dom.safeRemove(this.icon),u?(r.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):r.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.inputValidators.required),this.state.validators?.forEach(t=>{let e=u.inputValidators[t];e&&this.validators.add(e)})}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):r.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){let t=this.state.value.toString();t!==this.value&&(this.value=t)}onChangeValue(){let{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){this.error="";let t=(0,a.toArray)(this.validators).every(t=>t(this));return this.__markInputInvalid(),t}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(t){let e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),e.appendChild(this.wrapper),(0,l.attr)(i,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(t,e){super(t,e),(0,o._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,o._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,o._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,o._)(this,"state",{...d.defaultState}),(0,o._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,o._)(this,"validators",new Set([])),e?.value!==void 0&&(e.value=e.value.toString()),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,o._)(d,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,s.__decorate)([(0,n.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,s.__decorate)([(0,n.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,s.__decorate)([(0,n.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,n.debounce)()],d.prototype,"onChangeState",null),(0,s.__decorate)([(0,n.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,s.__decorate)([n.autobind],d.prototype,"onChangeValue",null),d=(0,s.__decorate)([n.component],d)},65701:function(t,e,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},65710:function(t,e,i){"use strict";i.d(e,{insertParagraph:function(){return n}});var o=i(23211),s=i(60898);function n(t,e,i,n){let r="br"===i.toLowerCase(),{createInside:a}=e,l=a.element(i),c=a.element("br");return r||l.appendChild(c),n&&n.cssText&&l.setAttribute("style",n.cssText),o.Dom.after(t,l),o.Dom.before(r?l:c,t),(0,s.scrollIntoViewIfNeeded)(l,e.editor,e.ed),l}},65946:function(t,e,i){"use strict";i.r(e),i.d(e,{CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return s.clearTimeout},colorToHex:function(){return r.colorToHex},fuzzySearchIndex:function(){return u.fuzzySearchIndex},getContentWidth:function(){return c.getContentWidth},getScrollParent:function(){return c.getScrollParent},hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return n.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return u.i18n},innerWidth:function(){return c.innerWidth},isAbortError:function(){return n.isAbortError},isArray:function(){return n.isArray},isBoolean:function(){return n.isBoolean},isDestructable:function(){return n.isDestructable},isEqual:function(){return n.isEqual},isFastEqual:function(){return n.isFastEqual},isFunction:function(){return n.isFunction},isHTML:function(){return n.isHTML},isHtmlFromWord:function(){return n.isHtmlFromWord},isInitable:function(){return n.isInitable},isInt:function(){return n.isInt},isJoditObject:function(){return n.isJoditObject},isLicense:function(){return n.isLicense},isMarker:function(){return n.isMarker},isNativeFunction:function(){return n.isNativeFunction},isNumber:function(){return n.isNumber},isNumeric:function(){return n.isNumeric},isPlainObject:function(){return n.isPlainObject},isPromise:function(){return n.isPromise},isSet:function(){return n.isSet},isString:function(){return n.isString},isStringArray:function(){return n.isStringArray},isURL:function(){return n.isURL},isValidName:function(){return n.isValidName},isViewObject:function(){return n.isViewObject},isVoid:function(){return n.isVoid},isWindow:function(){return n.isWindow},kebabCase:function(){return u.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},position:function(){return c.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return s.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=i(45664),s=i(61077),n=i(28686),r=i(7018),a=i(82658),l=i(97022),c=i(86878),u=i(97642),h=i(93640),d={};for(var p in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(d[p]=(function(t){return h[t]}).bind(0,p));i.d(e,d)},66206:function(t,e,i){"use strict";i.d(e,{elementToItem:function(){return n},getItem:function(){return s}});var o=i(23211);let s=(t,e,i="a")=>o.Dom.closest(t,t=>o.Dom.isTag(t,i),e),n=(t,e)=>{let{key:i}=t.dataset,{item:o}=e[i||""];return o}},66547:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66862:function(t,e,i){"use strict";i.d(e,{hasPreviousBlock:function(){return s}});var o=i(23211);function s(t,e){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),e.editor)}},67176:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67399:function(t,e,i){"use strict";i.d(e,{ContextMenu:function(){return l}});var o=i(31635),s=i(91672),n=i(17312),r=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(t,e,i){let o=this;o.clear(),(0,n.isArray)(i)&&(i.forEach(t=>{if(!t)return;let e=(0,r.Button)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction(e=>(t.exec?.call(o,e),o.clear(),o.close(),!1)),this.append(e)}),this.open(()=>({left:t,top:e,width:0,height:0}),!0))}}l=(0,o.__decorate)([s.component],l)},67447:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},67582: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(79803);let h=!n.IS_ES_NEXT&&n.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,i=(0,c.offset)(t.container,t,t.od,!0),o=t.getMode()===n.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>i.top&&e+t.o.toolbarStickyOffset<i.top+i.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let s=t.toolbarContainer;s&&(o?this.addSticky(s):this.removeSticky(s)),t.e.fire("toggleSticky",o)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){a.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...t){super(...t),(0,o._)(this,"__isToolbarStuck",!1),(0,o._)(this,"__dummyBox",void 0),(0,o._)(this,"__createDummy",t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)}),(0,o._)(this,"addSticky",t=>{this.__isToolbarStuck||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,c.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,c.css)(this.__dummyBox,{height:t.offsetHeight})}),(0,o._)(this,"removeSticky",t=>{this.__isToolbarStuck&&((0,c.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,s.__decorate)([(0,r.throttle)()],d.prototype,"__onScroll",null),l.pluginSystem.add("sticky",d)},68097:function(t,e,i){"use strict";i.d(e,{RecognizeManager:function(){return c}});var o=i(25045),s=i(31635),n=i(84839),r=i(60216),a=i(32560),l=i(94092);class c extends r.Eventify{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}destruct(){this.stop(),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(t=>{t!==this&&t.stop()});try{this._api.start()}catch(t){this._onError(t),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,e){return this._api.addEventListener(t,e),this}__off(t,e){return this._api.removeEventListener(t,e),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.PII),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let e=0;e<t.results.length;e++){let i=t.results.item(e);if(i.length){let{transcript:t}=i.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),("language-unavailable"===t.error||"language-not-supported"===t.error)&&this.emit("error","Language unavailable"),this._makeSound(l.WARN),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,a.sound)({frequency:t})}constructor(t,e){super(),(0,o._)(this,"async",void 0),(0,o._)(this,"_lang",void 0),(0,o._)(this,"_continuous",void 0),(0,o._)(this,"_interimResults",void 0),(0,o._)(this,"sound",void 0),(0,o._)(this,"_isEnabled",void 0),(0,o._)(this,"_restartTimeout",void 0),(0,o._)(this,"_onSpeechStart",void 0),(0,o._)(this,"_api",void 0),(0,o._)(this,"__interimResults",void 0),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=e,c._instances.add(this)}}(0,o._)(c,"_instances",new Set),(0,s.__decorate)([n.autobind],c.prototype,"_onResults",null),(0,s.__decorate)([n.autobind],c.prototype,"_onProgress",null),(0,s.__decorate)([n.autobind],c.prototype,"_onError",null)},68502:function(t,e,i){"use strict";i(37102);var o=i(28686),s=i(37427),n=i(75587),r=i(5266);r.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,o.isString)(t))?-1!==t.toLowerCase().indexOf(e):(0,o.isString)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,o.isString)(t.file)||-1!==t.file.toLowerCase().indexOf(e),sortBy:"changed-desc",sort(t,e,i){let[n,r]=i.toLowerCase().split("-"),a="asc"===r,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,o.isString)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[n]||"name"===n)return(0,o.isString)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,o.isString)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(t.changed).getTime(),o=new Date(e.changed).getTime();return a?i-o:o-i}case"size":{let i=(0,s.humanSizeToBytes)(t.size),o=(0,s.humanSizeToBytes)(e.size);return a?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,i){let o=this.options,s=this.files.getFullElName("item"),n=o.showFileName,r=o.showFileSize&&t.size,a=o.showFileChangeTime&&t.time,l="";void 0!==t.file&&(l=t.file);let c=`<div class="${s}-info">${n?`<span class="${s}-info-filename">${l}</span>`:""}${r?`<span class="${s}-info-filesize">${t.size}</span>`:""}${a?`<span class="${s}-info-filechanged">${a}</span>`:""}</div>`;return`<a
211
211
  data-jodit-file-browser-item="true"
212
212
  data-is-file="${+!t.isImage}"
213
213
  draggable="true"
@@ -250,7 +250,7 @@
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 R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},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.9",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",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,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];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(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&&`
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 R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},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.11",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",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,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];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(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
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)?_.appendChild(t.c.div("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",`
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},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">
@@ -264,5 +264,5 @@
264
264
  ${i("contains detailed help for using")}
265
265
  </div>
266
266
  <div>${i("Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.")}</div>
267
- </div>`),(0,n.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},s.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return s}});var o=i(23211);function s(t,e,i,s,n,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),s=i(16964),n=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends s.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!n.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,e,i).finally(o),!1;if(n.IS_IE&&!n.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,e,i,o);if((0,l.hasItems)(u)){let{items:n}=u;for(r=0;r<n.length;r+=1)if("file"===n[r].kind&&"image/png"===n[r].type){if(a=n[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[a],e,i,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",r):s.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let s=this;s.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",n=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),(0,l.sendFiles)(s,n.dataTransfer.files,e,i).finally(o))});let n=t.querySelector("input[type=file]");n&&s.j.e.on(n,"change",()=>{(0,l.sendFiles)(s,n.files,e,i).then(()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:s}=o,n=(0,r.isFunction)(i)?i:s.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{s.isSuccess.call(o,t)?((0,r.isFunction)(e)?e:s.defaultHandlerSuccess).call(o,s.process.call(o,t)):n.call(o,(0,r.error)(s.getMessage.call(o,t)))}).catch(t=>n.call(o,t))}upload(t){return this.async.promise((e,i)=>{(0,l.sendFiles)(this,t,e,i)})}destruct(){this.setStatus(s.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),s=i(81937),n=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==s.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===s.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},i=()=>{t.isInDestruct||t.getRealMode()!==s.MODE_SOURCE&&t.getMode()!==s.MODE_SPLIT||(this.fromWYSIWYG(),e())};t.e.on("afterSetMode",i),i(),this.aceExists()||(0,n.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,n.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return f}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class f extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,f).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(p,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(n.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,s.__decorate)([r.autobind],f.prototype,"__onMouseLeave",null),(0,s.__decorate)([r.autobind],f.prototype,"__onMouseEnter",null),(0,s.__decorate)([r.autobind],f.prototype,"__hide",null),(0,s.__decorate)([r.autobind],f.prototype,"__hideDelay",null),f=(0,s.__decorate)([r.component],f)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),s=i(27795),n=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,n.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let n=e.firstChild;if(s.Dom.safeRemove(e),n&&n.hasAttribute("src")){let e=(0,r.attr)(n,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return s}});var o=i(23211);function s(t,e,i,s){if(s&&o.Dom.isElement(e)&&!0!==s[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[e.nodeName][t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),s=i(93640),n=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,n.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,s.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return d}});var o=i(25045),s=i(31635),n=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(23183),u=i(81987),h=i(29434);class d extends n.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>n.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?d.closestElement(i.container.parentElement,d):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&n.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>h.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}d=(0,s.__decorate)([(0,r.derive)(u.Mods,c.Elms)],d)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),s=i(98394),n=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:s.INITIAL,element:c.value,next:n.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(n.states.START,n.transactions);for(u.element=c.value;t.getState()!==n.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(s&&(0,l.isHtmlFromWord)(e))&&(n?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case n.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case n.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,s.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),s=i(62101),n=i(29434),r=i(5266),a=i(29348),l=i.n(a);n.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,s=t.s.current(),n=o.Dom.closest(s,o.Dom.isBlock,t.editor);return n?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,n=i.list;return(0,s.isPlainObject)(n)&&n[o.toString()]&&t.o.textIcons&&(e.state.text=n[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,s.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return s.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return s.normalizeCssNumericValue},normalizeCssValue:function(){return s.normalizeCssValue},normalizeKeyAliases:function(){return n.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),s=i(19147),n=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return a}});var o=i(23211),s=i(95971),n=i(82794),r=i(98394);function a(t,e,i){let a=i.e.fire(`${r._PREFIX}BeforeWrapList`,r.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),l=a.previousElementSibling,c=a.nextElementSibling,u=o.Dom.isTag(l,t.element)?l:null;return u??=o.Dom.isTag(c,t.element)?c:null,o.Dom.isList(u)&&(0,s.isSameAttributes)(u,t.options.attributes)||(u=i.createInside.element(t.element),(0,n.toggleAttributes)(t,u,i,r.INITIAL),o.Dom.before(a,u)),l===u?o.Dom.append(u,a):o.Dom.prepend(u,a),o.Dom.isTag(u.nextElementSibling,t.element)&&(0,s.elementsEqualAttributes)(u,u.nextElementSibling)&&(o.Dom.append(u,Array.from(u.nextElementSibling.childNodes)),o.Dom.safeRemove(u.nextElementSibling)),i.e.fire(`${r._PREFIX}AfterWrapList`,r.WRAP,u,t),u}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return n}});var o=i(81937),s=i(85932);let n=(t,e="en")=>"auto"!==t&&(0,s.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return s.fuzzySearchIndex},i18n:function(){return n.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return n.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),s=i(57626),n=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97743:function(t,e,i){"use strict";i.d(e,{SpeechRecognition:function(){return s}});var o=i(81937);let s=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return _}});var o=i(25045),s=i(31635),n=i(80251),r=i(91672),a=i(29200),l=i(68616),c=i(32328),u=i(53681),h=i(63468),d=i(35676),p=i(27987),f=i(2496),m=i(15982),g=i(40253);class _ extends h.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new h.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>n.Component.isInstanceOf(t,u.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof u.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,c.splitArray)(t),this.clear();let o=!1,s=this.makeGroup();this.append(s),s.setMod("line",!0);let n=t=>{let n=null;switch(t.name){case`
267
+ </div>`),(0,n.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},s.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return s}});var o=i(23211);function s(t,e,i,s,n,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),s=i(16964),n=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends s.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!n.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,e,i).finally(o),!1;if(n.IS_IE&&!n.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,e,i,o);if((0,l.hasItems)(u)){let{items:n}=u;for(r=0;r<n.length;r+=1)if("file"===n[r].kind&&"image/png"===n[r].type){if(a=n[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[a],e,i,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",r):s.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let s=this;s.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",n=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),(0,l.sendFiles)(s,n.dataTransfer.files,e,i).finally(o))});let n=t.querySelector("input[type=file]");n&&s.j.e.on(n,"change",()=>{(0,l.sendFiles)(s,n.files,e,i).then(()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:s}=o,n=(0,r.isFunction)(i)?i:s.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{s.isSuccess.call(o,t)?((0,r.isFunction)(e)?e:s.defaultHandlerSuccess).call(o,s.process.call(o,t)):n.call(o,(0,r.error)(s.getMessage.call(o,t)))}).catch(t=>n.call(o,t))}upload(t){return this.async.promise((e,i)=>{(0,l.sendFiles)(this,t,e,i)})}destruct(){this.setStatus(s.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),s=i(81937),n=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==s.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===s.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},i=()=>{t.isInDestruct||t.getRealMode()!==s.MODE_SOURCE&&t.getMode()!==s.MODE_SPLIT||(this.fromWYSIWYG(),e())};t.e.on("afterSetMode",i),i(),this.aceExists()||(0,n.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,n.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return f}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class f extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,f).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(p,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(n.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,s.__decorate)([r.autobind],f.prototype,"__onMouseLeave",null),(0,s.__decorate)([r.autobind],f.prototype,"__onMouseEnter",null),(0,s.__decorate)([r.autobind],f.prototype,"__hide",null),(0,s.__decorate)([r.autobind],f.prototype,"__hideDelay",null),f=(0,s.__decorate)([r.component],f)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),s=i(27795),n=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,n.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let n=e.firstChild;if(s.Dom.safeRemove(e),n&&n.hasAttribute("src")){let e=(0,r.attr)(n,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return s}});var o=i(23211);function s(t,e,i,s){if(s&&o.Dom.isElement(e)&&!0!==s[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[e.nodeName][t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),s=i(93640),n=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,n.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,s.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return p}});var o=i(25045),s=i(31635),n=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(7909),u=i(23183),h=i(81987),d=i(29434);class p extends n.ViewComponent{getRole(){return""}get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>n.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?p.closestElement(i.container.parentElement,p):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&n.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>d.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e);const i=this.getRole();i&&(0,c.attr)(this.container,"role",i),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}p=(0,s.__decorate)([(0,r.derive)(h.Mods,u.Elms)],p)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),s=i(98394),n=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:s.INITIAL,element:c.value,next:n.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(n.states.START,n.transactions);for(u.element=c.value;t.getState()!==n.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(s&&(0,l.isHtmlFromWord)(e))&&(n?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case n.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case n.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,s.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),s=i(62101),n=i(29434),r=i(5266),a=i(29348),l=i.n(a);n.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,s=t.s.current(),n=o.Dom.closest(s,o.Dom.isBlock,t.editor);return n?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,n=i.list;return(0,s.isPlainObject)(n)&&n[o.toString()]&&t.o.textIcons&&(e.state.text=n[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,s.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return s.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return s.normalizeCssNumericValue},normalizeCssValue:function(){return s.normalizeCssValue},normalizeKeyAliases:function(){return n.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),s=i(19147),n=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return a}});var o=i(23211),s=i(95971),n=i(82794),r=i(98394);function a(t,e,i){let a=i.e.fire(`${r._PREFIX}BeforeWrapList`,r.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),l=a.previousElementSibling,c=a.nextElementSibling,u=o.Dom.isTag(l,t.element)?l:null;return u??=o.Dom.isTag(c,t.element)?c:null,o.Dom.isList(u)&&(0,s.isSameAttributes)(u,t.options.attributes)||(u=i.createInside.element(t.element),(0,n.toggleAttributes)(t,u,i,r.INITIAL),o.Dom.before(a,u)),l===u?o.Dom.append(u,a):o.Dom.prepend(u,a),o.Dom.isTag(u.nextElementSibling,t.element)&&(0,s.elementsEqualAttributes)(u,u.nextElementSibling)&&(o.Dom.append(u,Array.from(u.nextElementSibling.childNodes)),o.Dom.safeRemove(u.nextElementSibling)),i.e.fire(`${r._PREFIX}AfterWrapList`,r.WRAP,u,t),u}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return n}});var o=i(81937),s=i(85932);let n=(t,e="en")=>"auto"!==t&&(0,s.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return s.fuzzySearchIndex},i18n:function(){return n.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return n.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),s=i(57626),n=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97743:function(t,e,i){"use strict";i.d(e,{SpeechRecognition:function(){return s}});var o=i(81937);let s=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return _}});var o=i(25045),s=i(31635),n=i(80251),r=i(91672),a=i(29200),l=i(68616),c=i(32328),u=i(53681),h=i(63468),d=i(35676),p=i(27987),f=i(2496),m=i(15982),g=i(40253);class _ extends h.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new h.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>n.Component.isInstanceOf(t,u.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof u.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,c.splitArray)(t),this.clear();let o=!1,s=this.makeGroup();this.append(s),s.setMod("line",!0);let n=t=>{let n=null;switch(t.name){case`
268
268
  `:(s=this.makeGroup()).setMod("line",!0),i=this.makeGroup(),s.append(i),this.append(s);break;case"|":o||(o=!0,n=new d.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let t=new p.UISpacer(this.j);s.append(t),i=this.makeGroup(),s.append(i),o=!1;break}default:o=!1,n="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}n&&(i||(i=this.makeGroup(),s.append(i)),i.append(n))},r=t=>!this.removeButtons.includes(t.name)&&(!t.isVisible||t.isVisible?.(this.j,t));return t.forEach(t=>{if((0,f.isButtonGroup)(t)){let e=t.buttons.filter(t=>t);e.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",t.group),s.append(i),(0,g.getStrongControlTypes)(e,this.j.o.controls).filter(r).forEach(n))}else{i||(i=this.makeGroup(),s.append(i));let e=(0,m.getControlType)(t,this.j.o.controls);r(e)&&n(e)}}),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new u.UIButton(this.j,{name:t.name})}constructor(...t){super(...t),(0,o._)(this,"mode","horizontal"),(0,o._)(this,"removeButtons",[])}}(0,s.__decorate)([(0,l.watch)("mode"),(0,a.hook)("ready")],_.prototype,"__onChangeMode",null),_=(0,s.__decorate)([r.component],_)},98394:function(t,e,i){"use strict";i.d(e,{CHANGE:function(){return n},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return r},UNWRAP:function(){return s},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",s="unwrap",n="change",r="unset",a="initial",l="replace",c="commitStyle"},98595:function(t,e,i){"use strict";i.d(e,{Selection:function(){return f}});var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(23211),l=i(65946),c=i(28686),u=i(28712),h=i(7470),d=i(84578),p=i(42259);class f{get j(){return this.jodit}errorNode(t){if(!a.Dom.isNode(t))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,c.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!a.Dom.isOrContains(this.area,e.startContainer))}createRange(t=!1){let e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){let t=this.sel,e=this.current();if(t&&e)for(let e=0;e<t.rangeCount;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!a.Dom.isOrContains(this.j.editor,t,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,e);if(o)return i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,e);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+n.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,e){let i=null;e&&(i=e.cloneRange()).collapse(t);let o=this.j.createInside.span();return o.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),o.style.lineHeight="0",o.style.display="none",a.Dom.markTemporary(o),(0,l.attr)(o,"data-"+n.MARKER_CLASS,t?"start":"end"),o.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,t?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let t=!1,e=t=>`span[data-${n.MARKER_CLASS}=${t?"start":"end"}]`,i=this.area.querySelector(e(!0)),o=this.area.querySelector(e(!1));if(i){if(t=this.createRange(),o)t.setStartAfter(i),a.Dom.safeRemove(i),t.setEndBefore(o),a.Dom.safeRemove(o);else{let e=i.previousSibling;a.Dom.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(i),a.Dom.safeRemove(i),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let e=t.getRangeAt(0);(0,u.assert)(e,"Range is null");let i=e.cloneRange();i.collapse(!0);let o=this.j.createInside.fake();a.Dom.safeInsertNode(i,o),e.setStartBefore(o);let s=[o];if(!e.collapsed){let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),s.push(i)}return this.selectRange(e),s}restoreFakes(t){let e=t.filter(t=>t.isConnected);if(!e.length)return;let[i,o]=e,s=this.createRange();s.setStartAfter(i),o&&s.setEndBefore(o),this.selectRange(s),i.parentNode?.firstChild!==i.parentNode?.lastChild&&a.Dom.safeRemove(i),o?.parentNode?.firstChild!==o?.parentNode?.lastChild&&a.Dom.safeRemove(o)}save(t=!1){if(this.hasMarkers)return[];let e=this.sel;if(!e||!e.rangeCount)return[];let i=[],o=e.rangeCount,s=[];for(let t=0;o>t;t+=1)if(s[t]=e.getRangeAt(t),s[t].collapsed){let e=this.marker(!0,s[t]);i[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{let e=this.marker(!0,s[t]),o=this.marker(!1,s[t]);i[t]={startId:e.id,endId:o.id,collapsed:!1,startMarker:e.outerHTML,endMarker:o.outerHTML}}if(!t){e.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(i[t].startId);if(o){if(i[t].collapsed)s[t].setStartAfter(o),s[t].collapse(!0);else if(s[t].setStartBefore(o),i[t].endId){let e=this.doc.getElementById(i[t].endId);e&&s[t].setEndAfter(e)}try{e.addRange(s[t].cloneRange())}catch{}}}}return i}focus(t={preventScroll:!0}){if(!this.isFocused()){let e=(0,l.getScrollParent)(this.j.container),i=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),i&&e?.scrollTo&&e.scrollTo(0,i);let o=this.sel,s=o?.rangeCount?o?.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let e=0;t&&e<t.rangeCount;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==n.MODE_WYSIWYG)return null;let e=this.sel;if(!e||0===e.rangeCount)return null;let i=e.getRangeAt(0),o=i.startContainer,s=!1;if(a.Dom.isTag(o,"br")&&e.isCollapsed)return o;if(!a.Dom.isText(o)){let n=(0,p.findCorrectCurrentNode)(o,i,s,e.isCollapsed,t,t=>s?t.lastChild:t.firstChild);o=n.node,s=n.rightMode}return o&&a.Dom.isOrContains(this.area,o)?o:null}insertNode(t,e=!0,i=!0){this.errorNode(t);let o=a.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let s=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),s&&s.rangeCount){let e=s.getRangeAt(0),{firstChild:i}=t;a.Dom.isOrContains(this.area,e.commonAncestorContainer)?a.Dom.safeInsertNode(e,t):this.area.appendChild(t),[()=>i?.previousSibling,()=>i?.previousSibling,()=>i?.previousSibling?.lastChild].forEach(t=>{let e=t();e&&a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e)})}else this.area.appendChild(t);let i=t=>{if(a.Dom.isBlock(t)){let e=t.lastChild;if(e)return i(e)}this.setCursorAfter(t)};e&&(a.Dom.isFragment(t)?o&&i(o):i(t)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(o??t,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(t)?o:t)}insertHTML(t,e=!0){if(""===t)return;let i=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(t)?i.appendChild(t):i.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,i=null){let o=(0,c.isString)(t)?this.j.createInside.element("img"):t;if((0,c.isString)(t)&&o.setAttribute("src",t),null!=i){let t=i.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,l.attr)(o,"width",t)}e&&"object"==typeof e&&(0,l.css)(o,e);let s=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",s)};this.j.e.on(o,"load",s),o.complete&&s(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){let e=this.sel;if(!e||!e.rangeCount)return;let i=e.getRangeAt(0),o=i.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let s=[],r=i.startOffset,u=o.childNodes.length,h=i.startContainer===this.area?o.childNodes[r<u?r:u-1]:i.startContainer,d=i.endContainer===this.area?o.childNodes[i.endOffset-1]:i.endContainer;a.Dom.isText(h)&&h===i.startContainer&&i.startOffset===h.nodeValue?.length&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(d)&&d===i.endContainer&&0===i.endOffset&&d.previousSibling&&(d=d.previousSibling);let p=t=>{!t||t===o||a.Dom.isEmptyTextNode(t)||(0,c.isMarker)(t)||s.push(t)};p(h),h!==d&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,t=>(p(t),t===d||t&&t.contains&&t.contains(d)),o,!0,!1);let f=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(f);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(n.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===s.length&&(a.Dom.isEmptyTextNode(h)&&s.push(h),h.firstChild&&s.push(h.firstChild)),s.forEach(f)}cursorInTheEdge(t,e,i=null){let o=!t,s=this.sel?.getRangeAt(0);if(i??=this.current(!1),!s||!i||!a.Dom.isOrContains(e,i,!0))return null;let n=t?s.startContainer:s.endContainer,r=t?s.startOffset:s.endOffset,c=t=>!!(t&&!a.Dom.isTag(t,"br")&&!a.Dom.isEmptyTextNode(t)&&!a.Dom.isTemporary(t)&&!(a.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(a.Dom.isText(n)){if((0,p.cursorInTheEdgeOfString)(n,r,t,o))return!1}else{let t=(0,l.toArray)(n.childNodes);if(o){if(t.slice(r).some(c))return!1}else if(t.slice(0,r).some(c))return!1}let u=i;for(;u&&u!==e;){let e=a.Dom.sibling(u,t);if(!e){u=u.parentNode;continue}if((u=e)&&c(u))return!1}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=null;return a.Dom.isText(t)?e?i.setStart(t,0):i.setEnd(t,t.nodeValue?.length??0):(o=this.j.createInside.fake(),e?i.setStartBefore(t):i.setEndAfter(t),i.collapse(e),a.Dom.safeInsertNode(i,o),i.selectNode(o)),i.collapse(e),this.selectRange(i),o}setCursorIn(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=t,s=t;do{if(a.Dom.isText(o)||a.Dom.isTag(o,n.INSEPARABLE_TAGS))break;s=o,o=e?o.firstChild:o.lastChild}while(o)if(!o){let t=this.j.createInside.text(n.INVISIBLE_SPACE);a.Dom.isTag(s,n.INSEPARABLE_TAGS)?o=s:(s.appendChild(t),s=t)}let r=o||s;return a.Dom.isTag(r,n.INSEPARABLE_TAGS)?e||a.Dom.isTag(r,"br")?i.setStartBefore(r):i.setEndAfter(r):i.selectNodeContents(r),i.collapse(e),this.selectRange(i),s}selectRange(t,e=!0){let i=this.sel;return e&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let e=t.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(e),i.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let e=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,a.Dom.unwrap(e);return}for(let t of((0,l.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,l.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(t=>{let e=(0,l.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,l.attr)(t,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:e,lastChild:i}=t;if(e&&e===i&&(0,c.isMarker)(e)){a.Dom.unwrap(t);continue}e&&(0,c.isMarker)(e)&&a.Dom.before(t,e),i&&(0,c.isMarker)(i)&&a.Dom.after(t,i),yield t,a.Dom.unwrap(t)}}wrapInTag(t){let e=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,c.isMarker)(i.firstChild))continue;(0,c.isFunction)(t)?t(i):e.push(a.Dom.replace(i,t,this.j.createInside))}finally{let t=i.parentNode;t&&(a.Dom.unwrap(i),a.Dom.isEmpty(t)&&a.Dom.unwrap(t))}return e}commitStyle(t){(0,u.assert)((0,l.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;let i=this.createRange(),o=this.range;i.setStartBefore(t);let s=this.cursorOnTheRight(t,e),r=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(s||r){e?a.Dom.before(e,l):a.Dom.safeInsertNode(o,l);let t=(t,e)=>{let i=e(t);for(;i;){let t=e(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=t}};t(l,t=>t.nextSibling),t(l,t=>t.previousSibling),a.Dom.after(l,h),a.Dom.before(l,c),s?(i.setEndBefore(l),o.setEndBefore(l)):(i.setEndAfter(l),o.setEndAfter(l))}else i.setEnd(o.startContainer,o.startOffset);let d=i.extractContents(),p=t=>a.Dom.each(t,t=>a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(p(d),p(t),t.parentNode.insertBefore(d,t),!e&&s&&l?.parentNode){let t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!n.IS_PROD)throw t}let f=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};f(c),f(h)}finally{a.Dom.safeRemove(c),a.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,e=t.cloneRange();if(!a.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let i=e=>{let i=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(e),a.Dom.safeInsertNode(o,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,e,this.j.editor),i},o=i(!0),s=i(!1);e.setStartAfter(o),e.setEndBefore(s);let n=a.Dom.findSibling(o,!1),r=a.Dom.findSibling(s,!0);if(n!==r){let t=a.Dom.isElement(n)&&a.Dom.isOrContains(n,s),i=!t&&a.Dom.isElement(r)&&a.Dom.isOrContains(r,o);if(t||i){let i=t?n:r,l=i;for(;a.Dom.isElement(i);)(i=t?i.firstElementChild:i.lastElementChild)&&(t?a.Dom.isOrContains(i,s):a.Dom.isOrContains(i,o))&&(l=i);t?e.setStart(l,0):e.setEnd(l,l.childNodes.length)}}if(this.selectRange(e),a.Dom.safeRemove(o,s),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,s.__decorate)([r.autobind],f.prototype,"createRange",null),(0,s.__decorate)([r.autobind],f.prototype,"focus",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorAfter",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorBefore",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorIn",null)},98711: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-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98740:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return s}});var o=i(81937);function s(){let t=!0;try{let e=o.globalDocument.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}},98792:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,s.__decorate)([n.autobind],l.prototype,"onCommand",null),r.pluginSystem.add("orderedList",l)},98803:function(t,e,i){"use strict";i.d(e,{Table:function(){return d}});var o=i(25045),s=i(31635),n=i(16964),r=i(81937),a=i(84839),l=i(27795),c=i(28077),u=i(65946);let h=new WeakMap;class d extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,c.getContainer)(this.j,d,"style",!0),e=[];this.selected.forEach(t=>{let i=(0,u.cssPath)(t);i&&e.push(i)}),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e)||new Set;i.add(t),d.__selectedByTable.set(e,i)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e);i&&(i.delete(t),i.size||d.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let e=d.__selectedByTable.get(t);return e?(0,u.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,e)=>Math.max(t,e.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,e){let i=[[]],o=(0,u.toArray)(t.rows),s=(t,o)=>{void 0===i[o]&&(i[o]=[]);let s=t.colSpan,n=t.rowSpan,r,a,l=0;for(;i[o][l];)l+=1;for(a=0;n>a;a+=1)for(r=0;r<s;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),e&&!1===e(t,o+a,l+r,s,n))return!1;i[o+a][l+r]=t}};for(let t=0;t<o.length;t+=1){let e=(0,u.toArray)(o[t].cells);for(let o=0;o<e.length;o+=1)if(!1===s(e[o],t))return i}return i}formalMatrix(t,e){return d.__formalMatrix(t,e)}static __formalCoordinate(t,e,i=!1){let o=0,s=0,n=1,r=1;return d.__formalMatrix(t,(t,a,l,c,u)=>{if(e===t)return o=a,s=l,n=c||1,r=u||1,i&&(s+=(c||1)-1,o+=(u||1)-1),!1}),[o,s,n,r]}formalCoordinate(t,e,i=!1){return d.__formalCoordinate(t,e,i)}static __appendRow(t,e,i,o){let s;if(e)s=e.cloneNode(!0),(0,u.$$)("td,th",e).forEach(t=>{let e=(0,u.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){let i=parseInt(e,10)-1;(0,u.attr)(t,"rowspan",i>1?i:null)}}),(0,u.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let e=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<e;t+=1)s.appendChild(o.element("td"))}i&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(s,e.nextSibling):!i&&e?e.parentNode&&e.parentNode.insertBefore(s,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(s)}appendRow(t,e,i){return d.__appendRow(t,e,i,this.j.createInside)}static __removeRow(t,e){let i,o=d.__formalMatrix(t),s=t.rows[e];o[e].forEach((n,r)=>{if(i=!1,e-1>=0&&o[e-1][r]===n)i=!0;else if(o[e+1]&&o[e+1][r]===n){if(n.parentNode===s&&n.parentNode.nextSibling){i=!0;let s=r+1;for(;o[e+1][s]===n;)s+=1;let a=l.Dom.next(n.parentNode,t=>l.Dom.isTag(t,"tr"),t);a&&(o[e+1][s]?a.insertBefore(n,o[e+1][s]):a.appendChild(n))}}else l.Dom.safeRemove(n);if(i&&(n.parentNode===s||n!==o[e][r-1])){let t=n.rowSpan;(0,u.attr)(n,"rowspan",t-1>1?t-1:null)}}),l.Dom.safeRemove(s)}removeRow(t,e){return d.__removeRow(t,e)}appendColumn(t,e,i=!0){let o=d.__formalMatrix(t);if(!i&&l.Dom.isCell(e.previousElementSibling))return this.appendColumn(t,e.previousElementSibling,!0);let s=i?e.cellIndex+((e.colSpan||1)-1):e.cellIndex,n=i?s+1:s;for(let t=0;t<o.length;){let e=o[t];if(e[s]!==e[n]||s===n){let t=this.j.createInside.element("td");i?l.Dom.after(e[s],t):l.Dom.before(e[s],t),e[s].rowSpan>1&&(t.rowSpan=e[s].rowSpan)}else e[s].colSpan+=1;t+=e[s].rowSpan||1}}static __removeColumn(t,e){let i,o=d.__formalMatrix(t);o.forEach((t,s)=>{let n=t[e];if(i=!1,e-1>=0&&o[s][e-1]===n||e+1<t.length&&o[s][e+1]===n?i=!0:l.Dom.safeRemove(n),i&&(s-1<0||n!==o[s-1][e])){let t=n.colSpan;(0,u.attr)(n,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,e){return d.__removeColumn(t,e)}static __getSelectedBound(t,e){let i,o,s,n=[[1/0,1/0],[0,0]],r=d.__formalMatrix(t);for(i=0;i<r.length;i+=1)for(o=0;r[i]&&o<r[i].length;o+=1)e.includes(r[i][o])&&(n[0][0]=Math.min(i,n[0][0]),n[0][1]=Math.min(o,n[0][1]),n[1][0]=Math.max(i,n[1][0]),n[1][1]=Math.max(o,n[1][1]));for(i=n[0][0];i<=n[1][0];i+=1)for(s=1,o=n[0][1];o<=n[1][1];o+=1){for(;r[i]&&r[i][o-s]&&r[i][o]===r[i][o-s];)n[0][1]=Math.min(o-s,n[0][1]),n[1][1]=Math.max(o-s,n[1][1]),s+=1;for(s=1;r[i]&&r[i][o+s]&&r[i][o]===r[i][o+s];)n[0][1]=Math.min(o+s,n[0][1]),n[1][1]=Math.max(o+s,n[1][1]),s+=1;for(s=1;r[i-s]&&r[i][o]===r[i-s][o];)n[0][0]=Math.min(i-s,n[0][0]),n[1][0]=Math.max(i-s,n[1][0]),s+=1;for(s=1;r[i+s]&&r[i][o]===r[i+s][o];)n[0][0]=Math.min(i+s,n[0][0]),n[1][0]=Math.max(i+s,n[1][0]),s+=1}return n}getSelectedBound(t,e){return d.__getSelectedBound(t,e)}static __normalizeTable(t){let e=[],i=d.__formalMatrix(t);d.__removeExtraColspans(i,e),d.__removeExtraRowspans(i,e);for(let t=0;t<i.length;t+=1)for(let e=0;e<i[t].length;e+=1)void 0!==i[t][e]&&(i[t][e].hasAttribute("rowspan")&&1===i[t][e].rowSpan&&(0,u.attr)(i[t][e],"rowspan",null),i[t][e].hasAttribute("colspan")&&1===i[t][e].colSpan&&(0,u.attr)(i[t][e],"colspan",null),i[t][e].hasAttribute("class")&&!(0,u.attr)(i[t][e],"class")&&(0,u.attr)(i[t][e],"class",null));d.__unmark(e)}static __removeExtraColspans(t,e){for(let i=0;i<t[0].length;i+=1){let o=1e6,s=!1;for(let e=0;e<t.length;e+=1)if(void 0!==t[e][i]){if(t[e][i].colSpan<2){s=!0;break}o=Math.min(o,t[e][i].colSpan)}if(!s)for(let s=0;s<t.length;s+=1)void 0!==t[s][i]&&d.__mark(t[s][i],"colspan",t[s][i].colSpan-o+1,e)}}static __removeExtraRowspans(t,e){let i=0,o=0;for(i=0;i<t.length;i+=1){let s=1e6,n=!1;for(o=0;o<t[i].length;o+=1)if(void 0!==t[i][o]){if(t[i][o].rowSpan<2){n=!0;break}s=Math.min(s,t[i][o].rowSpan)}if(!n)for(o=0;o<t[i].length;o+=1)void 0!==t[i][o]&&d.__mark(t[i][o],"rowspan",t[i][o].rowSpan-s+1,e)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,e){let i=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,n=null,a=0,c=0,h=0,f=new Set,m=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,l,g,_)=>{r>=o[0][0]&&r<=o[1][0]&&l>=o[0][1]&&l<=o[1][1]&&(f.has(t)||(f.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(t.innerHTML),g>1&&(c+=g-1),_>1&&(h+=_-1),n?(d.__mark(t,"remove",1,m),p(e).removeSelection(t)):(n=t,a=l)))}),c=o[1][1]-o[0][1]+1,h=o[1][0]-o[0][0]+1,n&&(c>1&&d.__mark(n,"colspan",c,m),h>1&&d.__mark(n,"rowspan",h,m),s&&(d.__mark(n,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",m),a&&d.__setColumnWidthByDelta(t,a,0,!0,m)),n.innerHTML=i.join("<br/>"),p(e).addSelection(n),f.delete(n),d.__unmark(m),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||l.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let i,o,s,n,r,a=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),s=e.createInside.element("tr"),i=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,e,o)=>{i[0]===e&&i[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(c,"tr",t),s),s.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,a),d.__formalMatrix(t,(e,o,s)=>{o>i[0]&&o<i[0]+c.rowSpan&&i[1]>s&&e.parentNode.rowIndex===o&&(r=e),i[0]<o&&e===c&&(n=t.rows[o])}),r?l.Dom.after(r,o):n.insertBefore(o,n.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,a),d.__unmark(a),p(e).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let i,o,s,n=[];d.__getSelectedCellsByTable(t).forEach(a=>{i=d.__formalCoordinate(t,a),a.colSpan<2?d.__formalMatrix(t,(t,e,o)=>{i[1]===o&&i[0]!==e&&t!==a&&d.__mark(t,"colspan",t.colSpan+1,n)}):d.__mark(a,"colspan",a.colSpan-1,n),(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),a.rowSpan>1&&d.__mark(o,"rowspan",a.rowSpan,n);let c=a.offsetWidth;l.Dom.after(a,o),s=c/t.offsetWidth/2,d.__mark(a,"width",(100*s).toFixed(r.ACCURACY)+"%",n),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",n),d.__unmark(n),p(e).removeSelection(a)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,i,o,s){let n=d.__formalMatrix(t),a=0;for(let o=0;o<n.length;o+=1){let l=n[o][e];if(l.colSpan>1&&n.length>1)continue;let c=(l.offsetWidth+i)/t.offsetWidth*100;d.__mark(l,"width",c.toFixed(r.ACCURACY)+"%",s),a=o;break}for(let t=a+1;t<n.length;t+=1){let i=n[t][e];d.__mark(i,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,e,i,o,s){return d.__setColumnWidthByDelta(t,e,i,o,s)}static __mark(t,e,i,o){o.push(t);let s=h.get(t)??{};s[e]=void 0===i?1:i,h.set(t,s)}static __unmark(t){t.forEach(t=>{let e=h.get(t);e&&(Object.keys(e).forEach(i=>{let o=e[i];switch(i){case"remove":l.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete e[i]}),h.delete(t))})}constructor(...t){super(...t),(0,o._)(this,"selected",new Set)}}(0,o._)(d,"__selectedByTable",new WeakMap),(0,s.__decorate)([(0,a.debounce)()],d.prototype,"__recalculateStyles",null);let p=t=>t.getInstance("Table",t.o)},98831:function(t,e,i){"use strict";i.d(e,{normalizeSize:function(){return o}});let o=(t,e)=>/^[0-9]+$/.test(t.toString())?t+e:t.toString()},98838:function(t,e,i){"use strict";i.d(e,{UIForm:function(){return u}});var o=i(31635),s=i(80251),n=i(91672),r=i(93640),a=i(65273),l=i(49999),c=i(63468);class u extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>s.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>s.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let e=this.allChildren.filter(t=>s.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(e.reduce((t,e)=>(t[e.state.name]=e.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,r.attr)(t,"dir",this.j.o.direction||"auto"),(0,r.attr)(t,"novalidate",""),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}}u=(0,o.__decorate)([n.component],u)},98964:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},98988:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(28077),l=i(57821),c=i(91206),u=i(4099);i(47670);class h extends c.Plugin{afterInit(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}onStartSelection(t){let{j:e}=this,i,o=t.target;for(;void 0===i&&o&&o!==e.editor;)i=e.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===i&&o===e.editor&&e.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let e=t.target;r.Dom.up(e,t=>t===this.j.editor)||u.UIElement.closestElement(e,u.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let e=t.current();e&&r.Dom.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:e}=this.j,{startContainer:i,startOffset:o}=e.range;0===o&&r.Dom.isText(i)&&e.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(t){let{s:e,editor:i,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||e.isCollapsed()||(!t||t.isTrusted&&r.Dom.isNode(t.target)&&r.Dom.isOrContains(i,t.target))&&this.jodit.s.expandSelection()}constructor(...t){super(...t),(0,o._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,s.__decorate)([n.autobind],h.prototype,"onStartSelection",null),(0,s.__decorate)([(0,n.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,s.__decorate)([(0,n.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,s.__decorate)([(0,n.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,s.__decorate)([(0,n.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,s.__decorate)([(0,n.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},99436:function(t,e,i){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}i.d(e,{ucfirst:function(){return o}})},99732:function(t,e,i){"use strict";i.d(e,{isInt:function(){return n}});var o=i(70222),s=i(85932);function n(t){return(0,s.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},99876:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'}},i={};function o(t){var s=i[t];if(void 0!==s)return s.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return!function(){"use strict";o.r(s),o.d(s,{CommitMode:function(){return u},Jodit:function(){return t.Jodit}});var t=o(73302),e=o(28686),i=o(81937),n=o(84839),r=o(60936),a=o(13564),l=o(89317);o(93637),Object.keys(i).forEach(e=>{t.Jodit[e]=i[e]});let c=t=>"__esModule"!==t;Object.keys(a).filter(c).forEach(t=>{r.Icon.set(t.replace("_","-"),a[t])}),Object.keys(r).filter(c).forEach(i=>{let o=r[i],s=(0,e.isFunction)(o.prototype?.className)?o.prototype.className():i;(0,e.isString)(s)&&(t.Jodit.modules[s]=o)}),Object.keys(n).filter(c).forEach(e=>{t.Jodit.decorators[e]=n[e]}),["Confirm","Alert","Prompt"].forEach(e=>{t.Jodit[e]=r[e]}),Object.keys(l.default).filter(c).forEach(e=>{t.Jodit.lang[e]=l.default[e]});class u{}}(),s});