jodit 4.15.18 → 4.16.0

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 (63) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +9 -8
  4. package/es2015/jodit.js +94 -48
  5. package/es2015/jodit.min.js +9 -8
  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 +9 -8
  13. package/es2018/jodit.min.js +9 -8
  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 +10 -9
  18. package/es2021/jodit.js +94 -48
  19. package/es2021/jodit.min.js +10 -9
  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 +10 -9
  28. package/es2021.en/jodit.js +94 -48
  29. package/es2021.en/jodit.min.js +10 -9
  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 +106 -54
  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/core/constants.js +1 -1
  51. package/esm/core/ui/button/button/button.js +10 -4
  52. package/esm/core/ui/form/inputs/file/file.js +1 -0
  53. package/esm/core/ui/group/group.d.ts +4 -0
  54. package/esm/core/ui/group/group.js +5 -1
  55. package/esm/core/ui/group/list.js +2 -2
  56. package/esm/modules/dialog/dialog.js +7 -0
  57. package/esm/modules/toolbar/button/content.d.ts +7 -0
  58. package/esm/modules/toolbar/button/content.js +9 -1
  59. package/esm/plugins/source/editor/engines/ace.js +13 -6
  60. package/esm/plugins/source/source.js +20 -1
  61. package/package.json +1 -1
  62. package/types/core/ui/group/group.d.ts +4 -0
  63. package/types/modules/toolbar/button/content.d.ts +7 -0
@@ -1,22 +1,23 @@
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.15.18
4
+ * Version: v4.16.0
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){var e,t,i={5266:function(e,t,i){"use strict";i.d(t,{Config:function(){return s}});var n=i(25045),o=i(81937);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){(0,n._)(this,"cache",!0),(0,n._)(this,"defaultTimeout",100),(0,n._)(this,"namespace",""),(0,n._)(this,"safeMode",!1),(0,n._)(this,"width","auto"),(0,n._)(this,"height","auto"),(0,n._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,n._)(this,"commandToHotkeys",void 0),(0,n._)(this,"license",""),(0,n._)(this,"preset","custom"),(0,n._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,n._)(this,"ownerDocument",o.globalDocument),(0,n._)(this,"ownerWindow",o.globalWindow),(0,n._)(this,"shadowRoot",null),(0,n._)(this,"nonce",""),(0,n._)(this,"zIndex",0),(0,n._)(this,"readonly",!1),(0,n._)(this,"disabled",!1),(0,n._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,n._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,n._)(this,"toolbarButtonSize","middle"),(0,n._)(this,"allowTabNavigation",!1),(0,n._)(this,"inline",!1),(0,n._)(this,"theme","default"),(0,n._)(this,"saveModeInStorage",!1),(0,n._)(this,"asyncStorage",{}),(0,n._)(this,"editorClassName",!1),(0,n._)(this,"className",!1),(0,n._)(this,"style",!1),(0,n._)(this,"containerStyle",!1),(0,n._)(this,"styleValues",{}),(0,n._)(this,"triggerChangeEvent",!0),(0,n._)(this,"direction",""),(0,n._)(this,"language","auto"),(0,n._)(this,"debugLanguage",!1),(0,n._)(this,"i18n",!1),(0,n._)(this,"tabIndex",-1),(0,n._)(this,"toolbar",!0),(0,n._)(this,"statusbar",!0),(0,n._)(this,"showTooltip",!0),(0,n._)(this,"showTooltipDelay",200),(0,n._)(this,"useNativeTooltip",!1),(0,n._)(this,"defaultActionOnPaste",o.INSERT_AS_HTML),(0,n._)(this,"enter",o.PARAGRAPH),(0,n._)(this,"iframe",!1),(0,n._)(this,"editHTMLDocumentMode",!1),(0,n._)(this,"enterBlock","br"!==this.enter?this.enter:o.PARAGRAPH),(0,n._)(this,"defaultMode",o.MODE_WYSIWYG),(0,n._)(this,"useSplitMode",!1),(0,n._)(this,"colors",{greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]}),(0,n._)(this,"colorPickerDefaultTab","background"),(0,n._)(this,"imageDefaultWidth",300),(0,n._)(this,"imageDefaultAlign","normal"),(0,n._)(this,"imageAlignClasses",null),(0,n._)(this,"removeButtons",[]),(0,n._)(this,"disablePlugins",[]),(0,n._)(this,"extraPlugins",[]),(0,n._)(this,"basePath",void 0),(0,n._)(this,"extraButtons",[]),(0,n._)(this,"extraIcons",{}),(0,n._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,n._)(this,"sizeLG",900),(0,n._)(this,"sizeMD",700),(0,n._)(this,"sizeSM",400),(0,n._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}]),(0,n._)(this,"controls",void 0),(0,n._)(this,"events",{}),(0,n._)(this,"textIcons",!1),(0,n._)(this,"popupRoot",null),(0,n._)(this,"showBrowserColorPicker",!0),Object.assign(this,r)}}(0,n._)(s,"__defaultOptions",void 0),r=s.prototype,s.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return _}});var n=i(25045),o=i(41411),r=i(15366),s=i(81937),a=i(61077),l=i(72068),u=i(91565),c=i(72412),d=i(62101),h=i(52100),p=i(85932),m=i(18303),f=i(28712),g=i(14228);class _{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,m.isVoid)(t)&&(t=0),(0,c.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let o=(0,a.setTimeout)(e,t,...i),r=n.label||o;return this.timers.set(r,o),this.__callbacks.set(r,e),o}updateTimeout(e,t){if((0,f.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,f.assert)((0,u.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,a.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,p.isString)(e))return this.clearLabel(e);(0,a.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,o=!1,r=[],s=(...t)=>{if(!o){n=0;let i=e(...t);if(o=!0,r.length){let e=()=>{r.forEach(e=>e()),r.length=0};(0,h.isPromise)(i)?i.finally(e):e()}}},c=(...r)=>{o=!1,t?(!n&&i&&s(...r),(0,a.clearTimeout)(n),n=this.setTimeout(()=>s(...r),(0,u.isFunction)(t)?t():t),this.timers.set(e,n)):s(...r)};return(0,d.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{r.push(e)}).catch(e=>{if((0,l.isAbortError)(e))return null;throw e});return c(...e),t}:c}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,s;return(...i)=>{(o=!0,s=i,t)?n||(r=()=>{o?(e(...s),o=!1,n=this.setTimeout(r,(0,u.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...s)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,g.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!s.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,(0,r._)((0,o._)({},t),{signal:i.signal}));return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,g.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,a.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,r,s;(0,n._)(this,"timers",new Map),(0,n._)(this,"__callbacks",new Map),(0,n._)(this,"__queueMicrotaskNative",null!=(e=null==(o=queueMicrotask)?void 0:o.bind(window))?e:Promise.resolve().then.bind(Promise.resolve())),(0,n._)(this,"promisesRejections",new Set),(0,n._)(this,"__requestsIdle",new Set),(0,n._)(this,"__controllers",new Set),(0,n._)(this,"__requestsRaf",new Set),(0,n._)(this,"__requestIdleCallbackNative",null!=(t=null==(r=window.requestIdleCallback)?void 0:r.bind(window))?t:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)}),(0,n._)(this,"__cancelIdleCallbackNative",null!=(i=null==(s=window.cancelIdleCallback)?void 0:s.bind(window))?i:e=>{this.clearTimeout(e)}),(0,n._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return u}});var n=i(25045),o=i(91231),r=i(69364),s=i(28077),a=i(65946);let l=new Map;class u{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,a.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=l.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=l.get(this);i||(i={},l.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){(0,n._)(this,"__componentName",void 0),(0,n._)(this,"async",new o.Async),(0,n._)(this,"uid",void 0),(0,n._)(this,"ownerWindow",window),(0,n._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,s.uniqueUid)()}}(0,n._)(u,"STATUSES",r.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(80251),o=i(69364),r=i(59609)},69364:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},59609:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return r}});var n=i(25045),o=i(80251);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),(0,n._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),u=new Set(a),c="Meta",d="Backspace",h="Enter",p="Escape",m="ArrowLeft",f="ArrowUp",g="ArrowRight",_="ArrowDown",v="Delete",b=[c,d,v,f,_,g,m,h,p,"F3","Tab"],y="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),w=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:S,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.15.18","BASE_PATH",0,S,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,b,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2015","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!1,"IS_IE",0,y,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,w,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:w?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,v,"KEY_DOWN",0,_,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,m,"KEY_META",0,c,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,f,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,u,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,y?"html":"text/html","TEXT_PLAIN",0,y?"text":"text/plain","TEXT_RTF",0,y?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(28712);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,s.isPlainObject)(t)?(0,s.attr)(n,t):i=t),i&&(0,s.asArray)(i).forEach(e=>r.Dom.append(n,(0,s.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});r.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,a.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(r.Dom.safeRemove(n),t){let e=(0,s.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,s.isFunction)(i)?i(e):(0,s.isPlainObject)(i)&&(0,s.attr)(e,i)}}}constructor(e,t){(0,n._)(this,"document",void 0),(0,n._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(91565);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},51676:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return u},cached:function(){return a}});var n=i(69364),o=i(23211),r=i(28686),s=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function u(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,u=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=u.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):u.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(81937),o=i(421);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(16964),o=i(28686),r=i(28712),s=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let u=a[l];if(!(0,o.isFunction)(u))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,u=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),u,t)})}),{configurable:!0,get(){return u.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},24968:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(91565);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(91565),o=i(33201);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},35718:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(16964),o=i(91565),r=i(33201);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return u.idle},nonenumerable:function(){return c.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(49574),o=i(51676),r=i(91672),s=i(55184),a=i(24968),l=i(29200),u=i(35718),c=i(41360),d=i(77036),h=i(80840),p=i(68616)},41360:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},77036:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(69364),o=i(31534);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(69364),o=i(91565),r=i(33201);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return d}});var n=i(69364),o=i(70535),r=i(32328),s=i(91565),a=i(62101),l=i(31534),u=i(33201),c=i(71125);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,u.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,m=null==t?void 0:t.context,f=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,u=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(u=t.async.microDebounce(u,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=m;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,u),r||n.events.on(o,u),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,u).off(o,u)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,u);let p=(0,c.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,u),u(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return b}});var n=i(81937),o=i(88475),r=i(17312),s=i(91565),a=i(46248),l=i(3213),u=i(85932),c=i(18303),d=i(4040),h=i(28712),p=i(7909),m=i(80991),f=i(36400),g=i(33201),_=i(71125);let v=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(o=!0,r=n);while(o);return b.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,u.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!b.isBlock(n)&&(o=!0,r=n);while(o);do o=!1,(n=s.nextSibling)&&!b.isBlock(n)&&(o=!0,s=n);while(o);return b.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,u.isString)(t)?i.element(t):t;if(b.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);b.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,u.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,u.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,c.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!b.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!b.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!b.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,c.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return b.__deepMost(e,t,!1)}static last(e,t){return b.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);i=null==r?void 0:r[o]}r=i}while(r);return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return b.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>b.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?b.prev(e,n,o):b.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=b.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,_.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&b.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,f.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,f.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(v,"$2")}static temporaryList(e){let t=[];return b.each(e,e=>{b.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},27795:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(23211),o=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var n=i(25045),o=i(31635),r=i(49574),s=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=s.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){var e;this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"workNodes",void 0),(0,n._)(this,"hadAffect",void 0),(0,n._)(this,"isWorked",void 0),(0,n._)(this,"isFinished",void 0),(0,n._)(this,"__schedulerController",void 0),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}(0,o.__decorate)([r.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(25045),o=i(81937),r=i(32328),s=i(17312),a=i(91565),l=i(85932),u=i(33201),c=i(18869);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,u.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let r,c,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,c=e,d=t,p=i):(r=e,c=t,d=i,p=n),!((0,l.isString)(c)||(0,l.isStringArray)(c))||0===c.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,u.error)("Need event handler");if((0,s.isArray)(r))return r.forEach(e=>{this.on(e,c,d,p)}),this;let m=r,f=this.__getStore(m),g=this,_=function(e,...t){if(!g.isMuted(e))return d&&d.call(this,...t)};return h(m)&&(_=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(c,(e,t)=>{if(0===e.length)throw(0,u.error)("Need event name");if(!1===f.indexOf(e,t,d)){let r={event:e,originalCallback:d,syntheticCallback:_};if(f.set(e,t,r,null==p?void 0:p.top),h(m)){var i,n;let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;_.options=t,m.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(m,_)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,s=t,a=i):(o=e,r=t,s=i,a=n);let u=(...e)=>(this.off(o,r,u),s(...e));return this.on(o,r,u,a),this}off(e,t,i){let n,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,o=e,r=t):(n=e,o=t,r=i),(0,s.isArray)(n))return n.forEach(e=>{this.off(e,o,r)}),this;let u=n,d=this.__getStore(u);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{if(h(u)){var t;u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback)}},m=(e,t)=>{if(""===e)return void d.events(t).forEach(e=>{""!==e&&m(e,t)});let i=d.get(e,t);if(i&&i.length)if((0,a.isFunction)(r)){let n=d.indexOf(e,t,r);!1!==n&&(p(i[n]),i.splice(n,1),i.length||d.clearEvents(t,e))}else i.forEach(p),i.length=0,d.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t;if("string"!=typeof n)throw(0,u.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!h(r)&&!(0,l.isString)(s))throw(0,u.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(s)&&h(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(h(r))this.__triggerNativeEvent(r,e);else{let i=d.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...a),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||h(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){(0,n._)(this,"__domEventsMap",new Map),(0,n._)(this,"__mutedEvents",new Set),(0,n._)(this,"__key","__JoditEventEmitterNamespaces"),(0,n._)(this,"__doc",o.globalDocument),(0,n._)(this,"__prepareEvent",e=>{!e.cancelBubble&&(e.composed&&(0,a.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,n._)(this,"currents",[]),(0,n._)(this,"__stopped",[]),(0,n._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function h(e){return e&&(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});var n=i(25045);class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){if(this.__map.has(e)){var i;null==(i=this.__map.get(e))||i.delete(t)}return this}destruct(){this.__map.clear()}emit(e,...t){let i;if(this.__map.has(e)){var n;null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})}return i}constructor(){(0,n._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";let n=new(i(93747)).EventEmitter;i.d(t,["eventEmitter",0,n])},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(93747),o=i(60216),r=i(70535),s=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return u}});var n=i(17312),o=i(94013),r=i(62101),s=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function u(e){if(l(e))return e;let t={},i={},u=(t,o)=>((0,n.isArray)(t)?t.map(e=>u(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),c=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>c(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let u=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){c(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),u&&u.set?u.set.call(e,t):n[a]=t;let o=[];c(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:u}))};return d(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a}});var n=i(25045),o=i(88475),r=i(28712);let s="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==s):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){(0,n._)(this,"__store",new Map)}}i.d(t,["defaultNameSpace",0,s])},28077:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return b},getPopupViewRoot:function(){return y},uniqueUid:function(){return g}});var n=i(24497),o=i(85932),r=i(31534),s=i(74264),a=i(7909),l=i(80991),u=i(421),c=i(85305),d=i(42689),h=i(81937),p=i(27795);let m=1,f=new Set;function g(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;f.has(t);)t=e();return f.add(t),t}let _=new c.PluginSystem({getContainer:b}),v=new WeakMap;function b(e,t,i="div",l=!1){let c,d=(0,o.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=v.get(e)||{},m=d+i,f=(0,r.isViewObject)(e)?e:e.j;if(!h[m]){let t=f.c;if(c=y(f.o,f.container,e.od.body),l&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;c=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(o,"nonce",f.o.nonce),o.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.Dom.append(c,o),h[m]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),p.Dom.safeRemove(o),delete h[m],Object.keys(h).length&&v.delete(e)}),v.set(e,h),f.events.fire("getContainer",o)}return h[m].classList.remove("jodit_theme_default","jodit_theme_dark"),h[m].classList.add(`jodit_theme_${f.o.theme||"default"}`),h[m]}function y(e,t,i){var n,o,r;return null!=(n=null!=(o=null!=(r=e.popupRoot)?r:e.shadowRoot)?o:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?n:i}let w=d.eventEmitter;i.d(t,["eventEmitter",0,w,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,_])},78982:function(e,t,i){"use strict";var n=i(17312);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(78982),o=i(32328),r=i(88475)},32328:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},88475:function(e,t,i){"use strict";var n=i(23283),o=i(43379);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(81937);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(81937);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},28686:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return c.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return f.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return w.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return I.isWindow}});var n=i(98740),o=i(72068),r=i(17312),s=i(22289),a=i(94013),l=i(91565),u=i(46248),c=i(82166),d=i(52433),h=i(99732),p=i(24497),m=i(44998),f=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),y=i(52100),w=i(3213),k=i(85932),S=i(91764),C=i(50083),E=i(31534),T=i(18303),I=i(3513)},72068:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},17312:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},22289:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(3347);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},91565:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},82166:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},46248:function(e,t,i){"use strict";var n=i(85932);i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},52433:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(23211),o=i(91565),r=i(18303);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(70222),o=i(85932);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},24497:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";var n=i(85932);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},23175:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(23211);function o(e){return n.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},72412:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(85932);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},62101:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(3513);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(91565);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(81937);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},3513:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},93387:function(e,t,i){"use strict";i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return c}});var n=i(81937),o=i(23211),r=i(4040),s=i(7909),a=i(80991),l=i(28723);function u(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function c(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let c=n.globalDocument.createElement("iframe");(0,a.css)(c,"display","none"),o.Dom.append(n.globalDocument.body,c);let d="";try{let t=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=u(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=u(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),d=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(c)}return d&&(e=d),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},1277:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var n=i(81937),o=i(23211),r=i(88475),s=i(4040),a=i(7909);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},6609:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(81937);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},82658:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(30893),o=i(1277),r=i(6609),s=i(48838),a=i(48155),l=i(22852)},48838:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},48155:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var n=i(23211),o=i(93640),r=i(7909);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let l=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&n.Dom.up(e.parentNode,a)&&l.push(e)}),l))n.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==n.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&n.Dom.safeRemove(t);let u=null!=(i=t.removeEventAttributes)?i:t.removeOnError,c=e=>{if(n.Dom.isElement(e)&&(u&&function(e){if(!n.Dom.isElement(e))return;let t=[];for(let i=0;i<e.attributes.length;i++)e.attributes[i].name.toLowerCase().startsWith("on")&&t.push(e.attributes[i].name);for(let i of t)(0,r.attrRaw)(e,i,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};c(e),n.Dom.each(e,c)}let u=["src","data","action","formaction","poster","background","xlink:href"],c=new Set(["iframe","frame","object","embed"]);function d(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&c.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let s=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&d(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),u)){let i=(0,r.attrRaw)(e,t);i&&d(i,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},22852:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,u=null,c=!1){let d=i.createElement("div");(0,o.isString)(t)?d.innerHTML=t:n.Dom.append(d,t);let h=[];return n.Dom.each(d,e=>{n.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u,c)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,a))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,s))return;let o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&n.Dom.before(o,i.createTextNode(c?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(23211),o=i(85932),r=i(4040);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},65946:function(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase:function(){return c.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},camelCase:function(){return c.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return o.clearTimeout},colorToHex:function(){return s.colorToHex},fuzzySearchIndex:function(){return c.fuzzySearchIndex},getContentWidth:function(){return u.getContentWidth},getFixedPositionOffset:function(){return u.getFixedPositionOffset},getScrollParent:function(){return u.getScrollParent},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return c.i18n},innerWidth:function(){return u.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return c.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 u.offset},position:function(){return u.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return o.setTimeout},size:function(){return u.size},splitArray:function(){return n.splitArray},sprintf:function(){return c.sprintf},stringify:function(){return c.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(45664),o=i(61077),r=i(28686),s=i(93387),a=i(82658),l=i(97022),u=i(86878),c=i(97642),d=i(93640),h={};for(var p in d)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getFixedPositionOffset","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(h[p]=(function(e){return d[e]}).bind(0,p));i.d(t,h)},97022:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return c.normalizeUrl}});var n=i(77367),o=i(19147),r=i(27978),s=i(49663),a=i(18377),l=i(96340),u=i(98831),c=i(48009)},77367:function(e,t,i){"use strict";var n=i(93387),o=i(4040);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},19147:function(e,t,i){"use strict";i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return u}});var n=i(70222),o=i(18303),r=i(93387),s=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function u(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},27978:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(81937),o=i(4040);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},49663:function(e,t,i){"use strict";i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},18377:function(e,t,i){"use strict";var n=i(4040);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},96340:function(e,t,i){"use strict";i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},98831:function(e,t,i){"use strict";i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},48009:function(e,t,i){"use strict";i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},54447:function(e,t,i){"use strict";i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},2373:function(e,t,i){"use strict";function n(e){var t,i;let n=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;n&&o;){if(""!==(i=n.getComputedStyle(o)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return n}})},34027:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(81937),o=i(23211),r=i(93640)},86878:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return u.position},size:function(){return a.size}});var n=i(54447),o=i(2373),r=i(34027),s=i(83215),a=i(18073),l=i(69143),u=i(23599)},83215:function(e,t,i){"use strict";i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},18073:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(28686);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},69143:function(e,t,i){"use strict";let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,u=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=i.defaultView||i.parentWindow,d=c.pageYOffset||u.scrollTop||l.scrollTop,h=c.pageXOffset||u.scrollLeft||l.scrollLeft,p=u.clientTop||l.clientTop||0,m=u.clientLeft||l.clientLeft||0,f=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&f){let{top:e,left:i}=n(f,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-m;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,n])},23599:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,u=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,u+=n}return{left:Math.round(l),top:Math.round(u),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(24497)},57821:function(e,t,i){"use strict";i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},57626:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(81937);function o(e,t,i=0,r=1){let s=0,a,l=-1,u=0,c=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,u++,c=0,-1===l&&(l=a)):s>0&&(c>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,u=0,c=0,a--):(c++,u++)),a++;return s===e.length?[l,u]:[-1,0]}},18080:function(e,t,i){"use strict";i.d(t,{i18n:function(){return u}});var n=i(81937),o=i(85932),r=i(99436),s=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function u(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let u=!!(null==i?void 0:i.debugLanguage),c={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),m=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[p]?c=n.lang[p]:u||(c=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let f=null==i?void 0:i.i18n;if(f&&f[p]){let e=m(f[p]);if(e)return e}return m(c)||(!u&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):u?"{"+e+"}":(n.IS_PROD,d(e)))}i.d(t,["sprintf",0,l])},97642:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(57821),o=i(57626),r=i(18080),s=i(74264),a=i(3347),l=i(4040),u=i(99436)},74264:function(e,t,i){"use strict";i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},3347:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},4040:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(81937);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},99436:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},16849:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return l},getHAlign:function(){return a},hAlignElement:function(){return function e(t,i,n){if(n){e(t,"normal"),Object.values(n).forEach(e=>t.classList.remove(...s(e))),t.classList.add(...s(n[i||"normal"])),["class","style"].forEach(e=>{var i;(null==(i=(0,o.attr)(t,e))?void 0:i.trim())||(0,o.attr)(t,e,null)});return}i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}}});var n=i(27795),o=i(7909),r=i(80991);let s=e=>(null!=e?e:"").split(/\s+/).filter(Boolean);function a(e,t){if(t)for(let i of["left","right","center","normal"]){let n=s(t[i]);if(n.length&&n.every(t=>e.classList.contains(t)))return i}let i=(0,r.cssInline)(e,"float").toLowerCase();return"left"===i||"right"===i?i:"block"===(0,r.css)(e,"display")&&"auto"===(0,r.cssInline)(e,"margin-left")&&"auto"===(0,r.cssInline)(e,"margin-right")?"center":"normal"}function l(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let u=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t)){l(t);let i=u.get(e.toLowerCase());i&&(0,r.css)(t,"textAlign",i)}}},47760:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?u(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?c(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}}});var n=i(23211),o=i(85932),r=i(7909),s=i(91321);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let n=e(t,i);return a.set(i,n),n},u=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",i),n.Dom.append(e.od.body,a)})),c=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?n.Dom.append(e.o.shadowRoot,a):n.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,u,"appendStyleAsync",0,c])},7909:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let u=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(u)){let i=e(t,`data${u}`);if(i)return i;u=u.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(u)&&t.removeAttribute(u);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===u||"height"===u)&&(e=e.replace("px","")),t.setAttribute(u,e),e}return t.getAttribute(u)}},attrRaw:function(){return l}});var n=i(91565),o=i(62101),r=i(85932),s=i(74264),a=i(80991);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},26136:function(e,t,i){"use strict";i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},36833:function(e,t,i){"use strict";var n=i(62101);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,o])},91321:function(e,t,i){"use strict";var n=i(81937);i.d(t,["completeUrl",0,e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},77483:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,c.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if((0,u.isUnsafeProtoKey)(n))return;let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,u.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,c+1);return}if(0!==c&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var n=i(17312),o=i(62101),r=i(85932),s=i(18303),a=i(5266),l=i(54794),u=i(78048),c=i(71125);function d(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},3856:function(e,t,i){"use strict";var n=i(81937),o=i(91764),r=i(36310);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let n=s.pathname.split("/").filter(Boolean),o=n.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=n[o],l=n[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let n=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},80991:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return u}});var n=i(22289),o=i(62101),r=i(19147),s=i(57821),a=i(74264);function l(e,t,i,u=!1){if((0,n.isBoolean)(i)&&(u=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let c=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:h&&!u&&(m=h.getComputedStyle(e).getPropertyValue(c)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}function u(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},77213:function(e,t,i){"use strict";i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},36400:function(e,t,i){"use strict";var n=i(31534);let o=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},97228:function(e,t,i){"use strict";var n=i(81937),o=i(85932);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},38027:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(29953);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},14228:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},58250:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},29953:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(14228),o=i(58250),r=i(11080)},11080:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},33201:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(38027),o=i(29953)},54794:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(3347);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},421:function(e,t,i){"use strict";var n=i(91565);let o=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,o])},89308:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(85932),o=i(18303);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},37427:function(e,t,i){"use strict";i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},93640:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return x.$$},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return z.LimitedStack},OptionsError:function(){return v.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.UNSAFE_PROTO_KEYS},abort:function(){return v.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},attr:function(){return l.attr},attrRaw:function(){return l.attrRaw},browser:function(){return u.browser},buildQuery:function(){return c.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},callThis:function(){return L.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return m.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return d.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return m.css},cssInline:function(){return m.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.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},getHAlign:function(){return n.getHAlign},getPropertyDescriptor:function(){return L.getPropertyDescriptor},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return k.humanSizeToBytes},inView:function(){return D.inView},isAtom:function(){return b.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.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 T.previewBox},refs:function(){return x.refs},reset:function(){return I.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return D.scrollIntoViewIfNeeded},set:function(){return j.set}});var n=i(16849),o=i(47760),r=i(28712),s={};for(var a in r)0>["default","alignElement","clearAlign","getHAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(s[a]=(function(e){return r[e]}).bind(0,a));i.d(t,s);var l=i(7909),u=i(26136),c=i(36833),d=i(91321),h=i(77483),p=i(3856),m=i(80991),f=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),k=i(37427),S=i(78048),C=i(49385),E=i(36310),T=i(57075),I=i(43379),D=i(60898),x=i(28723),j=i(52144),z=i(42820),L=i(71125)},78048:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,n])},49385:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}i.d(t,["cns",0,n])},36310:function(e,t,i){"use strict";i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}])},57075:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var n=i(23211),o=i(85932),r=i(7909),s=i(80991);function a(e,t,i="px",l=null){let u=[],c=function(e,t){let i=[],o=[];n.Dom.each(e.editor,e=>{n.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();n.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),n.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let c=e.c.div("jodit__preview-box jodit-context");l&&n.Dom.append(l,c),(0,s.css)(c,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),n.Dom.append(c,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),c=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),a=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};u.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(c,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{n.Dom.append(t,e)}catch(e){}}else try{n.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(c,d),e.e.fire("afterPreviewBox",c),[c,()=>{u.forEach(e=>e())}]}finally{c.forEach(e=>e())}}},43379:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(81937),o=i(91565),r=i(89308);let s={};function a(e){var t,i;if(!(e in s)){let t=n.globalDocument.createElement("iframe");try{if(t.src="about:blank",n.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,r.get)(e,t.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,o.isFunction)(i)&&(s[e]=i.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(i=t.parentNode)||i.removeChild(t)}}return null!=(t=s[e])?t:null}},60898:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(23211);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(n=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>n.top||r+s<=n.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(n.Dom.isHTMLElement(e)&&!o(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}o(e,t,i)||e.scrollIntoView({block:"nearest"})}}},28723:function(e,t,i){"use strict";i.d(t,{$$:function(){return d},resolveElement:function(){return p}});var n=i(81937),o=i(23211),r=i(88475),s=i(85932),a=i(57821),l=i(7909),u=i(33201);let c=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++c;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,u.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,u.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},52144:function(e,t,i){"use strict";i.d(t,{set:function(){return l}});var n=i(17312),o=i(70222),r=i(62101),s=i(85932),a=i(78048);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let u=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,n.isArray)(u[t])||(0,r.isPlainObject)(u[t])||(u[t]=(0,o.isNumeric)(l[e+1])?[]:{}),u=u[t]}u&&(u[l[l.length-1]]=t)}},42820:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return o}});var n=i(25045);class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){(0,n._)(this,"limit",void 0),(0,n._)(this,"stack",void 0),this.limit=e,this.stack=[]}}},71125:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return c},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return u}});var n=i(52100),o=i(18303),r=i(7909),s=i(36400);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function u(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},55810:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(81937),o=i(52433),r=i(3050);function s(e,t,i,s,a,l,u){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(u(e,t,"style").innerHTML=s.styles)}},3050:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return d},loadStyle:function(){return u}});var n=i(49376),o=i(81937),r=i(74264),s=i(47760),a=i(86189);let l=new Set;function u(e,t){return(0,n._)(function*(){let i=c(e,t,!1);if(!l.has(i))return l.add(i),(0,s.appendStyleAsync)(e,i)})()}function c(e,t,i){t=(0,r.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,n){try{let o=i.filter(t=>!e.has((0,a.normalizeName)(t.name)));o.length&&o.map(e=>{let i=e.url||c(t,e.name,!0);return(0,s.appendScriptAsync)(t,i).then(n).catch(()=>null)})}catch(e){if(!o.IS_PROD)throw e}}},25974:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(81937),o=i(91565);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},86189:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(74264);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},91206:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(18855);i(85305)},85305:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return m}});var n=i(25045),o=i(81937),r=i(42689),s=i(32328),a=i(17312),l=i(52433),u=i(85932),c=i(55810),d=i(3050),h=i(25974),p=i(86189);class m{get size(){return this.__items.size}add(e,t){this.__items.set((0,p.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,p.normalizeName)(e))}remove(e){this.__items.delete((0,p.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,u.isString)(e)?{name:e}:e),disableList:new Set((0,s.splitArray)(e.o.disablePlugins).map(p.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},r=new Map,m={},f=new Set;e.__plugins=m;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([n,o])=>{if(i.has(n)||r.has(n))return;let s=null==o?void 0:o.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(e=>i.has(e)))return;if(!s.every(e=>r.has(e)))return void f.add(n)}t=!0;let l=(0,h.makeInstance)(e,o);if(!l){r.set(n,null),f.delete(n);return}(0,c.init)(e,n,o,l,r,f,this.opts.getContainer),m[n]=l}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(m).forEach(t=>{let i=m[t];(0,l.isDestructable)(i)&&i.destruct(e),delete m[t]}),delete e.__plugins}),o.IS_PROD||f.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){(0,n._)(this,"opts",void 0),(0,n._)(this,"__items",void 0),this.opts=e,this.__items=new Map}}},18855:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return l}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(24497);class l extends r.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,a.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(r.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:e}=this;if(e.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.STATUSES.beforeDestruct),!this.__inited)return super.destruct();if((0,a.isJoditObject)(e)){var t;null==(t=this.buttons)||t.forEach(t=>{null==e||e.unregisterButton(t)})}this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,n._)(this,"buttons",[]),(0,n._)(this,"hasStyle",!1),(0,n._)(this,"styles",void 0),(0,n._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,n._)(l,"requires",[]),(0,o.__decorate)([s.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__beforeDestruct",null)},17338:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return g}});var n=i(49376),o=i(6311),r=i(25045),s=i(41411),a=i(31635),l=i(86367),u=i(91231),c=i(81937),d=i(49574),h=i(65946),p=i(33201),m=i(5266);i(37102);var f=i(32855);class g{className(){return"Ajax"}__buildParams(e,t){return(0,h.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,h.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,h.isString)(e)||e instanceof c.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,h.isFunction)(e.append)?e:(0,h.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise((o,r)=>(0,n._)(function*(){var n;let s=()=>{this.__isFulfilled=!0,r(p.connection("Connection error"))},a=()=>{this.__isFulfilled=!0,o(new f.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=a,e.onabort=()=>{this.__isFulfilled=!0,r(p.abort("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(t=(i=this.options).onProgress)||t.call(i,n)},e.onreadystatechange=()=>{var i,n;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.__isFulfilled=!0,r(p.connection(e.statusText))))},e.withCredentials=null!=(n=t.withCredentials)&&n;let{url:l,data:u,method:c}=i;e.open(c,l,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:d}=t;(0,h.isFunction)(d)&&(d=yield d.call(this)),d&&e.setRequestHeader&&Object.keys(d).forEach(t=>{e.setRequestHeader(t,d[t])}),this.__async.setTimeout(()=>{e.send(u?this.__buildParams(u):void 0)},0)}).call(this))}stream(){return(0,l._)(function*(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),r=0,s="",a=[],l=null,u=!1,c=null,d=()=>{if(l){let e=l;l=null,e()}},m=e=>{var i;let n=t.responseText;s+=n.substring(r),r=n.length;let o=s.split("\n\n");for(let t of(s=e?"":null!=(i=o.pop())?i:"",o)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split("\n"))t.startsWith("data: ")?i.push(t.slice(6)):t.startsWith("data:")&&i.push(t.slice(5));i.length&&a.push(i.join("\n"))}d()};t.onprogress=()=>m(!1),t.onload=()=>{m(!0),u=!0,this.__isFulfilled=!0,d()},t.onerror=()=>{c=p.connection("Connection error"),u=!0,this.__isFulfilled=!0,d()},t.onabort=()=>{c=p.abort("Abort connection"),u=!0,this.__isFulfilled=!0,d()},t.withCredentials=null!=(e=i.withCredentials)&&e;let{url:f,data:g,method:_}=n;t.open(_,f,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:v}=i;(0,h.isFunction)(v)&&(v=yield(0,o._)(v.call(this))),v&&t.setRequestHeader&&Object.keys(v).forEach(e=>{t.setRequestHeader(e,v[e])}),t.send(g?this.__buildParams(g):void 0);try{for(;;)if(a.length>0)yield a.shift();else if(u)break;else yield(0,o._)(new Promise(e=>{l=e}))}finally{this.__isFulfilled||this.abort()}if(c)throw c}).call(this)}prepareRequest(){if(!this.o.url)throw p.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,h.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,h.parseQuery)(e.substring(i));e=e.substring(0,i)+"?"+(0,h.buildQuery)((0,s._)({},n,t))}else e+="?"+(0,h.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return g.log.splice(100),g.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=m.Config.prototype.defaultAjaxOptions){(0,r._)(this,"__async",new u.Async),(0,r._)(this,"xhr",void 0),(0,r._)(this,"options",void 0),(0,r._)(this,"__isFulfilled",!1),(0,r._)(this,"__activated",!1),(0,r._)(this,"__isDestructed",!1),this.options=(0,h.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,r._)(g,"log",[]),(0,a.__decorate)([d.autobind],g.prototype,"destruct",null)},37102:function(e,t,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},73714:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(17338),o=i(32855)},32855:function(e,t,i){"use strict";i.d(t,{Response:function(){return r}});var n=i(49376),o=i(25045);class r{get url(){return this.request.url}json(){return(0,n._)(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return(0,n._)(function*(){return this.body}).call(this)}constructor(e,t,i,n){(0,o._)(this,"status",void 0),(0,o._)(this,"statusText",void 0),(0,o._)(this,"request",void 0),(0,o._)(this,"body",void 0),this.request=e,this.status=t,this.statusText=i,this.body=n}}},42259:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(81937),o=i(23211),r=i(89817);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>i?e.lastChild:s(e),n=t(e);for(;n;){if(n&&o.Dom.isText(n)){e=n;break}n=t(n)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(7470)},89817:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},7470:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(23211);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59841:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return o.CommitStyle},Selection:function(){return n.Selection}});var n=i(98595),o=i(84578)},98595:function(e,t,i){"use strict";i.d(t,{Selection:function(){return f}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(65946),u=i(28686),c=i(16849),d=i(28712),h=i(7470),p=i(84578),m=i(42259);class f{get j(){return this.jodit}errorNode(e){if(!a.Dom.isNode(e))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,u.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!a.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let i=e.getRangeAt(t);a.Dom.isOrContains(this.area,i.commonAncestorContainer)&&(i.deleteContents(),i.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!a.Dom.isOrContains(this.j.editor,e,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){try{var i,n,o,r;let s=this.createRange(),l=null==(i=(n=this.doc).caretPositionFromPoint)?void 0:i.call(n,e,t),u=l?null:null==(o=(r=this.doc).caretRangeFromPoint)?void 0:o.call(r,e,t);if(l)s.setStart(l.offsetNode,l.offset);else{if(!u)return!1;s.setStart(u.startContainer,u.startOffset)}if(!a.Dom.isOrContains(this.area,s.startContainer))return!1;return s.collapse(!0),this.removeMarkers(),this.selectRange(s),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove(...this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let n=this.j.createInside.span();return n.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,l.css)(n,{lineHeight:"0",display:"none"}),a.Dom.markTemporary(n),(0,l.attr)(n,"data-"+r.MARKER_CLASS,e?"start":"end"),a.Dom.append(n,this.j.createInside.text(r.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(n),n}restore(){let e=this.markers,t=new Map(e.map(e=>[e.id,e])),i=[],n=!1;for(let u=0;u<e.length;u+=1){let c=e[u];if("start"!==(0,l.attr)(c,"data-"+r.MARKER_CLASS))continue;n||(n="true"===(0,l.attr)(c,"data-selection-backward"));let d=(0,l.attr)(c,"data-selection-end"),h=d?t.get(d):void 0;!d&&e[u+1]&&"end"===(0,l.attr)(e[u+1],"data-"+r.MARKER_CLASS)&&(h=e[u+1]);let p=this.createRange();if(h)p.setStartAfter(c),p.setEndBefore(h);else{let e=c.previousSibling;if(a.Dom.isText(e)){var o,s;p.setStart(e,null!=(o=null==(s=e.nodeValue)?void 0:s.length)?o:0)}else p.setStartBefore(c);p.collapse(!0)}i.push(p)}a.Dom.safeRemove(...e),i.length&&this.__selectRanges(i,n)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,i)=>e.getRangeAt(i).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),i=t.map(e=>{let t=e.collapsed,i=e.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();a.Dom.safeInsertNode(i,n),e.setStartBefore(n);let o=[n];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),o.push(i)}return o});return this.__fakeSelections.set(i[0][0],{pairs:i,backward:e}),this.__selectRanges(t,e),i[0]}restoreFakes(e){var t,i,n;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let r=[];for(let s of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=s.filter(e=>e.isConnected&&a.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let r of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(i=r.parentNode)?void 0:i.firstChild)!==(null==(n=r.parentNode)?void 0:n.lastChild)&&a.Dom.safeRemove(r);r.push(l)}r.length&&this.__selectRanges(r,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=this.__isBackward(),n=[],o=t.rangeCount,r=[];for(let e=0;o>e;e+=1)if(r[e]=t.getRangeAt(e),!a.Dom.isOrContains(this.area,r[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(r[e].collapsed){let t=this.marker(!0,r[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,r[e]),s=this.marker(!1,r[e]);o>1&&(0,l.attr)(t,"data-selection-end",s.id),i&&(0,l.attr)(t,"data-selection-backward","true"),n[e]={startId:t.id,endId:s.id,collapsed:!1,startMarker:t.outerHTML,endMarker:s.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let i=this.area.querySelector("#"+n[e].startId);if(i){if(n[e].collapsed)r[e].setStartAfter(i),r[e].collapse(!0);else if(r[e].setStartBefore(i),n[e].endId){let t=this.area.querySelector("#"+n[e].endId);t&&r[e].setEndAfter(t)}try{t.addRange(r[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){if(!this.isFocused()){let n=(0,l.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let r=this.sel,s=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}if(!this.j.editorIsActive){var t,i;null==(i=this.j)||null==(t=i.events)||t.fire("focus")}return!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),n=i.startContainer,o=!1;if(!a.Dom.isOrContains(this.area,n))return null;if(a.Dom.isTag(n,"br")&&t.isCollapsed)return n;if(!a.Dom.isText(n)){let r=(0,m.findCorrectCurrentNode)(n,i,o,t.isCollapsed,e,e=>o?e.lastChild:e.firstChild);n=r.node,o=r.rightMode}return n&&a.Dom.isOrContains(this.area,n)?n:null}insertNode(e,t=!0,i=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let n=a.Dom.isFragment(e)?e.lastChild:e;if(!n||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(n=a.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;a.Dom.isOrContains(this.area,t.commonAncestorContainer)?a.Dom.safeInsertNode(t,e):a.Dom.append(this.area,e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==i||null==(e=i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)})}else a.Dom.append(this.area,e);let i=e=>{if(a.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(a.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(e)?a.Dom.append(i,e):i.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",i.innerHTML)||i.lastChild&&(a.Dom.moveContent(i,n),this.insertNode(n,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,i=null){let n=(0,u.isString)(e)?this.j.createInside.element("img"):e;if((0,u.isString)(e)&&(0,l.attr)(n,"src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,l.attr)(n,"width",e)}t&&"object"==typeof t&&(0,l.css)(n,t);let{imageDefaultAlign:o,imageAlignClasses:r}=this.j.o;o&&"normal"!==o&&(0,c.hAlignElement)(n,o,r);let s=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(0,l.css)(n,{width:"",height:""}),n.removeEventListener("load",s)};this.j.e.on(n,"load",s),n.complete&&s(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){let t=new Set;for(let i of this.__ranges())a.Dom.isOrContains(this.area,i.commonAncestorContainer)&&this.__eachRange(i,i=>{t.has(i)||(t.add(i),e(i))})}__eachRange(e,t){var i;let n=e.commonAncestorContainer;a.Dom.isHTMLElement(n)||(n=n.parentElement);let o=[],s=e.startOffset,c=n.childNodes.length,d=e.startContainer===this.area?n.childNodes[s<c?s:c-1]:e.startContainer,h=e.endContainer===this.area?n.childNodes[e.endOffset-1]:e.endContainer;a.Dom.isText(d)&&d===e.startContainer&&e.startOffset===(null==(i=d.nodeValue)?void 0:i.length)&&d.nextSibling&&(d=d.nextSibling),a.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===n||a.Dom.isEmptyTextNode(e)||(0,u.isMarker)(e)||o.push(e)};p(d),d!==h&&a.Dom.isOrContains(n,d,!0)&&a.Dom.find(d,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),n,!0,!1);let m=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(m);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.append(e,t),e=t}t(e)}};0===o.length&&(a.Dom.isEmptyTextNode(d)&&o.push(d),(null==d?void 0:d.firstChild)&&o.push(d.firstChild)),o.forEach(m)}cursorInTheEdge(e,t,i=null){let n=!e,o=this.sel,r=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!r)return null;let s=e?r.startContainer:r.endContainer,l=e?r.startOffset:r.endOffset;if(null!=i||(i=s),!a.Dom.isOrContains(t,s)||!a.Dom.isOrContains(t,i))return null;let u=e=>!!(e&&!a.Dom.isTag(e,"br")&&!a.Dom.isEmptyTextNode(e)&&!a.Dom.isTemporary(e)&&!(a.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(a.Dom.isText(s)){if((0,m.cursorInTheEdgeOfString)(s,l,e,n))return!1}else{let e=s.childNodes,t=n?e.length:l;for(let i=n?l:0;t>i;i+=1)if(u(e[i]))return!1}let c=i;for(;c&&c!==t;){let t=a.Dom.sibling(c,e);if(!t){c=c.parentNode;continue}if(u(c=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){if(this.errorNode(e),!a.Dom.isOrContains(this.area,e,!0))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=null;if(a.Dom.isText(e))if(t)i.setStart(e,0);else{var o,r;i.setEnd(e,null!=(o=null==(r=e.nodeValue)?void 0:r.length)?o:0)}else n=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),a.Dom.safeInsertNode(i,n),i.selectNode(n);return i.collapse(t),this.selectRange(i),n}setCursorIn(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=e,o=e;do{if(a.Dom.isText(n)||a.Dom.isTag(n,r.INSEPARABLE_TAGS))break;o=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){let e=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.isTag(o,r.INSEPARABLE_TAGS)?n=o:(a.Dom.append(o,e),o=e)}let s=n||o;return a.Dom.isTag(s,r.INSEPARABLE_TAGS)?t||a.Dom.isTag(s,"br")?i.setStartBefore(s):i.setEndAfter(s):i.selectNodeContents(s),i.collapse(t),this.selectRange(i),o}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,i=!0){let n=this.sel;if(i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),e.forEach(e=>n.addRange(e)),t&&1===e.length)){let t=e[0];n.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=!t&&this.__closestNotEditable(e)||e,n=this.createRange();return n[t||i===this.area?"selectNodeContents":"selectNode"](i),this.selectRange(n)}__closestNotEditable(e){let{area:t}=this,i=null,n=e.parentNode;for(;n&&n!==t&&t.contains(n);)a.Dom.isElement(n)&&"false"===n.getAttribute("contenteditable")&&(i=n),n=n.parentNode;return i}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>a.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(a.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,i,n,o;let{endContainer:r,endOffset:s}=e;a.Dom.isText(r)&&s>0&&s<(null!=(t=null==(n=r.nodeValue)?void 0:n.length)?t:0)&&r.splitText(s);let{startContainer:l,startOffset:u}=e;if(a.Dom.isText(l)&&u>0&&u<(null!=(i=null==(o=l.nodeValue)?void 0:o.length)?i:0)){let t=l.splitText(u);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var i,n;let o=t?e.startContainer:e.endContainer;if(!a.Dom.isText(o))return;let r=t?e.startOffset:e.endOffset,s=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===r?t?e.setStartBefore(o):e.setEndBefore(o):r>=s&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,i=this.createRange()){let n=[];return(0,l.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,i)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t,i))}),n}__isFullyContained(e,t,i){return i.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0}__wrapSelectionRuns(e){let t=[],i=[],n=()=>{i.length&&(t.push(this.__wrapRunInFont(i)),i=[])};return e.forEach(e=>{a.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(n(),t.push(...this.__wrapSelectionRuns((0,l.toArray)(e.childNodes)))):(i.length&&i[i.length-1].parentNode!==e.parentNode&&n(),i.push(e))}),n(),t}__isOrContainsBlock(e){return!!a.Dom.isBlock(e)||(0,l.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[i]=e;return a.Dom.before(i,t),e.forEach(e=>a.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&a.Dom.append(t,e[0]);try{yield t}finally{a.Dom.unwrap(t)}return}let i=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of i){if(this.j.isInDestruct||!a.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,u.isMarker)(t)){a.Dom.unwrap(e);continue}t&&(0,u.isMarker)(t)&&a.Dom.before(e,t),i&&(0,u.isMarker)(i)&&a.Dom.after(e,i),yield e,a.Dom.unwrap(e)}}finally{i.forEach(e=>a.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,u.isMarker)(i.firstChild))continue;(0,u.isFunction)(e)?e(i):t.push(a.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(a.Dom.unwrap(i),a.Dom.isEmpty(e)&&a.Dom.unwrap(e))}return t}commitStyle(e){(0,d.assert)((0,l.size)(e)>0,"Need to pass at least one option"),new p.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!a.Dom.isOrContains(this.area,e,!0)||!a.Dom.isOrContains(e,this.range.startContainer)||t&&!a.Dom.isOrContains(e,t,!0))return null;let i=this.createRange(),n=this.range;i.setStartBefore(e);let o=this.cursorOnTheRight(e,t),s=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),c=u.cloneNode();try{if(o||s){t?a.Dom.before(t,l):a.Dom.safeInsertNode(n,l);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),a.Dom.after(l,c),a.Dom.before(l,u),o?(i.setEndBefore(l),n.setEndBefore(l)):(i.setEndAfter(l),n.setEndAfter(l))}else i.setEnd(n.startContainer,n.startOffset);let h=i.extractContents(),p=e=>a.Dom.each(e,e=>a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e));(0,d.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),a.Dom.before(e,h),!t&&o&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!r.IS_PROD)throw e}let m=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&a.Dom.append(t,l.cloneNode())};m(u),m(c)}finally{a.Dom.safeRemove(u),a.Dom.safeRemove(c)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!a.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),a.Dom.safeInsertNode(n,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let r=a.Dom.findSibling(n,!1),s=a.Dom.findSibling(o,!0);if(r!==s){let e=a.Dom.isElement(r)&&a.Dom.isOrContains(r,o),i=!e&&a.Dom.isElement(s)&&a.Dom.isOrContains(s,n);if(e||i){let i=e?r:s,l=i;for(;a.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?a.Dom.isOrContains(i,o):a.Dom.isOrContains(i,n))&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}if(a.Dom.safeRemove(n,o),t.collapsed)throw(0,l.error)("Selection is collapsed");return t}constructor(e){(0,n._)(this,"jodit",void 0),(0,n._)(this,"__fakeSelections",void 0),this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,o.__decorate)([s.autobind],f.prototype,"createRange",null),(0,o.__decorate)([s.autobind],f.prototype,"focus",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorAfter",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorBefore",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorIn",null)},17481:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return s}});var n=i(23211),o=i(23175),r=i(71125);function s(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),a(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),a(e,n,!1)}function a(e,t,i){let o=t.extractContents();n.Dom.isEmpty(o)&&o.firstChild&&n.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(i?n.Dom.before:n.Dom.after,e,o)}},48729:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return a}});var n=i(25045),o=i(81937),r=i(85932),s=i(28712);class a{setState(e){(0,s.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,s.assert)(e&&e!==t,"Action should return new value"),(0,s.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,s.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),o.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){(0,n._)(this,"transitions",void 0),(0,n._)(this,"__state",void 0),(0,n._)(this,"silent",void 0),(0,n._)(this,"__previewsStates",void 0),this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},10171:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(23211),o=i(83653),r=i(73019);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},19549:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){var a;let{parentNode:l}=i;return l===s||!n.Dom.isHTMLElement(l)||n.Dom.next(i,o.isNormalNode,l)||n.Dom.prev(i,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(l)?e(t,l,s):n.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!n.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!n.Dom.isBlock(l)?e(t,l,s):null}}});var n=i(23211),o=i(83653),r=i(73019)},9703:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return c}});var n=i(81937),o=i(23211),r=i(18303),s=i(19147),a=i(28712),l=i(80991);function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(u(e,{fontSize:null}),"Style test"),(0,a.assert)(u(e,{fontSize:""}),"Style test")}function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(!c(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!c(e,{border:"1px solid #ccc"}),"Style test")}},51640:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return c.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var n=i(17481),o=i(48729),r=i(10171),s=i(19549);i(9703);var a=i(39608);i(83653),i(95971);var l=i(73019),u=i(34582);i(97110);var c=i(82794),d=i(89081),h=i(73154);i(83335)},39608:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},83653:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(23211),o=i(23175);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},95971:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return u},isSameAttributes:function(){return l}});var n=i(18073),o=i(93640),r=i(28712),s=i(7909),a=i(9703);function l(e,t){return!(0,n.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>{if("class"===i||"className"===i){var n;return(null!=(n=String(t[i]).match(/[^\t\n\f\r ]+/g))?n:[]).every(t=>e.classList.contains(t))}if("style"===i)return(0,a.hasSameStyle)(e,t[i]);let r=t[i];return(0,o.attr)(e,i)===(null==r?r:String(r))}))}function u(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},73019:function(e,t,i){"use strict";i.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(23211),o=i(9703),r=i(83653);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:u,elementIsDefault:c,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,u);return!!(h&&!(c&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&c&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}},34582:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return u}});var n=i(23211),o=i(28712),r=i(17481),s=i(82794),a=i(98394),l=i(97110);function u(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let u=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if("unwrap"!==n){let r="change"===(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0);if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=c(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return u(a.REPLACE,r,e),a.REPLACE}}return u("unwrap",c("unwrap",o,t,i,e),e),"unwrap"}function c(e,t,i,s,l){let u=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return u?((0,o.assert)(n.Dom.isHTMLElement(u),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),e===a.REPLACE)?i:n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},97110:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(23211),o=i(95971),r=i(82794),s=i(98394);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),u=l.previousElementSibling,c=l.nextElementSibling,d=n.Dom.isTag(u,e.element)?u:null;return null!=d||(d=n.Dom.isTag(c,e.element)?c:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),u===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",d,e),d}},82794:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return m}});var n=i(81937),o=i(23211),r=i(28077),s=i(28686),a=i(19147),l=i(18073),u=i(93640),c=i(80991),d=i(36400),h=i(98394);let p="toggleAttributes";function m(e,t,i,f,g=!1){var _;if(!g&&e.isApplied(t,p))return f;g||e.setApplied(t,p);let{attributes:v}=e.options;return v&&(0,l.size)(v)>0&&Object.keys(v).forEach(e=>{var p,m;let _=v[e];switch(e){case"style":p=f,(0,u.assert)((0,s.isPlainObject)(_)&&(0,l.size)(_),"Style must be an object"),Object.keys(_).forEach(e=>{let s=(0,c.cssInline)(t,e),l=_[e];if(""!==s||null!=l){let h,m,f,_;if(null==l||""===l){s&&(g||(0,c.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),s=n.globalDocument.createElement("iframe");(0,c.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,u.attr)(s,"src","about:blank"),o.Dom.append(i,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(i),m=i.create.element("div"),(0,c.css)(m,"color",(0,c.css)(i.editor,"color")),f=i.create.element(t.tagName.toLowerCase()),(0,u.attr)(f,"style",(0,u.attr)(t,"style")),o.Dom.append(m,f),o.Dom.append(h,m),_=(0,c.css)(f,e),o.Dom.safeRemove(m),_===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,c.css)(t,e,null),p="unset";return}p="change",g||(0,c.css)(t,e,l)}}),f=p;break;case"className":case"class":f=function(e,t,i,n,o){var r;(0,u.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return n;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>i.classList.contains(e))?(n="unset",o||(i.classList.remove(...a),0===i.classList.length&&(0,u.attr)(i,"class",null),l(n,i,"class",(0,u.attr)(i,"class")))):(n="change",o||(i.classList.add(...a),l(n,i,"class",t))),n}(i,_,t,f,g);break;default:let b;m=f,(0,u.assert)((0,s.isString)(_)||(0,s.isNumber)(_)||(0,s.isBoolean)(_)||null==_,"Attribute value must be a string or number or boolean or null"),b=i.e.fire.bind(i.e,`${h._PREFIX}AfterToggleAttribute`),(0,u.attr)(t,e)===(null==_?_:String(_))?(g||(0,u.attr)(t,e,null),m="unset",g||b(m,t,e,_)):(m="change",g||((0,u.attr)(t,e,_),b(m,t,e,_))),f=m}}),!g&&(null==v?void 0:v.style)?(_=f,!(0,u.attr)(t,"style")&&((0,u.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),_="unwrap")),_):f}},89081:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(23211),o=i(93640),r=i(9703),s=i(73019);function a(e,t){var i;let a,l=[],u=[],c=null==(i=e.options.attributes)?void 0:i.style,d=Object.keys(null!=c?c:{}),h={};d.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&n.Dom.isTag(t,e.element)&&l.push(t)};for(let i of n.Dom.eachGen(t))n.Dom.isContentEditable(i,t)&&((0,s.isSuitElement)(e,i,!0)&&(!c||(0,r.hasSameStyleKeys)(i,c))?(void 0===a&&(a=!0),c?u.push(()=>p(i)):l.push(i)):c&&n.Dom.isHTMLElement(i)&&d.some(e=>""!==(0,o.css)(i,e,!0))?(void 0===a&&(a=!1),u.push(()=>p(i))):n.Dom.isEmptyTextNode(i)||void 0!==a||(a=!1));return u.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},83335:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),u=a(t,"nextSibling"),c=i.s.createRange();c.setStartBefore(l),c.setEndAfter(u);let d=c.extractContents(),h=s.element(e.element);return n.Dom.append(h,d),n.Dom.safeInsertNode(c,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&n.Dom.append(h,s.element("br")),h}},73154:function(e,t,i){"use strict";i.d(t,{wrap:function(){return l}});var n=i(27795),o=i(7909),r=i(80991),s=i(97110),a=i(83335);function l(e,t,i){var l,c,d;let h=(l=e,c=t,d=i,l.elementIsBlock?n.Dom.up(c,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,u)&&!Array.from(e.childNodes).some(e=>n.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,c,d):((0,o.attr)(c,"size",null),c));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let p=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let u=new Set(["td","th","tr","tbody","table","li","ul","ol"]);i.d(t,["WRAP_NODES",0,u])},96127:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(51640),o=i(98394),r=i(78462);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),u=s.isCollapsed(),c=o.INITIAL;try{for(let i of s.wrapInTagGen(l)){let o={collapsed:u,mode:c,element:i,next:r.states.START,jodit:e,style:t},s=new n.FiniteStateMachine(r.states.START,r.transactions);for(;!e.isInDestruct&&s.getState()!==r.states.END;)o=s.dispatch("exec",o);c=o.mode}}finally{s.restoreFakes(l)}}},84578:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return l}});var n=i(25045),o=i(81937),r=i(57821),s=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&!!i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},98394:function(e,t,i){"use strict";i.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},78462:function(e,t,i){"use strict";var n=i(41411),o=i(15366),r=i(81937),s=i(23211),a=i(28712),l=i(51640),u=i(98394);let c={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[c.START]:{exec(e){let{element:t,jodit:i,style:r,mode:a,collapsed:u}=e;if(!s.Dom.isContentEditable(t,i.editor)||(0,l.isInsideInvisibleElement)(t,i.editor)||!u&&s.Dom.isEmptyContent(t))return(0,o._)((0,n._)({},e),{next:c.END});let d=(0,l.getSuitParent)(r,t,i.editor)||(0,l.getSuitChild)(r,t);if(d)return(0,o._)((0,n._)({},e),{next:c.ELEMENT,element:d});let h=(0,l.suitableClosest)(r,t,i.editor);return r.elementIsList&&s.Dom.isList(h)?(0,o._)((0,n._)({},e),{next:c.LIST}):h?(0,o._)((0,n._)({},e),{next:c.EXTRACT}):(0,o._)((0,n._)({},e),{next:"unwrap"!==a?c.UNWRAP_CHILDREN:c.END})}},[c.LIST]:{exec(e){let{element:t,jodit:i,mode:a}=e;if(a!==u.INITIAL&&"unwrap"!==a&&a!==u.REPLACE)return(0,o._)((0,n._)({},e),{next:c.END});let l=s.Dom.closest(t,"li",i.editor);return l&&s.Dom.closest(t,r.LIST_TAGS,i.editor)?(0,o._)((0,n._)({},e),{element:l,next:c.TOGGLE_LIST}):(0,o._)((0,n._)({},e),{next:c.END})}},[c.TOGGLE_LIST]:{exec(e){return(0,o._)((0,n._)({},e),{mode:(0,l.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:c.END})}},[c.EXTRACT]:{exec(e){var t;let{element:i,jodit:r,style:u}=e,d=(0,l.suitableClosest)(u,i,r.editor);return((0,a.assert)(d,"This place should have an element"),!u.elementIsBlock&&(null==(t=u.options.attributes)?void 0:t.style)&&s.Dom.isBlock(d))?(0,o._)((0,n._)({},e),{next:c.WRAP}):(u.elementIsBlock||(0,l.extractSelectedPart)(d,i,r),(0,o._)((0,n._)({},e),{element:d,next:c.ELEMENT}))}},[c.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,l.unwrapChildren)(i,t)?(0,o._)((0,n._)({},e),{mode:"unwrap",next:c.END}):(0,o._)((0,n._)({},e),{next:c.WRAP})}},[c.WRAP]:{exec(e){let{element:t,jodit:i,style:r}=e,s=(0,l.wrap)(r,t,i);return(0,o._)((0,n._)({},e),{next:r.elementIsList?c.END:c.CHANGE,mode:"wrap",element:s})}},[c.ELEMENT]:{exec(e){let{style:t,element:i,jodit:r}=e;return(0,l.toggleAttributes)(t,i,r,u.INITIAL,!0)!==u.INITIAL?(0,o._)((0,n._)({},e),{next:c.CHANGE}):s.Dom.isTag(i,t.element)?(0,o._)((0,n._)({},e),{next:c.UNWRAP}):(0,o._)((0,n._)({},e),{next:c.END})}},[c.CHANGE]:{exec(e){let{style:t,element:i,jodit:r,mode:a}=e,u=(0,l.toggleAttributes)(t,i,r,e.mode);return"wrap"!==a&&"unset"===u&&!i.attributes.length&&s.Dom.isTag(i,t.element)?(0,o._)((0,n._)({},e),{next:c.UNWRAP}):(0,o._)((0,n._)({},e),{mode:u,next:c.END})}},[c.UNWRAP]:{exec(e){let{element:t,style:i,jodit:r}=e;if(t.attributes.length&&s.Dom.isTag(t,i.element))return(0,o._)((0,n._)({},e),{next:c.REPLACE_DEFAULT});let a=t.parentElement;return i.elementIsBlock&&!i.elementIsDefault&&a&&a!==r.editor&&s.Dom.isBlock(a)&&!s.Dom.isTag(a,l.WRAP_NODES)?(0,o._)((0,n._)({},e),{next:c.REPLACE_DEFAULT}):(s.Dom.unwrap(t),(0,o._)((0,n._)({},e),{mode:"unwrap",next:c.END}))}},[c.REPLACE_DEFAULT]:{exec(e){return s.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),(0,o._)((0,n._)({},e),{mode:u.REPLACE,next:c.END})}},[c.END]:{exec(e){return e}}};i.d(t,["states",0,c,"transactions",0,d])},8006:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return u}});var n=i(49376),o=i(25045),r=i(57821),s=i(91162),a=i(59807),l=i(9505);class u{set(e,t){return(0,n._)(function*(){let i=yield this.provider;return yield i.set((0,r.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return(0,n._)(function*(){let t=yield this.provider;return yield t.delete((0,r.camelCase)(this.prefix+e)),this}).call(this)}get(e){return(0,n._)(function*(){return(yield this.provider).get((0,r.camelCase)(this.prefix+e))}).call(this)}exists(e){return(0,n._)(function*(){return(yield this.provider).exists((0,r.camelCase)(this.prefix+e))}).call(this)}clear(){return(0,n._)(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return(0,n._)(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,i){let n,o=null==i?void 0:i.defaultProvider;return null!=o?new u(Promise.resolve(n="local"===o?(0,a.canUsePersistentStorage)("localStorage")?new a.LocalStorageProvider("Jodit_"+(t||"")):new l.MemoryStorageProvider:"memory"===o?new l.MemoryStorageProvider:o),t):("localStorage"===e||"sessionStorage"===e?(0,a.canUsePersistentStorage)(e)&&(n=new a.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(n=(0,s.canUseIndexedDB)().then(e=>e?new s.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new l.MemoryStorageProvider)),n||(n=new l.MemoryStorageProvider),new u(Promise.resolve(n),t))}constructor(e,t){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},91162:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return u},clearUseIndexedDBCache:function(){return l}});var n=i(49376),o=i(25045),r=i(81937);class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return(0,n._)(function*(){try{let i=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){r.IS_PROD}return this}).call(this)}delete(e){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return(0,n._)(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return(0,n._)(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return(0,n._)(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return(0,n._)(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return(0,n._)(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return(0,n._)(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="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=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function u(){return(0,n._)(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return a=!1,!1}})()}},59807:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return o}});var n=i(25045);class o{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let i=JSON.parse(t);delete i[e],this.storage.setItem(this.rootKey,JSON.stringify(i))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){(0,n._)(this,"rootKey",void 0),(0,n._)(this,"strategy",void 0),this.rootKey=e,this.strategy=t}}i.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},9505:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return o}});var n=i(25045);class o{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){(0,n._)(this,"data",new Map)}}},25222:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(8006),o=i(91162),r=i(59807),s=i(9505),a=i(24475)},24475:function(e,t,i){"use strict";i.d(t,{Storage:function(){return l}});var n=i(25045),o=i(57821),r=i(59807),s=i(9505);let a="Jodit_";class l{set(e,t){return this.provider.set((0,o.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,o.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,o.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,o.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(a+(t||""))),i||(i=new s.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},80512:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return l}});var n=i(41411),o=i(28077),r=i(28686),s=i(71125),a=i(37333);class l{dlg(e){let t=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new a.Dialog((0,n._)({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,s.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=u(e,this),t=u(t,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=u(e,this),t=u(t,this),n=u(n,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=u(e,this),t=u(t,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function u(e,t){return(0,r.isString)(e)&&!(0,r.isHTML)(e)&&(e=t.i18n(e)),e}},23183:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(23211);class o{getElm(e){let t=this.getFullElName(e);return n.Dom.first(this.container,e=>n.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),i=[];return n.Dom.each(this.container,e=>{n.Dom.isHTMLElement(e)&&e.classList.contains(t)&&i.push(e)}),i}}},81987:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(18303);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},53681:function(e,t,i){"use strict";i.d(t,{Button:function(){return v},UIButton:function(){return _}});var n=i(25045),o=i(31635),r=i(69364),s=i(51676),a=i(91672),l=i(68616),u=i(23211),c=i(91565),d=i(85932),h=i(28712),p=i(7909),m=i(96007),f=i(29434);let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0});class _ extends m.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,h.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,h.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,p.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,p.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,a.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,p.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,p.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,p.attr)(this.container,"data-ref",this.state.name),(0,p.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,p.attr)(this.container,"title",e),(0,p.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,p.attr)(this.container,"aria-label",t),(0,p.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,p.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,c.isFunction)(e)&&e(this.state.name))return;u.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&u.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&u.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return u.Dom.append(t,i),u.Dom.append(t,n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),(0,n._)(this,"isButton",!0),(0,n._)(this,"state",g()),(0,n._)(this,"button",void 0),(0,n._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(r.STATUSES.ready,()=>{this.setState(t)})}}function v(e,t,i,n){let o=new _(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,d.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}(0,o.__decorate)([s.cache],_.prototype,"text",null),(0,o.__decorate)([s.cache],_.prototype,"icon",null),(0,o.__decorate)([(0,l.watch)("state.size",{immediately:!1})],_.prototype,"onChangeSize",null),(0,o.__decorate)([(0,l.watch)("state.type",{immediately:!1})],_.prototype,"onChangeType",null),(0,o.__decorate)([(0,l.watch)("state.role",{immediately:!1})],_.prototype,"onChangeRole",null),(0,o.__decorate)([(0,l.watch)("parentElement")],_.prototype,"updateSize",null),(0,o.__decorate)([(0,l.watch)("state.variant",{immediately:!1})],_.prototype,"onChangeStatus",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],_.prototype,"onChangeText",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],_.prototype,"onChangeTextSetMode",null),(0,o.__decorate)([(0,l.watch)("state.disabled")],_.prototype,"onChangeDisabled",null),(0,o.__decorate)([(0,l.watch)("state.activated")],_.prototype,"onChangeActivated",null),(0,o.__decorate)([(0,l.watch)("state.name",{immediately:!1})],_.prototype,"onChangeName",null),(0,o.__decorate)([(0,l.watch)("state.tooltip",{immediately:!1})],_.prototype,"onChangeTooltip",null),(0,o.__decorate)([(0,l.watch)("state.tabIndex",{immediately:!1})],_.prototype,"onChangeTabIndex",null),(0,o.__decorate)([(0,l.watch)("state.icon",{immediately:!1})],_.prototype,"onChangeIcon",null),(0,o.__decorate)([s.cacheHTML],_.prototype,"createContainer",null),(0,o.__decorate)([(0,l.watch)("button:click")],_.prototype,"__onActionFire",null),_=(0,o.__decorate)([a.component],_),i.d(t,["UIButtonState",0,g])},15367:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return c}});var n=i(25045),o=i(31635),r=i(91672),s=i(23211),a=i(28712),l=i(53681),u=i(63468);class c extends u.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){var e,t,i={5266:function(e,t,i){"use strict";i.d(t,{Config:function(){return s}});var n=i(25045),o=i(81937);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){(0,n._)(this,"cache",!0),(0,n._)(this,"defaultTimeout",100),(0,n._)(this,"namespace",""),(0,n._)(this,"safeMode",!1),(0,n._)(this,"width","auto"),(0,n._)(this,"height","auto"),(0,n._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,n._)(this,"commandToHotkeys",void 0),(0,n._)(this,"license",""),(0,n._)(this,"preset","custom"),(0,n._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,n._)(this,"ownerDocument",o.globalDocument),(0,n._)(this,"ownerWindow",o.globalWindow),(0,n._)(this,"shadowRoot",null),(0,n._)(this,"nonce",""),(0,n._)(this,"zIndex",0),(0,n._)(this,"readonly",!1),(0,n._)(this,"disabled",!1),(0,n._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,n._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,n._)(this,"toolbarButtonSize","middle"),(0,n._)(this,"allowTabNavigation",!1),(0,n._)(this,"inline",!1),(0,n._)(this,"theme","default"),(0,n._)(this,"saveModeInStorage",!1),(0,n._)(this,"asyncStorage",{}),(0,n._)(this,"editorClassName",!1),(0,n._)(this,"className",!1),(0,n._)(this,"style",!1),(0,n._)(this,"containerStyle",!1),(0,n._)(this,"styleValues",{}),(0,n._)(this,"triggerChangeEvent",!0),(0,n._)(this,"direction",""),(0,n._)(this,"language","auto"),(0,n._)(this,"debugLanguage",!1),(0,n._)(this,"i18n",!1),(0,n._)(this,"tabIndex",-1),(0,n._)(this,"toolbar",!0),(0,n._)(this,"statusbar",!0),(0,n._)(this,"showTooltip",!0),(0,n._)(this,"showTooltipDelay",200),(0,n._)(this,"useNativeTooltip",!1),(0,n._)(this,"defaultActionOnPaste",o.INSERT_AS_HTML),(0,n._)(this,"enter",o.PARAGRAPH),(0,n._)(this,"iframe",!1),(0,n._)(this,"editHTMLDocumentMode",!1),(0,n._)(this,"enterBlock","br"!==this.enter?this.enter:o.PARAGRAPH),(0,n._)(this,"defaultMode",o.MODE_WYSIWYG),(0,n._)(this,"useSplitMode",!1),(0,n._)(this,"colors",{greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]}),(0,n._)(this,"colorPickerDefaultTab","background"),(0,n._)(this,"imageDefaultWidth",300),(0,n._)(this,"imageDefaultAlign","normal"),(0,n._)(this,"imageAlignClasses",null),(0,n._)(this,"removeButtons",[]),(0,n._)(this,"disablePlugins",[]),(0,n._)(this,"extraPlugins",[]),(0,n._)(this,"basePath",void 0),(0,n._)(this,"extraButtons",[]),(0,n._)(this,"extraIcons",{}),(0,n._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,n._)(this,"sizeLG",900),(0,n._)(this,"sizeMD",700),(0,n._)(this,"sizeSM",400),(0,n._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}]),(0,n._)(this,"controls",void 0),(0,n._)(this,"events",{}),(0,n._)(this,"textIcons",!1),(0,n._)(this,"popupRoot",null),(0,n._)(this,"showBrowserColorPicker",!0),Object.assign(this,r)}}(0,n._)(s,"__defaultOptions",void 0),r=s.prototype,s.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return _}});var n=i(25045),o=i(41411),r=i(15366),s=i(81937),a=i(61077),l=i(72068),u=i(91565),c=i(72412),d=i(62101),h=i(52100),p=i(85932),m=i(18303),f=i(28712),g=i(14228);class _{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,m.isVoid)(t)&&(t=0),(0,c.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let o=(0,a.setTimeout)(e,t,...i),r=n.label||o;return this.timers.set(r,o),this.__callbacks.set(r,e),o}updateTimeout(e,t){if((0,f.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,f.assert)((0,u.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,a.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,p.isString)(e))return this.clearLabel(e);(0,a.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,o=!1,r=[],s=(...t)=>{if(!o){n=0;let i=e(...t);if(o=!0,r.length){let e=()=>{r.forEach(e=>e()),r.length=0};(0,h.isPromise)(i)?i.finally(e):e()}}},c=(...r)=>{o=!1,t?(!n&&i&&s(...r),(0,a.clearTimeout)(n),n=this.setTimeout(()=>s(...r),(0,u.isFunction)(t)?t():t),this.timers.set(e,n)):s(...r)};return(0,d.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{r.push(e)}).catch(e=>{if((0,l.isAbortError)(e))return null;throw e});return c(...e),t}:c}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,s;return(...i)=>{(o=!0,s=i,t)?n||(r=()=>{o?(e(...s),o=!1,n=this.setTimeout(r,(0,u.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...s)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,g.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!s.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,(0,r._)((0,o._)({},t),{signal:i.signal}));return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,g.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,a.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,r,s;(0,n._)(this,"timers",new Map),(0,n._)(this,"__callbacks",new Map),(0,n._)(this,"__queueMicrotaskNative",null!=(e=null==(o=queueMicrotask)?void 0:o.bind(window))?e:Promise.resolve().then.bind(Promise.resolve())),(0,n._)(this,"promisesRejections",new Set),(0,n._)(this,"__requestsIdle",new Set),(0,n._)(this,"__controllers",new Set),(0,n._)(this,"__requestsRaf",new Set),(0,n._)(this,"__requestIdleCallbackNative",null!=(t=null==(r=window.requestIdleCallback)?void 0:r.bind(window))?t:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)}),(0,n._)(this,"__cancelIdleCallbackNative",null!=(i=null==(s=window.cancelIdleCallback)?void 0:s.bind(window))?i:e=>{this.clearTimeout(e)}),(0,n._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return u}});var n=i(25045),o=i(91231),r=i(69364),s=i(28077),a=i(65946);let l=new Map;class u{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,a.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=l.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=l.get(this);i||(i={},l.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){(0,n._)(this,"__componentName",void 0),(0,n._)(this,"async",new o.Async),(0,n._)(this,"uid",void 0),(0,n._)(this,"ownerWindow",window),(0,n._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,s.uniqueUid)()}}(0,n._)(u,"STATUSES",r.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(80251),o=i(69364),r=i(59609)},69364:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},59609:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return r}});var n=i(25045),o=i(80251);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),(0,n._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),u=new Set(a),c="Meta",d="Backspace",h="Enter",p="Escape",m="ArrowLeft",f="ArrowUp",g="ArrowRight",_="ArrowDown",v="Delete",b=[c,d,v,f,_,g,m,h,p,"F3","Tab"],y="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),w=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:S,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.16.0","BASE_PATH",0,S,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,b,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2015","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!1,"IS_IE",0,y,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,w,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:w?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,v,"KEY_DOWN",0,_,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,m,"KEY_META",0,c,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,f,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,u,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,y?"html":"text/html","TEXT_PLAIN",0,y?"text":"text/plain","TEXT_RTF",0,y?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(28712);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,s.isPlainObject)(t)?(0,s.attr)(n,t):i=t),i&&(0,s.asArray)(i).forEach(e=>r.Dom.append(n,(0,s.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});r.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,a.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(r.Dom.safeRemove(n),t){let e=(0,s.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,s.isFunction)(i)?i(e):(0,s.isPlainObject)(i)&&(0,s.attr)(e,i)}}}constructor(e,t){(0,n._)(this,"document",void 0),(0,n._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(91565);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},51676:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return u},cached:function(){return a}});var n=i(69364),o=i(23211),r=i(28686),s=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function u(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,u=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=u.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):u.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(81937),o=i(421);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(16964),o=i(28686),r=i(28712),s=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let u=a[l];if(!(0,o.isFunction)(u))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,u=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),u,t)})}),{configurable:!0,get(){return u.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},24968:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(91565);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(91565),o=i(33201);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},35718:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(16964),o=i(91565),r=i(33201);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return u.idle},nonenumerable:function(){return c.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(49574),o=i(51676),r=i(91672),s=i(55184),a=i(24968),l=i(29200),u=i(35718),c=i(41360),d=i(77036),h=i(80840),p=i(68616)},41360:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},77036:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(69364),o=i(31534);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(69364),o=i(91565),r=i(33201);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return d}});var n=i(69364),o=i(70535),r=i(32328),s=i(91565),a=i(62101),l=i(31534),u=i(33201),c=i(71125);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,u.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,m=null==t?void 0:t.context,f=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,u=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(u=t.async.microDebounce(u,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=m;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,u),r||n.events.on(o,u),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,u).off(o,u)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,u);let p=(0,c.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,u),u(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return b}});var n=i(81937),o=i(88475),r=i(17312),s=i(91565),a=i(46248),l=i(3213),u=i(85932),c=i(18303),d=i(4040),h=i(28712),p=i(7909),m=i(80991),f=i(36400),g=i(33201),_=i(71125);let v=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(o=!0,r=n);while(o);return b.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,u.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!b.isBlock(n)&&(o=!0,r=n);while(o);do o=!1,(n=s.nextSibling)&&!b.isBlock(n)&&(o=!0,s=n);while(o);return b.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,u.isString)(t)?i.element(t):t;if(b.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);b.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,u.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,u.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,c.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!b.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!b.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!b.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,c.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return b.__deepMost(e,t,!1)}static last(e,t){return b.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);i=null==r?void 0:r[o]}r=i}while(r);return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return b.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>b.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?b.prev(e,n,o):b.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=b.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,_.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&b.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,f.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,f.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(v,"$2")}static temporaryList(e){let t=[];return b.each(e,e=>{b.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},27795:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(23211),o=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var n=i(25045),o=i(31635),r=i(49574),s=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=s.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){var e;this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"workNodes",void 0),(0,n._)(this,"hadAffect",void 0),(0,n._)(this,"isWorked",void 0),(0,n._)(this,"isFinished",void 0),(0,n._)(this,"__schedulerController",void 0),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}(0,o.__decorate)([r.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(25045),o=i(81937),r=i(32328),s=i(17312),a=i(91565),l=i(85932),u=i(33201),c=i(18869);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,u.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let r,c,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,c=e,d=t,p=i):(r=e,c=t,d=i,p=n),!((0,l.isString)(c)||(0,l.isStringArray)(c))||0===c.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,u.error)("Need event handler");if((0,s.isArray)(r))return r.forEach(e=>{this.on(e,c,d,p)}),this;let m=r,f=this.__getStore(m),g=this,_=function(e,...t){if(!g.isMuted(e))return d&&d.call(this,...t)};return h(m)&&(_=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(c,(e,t)=>{if(0===e.length)throw(0,u.error)("Need event name");if(!1===f.indexOf(e,t,d)){let r={event:e,originalCallback:d,syntheticCallback:_};if(f.set(e,t,r,null==p?void 0:p.top),h(m)){var i,n;let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;_.options=t,m.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(m,_)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,s=t,a=i):(o=e,r=t,s=i,a=n);let u=(...e)=>(this.off(o,r,u),s(...e));return this.on(o,r,u,a),this}off(e,t,i){let n,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,o=e,r=t):(n=e,o=t,r=i),(0,s.isArray)(n))return n.forEach(e=>{this.off(e,o,r)}),this;let u=n,d=this.__getStore(u);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{if(h(u)){var t;u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback)}},m=(e,t)=>{if(""===e)return void d.events(t).forEach(e=>{""!==e&&m(e,t)});let i=d.get(e,t);if(i&&i.length)if((0,a.isFunction)(r)){let n=d.indexOf(e,t,r);!1!==n&&(p(i[n]),i.splice(n,1),i.length||d.clearEvents(t,e))}else i.forEach(p),i.length=0,d.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t;if("string"!=typeof n)throw(0,u.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!h(r)&&!(0,l.isString)(s))throw(0,u.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(s)&&h(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(h(r))this.__triggerNativeEvent(r,e);else{let i=d.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...a),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||h(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){(0,n._)(this,"__domEventsMap",new Map),(0,n._)(this,"__mutedEvents",new Set),(0,n._)(this,"__key","__JoditEventEmitterNamespaces"),(0,n._)(this,"__doc",o.globalDocument),(0,n._)(this,"__prepareEvent",e=>{!e.cancelBubble&&(e.composed&&(0,a.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,n._)(this,"currents",[]),(0,n._)(this,"__stopped",[]),(0,n._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function h(e){return e&&(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});var n=i(25045);class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){if(this.__map.has(e)){var i;null==(i=this.__map.get(e))||i.delete(t)}return this}destruct(){this.__map.clear()}emit(e,...t){let i;if(this.__map.has(e)){var n;null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})}return i}constructor(){(0,n._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";let n=new(i(93747)).EventEmitter;i.d(t,["eventEmitter",0,n])},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(93747),o=i(60216),r=i(70535),s=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return u}});var n=i(17312),o=i(94013),r=i(62101),s=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function u(e){if(l(e))return e;let t={},i={},u=(t,o)=>((0,n.isArray)(t)?t.map(e=>u(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),c=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>c(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let u=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){c(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),u&&u.set?u.set.call(e,t):n[a]=t;let o=[];c(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:u}))};return d(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a}});var n=i(25045),o=i(88475),r=i(28712);let s="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==s):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){(0,n._)(this,"__store",new Map)}}i.d(t,["defaultNameSpace",0,s])},28077:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return b},getPopupViewRoot:function(){return y},uniqueUid:function(){return g}});var n=i(24497),o=i(85932),r=i(31534),s=i(74264),a=i(7909),l=i(80991),u=i(421),c=i(85305),d=i(42689),h=i(81937),p=i(27795);let m=1,f=new Set;function g(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;f.has(t);)t=e();return f.add(t),t}let _=new c.PluginSystem({getContainer:b}),v=new WeakMap;function b(e,t,i="div",l=!1){let c,d=(0,o.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=v.get(e)||{},m=d+i,f=(0,r.isViewObject)(e)?e:e.j;if(!h[m]){let t=f.c;if(c=y(f.o,f.container,e.od.body),l&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;c=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(o,"nonce",f.o.nonce),o.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.Dom.append(c,o),h[m]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),p.Dom.safeRemove(o),delete h[m],Object.keys(h).length&&v.delete(e)}),v.set(e,h),f.events.fire("getContainer",o)}return h[m].classList.remove("jodit_theme_default","jodit_theme_dark"),h[m].classList.add(`jodit_theme_${f.o.theme||"default"}`),h[m]}function y(e,t,i){var n,o,r;return null!=(n=null!=(o=null!=(r=e.popupRoot)?r:e.shadowRoot)?o:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?n:i}let w=d.eventEmitter;i.d(t,["eventEmitter",0,w,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,_])},78982:function(e,t,i){"use strict";var n=i(17312);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(78982),o=i(32328),r=i(88475)},32328:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},88475:function(e,t,i){"use strict";var n=i(23283),o=i(43379);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(81937);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(81937);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},28686:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return c.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return f.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return w.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return I.isWindow}});var n=i(98740),o=i(72068),r=i(17312),s=i(22289),a=i(94013),l=i(91565),u=i(46248),c=i(82166),d=i(52433),h=i(99732),p=i(24497),m=i(44998),f=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),y=i(52100),w=i(3213),k=i(85932),S=i(91764),C=i(50083),E=i(31534),T=i(18303),I=i(3513)},72068:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},17312:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},22289:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(3347);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},91565:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},82166:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},46248:function(e,t,i){"use strict";var n=i(85932);i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},52433:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(23211),o=i(91565),r=i(18303);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(70222),o=i(85932);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},24497:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";var n=i(85932);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},23175:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(23211);function o(e){return n.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},72412:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(85932);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},62101:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(3513);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(91565);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(81937);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},3513:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},93387:function(e,t,i){"use strict";i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return c}});var n=i(81937),o=i(23211),r=i(4040),s=i(7909),a=i(80991),l=i(28723);function u(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function c(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let c=n.globalDocument.createElement("iframe");(0,a.css)(c,"display","none"),o.Dom.append(n.globalDocument.body,c);let d="";try{let t=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=u(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=u(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),d=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(c)}return d&&(e=d),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},1277:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var n=i(81937),o=i(23211),r=i(88475),s=i(4040),a=i(7909);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},6609:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(81937);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},82658:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(30893),o=i(1277),r=i(6609),s=i(48838),a=i(48155),l=i(22852)},48838:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},48155:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var n=i(23211),o=i(93640),r=i(7909);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let l=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&n.Dom.up(e.parentNode,a)&&l.push(e)}),l))n.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==n.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&n.Dom.safeRemove(t);let u=null!=(i=t.removeEventAttributes)?i:t.removeOnError,c=e=>{if(n.Dom.isElement(e)&&(u&&function(e){if(!n.Dom.isElement(e))return;let t=[];for(let i=0;i<e.attributes.length;i++)e.attributes[i].name.toLowerCase().startsWith("on")&&t.push(e.attributes[i].name);for(let i of t)(0,r.attrRaw)(e,i,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};c(e),n.Dom.each(e,c)}let u=["src","data","action","formaction","poster","background","xlink:href"],c=new Set(["iframe","frame","object","embed"]);function d(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&c.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let s=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&d(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),u)){let i=(0,r.attrRaw)(e,t);i&&d(i,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},22852:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,u=null,c=!1){let d=i.createElement("div");(0,o.isString)(t)?d.innerHTML=t:n.Dom.append(d,t);let h=[];return n.Dom.each(d,e=>{n.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u,c)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,a))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,s))return;let o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&n.Dom.before(o,i.createTextNode(c?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(23211),o=i(85932),r=i(4040);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},65946:function(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase:function(){return c.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},camelCase:function(){return c.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return o.clearTimeout},colorToHex:function(){return s.colorToHex},fuzzySearchIndex:function(){return c.fuzzySearchIndex},getContentWidth:function(){return u.getContentWidth},getFixedPositionOffset:function(){return u.getFixedPositionOffset},getScrollParent:function(){return u.getScrollParent},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return c.i18n},innerWidth:function(){return u.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return c.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 u.offset},position:function(){return u.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return o.setTimeout},size:function(){return u.size},splitArray:function(){return n.splitArray},sprintf:function(){return c.sprintf},stringify:function(){return c.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(45664),o=i(61077),r=i(28686),s=i(93387),a=i(82658),l=i(97022),u=i(86878),c=i(97642),d=i(93640),h={};for(var p in d)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getFixedPositionOffset","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(h[p]=(function(e){return d[e]}).bind(0,p));i.d(t,h)},97022:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return c.normalizeUrl}});var n=i(77367),o=i(19147),r=i(27978),s=i(49663),a=i(18377),l=i(96340),u=i(98831),c=i(48009)},77367:function(e,t,i){"use strict";var n=i(93387),o=i(4040);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},19147:function(e,t,i){"use strict";i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return u}});var n=i(70222),o=i(18303),r=i(93387),s=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function u(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},27978:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(81937),o=i(4040);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},49663:function(e,t,i){"use strict";i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},18377:function(e,t,i){"use strict";var n=i(4040);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},96340:function(e,t,i){"use strict";i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},98831:function(e,t,i){"use strict";i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},48009:function(e,t,i){"use strict";i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},54447:function(e,t,i){"use strict";i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},2373:function(e,t,i){"use strict";function n(e){var t,i;let n=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;n&&o;){if(""!==(i=n.getComputedStyle(o)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return n}})},34027:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(81937),o=i(23211),r=i(93640)},86878:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return u.position},size:function(){return a.size}});var n=i(54447),o=i(2373),r=i(34027),s=i(83215),a=i(18073),l=i(69143),u=i(23599)},83215:function(e,t,i){"use strict";i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},18073:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(28686);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},69143:function(e,t,i){"use strict";let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,u=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=i.defaultView||i.parentWindow,d=c.pageYOffset||u.scrollTop||l.scrollTop,h=c.pageXOffset||u.scrollLeft||l.scrollLeft,p=u.clientTop||l.clientTop||0,m=u.clientLeft||l.clientLeft||0,f=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&f){let{top:e,left:i}=n(f,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-m;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,n])},23599:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,u=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,u+=n}return{left:Math.round(l),top:Math.round(u),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(24497)},57821:function(e,t,i){"use strict";i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},57626:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(81937);function o(e,t,i=0,r=1){let s=0,a,l=-1,u=0,c=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,u++,c=0,-1===l&&(l=a)):s>0&&(c>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,u=0,c=0,a--):(c++,u++)),a++;return s===e.length?[l,u]:[-1,0]}},18080:function(e,t,i){"use strict";i.d(t,{i18n:function(){return u}});var n=i(81937),o=i(85932),r=i(99436),s=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function u(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let u=!!(null==i?void 0:i.debugLanguage),c={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),m=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[p]?c=n.lang[p]:u||(c=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let f=null==i?void 0:i.i18n;if(f&&f[p]){let e=m(f[p]);if(e)return e}return m(c)||(!u&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):u?"{"+e+"}":(n.IS_PROD,d(e)))}i.d(t,["sprintf",0,l])},97642:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(57821),o=i(57626),r=i(18080),s=i(74264),a=i(3347),l=i(4040),u=i(99436)},74264:function(e,t,i){"use strict";i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},3347:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},4040:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(81937);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},99436:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},16849:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return l},getHAlign:function(){return a},hAlignElement:function(){return function e(t,i,n){if(n){e(t,"normal"),Object.values(n).forEach(e=>t.classList.remove(...s(e))),t.classList.add(...s(n[i||"normal"])),["class","style"].forEach(e=>{var i;(null==(i=(0,o.attr)(t,e))?void 0:i.trim())||(0,o.attr)(t,e,null)});return}i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}}});var n=i(27795),o=i(7909),r=i(80991);let s=e=>(null!=e?e:"").split(/\s+/).filter(Boolean);function a(e,t){if(t)for(let i of["left","right","center","normal"]){let n=s(t[i]);if(n.length&&n.every(t=>e.classList.contains(t)))return i}let i=(0,r.cssInline)(e,"float").toLowerCase();return"left"===i||"right"===i?i:"block"===(0,r.css)(e,"display")&&"auto"===(0,r.cssInline)(e,"margin-left")&&"auto"===(0,r.cssInline)(e,"margin-right")?"center":"normal"}function l(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let u=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t)){l(t);let i=u.get(e.toLowerCase());i&&(0,r.css)(t,"textAlign",i)}}},47760:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?u(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?c(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}}});var n=i(23211),o=i(85932),r=i(7909),s=i(91321);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let n=e(t,i);return a.set(i,n),n},u=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",i),n.Dom.append(e.od.body,a)})),c=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?n.Dom.append(e.o.shadowRoot,a):n.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,u,"appendStyleAsync",0,c])},7909:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let u=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(u)){let i=e(t,`data${u}`);if(i)return i;u=u.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(u)&&t.removeAttribute(u);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===u||"height"===u)&&(e=e.replace("px","")),t.setAttribute(u,e),e}return t.getAttribute(u)}},attrRaw:function(){return l}});var n=i(91565),o=i(62101),r=i(85932),s=i(74264),a=i(80991);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},26136:function(e,t,i){"use strict";i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},36833:function(e,t,i){"use strict";var n=i(62101);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,o])},91321:function(e,t,i){"use strict";var n=i(81937);i.d(t,["completeUrl",0,e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},77483:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,c.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if((0,u.isUnsafeProtoKey)(n))return;let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,u.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,c+1);return}if(0!==c&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var n=i(17312),o=i(62101),r=i(85932),s=i(18303),a=i(5266),l=i(54794),u=i(78048),c=i(71125);function d(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},3856:function(e,t,i){"use strict";var n=i(81937),o=i(91764),r=i(36310);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let n=s.pathname.split("/").filter(Boolean),o=n.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=n[o],l=n[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let n=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},80991:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return u}});var n=i(22289),o=i(62101),r=i(19147),s=i(57821),a=i(74264);function l(e,t,i,u=!1){if((0,n.isBoolean)(i)&&(u=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let c=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:h&&!u&&(m=h.getComputedStyle(e).getPropertyValue(c)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}function u(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},77213:function(e,t,i){"use strict";i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},36400:function(e,t,i){"use strict";var n=i(31534);let o=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},97228:function(e,t,i){"use strict";var n=i(81937),o=i(85932);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},38027:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(29953);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},14228:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},58250:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},29953:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(14228),o=i(58250),r=i(11080)},11080:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},33201:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(38027),o=i(29953)},54794:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(3347);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},421:function(e,t,i){"use strict";var n=i(91565);let o=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,o])},89308:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(85932),o=i(18303);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},37427:function(e,t,i){"use strict";i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},93640:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return x.$$},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return z.LimitedStack},OptionsError:function(){return v.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.UNSAFE_PROTO_KEYS},abort:function(){return v.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},attr:function(){return l.attr},attrRaw:function(){return l.attrRaw},browser:function(){return u.browser},buildQuery:function(){return c.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},callThis:function(){return L.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return m.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return d.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return m.css},cssInline:function(){return m.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.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},getHAlign:function(){return n.getHAlign},getPropertyDescriptor:function(){return L.getPropertyDescriptor},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return k.humanSizeToBytes},inView:function(){return D.inView},isAtom:function(){return b.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.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 T.previewBox},refs:function(){return x.refs},reset:function(){return I.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return D.scrollIntoViewIfNeeded},set:function(){return j.set}});var n=i(16849),o=i(47760),r=i(28712),s={};for(var a in r)0>["default","alignElement","clearAlign","getHAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(s[a]=(function(e){return r[e]}).bind(0,a));i.d(t,s);var l=i(7909),u=i(26136),c=i(36833),d=i(91321),h=i(77483),p=i(3856),m=i(80991),f=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),k=i(37427),S=i(78048),C=i(49385),E=i(36310),T=i(57075),I=i(43379),D=i(60898),x=i(28723),j=i(52144),z=i(42820),L=i(71125)},78048:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,n])},49385:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}i.d(t,["cns",0,n])},36310:function(e,t,i){"use strict";i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}])},57075:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var n=i(23211),o=i(85932),r=i(7909),s=i(80991);function a(e,t,i="px",l=null){let u=[],c=function(e,t){let i=[],o=[];n.Dom.each(e.editor,e=>{n.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();n.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),n.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let c=e.c.div("jodit__preview-box jodit-context");l&&n.Dom.append(l,c),(0,s.css)(c,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),n.Dom.append(c,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),c=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),a=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};u.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(c,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{n.Dom.append(t,e)}catch(e){}}else try{n.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(c,d),e.e.fire("afterPreviewBox",c),[c,()=>{u.forEach(e=>e())}]}finally{c.forEach(e=>e())}}},43379:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(81937),o=i(91565),r=i(89308);let s={};function a(e){var t,i;if(!(e in s)){let t=n.globalDocument.createElement("iframe");try{if(t.src="about:blank",n.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,r.get)(e,t.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,o.isFunction)(i)&&(s[e]=i.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(i=t.parentNode)||i.removeChild(t)}}return null!=(t=s[e])?t:null}},60898:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(23211);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(n=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>n.top||r+s<=n.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(n.Dom.isHTMLElement(e)&&!o(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}o(e,t,i)||e.scrollIntoView({block:"nearest"})}}},28723:function(e,t,i){"use strict";i.d(t,{$$:function(){return d},resolveElement:function(){return p}});var n=i(81937),o=i(23211),r=i(88475),s=i(85932),a=i(57821),l=i(7909),u=i(33201);let c=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++c;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,u.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,u.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},52144:function(e,t,i){"use strict";i.d(t,{set:function(){return l}});var n=i(17312),o=i(70222),r=i(62101),s=i(85932),a=i(78048);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let u=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,n.isArray)(u[t])||(0,r.isPlainObject)(u[t])||(u[t]=(0,o.isNumeric)(l[e+1])?[]:{}),u=u[t]}u&&(u[l[l.length-1]]=t)}},42820:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return o}});var n=i(25045);class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){(0,n._)(this,"limit",void 0),(0,n._)(this,"stack",void 0),this.limit=e,this.stack=[]}}},71125:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return c},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return u}});var n=i(52100),o=i(18303),r=i(7909),s=i(36400);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function u(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},55810:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(81937),o=i(52433),r=i(3050);function s(e,t,i,s,a,l,u){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(u(e,t,"style").innerHTML=s.styles)}},3050:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return d},loadStyle:function(){return u}});var n=i(49376),o=i(81937),r=i(74264),s=i(47760),a=i(86189);let l=new Set;function u(e,t){return(0,n._)(function*(){let i=c(e,t,!1);if(!l.has(i))return l.add(i),(0,s.appendStyleAsync)(e,i)})()}function c(e,t,i){t=(0,r.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,n){try{let o=i.filter(t=>!e.has((0,a.normalizeName)(t.name)));o.length&&o.map(e=>{let i=e.url||c(t,e.name,!0);return(0,s.appendScriptAsync)(t,i).then(n).catch(()=>null)})}catch(e){if(!o.IS_PROD)throw e}}},25974:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(81937),o=i(91565);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},86189:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(74264);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},91206:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(18855);i(85305)},85305:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return m}});var n=i(25045),o=i(81937),r=i(42689),s=i(32328),a=i(17312),l=i(52433),u=i(85932),c=i(55810),d=i(3050),h=i(25974),p=i(86189);class m{get size(){return this.__items.size}add(e,t){this.__items.set((0,p.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,p.normalizeName)(e))}remove(e){this.__items.delete((0,p.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,u.isString)(e)?{name:e}:e),disableList:new Set((0,s.splitArray)(e.o.disablePlugins).map(p.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},r=new Map,m={},f=new Set;e.__plugins=m;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([n,o])=>{if(i.has(n)||r.has(n))return;let s=null==o?void 0:o.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(e=>i.has(e)))return;if(!s.every(e=>r.has(e)))return void f.add(n)}t=!0;let l=(0,h.makeInstance)(e,o);if(!l){r.set(n,null),f.delete(n);return}(0,c.init)(e,n,o,l,r,f,this.opts.getContainer),m[n]=l}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(m).forEach(t=>{let i=m[t];(0,l.isDestructable)(i)&&i.destruct(e),delete m[t]}),delete e.__plugins}),o.IS_PROD||f.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){(0,n._)(this,"opts",void 0),(0,n._)(this,"__items",void 0),this.opts=e,this.__items=new Map}}},18855:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return l}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(24497);class l extends r.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,a.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(r.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:e}=this;if(e.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.STATUSES.beforeDestruct),!this.__inited)return super.destruct();if((0,a.isJoditObject)(e)){var t;null==(t=this.buttons)||t.forEach(t=>{null==e||e.unregisterButton(t)})}this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,n._)(this,"buttons",[]),(0,n._)(this,"hasStyle",!1),(0,n._)(this,"styles",void 0),(0,n._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,n._)(l,"requires",[]),(0,o.__decorate)([s.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__beforeDestruct",null)},17338:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return g}});var n=i(49376),o=i(6311),r=i(25045),s=i(41411),a=i(31635),l=i(86367),u=i(91231),c=i(81937),d=i(49574),h=i(65946),p=i(33201),m=i(5266);i(37102);var f=i(32855);class g{className(){return"Ajax"}__buildParams(e,t){return(0,h.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,h.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,h.isString)(e)||e instanceof c.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,h.isFunction)(e.append)?e:(0,h.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise((o,r)=>(0,n._)(function*(){var n;let s=()=>{this.__isFulfilled=!0,r(p.connection("Connection error"))},a=()=>{this.__isFulfilled=!0,o(new f.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=a,e.onabort=()=>{this.__isFulfilled=!0,r(p.abort("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(t=(i=this.options).onProgress)||t.call(i,n)},e.onreadystatechange=()=>{var i,n;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.__isFulfilled=!0,r(p.connection(e.statusText))))},e.withCredentials=null!=(n=t.withCredentials)&&n;let{url:l,data:u,method:c}=i;e.open(c,l,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:d}=t;(0,h.isFunction)(d)&&(d=yield d.call(this)),d&&e.setRequestHeader&&Object.keys(d).forEach(t=>{e.setRequestHeader(t,d[t])}),this.__async.setTimeout(()=>{e.send(u?this.__buildParams(u):void 0)},0)}).call(this))}stream(){return(0,l._)(function*(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),r=0,s="",a=[],l=null,u=!1,c=null,d=()=>{if(l){let e=l;l=null,e()}},m=e=>{var i;let n=t.responseText;s+=n.substring(r),r=n.length;let o=s.split("\n\n");for(let t of(s=e?"":null!=(i=o.pop())?i:"",o)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split("\n"))t.startsWith("data: ")?i.push(t.slice(6)):t.startsWith("data:")&&i.push(t.slice(5));i.length&&a.push(i.join("\n"))}d()};t.onprogress=()=>m(!1),t.onload=()=>{m(!0),u=!0,this.__isFulfilled=!0,d()},t.onerror=()=>{c=p.connection("Connection error"),u=!0,this.__isFulfilled=!0,d()},t.onabort=()=>{c=p.abort("Abort connection"),u=!0,this.__isFulfilled=!0,d()},t.withCredentials=null!=(e=i.withCredentials)&&e;let{url:f,data:g,method:_}=n;t.open(_,f,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:v}=i;(0,h.isFunction)(v)&&(v=yield(0,o._)(v.call(this))),v&&t.setRequestHeader&&Object.keys(v).forEach(e=>{t.setRequestHeader(e,v[e])}),t.send(g?this.__buildParams(g):void 0);try{for(;;)if(a.length>0)yield a.shift();else if(u)break;else yield(0,o._)(new Promise(e=>{l=e}))}finally{this.__isFulfilled||this.abort()}if(c)throw c}).call(this)}prepareRequest(){if(!this.o.url)throw p.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,h.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,h.parseQuery)(e.substring(i));e=e.substring(0,i)+"?"+(0,h.buildQuery)((0,s._)({},n,t))}else e+="?"+(0,h.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return g.log.splice(100),g.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=m.Config.prototype.defaultAjaxOptions){(0,r._)(this,"__async",new u.Async),(0,r._)(this,"xhr",void 0),(0,r._)(this,"options",void 0),(0,r._)(this,"__isFulfilled",!1),(0,r._)(this,"__activated",!1),(0,r._)(this,"__isDestructed",!1),this.options=(0,h.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,r._)(g,"log",[]),(0,a.__decorate)([d.autobind],g.prototype,"destruct",null)},37102:function(e,t,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},73714:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(17338),o=i(32855)},32855:function(e,t,i){"use strict";i.d(t,{Response:function(){return r}});var n=i(49376),o=i(25045);class r{get url(){return this.request.url}json(){return(0,n._)(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return(0,n._)(function*(){return this.body}).call(this)}constructor(e,t,i,n){(0,o._)(this,"status",void 0),(0,o._)(this,"statusText",void 0),(0,o._)(this,"request",void 0),(0,o._)(this,"body",void 0),this.request=e,this.status=t,this.statusText=i,this.body=n}}},42259:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(81937),o=i(23211),r=i(89817);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>i?e.lastChild:s(e),n=t(e);for(;n;){if(n&&o.Dom.isText(n)){e=n;break}n=t(n)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(7470)},89817:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},7470:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(23211);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59841:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return o.CommitStyle},Selection:function(){return n.Selection}});var n=i(98595),o=i(84578)},98595:function(e,t,i){"use strict";i.d(t,{Selection:function(){return f}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(65946),u=i(28686),c=i(16849),d=i(28712),h=i(7470),p=i(84578),m=i(42259);class f{get j(){return this.jodit}errorNode(e){if(!a.Dom.isNode(e))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,u.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!a.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let i=e.getRangeAt(t);a.Dom.isOrContains(this.area,i.commonAncestorContainer)&&(i.deleteContents(),i.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!a.Dom.isOrContains(this.j.editor,e,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){try{var i,n,o,r;let s=this.createRange(),l=null==(i=(n=this.doc).caretPositionFromPoint)?void 0:i.call(n,e,t),u=l?null:null==(o=(r=this.doc).caretRangeFromPoint)?void 0:o.call(r,e,t);if(l)s.setStart(l.offsetNode,l.offset);else{if(!u)return!1;s.setStart(u.startContainer,u.startOffset)}if(!a.Dom.isOrContains(this.area,s.startContainer))return!1;return s.collapse(!0),this.removeMarkers(),this.selectRange(s),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove(...this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let n=this.j.createInside.span();return n.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,l.css)(n,{lineHeight:"0",display:"none"}),a.Dom.markTemporary(n),(0,l.attr)(n,"data-"+r.MARKER_CLASS,e?"start":"end"),a.Dom.append(n,this.j.createInside.text(r.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(n),n}restore(){let e=this.markers,t=new Map(e.map(e=>[e.id,e])),i=[],n=!1;for(let u=0;u<e.length;u+=1){let c=e[u];if("start"!==(0,l.attr)(c,"data-"+r.MARKER_CLASS))continue;n||(n="true"===(0,l.attr)(c,"data-selection-backward"));let d=(0,l.attr)(c,"data-selection-end"),h=d?t.get(d):void 0;!d&&e[u+1]&&"end"===(0,l.attr)(e[u+1],"data-"+r.MARKER_CLASS)&&(h=e[u+1]);let p=this.createRange();if(h)p.setStartAfter(c),p.setEndBefore(h);else{let e=c.previousSibling;if(a.Dom.isText(e)){var o,s;p.setStart(e,null!=(o=null==(s=e.nodeValue)?void 0:s.length)?o:0)}else p.setStartBefore(c);p.collapse(!0)}i.push(p)}a.Dom.safeRemove(...e),i.length&&this.__selectRanges(i,n)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,i)=>e.getRangeAt(i).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),i=t.map(e=>{let t=e.collapsed,i=e.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();a.Dom.safeInsertNode(i,n),e.setStartBefore(n);let o=[n];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),o.push(i)}return o});return this.__fakeSelections.set(i[0][0],{pairs:i,backward:e}),this.__selectRanges(t,e),i[0]}restoreFakes(e){var t,i,n;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let r=[];for(let s of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=s.filter(e=>e.isConnected&&a.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let r of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(i=r.parentNode)?void 0:i.firstChild)!==(null==(n=r.parentNode)?void 0:n.lastChild)&&a.Dom.safeRemove(r);r.push(l)}r.length&&this.__selectRanges(r,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=this.__isBackward(),n=[],o=t.rangeCount,r=[];for(let e=0;o>e;e+=1)if(r[e]=t.getRangeAt(e),!a.Dom.isOrContains(this.area,r[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(r[e].collapsed){let t=this.marker(!0,r[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,r[e]),s=this.marker(!1,r[e]);o>1&&(0,l.attr)(t,"data-selection-end",s.id),i&&(0,l.attr)(t,"data-selection-backward","true"),n[e]={startId:t.id,endId:s.id,collapsed:!1,startMarker:t.outerHTML,endMarker:s.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let i=this.area.querySelector("#"+n[e].startId);if(i){if(n[e].collapsed)r[e].setStartAfter(i),r[e].collapse(!0);else if(r[e].setStartBefore(i),n[e].endId){let t=this.area.querySelector("#"+n[e].endId);t&&r[e].setEndAfter(t)}try{t.addRange(r[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){if(!this.isFocused()){let n=(0,l.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let r=this.sel,s=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}if(!this.j.editorIsActive){var t,i;null==(i=this.j)||null==(t=i.events)||t.fire("focus")}return!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),n=i.startContainer,o=!1;if(!a.Dom.isOrContains(this.area,n))return null;if(a.Dom.isTag(n,"br")&&t.isCollapsed)return n;if(!a.Dom.isText(n)){let r=(0,m.findCorrectCurrentNode)(n,i,o,t.isCollapsed,e,e=>o?e.lastChild:e.firstChild);n=r.node,o=r.rightMode}return n&&a.Dom.isOrContains(this.area,n)?n:null}insertNode(e,t=!0,i=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let n=a.Dom.isFragment(e)?e.lastChild:e;if(!n||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(n=a.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;a.Dom.isOrContains(this.area,t.commonAncestorContainer)?a.Dom.safeInsertNode(t,e):a.Dom.append(this.area,e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==i||null==(e=i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)})}else a.Dom.append(this.area,e);let i=e=>{if(a.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(a.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(e)?a.Dom.append(i,e):i.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",i.innerHTML)||i.lastChild&&(a.Dom.moveContent(i,n),this.insertNode(n,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,i=null){let n=(0,u.isString)(e)?this.j.createInside.element("img"):e;if((0,u.isString)(e)&&(0,l.attr)(n,"src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,l.attr)(n,"width",e)}t&&"object"==typeof t&&(0,l.css)(n,t);let{imageDefaultAlign:o,imageAlignClasses:r}=this.j.o;o&&"normal"!==o&&(0,c.hAlignElement)(n,o,r);let s=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(0,l.css)(n,{width:"",height:""}),n.removeEventListener("load",s)};this.j.e.on(n,"load",s),n.complete&&s(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){let t=new Set;for(let i of this.__ranges())a.Dom.isOrContains(this.area,i.commonAncestorContainer)&&this.__eachRange(i,i=>{t.has(i)||(t.add(i),e(i))})}__eachRange(e,t){var i;let n=e.commonAncestorContainer;a.Dom.isHTMLElement(n)||(n=n.parentElement);let o=[],s=e.startOffset,c=n.childNodes.length,d=e.startContainer===this.area?n.childNodes[s<c?s:c-1]:e.startContainer,h=e.endContainer===this.area?n.childNodes[e.endOffset-1]:e.endContainer;a.Dom.isText(d)&&d===e.startContainer&&e.startOffset===(null==(i=d.nodeValue)?void 0:i.length)&&d.nextSibling&&(d=d.nextSibling),a.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===n||a.Dom.isEmptyTextNode(e)||(0,u.isMarker)(e)||o.push(e)};p(d),d!==h&&a.Dom.isOrContains(n,d,!0)&&a.Dom.find(d,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),n,!0,!1);let m=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(m);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.append(e,t),e=t}t(e)}};0===o.length&&(a.Dom.isEmptyTextNode(d)&&o.push(d),(null==d?void 0:d.firstChild)&&o.push(d.firstChild)),o.forEach(m)}cursorInTheEdge(e,t,i=null){let n=!e,o=this.sel,r=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!r)return null;let s=e?r.startContainer:r.endContainer,l=e?r.startOffset:r.endOffset;if(null!=i||(i=s),!a.Dom.isOrContains(t,s)||!a.Dom.isOrContains(t,i))return null;let u=e=>!!(e&&!a.Dom.isTag(e,"br")&&!a.Dom.isEmptyTextNode(e)&&!a.Dom.isTemporary(e)&&!(a.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(a.Dom.isText(s)){if((0,m.cursorInTheEdgeOfString)(s,l,e,n))return!1}else{let e=s.childNodes,t=n?e.length:l;for(let i=n?l:0;t>i;i+=1)if(u(e[i]))return!1}let c=i;for(;c&&c!==t;){let t=a.Dom.sibling(c,e);if(!t){c=c.parentNode;continue}if(u(c=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){if(this.errorNode(e),!a.Dom.isOrContains(this.area,e,!0))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=null;if(a.Dom.isText(e))if(t)i.setStart(e,0);else{var o,r;i.setEnd(e,null!=(o=null==(r=e.nodeValue)?void 0:r.length)?o:0)}else n=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),a.Dom.safeInsertNode(i,n),i.selectNode(n);return i.collapse(t),this.selectRange(i),n}setCursorIn(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=e,o=e;do{if(a.Dom.isText(n)||a.Dom.isTag(n,r.INSEPARABLE_TAGS))break;o=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){let e=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.isTag(o,r.INSEPARABLE_TAGS)?n=o:(a.Dom.append(o,e),o=e)}let s=n||o;return a.Dom.isTag(s,r.INSEPARABLE_TAGS)?t||a.Dom.isTag(s,"br")?i.setStartBefore(s):i.setEndAfter(s):i.selectNodeContents(s),i.collapse(t),this.selectRange(i),o}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,i=!0){let n=this.sel;if(i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),e.forEach(e=>n.addRange(e)),t&&1===e.length)){let t=e[0];n.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=!t&&this.__closestNotEditable(e)||e,n=this.createRange();return n[t||i===this.area?"selectNodeContents":"selectNode"](i),this.selectRange(n)}__closestNotEditable(e){let{area:t}=this,i=null,n=e.parentNode;for(;n&&n!==t&&t.contains(n);)a.Dom.isElement(n)&&"false"===n.getAttribute("contenteditable")&&(i=n),n=n.parentNode;return i}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>a.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(a.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,i,n,o;let{endContainer:r,endOffset:s}=e;a.Dom.isText(r)&&s>0&&s<(null!=(t=null==(n=r.nodeValue)?void 0:n.length)?t:0)&&r.splitText(s);let{startContainer:l,startOffset:u}=e;if(a.Dom.isText(l)&&u>0&&u<(null!=(i=null==(o=l.nodeValue)?void 0:o.length)?i:0)){let t=l.splitText(u);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var i,n;let o=t?e.startContainer:e.endContainer;if(!a.Dom.isText(o))return;let r=t?e.startOffset:e.endOffset,s=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===r?t?e.setStartBefore(o):e.setEndBefore(o):r>=s&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,i=this.createRange()){let n=[];return(0,l.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,i)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t,i))}),n}__isFullyContained(e,t,i){return i.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0}__wrapSelectionRuns(e){let t=[],i=[],n=()=>{i.length&&(t.push(this.__wrapRunInFont(i)),i=[])};return e.forEach(e=>{a.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(n(),t.push(...this.__wrapSelectionRuns((0,l.toArray)(e.childNodes)))):(i.length&&i[i.length-1].parentNode!==e.parentNode&&n(),i.push(e))}),n(),t}__isOrContainsBlock(e){return!!a.Dom.isBlock(e)||(0,l.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[i]=e;return a.Dom.before(i,t),e.forEach(e=>a.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&a.Dom.append(t,e[0]);try{yield t}finally{a.Dom.unwrap(t)}return}let i=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of i){if(this.j.isInDestruct||!a.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,u.isMarker)(t)){a.Dom.unwrap(e);continue}t&&(0,u.isMarker)(t)&&a.Dom.before(e,t),i&&(0,u.isMarker)(i)&&a.Dom.after(e,i),yield e,a.Dom.unwrap(e)}}finally{i.forEach(e=>a.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,u.isMarker)(i.firstChild))continue;(0,u.isFunction)(e)?e(i):t.push(a.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(a.Dom.unwrap(i),a.Dom.isEmpty(e)&&a.Dom.unwrap(e))}return t}commitStyle(e){(0,d.assert)((0,l.size)(e)>0,"Need to pass at least one option"),new p.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!a.Dom.isOrContains(this.area,e,!0)||!a.Dom.isOrContains(e,this.range.startContainer)||t&&!a.Dom.isOrContains(e,t,!0))return null;let i=this.createRange(),n=this.range;i.setStartBefore(e);let o=this.cursorOnTheRight(e,t),s=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),c=u.cloneNode();try{if(o||s){t?a.Dom.before(t,l):a.Dom.safeInsertNode(n,l);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),a.Dom.after(l,c),a.Dom.before(l,u),o?(i.setEndBefore(l),n.setEndBefore(l)):(i.setEndAfter(l),n.setEndAfter(l))}else i.setEnd(n.startContainer,n.startOffset);let h=i.extractContents(),p=e=>a.Dom.each(e,e=>a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e));(0,d.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),a.Dom.before(e,h),!t&&o&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!r.IS_PROD)throw e}let m=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&a.Dom.append(t,l.cloneNode())};m(u),m(c)}finally{a.Dom.safeRemove(u),a.Dom.safeRemove(c)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!a.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),a.Dom.safeInsertNode(n,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let r=a.Dom.findSibling(n,!1),s=a.Dom.findSibling(o,!0);if(r!==s){let e=a.Dom.isElement(r)&&a.Dom.isOrContains(r,o),i=!e&&a.Dom.isElement(s)&&a.Dom.isOrContains(s,n);if(e||i){let i=e?r:s,l=i;for(;a.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?a.Dom.isOrContains(i,o):a.Dom.isOrContains(i,n))&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}if(a.Dom.safeRemove(n,o),t.collapsed)throw(0,l.error)("Selection is collapsed");return t}constructor(e){(0,n._)(this,"jodit",void 0),(0,n._)(this,"__fakeSelections",void 0),this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,o.__decorate)([s.autobind],f.prototype,"createRange",null),(0,o.__decorate)([s.autobind],f.prototype,"focus",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorAfter",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorBefore",null),(0,o.__decorate)([s.autobind],f.prototype,"setCursorIn",null)},17481:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return s}});var n=i(23211),o=i(23175),r=i(71125);function s(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),a(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),a(e,n,!1)}function a(e,t,i){let o=t.extractContents();n.Dom.isEmpty(o)&&o.firstChild&&n.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(i?n.Dom.before:n.Dom.after,e,o)}},48729:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return a}});var n=i(25045),o=i(81937),r=i(85932),s=i(28712);class a{setState(e){(0,s.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,s.assert)(e&&e!==t,"Action should return new value"),(0,s.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,s.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),o.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){(0,n._)(this,"transitions",void 0),(0,n._)(this,"__state",void 0),(0,n._)(this,"silent",void 0),(0,n._)(this,"__previewsStates",void 0),this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},10171:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(23211),o=i(83653),r=i(73019);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},19549:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){var a;let{parentNode:l}=i;return l===s||!n.Dom.isHTMLElement(l)||n.Dom.next(i,o.isNormalNode,l)||n.Dom.prev(i,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(l)?e(t,l,s):n.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!n.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!n.Dom.isBlock(l)?e(t,l,s):null}}});var n=i(23211),o=i(83653),r=i(73019)},9703:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return c}});var n=i(81937),o=i(23211),r=i(18303),s=i(19147),a=i(28712),l=i(80991);function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(u(e,{fontSize:null}),"Style test"),(0,a.assert)(u(e,{fontSize:""}),"Style test")}function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(!c(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!c(e,{border:"1px solid #ccc"}),"Style test")}},51640:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return c.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var n=i(17481),o=i(48729),r=i(10171),s=i(19549);i(9703);var a=i(39608);i(83653),i(95971);var l=i(73019),u=i(34582);i(97110);var c=i(82794),d=i(89081),h=i(73154);i(83335)},39608:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},83653:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(23211),o=i(23175);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},95971:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return u},isSameAttributes:function(){return l}});var n=i(18073),o=i(93640),r=i(28712),s=i(7909),a=i(9703);function l(e,t){return!(0,n.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>{if("class"===i||"className"===i){var n;return(null!=(n=String(t[i]).match(/[^\t\n\f\r ]+/g))?n:[]).every(t=>e.classList.contains(t))}if("style"===i)return(0,a.hasSameStyle)(e,t[i]);let r=t[i];return(0,o.attr)(e,i)===(null==r?r:String(r))}))}function u(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},73019:function(e,t,i){"use strict";i.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(23211),o=i(9703),r=i(83653);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:u,elementIsDefault:c,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,u);return!!(h&&!(c&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&c&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}},34582:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return u}});var n=i(23211),o=i(28712),r=i(17481),s=i(82794),a=i(98394),l=i(97110);function u(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let u=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if("unwrap"!==n){let r="change"===(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0);if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=c(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return u(a.REPLACE,r,e),a.REPLACE}}return u("unwrap",c("unwrap",o,t,i,e),e),"unwrap"}function c(e,t,i,s,l){let u=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return u?((0,o.assert)(n.Dom.isHTMLElement(u),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),e===a.REPLACE)?i:n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},97110:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(23211),o=i(95971),r=i(82794),s=i(98394);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),u=l.previousElementSibling,c=l.nextElementSibling,d=n.Dom.isTag(u,e.element)?u:null;return null!=d||(d=n.Dom.isTag(c,e.element)?c:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),u===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",d,e),d}},82794:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return m}});var n=i(81937),o=i(23211),r=i(28077),s=i(28686),a=i(19147),l=i(18073),u=i(93640),c=i(80991),d=i(36400),h=i(98394);let p="toggleAttributes";function m(e,t,i,f,g=!1){var _;if(!g&&e.isApplied(t,p))return f;g||e.setApplied(t,p);let{attributes:v}=e.options;return v&&(0,l.size)(v)>0&&Object.keys(v).forEach(e=>{var p,m;let _=v[e];switch(e){case"style":p=f,(0,u.assert)((0,s.isPlainObject)(_)&&(0,l.size)(_),"Style must be an object"),Object.keys(_).forEach(e=>{let s=(0,c.cssInline)(t,e),l=_[e];if(""!==s||null!=l){let h,m,f,_;if(null==l||""===l){s&&(g||(0,c.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),s=n.globalDocument.createElement("iframe");(0,c.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,u.attr)(s,"src","about:blank"),o.Dom.append(i,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(i),m=i.create.element("div"),(0,c.css)(m,"color",(0,c.css)(i.editor,"color")),f=i.create.element(t.tagName.toLowerCase()),(0,u.attr)(f,"style",(0,u.attr)(t,"style")),o.Dom.append(m,f),o.Dom.append(h,m),_=(0,c.css)(f,e),o.Dom.safeRemove(m),_===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,c.css)(t,e,null),p="unset";return}p="change",g||(0,c.css)(t,e,l)}}),f=p;break;case"className":case"class":f=function(e,t,i,n,o){var r;(0,u.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return n;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>i.classList.contains(e))?(n="unset",o||(i.classList.remove(...a),0===i.classList.length&&(0,u.attr)(i,"class",null),l(n,i,"class",(0,u.attr)(i,"class")))):(n="change",o||(i.classList.add(...a),l(n,i,"class",t))),n}(i,_,t,f,g);break;default:let b;m=f,(0,u.assert)((0,s.isString)(_)||(0,s.isNumber)(_)||(0,s.isBoolean)(_)||null==_,"Attribute value must be a string or number or boolean or null"),b=i.e.fire.bind(i.e,`${h._PREFIX}AfterToggleAttribute`),(0,u.attr)(t,e)===(null==_?_:String(_))?(g||(0,u.attr)(t,e,null),m="unset",g||b(m,t,e,_)):(m="change",g||((0,u.attr)(t,e,_),b(m,t,e,_))),f=m}}),!g&&(null==v?void 0:v.style)?(_=f,!(0,u.attr)(t,"style")&&((0,u.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),_="unwrap")),_):f}},89081:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(23211),o=i(93640),r=i(9703),s=i(73019);function a(e,t){var i;let a,l=[],u=[],c=null==(i=e.options.attributes)?void 0:i.style,d=Object.keys(null!=c?c:{}),h={};d.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&n.Dom.isTag(t,e.element)&&l.push(t)};for(let i of n.Dom.eachGen(t))n.Dom.isContentEditable(i,t)&&((0,s.isSuitElement)(e,i,!0)&&(!c||(0,r.hasSameStyleKeys)(i,c))?(void 0===a&&(a=!0),c?u.push(()=>p(i)):l.push(i)):c&&n.Dom.isHTMLElement(i)&&d.some(e=>""!==(0,o.css)(i,e,!0))?(void 0===a&&(a=!1),u.push(()=>p(i))):n.Dom.isEmptyTextNode(i)||void 0!==a||(a=!1));return u.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},83335:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),u=a(t,"nextSibling"),c=i.s.createRange();c.setStartBefore(l),c.setEndAfter(u);let d=c.extractContents(),h=s.element(e.element);return n.Dom.append(h,d),n.Dom.safeInsertNode(c,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&n.Dom.append(h,s.element("br")),h}},73154:function(e,t,i){"use strict";i.d(t,{wrap:function(){return l}});var n=i(27795),o=i(7909),r=i(80991),s=i(97110),a=i(83335);function l(e,t,i){var l,c,d;let h=(l=e,c=t,d=i,l.elementIsBlock?n.Dom.up(c,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,u)&&!Array.from(e.childNodes).some(e=>n.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,c,d):((0,o.attr)(c,"size",null),c));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let p=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let u=new Set(["td","th","tr","tbody","table","li","ul","ol"]);i.d(t,["WRAP_NODES",0,u])},96127:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(51640),o=i(98394),r=i(78462);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),u=s.isCollapsed(),c=o.INITIAL;try{for(let i of s.wrapInTagGen(l)){let o={collapsed:u,mode:c,element:i,next:r.states.START,jodit:e,style:t},s=new n.FiniteStateMachine(r.states.START,r.transactions);for(;!e.isInDestruct&&s.getState()!==r.states.END;)o=s.dispatch("exec",o);c=o.mode}}finally{s.restoreFakes(l)}}},84578:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return l}});var n=i(25045),o=i(81937),r=i(57821),s=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&!!i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},98394:function(e,t,i){"use strict";i.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},78462:function(e,t,i){"use strict";var n=i(41411),o=i(15366),r=i(81937),s=i(23211),a=i(28712),l=i(51640),u=i(98394);let c={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[c.START]:{exec(e){let{element:t,jodit:i,style:r,mode:a,collapsed:u}=e;if(!s.Dom.isContentEditable(t,i.editor)||(0,l.isInsideInvisibleElement)(t,i.editor)||!u&&s.Dom.isEmptyContent(t))return(0,o._)((0,n._)({},e),{next:c.END});let d=(0,l.getSuitParent)(r,t,i.editor)||(0,l.getSuitChild)(r,t);if(d)return(0,o._)((0,n._)({},e),{next:c.ELEMENT,element:d});let h=(0,l.suitableClosest)(r,t,i.editor);return r.elementIsList&&s.Dom.isList(h)?(0,o._)((0,n._)({},e),{next:c.LIST}):h?(0,o._)((0,n._)({},e),{next:c.EXTRACT}):(0,o._)((0,n._)({},e),{next:"unwrap"!==a?c.UNWRAP_CHILDREN:c.END})}},[c.LIST]:{exec(e){let{element:t,jodit:i,mode:a}=e;if(a!==u.INITIAL&&"unwrap"!==a&&a!==u.REPLACE)return(0,o._)((0,n._)({},e),{next:c.END});let l=s.Dom.closest(t,"li",i.editor);return l&&s.Dom.closest(t,r.LIST_TAGS,i.editor)?(0,o._)((0,n._)({},e),{element:l,next:c.TOGGLE_LIST}):(0,o._)((0,n._)({},e),{next:c.END})}},[c.TOGGLE_LIST]:{exec(e){return(0,o._)((0,n._)({},e),{mode:(0,l.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:c.END})}},[c.EXTRACT]:{exec(e){var t;let{element:i,jodit:r,style:u}=e,d=(0,l.suitableClosest)(u,i,r.editor);return((0,a.assert)(d,"This place should have an element"),!u.elementIsBlock&&(null==(t=u.options.attributes)?void 0:t.style)&&s.Dom.isBlock(d))?(0,o._)((0,n._)({},e),{next:c.WRAP}):(u.elementIsBlock||(0,l.extractSelectedPart)(d,i,r),(0,o._)((0,n._)({},e),{element:d,next:c.ELEMENT}))}},[c.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,l.unwrapChildren)(i,t)?(0,o._)((0,n._)({},e),{mode:"unwrap",next:c.END}):(0,o._)((0,n._)({},e),{next:c.WRAP})}},[c.WRAP]:{exec(e){let{element:t,jodit:i,style:r}=e,s=(0,l.wrap)(r,t,i);return(0,o._)((0,n._)({},e),{next:r.elementIsList?c.END:c.CHANGE,mode:"wrap",element:s})}},[c.ELEMENT]:{exec(e){let{style:t,element:i,jodit:r}=e;return(0,l.toggleAttributes)(t,i,r,u.INITIAL,!0)!==u.INITIAL?(0,o._)((0,n._)({},e),{next:c.CHANGE}):s.Dom.isTag(i,t.element)?(0,o._)((0,n._)({},e),{next:c.UNWRAP}):(0,o._)((0,n._)({},e),{next:c.END})}},[c.CHANGE]:{exec(e){let{style:t,element:i,jodit:r,mode:a}=e,u=(0,l.toggleAttributes)(t,i,r,e.mode);return"wrap"!==a&&"unset"===u&&!i.attributes.length&&s.Dom.isTag(i,t.element)?(0,o._)((0,n._)({},e),{next:c.UNWRAP}):(0,o._)((0,n._)({},e),{mode:u,next:c.END})}},[c.UNWRAP]:{exec(e){let{element:t,style:i,jodit:r}=e;if(t.attributes.length&&s.Dom.isTag(t,i.element))return(0,o._)((0,n._)({},e),{next:c.REPLACE_DEFAULT});let a=t.parentElement;return i.elementIsBlock&&!i.elementIsDefault&&a&&a!==r.editor&&s.Dom.isBlock(a)&&!s.Dom.isTag(a,l.WRAP_NODES)?(0,o._)((0,n._)({},e),{next:c.REPLACE_DEFAULT}):(s.Dom.unwrap(t),(0,o._)((0,n._)({},e),{mode:"unwrap",next:c.END}))}},[c.REPLACE_DEFAULT]:{exec(e){return s.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),(0,o._)((0,n._)({},e),{mode:u.REPLACE,next:c.END})}},[c.END]:{exec(e){return e}}};i.d(t,["states",0,c,"transactions",0,d])},8006:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return u}});var n=i(49376),o=i(25045),r=i(57821),s=i(91162),a=i(59807),l=i(9505);class u{set(e,t){return(0,n._)(function*(){let i=yield this.provider;return yield i.set((0,r.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return(0,n._)(function*(){let t=yield this.provider;return yield t.delete((0,r.camelCase)(this.prefix+e)),this}).call(this)}get(e){return(0,n._)(function*(){return(yield this.provider).get((0,r.camelCase)(this.prefix+e))}).call(this)}exists(e){return(0,n._)(function*(){return(yield this.provider).exists((0,r.camelCase)(this.prefix+e))}).call(this)}clear(){return(0,n._)(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return(0,n._)(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,i){let n,o=null==i?void 0:i.defaultProvider;return null!=o?new u(Promise.resolve(n="local"===o?(0,a.canUsePersistentStorage)("localStorage")?new a.LocalStorageProvider("Jodit_"+(t||"")):new l.MemoryStorageProvider:"memory"===o?new l.MemoryStorageProvider:o),t):("localStorage"===e||"sessionStorage"===e?(0,a.canUsePersistentStorage)(e)&&(n=new a.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(n=(0,s.canUseIndexedDB)().then(e=>e?new s.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new l.MemoryStorageProvider)),n||(n=new l.MemoryStorageProvider),new u(Promise.resolve(n),t))}constructor(e,t){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},91162:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return u},clearUseIndexedDBCache:function(){return l}});var n=i(49376),o=i(25045),r=i(81937);class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return(0,n._)(function*(){try{let i=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){r.IS_PROD}return this}).call(this)}delete(e){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return(0,n._)(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return(0,n._)(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return(0,n._)(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return(0,n._)(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return(0,n._)(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return(0,n._)(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return(0,n._)(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="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=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function u(){return(0,n._)(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return a=!1,!1}})()}},59807:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return o}});var n=i(25045);class o{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let i=JSON.parse(t);delete i[e],this.storage.setItem(this.rootKey,JSON.stringify(i))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){(0,n._)(this,"rootKey",void 0),(0,n._)(this,"strategy",void 0),this.rootKey=e,this.strategy=t}}i.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},9505:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return o}});var n=i(25045);class o{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){(0,n._)(this,"data",new Map)}}},25222:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(8006),o=i(91162),r=i(59807),s=i(9505),a=i(24475)},24475:function(e,t,i){"use strict";i.d(t,{Storage:function(){return l}});var n=i(25045),o=i(57821),r=i(59807),s=i(9505);let a="Jodit_";class l{set(e,t){return this.provider.set((0,o.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,o.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,o.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,o.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(a+(t||""))),i||(i=new s.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},80512:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return l}});var n=i(41411),o=i(28077),r=i(28686),s=i(71125),a=i(37333);class l{dlg(e){let t=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new a.Dialog((0,n._)({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,s.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=u(e,this),t=u(t,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=u(e,this),t=u(t,this),n=u(n,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=u(e,this),t=u(t,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function u(e,t){return(0,r.isString)(e)&&!(0,r.isHTML)(e)&&(e=t.i18n(e)),e}},23183:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(23211);class o{getElm(e){let t=this.getFullElName(e);return n.Dom.first(this.container,e=>n.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),i=[];return n.Dom.each(this.container,e=>{n.Dom.isHTMLElement(e)&&e.classList.contains(t)&&i.push(e)}),i}}},81987:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(18303);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},53681:function(e,t,i){"use strict";i.d(t,{Button:function(){return v},UIButton:function(){return _}});var n=i(25045),o=i(31635),r=i(69364),s=i(51676),a=i(91672),l=i(68616),u=i(23211),c=i(91565),d=i(85932),h=i(28712),p=i(7909),m=i(96007),f=i(29434);let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0});class _ extends m.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,h.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,h.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,p.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,p.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,a.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,p.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,p.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,p.attr)(this.container,"data-ref",this.state.name),(0,p.attr)(this.container,"ref",this.state.name),this.updateAriaLabel()}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,p.attr)(this.container,"title",e),(0,p.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):!e&&this.state.name?this.state.name:null;(0,p.attr)(this.container,"aria-label",t),(0,p.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,p.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,c.isFunction)(e)&&e(this.state.name))return;u.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&u.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&u.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return u.Dom.append(t,i),u.Dom.append(t,n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),(0,n._)(this,"isButton",!0),(0,n._)(this,"state",g()),(0,n._)(this,"button",void 0),(0,n._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(r.STATUSES.ready,()=>{this.setState(t)})}}function v(e,t,i,n){let o=new _(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,d.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}(0,o.__decorate)([s.cache],_.prototype,"text",null),(0,o.__decorate)([s.cache],_.prototype,"icon",null),(0,o.__decorate)([(0,l.watch)("state.size",{immediately:!1})],_.prototype,"onChangeSize",null),(0,o.__decorate)([(0,l.watch)("state.type",{immediately:!1})],_.prototype,"onChangeType",null),(0,o.__decorate)([(0,l.watch)("state.role",{immediately:!1})],_.prototype,"onChangeRole",null),(0,o.__decorate)([(0,l.watch)("parentElement")],_.prototype,"updateSize",null),(0,o.__decorate)([(0,l.watch)("state.variant",{immediately:!1})],_.prototype,"onChangeStatus",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],_.prototype,"onChangeText",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],_.prototype,"onChangeTextSetMode",null),(0,o.__decorate)([(0,l.watch)("state.disabled")],_.prototype,"onChangeDisabled",null),(0,o.__decorate)([(0,l.watch)("state.activated")],_.prototype,"onChangeActivated",null),(0,o.__decorate)([(0,l.watch)("state.name",{immediately:!1})],_.prototype,"onChangeName",null),(0,o.__decorate)([(0,l.watch)("state.tooltip",{immediately:!1})],_.prototype,"onChangeTooltip",null),(0,o.__decorate)([(0,l.watch)("state.tabIndex",{immediately:!1})],_.prototype,"onChangeTabIndex",null),(0,o.__decorate)([(0,l.watch)("state.icon",{immediately:!1})],_.prototype,"onChangeIcon",null),(0,o.__decorate)([s.cacheHTML],_.prototype,"createContainer",null),(0,o.__decorate)([(0,l.watch)("button:click")],_.prototype,"__onActionFire",null),_=(0,o.__decorate)([a.component],_),i.d(t,["UIButtonState",0,g])},15367:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return c}});var n=i(25045),o=i(31635),r=i(91672),s=i(23211),a=i(28712),l=i(53681),u=i(63468);class c extends u.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
9
9
  <div class="&__label">~${e.label}~</div>
10
10
  <div class="&__options"></div>
11
11
  </div>`}appendChildToContainer(e){let t=this.getElm("options");(0,a.assert)(null!=t,"Options does not exist"),s.Dom.append(t,e)}select(e){var t,i;this.elements.forEach((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let n=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",n),null==(t=(i=this.options).onChange)||t.call(i,n)}constructor(e,t={radio:!0}){var i,o;super(e,null==(o=t.options)?void 0:o.map(t=>{let i=new l.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction(()=>{this.select(t.value)}),i}),t),(0,n._)(this,"options",void 0),this.options=t,this.select(null!=(i=t.value)?i:0)}}c=(0,o.__decorate)([r.component],c)},59400:function(e,t,i){"use strict";i.d(t,{Button:function(){return n.Button},UIButton:function(){return n.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UITooltip:function(){return r.UITooltip}});var n=i(53681),o=i(15367),r=i(95399)},95399:function(e,t,i){"use strict";i.d(t,{UITooltip:function(){return f}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(27795),l=i(28077),u=i(2373),c=i(23599),d=i(93640),h=i(96007);let p=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],m=["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(e){a.Dom.append((0,l.getContainer)(this.j,f),this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,p,this.__hide).on(m,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,p,this.__hide).off(m,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!a.Dom.isHTMLElement(e.target))return;let t=(0,d.attr)(e.target,"aria-label");if(!t||(0,d.attr)(e.target,"disabled")||!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;let i=e.target;this.__open(()=>{let e=(0,c.position)(i);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),i):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=t;let i=e(),n=(0,u.getFixedPositionOffset)(this.container);(0,d.css)(this.container,{left:i.x-n.x,top:i.y-n.y});let o=(0,c.position)(this.container),r=this.j.ow.innerHeight;if(o.top+o.height>r){let e=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,d.css)(this.container,{top:e.top-o.height-n.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),a.Dom.detach(this.getElm("content")),(0,d.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),(0,n._)(this,"__isOpened",!1),(0,n._)(this,"__attachedContainers",new Set),(0,n._)(this,"__listenClose",!1),(0,n._)(this,"__currentTarget",null),(0,n._)(this,"__delayShowTimeout",0),(0,n._)(this,"__hideTimeout",0),e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,o.__decorate)([s.autobind],f.prototype,"__onMouseLeave",null),(0,o.__decorate)([s.autobind],f.prototype,"__onMouseEnter",null),(0,o.__decorate)([s.autobind],f.prototype,"__hide",null),(0,o.__decorate)([s.autobind],f.prototype,"__hideDelay",null),f=(0,o.__decorate)([s.component],f)},96007:function(e,t,i){"use strict";i.d(t,{UIElement:function(){return p}});var n=i(25045),o=i(31635),r=i(16964),s=i(24968),a=i(23211),l=i(85932),u=i(7909),c=i(23183),d=i(81987),h=i(29434);class p extends r.ViewComponent{getRole(){var e;return(null==(e=this.options)?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null==(t=this.__parentElement)||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>r.Component.isInstanceOf(t,e),i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?p.closestElement(i.container.parentElement,p):i.parentElement}return null}static closestElement(e,t){let i=a.Dom.up(e,e=>{if(e){let{component:i}=e;return i&&r.Component.isInstanceOf(i,t)}return!1});return i?null==i?void 0:i.component:null}update(){}appendTo(e){return a.Dom.append(e,this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,l.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>h.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),(0,n._)(this,"container",void 0),(0,n._)(this,"name",""),(0,n._)(this,"options",void 0),(0,n._)(this,"__parentElement",null),(0,n._)(this,"mods",{}),this.options=t,this.container=this.createContainer(t);let i=this.getRole();i&&(0,u.attr)(this.container,"role",i),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}p=(0,o.__decorate)([(0,s.derive)(d.Mods,c.Elms)],p)},4561:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return l}});var n=i(25045),o=i(31635),r=i(91672),s=i(93640),a=i(63468);class l extends a.UIGroup{className(){return"UIBlock"}constructor(e,t,i={align:"left"}){super(e,t),(0,n._)(this,"options",void 0),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,s.attr)(this.container,"data-ref",i.ref),(0,s.attr)(this.container,"ref",i.ref)}}l=(0,o.__decorate)([r.component],l)},98838:function(e,t,i){"use strict";i.d(t,{UIForm:function(){return c}});var n=i(31635),o=i(80251),r=i(91672),s=i(93640),a=i(65273),l=i(49999),u=i(63468);class c extends u.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,l.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,s.attr)(e,"dir",this.j.o.direction||"auto"),(0,s.attr)(e,"novalidate",""),e}constructor(...e){var t,i;super(...e),(null==(t=this.options)?void 0:t.className)&&this.container.classList.add(null==(i=this.options)?void 0:i.className)}}c=(0,n.__decorate)([r.component],c)},5658:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return n.UIBlock},UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return o.UIForm},UIInput:function(){return r.UIInput},UISelect:function(){return r.UISelect},UITextArea:function(){return r.UITextArea}});var n=i(4561),o=i(98838),r=i(2602)},87329:function(e,t,i){"use strict";i.d(t,{UITextArea:function(){return d}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(84839),l=i(91672),u=i(80991),c=i(65273);class d extends c.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;(0,u.css)(this.nativeInput,"resize",t?"auto":"none"),this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),(0,n._)(this,"state",(0,o._)({},d.defaultState)),Object.assign(this.state,t),!1===this.state.resizable&&(0,u.css)(this.nativeInput,"resize","none")}}(0,n._)(d,"defaultState",(0,r._)((0,o._)({},c.UIInput.defaultState),{size:5,resizable:!0})),(0,s.__decorate)([(0,a.watch)(["state.size","state.resizable"])],d.prototype,"onChangeStateSize",null),d=(0,s.__decorate)([l.component],d)},24641:function(e,t,i){"use strict";i.d(t,{UICheckbox:function(){return c}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(84839),l=i(23211),u=i(65273);class c extends u.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),l.Dom.after(this.nativeInput,e)):l.Dom.safeRemove(e)}constructor(e,t){super(e,(0,r._)((0,o._)({},t),{type:"checkbox"})),(0,n._)(this,"state",(0,o._)({},c.defaultState)),Object.assign(this.state,t)}}(0,n._)(c,"defaultState",(0,r._)((0,o._)({},u.UIInput.defaultState),{checked:!1,switch:!1})),(0,s.__decorate)([(0,a.watch)("state.checked"),(0,a.hook)("ready")],c.prototype,"onChangeChecked",null),(0,s.__decorate)([(0,a.watch)("nativeInput:change")],c.prototype,"onChangeNativeCheckBox",null),(0,s.__decorate)([(0,a.watch)("state.switch"),(0,a.hook)("ready")],c.prototype,"onChangeSwitch",null),c=(0,s.__decorate)([a.component],c)},75587:function(e,t,i){"use strict";i.d(t,{UIFileInput:function(){return d}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(91672),l=i(23211),u=i(53681),c=i(65273);class d extends c.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new u.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),l.Dom.append(t,i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
12
12
  type="file"
13
13
  accept="${e.onlyImages?"image/*":"*"}"
14
+ aria-label="${this.j.i18n(e.tooltip||"Upload")}"
14
15
  tabindex="-1"
15
16
  dir="auto"
16
17
  multiple=""
17
- />`)}constructor(e,t){super(e,(0,o._)({type:"file"},t)),(0,n._)(this,"state",(0,r._)((0,o._)({},c.UIInput.defaultState),{type:"file",onlyImages:!0}))}}d=(0,s.__decorate)([a.component],d)},2602:function(e,t,i){"use strict";i.d(t,{UICheckbox:function(){return o.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIInput:function(){return s.UIInput},UISelect:function(){return a.UISelect},UITextArea:function(){return n.UITextArea}});var n=i(87329),o=i(24641),r=i(75587),s=i(65273),a=i(49999)},65273:function(e,t,i){"use strict";i.d(t,{UIInput:function(){return p}});var n=i(25045),o=i(41411),r=i(31635),s=i(84839),a=i(23211),l=i(88475),u=i(93640),c=i(96007),d=i(81488),h=i(29434);class p extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?a.Dom.after(this.nativeInput,this.clearButton):a.Dom.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let e=this.nativeInput,{name:t,icon:i,type:n,ref:o,required:r,placeholder:s,autocomplete:l,label:c}=this.state;(0,u.attr)(e,"name",t),(0,u.attr)(e,"type",n),(0,u.attr)(e,"data-ref",o||t),(0,u.attr)(e,"ref",o||t),(0,u.attr)(e,"required",r||null),(0,u.attr)(e,"autocomplete",l?null:"off"),(0,u.attr)(e,"placeholder",s?this.j.i18n(s):""),i&&h.Icon.exists(i)?(a.Dom.before(e,this.icon),this.icon.innerHTML=h.Icon.get(i)):a.Dom.safeRemove(this.icon),c?(a.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(c)):a.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(d.inputValidators.required),null==(e=this.state.validators)||e.forEach(e=>{let t=d.inputValidators[e];t&&this.validators.add(t)})}set error(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),a.Dom.append(this.container,this.__errorBox)):a.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){let e=this.state.value.toString();e!==this.value&&(this.value=e)}onChangeValue(){let{value:e}=this;if(this.state.value!==e){var t,i;this.state.value=e,this.j.e.fire(this,"change",e),null==(t=(i=this.state).onChange)||t.call(i,e)}}validate(){this.error="";let e=(0,l.toArray)(this.validators).every(e=>e(this));return this.__markInputInvalid(),e}__markInputInvalid(){var e,t,i,n;this.error?((0,u.attr)(this.nativeInput,"aria-invalid","true"),null==(e=(t=this.nativeInput).setCustomValidity)||e.call(t,this.error)):((0,u.attr)(this.nativeInput,"aria-invalid",null),null==(i=(n=this.nativeInput).setCustomValidity)||i.call(n,""))}createContainer(e){let t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),a.Dom.append(this.wrapper,i),a.Dom.append(t,this.wrapper),(0,u.attr)(i,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(e,t){super(e,t),(0,n._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,n._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,n._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,n._)(this,"state",(0,o._)({},p.defaultState)),(0,n._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,n._)(this,"validators",new Set([])),(null==t?void 0:t.value)!==void 0&&(t.value=t.value.toString()),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,n._)(p,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,r.__decorate)([(0,s.watch)("state.clearButton")],p.prototype,"onChangeClear",null),(0,r.__decorate)([(0,s.watch)("state.className")],p.prototype,"onChangeClassName",null),(0,r.__decorate)([(0,s.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,s.debounce)()],p.prototype,"onChangeState",null),(0,r.__decorate)([(0,s.watch)("state.value")],p.prototype,"onChangeStateValue",null),(0,r.__decorate)([s.autobind],p.prototype,"onChangeValue",null),p=(0,r.__decorate)([s.component],p)},49999:function(e,t,i){"use strict";i.d(t,{UISelect:function(){return d}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(91672),l=i(7909),u=i(65273),c=i(81488);class d extends u.UIInput{className(){return"UISelect"}createContainer(e){var t;let i=super.createContainer(e),{j:n}=this,{nativeInput:o}=this;if(void 0!==e.placeholder){let t=n.create.element("option");t.value="",t.text=n.i18n(e.placeholder),o.add(t)}return null==(t=e.options)||t.forEach(e=>{let t=n.create.element("option");t.value=e.value.toString(),t.text=n.i18n(e.text),o.add(t)}),e.size&&e.size>0&&(0,l.attr)(o,"size",e.size),e.multiple&&(0,l.attr)(o,"multiple",""),i}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(c.inputValidators.required),this.validators.add(c.selectValidators.required))}constructor(e,t){super(e,t),(0,n._)(this,"state",(0,o._)({},d.defaultState)),Object.assign(this.state,t)}}(0,n._)(d,"defaultState",(0,r._)((0,o._)({},u.UIInput.defaultState),{options:[],size:1,multiple:!1})),d=(0,s.__decorate)([a.component],d)},81488:function(e,t,i){"use strict";i.d(t,{inputValidators:function(){return n},selectValidators:function(){return o}});var n=i(48776),o=i(6490)},48776:function(e,t,i){"use strict";i.r(t);var n=i(91764),o=i(4040);i.d(t,["required",0,function(e){return!!(0,o.trim)(e.value).length||(e.error="Please fill out this field",!1)},"url",0,function(e){return!!(0,n.isURL)((0,o.trim)(e.value))||(e.error="Please enter a web address",!1)}])},6490:function(e,t,i){"use strict";var n=i(4040);i.d(t,["required",0,function(e){return!!(0,n.trim)(e.value).length||(e.error="Please fill out this field",!1)}])},63468:function(e,t,i){"use strict";i.d(t,{UIGroup:function(){return c}});var n=i(25045),o=i(31635),r=i(80251),s=i(84839),a=i(23211),l=i(65946),u=i(96007);class c extends u.UIElement{className(){return"UIGroup"}getRole(){var e;return(null==(e=this.options)?void 0:e.role)||"list"}get allChildren(){let e=[],t=[...this.elements];for(;t.length;){let i=t.shift();(0,l.isArray)(i)?t.push(...i):r.Component.isInstanceOf(i,c)?t.push(...i.elements):i&&e.push(i)}return e}update(){this.elements.forEach(e=>e.update()),this.setMod("size",this.buttonSize)}append(e,t){let i;if((0,l.isArray)(e)){if("number"==typeof t)throw Error("You can not use index when append array of elements");return e.forEach(e=>this.append(e,t)),this}if("number"==typeof t?(i=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(i,0,e)):this.elements.push(e),e.name&&e.container.classList.add(this.getFullElName(e.name)),t&&"string"==typeof t){let i=this.getElm(t);if(null==i)throw Error("Element does not exist");a.Dom.append(i,e.container)}else this.appendChildToContainer(e.container,i);return e.parentElement=this,this}afterSetMod(e,t){this.syncMod&&this.elements.forEach(i=>i.setMod(e,t))}appendChildToContainer(e,t){let i=void 0===t||t<0||t>this.elements.length-1?null:this.container.children[t];null==i?a.Dom.append(this.container,e):a.Dom.before(i,e)}remove(e){let t=this.elements.indexOf(e);return -1!==t&&(this.elements.splice(t,1),a.Dom.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach(e=>e.destruct()),this.elements.length=0,this}setParentView(e){var t;return null==(t=this.elements)||t.forEach(t=>t.setParentView(e)),super.setParentView(e)}destruct(){return this.clear(),super.destruct()}constructor(e,t,i){super(e,i),(0,n._)(this,"options",void 0),(0,n._)(this,"syncMod",void 0),(0,n._)(this,"elements",void 0),(0,n._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",null==t||t.forEach(e=>e&&this.append(e)),(null==i?void 0:i.name)&&(this.name=i.name)}}(0,o.__decorate)([(0,s.watch)("buttonSize")],c.prototype,"update",null),c=(0,o.__decorate)([s.component],c)},64847:function(e,t,i){"use strict";i.d(t,{UIGroup:function(){return n.UIGroup},UIList:function(){return o.UIList},UISeparator:function(){return r.UISeparator},UISpacer:function(){return s.UISpacer}});var n=i(63468),o=i(97959),r=i(35676),s=i(27987)},97959:function(e,t,i){"use strict";i.d(t,{UIList:function(){return _}});var n=i(25045),o=i(31635),r=i(80251),s=i(91672),a=i(29200),l=i(68616),u=i(32328),c=i(53681),d=i(63468),h=i(35676),p=i(27987),m=i(2496),f=i(15982),g=i(40253);class _ extends d.UIGroup{className(){return"UIList"}getRole(){return"list"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(e){return new d.UIGroup(this.jodit,[],e?{role:e}:void 0)}get buttons(){return this.allChildren.filter(e=>r.Component.isInstanceOf(e,c.UIButton))}getButtonsNames(){return this.buttons.map(e=>e instanceof c.UIButton&&e.state.name||"").filter(e=>""!==e)}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){let i;e=(0,u.splitArray)(e),this.clear();let n=!1,o=this.makeGroup("group");this.append(o),o.setMod("line",!0);let r=e=>{let r=null;switch(e.name){case"\n":(o=this.makeGroup("group")).setMod("line",!0),i=this.makeGroup(),o.append(i),this.append(o);break;case"|":n||(n=!0,r=new h.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let e=new p.UISpacer(this.j);o.append(e),i=this.makeGroup(),o.append(i),n=!1;break}default:n=!1,r="select"===e.component?this.makeSelect(e,t):this.makeButton(e,t)}r&&(i||(i=this.makeGroup(),o.append(i)),i.append(r))},s=e=>{var t;return!this.removeButtons.includes(e.name)&&(!e.isVisible||(null==(t=e.isVisible)?void 0:t.call(e,this.j,e)))};return e.forEach(e=>{if((0,m.isButtonGroup)(e)){let t=e.buttons.filter(e=>e);t.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",e.group),o.append(i),(0,g.getStrongControlTypes)(t,this.j.o.controls).filter(s).forEach(r))}else{i||(i=this.makeGroup(),o.append(i));let t=(0,f.getControlType)(e,this.j.o.controls);s(t)&&r(t)}}),this.update(),this}makeSelect(e,t){throw Error("Not implemented behaviour")}makeButton(e,t){return new c.UIButton(this.j,{name:e.name})}constructor(...e){super(...e),(0,n._)(this,"mode","horizontal"),(0,n._)(this,"removeButtons",[])}}(0,o.__decorate)([(0,l.watch)("mode"),(0,a.hook)("ready")],_.prototype,"__onChangeMode",null),_=(0,o.__decorate)([s.component],_)},35676:function(e,t,i){"use strict";i.d(t,{UISeparator:function(){return s}});var n=i(31635),o=i(91672),r=i(96007);class s extends r.UIElement{className(){return"UISeparator"}}s=(0,n.__decorate)([o.component],s)},27987:function(e,t,i){"use strict";i.d(t,{UISpacer:function(){return s}});var n=i(31635),o=i(91672),r=i(96007);class s extends r.UIElement{className(){return"UISpacer"}}s=(0,n.__decorate)([o.component],s)},2496:function(e,t,i){"use strict";i.d(t,{flatButtonsSet:function(){return r}});var n=i(17312);let o=e=>(0,n.isArray)(e.buttons);function r(e,t){let i=t.getRegisteredButtonGroups();return new Set(e.reduce((e,t)=>{if(o(t)){var n;e=e.concat([...t.buttons,...null!=(n=i[t.group])?n:[]])}else e.push(t);return e},[]))}i.d(t,["isButtonGroup",0,o])},15982:function(e,t,i){"use strict";i.d(t,{findControlType:function(){return a},getControlType:function(){return s}});var n=i(41411),o=i(65946),r=i(5266);function s(e,t){let i;return t||(t=r.Config.defaultOptions.controls),(0,o.isString)(e)?i=a(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(i=(0,n._)({name:"empty"},(0,o.ConfigFlatten)(e))).name]&&(i=(0,n._)({},(0,o.ConfigFlatten)(t[i.name]),(0,o.ConfigFlatten)(i))),i}function a(e,t){let[i,r]=e.split(/\./),s=t;return null!=r?void 0!==t[i]&&(s=t[i]):r=i,s[r]?(0,n._)({name:r},(0,o.ConfigFlatten)(s[r])):void 0}},40253:function(e,t,i){"use strict";i.d(t,{getStrongControlTypes:function(){return a}});var n=i(17312),o=i(93640),r=i(5266),s=i(15982);function a(e,t){return((0,n.isArray)(e)?e:(0,o.keys)(e,!1).map(t=>{let i=e[t]||{};return(0,o.ConfigProto)({name:t},i)})).map(e=>(0,s.getControlType)(e,t||r.Config.defaultOptions.controls))}},29434:function(e,t,i){"use strict";i.d(t,{Icon:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(80991);class l{static getIcon(e){if(/<svg/i.test(e))return e;let t=l.icons[e]||l.icons[e.replace(/-/g,"_")]||l.icons[e.replace(/_/g,"-")]||l.icons[(0,s.camelCase)(e)]||l.icons[(0,s.kebabCase)(e)]||l.icons[e.toLowerCase()];return o.IS_PROD,t}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){var i,n,o,r;let s,u;if(!t)return;let{name:c,iconURL:d,fill:h,scale:p}=t,m=c.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(c)||(u=null==(i=(n=e.o).getIcon)?void 0:i.call(n,c,m));let f=`${c}${d}${h}${null!=p?p:""}${null!=u?u:""}`;if(e.o.cache&&this.__cache.has(f))return null==(o=this.__cache.get(f))?void 0:o.cloneNode(!0);if(d)s=e.c.span(),(0,a.css)(s,"backgroundImage","url("+d.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{let t=u||l.get(c,"")||(null==(r=e.o.extraIcons)?void 0:r[c]);t&&(s=l.toIconElement(e,t.trim()),/^<svg/i.test(c)||s.classList.add("jodit-icon_"+m))}return s&&(s.classList.add("jodit-icon"),(0,a.css)(s,"fill",h),null!=p&&(0,a.css)(s,"transform",`scale(${p})`),e.o.cache&&this.__cache.set(f,s.cloneNode(!0))),s}static toIconElement(e,t){let i=e.c.fromHTML(t);return r.Dom.isElement(i)?i:e.c.span("jodit-icon_text",i)}}(0,n._)(l,"icons",{}),(0,n._)(l,"__cache",new Map)},4099:function(e,t,i){"use strict";i.d(t,{Button:function(){return n.Button},Icon:function(){return a.Icon},Popup:function(){return l.Popup},ProgressBar:function(){return u.ProgressBar},UIBlock:function(){return r.UIBlock},UIButton:function(){return n.UIButton},UIButtonGroup:function(){return n.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UICheckbox:function(){return r.UICheckbox},UIElement:function(){return o.UIElement},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return r.UIForm},UIGroup:function(){return s.UIGroup},UIInput:function(){return r.UIInput},UIList:function(){return s.UIList},UISelect:function(){return r.UISelect},UISeparator:function(){return s.UISeparator},UISpacer:function(){return s.UISpacer},UITextArea:function(){return r.UITextArea},UITooltip:function(){return n.UITooltip}});var n=i(59400),o=i(96007),r=i(5658),s=i(64847),a=i(29434),l=i(56490),u=i(34396)},56490:function(e,t,i){"use strict";i.d(t,{Popup:function(){return n.Popup}});var n=i(51116)},51116:function(e,t,i){"use strict";i.d(t,{Popup:function(){return _}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(80251),l=i(84839),u=i(23211),c=i(28077),d=i(65946),h=i(28712),p=i(80991),m=i(96007),f=i(63468);let g=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class _ extends f.UIGroup{className(){return"Popup"}appendChildToContainer(e){let t=this.getElm("content");(0,h.assert)(t,"Content element should exist"),u.Dom.append(t,e)}updateParentElement(e){return e!==this&&a.Component.isInstanceOf(e,_)&&(this.__childrenPopups.forEach(t=>{!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",()=>{this.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){if(this.allChildren.length)throw Error("Remove children");if(a.Component.isInstanceOf(e,m.UIElement))this.append(e);else{let t=(0,d.isString)(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}open(e,t=!1,i){if((0,d.markOwner)(this.jodit,this.container),this.container.classList.add(`jodit_theme_${this.jodit.o.theme}`),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=t?this.getKeepBound(e):e,i)u.Dom.append(i,this.container);else{let e=(0,c.getContainer)(this.jodit,_);i!==this.container.parentElement&&u.Dom.append(e,this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if((0,p.cssInline)(this.container,"zIndex"))return;let e=e=>{let t=(0,p.cssInline)(e.container,"zIndex")||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(t.toString(),10)),!0)},{j:t}=this;if(e(t))return;let i=this.parentElement;for(;i;){if(e(i.j))return;let t=(0,p.cssInline)(i.container,"zIndex");if(t)return void this.setZIndex(1+parseInt(t.toString(),10));if(!i.parentElement&&i.container.parentElement){let e=m.UIElement.closestElement(i.container.parentElement,m.UIElement);if(e){i=e;continue}}i=i.parentElement}}getKeepBound(e){var t;let i=e(),n=(null!=(t=this.j.o.shadowRoot)?t:this.od).elementFromPoint(i.left,i.top);if(!n)return e;let s=u.Dom.isHTMLElement(n)?n:n.parentElement,a=(0,d.position)(s,this.j);return()=>{let t=e(),i=(0,d.position)(s,this.j);return(0,r._)((0,o._)({},t),{top:t.top+(i.top-a.top),left:t.left+(i.left-a.left)})}}updatePosition(){if(!this.isOpened)return this;let[e,t]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,d.position)(this.container,this.j));this.setMod("strategy",t);let i=(0,d.getFixedPositionOffset)(this.container);return(0,d.css)(this.container,{left:e.left-i.x,top:e.top-i.y}),this.__childrenPopups.forEach(e=>e.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(e,t,i,n=this.strategy){let o={left:e.left,right:e.left-(i.width-e.width)},r={bottom:e.top+e.height,top:e.top-i.height},s=Object.keys(o).reduce((e,t)=>e.concat(Object.keys(r).map(e=>`${t}${(0,d.ucfirst)(e)}`)),[]),a=e=>{let[t,n]=(0,d.kebabCase)(e).split("-");return{left:o[t],top:r[n],width:i.width,height:i.height}},l=e=>_.boxInView(a(n),e)?n:s.find(t=>{if(_.boxInView(a(t),e))return t})||null,u=l((0,d.position)(this.j.container,this.j));return u&&_.boxInView(a(u),t)||(u=l(t)||u||n),[a(u),u]}static boxInView(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}close(){if(!this.isOpened)return this;this.isOpened=!1,this.__childrenPopups.forEach(e=>e.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners();let{activeElement:e}=this.od;return e&&e!==this.container&&u.Dom.isOrContains(this.container,e)&&(0,d.isFunction)(e.blur)&&e.blur(),u.Dom.safeRemove(this.container),this}__closeOnOutsideClick(e){!this.isOpened||this.isOwnClick(e)||this.close()}isOwnClick(e){if(!e.target)return!1;let t=m.UIElement.closestElement(e.target,_);return!!(t&&(this===t||t.closest(this)))}__addGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;c.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(g,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),u.Dom.up(this.j.container,t=>{t&&this.j.e.on(t,"scroll mousewheel",e)})}__removeGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;c.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(g,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),this.j.container.isConnected&&u.Dom.up(this.j.container,t=>{t&&this.j.e.off(t,"scroll mousewheel",e)})}setZIndex(e){(0,d.css)(this.container,"zIndex",e.toString())}render(){return`<div>
18
+ />`)}constructor(e,t){super(e,(0,o._)({type:"file"},t)),(0,n._)(this,"state",(0,r._)((0,o._)({},c.UIInput.defaultState),{type:"file",onlyImages:!0}))}}d=(0,s.__decorate)([a.component],d)},2602:function(e,t,i){"use strict";i.d(t,{UICheckbox:function(){return o.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIInput:function(){return s.UIInput},UISelect:function(){return a.UISelect},UITextArea:function(){return n.UITextArea}});var n=i(87329),o=i(24641),r=i(75587),s=i(65273),a=i(49999)},65273:function(e,t,i){"use strict";i.d(t,{UIInput:function(){return p}});var n=i(25045),o=i(41411),r=i(31635),s=i(84839),a=i(23211),l=i(88475),u=i(93640),c=i(96007),d=i(81488),h=i(29434);class p extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?a.Dom.after(this.nativeInput,this.clearButton):a.Dom.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let e=this.nativeInput,{name:t,icon:i,type:n,ref:o,required:r,placeholder:s,autocomplete:l,label:c}=this.state;(0,u.attr)(e,"name",t),(0,u.attr)(e,"type",n),(0,u.attr)(e,"data-ref",o||t),(0,u.attr)(e,"ref",o||t),(0,u.attr)(e,"required",r||null),(0,u.attr)(e,"autocomplete",l?null:"off"),(0,u.attr)(e,"placeholder",s?this.j.i18n(s):""),i&&h.Icon.exists(i)?(a.Dom.before(e,this.icon),this.icon.innerHTML=h.Icon.get(i)):a.Dom.safeRemove(this.icon),c?(a.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(c)):a.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(d.inputValidators.required),null==(e=this.state.validators)||e.forEach(e=>{let t=d.inputValidators[e];t&&this.validators.add(t)})}set error(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),a.Dom.append(this.container,this.__errorBox)):a.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){let e=this.state.value.toString();e!==this.value&&(this.value=e)}onChangeValue(){let{value:e}=this;if(this.state.value!==e){var t,i;this.state.value=e,this.j.e.fire(this,"change",e),null==(t=(i=this.state).onChange)||t.call(i,e)}}validate(){this.error="";let e=(0,l.toArray)(this.validators).every(e=>e(this));return this.__markInputInvalid(),e}__markInputInvalid(){var e,t,i,n;this.error?((0,u.attr)(this.nativeInput,"aria-invalid","true"),null==(e=(t=this.nativeInput).setCustomValidity)||e.call(t,this.error)):((0,u.attr)(this.nativeInput,"aria-invalid",null),null==(i=(n=this.nativeInput).setCustomValidity)||i.call(n,""))}createContainer(e){let t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),a.Dom.append(this.wrapper,i),a.Dom.append(t,this.wrapper),(0,u.attr)(i,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(e,t){super(e,t),(0,n._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,n._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,n._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,n._)(this,"state",(0,o._)({},p.defaultState)),(0,n._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,n._)(this,"validators",new Set([])),(null==t?void 0:t.value)!==void 0&&(t.value=t.value.toString()),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,n._)(p,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,r.__decorate)([(0,s.watch)("state.clearButton")],p.prototype,"onChangeClear",null),(0,r.__decorate)([(0,s.watch)("state.className")],p.prototype,"onChangeClassName",null),(0,r.__decorate)([(0,s.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,s.debounce)()],p.prototype,"onChangeState",null),(0,r.__decorate)([(0,s.watch)("state.value")],p.prototype,"onChangeStateValue",null),(0,r.__decorate)([s.autobind],p.prototype,"onChangeValue",null),p=(0,r.__decorate)([s.component],p)},49999:function(e,t,i){"use strict";i.d(t,{UISelect:function(){return d}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(91672),l=i(7909),u=i(65273),c=i(81488);class d extends u.UIInput{className(){return"UISelect"}createContainer(e){var t;let i=super.createContainer(e),{j:n}=this,{nativeInput:o}=this;if(void 0!==e.placeholder){let t=n.create.element("option");t.value="",t.text=n.i18n(e.placeholder),o.add(t)}return null==(t=e.options)||t.forEach(e=>{let t=n.create.element("option");t.value=e.value.toString(),t.text=n.i18n(e.text),o.add(t)}),e.size&&e.size>0&&(0,l.attr)(o,"size",e.size),e.multiple&&(0,l.attr)(o,"multiple",""),i}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(c.inputValidators.required),this.validators.add(c.selectValidators.required))}constructor(e,t){super(e,t),(0,n._)(this,"state",(0,o._)({},d.defaultState)),Object.assign(this.state,t)}}(0,n._)(d,"defaultState",(0,r._)((0,o._)({},u.UIInput.defaultState),{options:[],size:1,multiple:!1})),d=(0,s.__decorate)([a.component],d)},81488:function(e,t,i){"use strict";i.d(t,{inputValidators:function(){return n},selectValidators:function(){return o}});var n=i(48776),o=i(6490)},48776:function(e,t,i){"use strict";i.r(t);var n=i(91764),o=i(4040);i.d(t,["required",0,function(e){return!!(0,o.trim)(e.value).length||(e.error="Please fill out this field",!1)},"url",0,function(e){return!!(0,n.isURL)((0,o.trim)(e.value))||(e.error="Please enter a web address",!1)}])},6490:function(e,t,i){"use strict";var n=i(4040);i.d(t,["required",0,function(e){return!!(0,n.trim)(e.value).length||(e.error="Please fill out this field",!1)}])},63468:function(e,t,i){"use strict";i.d(t,{UIGroup:function(){return c}});var n=i(25045),o=i(31635),r=i(80251),s=i(84839),a=i(23211),l=i(65946),u=i(96007);class c extends u.UIElement{className(){return"UIGroup"}getRole(){var e;return(null==(e=this.options)?void 0:e.role)||"group"}get allChildren(){let e=[],t=[...this.elements];for(;t.length;){let i=t.shift();(0,l.isArray)(i)?t.push(...i):r.Component.isInstanceOf(i,c)?t.push(...i.elements):i&&e.push(i)}return e}update(){this.elements.forEach(e=>e.update()),this.setMod("size",this.buttonSize)}append(e,t){let i;if((0,l.isArray)(e)){if("number"==typeof t)throw Error("You can not use index when append array of elements");return e.forEach(e=>this.append(e,t)),this}if("number"==typeof t?(i=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(i,0,e)):this.elements.push(e),e.name&&e.container.classList.add(this.getFullElName(e.name)),t&&"string"==typeof t){let i=this.getElm(t);if(null==i)throw Error("Element does not exist");a.Dom.append(i,e.container)}else this.appendChildToContainer(e.container,i);return e.parentElement=this,this}afterSetMod(e,t){this.syncMod&&this.elements.forEach(i=>i.setMod(e,t))}appendChildToContainer(e,t){let i=void 0===t||t<0||t>this.elements.length-1?null:this.container.children[t];null==i?a.Dom.append(this.container,e):a.Dom.before(i,e)}remove(e){let t=this.elements.indexOf(e);return -1!==t&&(this.elements.splice(t,1),a.Dom.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach(e=>e.destruct()),this.elements.length=0,this}setParentView(e){var t;return null==(t=this.elements)||t.forEach(t=>t.setParentView(e)),super.setParentView(e)}destruct(){return this.clear(),super.destruct()}constructor(e,t,i){super(e,i),(0,n._)(this,"options",void 0),(0,n._)(this,"syncMod",void 0),(0,n._)(this,"elements",void 0),(0,n._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",null==t||t.forEach(e=>e&&this.append(e)),(null==i?void 0:i.name)&&(this.name=i.name)}}(0,o.__decorate)([(0,s.watch)("buttonSize")],c.prototype,"update",null),c=(0,o.__decorate)([s.component],c)},64847:function(e,t,i){"use strict";i.d(t,{UIGroup:function(){return n.UIGroup},UIList:function(){return o.UIList},UISeparator:function(){return r.UISeparator},UISpacer:function(){return s.UISpacer}});var n=i(63468),o=i(97959),r=i(35676),s=i(27987)},97959:function(e,t,i){"use strict";i.d(t,{UIList:function(){return _}});var n=i(25045),o=i(31635),r=i(80251),s=i(91672),a=i(29200),l=i(68616),u=i(32328),c=i(53681),d=i(63468),h=i(35676),p=i(27987),m=i(2496),f=i(15982),g=i(40253);class _ extends d.UIGroup{className(){return"UIList"}getRole(){return"list"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(e="list"){return new d.UIGroup(this.jodit,[],{role:e})}get buttons(){return this.allChildren.filter(e=>r.Component.isInstanceOf(e,c.UIButton))}getButtonsNames(){return this.buttons.map(e=>e instanceof c.UIButton&&e.state.name||"").filter(e=>""!==e)}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){let i;e=(0,u.splitArray)(e),this.clear();let n=!1,o=this.makeGroup("group");this.append(o),o.setMod("line",!0);let r=e=>{let r=null;switch(e.name){case"\n":(o=this.makeGroup("group")).setMod("line",!0),i=this.makeGroup(),o.append(i),this.append(o);break;case"|":n||(n=!0,r=new h.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let e=new p.UISpacer(this.j);o.append(e),i=this.makeGroup(),o.append(i),n=!1;break}default:n=!1,r="select"===e.component?this.makeSelect(e,t):this.makeButton(e,t)}r&&(i||(i=this.makeGroup(),o.append(i)),i.append(r))},s=e=>{var t;return!this.removeButtons.includes(e.name)&&(!e.isVisible||(null==(t=e.isVisible)?void 0:t.call(e,this.j,e)))};return e.forEach(e=>{if((0,m.isButtonGroup)(e)){let t=e.buttons.filter(e=>e);t.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",e.group),o.append(i),(0,g.getStrongControlTypes)(t,this.j.o.controls).filter(s).forEach(r))}else{i||(i=this.makeGroup(),o.append(i));let t=(0,f.getControlType)(e,this.j.o.controls);s(t)&&r(t)}}),this.update(),this}makeSelect(e,t){throw Error("Not implemented behaviour")}makeButton(e,t){return new c.UIButton(this.j,{name:e.name})}constructor(...e){super(...e),(0,n._)(this,"mode","horizontal"),(0,n._)(this,"removeButtons",[])}}(0,o.__decorate)([(0,l.watch)("mode"),(0,a.hook)("ready")],_.prototype,"__onChangeMode",null),_=(0,o.__decorate)([s.component],_)},35676:function(e,t,i){"use strict";i.d(t,{UISeparator:function(){return s}});var n=i(31635),o=i(91672),r=i(96007);class s extends r.UIElement{className(){return"UISeparator"}}s=(0,n.__decorate)([o.component],s)},27987:function(e,t,i){"use strict";i.d(t,{UISpacer:function(){return s}});var n=i(31635),o=i(91672),r=i(96007);class s extends r.UIElement{className(){return"UISpacer"}}s=(0,n.__decorate)([o.component],s)},2496:function(e,t,i){"use strict";i.d(t,{flatButtonsSet:function(){return r}});var n=i(17312);let o=e=>(0,n.isArray)(e.buttons);function r(e,t){let i=t.getRegisteredButtonGroups();return new Set(e.reduce((e,t)=>{if(o(t)){var n;e=e.concat([...t.buttons,...null!=(n=i[t.group])?n:[]])}else e.push(t);return e},[]))}i.d(t,["isButtonGroup",0,o])},15982:function(e,t,i){"use strict";i.d(t,{findControlType:function(){return a},getControlType:function(){return s}});var n=i(41411),o=i(65946),r=i(5266);function s(e,t){let i;return t||(t=r.Config.defaultOptions.controls),(0,o.isString)(e)?i=a(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(i=(0,n._)({name:"empty"},(0,o.ConfigFlatten)(e))).name]&&(i=(0,n._)({},(0,o.ConfigFlatten)(t[i.name]),(0,o.ConfigFlatten)(i))),i}function a(e,t){let[i,r]=e.split(/\./),s=t;return null!=r?void 0!==t[i]&&(s=t[i]):r=i,s[r]?(0,n._)({name:r},(0,o.ConfigFlatten)(s[r])):void 0}},40253:function(e,t,i){"use strict";i.d(t,{getStrongControlTypes:function(){return a}});var n=i(17312),o=i(93640),r=i(5266),s=i(15982);function a(e,t){return((0,n.isArray)(e)?e:(0,o.keys)(e,!1).map(t=>{let i=e[t]||{};return(0,o.ConfigProto)({name:t},i)})).map(e=>(0,s.getControlType)(e,t||r.Config.defaultOptions.controls))}},29434:function(e,t,i){"use strict";i.d(t,{Icon:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(80991);class l{static getIcon(e){if(/<svg/i.test(e))return e;let t=l.icons[e]||l.icons[e.replace(/-/g,"_")]||l.icons[e.replace(/_/g,"-")]||l.icons[(0,s.camelCase)(e)]||l.icons[(0,s.kebabCase)(e)]||l.icons[e.toLowerCase()];return o.IS_PROD,t}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){var i,n,o,r;let s,u;if(!t)return;let{name:c,iconURL:d,fill:h,scale:p}=t,m=c.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(c)||(u=null==(i=(n=e.o).getIcon)?void 0:i.call(n,c,m));let f=`${c}${d}${h}${null!=p?p:""}${null!=u?u:""}`;if(e.o.cache&&this.__cache.has(f))return null==(o=this.__cache.get(f))?void 0:o.cloneNode(!0);if(d)s=e.c.span(),(0,a.css)(s,"backgroundImage","url("+d.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{let t=u||l.get(c,"")||(null==(r=e.o.extraIcons)?void 0:r[c]);t&&(s=l.toIconElement(e,t.trim()),/^<svg/i.test(c)||s.classList.add("jodit-icon_"+m))}return s&&(s.classList.add("jodit-icon"),(0,a.css)(s,"fill",h),null!=p&&(0,a.css)(s,"transform",`scale(${p})`),e.o.cache&&this.__cache.set(f,s.cloneNode(!0))),s}static toIconElement(e,t){let i=e.c.fromHTML(t);return r.Dom.isElement(i)?i:e.c.span("jodit-icon_text",i)}}(0,n._)(l,"icons",{}),(0,n._)(l,"__cache",new Map)},4099:function(e,t,i){"use strict";i.d(t,{Button:function(){return n.Button},Icon:function(){return a.Icon},Popup:function(){return l.Popup},ProgressBar:function(){return u.ProgressBar},UIBlock:function(){return r.UIBlock},UIButton:function(){return n.UIButton},UIButtonGroup:function(){return n.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UICheckbox:function(){return r.UICheckbox},UIElement:function(){return o.UIElement},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return r.UIForm},UIGroup:function(){return s.UIGroup},UIInput:function(){return r.UIInput},UIList:function(){return s.UIList},UISelect:function(){return r.UISelect},UISeparator:function(){return s.UISeparator},UISpacer:function(){return s.UISpacer},UITextArea:function(){return r.UITextArea},UITooltip:function(){return n.UITooltip}});var n=i(59400),o=i(96007),r=i(5658),s=i(64847),a=i(29434),l=i(56490),u=i(34396)},56490:function(e,t,i){"use strict";i.d(t,{Popup:function(){return n.Popup}});var n=i(51116)},51116:function(e,t,i){"use strict";i.d(t,{Popup:function(){return _}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(80251),l=i(84839),u=i(23211),c=i(28077),d=i(65946),h=i(28712),p=i(80991),m=i(96007),f=i(63468);let g=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class _ extends f.UIGroup{className(){return"Popup"}appendChildToContainer(e){let t=this.getElm("content");(0,h.assert)(t,"Content element should exist"),u.Dom.append(t,e)}updateParentElement(e){return e!==this&&a.Component.isInstanceOf(e,_)&&(this.__childrenPopups.forEach(t=>{!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",()=>{this.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){if(this.allChildren.length)throw Error("Remove children");if(a.Component.isInstanceOf(e,m.UIElement))this.append(e);else{let t=(0,d.isString)(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}open(e,t=!1,i){if((0,d.markOwner)(this.jodit,this.container),this.container.classList.add(`jodit_theme_${this.jodit.o.theme}`),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=t?this.getKeepBound(e):e,i)u.Dom.append(i,this.container);else{let e=(0,c.getContainer)(this.jodit,_);i!==this.container.parentElement&&u.Dom.append(e,this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if((0,p.cssInline)(this.container,"zIndex"))return;let e=e=>{let t=(0,p.cssInline)(e.container,"zIndex")||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(t.toString(),10)),!0)},{j:t}=this;if(e(t))return;let i=this.parentElement;for(;i;){if(e(i.j))return;let t=(0,p.cssInline)(i.container,"zIndex");if(t)return void this.setZIndex(1+parseInt(t.toString(),10));if(!i.parentElement&&i.container.parentElement){let e=m.UIElement.closestElement(i.container.parentElement,m.UIElement);if(e){i=e;continue}}i=i.parentElement}}getKeepBound(e){var t;let i=e(),n=(null!=(t=this.j.o.shadowRoot)?t:this.od).elementFromPoint(i.left,i.top);if(!n)return e;let s=u.Dom.isHTMLElement(n)?n:n.parentElement,a=(0,d.position)(s,this.j);return()=>{let t=e(),i=(0,d.position)(s,this.j);return(0,r._)((0,o._)({},t),{top:t.top+(i.top-a.top),left:t.left+(i.left-a.left)})}}updatePosition(){if(!this.isOpened)return this;let[e,t]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,d.position)(this.container,this.j));this.setMod("strategy",t);let i=(0,d.getFixedPositionOffset)(this.container);return(0,d.css)(this.container,{left:e.left-i.x,top:e.top-i.y}),this.__childrenPopups.forEach(e=>e.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(e,t,i,n=this.strategy){let o={left:e.left,right:e.left-(i.width-e.width)},r={bottom:e.top+e.height,top:e.top-i.height},s=Object.keys(o).reduce((e,t)=>e.concat(Object.keys(r).map(e=>`${t}${(0,d.ucfirst)(e)}`)),[]),a=e=>{let[t,n]=(0,d.kebabCase)(e).split("-");return{left:o[t],top:r[n],width:i.width,height:i.height}},l=e=>_.boxInView(a(n),e)?n:s.find(t=>{if(_.boxInView(a(t),e))return t})||null,u=l((0,d.position)(this.j.container,this.j));return u&&_.boxInView(a(u),t)||(u=l(t)||u||n),[a(u),u]}static boxInView(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}close(){if(!this.isOpened)return this;this.isOpened=!1,this.__childrenPopups.forEach(e=>e.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners();let{activeElement:e}=this.od;return e&&e!==this.container&&u.Dom.isOrContains(this.container,e)&&(0,d.isFunction)(e.blur)&&e.blur(),u.Dom.safeRemove(this.container),this}__closeOnOutsideClick(e){!this.isOpened||this.isOwnClick(e)||this.close()}isOwnClick(e){if(!e.target)return!1;let t=m.UIElement.closestElement(e.target,_);return!!(t&&(this===t||t.closest(this)))}__addGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;c.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(g,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),u.Dom.up(this.j.container,t=>{t&&this.j.e.on(t,"scroll mousewheel",e)})}__removeGlobalListeners(){let e=this.__throttleUpdatePosition,t=this.ow;c.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(g,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(t,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),this.j.container.isConnected&&u.Dom.up(this.j.container,t=>{t&&this.j.e.off(t,"scroll mousewheel",e)})}setZIndex(e){(0,d.css)(this.container,"zIndex",e.toString())}render(){return`<div>
18
19
  <div class="&__content"></div>
19
- </div>`}destruct(){return this.close(),super.destruct()}constructor(e,t=!0){super(e),(0,n._)(this,"smart",void 0),(0,n._)(this,"isOpened",void 0),(0,n._)(this,"strategy",void 0),(0,n._)(this,"viewBound",void 0),(0,n._)(this,"__targetBound",void 0),(0,n._)(this,"__childrenPopups",void 0),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,d.attr)(this.container,"role","popup")}}(0,s.__decorate)([l.autobind],_.prototype,"updatePosition",null),(0,s.__decorate)([(0,l.throttle)(10),l.autobind],_.prototype,"__throttleUpdatePosition",null),(0,s.__decorate)([l.autobind],_.prototype,"close",null),(0,s.__decorate)([l.autobind],_.prototype,"__closeOnOutsideClick",null)},34396:function(e,t,i){"use strict";i.d(t,{ProgressBar:function(){return c}});var n=i(25045),o=i(23211),r=i(28077),s=i(23599),a=i(80991),l=i(96007),u=i(29434);class c extends l.UIElement{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){let e=this.j.workplace||this.j.container;return o.Dom.append(e,this.container),this}hide(){return o.Dom.safeRemove(this.container),this}progress(e){return(0,a.css)(this.container,"width",e.toFixed(2)+"%"),this}showFileUploadAnimation(e,t){this.__cleanUpAnimation();let i=(0,r.getContainer)(this.j,c),n=(0,s.position)(this.j.container,this.j),l=this.j.c.div(this.getFullElName("file-animation")),d=u.Icon.get("file","");d&&(l.innerHTML=d);let h=null!=e?e:{x:n.width/2,y:0},p=null!=t?t:{x:h.x+60,y:h.y-80};(0,a.css)(l,{left:n.left+h.x,top:n.top+h.y}),o.Dom.append(i,l),this.__animationElement=l,l.offsetWidth,(0,a.css)(l,{left:n.left+p.x,top:n.top+p.y,opacity:0,transform:"scale(0.4)"});let m=()=>{l.removeEventListener("transitionend",m),this.__cleanUpAnimation()};l.addEventListener("transitionend",m)}__cleanUpAnimation(){this.__animationElement&&(o.Dom.safeRemove(this.__animationElement),this.__animationElement=null)}destruct(){return this.__cleanUpAnimation(),this.hide(),super.destruct()}constructor(...e){super(...e),(0,n._)(this,"__animationElement",null)}}},2222:function(e,t,i){"use strict";i.d(t,{ViewWithToolbar:function(){return g}});var n=i(25045),o=i(31635),r=i(69364),s=i(49574),a=i(68616),l=i(23211),u=i(45664),c=i(85932),d=i(28723),h=i(4099),p=i(2496),m=i(35099),f=i(4274);class g extends m.View{get toolbarContainer(){return!this.o.fullsize&&((0,c.isString)(this.o.toolbar)||l.Dom.isHTMLElement(this.o.toolbar))?(0,d.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&this.__appendToolbarBox(),this.__defaultToolbarContainer)}__appendToolbarBox(){let e=this.__defaultToolbarContainer,t=this.container.firstElementChild;for(;t&&t!==e&&t.hasAttribute("data-jodit-above-toolbar");)t=t.nextElementSibling;t!==e&&(t?l.Dom.before(t,e):l.Dom.append(this.container,e))}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){var e;if(!this.o.toolbar)return;let t=this.o.buttons?(0,u.splitArray)(this.o.buttons):[];null==(e=this.toolbar)||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){var t;this.registeredButtons.add(e);let i=null!=(t=e.group)?t:"other";return this.groupToButtons[i]||(this.groupToButtons[i]=[]),null!=e.position?this.groupToButtons[i][e.position]=e.name:this.groupToButtons[i].push(e.name),this}unregisterButton(e){var t;this.registeredButtons.delete(e);let i=null!=(t=e.group)?t:"other",n=this.groupToButtons[i];if(n){let t=n.indexOf(e.name);-1!==t&&n.splice(t,1),0===n.length&&delete this.groupToButtons[i]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map(e=>(0,p.isButtonGroup)(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e)}destruct(){this.isDestructed||(this.setStatus(r.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(e,t=!1){super(e,t),(0,n._)(this,"toolbar",(0,f.makeCollection)(this)),(0,n._)(this,"__defaultToolbarContainer",this.c.div("jodit-toolbar__box")),(0,n._)(this,"registeredButtons",new Set),(0,n._)(this,"groupToButtons",{}),(0,n._)(this,"isJodit",!1),(0,n._)(this,"__tooltip",new h.UITooltip(this)),this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}(0,o.__decorate)([(0,a.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),(0,o.__decorate)([s.autobind],g.prototype,"beforeToolbarBuild",null)},35099:function(e,t,i){"use strict";i.d(t,{View:function(){return S}});var n=i(25045),o=i(31635),r=i(16964),s=i(80251),a=i(69364),l=i(81937),u=i(76517),c=i(51676),d=i(24968),h=i(29200),p=i(27795),m=i(1496),f=i(28077),g=i(65946),_=i(8006),v=i(24475),b=i(23183),y=i(81987),w=i(34396),k=i(10081);class S extends s.Component{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,g.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return v.Storage.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(e){return new k.UIMessages(this,e)}get storage(){return v.Storage.makeStorage(!0,this.id)}get asyncStorage(){return _.AsyncStorage.makeStorage(!0,this.id,this.o.asyncStorage)}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get progressbar(){return new w.ProgressBar(this)}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return(0,g.i18n)(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return S.version}static getVersion(){return S.version}initOptions(e){this.options=(0,g.ConfigProto)(e||{},(0,g.ConfigProto)(this.options||{},S.defaultOptions))}initOwners(){var e;this.ownerWindow=null!=(e=this.o.ownerWindow)?e:window}attachEvents(e){if(!e)return;let t=null==e?void 0:e.events;t&&Object.keys(t).forEach(e=>this.e.on(e,t[e]))}getInstance(e,t){let i=(0,g.isFunction)(e)?e.prototype.className():e,n=this.e.fire((0,g.camelCase)("getInstance_"+i),t);if(n)return n;let o=(0,g.isFunction)(e)?e:f.modules[i],s=this.__modulesInstances;if(!(0,g.isFunction)(o))throw(0,g.error)("Need real module name");if(!s.has(i)){let e=o.prototype instanceof r.ViewComponent?new o(this,t):new o(t);this.components.add(e),s.set(i,e)}return s.get(i)}addDisclaimer(e){p.Dom.append(this.container,e)}beforeDestruct(){this.e.fire(a.STATUSES.beforeDestruct,this),this.components.forEach(e=>{(0,g.isDestructable)(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}destruct(){var e,t,i,n;this.isDestructed||(null==(e=(0,c.cached)(this,"progressbar"))||e.destruct(),null==(t=(0,c.cached)(this,"message"))||t.destruct(),null==(i=(0,c.cached)(this,"asyncStorage"))||i.close(),this.events&&(this.events.destruct(),this.events=void 0),null==(n=(0,c.cached)(this,"buffer"))||n.clear(),p.Dom.safeRemove(this.container),super.destruct())}constructor(e,t=!1){var i;super(),(0,n._)(this,"isJodit",void 0),(0,n._)(this,"isView",void 0),(0,n._)(this,"parent",void 0),(0,n._)(this,"mods",void 0),(0,n._)(this,"id",void 0),(0,n._)(this,"components",void 0),(0,n._)(this,"events",void 0),(0,n._)(this,"create",void 0),(0,n._)(this,"__container",void 0),(0,n._)(this,"OPTIONS",void 0),(0,n._)(this,"__options",void 0),(0,n._)(this,"__isFullSize",void 0),(0,n._)(this,"__whoLocked",void 0),(0,n._)(this,"isLockedNotBy",void 0),(0,n._)(this,"__modulesInstances",void 0),this.isJodit=t,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=S.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=new Date().getTime().toString(),this.initOptions(e),this.initOwners(),this.events=null!=(i=null==e?void 0:e.eventEmmiter)?i:new m.EventEmitter(this.od),this.create=new u.Create(this.od),this.__container=this.c.div(`jodit ${this.componentName}`)}}(0,n._)(S,"ES",l.ES),(0,n._)(S,"version",l.APP_VERSION),(0,n._)(S,"esNext",l.IS_ES_NEXT),(0,n._)(S,"esModern",l.IS_ES_MODERN),(0,n._)(S,"defaultOptions",void 0),(0,o.__decorate)([c.cache],S.prototype,"buffer",null),(0,o.__decorate)([c.cache],S.prototype,"message",null),(0,o.__decorate)([c.cache],S.prototype,"storage",null),(0,o.__decorate)([c.cache],S.prototype,"asyncStorage",null),(0,o.__decorate)([c.cache],S.prototype,"c",null),(0,o.__decorate)([c.cache],S.prototype,"e",null),(0,o.__decorate)([c.cache],S.prototype,"progressbar",null),(0,o.__decorate)([(0,h.hook)(a.STATUSES.beforeDestruct)],S.prototype,"beforeDestruct",null),(S=(0,o.__decorate)([(0,d.derive)(y.Mods,b.Elms)],S)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},73302:function(e,t,i){"use strict";i.d(t,{Jodit:function(){return Jodit}});var n=i(25045),o=i(41411),r=i(31635),s=i(81937),a=i(84839),l=i(28077),u=i(65946),c=i(80991),d=i(73714),h=i(80512),p=i(5266),m=i(60936);let f="data-jodit-default-style-display",g="data-jodit-default-classes",_={contenteditable:!1};class Jodit extends m.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{l.eventEmitter.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";let e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,u.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:p.Config.defaultOptions.defaultTimeout}static atom(e){return(0,u.markAsAtomic)(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&(0,u.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return p.Config.defaultOptions}static configure(e){(0,u.ConfigMerge)(Jodit.defaultOptions,e)}get createInside(){return new m.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let e=this,t=(0,u.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((i,n)=>{let o=t.baseurl+i;t.isImages&&t.isImages[n]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){let e=this.e.fire("beforeGetNativeEditorValue");return(0,u.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){let t={value:e};!this.e.fire("beforeSetNativeEditorValue",t)&&this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",t)))return i;i=this.getNativeEditorValue().replace(s.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let n={value:i};return this.e.fire("afterGetValueFromEditor",n,t),n.value}setEditorValue(e){let t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,u.isString)(t)&&(e=t),!this.editor){void 0!==e&&this.__setElementValue(e);return}if(!(0,u.isString)(e)&&!(0,u.isVoid)(e))throw(0,u.error)("value must be string");(0,u.isVoid)(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),n=this.getEditorValue();if(!this.__isSilentChange&&i!==n&&this.__callChangeCount<s.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(n),this.__callChangeCount+=1,s.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",n,i),this.e.fire(this.history,"change",n,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return this.element===this.container&&void 0!==this.__inlineElementValue?this.__inlineElementValue:void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!(0,u.isString)(e))throw(0,u.error)("value must be string");if(this.element===this.container){this.__inlineElementValue=e;return}if(e!==this.getElementValue()){let t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,u.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,i){let n=e.toLowerCase(),o=this.commands.get(n);if(void 0===o&&(o=[],this.commands.set(n,o)),o.push(t),!(0,u.isFunction)(t)){let o=this.o.commandToHotkeys[n]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,n,null==i?void 0:i.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){let n=(0,u.asArray)(e).map(u.normalizeKeyAliases).map(e=>e+".hotkey").join(" ");this.e.off(n).on(n,(e,n)=>(n&&(n.shouldStop=null==i||i),this.execCommand(t)))}execCommand(e,t,i,...n){let o;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){if(e=e.toLowerCase(),!1!==(o=this.e.fire(`beforeCommand${(0,u.ucfirst)(e)}`,t,i,...n))&&(o=this.e.fire("beforeCommand",e,t,i,...n)),!1!==o&&(o=this.__execCustomCommands(e,t,i,...n)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,i)}catch(e){if(!s.IS_PROD)throw e}}return this.e.fire("afterCommand",e,t,i),this.__imdSynchronizeValues(),o}}nativeExecCommand(e,t,i){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,i,...n){e=e.toLowerCase();let o=this.commands.get(e);if(void 0!==o){let r;return o.forEach(o=>{let s=((0,u.isFunction)(o)?o:o.exec).call(this,e,t,i,...n);void 0!==s&&(r=s)}),r}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.container.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.container.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===s.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==s.MODE_SPLIT)return this.getMode();let e=this.od.activeElement;return e&&(e===this.iframe||m.Dom.isOrContains(this.editor,e)||m.Dom.isOrContains(this.toolbar.container,e))?s.MODE_WYSIWYG:s.MODE_SOURCE}setMode(e){let t=this.getMode(),i={mode:parseInt(e.toString(),10)},n=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[s.MODE_SOURCE,s.MODE_WYSIWYG,s.MODE_SPLIT].includes(i.mode)?i.mode:s.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(n[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[s.MODE_SOURCE,s.MODE_WYSIWYG,this.o.useSplitMode?s.MODE_SPLIT:9].includes(e+1)?e+=1:e=s.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;let t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&((0,u.attr)(this.editor,"aria-disabled",e),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&(0,u.attr)(this.editor,"contenteditable",null):this.editor&&(0,u.attr)(this.editor,"contenteditable",!0),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==s.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,u.ConfigProto)(e||{},p.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){let i=(0,u.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,u.toArray)(i.attributes).forEach(e=>{let i=e.name,n=e.value;void 0===p.Config.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(n=""===n||"true"===n),/^[0-9]+(\.)?([0-9]+)?$/.test(n.toString())&&(n=Number(n)),this.options[i]=n)});let n=this.c.div("jodit-container");n.classList.add("jodit"),n.classList.add("jodit-container"),n.classList.add(`jodit_theme_${this.o.theme||"default"}`),v(this.o.className,n),this.o.containerStyle&&(0,u.css)(n,this.o.containerStyle);let{styleValues:o}=this.o;Object.keys(o).forEach(e=>{let t=(0,u.kebabCase)(e);n.style.setProperty(`--jd-${t}`,o[e])}),(0,u.attr)(n,"contenteditable",!1);let r=null;if(this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(n=i,(0,u.attr)(i,g,i.className.toString()),r=n.innerHTML,m.Dom.detach(n)),n.classList.add("jodit_inline"),n.classList.add("jodit-container")),i!==n){let e=(0,c.cssInline)(i,"display");e&&(0,u.attr)(i,f,e),(0,u.css)(i,"display","none")}let s="workplace-slot",a=this.c.div(this.getFullElName(s,"above"),_);(0,u.attr)(a,"data-jodit-above-toolbar",""),m.Dom.appendChildFirst(n,a);let l=this.c.div(this.getFullElName(s,"top"),_);m.Dom.append(n,l);let d=this.c.div(this.getFullElName(s,"center"),_),h=this.c.div("jodit-workplace",_),b=this.c.div(this.getFullElName(s,"left"),_),y=this.c.div(this.getFullElName(s,"right"),_);m.Dom.append(d,b),m.Dom.append(d,h),m.Dom.append(d,y),m.Dom.append(n,d);let w=this.c.div(this.getFullElName(s,"bottom"),_);m.Dom.append(n,w),i.parentNode&&i!==n&&m.Dom.before(i,n),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let k=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});m.Dom.append(h,k);let S={editor:k,element:i,container:n,workplace:h,slots:{above:a,top:l,bottom:w,center:d,left:b,right:y},statusbar:new m.StatusBar(this,n),options:this.isReady?(0,u.ConfigProto)(t||{},p.Config.defaultOptions):this.options,history:new m.History(this),editorWindow:this.ow};this.__elementToPlace.set(k,S),this.setCurrentPlace(S),this.places.push(S),this.setNativeEditorValue(this.getElementValue());let C=this.__initEditor(r),E=this.options,T=()=>{E.enableDragAndDropFileToEditor&&E.uploader&&(E.uploader.url||E.uploader.insertImageAsBase64URI)?this.uploader.bind(this.editor):E.enableDragAndDropFileToEditor||this.e.on(k,"drop",e=>{var t,i;(null==(i=e.dataTransfer)||null==(t=i.files)?void 0:t.length)&&e.preventDefault()}),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,S),this.e.fire("afterAddPlace",S)};return(0,u.callPromise)(C,T)}addDisclaimer(e){m.Dom.append(this.workplace,e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(s.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){let t=this.__createEditor();return(0,u.callPromise)(t,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){let e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch(e){}})}__createEditor(){let e=this.editor,t=this.e.fire("createEditor",this);return(0,u.callPromise)(t,()=>{!this.isInDestruct&&((!1===t||(0,u.isPromise)(t))&&m.Dom.safeRemove(e),v(this.o.editorClassName,this.editor),this.o.style&&(0,u.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:e}=this;if(this.o.direction){let e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";(0,u.css)(this.editor,"direction",e),(0,u.attr)(this.editor,"dir",e),(0,u.css)(this.container,"direction",e),(0,u.attr)(this.container,"dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{let t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(e instanceof this.ew.KeyboardEvent)||!e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}}).on(this.ow,"mouseup",t=>{if(this.o.readonly||this.__isSilentChange)return;let i=t.target;!(i&&(0,u.isNumber)(i.nodeType)&&e.contains(i))&&this.s.isInsideArea&&(this.e.fire("changeSelection"),this.synchronizeValues())})}fetch(e,t){let i=new d.Ajax((0,o._)({url:e},t),this.o.defaultAjaxOptions),n=()=>{this.e.off("beforeDestruct",n),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",n),this.progressbar.show().progress(30);let r=i.send();return r.finally(n).catch(()=>null),r}destruct(){var e,t;if(this.isInDestruct)return;this.setStatus(m.STATUSES.beforeDestruct),this.__elementToPlace.clear(),null==(e=(0,a.cached)(this,"storage"))||e.clear(),null==(t=(0,a.cached)(this,"buffer"))||t.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let i=this.editor?this.getEditorValue():"";this.places.forEach(({container:e,workplace:t,statusbar:n,element:o,iframe:r,editor:s,history:a})=>{if(o){if(o!==e)if(o.hasAttribute(f)){let e=(0,u.attr)(o,f);e&&((0,u.css)(o,"display",e),(0,u.attr)(o,f,null))}else(0,u.css)(o,"display","");else o.hasAttribute(g)&&(o.className=(0,u.attr)(o,g)||"",(0,u.attr)(o,g,null));o.hasAttribute("style")&&!(0,u.attr)(o,"style")&&(0,u.attr)(o,"style",null),n.destruct(),this.e.off(e),this.e.off(o),this.e.off(s),m.Dom.safeRemove(t),m.Dom.safeRemove(s),e!==o&&m.Dom.safeRemove(e),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),m.Dom.safeRemove(r),e===o&&(o.innerHTML=i),a.destruct()}}),this.places.length=0,this.currentPlace={},delete l.instances[this.id],super.destruct()}constructor(e,t){super(t,!0),(0,n._)(this,"isJodit",!0),(0,n._)(this,"commands",new Map),(0,n._)(this,"__selectionLocked",null),(0,n._)(this,"__wasReadOnly",!1),(0,n._)(this,"editorIsActive",!1),(0,n._)(this,"selection",void 0),(0,n._)(this,"__mode",s.MODE_WYSIWYG),(0,n._)(this,"__callChangeCount",0),(0,n._)(this,"__inlineElementValue",void 0),(0,n._)(this,"__isSilentChange",!1),(0,n._)(this,"currentPlace",{options:this.__options,container:this.__container}),(0,n._)(this,"places",[]),(0,n._)(this,"__elementToPlace",new Map);try{let t=(0,u.resolveElement)(e,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){if(!s.IS_PROD)throw e;throw this.destruct(),e}this.setStatus(m.STATUSES.beforeInit),this.id=(0,u.attr)((0,u.resolveElement)(e,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),l.instances[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new m.Selection(this);let i=this.beforeInitHook();(0,u.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),l.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(e,t);l.instances[this.id]=this;let n=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,u.callPromise)(this.afterInitHook()),this.setStatus(m.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,u.callPromise)(i,n)})}}function v(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}(0,n._)(Jodit,"fatMode",s.FAT_MODE),(0,n._)(Jodit,"plugins",l.pluginSystem),(0,n._)(Jodit,"modules",l.modules),(0,n._)(Jodit,"ns",l.modules),(0,n._)(Jodit,"decorators",{}),(0,n._)(Jodit,"constants",s),(0,n._)(Jodit,"instances",l.instances),(0,n._)(Jodit,"lang",s.lang),(0,n._)(Jodit,"core",{Plugin:m.Plugin}),(0,r.__decorate)([a.cache],Jodit.prototype,"createInside",null),(0,r.__decorate)([a.cache],Jodit.prototype,"message",null),(0,r.__decorate)([a.cache],Jodit.prototype,"s",null),(0,r.__decorate)([a.cache],Jodit.prototype,"uploader",null),(0,r.__decorate)([a.cache],Jodit.prototype,"filebrowser",null),(0,r.__decorate)([(0,a.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.__decorate)([(0,a.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.__decorate)([a.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,r.__decorate)([(0,a.derive)(h.Dlgs)],Jodit)},89317:function(e,t,i){"use strict";var n=i(17312),o=i(57741),r=i(23717),s=i(56014),a=i(95461),l=i(63837),u=i(39386),c=i(52735),d=i(62327),h=i(25090),p=i(53113),m=i(81321),f=i(4679),g=i(31927),_=i(21195),v=i(53414),b=i(11012),y=i(87061),w=i(3268),k=i(85325),S=i(97834),C=i(86433),E=i(28359),T=i(33872),I=i(39579),D=i(68368),x=i(57456),j=i(25182),z=i(44906);let L={};L={ar:o,az:r,cs_cz:s,de:a,en:l,es:u,fa:c,fi:d,fr:h,he:p,hu:m,id:f,it:g,ja:_,ko:b,mn:y,nl:w,no:k,pl:S,pt_br:C,ru:E,sk:T,sv:I,tr:D,ua:x,zh_cn:j,zh_tw:z};let A=e=>e?e.default||e:{},P={};(0,n.isArray)(A(v))&&A(v).forEach((e,t)=>{P[t]=e}),Object.keys(L).forEach(e=>{let t=A(L[e]);(0,n.isArray)(t)?(L[e]={},t.forEach((t,i)=>{L[e][P[i]]=t})):L[e]=t}),t.default=L},67399:function(e,t,i){"use strict";i.d(t,{ContextMenu:function(){return l}});var n=i(31635),o=i(91672),r=i(17312),s=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(e,t,i){let n=this;n.clear(),(0,r.isArray)(i)&&(i.forEach(e=>{if(!e)return;let t=(0,s.Button)(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction(t=>{var i;return null==(i=e.exec)||i.call(n,t),n.clear(),n.close(),!1}),this.append(t)}),this.open(()=>({left:e,top:t,width:0,height:0}),!0))}}l=(0,n.__decorate)([o.component],l)},91535:function(e,t,i){"use strict";i.d(t,{Alert:function(){return l}});var n=i(23211),o=i(78982),r=i(91565),s=i(53681),a=i(76841);function l(e,t,i,u="jodit-dialog_alert"){(0,r.isFunction)(t)&&(i=t,t=void 0);let c=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=c.c.div(u),h=(0,s.Button)(c,"ok","Ok");return(0,o.asArray)(e).forEach(e=>{n.Dom.append(d,n.Dom.isNode(e)?e:c.c.fromHTML(e))}),h.onAction(()=>{i&&(0,r.isFunction)(i)&&!1===i(c)||c.close()}),c.setFooter([h]),c.open(d,t||"&nbsp;",!0,!0),h.focus(),c}},88329:function(e,t,i){"use strict";i.d(t,{Confirm:function(){return a}});var n=i(23211),o=i(91565),r=i(53681),s=i(76841);function a(e,t,i){let a=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),l=a.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),u=a.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),n.Dom.append(u,a.c.fromHTML(e)),n.Dom.append(l,u);let c=e=>()=>{i&&!1===i(e)||a.close()},d=(0,r.Button)(a,"cancel","Cancel"),h=(0,r.Button)(a,"ok","Yes");return d.onAction(c(!1)),h.onAction(c(!0)),a.e.on(l,"submit",()=>(c(!0)(),!1)),a.setFooter([h,d]),a.open(l,t||"&nbsp;",!0,!0),h.focus(),a}},76841:function(e,t,i){"use strict";i.d(t,{Dialog:function(){return y}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(16964),l=i(81937),u=i(84839),c=i(23211),d=i(28077),h=i(45664),p=i(28686),m=i(93640),f=i(28712),g=i(4099),_=i(35099),v=i(2222),b=i(5266);b.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},b.Config.prototype.controls.dialog={close:{icon:"cancel",exec:e=>{e.close()}}};class y extends v.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:e,shadowRoot:t}=this.o;return e||t||this.od.body}setElements(e,t){let i=[];(0,h.asArray)(t).forEach(t=>{let n;if((0,p.isArray)(t)){let n=this.c.div(this.getFullElName("column"));return i.push(n),c.Dom.append(e,n),this.setElements(n,t)}n=(0,p.isString)(t)?this.c.fromHTML(t):(0,p.hasContainer)(t)?t.container:t,i.push(n),n.parentNode!==e&&c.Dom.append(e,n)}),(0,h.toArray)(e.childNodes).forEach(e=>{-1===i.indexOf(e)&&c.Dom.safeRemove(e)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(e){let t=e.target;!(!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=(0,m.css)(this.dialog,"left"),this.startPoint.y=(0,m.css)(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(Math.max(this.startPoint.w+e.clientX-this.startX,this.minSize.w),Math.max(this.startPoint.h+e.clientY-this.startY,this.minSize.h)),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}__onEsc(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===l.KEY_ESC&&!0!==this.getMod("static")){let t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}__onResizerMouseDown(e){var t,i,n;this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight;let o=this.getElm("header"),r=this.getElm("footer"),s=this.getElm("content"),a=s&&parseFloat(this.ow.getComputedStyle(s).minHeight)||0;this.minSize.w=(0,p.isNumber)(this.o.minWidth)?this.o.minWidth:Math.max(100,null!=(t=null==r?void 0:r.scrollWidth)?t:0),this.minSize.h=(0,p.isNumber)(this.o.minHeight)?this.o.minHeight:(null!=(i=null==o?void 0:o.offsetHeight)?i:0)+(null!=(n=null==r?void 0:r.offsetHeight)?n:0)+a+this.resizer.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),(0,m.css)(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){let i=this.ow.innerWidth,n=this.ow.innerHeight,o=i/2-this.dialog.offsetWidth/2,r=n/2-this.dialog.offsetHeight/2;return o<0&&(o=0),r<0&&(r=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-r)>100),(0,m.css)(this.dialog,{left:(e||o)+"px",top:(t||r)+"px"}),this}setHeader(e){return this.setElements(this.dialogbox_header,e),this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",!!e),this}__openedSiblings(){let e=[];return y.__opened.forEach(t=>{t.destination===this.destination&&e.push(t)}),e}getZIndex(){return parseInt((0,m.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e=0,t=this;return this.__openedSiblings().forEach(i=>{let n=i.getZIndex();n>e&&(t=i,e=n)}),t}setMaxZIndex(){if(this.getMod("static"))return;let e=0x1312d04;this.__openedSiblings().forEach(t=>{e=Math.max(t.getZIndex(),e)}),(0,m.css)(this.container,"zIndex",(e+1).toString())}toggleFullSize(e){(0,p.isVoid)(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),super.toggleFullSize(e)}open(e,t,i,n){if(d.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,p.isBoolean)(e)&&(i=e),(0,p.isBoolean)(t)&&(n=t),this.destroyAfterClose=!0===i;let o=(0,p.isBoolean)(e)?void 0:e,r=(0,p.isBoolean)(t)?void 0:t;return void 0!==r&&this.setHeader(r),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,y.__opened.add(this),this.setModal(n),c.Dom.append(this.destination,this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):(0,m.css)(this.container,"zIndex",null),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=!!e,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e}=this;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,y.__opened.delete(this),this.isFullSize&&this.toggleFullSize(!1),c.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),this.isInDestruct||e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(a.STATUSES.beforeDestruct),this.isOpened&&this.close(),y.__opened.delete(this),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(e={}){super(e),(0,n._)(this,"resizer",void 0),(0,n._)(this,"offsetX",void 0),(0,n._)(this,"offsetY",void 0),(0,n._)(this,"destroyAfterClose",!1),(0,n._)(this,"moved",!1),(0,n._)(this,"resizable",!1),(0,n._)(this,"draggable",!1),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"startPoint",{x:0,y:0,w:0,h:0}),(0,n._)(this,"lockSelect",()=>{this.setMod("moved",!0)}),(0,n._)(this,"unlockSelect",()=>{this.setMod("moved",!1)}),(0,n._)(this,"__onResize",()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()}),(0,n._)(this,"minSize",{w:0,h:0}),(0,n._)(this,"dialog",void 0),(0,n._)(this,"workplace",void 0),(0,n._)(this,"dialogbox_header",void 0),(0,n._)(this,"dialogbox_content",void 0),(0,n._)(this,"dialogbox_footer",void 0),(0,n._)(this,"dialogbox_toolbar",void 0),(0,n._)(this,"isModal",!1),(0,n._)(this,"isOpened",!1),this.options=(0,m.ConfigProto)(e,(0,m.ConfigProto)(b.Config.prototype.dialog,y.defaultOptions)),this.attachEvents(this.options),c.Dom.safeRemove(this.container);let t=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
20
+ </div>`}destruct(){return this.close(),super.destruct()}constructor(e,t=!0){super(e),(0,n._)(this,"smart",void 0),(0,n._)(this,"isOpened",void 0),(0,n._)(this,"strategy",void 0),(0,n._)(this,"viewBound",void 0),(0,n._)(this,"__targetBound",void 0),(0,n._)(this,"__childrenPopups",void 0),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,d.attr)(this.container,"role","popup")}}(0,s.__decorate)([l.autobind],_.prototype,"updatePosition",null),(0,s.__decorate)([(0,l.throttle)(10),l.autobind],_.prototype,"__throttleUpdatePosition",null),(0,s.__decorate)([l.autobind],_.prototype,"close",null),(0,s.__decorate)([l.autobind],_.prototype,"__closeOnOutsideClick",null)},34396:function(e,t,i){"use strict";i.d(t,{ProgressBar:function(){return c}});var n=i(25045),o=i(23211),r=i(28077),s=i(23599),a=i(80991),l=i(96007),u=i(29434);class c extends l.UIElement{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){let e=this.j.workplace||this.j.container;return o.Dom.append(e,this.container),this}hide(){return o.Dom.safeRemove(this.container),this}progress(e){return(0,a.css)(this.container,"width",e.toFixed(2)+"%"),this}showFileUploadAnimation(e,t){this.__cleanUpAnimation();let i=(0,r.getContainer)(this.j,c),n=(0,s.position)(this.j.container,this.j),l=this.j.c.div(this.getFullElName("file-animation")),d=u.Icon.get("file","");d&&(l.innerHTML=d);let h=null!=e?e:{x:n.width/2,y:0},p=null!=t?t:{x:h.x+60,y:h.y-80};(0,a.css)(l,{left:n.left+h.x,top:n.top+h.y}),o.Dom.append(i,l),this.__animationElement=l,l.offsetWidth,(0,a.css)(l,{left:n.left+p.x,top:n.top+p.y,opacity:0,transform:"scale(0.4)"});let m=()=>{l.removeEventListener("transitionend",m),this.__cleanUpAnimation()};l.addEventListener("transitionend",m)}__cleanUpAnimation(){this.__animationElement&&(o.Dom.safeRemove(this.__animationElement),this.__animationElement=null)}destruct(){return this.__cleanUpAnimation(),this.hide(),super.destruct()}constructor(...e){super(...e),(0,n._)(this,"__animationElement",null)}}},2222:function(e,t,i){"use strict";i.d(t,{ViewWithToolbar:function(){return g}});var n=i(25045),o=i(31635),r=i(69364),s=i(49574),a=i(68616),l=i(23211),u=i(45664),c=i(85932),d=i(28723),h=i(4099),p=i(2496),m=i(35099),f=i(4274);class g extends m.View{get toolbarContainer(){return!this.o.fullsize&&((0,c.isString)(this.o.toolbar)||l.Dom.isHTMLElement(this.o.toolbar))?(0,d.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&this.__appendToolbarBox(),this.__defaultToolbarContainer)}__appendToolbarBox(){let e=this.__defaultToolbarContainer,t=this.container.firstElementChild;for(;t&&t!==e&&t.hasAttribute("data-jodit-above-toolbar");)t=t.nextElementSibling;t!==e&&(t?l.Dom.before(t,e):l.Dom.append(this.container,e))}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){var e;if(!this.o.toolbar)return;let t=this.o.buttons?(0,u.splitArray)(this.o.buttons):[];null==(e=this.toolbar)||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){var t;this.registeredButtons.add(e);let i=null!=(t=e.group)?t:"other";return this.groupToButtons[i]||(this.groupToButtons[i]=[]),null!=e.position?this.groupToButtons[i][e.position]=e.name:this.groupToButtons[i].push(e.name),this}unregisterButton(e){var t;this.registeredButtons.delete(e);let i=null!=(t=e.group)?t:"other",n=this.groupToButtons[i];if(n){let t=n.indexOf(e.name);-1!==t&&n.splice(t,1),0===n.length&&delete this.groupToButtons[i]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map(e=>(0,p.isButtonGroup)(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e)}destruct(){this.isDestructed||(this.setStatus(r.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(e,t=!1){super(e,t),(0,n._)(this,"toolbar",(0,f.makeCollection)(this)),(0,n._)(this,"__defaultToolbarContainer",this.c.div("jodit-toolbar__box")),(0,n._)(this,"registeredButtons",new Set),(0,n._)(this,"groupToButtons",{}),(0,n._)(this,"isJodit",!1),(0,n._)(this,"__tooltip",new h.UITooltip(this)),this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}(0,o.__decorate)([(0,a.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),(0,o.__decorate)([s.autobind],g.prototype,"beforeToolbarBuild",null)},35099:function(e,t,i){"use strict";i.d(t,{View:function(){return S}});var n=i(25045),o=i(31635),r=i(16964),s=i(80251),a=i(69364),l=i(81937),u=i(76517),c=i(51676),d=i(24968),h=i(29200),p=i(27795),m=i(1496),f=i(28077),g=i(65946),_=i(8006),v=i(24475),b=i(23183),y=i(81987),w=i(34396),k=i(10081);class S extends s.Component{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,g.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return v.Storage.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(e){return new k.UIMessages(this,e)}get storage(){return v.Storage.makeStorage(!0,this.id)}get asyncStorage(){return _.AsyncStorage.makeStorage(!0,this.id,this.o.asyncStorage)}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get progressbar(){return new w.ProgressBar(this)}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return(0,g.i18n)(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return S.version}static getVersion(){return S.version}initOptions(e){this.options=(0,g.ConfigProto)(e||{},(0,g.ConfigProto)(this.options||{},S.defaultOptions))}initOwners(){var e;this.ownerWindow=null!=(e=this.o.ownerWindow)?e:window}attachEvents(e){if(!e)return;let t=null==e?void 0:e.events;t&&Object.keys(t).forEach(e=>this.e.on(e,t[e]))}getInstance(e,t){let i=(0,g.isFunction)(e)?e.prototype.className():e,n=this.e.fire((0,g.camelCase)("getInstance_"+i),t);if(n)return n;let o=(0,g.isFunction)(e)?e:f.modules[i],s=this.__modulesInstances;if(!(0,g.isFunction)(o))throw(0,g.error)("Need real module name");if(!s.has(i)){let e=o.prototype instanceof r.ViewComponent?new o(this,t):new o(t);this.components.add(e),s.set(i,e)}return s.get(i)}addDisclaimer(e){p.Dom.append(this.container,e)}beforeDestruct(){this.e.fire(a.STATUSES.beforeDestruct,this),this.components.forEach(e=>{(0,g.isDestructable)(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}destruct(){var e,t,i,n;this.isDestructed||(null==(e=(0,c.cached)(this,"progressbar"))||e.destruct(),null==(t=(0,c.cached)(this,"message"))||t.destruct(),null==(i=(0,c.cached)(this,"asyncStorage"))||i.close(),this.events&&(this.events.destruct(),this.events=void 0),null==(n=(0,c.cached)(this,"buffer"))||n.clear(),p.Dom.safeRemove(this.container),super.destruct())}constructor(e,t=!1){var i;super(),(0,n._)(this,"isJodit",void 0),(0,n._)(this,"isView",void 0),(0,n._)(this,"parent",void 0),(0,n._)(this,"mods",void 0),(0,n._)(this,"id",void 0),(0,n._)(this,"components",void 0),(0,n._)(this,"events",void 0),(0,n._)(this,"create",void 0),(0,n._)(this,"__container",void 0),(0,n._)(this,"OPTIONS",void 0),(0,n._)(this,"__options",void 0),(0,n._)(this,"__isFullSize",void 0),(0,n._)(this,"__whoLocked",void 0),(0,n._)(this,"isLockedNotBy",void 0),(0,n._)(this,"__modulesInstances",void 0),this.isJodit=t,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=S.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=new Date().getTime().toString(),this.initOptions(e),this.initOwners(),this.events=null!=(i=null==e?void 0:e.eventEmmiter)?i:new m.EventEmitter(this.od),this.create=new u.Create(this.od),this.__container=this.c.div(`jodit ${this.componentName}`)}}(0,n._)(S,"ES",l.ES),(0,n._)(S,"version",l.APP_VERSION),(0,n._)(S,"esNext",l.IS_ES_NEXT),(0,n._)(S,"esModern",l.IS_ES_MODERN),(0,n._)(S,"defaultOptions",void 0),(0,o.__decorate)([c.cache],S.prototype,"buffer",null),(0,o.__decorate)([c.cache],S.prototype,"message",null),(0,o.__decorate)([c.cache],S.prototype,"storage",null),(0,o.__decorate)([c.cache],S.prototype,"asyncStorage",null),(0,o.__decorate)([c.cache],S.prototype,"c",null),(0,o.__decorate)([c.cache],S.prototype,"e",null),(0,o.__decorate)([c.cache],S.prototype,"progressbar",null),(0,o.__decorate)([(0,h.hook)(a.STATUSES.beforeDestruct)],S.prototype,"beforeDestruct",null),(S=(0,o.__decorate)([(0,d.derive)(y.Mods,b.Elms)],S)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},73302:function(e,t,i){"use strict";i.d(t,{Jodit:function(){return Jodit}});var n=i(25045),o=i(41411),r=i(31635),s=i(81937),a=i(84839),l=i(28077),u=i(65946),c=i(80991),d=i(73714),h=i(80512),p=i(5266),m=i(60936);let f="data-jodit-default-style-display",g="data-jodit-default-classes",_={contenteditable:!1};class Jodit extends m.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{l.eventEmitter.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";let e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,u.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:p.Config.defaultOptions.defaultTimeout}static atom(e){return(0,u.markAsAtomic)(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&(0,u.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return p.Config.defaultOptions}static configure(e){(0,u.ConfigMerge)(Jodit.defaultOptions,e)}get createInside(){return new m.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let e=this,t=(0,u.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((i,n)=>{let o=t.baseurl+i;t.isImages&&t.isImages[n]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){let e=this.e.fire("beforeGetNativeEditorValue");return(0,u.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){let t={value:e};!this.e.fire("beforeSetNativeEditorValue",t)&&this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",t)))return i;i=this.getNativeEditorValue().replace(s.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let n={value:i};return this.e.fire("afterGetValueFromEditor",n,t),n.value}setEditorValue(e){let t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,u.isString)(t)&&(e=t),!this.editor){void 0!==e&&this.__setElementValue(e);return}if(!(0,u.isString)(e)&&!(0,u.isVoid)(e))throw(0,u.error)("value must be string");(0,u.isVoid)(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),n=this.getEditorValue();if(!this.__isSilentChange&&i!==n&&this.__callChangeCount<s.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(n),this.__callChangeCount+=1,s.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",n,i),this.e.fire(this.history,"change",n,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return this.element===this.container&&void 0!==this.__inlineElementValue?this.__inlineElementValue:void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!(0,u.isString)(e))throw(0,u.error)("value must be string");if(this.element===this.container){this.__inlineElementValue=e;return}if(e!==this.getElementValue()){let t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,u.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,i){let n=e.toLowerCase(),o=this.commands.get(n);if(void 0===o&&(o=[],this.commands.set(n,o)),o.push(t),!(0,u.isFunction)(t)){let o=this.o.commandToHotkeys[n]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,n,null==i?void 0:i.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){let n=(0,u.asArray)(e).map(u.normalizeKeyAliases).map(e=>e+".hotkey").join(" ");this.e.off(n).on(n,(e,n)=>(n&&(n.shouldStop=null==i||i),this.execCommand(t)))}execCommand(e,t,i,...n){let o;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){if(e=e.toLowerCase(),!1!==(o=this.e.fire(`beforeCommand${(0,u.ucfirst)(e)}`,t,i,...n))&&(o=this.e.fire("beforeCommand",e,t,i,...n)),!1!==o&&(o=this.__execCustomCommands(e,t,i,...n)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,i)}catch(e){if(!s.IS_PROD)throw e}}return this.e.fire("afterCommand",e,t,i),this.__imdSynchronizeValues(),o}}nativeExecCommand(e,t,i){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,i,...n){e=e.toLowerCase();let o=this.commands.get(e);if(void 0!==o){let r;return o.forEach(o=>{let s=((0,u.isFunction)(o)?o:o.exec).call(this,e,t,i,...n);void 0!==s&&(r=s)}),r}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.container.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.container.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===s.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==s.MODE_SPLIT)return this.getMode();let e=this.od.activeElement;return e&&(e===this.iframe||m.Dom.isOrContains(this.editor,e)||m.Dom.isOrContains(this.toolbar.container,e))?s.MODE_WYSIWYG:s.MODE_SOURCE}setMode(e){let t=this.getMode(),i={mode:parseInt(e.toString(),10)},n=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[s.MODE_SOURCE,s.MODE_WYSIWYG,s.MODE_SPLIT].includes(i.mode)?i.mode:s.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(n[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[s.MODE_SOURCE,s.MODE_WYSIWYG,this.o.useSplitMode?s.MODE_SPLIT:9].includes(e+1)?e+=1:e=s.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;let t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&((0,u.attr)(this.editor,"aria-disabled",e),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&(0,u.attr)(this.editor,"contenteditable",null):this.editor&&(0,u.attr)(this.editor,"contenteditable",!0),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==s.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,u.ConfigProto)(e||{},p.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){let i=(0,u.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,u.toArray)(i.attributes).forEach(e=>{let i=e.name,n=e.value;void 0===p.Config.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(n=""===n||"true"===n),/^[0-9]+(\.)?([0-9]+)?$/.test(n.toString())&&(n=Number(n)),this.options[i]=n)});let n=this.c.div("jodit-container");n.classList.add("jodit"),n.classList.add("jodit-container"),n.classList.add(`jodit_theme_${this.o.theme||"default"}`),v(this.o.className,n),this.o.containerStyle&&(0,u.css)(n,this.o.containerStyle);let{styleValues:o}=this.o;Object.keys(o).forEach(e=>{let t=(0,u.kebabCase)(e);n.style.setProperty(`--jd-${t}`,o[e])}),(0,u.attr)(n,"contenteditable",!1);let r=null;if(this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(n=i,(0,u.attr)(i,g,i.className.toString()),r=n.innerHTML,m.Dom.detach(n)),n.classList.add("jodit_inline"),n.classList.add("jodit-container")),i!==n){let e=(0,c.cssInline)(i,"display");e&&(0,u.attr)(i,f,e),(0,u.css)(i,"display","none")}let s="workplace-slot",a=this.c.div(this.getFullElName(s,"above"),_);(0,u.attr)(a,"data-jodit-above-toolbar",""),m.Dom.appendChildFirst(n,a);let l=this.c.div(this.getFullElName(s,"top"),_);m.Dom.append(n,l);let d=this.c.div(this.getFullElName(s,"center"),_),h=this.c.div("jodit-workplace",_),b=this.c.div(this.getFullElName(s,"left"),_),y=this.c.div(this.getFullElName(s,"right"),_);m.Dom.append(d,b),m.Dom.append(d,h),m.Dom.append(d,y),m.Dom.append(n,d);let w=this.c.div(this.getFullElName(s,"bottom"),_);m.Dom.append(n,w),i.parentNode&&i!==n&&m.Dom.before(i,n),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let k=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});m.Dom.append(h,k);let S={editor:k,element:i,container:n,workplace:h,slots:{above:a,top:l,bottom:w,center:d,left:b,right:y},statusbar:new m.StatusBar(this,n),options:this.isReady?(0,u.ConfigProto)(t||{},p.Config.defaultOptions):this.options,history:new m.History(this),editorWindow:this.ow};this.__elementToPlace.set(k,S),this.setCurrentPlace(S),this.places.push(S),this.setNativeEditorValue(this.getElementValue());let C=this.__initEditor(r),E=this.options,T=()=>{E.enableDragAndDropFileToEditor&&E.uploader&&(E.uploader.url||E.uploader.insertImageAsBase64URI)?this.uploader.bind(this.editor):E.enableDragAndDropFileToEditor||this.e.on(k,"drop",e=>{var t,i;(null==(i=e.dataTransfer)||null==(t=i.files)?void 0:t.length)&&e.preventDefault()}),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,S),this.e.fire("afterAddPlace",S)};return(0,u.callPromise)(C,T)}addDisclaimer(e){m.Dom.append(this.workplace,e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(s.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){let t=this.__createEditor();return(0,u.callPromise)(t,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){let e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch(e){}})}__createEditor(){let e=this.editor,t=this.e.fire("createEditor",this);return(0,u.callPromise)(t,()=>{!this.isInDestruct&&((!1===t||(0,u.isPromise)(t))&&m.Dom.safeRemove(e),v(this.o.editorClassName,this.editor),this.o.style&&(0,u.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:e}=this;if(this.o.direction){let e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";(0,u.css)(this.editor,"direction",e),(0,u.attr)(this.editor,"dir",e),(0,u.css)(this.container,"direction",e),(0,u.attr)(this.container,"dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{let t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(e instanceof this.ew.KeyboardEvent)||!e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}}).on(this.ow,"mouseup",t=>{if(this.o.readonly||this.__isSilentChange)return;let i=t.target;!(i&&(0,u.isNumber)(i.nodeType)&&e.contains(i))&&this.s.isInsideArea&&(this.e.fire("changeSelection"),this.synchronizeValues())})}fetch(e,t){let i=new d.Ajax((0,o._)({url:e},t),this.o.defaultAjaxOptions),n=()=>{this.e.off("beforeDestruct",n),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",n),this.progressbar.show().progress(30);let r=i.send();return r.finally(n).catch(()=>null),r}destruct(){var e,t;if(this.isInDestruct)return;this.setStatus(m.STATUSES.beforeDestruct),this.__elementToPlace.clear(),null==(e=(0,a.cached)(this,"storage"))||e.clear(),null==(t=(0,a.cached)(this,"buffer"))||t.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let i=this.editor?this.getEditorValue():"";this.places.forEach(({container:e,workplace:t,statusbar:n,element:o,iframe:r,editor:s,history:a})=>{if(o){if(o!==e)if(o.hasAttribute(f)){let e=(0,u.attr)(o,f);e&&((0,u.css)(o,"display",e),(0,u.attr)(o,f,null))}else(0,u.css)(o,"display","");else o.hasAttribute(g)&&(o.className=(0,u.attr)(o,g)||"",(0,u.attr)(o,g,null));o.hasAttribute("style")&&!(0,u.attr)(o,"style")&&(0,u.attr)(o,"style",null),n.destruct(),this.e.off(e),this.e.off(o),this.e.off(s),m.Dom.safeRemove(t),m.Dom.safeRemove(s),e!==o&&m.Dom.safeRemove(e),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),m.Dom.safeRemove(r),e===o&&(o.innerHTML=i),a.destruct()}}),this.places.length=0,this.currentPlace={},delete l.instances[this.id],super.destruct()}constructor(e,t){super(t,!0),(0,n._)(this,"isJodit",!0),(0,n._)(this,"commands",new Map),(0,n._)(this,"__selectionLocked",null),(0,n._)(this,"__wasReadOnly",!1),(0,n._)(this,"editorIsActive",!1),(0,n._)(this,"selection",void 0),(0,n._)(this,"__mode",s.MODE_WYSIWYG),(0,n._)(this,"__callChangeCount",0),(0,n._)(this,"__inlineElementValue",void 0),(0,n._)(this,"__isSilentChange",!1),(0,n._)(this,"currentPlace",{options:this.__options,container:this.__container}),(0,n._)(this,"places",[]),(0,n._)(this,"__elementToPlace",new Map);try{let t=(0,u.resolveElement)(e,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){if(!s.IS_PROD)throw e;throw this.destruct(),e}this.setStatus(m.STATUSES.beforeInit),this.id=(0,u.attr)((0,u.resolveElement)(e,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),l.instances[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new m.Selection(this);let i=this.beforeInitHook();(0,u.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),l.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(e,t);l.instances[this.id]=this;let n=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,u.callPromise)(this.afterInitHook()),this.setStatus(m.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,u.callPromise)(i,n)})}}function v(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}(0,n._)(Jodit,"fatMode",s.FAT_MODE),(0,n._)(Jodit,"plugins",l.pluginSystem),(0,n._)(Jodit,"modules",l.modules),(0,n._)(Jodit,"ns",l.modules),(0,n._)(Jodit,"decorators",{}),(0,n._)(Jodit,"constants",s),(0,n._)(Jodit,"instances",l.instances),(0,n._)(Jodit,"lang",s.lang),(0,n._)(Jodit,"core",{Plugin:m.Plugin}),(0,r.__decorate)([a.cache],Jodit.prototype,"createInside",null),(0,r.__decorate)([a.cache],Jodit.prototype,"message",null),(0,r.__decorate)([a.cache],Jodit.prototype,"s",null),(0,r.__decorate)([a.cache],Jodit.prototype,"uploader",null),(0,r.__decorate)([a.cache],Jodit.prototype,"filebrowser",null),(0,r.__decorate)([(0,a.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.__decorate)([(0,a.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.__decorate)([a.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,r.__decorate)([(0,a.derive)(h.Dlgs)],Jodit)},89317:function(e,t,i){"use strict";var n=i(17312),o=i(57741),r=i(23717),s=i(56014),a=i(95461),l=i(63837),u=i(39386),c=i(52735),d=i(62327),h=i(25090),p=i(53113),m=i(81321),f=i(4679),g=i(31927),_=i(21195),v=i(53414),b=i(11012),y=i(87061),w=i(3268),k=i(85325),S=i(97834),C=i(86433),E=i(28359),T=i(33872),I=i(39579),D=i(68368),x=i(57456),j=i(25182),z=i(44906);let L={};L={ar:o,az:r,cs_cz:s,de:a,en:l,es:u,fa:c,fi:d,fr:h,he:p,hu:m,id:f,it:g,ja:_,ko:b,mn:y,nl:w,no:k,pl:S,pt_br:C,ru:E,sk:T,sv:I,tr:D,ua:x,zh_cn:j,zh_tw:z};let A=e=>e?e.default||e:{},P={};(0,n.isArray)(A(v))&&A(v).forEach((e,t)=>{P[t]=e}),Object.keys(L).forEach(e=>{let t=A(L[e]);(0,n.isArray)(t)?(L[e]={},t.forEach((t,i)=>{L[e][P[i]]=t})):L[e]=t}),t.default=L},67399:function(e,t,i){"use strict";i.d(t,{ContextMenu:function(){return l}});var n=i(31635),o=i(91672),r=i(17312),s=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(e,t,i){let n=this;n.clear(),(0,r.isArray)(i)&&(i.forEach(e=>{if(!e)return;let t=(0,s.Button)(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction(t=>{var i;return null==(i=e.exec)||i.call(n,t),n.clear(),n.close(),!1}),this.append(t)}),this.open(()=>({left:e,top:t,width:0,height:0}),!0))}}l=(0,n.__decorate)([o.component],l)},91535:function(e,t,i){"use strict";i.d(t,{Alert:function(){return l}});var n=i(23211),o=i(78982),r=i(91565),s=i(53681),a=i(76841);function l(e,t,i,u="jodit-dialog_alert"){(0,r.isFunction)(t)&&(i=t,t=void 0);let c=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=c.c.div(u),h=(0,s.Button)(c,"ok","Ok");return(0,o.asArray)(e).forEach(e=>{n.Dom.append(d,n.Dom.isNode(e)?e:c.c.fromHTML(e))}),h.onAction(()=>{i&&(0,r.isFunction)(i)&&!1===i(c)||c.close()}),c.setFooter([h]),c.open(d,t||"&nbsp;",!0,!0),h.focus(),c}},88329:function(e,t,i){"use strict";i.d(t,{Confirm:function(){return a}});var n=i(23211),o=i(91565),r=i(53681),s=i(76841);function a(e,t,i){let a=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),l=a.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),u=a.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),n.Dom.append(u,a.c.fromHTML(e)),n.Dom.append(l,u);let c=e=>()=>{i&&!1===i(e)||a.close()},d=(0,r.Button)(a,"cancel","Cancel"),h=(0,r.Button)(a,"ok","Yes");return d.onAction(c(!1)),h.onAction(c(!0)),a.e.on(l,"submit",()=>(c(!0)(),!1)),a.setFooter([h,d]),a.open(l,t||"&nbsp;",!0,!0),h.focus(),a}},76841:function(e,t,i){"use strict";i.d(t,{Dialog:function(){return w}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(16964),l=i(81937),u=i(84839),c=i(23211),d=i(28077),h=i(45664),p=i(28686),m=i(22852),f=i(93640),g=i(28712),_=i(4099),v=i(35099),b=i(2222),y=i(5266);y.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},y.Config.prototype.controls.dialog={close:{icon:"cancel",exec:e=>{e.close()}}};class w extends b.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:e,shadowRoot:t}=this.o;return e||t||this.od.body}setElements(e,t){let i=[];(0,h.asArray)(t).forEach(t=>{let n;if((0,p.isArray)(t)){let n=this.c.div(this.getFullElName("column"));return i.push(n),c.Dom.append(e,n),this.setElements(n,t)}n=(0,p.isString)(t)?this.c.fromHTML(t):(0,p.hasContainer)(t)?t.container:t,i.push(n),n.parentNode!==e&&c.Dom.append(e,n)}),(0,h.toArray)(e.childNodes).forEach(e=>{-1===i.indexOf(e)&&c.Dom.safeRemove(e)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(e){let t=e.target;!(!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=(0,f.css)(this.dialog,"left"),this.startPoint.y=(0,f.css)(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(Math.max(this.startPoint.w+e.clientX-this.startX,this.minSize.w),Math.max(this.startPoint.h+e.clientY-this.startY,this.minSize.h)),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}__onEsc(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===l.KEY_ESC&&!0!==this.getMod("static")){let t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}__onResizerMouseDown(e){var t,i,n;this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight;let o=this.getElm("header"),r=this.getElm("footer"),s=this.getElm("content"),a=s&&parseFloat(this.ow.getComputedStyle(s).minHeight)||0;this.minSize.w=(0,p.isNumber)(this.o.minWidth)?this.o.minWidth:Math.max(100,null!=(t=null==r?void 0:r.scrollWidth)?t:0),this.minSize.h=(0,p.isNumber)(this.o.minHeight)?this.o.minHeight:(null!=(i=null==o?void 0:o.offsetHeight)?i:0)+(null!=(n=null==r?void 0:r.offsetHeight)?n:0)+a+this.resizer.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),(0,f.css)(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){let i=this.ow.innerWidth,n=this.ow.innerHeight,o=i/2-this.dialog.offsetWidth/2,r=n/2-this.dialog.offsetHeight/2;return o<0&&(o=0),r<0&&(r=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-r)>100),(0,f.css)(this.dialog,{left:(e||o)+"px",top:(t||r)+"px"}),this}setHeader(e){if(this.setElements(this.dialogbox_header,e),(0,p.isString)(e)){let t=(0,m.stripTags)(e,this.od).trim();(0,f.attr)(this.container,"aria-label",t||null)}return this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",!!e),this}__openedSiblings(){let e=[];return w.__opened.forEach(t=>{t.destination===this.destination&&e.push(t)}),e}getZIndex(){return parseInt((0,f.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e=0,t=this;return this.__openedSiblings().forEach(i=>{let n=i.getZIndex();n>e&&(t=i,e=n)}),t}setMaxZIndex(){if(this.getMod("static"))return;let e=0x1312d04;this.__openedSiblings().forEach(t=>{e=Math.max(t.getZIndex(),e)}),(0,f.css)(this.container,"zIndex",(e+1).toString())}toggleFullSize(e){(0,p.isVoid)(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),super.toggleFullSize(e)}open(e,t,i,n){if(d.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,p.isBoolean)(e)&&(i=e),(0,p.isBoolean)(t)&&(n=t),this.destroyAfterClose=!0===i;let o=(0,p.isBoolean)(e)?void 0:e,r=(0,p.isBoolean)(t)?void 0:t;return void 0!==r&&this.setHeader(r),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,w.__opened.add(this),this.setModal(n),c.Dom.append(this.destination,this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):(0,f.css)(this.container,"zIndex",null),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=!!e,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e}=this;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,w.__opened.delete(this),this.isFullSize&&this.toggleFullSize(!1),c.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),this.isInDestruct||e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(a.STATUSES.beforeDestruct),this.isOpened&&this.close(),w.__opened.delete(this),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(e={}){super(e),(0,n._)(this,"resizer",void 0),(0,n._)(this,"offsetX",void 0),(0,n._)(this,"offsetY",void 0),(0,n._)(this,"destroyAfterClose",!1),(0,n._)(this,"moved",!1),(0,n._)(this,"resizable",!1),(0,n._)(this,"draggable",!1),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"startPoint",{x:0,y:0,w:0,h:0}),(0,n._)(this,"lockSelect",()=>{this.setMod("moved",!0)}),(0,n._)(this,"unlockSelect",()=>{this.setMod("moved",!1)}),(0,n._)(this,"__onResize",()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()}),(0,n._)(this,"minSize",{w:0,h:0}),(0,n._)(this,"dialog",void 0),(0,n._)(this,"workplace",void 0),(0,n._)(this,"dialogbox_header",void 0),(0,n._)(this,"dialogbox_content",void 0),(0,n._)(this,"dialogbox_footer",void 0),(0,n._)(this,"dialogbox_toolbar",void 0),(0,n._)(this,"isModal",!1),(0,n._)(this,"isOpened",!1),this.options=(0,f.ConfigProto)(e,(0,f.ConfigProto)(y.Config.prototype.dialog,w.defaultOptions)),this.attachEvents(this.options),c.Dom.safeRemove(this.container);let t=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
20
21
  <div class="${t("overlay")}"></div>
21
22
  <div class="${this.getFullElName("panel")}">
22
23
  <div class="${t("header")}">
@@ -25,9 +26,9 @@
25
26
  </div>
26
27
  <div class="${t("content")}"></div>
27
28
  <div class="${t("footer")}"></div>
28
- <div class="${t("resizer")}">${g.Icon.get("resize_handler")}</div>
29
+ <div class="${t("resizer")}">${_.Icon.get("resize_handler")}</div>
29
30
  </div>
30
- </div>`),"rtl"===this.options.direction&&((0,m.css)(this.container,"direction","rtl"),(0,m.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,m.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,m.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,f.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,f.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,f.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,f.assert)(null!=s,"Content element does not exist");let a=this.getElm("footer");(0,f.assert)(null!=a,"Footer element does not exist");let l=this.getElm("header-toolbar");(0,f.assert)(null!=l,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=a,this.dialogbox_toolbar=l,(0,m.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let u=this.getElm("header");u&&this.e.on(u,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let h=d.pluginSystem.get("fullsize");if((0,p.isFunction)(h)&&h(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,f.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}}(0,n._)(y,"__opened",new Set),(0,n._)(y,"defaultOptions",(0,r._)((0,o._)({},_.View.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0})),(0,s.__decorate)([u.autobind],y.prototype,"__onMouseUp",null),(0,s.__decorate)([u.autobind],y.prototype,"__onHeaderMouseDown",null),(0,s.__decorate)([u.autobind],y.prototype,"__onMouseMove",null),(0,s.__decorate)([u.autobind],y.prototype,"__onEsc",null),(0,s.__decorate)([u.autobind],y.prototype,"__onResizerMouseDown",null),(0,s.__decorate)([u.autobind],y.prototype,"close",null),(0,s.__decorate)([(0,u.hook)("ready")],y.prototype,"buildToolbar",null),y=(0,s.__decorate)([u.component],y)},37333:function(e,t,i){"use strict";i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(91535),o=i(88329),r=i(76841),s=i(74103)},74103:function(e,t,i){"use strict";i.d(t,{Prompt:function(){return l}});var n=i(23211),o=i(91565),r=i(7909),s=i(53681),a=i(76841);function l(e,t,i,l,u){let c=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=(0,s.Button)(c,"cancel","Cancel"),h=(0,s.Button)(c,"ok","Ok"),p=c.c.element("form",{class:"jodit-dialog_prompt"}),m=c.c.element("input",{autofocus:!0,class:"jodit-input"}),f=c.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(m,"placeholder",l),n.Dom.append(f,c.c.text(e)),n.Dom.append(p,f),n.Dom.append(p,m),d.onAction(c.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(m.value)||c.close()};return h.onAction(g),c.e.on(p,"submit",()=>(g(),!1)),c.setFooter([h,d]),c.open(p,t||"&nbsp;",!0,!0),m.focus(),void 0!==u&&u.length&&(m.value=u,m.select()),c}},61334:function(e,t,i){"use strict";var n=i(49376),o=i(27795),r=i(7909),s=i(33201),a=i(29434),l=i(31125),u=i(66206),c=i(18272),d=i(1305),h=i(53202),p=i(43271);let m="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${m}__navigation ${m}__navigation_arrow_${e}">`+a.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let a=(0,u.getItem)(i.target,e.container);if(!a)return;let c=a,g=e.options,_=e=>(0,r.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,u.elementToItem)(a,(0,l.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==_("data-is-file")&&g.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>p.openImageEditor.call(e,_("href"),_("data-name"),_("data-path"),_("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:()=>{e.e.fire("fileRename.filebrowser",_("data-name"),_("data-path"),_("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:()=>(0,n._)(function*(){try{yield(0,d.deleteFile)(e,_("data-name"),_("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,h.loadTree)(e).catch(e.status)})()},!!g.preview&&{icon:"eye",title:"Preview",exec:()=>{let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(m,'<div class="jodit-icon_loader"></div>'),n=e.c.div(m+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),u=s=>{let u=e.c.element("img");(0,r.attr)(u,"src",s);let d=()=>{var r;e.isInDestruct||(e.e.off(u,"load"),o.Dom.detach(i),g.showPreviewNavigation&&(o.Dom.prevWithClass(c,e.files.getFullElName("item"))&&o.Dom.append(i,l),o.Dom.nextWithClass(c,e.files.getFullElName("item"))&&o.Dom.append(i,a)),o.Dom.append(i,n),o.Dom.append(n,u),t.setPosition(),null==e||null==(r=e.events)||r.fire("previewOpenedAndLoaded"))};e.e.on(u,"load",d),u.complete&&d()};e.e.on([a,l],"click",function(){if(!(c=this===a?o.Dom.nextWithClass(c,e.files.getFullElName("item")):o.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,s.error)("Need element");o.Dom.detach(i),o.Dom.detach(n),i.innerHTML='<div class="jodit-icon_loader"></div>',u(_("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(m+"__dialog"),t.setContent(i),t.setPosition(),t.open(),u(_("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"download",title:"Download",exec:()=>{let t=_("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},31125:function(e,t,i){"use strict";let n=new WeakMap;i.d(t,["elementsMap",0,e=>{let t=n.get(e);return t||(t={},n.set(e,t)),t}])},58664:function(e,t,i){"use strict";i.d(t,{FileBrowserItem:function(){return r}});var n=i(25045),o=i(65946);class r{static create(e){return e instanceof r?e:new r(e)}get path(){return(0,o.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:n,file:r}=this.data,s=n||r;return t&&s?s:(0,o.normalizeUrl)(i.baseurl,i.path,s||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:n}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,o.normalizeUrl)(n.baseurl,n.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){(0,n._)(this,"data",void 0),(0,n._)(this,"source",void 0),(0,n._)(this,"sourceName",void 0),(0,n._)(this,"type",void 0),this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},66206:function(e,t,i){"use strict";var n=i(23211);i.d(t,["elementToItem",0,(e,t)=>{let{key:i}=e.dataset,{item:n}=t[i||""];return n},"getItem",0,(e,t,i="a")=>n.Dom.closest(e,e=>n.Dom.isTag(e,i),t)])},68502:function(e,t,i){"use strict";var n=i(41411),o=i(15366);i(37102);var r=i(23211),s=i(28686),a=i(37427),l=i(75587),u=i(5266);u.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter(e,t){return(t=t.toLowerCase(),(0,s.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,s.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,s.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){let[n,o]=i.toLowerCase().split("-"),r="asc"===o,l=(e,t)=>t>e?r?-1:1:e>t?r?1:-1:0;if((0,s.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[n]||"name"===n)return(0,s.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,s.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(e.changed).getTime(),n=new Date(t.changed).getTime();return r?i-n:n-i}case"size":{let i=(0,a.humanSizeToBytes)(e.size),n=(0,a.humanSizeToBytes)(t.size);return r?i-n:n-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,s.isArray)(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let n=this.options,o=this.files.getFullElName("item"),r=n.showFileName,s=n.showFileSize&&e.size,a=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let u=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
31
+ </div>`),"rtl"===this.options.direction&&((0,f.css)(this.container,"direction","rtl"),(0,f.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,f.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,f.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,g.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,g.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,g.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,g.assert)(null!=s,"Content element does not exist");let a=this.getElm("footer");(0,g.assert)(null!=a,"Footer element does not exist");let l=this.getElm("header-toolbar");(0,g.assert)(null!=l,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=a,this.dialogbox_toolbar=l,(0,f.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let u=this.getElm("header");u&&this.e.on(u,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let h=d.pluginSystem.get("fullsize");if((0,p.isFunction)(h)&&h(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,g.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}}(0,n._)(w,"__opened",new Set),(0,n._)(w,"defaultOptions",(0,r._)((0,o._)({},v.View.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0})),(0,s.__decorate)([u.autobind],w.prototype,"__onMouseUp",null),(0,s.__decorate)([u.autobind],w.prototype,"__onHeaderMouseDown",null),(0,s.__decorate)([u.autobind],w.prototype,"__onMouseMove",null),(0,s.__decorate)([u.autobind],w.prototype,"__onEsc",null),(0,s.__decorate)([u.autobind],w.prototype,"__onResizerMouseDown",null),(0,s.__decorate)([u.autobind],w.prototype,"close",null),(0,s.__decorate)([(0,u.hook)("ready")],w.prototype,"buildToolbar",null),w=(0,s.__decorate)([u.component],w)},37333:function(e,t,i){"use strict";i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(91535),o=i(88329),r=i(76841),s=i(74103)},74103:function(e,t,i){"use strict";i.d(t,{Prompt:function(){return l}});var n=i(23211),o=i(91565),r=i(7909),s=i(53681),a=i(76841);function l(e,t,i,l,u){let c=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=(0,s.Button)(c,"cancel","Cancel"),h=(0,s.Button)(c,"ok","Ok"),p=c.c.element("form",{class:"jodit-dialog_prompt"}),m=c.c.element("input",{autofocus:!0,class:"jodit-input"}),f=c.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(m,"placeholder",l),n.Dom.append(f,c.c.text(e)),n.Dom.append(p,f),n.Dom.append(p,m),d.onAction(c.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(m.value)||c.close()};return h.onAction(g),c.e.on(p,"submit",()=>(g(),!1)),c.setFooter([h,d]),c.open(p,t||"&nbsp;",!0,!0),m.focus(),void 0!==u&&u.length&&(m.value=u,m.select()),c}},61334:function(e,t,i){"use strict";var n=i(49376),o=i(27795),r=i(7909),s=i(33201),a=i(29434),l=i(31125),u=i(66206),c=i(18272),d=i(1305),h=i(53202),p=i(43271);let m="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${m}__navigation ${m}__navigation_arrow_${e}">`+a.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let a=(0,u.getItem)(i.target,e.container);if(!a)return;let c=a,g=e.options,_=e=>(0,r.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,u.elementToItem)(a,(0,l.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==_("data-is-file")&&g.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>p.openImageEditor.call(e,_("href"),_("data-name"),_("data-path"),_("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:()=>{e.e.fire("fileRename.filebrowser",_("data-name"),_("data-path"),_("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:()=>(0,n._)(function*(){try{yield(0,d.deleteFile)(e,_("data-name"),_("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,h.loadTree)(e).catch(e.status)})()},!!g.preview&&{icon:"eye",title:"Preview",exec:()=>{let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(m,'<div class="jodit-icon_loader"></div>'),n=e.c.div(m+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),u=s=>{let u=e.c.element("img");(0,r.attr)(u,"src",s);let d=()=>{var r;e.isInDestruct||(e.e.off(u,"load"),o.Dom.detach(i),g.showPreviewNavigation&&(o.Dom.prevWithClass(c,e.files.getFullElName("item"))&&o.Dom.append(i,l),o.Dom.nextWithClass(c,e.files.getFullElName("item"))&&o.Dom.append(i,a)),o.Dom.append(i,n),o.Dom.append(n,u),t.setPosition(),null==e||null==(r=e.events)||r.fire("previewOpenedAndLoaded"))};e.e.on(u,"load",d),u.complete&&d()};e.e.on([a,l],"click",function(){if(!(c=this===a?o.Dom.nextWithClass(c,e.files.getFullElName("item")):o.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,s.error)("Need element");o.Dom.detach(i),o.Dom.detach(n),i.innerHTML='<div class="jodit-icon_loader"></div>',u(_("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(m+"__dialog"),t.setContent(i),t.setPosition(),t.open(),u(_("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"download",title:"Download",exec:()=>{let t=_("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},31125:function(e,t,i){"use strict";let n=new WeakMap;i.d(t,["elementsMap",0,e=>{let t=n.get(e);return t||(t={},n.set(e,t)),t}])},58664:function(e,t,i){"use strict";i.d(t,{FileBrowserItem:function(){return r}});var n=i(25045),o=i(65946);class r{static create(e){return e instanceof r?e:new r(e)}get path(){return(0,o.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:n,file:r}=this.data,s=n||r;return t&&s?s:(0,o.normalizeUrl)(i.baseurl,i.path,s||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:n}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,o.normalizeUrl)(n.baseurl,n.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){(0,n._)(this,"data",void 0),(0,n._)(this,"source",void 0),(0,n._)(this,"sourceName",void 0),(0,n._)(this,"type",void 0),this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},66206:function(e,t,i){"use strict";var n=i(23211);i.d(t,["elementToItem",0,(e,t)=>{let{key:i}=e.dataset,{item:n}=t[i||""];return n},"getItem",0,(e,t,i="a")=>n.Dom.closest(e,e=>n.Dom.isTag(e,i),t)])},68502:function(e,t,i){"use strict";var n=i(41411),o=i(15366);i(37102);var r=i(23211),s=i(28686),a=i(37427),l=i(75587),u=i(5266);u.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter(e,t){return(t=t.toLowerCase(),(0,s.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,s.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,s.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){let[n,o]=i.toLowerCase().split("-"),r="asc"===o,l=(e,t)=>t>e?r?-1:1:e>t?r?1:-1:0;if((0,s.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[n]||"name"===n)return(0,s.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,s.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(e.changed).getTime(),n=new Date(t.changed).getTime();return r?i-n:n-i}case"size":{let i=(0,a.humanSizeToBytes)(e.size),n=(0,a.humanSizeToBytes)(t.size);return r?i-n:n-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,s.isArray)(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let n=this.options,o=this.files.getFullElName("item"),r=n.showFileName,s=n.showFileSize&&e.size,a=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let u=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
31
32
  data-jodit-file-browser-item="true"
32
33
  data-is-file="${+!e.isImage}"
33
34
  draggable="true"
@@ -105,7 +106,7 @@
105
106
  </div>`:""}
106
107
  </div>
107
108
  </div>
108
- </form>`)}])},60936:function(e,t,i){"use strict";i.r(t),i.d(t,{Ajax:function(){return p.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return x.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return u.Create},Dialog:function(){return s.Dialog},Dom:function(){return c.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return _.History},Icon:function(){return m.Icon},ImageEditor:function(){return b.ImageEditor},IndexedDBProvider:function(){return x.IndexedDBProvider},LazyWalker:function(){return c.LazyWalker},LocalStorageProvider:function(){return x.LocalStorageProvider},MemoryStorageProvider:function(){return x.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return I.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return p.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return x.Storage},StorageKey:function(){return x.StorageKey},Table:function(){return k.Table},ToolbarButton:function(){return S.ToolbarButton},ToolbarCollection:function(){return C.ToolbarCollection},ToolbarContent:function(){return S.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return S.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return T.Uploader},View:function(){return f.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return x.canUseIndexedDB},canUsePersistentStorage:function(){return x.canUsePersistentStorage},clearUseIndexedDBCache:function(){return x.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(16964),o=i(65946),r=i(67399),s=i(37333),a=i(17610),l=i(91231),u=i(79821),c=i(27795),d=i(1496),h=i(91206),p=i(73714),m=i(4099),f=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),k=i(98803),S=i(39709),C=i(42573),E=i(6209),T=i(94925),I=i(85305),D=i(59841),x=i(25222)},61466:function(e,t,i){"use strict";i.d(t,{UIMessage:function(){return s}});var n=i(31635),o=i(91672),r=i(4099);class s extends r.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}}s=(0,n.__decorate)([o.component],s)},10081:function(e,t,i){"use strict";i.d(t,{UIMessages:function(){return c}});var n=i(25045),o=i(31635),r=i(91672),s=i(23211),a=i(80991),l=i(63468),u=i(61466);class c extends l.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);s.Dom.append(this.__box,this.container);let o=new u.UIMessage(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(n);let r=this.__getRemoveCallback(o,n);this.j.e.on(o.container,"pointerdown",r),this.async.setTimeout(r,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,a.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),(0,n._)(this,"__box",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__messages",void 0),this.__box=t,this.options=i,this.__messages=new Set}}c=(0,o.__decorate)([r.component],c)},29433:function(e,t,i){"use strict";i.d(t,{StatusBar:function(){return c}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(23211),l=i(23183),u=i(81987);class c extends r.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(e=null==(t=this.container)?void 0:t.offsetHeight)?e:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){let i=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&i.classList.add(this.getFullElName("item-right")),a.Dom.append(i,e),this.container&&a.Dom.append(this.container,i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),a.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),(0,n._)(this,"target",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"mods",void 0),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),a.Dom.append(t,this.container),this.hide()}}c=(0,o.__decorate)([s.component,(0,s.derive)(u.Mods,l.Elms)],c)},98803:function(e,t,i){"use strict";i.d(t,{Table:function(){return p}});var n=i(25045),o=i(31635),r=i(16964),s=i(81937),a=i(84839),l=i(27795),u=i(28077),c=i(65946),d=i(80991);let h=new WeakMap;class p extends r.ViewComponent{className(){return"Table"}__recalculateStyles(){let e=(0,u.getContainer)(this.j,p,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,c.cssPath)(e);i&&t.push(i)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=p.__selectedByTable.get(t)||new Set;i.add(e),p.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=p.__selectedByTable.get(t);i&&(i.delete(e),i.size||p.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=p.__selectedByTable.get(e);return t?(0,c.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return p.__getRowsCount(e)}static __getColumnsCount(e){return p.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return p.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,c.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,c.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return p.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return p.__formalMatrix(e,(e,a,l,u,c)=>{if(t===e)return n=a,o=l,r=u||1,s=c||1,i&&(o+=(u||1)-1,n+=(c||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return p.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){let o;if(t)o=t.cloneNode(!0),l.Dom.each(t,e=>{if(!l.Dom.isCell(e))return;let t=(0,c.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,c.attr)(e,"rowspan",i>1?i:null)}}),l.Dom.each(o,e=>{l.Dom.isCell(e)&&l.Dom.detach(e)});else{let t=p.__getColumnsCount(e);o=n.element("tr");for(let e=0;e<t;e+=1)l.Dom.append(o,n.element("td"))}i&&t&&t.nextSibling?l.Dom.after(t,o):!i&&t?l.Dom.before(t,o):l.Dom.append(l.Dom.first(e,e=>l.Dom.isTag(e,"tbody"))||e,o)}appendRow(e,t,i){return p.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=p.__formalMatrix(e),o=e.rows[t];n[t].forEach((r,s)=>{if(i=!1,t-1>=0&&n[t-1][s]===r)i=!0;else if(n[t+1]&&n[t+1][s]===r){if(r.parentNode===o&&r.parentNode.nextSibling){i=!0;let o=s+1;for(;n[t+1][o]===r;)o+=1;let a=l.Dom.next(r.parentNode,e=>l.Dom.isTag(e,"tr"),e);if(a){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===a){e=o;break}}e?l.Dom.before(e,r):l.Dom.append(a,r)}}}else l.Dom.safeRemove(r);if(i&&(r.parentNode===o||r!==n[t][s-1])){let e=r.rowSpan;(0,c.attr)(r,"rowspan",e-1>1?e-1:null)}}),l.Dom.safeRemove(o)}removeRow(e,t){return p.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=p.__formalMatrix(e);if(!i&&l.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=p.__formalCoordinate(e,t,i),r=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[r]||o===r){let e=this.j.createInside.element("td");i?l.Dom.after(t[o],e):l.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=p.__formalMatrix(e);n.forEach((e,o)=>{let r=e[t];if(i=!1,t-1>=0&&n[o][t-1]===r||t+1<e.length&&n[o][t+1]===r?i=!0:l.Dom.safeRemove(r),i&&(o-1<0||r!==n[o-1][t])){let e=r.colSpan;(0,c.attr)(r,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return p.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=p.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return p.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=p.__formalMatrix(e);p.__removeExtraColspans(i,t),p.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,c.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,c.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,c.attr)(i[e][t],"class")&&(0,c.attr)(i[e][t],"class",null));p.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&p.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i,n;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&p.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return p.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=p.__getSelectedBound(e,p.__getSelectedCellsByTable(e)),o=0,r=null,a=0,u=0,h=0,f=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(p.__formalMatrix(e,(e,s,l,_,v)=>{s>=n[0][0]&&s<=n[1][0]&&l>=n[0][1]&&l<=n[1][1]&&(f.has(e)||(f.add(e),s===n[0][0]&&(0,d.cssInline)(e,"width")&&(o+=e.offsetWidth),""!==(0,c.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),_>1&&(u+=_-1),v>1&&(h+=v-1),r?(p.__mark(e,"remove",1,g),m(t).removeSelection(e)):(r=e,a=l)))}),u=n[1][1]-n[0][1]+1,h=n[1][0]-n[0][0]+1,r&&(u>1&&p.__mark(r,"colspan",u,g),h>1&&p.__mark(r,"rowspan",h,g),o&&(p.__mark(r,"width",(o/e.offsetWidth*100).toFixed(s.ACCURACY)+"%",g),a&&p.__setColumnWidthByDelta(e,a,0,!0,g)),r.innerHTML=i.join("<br/>"),m(t).addSelection(r),f.delete(r),p.__unmark(g),p.__normalizeTable(e),(0,c.toArray)(e.rows).forEach(e=>{e.cells.length||l.Dom.safeRemove(e)})))}mergeSelected(e){return p.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,r,s,a=[];p.__getSelectedCellsByTable(e).forEach(u=>{n=t.createInside.element("td"),l.Dom.append(n,t.createInside.element("br")),o=t.createInside.element("tr"),i=p.__formalCoordinate(e,u),u.rowSpan<2?(p.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==u&&p.__mark(e,"rowspan",e.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(u,"tr",e),o),l.Dom.append(o,n)):(p.__mark(u,"rowspan",u.rowSpan-1,a),p.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+u.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(s=t),i[0]<n&&t===u&&(r=e.rows[n])}),s?l.Dom.after(s,n):l.Dom.prepend(r,n)),u.colSpan>1&&p.__mark(n,"colspan",u.colSpan,a),p.__unmark(a),m(t).removeSelection(u)}),this.__normalizeTable(e)}splitHorizontal(e){return p.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,o,r=[];p.__getSelectedCellsByTable(e).forEach(a=>{i=p.__formalCoordinate(e,a),a.colSpan<2?p.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==a&&p.__mark(e,"colspan",e.colSpan+1,r)}):p.__mark(a,"colspan",a.colSpan-1,r),n=t.createInside.element("td"),l.Dom.append(n,t.createInside.element("br")),a.rowSpan>1&&p.__mark(n,"rowspan",a.rowSpan,r);let u=a.offsetWidth;l.Dom.after(a,n),o=u/e.offsetWidth/2,p.__mark(a,"width",(100*o).toFixed(s.ACCURACY)+"%",r),p.__mark(n,"width",(100*o).toFixed(s.ACCURACY)+"%",r),p.__unmark(r),m(t).removeSelection(a)}),p.__normalizeTable(e)}splitVertical(e){return p.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,o){let r=p.__formalMatrix(e),a=0;for(let n=0;n<r.length;n+=1){let l=r[n][t];if(l.colSpan>1&&r.length>1)continue;let u=(l.offsetWidth+i)/e.offsetWidth*100;p.__mark(l,"width",u.toFixed(s.ACCURACY)+"%",o),a=n;break}for(let e=a+1;e<r.length;e+=1){let i=r[e][t];p.__mark(i,"width",null,o)}n||p.__unmark(o)}setColumnWidthByDelta(e,t,i,n,o){return p.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=h.get(e))?o:{};r[t]=void 0===i?1:i,h.set(e,r)}static __unmark(e){e.forEach(e=>{let t=h.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":l.Dom.safeRemove(e);break;case"rowspan":(0,c.attr)(e,"rowspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,c.attr)(e,"colspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,c.attr)(e,"style")||(0,c.attr)(e,"style",null)):(0,c.css)(e,"width",n.toString())}delete t[i]}),h.delete(e))})}constructor(...e){super(...e),(0,n._)(this,"selected",new Set)}}(0,n._)(p,"__selectedByTable",new WeakMap),(0,o.__decorate)([(0,a.debounce)()],p.prototype,"__recalculateStyles",null);let m=e=>e.getInstance("Table",e.o)},22533:function(e,t,i){"use strict";i.d(t,{ToolbarButton:function(){return j}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(69364),l=i(81937),u=i(49574),c=i(51676),d=i(91672),h=i(68616),p=i(23211),m=i(17312),f=i(91565),g=i(24497),_=i(62101),v=i(85932),b=i(86878),y=i(57821),w=i(28712),k=i(7909),S=i(71125),C=i(59400),E=i(15982),T=i(29434),I=i(51116),D=i(4274);let x=new Set(["input","textarea","select"]);class j extends C.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,k.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,d.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,g.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(t=(i=this.control).isActive)&&!!t.call(i,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(t=(i=this.control).isDisabled)?void 0:t.call(i,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,k.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,f.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,k.attr)(this.button,"tabindex",this.state.tabIndex),(0,k.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this,configurable:!0}),p.Dom.append(t,i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${T.Icon.get("chevron")}</span>`);return p.Dom.append(i,n),t}focus(){var e;null==(e=p.Dom.first(this.container,e=>p.Dom.isTag(e,"button")))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?p.Dom.append(this.container,this.trigger):p.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,k.attr)(this.trigger,"disabled",e),(0,k.attr)(this.button,"disabled",e),(0,k.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,f.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec)}__initIconFromControl(){let{control:e,state:t}=this,{textIcons:i}=this.j.o;if(!0===i||(0,f.isFunction)(i)&&i(e.name)||e.template){t.icon=(0,C.UIButtonState)().icon,t.text=e.text||e.name;return}if(!(0,v.isString)(e.icon)&&null!=e.icon){t.icon={name:e.icon.name||e.name,iconURL:e.icon.iconURL||"",fill:e.icon.fill||"",scale:e.icon.scale};return}if(e.iconURL)t.icon.iconURL=e.iconURL;else{var n;let i=e.icon||e.name;t.icon.name=T.Icon.exists(i)||(null==(n=this.j.o.extraIcons)?void 0:n[i])?i:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();let{control:t}=this;if((0,k.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,f.isFunction)(t.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,y.camelCase)(`before-${t.name}-open-popup`),this.target,t,e)){var i,n,o;let r=null!=(i=null!=(n=null==(o=this.toolbar)?void 0:o.getTarget(this))?n:this.target)?i:null,s=t.popup(this.j,r,this.__closePopup,this);s?e.setContent((0,v.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,b.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,y.camelCase)(`after-${t.name}-open-popup`),e.container)}}onTriggerKeyDown(e){this.state.disabled||(e.key===l.KEY_DOWN?this.onButtonKeyDown(e):[l.KEY_ENTER,l.KEY_SPACE," "].includes(e.key)&&(e.preventDefault(),this.trigger.click()))}onButtonKeyDown(e){var t;e.key!==l.KEY_DOWN||this.state.disabled||!this.state.hasTrigger||e.altKey||e.ctrlKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this.openedPopup||this.trigger.click(),null==(t=this.__popupFocusables()[0])||t.focus())}__onPopupKeyDown(e){if(!this.openedPopup||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(p.Dom.isTag(t,x)&&e.key!==l.KEY_ESC)return;let i=this.__popupFocusables(),n=i.indexOf(t);switch(e.key){case l.KEY_ESC:this.__closePopup();break;case l.KEY_UP:n<=0?this.__closePopup():i[n-1].focus();break;case l.KEY_DOWN:if(!i.length)return;i[(n+1)%i.length].focus();break;default:return}e.preventDefault(),e.stopPropagation()}__popupFocusables(){let e=this.openedPopup;return e?Array.from(e.container.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!!e.offsetParent):[]}__openControlList(e){var t;let i=null!=(t=this.jodit.options.controls)?t:{},n=e=>(0,E.findControlType)(e,i),s=e.list,a=this.openPopup(),l=(0,D.makeCollection)(this.j);a.parentElement=this,l.parentElement=a,l.mode="vertical";let u=(t,i)=>{let s;if((0,v.isString)(i)&&n(i))return(0,o._)({name:i.toString()},n(i));if((0,v.isString)(t)&&n(t))return(0,o._)({name:t.toString()},n(t),"object"==typeof i?i:{});s=t,(0,_.isPlainObject)(s)&&"title"in s&&"value"in s&&(i=t.value,t=t.title);let{childTemplate:a}=e,l={name:t.toString(),template:a&&((e,t,i)=>a(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var s;return null==(s=e.childExec)?void 0:s.call(e,t,i,(0,r._)((0,o._)({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,v.isString)(i)&&(l.text=i),l};l.build((0,m.isArray)(s)?s.map(u):(0,S.keys)(s,!1).map(e=>u(e,s[e])),this.target),a.setContent(l).open(()=>(0,b.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&p.Dom.isNode(e.target)&&(p.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new I.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick).on(this.openedPopup.container,"keydown",this.__onPopupKeyDown),this.openedPopup}__closePopup(){let e=this.openedPopup;if(!e)return;this.openedPopup=null,this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick);let{activeElement:t}=this.od,i=t&&p.Dom.isOrContains(e.container,t);this.state.activated=!1,e.close(),e.destruct(),this.trigger&&(0,k.attr)(this.trigger,"aria-expanded",!1),i&&this.focus()}onClick(e){let{control:t}=this;if((0,f.isFunction)(t.exec)){var i,n,o,r,s,a,l;let u=null!=(i=null!=(n=null==(o=this.toolbar)?void 0:o.getTarget(this))?n:this.target)?i:null,c=t.exec(this.j,u,{control:t,originalEvent:e,button:this});if(!1!==c&&!0!==c&&(null==(s=this.j)||null==(r=s.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=this.j)||null==(a=l.e)||a.fire("closeAllPopups afterExec")),!1!==c)return}return t.list?this.__openControlList(t):(0,f.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,S.call)((0,g.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),(0,n._)(this,"control",void 0),(0,n._)(this,"target",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"trigger",void 0),(0,n._)(this,"openedPopup",void 0),this.control=t,this.target=i,this.state=(0,r._)((0,o._)({},(0,C.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;let s=this.getElm("button");(0,w.assert)(s,"Element button should exists"),this.button=s,Object.defineProperty(s,"component",{value:this,configurable:!0});let l=this.getElm("trigger");(0,w.assert)(l,"Element trigger should exists"),this.trigger=l,l.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(a.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}}(0,s.__decorate)([c.cacheHTML],j.prototype,"createContainer",null),(0,s.__decorate)([(0,h.watch)("state.hasTrigger",{immediately:!1})],j.prototype,"onChangeHasTrigger",null),(0,s.__decorate)([(0,h.watch)("trigger:click")],j.prototype,"onTriggerClick",null),(0,s.__decorate)([(0,h.watch)("trigger:keydown")],j.prototype,"onTriggerKeyDown",null),(0,s.__decorate)([(0,h.watch)("button:keydown")],j.prototype,"onButtonKeyDown",null),(0,s.__decorate)([u.autobind],j.prototype,"__onPopupKeyDown",null),(0,s.__decorate)([u.autobind],j.prototype,"onOutsideClick",null),(0,s.__decorate)([u.autobind],j.prototype,"__closePopup",null),j=(0,s.__decorate)([d.component],j)},5772:function(e,t,i){"use strict";i.d(t,{ToolbarContent:function(){return c}});var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(65946),l=i(59400);let u=new Set(["input","button","select","textarea"]);class c extends l.UIButton{className(){return"ToolbarContent"}update(){var e,t,i;let{control:n}=this,o=n.getContent(this.j,this);((0,a.isString)(o)||o.parentNode!==this.container)&&(s.Dom.detach(this.container),s.Dom.append(this.container,(0,a.isString)(o)?this.j.create.fromHTML(o):o)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),s.Dom.each(this.container,e=>{s.Dom.isTag(e,u)&&(0,a.attr)(e,"disabled",this.state.disabled||null)})}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),(0,n._)(this,"control",void 0),(0,n._)(this,"target",void 0),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,a.attr)(this.container,"role","content")}}c=(0,o.__decorate)([r.component],c)},39709:function(e,t,i){"use strict";i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(22533),o=i(5772),r=i(61764)},61764:function(e,t,i){"use strict";i.d(t,{ToolbarSelect:function(){return l}});var n=i(31635),o=i(84839),r=i(62101),s=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:e,data:t}=this.control;if(e){var i,n,o;let a=this.state.value||(t&&(0,s.isString)(t.currentValue)?t.currentValue:void 0);a||(a=Object.keys(e)[0]);let l=((0,r.isPlainObject)(e)&&e[a.toString()]||a).toString();this.state.text=null!=(i=null==(n=(o=this.control).textTemplate)?void 0:n.call(o,this.jodit,l))?i:l}}}l=(0,n.__decorate)([o.component],l)},42573:function(e,t,i){"use strict";i.d(t,{ToolbarCollection:function(){return f}});var n=i(25045),o=i(31635),r=i(84839),s=i(49574),a=i(91672),l=i(29200),u=i(68616),c=i(7909),d=i(80991),h=i(38027),p=i(97959),m=i(4274);class f extends p.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,m.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,m.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){(0,d.css)(this.container,"direction",e),(0,c.attr)(this.container,"dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,h.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),(0,n._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,o.__decorate)([(0,u.watch)(":afterInit"),s.autobind],f.prototype,"__immediateUpdate",null),(0,o.__decorate)([(0,r.debounce)(e=>e.j.defaultTimeout,!0)],f.prototype,"update",null),(0,o.__decorate)([(0,l.hook)("ready")],f.prototype,"__initEvents",null),f=(0,o.__decorate)([a.component],f)},6209:function(e,t,i){"use strict";i.d(t,{ToolbarEditorCollection:function(){return c}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(27795),l=i(65946),u=i(42573);class c extends u.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?r.MODE_WYSIWYG:e.control.mode;return i!==r.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,a.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,a.Dom.up(t,e=>{if(e&&!a.Dom.isText(e)&&!a.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});a.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),(0,n._)(this,"checkActiveStatus",(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,l.isFunction)(r)?r(this.j,(0,l.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,l.css)(t,o).toString())&&(i+=1),n+=1}),n===i}),this.prependInvisibleInput(this.container)}}c=(0,o.__decorate)([s.component],c)},4274:function(e,t,i){"use strict";i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(91672),o=i(91565),r=i(24497);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){return new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i)}},40013:function(e,t,i){"use strict";var n=i(17312),o=i(24497),r=i(7909),s=i(5266);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):""},processFileName(e,t,i){return[e,t,i]},process(e){return e.data},error(e){this.j.message.error(e.message,4e3)},getDisplayName(e,t){return e+t},defaultHandlerSuccess(e){let t=this.j||this;(0,o.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach((i,n)=>{let[o,s]=e.isImages&&e.isImages[n]?["img","src"]:["a","href"],a=t.createInside.element(o);(0,r.attr)(a,s,e.baseurl+i),"a"===o&&(a.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,i)),"img"===o?t.s.insertImage(a,null,t.o.imageDefaultWidth):t.s.insertNode(a)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},89446:function(e,t,i){"use strict";i.d(t,{buildData:function(){return o}});var n=i(65946);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},23112:function(e,t,i){"use strict";function n(e){var t,i;let[n,...o]=e.split(","),r=o.join(","),s=null!=(t=null==(i=n.split(":")[1])?void 0:i.split(";")[0])?t:"",a=/;base64/i.test(n)?atob(r):decodeURIComponent(r),l=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e+=1)l[e]=a.charCodeAt(e);return new Blob([l.buffer],{type:s})}i.d(t,{dataURItoBlob:function(){return n}})},11981:function(e,t,i){"use strict";i.d(t,{ajaxInstances:function(){return o.ajaxInstances},hasFiles:function(){return s},hasItems:function(){return a},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return o.send},sendFiles:function(){return r.sendFiles}}),i(89446);var n=i(95436),o=i(77911),r=i(46533);function s(e){return!!(e&&e.files&&e.files.length>0)}function a(e){return!!(e&&e.items&&e.items.length>0)}},95436:function(e,t,i){"use strict";i.d(t,{processOldBrowserDrag:function(){return u}});var n=i(81937),o=i(27795),r=i(28077),s=i(65946),a=i(23112),l=i(46533);function u(e,t,i,u,c){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});o.Dom.append((0,r.getContainer)(e.j,e.constructor),t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,u).finally(c)}},e.j.defaultTimeout)}}},46533:function(e,t,i){"use strict";i.d(t,{sendFiles:function(){return r}});var n=i(65946),o=i(77911);function r(e,t,i,r,s){if(!t)return Promise.reject((0,n.error)("Need files"));let{o:a}=e,l=(0,n.toArray)(t);if(!l.length)return Promise.reject((0,n.error)("Need files"));if((0,n.isFunction)(a.beforeUpload)&&!1===a.beforeUpload.call(e,l)){let t=(0,n.error)("Upload canceled");return(r||a.defaultHandlerError).call(e,t),Promise.reject(t)}let u=[];if(a.insertImageAsBase64URI&&function(e,t,i,o,r,s){let a,l,u=[];for(l=0;l<e.length;l+=1)if((a=e[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),d=c[1]?c[1].toLowerCase():"";if(!t.includes(d))continue;let h=new FileReader,p=o.j.async.promise((e,t)=>{h.onerror=t,h.onloadend=()=>{let t={baseurl:"",files:[h.result],isImages:[!0]};((0,n.isFunction)(r)?r:s).call(o,t),e(t)},h.readAsDataURL(a)});u.push(p),i.push(p),e[l]=null}u.length&&Promise.all(u).then(()=>{o.j.events&&o.j.e.fire("filesWereUploaded")}).catch(()=>{})}(l,a.imagesExtensions,u,e,i,a.defaultHandlerSuccess),(l=l.filter(e=>e)).length){let t,c=new FormData;c.append(a.pathVariableName,e.path),c.append("source",e.source);for(let i=0;i<l.length;i+=1)if(t=l[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=l[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[u,d,h]=a.processFileName.call(e,a.filesVariableName(i),l[i],s);c.append(u,d,h)}s&&s(c),a.data&&(0,n.isPlainObject)(a.data)&&Object.keys(a.data).forEach(e=>{c.append(e,a.data[e])}),a.prepareData.call(e,c),u.push((0,o.send)(e,c).then(t=>(a.isSuccess.call(e,t)?((0,n.isFunction)(i)?i:a.defaultHandlerSuccess).call(e,a.process.call(e,t)):((0,n.isFunction)(r)?r:a.defaultHandlerError).call(e,(0,n.error)(a.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(u)}},77911:function(e,t,i){"use strict";i.d(t,{send:function(){return a}});var n=i(65946),o=i(73714),r=i(89446);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr:()=>{let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}i.d(t,["ajaxInstances",0,s])},94925:function(e,t,i){"use strict";i.d(t,{Uploader:function(){return c}});var n=i(25045),o=i(16964),r=i(81937),s=i(23211),a=i(65946),l=i(5266),u=i(11981);i(40013);class c extends o.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},o=this,s=e=>{let s,a,l,c=e.clipboardData,d=e=>{a&&(e.append("extension",l),e.append("mimetype",a.type))};if(!r.IS_IE&&(0,u.hasFiles)(c))return(0,u.sendFiles)(o,c.files,t,i).finally(n),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,u.processOldBrowserDrag)(o,c,t,i,n);if((0,u.hasItems)(c)){let{items:r}=c;for(s=0;s<r.length;s+=1)if("file"===r[s].kind&&"image/png"===r[s].type){if(a=r[s].getAsFile()){let e=a.type.match(/\/([a-z0-9]+)/i);l=e[1]?e[1].toLowerCase():"",(0,u.sendFiles)(o,[a],t,i,d).finally(n)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",s):o.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,u.hasFiles)(t.dataTransfer)||(0,u.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,u.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,u.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,u.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let r=s.Dom.first(e,e=>{var t;return s.Dom.isTag(e,"input")&&(null==(t=(0,a.attr)(e,"type"))?void 0:t.toLowerCase())==="file"});r&&o.j.e.on(r,"change",()=>{(0,u.sendFiles)(o,r.files,t,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,r=(0,a.isFunction)(i)?i:o.defaultHandlerError;(0,u.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{o.isSuccess.call(n,e)?((0,a.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,o.process.call(n,e)):r.call(n,(0,a.error)(o.getMessage.call(n,e)))}).catch(e=>r.call(n,e))}upload(e){return this.async.promise((t,i)=>{(0,u.sendFiles)(this,e,t,i)})}destruct(){this.setStatus(o.STATUSES.beforeDestruct);let e=u.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),(0,n._)(this,"path",""),(0,n._)(this,"source","default"),(0,n._)(this,"options",void 0),this.options=(0,a.ConfigProto)(t||{},(0,a.ConfigProto)(l.Config.defaultOptions.uploader,(0,a.isJoditObject)(e)?e.o.uploader:{}))}}},72348:function(e,t,i){"use strict";var n=i(27795),o=i(65946),r=i(4099),s=i(54522),a=i.n(s);r.Icon.set("palette",a()),i.d(t,["ColorPickerWidget",0,(e,t,i)=>{let s="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(s),u=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),c=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${s}__group ${s}__group-${i}">`),t.push(c(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${s}__color-item ${a===e?s+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")},d=(0,o.isArray)(e.o.colors)?`<div class="${s}__group">${c(e.o.colors)}</div>`:c(e.o.colors);n.Dom.append(l,e.c.fromHTML(`<div class="${s}__groups">${d}</div>`)),n.Dom.append(l,e.c.fromHTML(`<div data-ref="extra" class="${s}__extra"></div>`));let{extra:h}=(0,o.refs)(l);n.Dom.append(h,e.c.fromHTML(`<div class="${s}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${a||""}"/></div>`));let{hexInput:p}=(0,o.refs)(l),m=null,f=()=>{let e=p.value.trim();if(e===m)return;let i=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e),n=/^rgba?\([\d\s.,%]+\)$/i.test(e);if(!i&&!n)return;let r=(0,o.normalizeColor)(i&&!e.startsWith("#")?"#"+e:e);r&&(0,o.isFunction)(t)&&(m=e,t(r))};return e.e.on(p,"keydown",e=>{e.stopPropagation(),"Enter"===e.key&&(e.preventDefault(),f())}).on(p,"change",e=>{e.stopPropagation(),f()}),n.Dom.append(h,e.c.fromHTML(`<span class="${s}__remove" data-color="" title="${e.i18n("Remove")}">${e.o.textIcons?e.i18n("Remove"):r.Icon.get("eraser")}</span>`)),e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(n.Dom.append(h,e.c.fromHTML(`<div class="${s}__native">${u}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!n.Dom.isTag(i,"input")||"color"!==i.type)return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{if(n.Dom.isTag(i.target,"input"))return void i.stopPropagation();i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||n.Dom.isTag(r,"svg")||n.Dom.isTag(r,"path"))&&r.parentNode&&(r=n.Dom.closest(r.parentNode,"span",e.editor)),!n.Dom.isTag(r,"span")||!r.classList.contains(s+"__color-item")&&!r.classList.contains(s+"__remove"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,h,t,a),l}])},18762:function(e,t,i){"use strict";var n=i(23211),o=i(65946),r=i(4099),s=i(89636);function a(e,t,i){let r=n.Dom.first(e,e=>n.Dom.isTag(e,"input")&&(0,o.attr)(e,"name")===t);return r?(i&&(r.value=i),r.value):""}i.d(t,["FileSelectorWidget",0,(e,t,i,l,u=!0)=>{let c,d=[],h=e.o.uploader;if(t.upload&&!1!==h.showTabInFileSelector&&(h.url||h.insertImageAsBase64URI||h.customUploadFunction)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(u?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${u?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let n=(0,o.isFunction)(t.upload)?t.upload:h.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content:()=>{l&&l(),t.filebrowser&&e.filebrowser.open(t.filebrowser,u)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),l=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(c="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],a(l.container,"url",(0,o.attr)(c,"src")),a(l.container,"text",(0,o.attr)(c,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(a(l.container,"url",(0,o.attr)(i,"href")),a(l.container,"text",(0,o.attr)(i,"title")),s.state.text="Update"),l.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:l.container})}let p=(0,s.TabsWidget)(e,d);return p.classList.add("jodit-file-selector"),p}])},15753:function(e,t,i){"use strict";i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget}});var n=i(72348),o=i(18762),r=i(89636)},89636:function(e,t,i){"use strict";var n=i(16964),o=i(23211),r=i(91565),s=i(7909),a=i(4099);i.d(t,["TabsWidget",0,(e,t,i)=>{let l=e.c.div("jodit-tabs"),u=e.c.div("jodit-tabs__wrapper"),c=e.c.div("jodit-tabs__buttons");(0,s.attr)(c,{role:"tablist","aria-orientation":"horizontal"});let d={},h=[],p="";o.Dom.append(l,c),o.Dom.append(l,u);let m=e=>{d[e]&&(h.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:f,content:g})=>{let _=e.c.div("jodit-tab");(0,s.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(e,l||f,f);v.state.role="tab",e.e.on(v.container,"pointerdown",e=>e.preventDefault()),p||(p=f),o.Dom.append(c,v.container),h.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(g)?_.classList.add("jodit-tab_empty"):o.Dom.append(_,n.Component.isInstanceOf(g,a.UIElement)?g.container:g),o.Dom.append(u,_),v.onAction(()=>(m(f),(0,r.isFunction)(g)&&!o.Dom.isElement(g)&&g.call(e),i&&(i.activeTab=f),!1)),d[f]={button:v,tab:_}}),m(i&&i.activeTab&&d[i.activeTab]?i.activeTab:p),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,m(t)}})}return l}])},94358:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(65946),s=i(29434),a=i(5266),l=i(17995),u=i.n(l);a.Config.prototype.controls.about={exec:e=>{let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
109
+ </form>`)}])},60936:function(e,t,i){"use strict";i.r(t),i.d(t,{Ajax:function(){return p.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return x.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return u.Create},Dialog:function(){return s.Dialog},Dom:function(){return c.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return _.History},Icon:function(){return m.Icon},ImageEditor:function(){return b.ImageEditor},IndexedDBProvider:function(){return x.IndexedDBProvider},LazyWalker:function(){return c.LazyWalker},LocalStorageProvider:function(){return x.LocalStorageProvider},MemoryStorageProvider:function(){return x.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return I.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return p.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return x.Storage},StorageKey:function(){return x.StorageKey},Table:function(){return k.Table},ToolbarButton:function(){return S.ToolbarButton},ToolbarCollection:function(){return C.ToolbarCollection},ToolbarContent:function(){return S.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return S.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return T.Uploader},View:function(){return f.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return x.canUseIndexedDB},canUsePersistentStorage:function(){return x.canUsePersistentStorage},clearUseIndexedDBCache:function(){return x.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(16964),o=i(65946),r=i(67399),s=i(37333),a=i(17610),l=i(91231),u=i(79821),c=i(27795),d=i(1496),h=i(91206),p=i(73714),m=i(4099),f=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),k=i(98803),S=i(39709),C=i(42573),E=i(6209),T=i(94925),I=i(85305),D=i(59841),x=i(25222)},61466:function(e,t,i){"use strict";i.d(t,{UIMessage:function(){return s}});var n=i(31635),o=i(91672),r=i(4099);class s extends r.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}}s=(0,n.__decorate)([o.component],s)},10081:function(e,t,i){"use strict";i.d(t,{UIMessages:function(){return c}});var n=i(25045),o=i(31635),r=i(91672),s=i(23211),a=i(80991),l=i(63468),u=i(61466);class c extends l.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);s.Dom.append(this.__box,this.container);let o=new u.UIMessage(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(n);let r=this.__getRemoveCallback(o,n);this.j.e.on(o.container,"pointerdown",r),this.async.setTimeout(r,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,a.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),(0,n._)(this,"__box",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__messages",void 0),this.__box=t,this.options=i,this.__messages=new Set}}c=(0,o.__decorate)([r.component],c)},29433:function(e,t,i){"use strict";i.d(t,{StatusBar:function(){return c}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(23211),l=i(23183),u=i(81987);class c extends r.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(e=null==(t=this.container)?void 0:t.offsetHeight)?e:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){let i=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&i.classList.add(this.getFullElName("item-right")),a.Dom.append(i,e),this.container&&a.Dom.append(this.container,i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),a.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),(0,n._)(this,"target",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"mods",void 0),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),a.Dom.append(t,this.container),this.hide()}}c=(0,o.__decorate)([s.component,(0,s.derive)(u.Mods,l.Elms)],c)},98803:function(e,t,i){"use strict";i.d(t,{Table:function(){return p}});var n=i(25045),o=i(31635),r=i(16964),s=i(81937),a=i(84839),l=i(27795),u=i(28077),c=i(65946),d=i(80991);let h=new WeakMap;class p extends r.ViewComponent{className(){return"Table"}__recalculateStyles(){let e=(0,u.getContainer)(this.j,p,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,c.cssPath)(e);i&&t.push(i)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=p.__selectedByTable.get(t)||new Set;i.add(e),p.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=l.Dom.closest(e,"table",this.j.editor);if(t){let i=p.__selectedByTable.get(t);i&&(i.delete(e),i.size||p.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=p.__selectedByTable.get(e);return t?(0,c.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return p.__getRowsCount(e)}static __getColumnsCount(e){return p.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return p.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,c.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,c.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return p.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return p.__formalMatrix(e,(e,a,l,u,c)=>{if(t===e)return n=a,o=l,r=u||1,s=c||1,i&&(o+=(u||1)-1,n+=(c||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return p.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){let o;if(t)o=t.cloneNode(!0),l.Dom.each(t,e=>{if(!l.Dom.isCell(e))return;let t=(0,c.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,c.attr)(e,"rowspan",i>1?i:null)}}),l.Dom.each(o,e=>{l.Dom.isCell(e)&&l.Dom.detach(e)});else{let t=p.__getColumnsCount(e);o=n.element("tr");for(let e=0;e<t;e+=1)l.Dom.append(o,n.element("td"))}i&&t&&t.nextSibling?l.Dom.after(t,o):!i&&t?l.Dom.before(t,o):l.Dom.append(l.Dom.first(e,e=>l.Dom.isTag(e,"tbody"))||e,o)}appendRow(e,t,i){return p.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=p.__formalMatrix(e),o=e.rows[t];n[t].forEach((r,s)=>{if(i=!1,t-1>=0&&n[t-1][s]===r)i=!0;else if(n[t+1]&&n[t+1][s]===r){if(r.parentNode===o&&r.parentNode.nextSibling){i=!0;let o=s+1;for(;n[t+1][o]===r;)o+=1;let a=l.Dom.next(r.parentNode,e=>l.Dom.isTag(e,"tr"),e);if(a){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===a){e=o;break}}e?l.Dom.before(e,r):l.Dom.append(a,r)}}}else l.Dom.safeRemove(r);if(i&&(r.parentNode===o||r!==n[t][s-1])){let e=r.rowSpan;(0,c.attr)(r,"rowspan",e-1>1?e-1:null)}}),l.Dom.safeRemove(o)}removeRow(e,t){return p.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=p.__formalMatrix(e);if(!i&&l.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=p.__formalCoordinate(e,t,i),r=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[r]||o===r){let e=this.j.createInside.element("td");i?l.Dom.after(t[o],e):l.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=p.__formalMatrix(e);n.forEach((e,o)=>{let r=e[t];if(i=!1,t-1>=0&&n[o][t-1]===r||t+1<e.length&&n[o][t+1]===r?i=!0:l.Dom.safeRemove(r),i&&(o-1<0||r!==n[o-1][t])){let e=r.colSpan;(0,c.attr)(r,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return p.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=p.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return p.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=p.__formalMatrix(e);p.__removeExtraColspans(i,t),p.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,c.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,c.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,c.attr)(i[e][t],"class")&&(0,c.attr)(i[e][t],"class",null));p.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&p.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i,n;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&p.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return p.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=p.__getSelectedBound(e,p.__getSelectedCellsByTable(e)),o=0,r=null,a=0,u=0,h=0,f=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(p.__formalMatrix(e,(e,s,l,_,v)=>{s>=n[0][0]&&s<=n[1][0]&&l>=n[0][1]&&l<=n[1][1]&&(f.has(e)||(f.add(e),s===n[0][0]&&(0,d.cssInline)(e,"width")&&(o+=e.offsetWidth),""!==(0,c.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),_>1&&(u+=_-1),v>1&&(h+=v-1),r?(p.__mark(e,"remove",1,g),m(t).removeSelection(e)):(r=e,a=l)))}),u=n[1][1]-n[0][1]+1,h=n[1][0]-n[0][0]+1,r&&(u>1&&p.__mark(r,"colspan",u,g),h>1&&p.__mark(r,"rowspan",h,g),o&&(p.__mark(r,"width",(o/e.offsetWidth*100).toFixed(s.ACCURACY)+"%",g),a&&p.__setColumnWidthByDelta(e,a,0,!0,g)),r.innerHTML=i.join("<br/>"),m(t).addSelection(r),f.delete(r),p.__unmark(g),p.__normalizeTable(e),(0,c.toArray)(e.rows).forEach(e=>{e.cells.length||l.Dom.safeRemove(e)})))}mergeSelected(e){return p.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,r,s,a=[];p.__getSelectedCellsByTable(e).forEach(u=>{n=t.createInside.element("td"),l.Dom.append(n,t.createInside.element("br")),o=t.createInside.element("tr"),i=p.__formalCoordinate(e,u),u.rowSpan<2?(p.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==u&&p.__mark(e,"rowspan",e.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(u,"tr",e),o),l.Dom.append(o,n)):(p.__mark(u,"rowspan",u.rowSpan-1,a),p.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+u.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(s=t),i[0]<n&&t===u&&(r=e.rows[n])}),s?l.Dom.after(s,n):l.Dom.prepend(r,n)),u.colSpan>1&&p.__mark(n,"colspan",u.colSpan,a),p.__unmark(a),m(t).removeSelection(u)}),this.__normalizeTable(e)}splitHorizontal(e){return p.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,o,r=[];p.__getSelectedCellsByTable(e).forEach(a=>{i=p.__formalCoordinate(e,a),a.colSpan<2?p.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==a&&p.__mark(e,"colspan",e.colSpan+1,r)}):p.__mark(a,"colspan",a.colSpan-1,r),n=t.createInside.element("td"),l.Dom.append(n,t.createInside.element("br")),a.rowSpan>1&&p.__mark(n,"rowspan",a.rowSpan,r);let u=a.offsetWidth;l.Dom.after(a,n),o=u/e.offsetWidth/2,p.__mark(a,"width",(100*o).toFixed(s.ACCURACY)+"%",r),p.__mark(n,"width",(100*o).toFixed(s.ACCURACY)+"%",r),p.__unmark(r),m(t).removeSelection(a)}),p.__normalizeTable(e)}splitVertical(e){return p.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,o){let r=p.__formalMatrix(e),a=0;for(let n=0;n<r.length;n+=1){let l=r[n][t];if(l.colSpan>1&&r.length>1)continue;let u=(l.offsetWidth+i)/e.offsetWidth*100;p.__mark(l,"width",u.toFixed(s.ACCURACY)+"%",o),a=n;break}for(let e=a+1;e<r.length;e+=1){let i=r[e][t];p.__mark(i,"width",null,o)}n||p.__unmark(o)}setColumnWidthByDelta(e,t,i,n,o){return p.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=h.get(e))?o:{};r[t]=void 0===i?1:i,h.set(e,r)}static __unmark(e){e.forEach(e=>{let t=h.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":l.Dom.safeRemove(e);break;case"rowspan":(0,c.attr)(e,"rowspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,c.attr)(e,"colspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,c.attr)(e,"style")||(0,c.attr)(e,"style",null)):(0,c.css)(e,"width",n.toString())}delete t[i]}),h.delete(e))})}constructor(...e){super(...e),(0,n._)(this,"selected",new Set)}}(0,n._)(p,"__selectedByTable",new WeakMap),(0,o.__decorate)([(0,a.debounce)()],p.prototype,"__recalculateStyles",null);let m=e=>e.getInstance("Table",e.o)},22533:function(e,t,i){"use strict";i.d(t,{ToolbarButton:function(){return j}});var n=i(25045),o=i(41411),r=i(15366),s=i(31635),a=i(69364),l=i(81937),u=i(49574),c=i(51676),d=i(91672),h=i(68616),p=i(23211),m=i(17312),f=i(91565),g=i(24497),_=i(62101),v=i(85932),b=i(86878),y=i(57821),w=i(28712),k=i(7909),S=i(71125),C=i(59400),E=i(15982),T=i(29434),I=i(51116),D=i(4274);let x=new Set(["input","textarea","select"]);class j extends C.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,k.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,d.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,g.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(t=(i=this.control).isActive)&&!!t.call(i,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(t=(i=this.control).isDisabled)?void 0:t.call(i,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,k.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,f.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,k.attr)(this.button,"tabindex",this.state.tabIndex),(0,k.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this,configurable:!0}),p.Dom.append(t,i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${T.Icon.get("chevron")}</span>`);return p.Dom.append(i,n),t}focus(){var e;null==(e=p.Dom.first(this.container,e=>p.Dom.isTag(e,"button")))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?p.Dom.append(this.container,this.trigger):p.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,k.attr)(this.trigger,"disabled",e),(0,k.attr)(this.button,"disabled",e),(0,k.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,f.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec)}__initIconFromControl(){let{control:e,state:t}=this,{textIcons:i}=this.j.o;if(!0===i||(0,f.isFunction)(i)&&i(e.name)||e.template){t.icon=(0,C.UIButtonState)().icon,t.text=e.text||e.name;return}if(!(0,v.isString)(e.icon)&&null!=e.icon){t.icon={name:e.icon.name||e.name,iconURL:e.icon.iconURL||"",fill:e.icon.fill||"",scale:e.icon.scale};return}if(e.iconURL)t.icon.iconURL=e.iconURL;else{var n;let i=e.icon||e.name;t.icon.name=T.Icon.exists(i)||(null==(n=this.j.o.extraIcons)?void 0:n[i])?i:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();let{control:t}=this;if((0,k.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,f.isFunction)(t.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,y.camelCase)(`before-${t.name}-open-popup`),this.target,t,e)){var i,n,o;let r=null!=(i=null!=(n=null==(o=this.toolbar)?void 0:o.getTarget(this))?n:this.target)?i:null,s=t.popup(this.j,r,this.__closePopup,this);s?e.setContent((0,v.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,b.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,y.camelCase)(`after-${t.name}-open-popup`),e.container)}}onTriggerKeyDown(e){this.state.disabled||(e.key===l.KEY_DOWN?this.onButtonKeyDown(e):[l.KEY_ENTER,l.KEY_SPACE," "].includes(e.key)&&(e.preventDefault(),this.trigger.click()))}onButtonKeyDown(e){var t;e.key!==l.KEY_DOWN||this.state.disabled||!this.state.hasTrigger||e.altKey||e.ctrlKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this.openedPopup||this.trigger.click(),null==(t=this.__popupFocusables()[0])||t.focus())}__onPopupKeyDown(e){if(!this.openedPopup||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(p.Dom.isTag(t,x)&&e.key!==l.KEY_ESC)return;let i=this.__popupFocusables(),n=i.indexOf(t);switch(e.key){case l.KEY_ESC:this.__closePopup();break;case l.KEY_UP:n<=0?this.__closePopup():i[n-1].focus();break;case l.KEY_DOWN:if(!i.length)return;i[(n+1)%i.length].focus();break;default:return}e.preventDefault(),e.stopPropagation()}__popupFocusables(){let e=this.openedPopup;return e?Array.from(e.container.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!!e.offsetParent):[]}__openControlList(e){var t;let i=null!=(t=this.jodit.options.controls)?t:{},n=e=>(0,E.findControlType)(e,i),s=e.list,a=this.openPopup(),l=(0,D.makeCollection)(this.j);a.parentElement=this,l.parentElement=a,l.mode="vertical";let u=(t,i)=>{let s;if((0,v.isString)(i)&&n(i))return(0,o._)({name:i.toString()},n(i));if((0,v.isString)(t)&&n(t))return(0,o._)({name:t.toString()},n(t),"object"==typeof i?i:{});s=t,(0,_.isPlainObject)(s)&&"title"in s&&"value"in s&&(i=t.value,t=t.title);let{childTemplate:a}=e,l={name:t.toString(),template:a&&((e,t,i)=>a(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var s;return null==(s=e.childExec)?void 0:s.call(e,t,i,(0,r._)((0,o._)({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,v.isString)(i)&&(l.text=i),l};l.build((0,m.isArray)(s)?s.map(u):(0,S.keys)(s,!1).map(e=>u(e,s[e])),this.target),a.setContent(l).open(()=>(0,b.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&p.Dom.isNode(e.target)&&(p.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new I.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick).on(this.openedPopup.container,"keydown",this.__onPopupKeyDown),this.openedPopup}__closePopup(){let e=this.openedPopup;if(!e)return;this.openedPopup=null,this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick);let{activeElement:t}=this.od,i=t&&p.Dom.isOrContains(e.container,t);this.state.activated=!1,e.close(),e.destruct(),this.trigger&&(0,k.attr)(this.trigger,"aria-expanded",!1),i&&this.focus()}onClick(e){let{control:t}=this;if((0,f.isFunction)(t.exec)){var i,n,o,r,s,a,l;let u=null!=(i=null!=(n=null==(o=this.toolbar)?void 0:o.getTarget(this))?n:this.target)?i:null,c=t.exec(this.j,u,{control:t,originalEvent:e,button:this});if(!1!==c&&!0!==c&&(null==(s=this.j)||null==(r=s.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=this.j)||null==(a=l.e)||a.fire("closeAllPopups afterExec")),!1!==c)return}return t.list?this.__openControlList(t):(0,f.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,S.call)((0,g.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),(0,n._)(this,"control",void 0),(0,n._)(this,"target",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"trigger",void 0),(0,n._)(this,"openedPopup",void 0),this.control=t,this.target=i,this.state=(0,r._)((0,o._)({},(0,C.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;let s=this.getElm("button");(0,w.assert)(s,"Element button should exists"),this.button=s,Object.defineProperty(s,"component",{value:this,configurable:!0});let l=this.getElm("trigger");(0,w.assert)(l,"Element trigger should exists"),this.trigger=l,l.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(a.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}}(0,s.__decorate)([c.cacheHTML],j.prototype,"createContainer",null),(0,s.__decorate)([(0,h.watch)("state.hasTrigger",{immediately:!1})],j.prototype,"onChangeHasTrigger",null),(0,s.__decorate)([(0,h.watch)("trigger:click")],j.prototype,"onTriggerClick",null),(0,s.__decorate)([(0,h.watch)("trigger:keydown")],j.prototype,"onTriggerKeyDown",null),(0,s.__decorate)([(0,h.watch)("button:keydown")],j.prototype,"onButtonKeyDown",null),(0,s.__decorate)([u.autobind],j.prototype,"__onPopupKeyDown",null),(0,s.__decorate)([u.autobind],j.prototype,"onOutsideClick",null),(0,s.__decorate)([u.autobind],j.prototype,"__closePopup",null),j=(0,s.__decorate)([d.component],j)},5772:function(e,t,i){"use strict";i.d(t,{ToolbarContent:function(){return c}});var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(65946),l=i(59400);let u=new Set(["input","button","select","textarea"]);class c extends l.UIButton{className(){return"ToolbarContent"}getRole(){return"listitem"}onChangeActivated(){}update(){var e,t,i;let{control:n}=this,o=n.getContent(this.j,this);((0,a.isString)(o)||o.parentNode!==this.container)&&(s.Dom.detach(this.container),s.Dom.append(this.container,(0,a.isString)(o)?this.j.create.fromHTML(o):o)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),s.Dom.each(this.container,e=>{s.Dom.isTag(e,u)&&(0,a.attr)(e,"disabled",this.state.disabled||null)})}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),(0,n._)(this,"control",void 0),(0,n._)(this,"target",void 0),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`)}}c=(0,o.__decorate)([r.component],c)},39709:function(e,t,i){"use strict";i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(22533),o=i(5772),r=i(61764)},61764:function(e,t,i){"use strict";i.d(t,{ToolbarSelect:function(){return l}});var n=i(31635),o=i(84839),r=i(62101),s=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:e,data:t}=this.control;if(e){var i,n,o;let a=this.state.value||(t&&(0,s.isString)(t.currentValue)?t.currentValue:void 0);a||(a=Object.keys(e)[0]);let l=((0,r.isPlainObject)(e)&&e[a.toString()]||a).toString();this.state.text=null!=(i=null==(n=(o=this.control).textTemplate)?void 0:n.call(o,this.jodit,l))?i:l}}}l=(0,n.__decorate)([o.component],l)},42573:function(e,t,i){"use strict";i.d(t,{ToolbarCollection:function(){return f}});var n=i(25045),o=i(31635),r=i(84839),s=i(49574),a=i(91672),l=i(29200),u=i(68616),c=i(7909),d=i(80991),h=i(38027),p=i(97959),m=i(4274);class f extends p.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,m.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,m.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){(0,d.css)(this.container,"direction",e),(0,c.attr)(this.container,"dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,h.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),(0,n._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,o.__decorate)([(0,u.watch)(":afterInit"),s.autobind],f.prototype,"__immediateUpdate",null),(0,o.__decorate)([(0,r.debounce)(e=>e.j.defaultTimeout,!0)],f.prototype,"update",null),(0,o.__decorate)([(0,l.hook)("ready")],f.prototype,"__initEvents",null),f=(0,o.__decorate)([a.component],f)},6209:function(e,t,i){"use strict";i.d(t,{ToolbarEditorCollection:function(){return c}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(27795),l=i(65946),u=i(42573);class c extends u.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?r.MODE_WYSIWYG:e.control.mode;return i!==r.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,a.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,a.Dom.up(t,e=>{if(e&&!a.Dom.isText(e)&&!a.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});a.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),(0,n._)(this,"checkActiveStatus",(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,l.isFunction)(r)?r(this.j,(0,l.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,l.css)(t,o).toString())&&(i+=1),n+=1}),n===i}),this.prependInvisibleInput(this.container)}}c=(0,o.__decorate)([s.component],c)},4274:function(e,t,i){"use strict";i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(91672),o=i(91565),r=i(24497);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){return new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i)}},40013:function(e,t,i){"use strict";var n=i(17312),o=i(24497),r=i(7909),s=i(5266);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):""},processFileName(e,t,i){return[e,t,i]},process(e){return e.data},error(e){this.j.message.error(e.message,4e3)},getDisplayName(e,t){return e+t},defaultHandlerSuccess(e){let t=this.j||this;(0,o.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach((i,n)=>{let[o,s]=e.isImages&&e.isImages[n]?["img","src"]:["a","href"],a=t.createInside.element(o);(0,r.attr)(a,s,e.baseurl+i),"a"===o&&(a.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,i)),"img"===o?t.s.insertImage(a,null,t.o.imageDefaultWidth):t.s.insertNode(a)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},89446:function(e,t,i){"use strict";i.d(t,{buildData:function(){return o}});var n=i(65946);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},23112:function(e,t,i){"use strict";function n(e){var t,i;let[n,...o]=e.split(","),r=o.join(","),s=null!=(t=null==(i=n.split(":")[1])?void 0:i.split(";")[0])?t:"",a=/;base64/i.test(n)?atob(r):decodeURIComponent(r),l=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e+=1)l[e]=a.charCodeAt(e);return new Blob([l.buffer],{type:s})}i.d(t,{dataURItoBlob:function(){return n}})},11981:function(e,t,i){"use strict";i.d(t,{ajaxInstances:function(){return o.ajaxInstances},hasFiles:function(){return s},hasItems:function(){return a},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return o.send},sendFiles:function(){return r.sendFiles}}),i(89446);var n=i(95436),o=i(77911),r=i(46533);function s(e){return!!(e&&e.files&&e.files.length>0)}function a(e){return!!(e&&e.items&&e.items.length>0)}},95436:function(e,t,i){"use strict";i.d(t,{processOldBrowserDrag:function(){return u}});var n=i(81937),o=i(27795),r=i(28077),s=i(65946),a=i(23112),l=i(46533);function u(e,t,i,u,c){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});o.Dom.append((0,r.getContainer)(e.j,e.constructor),t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,u).finally(c)}},e.j.defaultTimeout)}}},46533:function(e,t,i){"use strict";i.d(t,{sendFiles:function(){return r}});var n=i(65946),o=i(77911);function r(e,t,i,r,s){if(!t)return Promise.reject((0,n.error)("Need files"));let{o:a}=e,l=(0,n.toArray)(t);if(!l.length)return Promise.reject((0,n.error)("Need files"));if((0,n.isFunction)(a.beforeUpload)&&!1===a.beforeUpload.call(e,l)){let t=(0,n.error)("Upload canceled");return(r||a.defaultHandlerError).call(e,t),Promise.reject(t)}let u=[];if(a.insertImageAsBase64URI&&function(e,t,i,o,r,s){let a,l,u=[];for(l=0;l<e.length;l+=1)if((a=e[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),d=c[1]?c[1].toLowerCase():"";if(!t.includes(d))continue;let h=new FileReader,p=o.j.async.promise((e,t)=>{h.onerror=t,h.onloadend=()=>{let t={baseurl:"",files:[h.result],isImages:[!0]};((0,n.isFunction)(r)?r:s).call(o,t),e(t)},h.readAsDataURL(a)});u.push(p),i.push(p),e[l]=null}u.length&&Promise.all(u).then(()=>{o.j.events&&o.j.e.fire("filesWereUploaded")}).catch(()=>{})}(l,a.imagesExtensions,u,e,i,a.defaultHandlerSuccess),(l=l.filter(e=>e)).length){let t,c=new FormData;c.append(a.pathVariableName,e.path),c.append("source",e.source);for(let i=0;i<l.length;i+=1)if(t=l[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=l[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[u,d,h]=a.processFileName.call(e,a.filesVariableName(i),l[i],s);c.append(u,d,h)}s&&s(c),a.data&&(0,n.isPlainObject)(a.data)&&Object.keys(a.data).forEach(e=>{c.append(e,a.data[e])}),a.prepareData.call(e,c),u.push((0,o.send)(e,c).then(t=>(a.isSuccess.call(e,t)?((0,n.isFunction)(i)?i:a.defaultHandlerSuccess).call(e,a.process.call(e,t)):((0,n.isFunction)(r)?r:a.defaultHandlerError).call(e,(0,n.error)(a.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(u)}},77911:function(e,t,i){"use strict";i.d(t,{send:function(){return a}});var n=i(65946),o=i(73714),r=i(89446);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr:()=>{let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}i.d(t,["ajaxInstances",0,s])},94925:function(e,t,i){"use strict";i.d(t,{Uploader:function(){return c}});var n=i(25045),o=i(16964),r=i(81937),s=i(23211),a=i(65946),l=i(5266),u=i(11981);i(40013);class c extends o.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},o=this,s=e=>{let s,a,l,c=e.clipboardData,d=e=>{a&&(e.append("extension",l),e.append("mimetype",a.type))};if(!r.IS_IE&&(0,u.hasFiles)(c))return(0,u.sendFiles)(o,c.files,t,i).finally(n),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,u.processOldBrowserDrag)(o,c,t,i,n);if((0,u.hasItems)(c)){let{items:r}=c;for(s=0;s<r.length;s+=1)if("file"===r[s].kind&&"image/png"===r[s].type){if(a=r[s].getAsFile()){let e=a.type.match(/\/([a-z0-9]+)/i);l=e[1]?e[1].toLowerCase():"",(0,u.sendFiles)(o,[a],t,i,d).finally(n)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",s):o.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,u.hasFiles)(t.dataTransfer)||(0,u.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,u.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,u.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,u.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let r=s.Dom.first(e,e=>{var t;return s.Dom.isTag(e,"input")&&(null==(t=(0,a.attr)(e,"type"))?void 0:t.toLowerCase())==="file"});r&&o.j.e.on(r,"change",()=>{(0,u.sendFiles)(o,r.files,t,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,r=(0,a.isFunction)(i)?i:o.defaultHandlerError;(0,u.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{o.isSuccess.call(n,e)?((0,a.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,o.process.call(n,e)):r.call(n,(0,a.error)(o.getMessage.call(n,e)))}).catch(e=>r.call(n,e))}upload(e){return this.async.promise((t,i)=>{(0,u.sendFiles)(this,e,t,i)})}destruct(){this.setStatus(o.STATUSES.beforeDestruct);let e=u.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),(0,n._)(this,"path",""),(0,n._)(this,"source","default"),(0,n._)(this,"options",void 0),this.options=(0,a.ConfigProto)(t||{},(0,a.ConfigProto)(l.Config.defaultOptions.uploader,(0,a.isJoditObject)(e)?e.o.uploader:{}))}}},72348:function(e,t,i){"use strict";var n=i(27795),o=i(65946),r=i(4099),s=i(54522),a=i.n(s);r.Icon.set("palette",a()),i.d(t,["ColorPickerWidget",0,(e,t,i)=>{let s="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(s),u=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),c=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${s}__group ${s}__group-${i}">`),t.push(c(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${s}__color-item ${a===e?s+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")},d=(0,o.isArray)(e.o.colors)?`<div class="${s}__group">${c(e.o.colors)}</div>`:c(e.o.colors);n.Dom.append(l,e.c.fromHTML(`<div class="${s}__groups">${d}</div>`)),n.Dom.append(l,e.c.fromHTML(`<div data-ref="extra" class="${s}__extra"></div>`));let{extra:h}=(0,o.refs)(l);n.Dom.append(h,e.c.fromHTML(`<div class="${s}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${a||""}"/></div>`));let{hexInput:p}=(0,o.refs)(l),m=null,f=()=>{let e=p.value.trim();if(e===m)return;let i=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e),n=/^rgba?\([\d\s.,%]+\)$/i.test(e);if(!i&&!n)return;let r=(0,o.normalizeColor)(i&&!e.startsWith("#")?"#"+e:e);r&&(0,o.isFunction)(t)&&(m=e,t(r))};return e.e.on(p,"keydown",e=>{e.stopPropagation(),"Enter"===e.key&&(e.preventDefault(),f())}).on(p,"change",e=>{e.stopPropagation(),f()}),n.Dom.append(h,e.c.fromHTML(`<span class="${s}__remove" data-color="" title="${e.i18n("Remove")}">${e.o.textIcons?e.i18n("Remove"):r.Icon.get("eraser")}</span>`)),e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(n.Dom.append(h,e.c.fromHTML(`<div class="${s}__native">${u}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!n.Dom.isTag(i,"input")||"color"!==i.type)return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{if(n.Dom.isTag(i.target,"input"))return void i.stopPropagation();i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||n.Dom.isTag(r,"svg")||n.Dom.isTag(r,"path"))&&r.parentNode&&(r=n.Dom.closest(r.parentNode,"span",e.editor)),!n.Dom.isTag(r,"span")||!r.classList.contains(s+"__color-item")&&!r.classList.contains(s+"__remove"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,h,t,a),l}])},18762:function(e,t,i){"use strict";var n=i(23211),o=i(65946),r=i(4099),s=i(89636);function a(e,t,i){let r=n.Dom.first(e,e=>n.Dom.isTag(e,"input")&&(0,o.attr)(e,"name")===t);return r?(i&&(r.value=i),r.value):""}i.d(t,["FileSelectorWidget",0,(e,t,i,l,u=!0)=>{let c,d=[],h=e.o.uploader;if(t.upload&&!1!==h.showTabInFileSelector&&(h.url||h.insertImageAsBase64URI||h.customUploadFunction)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(u?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${u?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let n=(0,o.isFunction)(t.upload)?t.upload:h.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content:()=>{l&&l(),t.filebrowser&&e.filebrowser.open(t.filebrowser,u)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),l=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(c="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],a(l.container,"url",(0,o.attr)(c,"src")),a(l.container,"text",(0,o.attr)(c,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(a(l.container,"url",(0,o.attr)(i,"href")),a(l.container,"text",(0,o.attr)(i,"title")),s.state.text="Update"),l.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:l.container})}let p=(0,s.TabsWidget)(e,d);return p.classList.add("jodit-file-selector"),p}])},15753:function(e,t,i){"use strict";i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget}});var n=i(72348),o=i(18762),r=i(89636)},89636:function(e,t,i){"use strict";var n=i(16964),o=i(23211),r=i(91565),s=i(7909),a=i(4099);i.d(t,["TabsWidget",0,(e,t,i)=>{let l=e.c.div("jodit-tabs"),u=e.c.div("jodit-tabs__wrapper"),c=e.c.div("jodit-tabs__buttons");(0,s.attr)(c,{role:"tablist","aria-orientation":"horizontal"});let d={},h=[],p="";o.Dom.append(l,c),o.Dom.append(l,u);let m=e=>{d[e]&&(h.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:f,content:g})=>{let _=e.c.div("jodit-tab");(0,s.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(e,l||f,f);v.state.role="tab",e.e.on(v.container,"pointerdown",e=>e.preventDefault()),p||(p=f),o.Dom.append(c,v.container),h.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(g)?_.classList.add("jodit-tab_empty"):o.Dom.append(_,n.Component.isInstanceOf(g,a.UIElement)?g.container:g),o.Dom.append(u,_),v.onAction(()=>(m(f),(0,r.isFunction)(g)&&!o.Dom.isElement(g)&&g.call(e),i&&(i.activeTab=f),!1)),d[f]={button:v,tab:_}}),m(i&&i.activeTab&&d[i.activeTab]?i.activeTab:p),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,m(t)}})}return l}])},94358:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(65946),s=i(29434),a=i(5266),l=i(17995),u=i.n(l);a.Config.prototype.controls.about={exec:e=>{let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
109
110
  <div>${i("Jodit Editor")} v.${e.getVersion()}</div>
110
111
  <div>${i("License: %s",!(0,r.isLicense)(e.o.license)?e.o.license||"MIT":(0,r.normalizeLicense)(e.o.license))}</div>
111
112
  <div>
@@ -239,7 +240,7 @@
239
240
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
240
241
  </div>
241
242
  </div>
242
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===s.MODE_WYSIWYG)switch(e.key){case s.KEY_ESC:this.close();break;case s.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(l.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),l.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,u.position)(this.j.toolbarContainer);(0,u.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,u.css)(this.container,{top:null,left:null})}constructor(e){var t;let i;super(e),t=this,(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);let{query:r,replace:a,cancel:l,next:c,prev:d,replaceBtn:h,current:p,count:m}=(0,u.refs)(this.container);this.queryInput=r,this.replaceInput=a,this.closeButton=l,this.replaceButton=h,this.currentBox=p,this.countBox=m;let f=()=>this.close(),g=()=>void e.e.fire(this,"pressReplaceButton"),_=()=>void e.e.fire("searchNext"),v=()=>void e.e.fire("searchPrevious"),b=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(f(),!1)).on(this.closeButton,"click",b(f)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(g(),!1)).on(this.replaceButton,"click",b(g)).on(c,"pointerdown",()=>(_(),!1)).on(c,"click",b(_)).on(d,"pointerdown",()=>(v(),!1)).on(d,"click",b(v)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,u.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(i=this.j.async.debounce(i=>(0,n._)(function*(){i.key===s.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")})(),this.j.defaultTimeout),e=>{e.key===s.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),i(e)}))}}(0,r.__decorate)([(0,a.watch)([":keydown","queryInput:keydown"])],d.prototype,"onEditorKeyDown",null),(0,r.__decorate)([a.autobind],d.prototype,"open",null),(0,r.__decorate)([a.autobind],d.prototype,"close",null),(0,r.__decorate)([(0,a.watch)(":toggleSticky")],d.prototype,"calcSticky",null),d=(0,r.__decorate)([a.component],d)},69070:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},2756:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(98803);i(69070);let h="table_processor_observer",p="onMoveTableSelectCell";class m extends c.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===r.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let e=this.__tableModule.getAllSelectedCells().length;if(e){if(e>1){var t;null==(t=this.j.s.sel)||t.removeAllRanges()}return!1}})}onStartSelection(e,t){if(this.j.o.readonly)return;let i=a.Dom.closest(e,"table",this.j.editor);if(((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&i&&a.Dom.isCell(e)){var n;return this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||a.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(n=this.j.s.sel)||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",i,()=>(0,u.position)(e,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1}if(this.unselectCells(),e!==this.j.editor&&e&&i)return e.firstChild||a.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,i),{label:p,timeout:this.j.defaultTimeout/2})).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){var i,n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let r=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=a.Dom.closest(r,["td","th"],e);if(!s||!this.__selectedCell)return;s!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let l=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),u=this.__tableModule.formalMatrix(e);for(let e=l[0][0];e<=l[1][0];e+=1)for(let t=l[0][1];t<=l[1][1];t+=1)this.__tableModule.addSelection(u[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),a.Dom.append(s,o),this.j.async.setTimeout(()=>{a.Dom.safeRemove(o)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==e||null==(t=e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){var i,n,o;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let r=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=a.Dom.closest(r,["td","th"],e);if(!s)return;let l=a.Dom.closest(s,"table",e);if(l&&l!==e)return;let c=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),d=this.__tableModule.formalMatrix(e),h=null==(n=d[c[1][0]])?void 0:n[c[1][1]],m=null==(o=d[c[0][0]])?void 0:o[c[0][1]];m&&h&&(this.j.e.fire("showPopup",e,()=>{let e=(0,u.position)(m,this.j),t=(0,u.position)(h,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,u.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p))}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{a.Dom.detach(e),a.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=a.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>a.Dom.detach(e));break;case"bin":a.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,u.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(...e){super(...e),(0,n._)(this,"__selectedCell",null),(0,n._)(this,"__isSelectionMode",!1)}}(0,n._)(m,"requires",["select"]),(0,o.__decorate)([s.autobind],m.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)(":change")],m.prototype,"onChange",null),(0,o.__decorate)([s.autobind],m.prototype,"__onRemoveSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"__onStopSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"onExecCommand",null),(0,o.__decorate)([s.autobind],m.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",m)},47670:function(e,t,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},98988:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(57821),c=i(91206),d=i(4099);i(47670);class h extends c.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,u.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;a.Dom.up(t,e=>e===this.j.editor)||d.UIElement.closestElement(t,d.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&a.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!a.Dom.isText(i.startContainer))return;let n=i.startContainer,o=n.parentNode;if(!a.Dom.isTag(o,"li")||!a.Dom.first(o,e=>a.Dom.isTag(e,r.LIST_TAGS)))return;let s=this.j.ed.createRange();s.selectNodeContents(n);let l=s.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(n)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,n=i.range;if(!n.collapsed||!a.Dom.isText(n.startContainer))return;let o=n.startContainer;if(n.startOffset!==(null!=(e=null==(t=o.nodeValue)?void 0:t.length)?e:0))return;let s=o.nextSibling;if(!a.Dom.isElement(s)||!s.nodeName.match(r.IS_INLINE)||!a.Dom.isEmpty(s))return;let l=s;for(;a.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(r.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&a.Dom.isText(i)&&t.select(a.Dom.closest(i,a.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&a.Dom.isNode(e.target)&&a.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(...e){super(...e),(0,n._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,o.__decorate)([s.autobind],h.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,o.__decorate)([(0,s.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onClickRightOfNestedListItem",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onClickKeepPendingFormat",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,o.__decorate)([(0,s.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),l.pluginSystem.add("select",h)},80202:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},44322:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(72412),l=i(80991),u=i(18855);i(80202);class c extends u.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,l.css)(e.editor,{minHeight:"100%"}),(0,l.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&i<e&&(e=i)}(0,l.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&e>i&&(e=i)}(0,l.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...e){super(...e),(0,n._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,o.__decorate)([(0,r.throttle)()],c.prototype,"__initialize",null),(0,o.__decorate)([r.autobind],c.prototype,"__setHeight",null),(0,o.__decorate)([r.autobind],c.prototype,"__setWidth",null),(0,o.__decorate)([r.autobind],c.prototype,"__resizeWorkspaceImd",null),s.pluginSystem.add("size",c)},18929:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(9103),a=i.n(s);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",a()),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},94978:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(94193);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let n=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===o.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",n).on("afterResize afterSetMode",n),n(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==o.MODE_SOURCE&&e.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=this.j)||null==(e=t.events)||e.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(...e){super(...e),(0,n._)(this,"className","jodit_ace_editor"),(0,n._)(this,"proxyOnBlur",e=>{this.j.e.fire("blur",e)}),(0,n._)(this,"proxyOnFocus",e=>{this.j.e.fire("focus",e)}),(0,n._)(this,"proxyOnMouseDown",e=>{this.j.e.fire("mousedown",e)})}}},45844:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return l}});var n=i(25045),o=i(23211),r=i(7909),s=i(80991),a=i(94193);class l extends a.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),o.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,s.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,r.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,r.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...e){super(...e),(0,n._)(this,"autosize",this.j.async.debounce(()=>{(0,s.css)(this.instance,"height","auto"),(0,s.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0))}}},8105:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(94978),o=i(45844)},82495:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(65946),o=i(8105);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},94193:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return o}});var n=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){if(this.isReady)e();else{var t;null==(t=this.j.events)||t.on(this,"ready",e)}}constructor(e,t,i,o){(0,n._)(this,"jodit",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"toWYSIWYG",void 0),(0,n._)(this,"fromWYSIWYG",void 0),(0,n._)(this,"instance",void 0),(0,n._)(this,"className",void 0),(0,n._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},13810:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206);i(18929);var d=i(82495);class h extends c.Plugin{onInsertHTML(e){if(!this.j.o.readonly&&!this.j.isEditorMode()){var t;return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=r.INVISIBLE_SPACE;return t});e>0&&t[e]===r.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){if("selectall"===e.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE){var t;return null==(t=this.sourceEditor)||t.selectAll(),!1}}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===r.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,u.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),a.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{a.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,d.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===r.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{if(e.isInDestruct)return!1;let t=e.ow.html_beautify;if(t&&!e.isInDestruct){var i;return null==(i=e.events)||i.off("beautifyHTML").on("beautifyHTML",e=>t(e)),!0}return!1};t()||(0,u.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===r.MODE_SPLIT||t.getMode()===r.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){if("area"!==e.o.sourceEditor){let t=(0,d.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else{var t;null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"source",group:"source"}]),(0,n._)(this,"sourceEditor",void 0),(0,n._)(this,"mirrorContainer",void 0),(0,n._)(this,"__lock",!1),(0,n._)(this,"__oldMirrorValue",""),(0,n._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,n._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,n._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,n._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,n._)(this,"getSelectionStart",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?e:0}),(0,n._)(this,"getSelectionEnd",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?e:0})}}(0,o.__decorate)([(0,s.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),(0,o.__decorate)([s.autobind],h.prototype,"fromWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"toWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"getNormalPosition",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),(0,o.__decorate)([(0,s.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),(0,o.__decorate)([(0,s.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),(0,o.__decorate)([s.autobind],h.prototype,"setMirrorSelectionRange",null),(0,o.__decorate)([(0,s.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),(0,o.__decorate)([s.autobind],h.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",h)},75143:function(e,t,i){"use strict";var n=i(22289),o=i(85932),r=i(7909),s=i(36400),a=i(29434),l=i(5266),u=i(97743),c=i(68097),d=i(22227),h=i.n(d);l.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",h()),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){let{api:l,lang:u,continuous:d,interimResults:h,sound:p}=e.o.speechRecognize;if(!l)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){var f;let t=new l;(m=new c.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(f=(0,r.attr)(e.od.documentElement,"lang"))?f:void 0,m.continuous=d,m.interimResults=h,m.sound=p,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},97743:function(e,t,i){"use strict";var n=i(81937);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},8962:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},68097:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return l}});var n=i(25045),o=i(31635),r=i(84839),s=i(60216),a=i(32560);class l extends s.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,a.closeSound)(this),l._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,l._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,a.sound)(this,{frequency:e})}constructor(e,t){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"_lang",void 0),(0,n._)(this,"_continuous",void 0),(0,n._)(this,"_interimResults",void 0),(0,n._)(this,"sound",void 0),(0,n._)(this,"_isEnabled",void 0),(0,n._)(this,"_restartTimeout",void 0),(0,n._)(this,"_onSpeechStart",void 0),(0,n._)(this,"_api",void 0),(0,n._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,l._instances.add(this)}}(0,n._)(l,"_instances",new Set),(0,o.__decorate)([r.autobind],l.prototype,"_onResults",null),(0,o.__decorate)([r.autobind],l.prototype,"_onProgress",null),(0,o.__decorate)([r.autobind],l.prototype,"_onError",null)},32560:function(e,t,i){"use strict";i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(81937);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let u=l.createGain(),c=l.createOscillator();c.type=a,c.frequency.value=i,u.gain.value=s,c.connect(u),u.connect(l.destination),c.start(),c.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(x,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(z,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return u||(u=i.t(A,2))},he:function(){return c||(c=i.t(P,2))},hu:function(){return d||(d=i.t(M,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(N,2))},ja:function(){return m||(m=i.t(B,2))},ko:function(){return f||(f=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return _||(_=i.t(H,2))},no:function(){return v||(v=i.t(V,2))},pl:function(){return b||(b=i.t(U,2))},pt_br:function(){return y||(y=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return S||(S=i.t(Y,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(q,2))},zh_tw:function(){return T||(T=i.t(J,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E,T,I=i(19922),D=i(20759),x=i(22350),j=i(97509),z=i(49668),L=i(33276),A=i(43517),P=i(8858),M=i(22922),R=i(81900),N=i(35420),B=i(18712),O=i(73363),F=i(74762),H=i(73759),V=i(72850),U=i(37161),W=i(62896),K=i(39996),$=i(62415),Y=i(93423),G=i(10179),q=i(62547),J=i(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},62415:function(e){e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(68616),s=i(23211),a=i(28077),l=i(71125),u=i(91206);i(75143);var c=i(73302),d=i(8962),h=i(43219);class p extends u.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,a.extendLang)(h),(0,l.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){s.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),s.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{s.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),s.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&s.Dom.isText(o)&&s.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,d.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,n._)(this,"messagePopup",void 0),(0,n._)(this,"__hidePopupTimeout",void 0),(0,n._)(this,"_commandToWord",{})}}(0,o.__decorate)([(0,r.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),(0,o.__decorate)([(0,r.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),c.Jodit.plugins.add("speech-recognize",p)},24268:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(49989),s=i.n(r);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",s()),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:s(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},30885:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},48918:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},47229:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},67026:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},69495:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},59903:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},38522:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},81089:function(e){e.exports={Spellcheck:"בדיקת איות"}},59985:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},43439:function(e){e.exports={Spellcheck:"Spellchecking"}},33494:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(x,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(z,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return u||(u=i.t(A,2))},he:function(){return c||(c=i.t(P,2))},hu:function(){return d||(d=i.t(M,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(N,2))},ja:function(){return m||(m=i.t(B,2))},ko:function(){return f||(f=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return _||(_=i.t(H,2))},no:function(){return v||(v=i.t(V,2))},pl:function(){return b||(b=i.t(U,2))},pt_br:function(){return y||(y=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return S||(S=i.t(Y,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(q,2))},zh_tw:function(){return T||(T=i.t(J,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E,T,I=i(30885),D=i(48918),x=i(47229),j=i(67026),z=i(69495),L=i(59903),A=i(38522),P=i(81089),M=i(59985),R=i(43439),N=i(57759),B=i(93203),O=i(32540),F=i(68429),H=i(45596),V=i(91685),U=i(63794),W=i(69977),K=i(51647),$=i(75160),Y=i(54472),G=i(84872),q=i(18310),J=i(95042)},57759:function(e){e.exports={Spellcheck:"Controllo ortografico"}},93203:function(e){e.exports={Spellcheck:"スペルチェック"}},32540:function(e){e.exports={Spellcheck:"맞춤법 검사"}},68429:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},45596:function(e){e.exports={Spellcheck:"Spellingcontrole"}},91685:function(e){e.exports={Spellcheck:"Stavekontroll"}},63794:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},69977:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},51647:function(e){e.exports={Spellcheck:"Проверка орфографии"}},75160:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},54472:function(e){e.exports={Spellcheck:"Yazım denetimi"}},84872:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},18310:function(e){e.exports={Spellcheck:"拼写检查"}},95042:function(e){e.exports={Spellcheck:"拼字檢查"}},90204:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(7909),l=i(91206);i(24268);var u=i(33494);class c extends l.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),(0,n._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,s.extendLang)(u)}}(0,o.__decorate)([r.autobind],c.prototype,"toggleSpellcheck",null),s.pluginSystem.add("spellcheck",c)},88580:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},86236:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...e){super(...e),(0,n._)(this,"charCounter",null),(0,n._)(this,"wordCounter",null),(0,n._)(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,n._)(this,"calc",this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout))}}s.pluginSystem.add("stat",l)},79803:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},67582:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(79803);let d=!r.IS_ES_NEXT&&r.IS_IE;class h extends c.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,u.offset)(e.container,e,e.od,!0),n=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===n)return;let o=e.toolbarContainer;o&&(n?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",n)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){a.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...e){super(...e),(0,n._)(this,"__isToolbarStuck",!1),(0,n._)(this,"__dummyBox",void 0),(0,n._)(this,"__createDummy",e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),a.Dom.before(e,this.__dummyBox)}),(0,n._)(this,"addSticky",e=>{this.__isToolbarStuck||(d&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,u.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,u.css)(this.__dummyBox,{height:e.offsetHeight})}),(0,n._)(this,"removeSticky",e=>{this.__isToolbarStuck&&((0,u.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,o.__decorate)([(0,s.throttle)()],h.prototype,"__onScroll",null),l.pluginSystem.add("sticky",h)},18993:function(e,t,i){"use strict";var n=i(23211),o=i(29434),r=i(5266),s=i(81875),a=i.n(s);r.Config.prototype.usePopupForSpecialCharacters=!1,r.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",a()),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},80696:function(e){e.exports={symbols:"رمز"}},33433:function(e){e.exports={symbols:"symbol"}},59488:function(e){e.exports={symbols:"Symbol"}},14099:function(e){e.exports={symbols:"S\xedmbolo"}},64394:function(e){e.exports={symbols:"سمبل"}},96978:function(e){e.exports={symbols:"Symbolit"}},54055:function(e){e.exports={symbols:"caract\xe8re"}},15164:function(e){e.exports={symbols:"תו מיוחד"}},42412:function(e){e.exports={symbols:"Szimb\xf3lum"}},98710:function(e){e.exports={symbols:"simbol"}},91017:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(I,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(j,2))},fr:function(){return u||(u=i.t(z,2))},he:function(){return c||(c=i.t(L,2))},hu:function(){return d||(d=i.t(A,2))},id:function(){return h||(h=i.t(P,2))},it:function(){return p||(p=i.t(M,2))},ja:function(){return m||(m=i.t(R,2))},ko:function(){return f||(f=i.t(N,2))},mn:function(){return g||(g=i.t(B,2))},nl:function(){return _||(_=i.t(O,2))},pl:function(){return v||(v=i.t(F,2))},pt_br:function(){return b||(b=i.t(H,2))},ru:function(){return y||(y=i.t(V,2))},tr:function(){return w||(w=i.t(U,2))},ua:function(){return k||(k=i.t(W,2))},zh_cn:function(){return S||(S=i.t(K,2))},zh_tw:function(){return C||(C=i.t($,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E=i(80696),T=i(33433),I=i(59488),D=i(14099),x=i(64394),j=i(96978),z=i(54055),L=i(15164),A=i(42412),P=i(98710),M=i(68294),R=i(3294),N=i(44837),B=i(72320),O=i(87141),F=i(10099),H=i(442),V=i(54554),U=i(86581),W=i(97493),K=i(58585),$=i(57629)},68294:function(e){e.exports={symbols:"Simbolo"}},3294:function(e){e.exports={symbols:"symbol"}},44837:function(e){e.exports={symbols:"기호"}},72320:function(e){e.exports={symbols:"тэмдэгт"}},87141:function(e){e.exports={symbols:"symbool"}},10099:function(e){e.exports={symbols:"symbol"}},442:function(e){e.exports={symbols:"S\xedmbolo"}},54554:function(e){e.exports={symbols:"символ"}},86581:function(e){e.exports={symbols:"Sembol"}},97493:function(e){e.exports={symbols:"символ"}},58585:function(e){e.exports={symbols:"符号"}},57629:function(e){e.exports={symbols:"符號"}},11774:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(93640),l=i(18855);i(18993);var u=i(91017);class c extends l.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
243
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===s.MODE_WYSIWYG)switch(e.key){case s.KEY_ESC:this.close();break;case s.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(l.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),l.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,u.position)(this.j.toolbarContainer);(0,u.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,u.css)(this.container,{top:null,left:null})}constructor(e){var t;let i;super(e),t=this,(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);let{query:r,replace:a,cancel:l,next:c,prev:d,replaceBtn:h,current:p,count:m}=(0,u.refs)(this.container);this.queryInput=r,this.replaceInput=a,this.closeButton=l,this.replaceButton=h,this.currentBox=p,this.countBox=m;let f=()=>this.close(),g=()=>void e.e.fire(this,"pressReplaceButton"),_=()=>void e.e.fire("searchNext"),v=()=>void e.e.fire("searchPrevious"),b=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(f(),!1)).on(this.closeButton,"click",b(f)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(g(),!1)).on(this.replaceButton,"click",b(g)).on(c,"pointerdown",()=>(_(),!1)).on(c,"click",b(_)).on(d,"pointerdown",()=>(v(),!1)).on(d,"click",b(v)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,u.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(i=this.j.async.debounce(i=>(0,n._)(function*(){i.key===s.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")})(),this.j.defaultTimeout),e=>{e.key===s.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),i(e)}))}}(0,r.__decorate)([(0,a.watch)([":keydown","queryInput:keydown"])],d.prototype,"onEditorKeyDown",null),(0,r.__decorate)([a.autobind],d.prototype,"open",null),(0,r.__decorate)([a.autobind],d.prototype,"close",null),(0,r.__decorate)([(0,a.watch)(":toggleSticky")],d.prototype,"calcSticky",null),d=(0,r.__decorate)([a.component],d)},69070:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},2756:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(98803);i(69070);let h="table_processor_observer",p="onMoveTableSelectCell";class m extends c.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===r.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let e=this.__tableModule.getAllSelectedCells().length;if(e){if(e>1){var t;null==(t=this.j.s.sel)||t.removeAllRanges()}return!1}})}onStartSelection(e,t){if(this.j.o.readonly)return;let i=a.Dom.closest(e,"table",this.j.editor);if(((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&i&&a.Dom.isCell(e)){var n;return this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||a.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(n=this.j.s.sel)||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",i,()=>(0,u.position)(e,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1}if(this.unselectCells(),e!==this.j.editor&&e&&i)return e.firstChild||a.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,i),{label:p,timeout:this.j.defaultTimeout/2})).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){var i,n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let r=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=a.Dom.closest(r,["td","th"],e);if(!s||!this.__selectedCell)return;s!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let l=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),u=this.__tableModule.formalMatrix(e);for(let e=l[0][0];e<=l[1][0];e+=1)for(let t=l[0][1];t<=l[1][1];t+=1)this.__tableModule.addSelection(u[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),a.Dom.append(s,o),this.j.async.setTimeout(()=>{a.Dom.safeRemove(o)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==e||null==(t=e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){var i,n,o;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let r=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=a.Dom.closest(r,["td","th"],e);if(!s)return;let l=a.Dom.closest(s,"table",e);if(l&&l!==e)return;let c=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),d=this.__tableModule.formalMatrix(e),h=null==(n=d[c[1][0]])?void 0:n[c[1][1]],m=null==(o=d[c[0][0]])?void 0:o[c[0][1]];m&&h&&(this.j.e.fire("showPopup",e,()=>{let e=(0,u.position)(m,this.j),t=(0,u.position)(h,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,u.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p))}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{a.Dom.detach(e),a.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=a.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>a.Dom.detach(e));break;case"bin":a.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,u.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(...e){super(...e),(0,n._)(this,"__selectedCell",null),(0,n._)(this,"__isSelectionMode",!1)}}(0,n._)(m,"requires",["select"]),(0,o.__decorate)([s.autobind],m.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)(":change")],m.prototype,"onChange",null),(0,o.__decorate)([s.autobind],m.prototype,"__onRemoveSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"__onStopSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"onExecCommand",null),(0,o.__decorate)([s.autobind],m.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",m)},47670:function(e,t,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},98988:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(57821),c=i(91206),d=i(4099);i(47670);class h extends c.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,u.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;a.Dom.up(t,e=>e===this.j.editor)||d.UIElement.closestElement(t,d.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&a.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!a.Dom.isText(i.startContainer))return;let n=i.startContainer,o=n.parentNode;if(!a.Dom.isTag(o,"li")||!a.Dom.first(o,e=>a.Dom.isTag(e,r.LIST_TAGS)))return;let s=this.j.ed.createRange();s.selectNodeContents(n);let l=s.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(n)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,n=i.range;if(!n.collapsed||!a.Dom.isText(n.startContainer))return;let o=n.startContainer;if(n.startOffset!==(null!=(e=null==(t=o.nodeValue)?void 0:t.length)?e:0))return;let s=o.nextSibling;if(!a.Dom.isElement(s)||!s.nodeName.match(r.IS_INLINE)||!a.Dom.isEmpty(s))return;let l=s;for(;a.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(r.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&a.Dom.isText(i)&&t.select(a.Dom.closest(i,a.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&a.Dom.isNode(e.target)&&a.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(...e){super(...e),(0,n._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,o.__decorate)([s.autobind],h.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,o.__decorate)([(0,s.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onClickRightOfNestedListItem",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onClickKeepPendingFormat",null),(0,o.__decorate)([(0,s.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,o.__decorate)([(0,s.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),l.pluginSystem.add("select",h)},80202:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},44322:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(72412),l=i(80991),u=i(18855);i(80202);class c extends u.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,l.css)(e.editor,{minHeight:"100%"}),(0,l.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&i<e&&(e=i)}(0,l.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&e>i&&(e=i)}(0,l.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...e){super(...e),(0,n._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,o.__decorate)([(0,r.throttle)()],c.prototype,"__initialize",null),(0,o.__decorate)([r.autobind],c.prototype,"__setHeight",null),(0,o.__decorate)([r.autobind],c.prototype,"__setWidth",null),(0,o.__decorate)([r.autobind],c.prototype,"__resizeWorkspaceImd",null),s.pluginSystem.add("size",c)},18929:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(9103),a=i.n(s);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",a()),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},94978:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(94193);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let n=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===o.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",n).on("afterResize afterSetMode",n),n(),this.onReady()},i=!1,n=()=>{if(!e.isInDestruct&&(e.getRealMode()===o.MODE_SOURCE||e.getMode()===o.MODE_SPLIT)){if(!this.aceExists()){i||(i=!0,(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(n).catch(()=>null));return}this.fromWYSIWYG(),t()}};e.e.on("afterSetMode",n),n()}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=this.j)||null==(e=t.events)||e.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(...e){super(...e),(0,n._)(this,"className","jodit_ace_editor"),(0,n._)(this,"proxyOnBlur",e=>{this.j.e.fire("blur",e)}),(0,n._)(this,"proxyOnFocus",e=>{this.j.e.fire("focus",e)}),(0,n._)(this,"proxyOnMouseDown",e=>{this.j.e.fire("mousedown",e)})}}},45844:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return l}});var n=i(25045),o=i(23211),r=i(7909),s=i(80991),a=i(94193);class l extends a.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),o.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,s.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,r.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,r.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...e){super(...e),(0,n._)(this,"autosize",this.j.async.debounce(()=>{(0,s.css)(this.instance,"height","auto"),(0,s.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0))}}},8105:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(94978),o=i(45844)},82495:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(65946),o=i(8105);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},94193:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return o}});var n=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){if(this.isReady)e();else{var t;null==(t=this.j.events)||t.on(this,"ready",e)}}constructor(e,t,i,o){(0,n._)(this,"jodit",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"toWYSIWYG",void 0),(0,n._)(this,"fromWYSIWYG",void 0),(0,n._)(this,"instance",void 0),(0,n._)(this,"className",void 0),(0,n._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},13810:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206);i(18929);var d=i(82495);class h extends c.Plugin{onInsertHTML(e){if(!this.j.o.readonly&&!this.j.isEditorMode()){var t;return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=r.INVISIBLE_SPACE;return t});e>0&&t[e]===r.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){if("selectall"===e.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE){var t;return null==(t=this.sourceEditor)||t.selectAll(),!1}}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===r.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,u.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),a.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{a.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,d.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===r.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{if(e.isInDestruct)return!1;let t=e.ow.html_beautify;if(t&&!e.isInDestruct){var i;return null==(i=e.events)||i.off("beautifyHTML").on("beautifyHTML",e=>t(e)),!0}return!1};if(!t()){let i=!1,n=()=>{i||e.getMode()!==r.MODE_SOURCE&&e.getMode()!==r.MODE_SPLIT||(i=!0,(0,u.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(()=>{t()&&this.syncValueFromWYSIWYG(!0)},()=>null))};e.e.on("afterSetMode.source",n),n()}}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===r.MODE_SPLIT||t.getMode()===r.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){if("area"!==e.o.sourceEditor){let t=(0,d.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else{var t;null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"source",group:"source"}]),(0,n._)(this,"sourceEditor",void 0),(0,n._)(this,"mirrorContainer",void 0),(0,n._)(this,"__lock",!1),(0,n._)(this,"__oldMirrorValue",""),(0,n._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,n._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,n._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,n._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,n._)(this,"getSelectionStart",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?e:0}),(0,n._)(this,"getSelectionEnd",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?e:0})}}(0,o.__decorate)([(0,s.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),(0,o.__decorate)([s.autobind],h.prototype,"fromWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"toWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"getNormalPosition",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),(0,o.__decorate)([(0,s.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),(0,o.__decorate)([(0,s.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),(0,o.__decorate)([s.autobind],h.prototype,"setMirrorSelectionRange",null),(0,o.__decorate)([(0,s.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),(0,o.__decorate)([s.autobind],h.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",h)},75143:function(e,t,i){"use strict";var n=i(22289),o=i(85932),r=i(7909),s=i(36400),a=i(29434),l=i(5266),u=i(97743),c=i(68097),d=i(22227),h=i.n(d);l.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",h()),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){let{api:l,lang:u,continuous:d,interimResults:h,sound:p}=e.o.speechRecognize;if(!l)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){var f;let t=new l;(m=new c.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(f=(0,r.attr)(e.od.documentElement,"lang"))?f:void 0,m.continuous=d,m.interimResults=h,m.sound=p,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},97743:function(e,t,i){"use strict";var n=i(81937);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},8962:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},68097:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return l}});var n=i(25045),o=i(31635),r=i(84839),s=i(60216),a=i(32560);class l extends s.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,a.closeSound)(this),l._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,l._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,a.sound)(this,{frequency:e})}constructor(e,t){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"_lang",void 0),(0,n._)(this,"_continuous",void 0),(0,n._)(this,"_interimResults",void 0),(0,n._)(this,"sound",void 0),(0,n._)(this,"_isEnabled",void 0),(0,n._)(this,"_restartTimeout",void 0),(0,n._)(this,"_onSpeechStart",void 0),(0,n._)(this,"_api",void 0),(0,n._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,l._instances.add(this)}}(0,n._)(l,"_instances",new Set),(0,o.__decorate)([r.autobind],l.prototype,"_onResults",null),(0,o.__decorate)([r.autobind],l.prototype,"_onProgress",null),(0,o.__decorate)([r.autobind],l.prototype,"_onError",null)},32560:function(e,t,i){"use strict";i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(81937);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let u=l.createGain(),c=l.createOscillator();c.type=a,c.frequency.value=i,u.gain.value=s,c.connect(u),u.connect(l.destination),c.start(),c.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(x,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(z,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return u||(u=i.t(A,2))},he:function(){return c||(c=i.t(P,2))},hu:function(){return d||(d=i.t(M,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(N,2))},ja:function(){return m||(m=i.t(B,2))},ko:function(){return f||(f=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return _||(_=i.t(H,2))},no:function(){return v||(v=i.t(V,2))},pl:function(){return b||(b=i.t(U,2))},pt_br:function(){return y||(y=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return S||(S=i.t(Y,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(q,2))},zh_tw:function(){return T||(T=i.t(J,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E,T,I=i(19922),D=i(20759),x=i(22350),j=i(97509),z=i(49668),L=i(33276),A=i(43517),P=i(8858),M=i(22922),R=i(81900),N=i(35420),B=i(18712),O=i(73363),F=i(74762),H=i(73759),V=i(72850),U=i(37161),W=i(62896),K=i(39996),$=i(62415),Y=i(93423),G=i(10179),q=i(62547),J=i(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},62415:function(e){e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(68616),s=i(23211),a=i(28077),l=i(71125),u=i(91206);i(75143);var c=i(73302),d=i(8962),h=i(43219);class p extends u.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,a.extendLang)(h),(0,l.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){s.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),s.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{s.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),s.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&s.Dom.isText(o)&&s.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,d.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,n._)(this,"messagePopup",void 0),(0,n._)(this,"__hidePopupTimeout",void 0),(0,n._)(this,"_commandToWord",{})}}(0,o.__decorate)([(0,r.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),(0,o.__decorate)([(0,r.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),c.Jodit.plugins.add("speech-recognize",p)},24268:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(49989),s=i.n(r);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",s()),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:s(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},30885:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},48918:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},47229:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},67026:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},69495:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},59903:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},38522:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},81089:function(e){e.exports={Spellcheck:"בדיקת איות"}},59985:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},43439:function(e){e.exports={Spellcheck:"Spellchecking"}},33494:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(x,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(z,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return u||(u=i.t(A,2))},he:function(){return c||(c=i.t(P,2))},hu:function(){return d||(d=i.t(M,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(N,2))},ja:function(){return m||(m=i.t(B,2))},ko:function(){return f||(f=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return _||(_=i.t(H,2))},no:function(){return v||(v=i.t(V,2))},pl:function(){return b||(b=i.t(U,2))},pt_br:function(){return y||(y=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return S||(S=i.t(Y,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(q,2))},zh_tw:function(){return T||(T=i.t(J,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E,T,I=i(30885),D=i(48918),x=i(47229),j=i(67026),z=i(69495),L=i(59903),A=i(38522),P=i(81089),M=i(59985),R=i(43439),N=i(57759),B=i(93203),O=i(32540),F=i(68429),H=i(45596),V=i(91685),U=i(63794),W=i(69977),K=i(51647),$=i(75160),Y=i(54472),G=i(84872),q=i(18310),J=i(95042)},57759:function(e){e.exports={Spellcheck:"Controllo ortografico"}},93203:function(e){e.exports={Spellcheck:"スペルチェック"}},32540:function(e){e.exports={Spellcheck:"맞춤법 검사"}},68429:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},45596:function(e){e.exports={Spellcheck:"Spellingcontrole"}},91685:function(e){e.exports={Spellcheck:"Stavekontroll"}},63794:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},69977:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},51647:function(e){e.exports={Spellcheck:"Проверка орфографии"}},75160:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},54472:function(e){e.exports={Spellcheck:"Yazım denetimi"}},84872:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},18310:function(e){e.exports={Spellcheck:"拼写检查"}},95042:function(e){e.exports={Spellcheck:"拼字檢查"}},90204:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(7909),l=i(91206);i(24268);var u=i(33494);class c extends l.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),(0,n._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,s.extendLang)(u)}}(0,o.__decorate)([r.autobind],c.prototype,"toggleSpellcheck",null),s.pluginSystem.add("spellcheck",c)},88580:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},86236:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...e){super(...e),(0,n._)(this,"charCounter",null),(0,n._)(this,"wordCounter",null),(0,n._)(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,n._)(this,"calc",this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout))}}s.pluginSystem.add("stat",l)},79803:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},67582:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(79803);let d=!r.IS_ES_NEXT&&r.IS_IE;class h extends c.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,u.offset)(e.container,e,e.od,!0),n=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===n)return;let o=e.toolbarContainer;o&&(n?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",n)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){a.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...e){super(...e),(0,n._)(this,"__isToolbarStuck",!1),(0,n._)(this,"__dummyBox",void 0),(0,n._)(this,"__createDummy",e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),a.Dom.before(e,this.__dummyBox)}),(0,n._)(this,"addSticky",e=>{this.__isToolbarStuck||(d&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,u.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,u.css)(this.__dummyBox,{height:e.offsetHeight})}),(0,n._)(this,"removeSticky",e=>{this.__isToolbarStuck&&((0,u.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,o.__decorate)([(0,s.throttle)()],h.prototype,"__onScroll",null),l.pluginSystem.add("sticky",h)},18993:function(e,t,i){"use strict";var n=i(23211),o=i(29434),r=i(5266),s=i(81875),a=i.n(s);r.Config.prototype.usePopupForSpecialCharacters=!1,r.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",a()),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},80696:function(e){e.exports={symbols:"رمز"}},33433:function(e){e.exports={symbols:"symbol"}},59488:function(e){e.exports={symbols:"Symbol"}},14099:function(e){e.exports={symbols:"S\xedmbolo"}},64394:function(e){e.exports={symbols:"سمبل"}},96978:function(e){e.exports={symbols:"Symbolit"}},54055:function(e){e.exports={symbols:"caract\xe8re"}},15164:function(e){e.exports={symbols:"תו מיוחד"}},42412:function(e){e.exports={symbols:"Szimb\xf3lum"}},98710:function(e){e.exports={symbols:"simbol"}},91017:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(I,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(j,2))},fr:function(){return u||(u=i.t(z,2))},he:function(){return c||(c=i.t(L,2))},hu:function(){return d||(d=i.t(A,2))},id:function(){return h||(h=i.t(P,2))},it:function(){return p||(p=i.t(M,2))},ja:function(){return m||(m=i.t(R,2))},ko:function(){return f||(f=i.t(N,2))},mn:function(){return g||(g=i.t(B,2))},nl:function(){return _||(_=i.t(O,2))},pl:function(){return v||(v=i.t(F,2))},pt_br:function(){return b||(b=i.t(H,2))},ru:function(){return y||(y=i.t(V,2))},tr:function(){return w||(w=i.t(U,2))},ua:function(){return k||(k=i.t(W,2))},zh_cn:function(){return S||(S=i.t(K,2))},zh_tw:function(){return C||(C=i.t($,2))}});var n,o,r,s,a,l,u,c,d,h,p,m,f,g,_,v,b,y,w,k,S,C,E=i(80696),T=i(33433),I=i(59488),D=i(14099),x=i(64394),j=i(96978),z=i(54055),L=i(15164),A=i(42412),P=i(98710),M=i(68294),R=i(3294),N=i(44837),B=i(72320),O=i(87141),F=i(10099),H=i(442),V=i(54554),U=i(86581),W=i(97493),K=i(58585),$=i(57629)},68294:function(e){e.exports={symbols:"Simbolo"}},3294:function(e){e.exports={symbols:"symbol"}},44837:function(e){e.exports={symbols:"기호"}},72320:function(e){e.exports={symbols:"тэмдэгт"}},87141:function(e){e.exports={symbols:"symbool"}},10099:function(e){e.exports={symbols:"symbol"}},442:function(e){e.exports={symbols:"S\xedmbolo"}},54554:function(e){e.exports={symbols:"символ"}},86581:function(e){e.exports={symbols:"Sembol"}},97493:function(e){e.exports={symbols:"символ"}},58585:function(e){e.exports={symbols:"符号"}},57629:function(e){e.exports={symbols:"符號"}},11774:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(93640),l=i(18855);i(18993);var u=i(91017);class c extends l.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
243
244
  <div class="jodit-symbols__container_table">
244
245
  <table class="jodit-symbols__table"><tbody></tbody></table>
245
246
  </div>