jodit 4.15.5 → 4.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +11 -2
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +11 -2
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +11 -2
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +11 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/plugins/link/link.js +9 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
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.
|
|
4
|
+
* Version: v4.15.6
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],t);else{var i="object"==typeof exports?t(require("{}")):t(e["{}"]);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,function(e){return function(){var t,i,o={5266:function(e,t,i){"use strict";i.d(t,{Config:function(){return r}});var o=i(25045),n=i(81937);let s={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){(0,o._)(this,"cache",!0),(0,o._)(this,"defaultTimeout",100),(0,o._)(this,"namespace",""),(0,o._)(this,"safeMode",!1),(0,o._)(this,"width","auto"),(0,o._)(this,"height","auto"),(0,o._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,o._)(this,"commandToHotkeys",void 0),(0,o._)(this,"license",""),(0,o._)(this,"preset","custom"),(0,o._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,o._)(this,"ownerDocument",n.globalDocument),(0,o._)(this,"ownerWindow",n.globalWindow),(0,o._)(this,"shadowRoot",null),(0,o._)(this,"nonce",""),(0,o._)(this,"zIndex",0),(0,o._)(this,"readonly",!1),(0,o._)(this,"disabled",!1),(0,o._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,o._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,o._)(this,"toolbarButtonSize","middle"),(0,o._)(this,"allowTabNavigation",!1),(0,o._)(this,"inline",!1),(0,o._)(this,"theme","default"),(0,o._)(this,"saveModeInStorage",!1),(0,o._)(this,"asyncStorage",{}),(0,o._)(this,"editorClassName",!1),(0,o._)(this,"className",!1),(0,o._)(this,"style",!1),(0,o._)(this,"containerStyle",!1),(0,o._)(this,"styleValues",{}),(0,o._)(this,"triggerChangeEvent",!0),(0,o._)(this,"direction",""),(0,o._)(this,"language","auto"),(0,o._)(this,"debugLanguage",!1),(0,o._)(this,"i18n",!1),(0,o._)(this,"tabIndex",-1),(0,o._)(this,"toolbar",!0),(0,o._)(this,"statusbar",!0),(0,o._)(this,"showTooltip",!0),(0,o._)(this,"showTooltipDelay",200),(0,o._)(this,"useNativeTooltip",!1),(0,o._)(this,"defaultActionOnPaste",n.INSERT_AS_HTML),(0,o._)(this,"enter",n.PARAGRAPH),(0,o._)(this,"iframe",!1),(0,o._)(this,"editHTMLDocumentMode",!1),(0,o._)(this,"enterBlock","br"!==this.enter?this.enter:n.PARAGRAPH),(0,o._)(this,"defaultMode",n.MODE_WYSIWYG),(0,o._)(this,"useSplitMode",!1),(0,o._)(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,o._)(this,"colorPickerDefaultTab","background"),(0,o._)(this,"imageDefaultWidth",300),(0,o._)(this,"removeButtons",[]),(0,o._)(this,"disablePlugins",[]),(0,o._)(this,"extraPlugins",[]),(0,o._)(this,"basePath",void 0),(0,o._)(this,"extraButtons",[]),(0,o._)(this,"extraIcons",{}),(0,o._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,o._)(this,"sizeLG",900),(0,o._)(this,"sizeMD",700),(0,o._)(this,"sizeSM",400),(0,o._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
|
|
9
|
-
`,{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,o._)(this,"controls",void 0),(0,o._)(this,"events",{}),(0,o._)(this,"textIcons",!1),(0,o._)(this,"popupRoot",null),(0,o._)(this,"showBrowserColorPicker",!0),Object.assign(this,s)}}(0,o._)(r,"__defaultOptions",void 0),s=r.prototype,r.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return m}});var o=i(25045),n=i(81937),s=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),p=i(28712),f=i(14228);class m{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let n=(0,s.setTimeout)(e,t,...i),r=o.label||n;return this.timers.set(r,n),this.__callbacks.set(r,e),n}updateTimeout(e,t){if((0,p.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,s.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,h.isString)(e))return this.clearLabel(e);(0,s.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,n=!1,l=[],h=(...t)=>{if(!n){o=0;let i=e(...t);if(n=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,u.isPromise)(i)?i.finally(e):e()}}},d=(...r)=>{n=!1,t?(!o&&i&&h(...r),(0,s.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(t)?t():t),this.timers.set(e,o)):h(...r)};return(0,c.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return d(...e),t}:d}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...s)=>{if(i=s,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,s,r;return(...i)=>{(n=!0,r=i,t)?o||(s=()=>{n?(e(...r),n=!1,o=this.setTimeout(s,(0,a.isFunction)(t)?t():t),this.timers.set(s,o)):o=null})():e(...r)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!n.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 o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let s=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(i),n((0,f.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,s.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((e,t)=>{let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},t?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(e=>{this.clearTimeout(e)})),(0,o._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return o.Async}});var o=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return c}});var o=i(25045),n=i(91231),s=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||this)}get isReady(){return this.componentStatus===s.STATUSES.ready}get isDestructed(){return this.componentStatus===s.STATUSES.destructed}get isInDestruct(){return s.STATUSES.beforeDestruct===this.componentStatus||s.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(s.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(s.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 o=l.get(this),n=o?.[e];n&&n.length&&n.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,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new n.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",s.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",s.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=i(80251),n=i(69364),s=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 s}});var o=i(25045),n=i(80251);class s extends n.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,o._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,s="u">typeof document?document:void 0,r=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",h="Backspace",d="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",_="ArrowDown",v="Delete",b=[u,h,v,m,_,g,f,d,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),y=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),S=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:C,isMin:E}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=s.currentScript;if(e)return S(e.src);let t=s.querySelectorAll("script[src]");return t&&t.length?S(t[t.length-1].src):S(n.location.href)})(),I=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.15.5","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,E,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,b,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","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,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,y,"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:y?"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,h,"KEY_DELETE",0,v,"KEY_DOWN",0,_,"KEY_ENTER",0,d,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,r,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,I,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!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,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,s,"globalWindow",0,n,"lang",0,{}])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var o=i(25045),n=i(81937),s=i(23211),r=i(65946),a=i(28712);class l{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>s.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){let e=this.element("iframe",{sandbox:"allow-same-origin"});s.Dom.append(this.doc.body,e);let t=e.contentWindow?.document;if((0,a.assert)(t,"iframe.contentWindow.document"),!t)throw Error("Iframe error");return t.open(),t.write("<!DOCTYPE html><html><head></head><body></body></html>"),t.close(),[t.body,e]}span(e,t,i){let o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(s.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&s.Dom.hide(o)})}return o}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){(0,o._)(this,"document",void 0),(0,o._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return o.Create}});var o=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return n}});var o=i(91565);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.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 c},cached:function(){return a}});var o=i(69364),n=i(23211),s=i(28686),r=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,s.isFunction)(i.get)?null:i.value}function l(e,t,i){let o=i.get;if(!o)throw(0,r.error)("Getter property descriptor expected");i.get=function(){let e=o.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,s.isFunction)(a))throw(0,r.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){let t=this.od??document,i=c.get(t);if(l&&i?.has(this.constructor))return i.get(this.constructor)?.cloneNode(!0);let o=a.apply(this,e);return l&&n.Dom.isElement(o)&&(i?i.set(this.constructor,o):c.set(t,new WeakMap([[this.constructor,o]]))),l?o.cloneNode(!0):o},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,s.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return r},getComponentClass:function(){return a}});var o=i(81937),n=i(421);let s=new Map;function r(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,n.getClassName)(e.prototype);if(s.has(i)&&!o.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return s.set(i,t),t}function a(e){return s.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),n=i(28686),s=i(28712),r=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,s.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.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 n}});var o=i(91565);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],s=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<s.length;e++){let t=s[e],r=Object.getOwnPropertyDescriptor(n.prototype,t);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return r.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return s}});var o=i(91565),n=i(33201);function s(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.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 r}});var o=i(16964),n=i(91565),s=i(33201);function r(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,s.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return s.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),n=i(51676),s=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},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 s}});var o=i(69364),n=i(31534);function s(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,s=e[t];Object.defineProperty(e,t,{get:()=>i.storage.get(o)??s,set(e){i.storage.set(o,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return r}});var o=i(69364),n=i(91565),s=i(33201);function r(e){return(t,i)=>{let r=t[i];if(!(0,n.isFunction)(r))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],s=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...r){o.clearTimeout(s),e(t)?n.apply(t,r):s=o.setTimeout(()=>i(...r),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return h}});var o=i(69364),n=i(70535),s=i(32328),r=i(91565),a=i(62101),l=i(31534),c=i(33201),u=i(71125);function h(e,t){return(i,h)=>{if(!(0,r.isFunction)(i[h]))throw(0,c.error)("Handler must be a Function");let d=t?.immediately??!0,p=t?.context,f=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[h](e,...i)};d||(c=t.async.microDebounce(c,!0)),(0,s.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),s=p;i.length&&(s=t.get(i)),(0,r.isFunction)(s)&&(s=s(t)),o.events.on(s||t,n,c),s||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(s||t,n,c).off(n,c)});return}let s=e.split("."),[l]=s,h=s.slice(1),d=t[l];(0,a.isPlainObject)(d)&&(0,n.observable)(d).on("change."+h.join("."),c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=d;i!==e&&(d=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(d)&&(d=(0,n.observable)(d)).on("change."+h.join("."),c),c(l,i,d))},get:()=>f&&f.get?f.get.call(t):d})})};(0,r.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return b}});var o=i(81937),n=i(88475),s=i(17312),r=i(91565),a=i(46248),l=i(3213),c=i(85932),u=i(18303),h=i(4040),d=i(28712),p=i(7909),f=i(80991),m=i(36400),g=i(33201),_=i(71125);let v=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,s=e;i.s.save();do n=!1,(o=s.nextSibling)&&!b.isBlock(o)&&!b.isTag(o,"br")&&(n=!0,s=o);while(n)return b.__wrapElements(t,i,e,s)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let s=i;for(;s&&(s=i.nextSibling,n.appendChild(i),i!==o&&s);)i=s;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,s=e,r=e;i.s.save();do n=!1,(o=s.previousSibling)&&!b.isBlock(o)&&(n=!0,s=o);while(n)do n=!1,(o=r.nextSibling)&&!b.isBlock(o)&&(n=!0,r=o);while(n)return b.__wrapElements(t,i,s,r)}static wrap(e,t,i){let o=(0,c.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(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}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 o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=o?.nextSibling}o=e}}static replace(e,t,i,o=!1,s=!1){let r;if((0,a.isHTML)(t)&&((0,d.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,d.assert)(i,"Need create instance for new tag"),r=i.element(t)):r=t,!s)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&b.isElement(e)&&b.isElement(r)&&(0,n.toArray)(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(r,e),r}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.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=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,r.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return b.isText(e)?n(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!n(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,r.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,o.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,u.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&o.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){if(!b.isNode(e))return!1;let t=e.ownerDocument?.defaultView;return e instanceof(t?t.HTMLElement:HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.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 o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",s=e?.[o];if(!s)return null;do{if(t(s))return s;let i=s[o]||s[n];if(!i&&s.parentNode!==e){do s=s.parentNode;while(s&&!s[n]&&s.parentNode!==e)i=s?.[n]}s=i}while(s)return null}static prev(e,t,i,o=!0){return b.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return b.find(e,t,i,!0,o)}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 o=e=>b.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?b.prev(e,o,n):b.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let s=this.nextGen(e,i,o,n),r=s.next();for(;!r.done;){if(t(r.value))return r.value;r=s.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],s=e;do{let t=i?s.nextSibling:s.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),s=s.parentNode}while(s&&s!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let s=e;do{if(t(s))return s||null;if(n&&s&&s[n]){let e=b.findWithCurrent(s[n],t,s,o,n);if(e)return e}for(;s&&!s[o]&&s!==i;)s=s.parentNode;s&&s[o]&&s!==i&&(s=s[o])}while(s&&s!==i)return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let o=b.sibling(e,t);for(;o&&!i(o);)o=b.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>!b.isEmptyTextNode(e)&&!!(!b.isText(e)||e.nodeValue?.length&&(0,h.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,h.trim)(e?.nodeValue||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,r.isFunction)(t))o=t;else if((0,s.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return b.up(e,o,i)}static furthest(e,t,i){let o=null,n=e?.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=n?.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&b.prepend(e,t)}static after(e,t){e.parentNode?.insertBefore(t,e.nextSibling)}static before(e,t){e.parentNode?.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,s.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,s=()=>!0){let r=(e.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!s(e)||(b.safeRemove(e),!1)).forEach(e=>{r.appendChild(e)}),t.insertBefore(r,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,o.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,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.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,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+o.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(o.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 o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(23211),n=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var o=i(25045),n=i(31635),s=i(49574),r=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=r.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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.__schedulerController?.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){this.isWorked=!0;let e=0,t=this.options.timeoutChunkSize??50;for(;!this.isFinished&&e<t;){let t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&(this.emit("visit",e)??!1)}constructor(e,t={}){super(),(0,o._)(this,"async",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"workNodes",void 0),(0,o._)(this,"hadAffect",void 0),(0,o._)(this,"isWorked",void 0),(0,o._)(this,"isFinished",void 0),(0,o._)(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,n.__decorate)([s.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return h}});var o=i(25045),n=i(81937),s=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(e){return this.__mutedEvents.add(e??"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(e??"*"),this}__eachEvent(e,t){(0,s.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||u.defaultNameSpace;t.call(this,i[0],o)})}__getStore(e){if(!e)throw(0,c.error)("Need subject");if(void 0===e[this.__key]){let t=new u.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,o){let s,u,h,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(s=this,u=e,h=t,p=i):(s=e,u=t,h=i,p=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(s))return s.forEach(e=>{this.on(e,u,h,p)}),this;let f=s,m=this.__getStore(f),g=this,_=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(_=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{if(0===e.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(e,t,h)){let i={event:e,originalCallback:h,syntheticCallback:_};if(m.set(e,t,i,p?.top),d(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=t,f.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(f,_)}}}),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,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,s,r,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,s=e,r=t,a=i):(n=e,s=t,r=i,a=o);let c=(...e)=>(this.off(n,s,c),r(...e));return this.on(n,s,c,a),this}off(e,t,i){let o,n,s;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,n=e,s=t):(o=e,n=t,s=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,s)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(n)||(0,l.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(c,"."+e)}),this.__removeStoreFromSubject(c),this;let p=e=>{d(c)&&(c.removeEventListener(e.event,e.syntheticCallback,e.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,a.isFunction)(s)){let o=h.indexOf(e,t,s);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===u.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,o=(0,l.isString)(e)?e:t;if("string"!=typeof o)throw(0,c.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===u.defaultNameSpace&&n.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 o,n,s=(0,l.isString)(e)?this:e,r=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!d(s)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(s);return!(0,l.isString)(r)&&d(s)?this.__triggerNativeEvent(s,t):this.__eachEvent(r,(e,t)=>{if(d(s))this.__triggerNativeEvent(s,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),n=t.syntheticCallback.call(s,e,...a),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==u.defaultNameSpace||d(s)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[s,e+"."+t,...a]);void 0!==i&&(o=i)})}}),o}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,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",n.globalDocument),(0,o._)(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,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return n}});var o=i(25045);class n{on(e,t){return this.__map.has(e)||this.__map.set(e,new Set),this.__map.get(e)?.add(t),this}off(e,t){return this.__map.has(e)&&this.__map.get(e)?.delete(t),this}destruct(){this.__map.clear()}emit(e,...t){let i;return this.__map.has(e)&&this.__map.get(e)?.forEach(e=>{i=e(...t)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";let o=new(i(93747)).EventEmitter;i.d(t,["eventEmitter",0,o])},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return r.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return r.defaultNameSpace},observable:function(){return s.observable}});var o=i(93747),n=i(60216),s=i(70535),r=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var o=i(17312),n=i(94013),s=i(62101),r=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),u=(n,...s)=>{if((0,o.isArray)(n))return void n.map(e=>u(e,...s));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...s)))}finally{t[n]=!1}},h=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,r.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,s.isPlainObject)(t)&&h(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];u(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,t?.valueOf?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[a])&&h(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return h(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a}});var o=i(25045),n=i(88475),s=i(28712);let r="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,s.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[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,o._)(this,"__store",new Map)}}i.d(t,["defaultNameSpace",0,r])},28077:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return b},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(24497),n=i(85932),s=i(31534),r=i(74264),a=i(7909),l=i(80991),c=i(421),u=i(85305),h=i(42689),d=i(81937),p=i(27795);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let _=new u.PluginSystem({getContainer:b}),v=new WeakMap;function b(e,t,i="div",l=!1){let u,h=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",d=v.get(e)||{},f=h+i,m=(0,s.isViewObject)(e)?e:e.j;if(!d[f]){let t=m.c;if(u=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;u=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,r.kebabCase)(h)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(u,n),d[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete d[f],Object.keys(d).length&&v.delete(e)}),v.set(e,d),m.events.fire("getContainer",n)}return d[f].classList.remove("jodit_theme_default","jodit_theme_dark"),d[f].classList.add("jodit_theme_"+(m.o.theme||"default")),d[f]}function w(e,t,i){return e.popupRoot??e.shadowRoot??p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i)??i}let y=h.eventEmitter;i.d(t,["eventEmitter",0,y,"extendLang",0,e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,_])},78982:function(e,t,i){"use strict";var o=i(17312);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return s.toArray}});var o=i(78982),n=i(32328),s=i(88475)},32328:function(e,t,i){"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return o}})},88475:function(e,t,i){"use strict";var o=i(23283),n=i(43379);i.d(t,["toArray",0,function(...e){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,n.reset)("Array.from")??Array.from).apply(Array,e)}])},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return s},setTimeout:function(){return n}});var o=i(81937);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function s(e){o.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(81937);function n(){let e;try{let t=o.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 o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return d.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return y.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return E.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return D.isVoid},isWindow:function(){return k.isWindow}});var o=i(98740),n=i(72068),s=i(17312),r=i(22289),a=i(94013),l=i(91565),c=i(46248),u=i(82166),h=i(52433),d=i(99732),p=i(24497),f=i(44998),m=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),w=i(52100),y=i(3213),S=i(85932),C=i(91764),E=i(50083),I=i(31534),D=i(18303),k=i(3513)},72068:function(e,t,i){"use strict";function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return o}})},17312:function(e,t,i){"use strict";function o(e){return Array.isArray(e)}i.d(t,{isArray:function(){return o}})},22289:function(e,t,i){"use strict";function o(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return o}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return n},isFastEqual:function(){return s}});var o=i(3347);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function s(e,t){return e===t}},91565:function(e,t,i){"use strict";function o(e){return"function"==typeof e}i.d(t,{isFunction:function(){return o}})},82166:function(e,t,i){"use strict";function o(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 o}})},46248:function(e,t,i){"use strict";var o=i(85932);i.d(t,["isHTML",0,e=>(0,o.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 r}});var o=i(23211),n=i(91565),s=i(18303);function r(e){return!(0,s.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,s.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,s.isVoid)(e)&&o.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return s}});var o=i(70222),n=i(85932);function s(e){return(0,n.isString)(e)&&(0,o.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 n}});var o=i(91565);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";var o=i(85932);i.d(t,["isLicense",0,e=>(0,o.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 n}});var o=i(23211);function n(e){return o.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{isNativeFunction:function(){return o}})},72412:function(e,t,i){"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return o}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return n}});var o=i(85932);function n(e){if((0,o.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 n}});var o=i(3513);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return o}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return n}});var o=i(91565);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return n},isStringArray:function(){return s}});var o=i(17312);function n(e){return"string"==typeof e}function s(e){return(0,o.isArray)(e)&&n(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return n}});var o=i(81937);function n(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=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return o}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return n}});var o=i(91565);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function o(e){return null==e}i.d(t,{isVoid:function(){return o}})},3513:function(e,t,i){"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return o}})},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),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return u}});var o=i(81937),n=i(23211),s=i(4040),r=i(7909),a=i(80991),l=i(28723);function c(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 u(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 u=o.globalDocument.createElement("iframe");(0,a.css)(u,"display","none"),n.Dom.append(o.globalDocument.body,u);let h="";try{let t=u.contentDocument||(u.contentWindow?u.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||"")&&n.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=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,r.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null)}}),h=t.firstChild?(0,s.trim)(t.body.innerHTML):""}}catch{}finally{n.Dom.safeRemove(u)}return h&&(e=h),(0,s.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 o=i(81937),n=i(23211),s=i(88475),r=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=o.globalDocument.createElement("div");i.innerHTML=e;let r=[];i.firstChild&&n.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":r.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){r.push(e);break}(0,s.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:r.push(e)}}),n.Dom.safeRemove.apply(null,r),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(r.trim).join(`
|
|
9
|
+
`,{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,o._)(this,"controls",void 0),(0,o._)(this,"events",{}),(0,o._)(this,"textIcons",!1),(0,o._)(this,"popupRoot",null),(0,o._)(this,"showBrowserColorPicker",!0),Object.assign(this,s)}}(0,o._)(r,"__defaultOptions",void 0),s=r.prototype,r.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return m}});var o=i(25045),n=i(81937),s=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),p=i(28712),f=i(14228);class m{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let n=(0,s.setTimeout)(e,t,...i),r=o.label||n;return this.timers.set(r,n),this.__callbacks.set(r,e),n}updateTimeout(e,t){if((0,p.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,s.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,h.isString)(e))return this.clearLabel(e);(0,s.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,n=!1,l=[],h=(...t)=>{if(!n){o=0;let i=e(...t);if(n=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,u.isPromise)(i)?i.finally(e):e()}}},d=(...r)=>{n=!1,t?(!o&&i&&h(...r),(0,s.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(t)?t():t),this.timers.set(e,o)):h(...r)};return(0,c.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return d(...e),t}:d}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...s)=>{if(i=s,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,s,r;return(...i)=>{(n=!0,r=i,t)?o||(s=()=>{n?(e(...r),n=!1,o=this.setTimeout(s,(0,a.isFunction)(t)?t():t),this.timers.set(s,o)):o=null})():e(...r)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!n.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 o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let s=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(i),n((0,f.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,s.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((e,t)=>{let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},t?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(e=>{this.clearTimeout(e)})),(0,o._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return o.Async}});var o=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return c}});var o=i(25045),n=i(91231),s=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||this)}get isReady(){return this.componentStatus===s.STATUSES.ready}get isDestructed(){return this.componentStatus===s.STATUSES.destructed}get isInDestruct(){return s.STATUSES.beforeDestruct===this.componentStatus||s.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(s.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(s.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 o=l.get(this),n=o?.[e];n&&n.length&&n.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,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new n.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",s.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",s.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=i(80251),n=i(69364),s=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 s}});var o=i(25045),n=i(80251);class s extends n.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,o._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,s="u">typeof document?document:void 0,r=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",h="Backspace",d="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",_="ArrowDown",v="Delete",b=[u,h,v,m,_,g,f,d,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),y=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),S=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:C,isMin:E}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=s.currentScript;if(e)return S(e.src);let t=s.querySelectorAll("script[src]");return t&&t.length?S(t[t.length-1].src):S(n.location.href)})(),I=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.15.6","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,E,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,b,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","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,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,y,"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:y?"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,h,"KEY_DELETE",0,v,"KEY_DOWN",0,_,"KEY_ENTER",0,d,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,r,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,I,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!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,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,s,"globalWindow",0,n,"lang",0,{}])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var o=i(25045),n=i(81937),s=i(23211),r=i(65946),a=i(28712);class l{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>s.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){let e=this.element("iframe",{sandbox:"allow-same-origin"});s.Dom.append(this.doc.body,e);let t=e.contentWindow?.document;if((0,a.assert)(t,"iframe.contentWindow.document"),!t)throw Error("Iframe error");return t.open(),t.write("<!DOCTYPE html><html><head></head><body></body></html>"),t.close(),[t.body,e]}span(e,t,i){let o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(s.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&s.Dom.hide(o)})}return o}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){(0,o._)(this,"document",void 0),(0,o._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return o.Create}});var o=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return n}});var o=i(91565);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.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 c},cached:function(){return a}});var o=i(69364),n=i(23211),s=i(28686),r=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,s.isFunction)(i.get)?null:i.value}function l(e,t,i){let o=i.get;if(!o)throw(0,r.error)("Getter property descriptor expected");i.get=function(){let e=o.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,s.isFunction)(a))throw(0,r.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){let t=this.od??document,i=c.get(t);if(l&&i?.has(this.constructor))return i.get(this.constructor)?.cloneNode(!0);let o=a.apply(this,e);return l&&n.Dom.isElement(o)&&(i?i.set(this.constructor,o):c.set(t,new WeakMap([[this.constructor,o]]))),l?o.cloneNode(!0):o},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,s.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return r},getComponentClass:function(){return a}});var o=i(81937),n=i(421);let s=new Map;function r(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,n.getClassName)(e.prototype);if(s.has(i)&&!o.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return s.set(i,t),t}function a(e){return s.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),n=i(28686),s=i(28712),r=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,s.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.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 n}});var o=i(91565);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],s=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<s.length;e++){let t=s[e],r=Object.getOwnPropertyDescriptor(n.prototype,t);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return r.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return s}});var o=i(91565),n=i(33201);function s(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.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 r}});var o=i(16964),n=i(91565),s=i(33201);function r(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,s.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return s.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),n=i(51676),s=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},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 s}});var o=i(69364),n=i(31534);function s(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,s=e[t];Object.defineProperty(e,t,{get:()=>i.storage.get(o)??s,set(e){i.storage.set(o,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return r}});var o=i(69364),n=i(91565),s=i(33201);function r(e){return(t,i)=>{let r=t[i];if(!(0,n.isFunction)(r))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],s=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...r){o.clearTimeout(s),e(t)?n.apply(t,r):s=o.setTimeout(()=>i(...r),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return h}});var o=i(69364),n=i(70535),s=i(32328),r=i(91565),a=i(62101),l=i(31534),c=i(33201),u=i(71125);function h(e,t){return(i,h)=>{if(!(0,r.isFunction)(i[h]))throw(0,c.error)("Handler must be a Function");let d=t?.immediately??!0,p=t?.context,f=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[h](e,...i)};d||(c=t.async.microDebounce(c,!0)),(0,s.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),s=p;i.length&&(s=t.get(i)),(0,r.isFunction)(s)&&(s=s(t)),o.events.on(s||t,n,c),s||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(s||t,n,c).off(n,c)});return}let s=e.split("."),[l]=s,h=s.slice(1),d=t[l];(0,a.isPlainObject)(d)&&(0,n.observable)(d).on("change."+h.join("."),c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=d;i!==e&&(d=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(d)&&(d=(0,n.observable)(d)).on("change."+h.join("."),c),c(l,i,d))},get:()=>f&&f.get?f.get.call(t):d})})};(0,r.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return b}});var o=i(81937),n=i(88475),s=i(17312),r=i(91565),a=i(46248),l=i(3213),c=i(85932),u=i(18303),h=i(4040),d=i(28712),p=i(7909),f=i(80991),m=i(36400),g=i(33201),_=i(71125);let v=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,s=e;i.s.save();do n=!1,(o=s.nextSibling)&&!b.isBlock(o)&&!b.isTag(o,"br")&&(n=!0,s=o);while(n)return b.__wrapElements(t,i,e,s)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let s=i;for(;s&&(s=i.nextSibling,n.appendChild(i),i!==o&&s);)i=s;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,s=e,r=e;i.s.save();do n=!1,(o=s.previousSibling)&&!b.isBlock(o)&&(n=!0,s=o);while(n)do n=!1,(o=r.nextSibling)&&!b.isBlock(o)&&(n=!0,r=o);while(n)return b.__wrapElements(t,i,s,r)}static wrap(e,t,i){let o=(0,c.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(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}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 o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=o?.nextSibling}o=e}}static replace(e,t,i,o=!1,s=!1){let r;if((0,a.isHTML)(t)&&((0,d.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,d.assert)(i,"Need create instance for new tag"),r=i.element(t)):r=t,!s)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&b.isElement(e)&&b.isElement(r)&&(0,n.toArray)(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(r,e),r}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.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=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,r.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return b.isText(e)?n(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!n(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,r.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,o.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,u.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&o.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){if(!b.isNode(e))return!1;let t=e.ownerDocument?.defaultView;return e instanceof(t?t.HTMLElement:HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.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 o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",s=e?.[o];if(!s)return null;do{if(t(s))return s;let i=s[o]||s[n];if(!i&&s.parentNode!==e){do s=s.parentNode;while(s&&!s[n]&&s.parentNode!==e)i=s?.[n]}s=i}while(s)return null}static prev(e,t,i,o=!0){return b.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return b.find(e,t,i,!0,o)}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 o=e=>b.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?b.prev(e,o,n):b.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let s=this.nextGen(e,i,o,n),r=s.next();for(;!r.done;){if(t(r.value))return r.value;r=s.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],s=e;do{let t=i?s.nextSibling:s.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),s=s.parentNode}while(s&&s!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let s=e;do{if(t(s))return s||null;if(n&&s&&s[n]){let e=b.findWithCurrent(s[n],t,s,o,n);if(e)return e}for(;s&&!s[o]&&s!==i;)s=s.parentNode;s&&s[o]&&s!==i&&(s=s[o])}while(s&&s!==i)return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let o=b.sibling(e,t);for(;o&&!i(o);)o=b.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>!b.isEmptyTextNode(e)&&!!(!b.isText(e)||e.nodeValue?.length&&(0,h.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,h.trim)(e?.nodeValue||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,r.isFunction)(t))o=t;else if((0,s.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return b.up(e,o,i)}static furthest(e,t,i){let o=null,n=e?.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=n?.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&b.prepend(e,t)}static after(e,t){e.parentNode?.insertBefore(t,e.nextSibling)}static before(e,t){e.parentNode?.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,s.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,s=()=>!0){let r=(e.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!s(e)||(b.safeRemove(e),!1)).forEach(e=>{r.appendChild(e)}),t.insertBefore(r,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,o.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,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.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,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+o.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(o.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 o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(23211),n=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var o=i(25045),n=i(31635),s=i(49574),r=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=r.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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.__schedulerController?.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){this.isWorked=!0;let e=0,t=this.options.timeoutChunkSize??50;for(;!this.isFinished&&e<t;){let t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&(this.emit("visit",e)??!1)}constructor(e,t={}){super(),(0,o._)(this,"async",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"workNodes",void 0),(0,o._)(this,"hadAffect",void 0),(0,o._)(this,"isWorked",void 0),(0,o._)(this,"isFinished",void 0),(0,o._)(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,n.__decorate)([s.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return h}});var o=i(25045),n=i(81937),s=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(e){return this.__mutedEvents.add(e??"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(e??"*"),this}__eachEvent(e,t){(0,s.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||u.defaultNameSpace;t.call(this,i[0],o)})}__getStore(e){if(!e)throw(0,c.error)("Need subject");if(void 0===e[this.__key]){let t=new u.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,o){let s,u,h,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(s=this,u=e,h=t,p=i):(s=e,u=t,h=i,p=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(s))return s.forEach(e=>{this.on(e,u,h,p)}),this;let f=s,m=this.__getStore(f),g=this,_=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(_=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{if(0===e.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(e,t,h)){let i={event:e,originalCallback:h,syntheticCallback:_};if(m.set(e,t,i,p?.top),d(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=t,f.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(f,_)}}}),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,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,s,r,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,s=e,r=t,a=i):(n=e,s=t,r=i,a=o);let c=(...e)=>(this.off(n,s,c),r(...e));return this.on(n,s,c,a),this}off(e,t,i){let o,n,s;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,n=e,s=t):(o=e,n=t,s=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,s)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(n)||(0,l.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(c,"."+e)}),this.__removeStoreFromSubject(c),this;let p=e=>{d(c)&&(c.removeEventListener(e.event,e.syntheticCallback,e.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,a.isFunction)(s)){let o=h.indexOf(e,t,s);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===u.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,o=(0,l.isString)(e)?e:t;if("string"!=typeof o)throw(0,c.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===u.defaultNameSpace&&n.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 o,n,s=(0,l.isString)(e)?this:e,r=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!d(s)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(s);return!(0,l.isString)(r)&&d(s)?this.__triggerNativeEvent(s,t):this.__eachEvent(r,(e,t)=>{if(d(s))this.__triggerNativeEvent(s,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),n=t.syntheticCallback.call(s,e,...a),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==u.defaultNameSpace||d(s)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[s,e+"."+t,...a]);void 0!==i&&(o=i)})}}),o}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,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",n.globalDocument),(0,o._)(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,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return n}});var o=i(25045);class n{on(e,t){return this.__map.has(e)||this.__map.set(e,new Set),this.__map.get(e)?.add(t),this}off(e,t){return this.__map.has(e)&&this.__map.get(e)?.delete(t),this}destruct(){this.__map.clear()}emit(e,...t){let i;return this.__map.has(e)&&this.__map.get(e)?.forEach(e=>{i=e(...t)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";let o=new(i(93747)).EventEmitter;i.d(t,["eventEmitter",0,o])},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return r.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return r.defaultNameSpace},observable:function(){return s.observable}});var o=i(93747),n=i(60216),s=i(70535),r=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var o=i(17312),n=i(94013),s=i(62101),r=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),u=(n,...s)=>{if((0,o.isArray)(n))return void n.map(e=>u(e,...s));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...s)))}finally{t[n]=!1}},h=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,r.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,s.isPlainObject)(t)&&h(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];u(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,t?.valueOf?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[a])&&h(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return h(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a}});var o=i(25045),n=i(88475),s=i(28712);let r="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,s.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[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,o._)(this,"__store",new Map)}}i.d(t,["defaultNameSpace",0,r])},28077:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return b},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(24497),n=i(85932),s=i(31534),r=i(74264),a=i(7909),l=i(80991),c=i(421),u=i(85305),h=i(42689),d=i(81937),p=i(27795);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let _=new u.PluginSystem({getContainer:b}),v=new WeakMap;function b(e,t,i="div",l=!1){let u,h=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",d=v.get(e)||{},f=h+i,m=(0,s.isViewObject)(e)?e:e.j;if(!d[f]){let t=m.c;if(u=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;u=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,r.kebabCase)(h)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(u,n),d[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete d[f],Object.keys(d).length&&v.delete(e)}),v.set(e,d),m.events.fire("getContainer",n)}return d[f].classList.remove("jodit_theme_default","jodit_theme_dark"),d[f].classList.add("jodit_theme_"+(m.o.theme||"default")),d[f]}function w(e,t,i){return e.popupRoot??e.shadowRoot??p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i)??i}let y=h.eventEmitter;i.d(t,["eventEmitter",0,y,"extendLang",0,e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,_])},78982:function(e,t,i){"use strict";var o=i(17312);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return s.toArray}});var o=i(78982),n=i(32328),s=i(88475)},32328:function(e,t,i){"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return o}})},88475:function(e,t,i){"use strict";var o=i(23283),n=i(43379);i.d(t,["toArray",0,function(...e){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,n.reset)("Array.from")??Array.from).apply(Array,e)}])},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return s},setTimeout:function(){return n}});var o=i(81937);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function s(e){o.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(81937);function n(){let e;try{let t=o.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 o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return d.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return y.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return E.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return D.isVoid},isWindow:function(){return k.isWindow}});var o=i(98740),n=i(72068),s=i(17312),r=i(22289),a=i(94013),l=i(91565),c=i(46248),u=i(82166),h=i(52433),d=i(99732),p=i(24497),f=i(44998),m=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),w=i(52100),y=i(3213),S=i(85932),C=i(91764),E=i(50083),I=i(31534),D=i(18303),k=i(3513)},72068:function(e,t,i){"use strict";function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return o}})},17312:function(e,t,i){"use strict";function o(e){return Array.isArray(e)}i.d(t,{isArray:function(){return o}})},22289:function(e,t,i){"use strict";function o(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return o}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return n},isFastEqual:function(){return s}});var o=i(3347);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function s(e,t){return e===t}},91565:function(e,t,i){"use strict";function o(e){return"function"==typeof e}i.d(t,{isFunction:function(){return o}})},82166:function(e,t,i){"use strict";function o(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 o}})},46248:function(e,t,i){"use strict";var o=i(85932);i.d(t,["isHTML",0,e=>(0,o.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 r}});var o=i(23211),n=i(91565),s=i(18303);function r(e){return!(0,s.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,s.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,s.isVoid)(e)&&o.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return s}});var o=i(70222),n=i(85932);function s(e){return(0,n.isString)(e)&&(0,o.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 n}});var o=i(91565);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";var o=i(85932);i.d(t,["isLicense",0,e=>(0,o.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 n}});var o=i(23211);function n(e){return o.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{isNativeFunction:function(){return o}})},72412:function(e,t,i){"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return o}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return n}});var o=i(85932);function n(e){if((0,o.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 n}});var o=i(3513);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return o}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return n}});var o=i(91565);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return n},isStringArray:function(){return s}});var o=i(17312);function n(e){return"string"==typeof e}function s(e){return(0,o.isArray)(e)&&n(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return n}});var o=i(81937);function n(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=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return o}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return n}});var o=i(91565);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function o(e){return null==e}i.d(t,{isVoid:function(){return o}})},3513:function(e,t,i){"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return o}})},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),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return u}});var o=i(81937),n=i(23211),s=i(4040),r=i(7909),a=i(80991),l=i(28723);function c(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 u(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 u=o.globalDocument.createElement("iframe");(0,a.css)(u,"display","none"),n.Dom.append(o.globalDocument.body,u);let h="";try{let t=u.contentDocument||(u.contentWindow?u.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||"")&&n.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=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,r.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null)}}),h=t.firstChild?(0,s.trim)(t.body.innerHTML):""}}catch{}finally{n.Dom.safeRemove(u)}return h&&(e=h),(0,s.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 o=i(81937),n=i(23211),s=i(88475),r=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=o.globalDocument.createElement("div");i.innerHTML=e;let r=[];i.firstChild&&n.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":r.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){r.push(e);break}(0,s.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:r.push(e)}}),n.Dom.safeRemove.apply(null,r),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(r.trim).join(`
|
|
10
10
|
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},6609:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return n}});var o=i(81937);function n(e){let t=o.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},82658:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),n=i(1277),s=i(6609),r=i(48838),a=i(48155),l=i(22852)},48838:function(e,t,i){"use strict";function o(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return o}})},48155:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return d}});var o=i(23211),n=i(93640),s=i(7909);let r=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){if(!o.Dom.isElement(e)&&!o.Dom.isFragment(e))return;let i=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&o.Dom.up(e.parentNode,a)&&i.push(e)}),i))o.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==o.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(r.has(e))return!1}return!0}(t)&&o.Dom.safeRemove(t);let l=t.removeEventAttributes??t.removeOnError,c=e=>{if(o.Dom.isElement(e)&&(l&&function(e){if(!o.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,s.attrRaw)(e,i,null)}(e),d(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,n.attr)(e,"target"))){let t=((0,n.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,n.attr)(e,"rel",t.join(" "))}};c(e),o.Dom.each(e,c)}let c=["src","data","action","formaction","poster","background","xlink:href"],u=new Set(["iframe","frame","object","embed"]);function h(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)&&u.has(t)}function d(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,n.attr)(e,"onerror",null),r=!0);let a=e.nodeName.toLowerCase(),l=(0,n.attr)(e,"href");if(t&&l&&h(l,a)){let t="u">typeof location?location.protocol:"http:";(0,n.attr)(e,"href",t+"//"+l),r=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,n.attr)(e,"srcdoc",null),r=!0),c)){let i=(0,s.attrRaw)(e,t);i&&h(i,a)&&((0,n.attr)(e,t,null),r=!0)}return r}},22852:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null,u=!1){let h=i.createElement("div");(0,n.isString)(t)?h.innerHTML=t:o.Dom.append(h,t);let d=[];return o.Dom.each(h,e=>{o.Dom.isElement(e)&&d.push(e)}),d.forEach(t=>{if(!t.parentNode)return;if(c&&o.Dom.isTag(t,c)){let n=t.nodeName.toLowerCase(),s=o.Dom.isTag(t,l)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${e(t.innerHTML,i,c,u)}%%%/jodit-${n}%%%`;o.Dom.before(t,i.createTextNode(s)),o.Dom.safeRemove(t);return}if(o.Dom.isTag(t,a))return void o.Dom.safeRemove(t);if(!o.Dom.isTag(t,r))return;let n=t.nextSibling;!(o.Dom.isText(n)&&/^\s/.test(n.nodeValue||""))&&n&&o.Dom.before(n,i.createTextNode(u?"%%%jodit-single-br%%%":" "))}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,o)=>`<${t?"/":""}${o}>`)}}});var o=i(23211),n=i(85932),s=i(4040);let r=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 u.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return n.clearTimeout},colorToHex:function(){return r.colorToHex},fuzzySearchIndex:function(){return u.fuzzySearchIndex},getContentWidth:function(){return c.getContentWidth},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getScrollParent:function(){return c.getScrollParent},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return u.i18n},innerWidth:function(){return c.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},position:function(){return c.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return n.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=i(45664),n=i(61077),s=i(28686),r=i(93387),a=i(82658),l=i(97022),c=i(86878),u=i(97642),h=i(93640),d={};for(var p in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getFixedPositionOffset","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(d[p]=(function(e){return h[e]}).bind(0,p));i.d(t,d)},97022:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return n.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return n.normalizeCssNumericValue},normalizeCssValue:function(){return n.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),n=i(19147),s=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},77367:function(e,t,i){"use strict";var o=i(93387),n=i(4040);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,o.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,n.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 c}});var o=i(70222),n=i(18303),s=i(93387),r=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,n.isVoid)(t)&&a.test(e)&&(0,o.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,r.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,o.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,s.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 s}});var o=i(81937),n=i(4040);function s(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,n.trim)(e.toLowerCase())).map(e=>o.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 o=i(4040);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,o.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 o(e){let t=e.ownerDocument?.defaultView,i=e.parentElement;for(;t&&i;){var o;if(""!==(o=t.getComputedStyle(i)).transform&&"none"!==o.transform||""!==o.perspective&&"none"!==o.perspective||""!==o.filter&&"none"!==o.filter||"transform"===o.willChange||"perspective"===o.willChange||"filter"===o.willChange||"paint"===o.contain||"layout"===o.contain||"strict"===o.contain||"content"===o.contain){let e=i.getBoundingClientRect();return{x:e.left,y:e.top}}i=i.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return o}})},34027:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=n.Dom.isHTMLElement(t),r=i&&(0,s.css)(t,"overflowY");return i&&"visible"!==r&&"hidden"!==r&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(81937),n=i(23211),s=i(93640)},86878:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return n.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return r.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=i(54447),n=i(2373),s=i(34027),r=i(83215),a=i(18073),l=i(69143),c=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 n}});var o=i(28686);function n(e){return(0,o.isString)(e)||(0,o.isArray)(e)?e.length:(0,o.isPlainObject)(e)?Object.keys(e).length:0}},69143:function(e,t,i){"use strict";let o=(e,t,i,n=!1)=>{let s,r,a;try{s=e.getBoundingClientRect()}catch(e){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=i.defaultView||i.parentWindow,h=u.pageYOffset||c.scrollTop||l.scrollTop,d=u.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!n&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=o(m,t,t.od,!0);r=s.top+e,a=s.left+i}else r=s.top+h-p,a=s.left+d-f;return{top:Math.round(r),left:Math.round(a),width:s.width,height:s.height}};i.d(t,["offset",0,o])},23599:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,n=!1){let s=t.getBoundingClientRect(),r=s.left,a=s.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!n){let{left:t,top:o}=e(i.iframe,i,!0);r+=t,a+=o}return{left:Math.round(r),top:Math.round(a),width:Math.round(t.offsetWidth??s.width),height:Math.round(t.offsetHeight??s.height)}}}});var o=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 n}});var o=i(81937);function n(e,t,i=0,s=1){let r=0,a,l=-1,c=0,u=0;for(a=i;r<e.length&&a<t.length;)e[r].toLowerCase()===t[a].toLowerCase()?(r++,c++,u=0,-1===l&&(l=a)):r>0&&(u>=s&&t[a]!==o.INVISIBLE_SPACE?(r=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return r===e.length?[l,c]:[-1,0]}},18080:function(e,t,i){"use strict";i.d(t,{i18n:function(){return c}});var o=i(81937),n=i(85932),s=i(99436),r=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,o=i.exec(e),n=e,s=0;for(;o&&void 0!==t[s];)n=n.replace(o[0],t[s].toString()),s+=1,o=i.exec(e);return n};function c(e,t,i){if(!(0,n.isString)(e))throw(0,r.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!i?.debugLanguage,u={},h=e=>t&&t.length?l(e,t):e,d=(0,r.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,r.defaultLanguage)(i?.language,d),f=t=>{if(!t)return;if((0,n.isString)(t[e]))return h(t[e]);let i=e.toLowerCase();if((0,n.isString)(t[i]))return h(t[i]);let o=(0,s.ucfirst)(e);if((0,n.isString)(t[o]))return h(t[o])};void 0!==o.lang[p]?u=o.lang[p]:c||(u=void 0!==o.lang[d]?o.lang[d]:o.lang.en);let m=i?.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[e])&&o.lang.en[e]?h(o.lang.en[e]):c?"{"+e+"}":(o.IS_PROD,h(e)))}i.d(t,["sprintf",0,l])},97642:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),n=i(57626),s=i(18080),r=i(74264),a=i(3347),l=i(4040),c=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 o(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return o}})},4040:function(e,t,i){"use strict";i.d(t,{trim:function(){return n},trimChars:function(){return s},trimInv:function(){return r}});var o=i(81937);function n(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function r(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},99436:function(e,t,i){"use strict";function o(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return o}})},16849:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return r}});var o=i(27795),n=i(7909),s=i(80991);function r(e,t){t&&"normal"!==t?"center"!==t?((0,s.css)(e,"float",t),(0,s.clearCenterAlign)(e)):(0,s.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(e,"float")&&-1!==["right","left"].indexOf((0,s.css)(e,"float").toString().toLowerCase())&&(0,s.css)(e,"float",""),(0,s.clearCenterAlign)(e))}function a(e){o.Dom.each(e,e=>{o.Dom.isHTMLElement(e)&&(0,s.cssInline)(e,"textAlign")&&((0,s.css)(e,"textAlign",""),((0,n.attr)(e,"style")||"").trim().length||(0,n.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(o.Dom.isNode(t)&&o.Dom.isElement(t)){a(t);let i=l.get(e.toLowerCase());i&&(0,s.css)(t,"textAlign",i)}}},47760:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?c(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?u(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var o=i(23211),n=i(85932),s=i(7909),r=i(91321);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let o=e(t,i);return a.set(i,o),o},c=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(t)});e.o.nonce&&(0,s.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",n).one(a,"load",i),o.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,s.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",n),(0,s.attr)(a,"href",(0,r.completeUrl)(t)),e.o.shadowRoot?o.Dom.append(e.o.shadowRoot,a):o.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},7909:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,o.isFunction)(t.getAttribute))return null;if(!(0,s.isString)(i))return Object.keys(i).forEach(o=>{let s=i[o];(0,n.isPlainObject)(s)&&"style"===o?(0,a.css)(t,s):("className"===o&&(o="class"),e(t,o,s))}),null;let c=(0,r.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,"data"+c);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var o=i(91565),n=i(62101),s=i(85932),r=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 o=i(62101);let n=(e,t)=>{let i=[],s=encodeURIComponent;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let a=t?t+"["+r+"]":r,l=e[r];i.push((0,o.isPlainObject)(l)?n(l,a):s(a)+"="+s(l))}return i.join("&")};i.d(t,["buildQuery",0,n])},91321:function(e,t,i){"use strict";var o=i(81937);i.d(t,["completeUrl",0,e=>("file:"===o.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,u.keys)(t,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(t[o])?e(t[o]):t[o],i),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(o=>{if((0,c.isUnsafeProtoKey)(o))return;let s=i[o],r=t[o];(0,n.isPlainObject)(s)&&(0,n.isPlainObject)(r)&&!(0,l.isAtom)(s)?e(r,s):t[o]=s})}},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let h=a.Config.defaultOptions;if((0,s.isString)(t.preset)){if(void 0!==h.presets[t.preset]){let e=h.presets[t.preset];Object.keys(e).forEach(i=>{(0,r.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(s=>{if((0,c.isUnsafeProtoKey)(s))return;let r=t[s],a=i?i[s]:null;if((0,n.isPlainObject)(r)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(r)){d[s]=e(r,a,u+1);return}if(0!==u&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){d[s]=[...r,...a.slice(r.length)];return}d[s]=r}),Object.setPrototypeOf(d,i),d}}});var o=i(17312),n=i(62101),s=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(78048),u=i(71125);function h(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},3856:function(e,t,i){"use strict";var o=i(81937),n=i(91764),s=i(36310);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,n.isURL)(e))return e;let r=o.globalDocument.createElement("a");r.href=e,t||(t=400),i||(i=345);let a=r.protocol||"";switch(r.hostname){case"www.vimeo.com":case"vimeo.com":{let o=r.pathname.split("/").filter(Boolean),n=o.findIndex(e=>/^\d+$/.test(e));if(-1===n)return e;let s=o[n],l=o[n+1];return l&&0===n&&(s+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+s+'" 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 o=(r.search?(0,s.parseQuery)(r.search):{}).v||r.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},80991:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return c}});var o=i(22289),n=i(62101),s=i(19147),r=i(57821),a=i(74264);function l(e,t,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(t)||void 0!==i){let o=(e,t,i)=>{void 0!==(i=(0,s.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,s.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,n.isPlainObject)(t)){let i=Object.keys(t);for(let n=0;n<i.length;n+=1)o(e,(0,r.camelCase)(i[n]),t[i[n]])}else o(e,(0,r.camelCase)(t),i);return""}let u=(0,a.kebabCase)(t),h=e.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(e).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,s.normalizeCssValue)(t,f)}function c(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 o=i(31534);let n=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let s=n.get(e);if(!s){s={},n.set(e,s);let t=null;(0,o.isViewObject)(e.j)&&(t=e.j.e),(0,o.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{n.delete(e)})}return void 0===i?s[t]:(s[t]=i,i)}])},97228:function(e,t,i){"use strict";var o=i(81937),n=i(85932);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,n.isString)(e)?e:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},38027:function(e,t,i){"use strict";i.d(t,{connection:function(){return s},error:function(){return n},options:function(){return r}});var o=i(29953);function n(e){return TypeError(e)}function s(e){return new o.ConnectionError(e)}function r(e){return new o.OptionsError(e)}},14228:function(e,t,i){"use strict";function o(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return o}})},58250:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o}});class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},29953:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=i(14228),n=i(58250),s=i(11080)},11080:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return o}});class o extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},33201:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return n.OptionsError},abort:function(){return n.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=i(38027),n=i(29953)},54794:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return r},isAtom:function(){return n},markAsAtomic:function(){return s}});var o=i(3347);function n(e){return e&&e.isAtom}function s(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function r(e){return JSON.parse((0,o.stringify)(e))}},421:function(e,t,i){"use strict";var o=i(91565);let n=new Map;i.d(t,["getClassName",0,e=>{if((0,o.isFunction)(e.className))return e.className();let t=e.constructor?.originalConstructor||e.constructor;if(n.has(t))return n.get(t);if(t.name)return t.name;let i=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=t.toString().match(i);return s?s[1]:""},"keepNames",0,n])},89308:function(e,t,i){"use strict";i.d(t,{get:function(){return s}});var o=i(85932),n=i(18303);function s(e,t){if(!(0,o.isString)(e)||!e.length)return null;let i=e.split("."),s=t;try{for(let e of i){if((0,n.isVoid)(s[e]))return null;s=s[e]}}catch{return null}return(0,n.isVoid)(s)?null:s}},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"],o=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?o*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 d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return P.LimitedStack},OptionsError:function(){return v.OptionsError},UNSAFE_PROTO_KEYS:function(){return C.UNSAFE_PROTO_KEYS},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},attr:function(){return l.attr},attrRaw:function(){return l.attrRaw},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return A.call},callPromise:function(){return A.callPromise},callThis:function(){return A.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return f.clearCenterAlign},cns:function(){return E.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return f.css},cssInline:function(){return f.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return w.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return A.getDataTransfer},getPropertyDescriptor:function(){return A.getPropertyDescriptor},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return b.isAtom},isUnsafeProtoKey:function(){return C.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return A.keys},loadImage:function(){return A.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return E.markDeprecated},markOwner:function(){return A.markOwner},memorizeExec:function(){return A.memorizeExec},options:function(){return v.options},parseQuery:function(){return I.parseQuery},previewBox:function(){return D.previewBox},refs:function(){return x.refs},reset:function(){return k.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return j.set}});var o=i(16849),n=i(47760),s=i(28712),r={};for(var a in s)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(e){return s[e]}).bind(0,a));i.d(t,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),p=i(3856),f=i(80991),m=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),w=i(89308),y=i(421),S=i(37427),C=i(78048),E=i(49385),I=i(36310),D=i(57075),k=i(43379),T=i(60898),x=i(28723),j=i(52144),P=i(42820),A=i(71125)},78048:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return n}});let o=["__proto__","constructor","prototype"];function n(e){return -1!==o.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,o])},49385:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return n}});let o=console;function n(e,t=[""],i=null){return(...n)=>(o.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...n))}i.d(t,["cns",0,o])},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 o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}])},57075:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var o=i(23211),n=i(85932),s=i(7909),r=i(80991);function a(e,t,i="px",l=null){let c=[],u=function(e,t){let i=[],n=[];o.Dom.each(e.editor,e=>{o.Dom.isTag(e,"img")&&n.push(e)});try{n.forEach(n=>{let r=[(0,s.attr)(n,"width"),(0,s.attr)(n,"height"),(0,s.attr)(n,"src")];(0,s.attr)(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});let a=e.createInside.a();o.Dom.append(e.ed.body,a),(0,s.attr)(a,"href",(0,s.attr)(n,"src")||""),(0,s.attr)(n,"src",a.href),o.Dom.safeRemove(a),i.push(()=>{(0,s.attr)(n,{src:r[2],width:r[0]||null,height:r[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 u=e.c.div("jodit__preview-box jodit-context");l&&o.Dom.append(l,u),(0,r.css)(u,{position:"relative",padding:16});let h=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,r.css)(t,{minWidth:800,minHeight:600,border:0}),o.Dom.append(u,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),u=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,s=new ResizeObserver(e.async.debounce(()=>{s.unobserve(n),(0,r.css)(t,"height",n.offsetHeight+20),e.async.requestAnimationFrame(()=>{o||s.observe(n)})},100)),a=()=>{o=!0,s.unobserve(n),s.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,r.css)(u,{minWidth:1024,minHeight:600,border:0});let d=(t,i)=>{let r=(0,n.isString)(i)?e.c.div():i;(0,n.isString)(i)&&(r.innerHTML=i);for(let e=0;e<r.childNodes.length;e+=1){let i=r.childNodes[e];if(o.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,s.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):d(e,i);try{o.Dom.append(t,e)}catch{}}else try{o.Dom.append(t,i.cloneNode(!0))}catch{}}};return d(u,h),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},43379:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var o=i(81937),n=i(91565),s=i(89308);let r={};function a(e){if(!(e in r)){let t=o.globalDocument.createElement("iframe");try{if(t.src="about:blank",o.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,s.get)(e,t.contentWindow),a=(0,s.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,n.isFunction)(i)&&(r[e]=i.bind(a))}catch(e){if(!o.IS_PROD)throw e}finally{t.parentNode?.removeChild(t)}}return r[e]??null}},60898:function(e,t,i){"use strict";i.d(t,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return s}});var o=i(23211);function n(e,t,i){let o=e.getBoundingClientRect(),n=e,s=o.top,r=o.height;for(;n&&n!==t&&n.parentNode;)if(s+r>(o=(n=n.parentNode).getBoundingClientRect()).bottom+1&&s>o.top||s+r<=o.top)return!1;return(s+r<=(i.documentElement&&i.documentElement.clientHeight||0)+1||s<=0)&&s+r>=0}function s(e,t,i){if(o.Dom.isHTMLElement(e)&&!n(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}n(e,t,i)||e.scrollIntoView({block:"nearest"})}}},28723:function(e,t,i){"use strict";i.d(t,{$$:function(){return h},resolveElement:function(){return p}});var o=i(81937),n=i(23211),s=i(88475),r=i(85932),a=i(57821),l=i(7909),c=i(33201);let u=1;function h(e,t){let i;if(!o.IS_ES_NEXT&&/:scope/.test(e)&&o.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let o=t.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;e=e.replace(/:scope/g,"#"+n),o||t.setAttribute("id",n),i=t.parentNode.querySelectorAll(e),o||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let d=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return d(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,s.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,r.isString)(e))try{i=t.querySelector(e)}catch{throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!n.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,o=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&o++;while(t)e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,d,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return n.Dom.each(e,e=>{if(n.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,r.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 o=i(17312),n=i(70222),s=i(62101),r=i(85932),a=i(78048);function l(e,t,i){if(!(0,r.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,o.isArray)(c[t])||(0,s.isPlainObject)(c[t])||(c[t]=(0,n.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},42820:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return n}});var o=i(25045);class n{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,o._)(this,"limit",void 0),(0,o._)(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 u},callThis:function(){return l},getPropertyDescriptor:function(){return h},markOwner:function(){return c}});var o=i(52100),n=i(18303),s=i(7909),r=i(36400);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,s.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,o.isPromise)(e)?e.then(e=>e,()=>null).finally(t):t?.()}function h(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{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,o)=>{let n=new Image,s=()=>{t.e.off(n),o?.()},r=()=>{t.e.off(n),i(n)};t.e.one(n,"load",r).one(n,"error",s).one(n,"abort",s),n.src=e,n.complete&&r()}),"memorizeExec",0,(e,t,{control:i},o)=>{let s="button"+i.command,a=(i.args&&i.args[0])??(0,r.dataBind)(e,s);if((0,n.isVoid)(a))return!1;(0,r.dataBind)(e,s,a),o&&(a=o(a)),e.execCommand(i.command,!1,a??void 0)}])},55810:function(e,t,i){"use strict";i.d(t,{init:function(){return r}});var o=i(81937),n=i(52433),s=i(3050);function r(e,t,i,r,a,l,c){if((0,n.isInitable)(r))try{r.init(e)}catch(e){if(!o.IS_PROD)throw e}a.set(t,r),l.delete(t),r.hasStyle&&(0,s.loadStyle)(e,t).catch(e=>{o.IS_PROD}),r.styles&&(c(e,t,"style").innerHTML=r.styles)}},3050:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return u},loadStyle:function(){return l}});var o=i(81937),n=i(74264),s=i(47760),r=i(86189);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,s.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,n.kebabCase)(t);let o=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+o+"."+(i?"js":"css")}function u(e,t,i,n){try{let o=i.filter(t=>!e.has((0,r.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 s}});var o=i(81937),n=i(91565);function s(e,t){try{try{return(0,n.isFunction)(t)?new t(e):t}catch(i){if((0,n.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!o.IS_PROD)throw e}return null}},86189:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return n}});var o=i(74264);function n(e){return(0,o.kebabCase)(e).toLowerCase()}},91206:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},85305:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return f}});var o=i(25045),n=i(81937),s=i(42689),r=i(32328),a=i(17312),l=i(52433),c=i(85932),u=i(55810),h=i(3050),d=i(25974),p=i(86189);class f{get size(){return this.__items.size}add(e,t){this.__items.set((0,p.normalizeName)(e),t),s.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,o)=>{(!e||e.has(o))&&t.push([o,i])}),t}__init(e){let{extraList:t,disableList:i,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,c.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(p.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},s=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([o,n])=>{if(i.has(o)||s.has(o))return;let r=n?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>s.has(e)))return void m.add(o)}t=!0;let l=(0,d.makeInstance)(e,n);if(!l){s.set(o,null),m.delete(o);return}(0,u.init)(e,o,n,l,s,m,this.opts.getContainer),f[o]=l}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,h.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,l.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),n.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),s.eventEmitter.off(`plugin:${e}:ready`,i)};s.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){(0,o._)(this,"opts",void 0),(0,o._)(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 o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(24497);class l extends s.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(s.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(s.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(e)&&this.buttons?.forEach(t=>{e?.unregisterButton(t)}),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,o._)(this,"buttons",[]),(0,o._)(this,"hasStyle",!1),(0,o._)(this,"styles",void 0),(0,o._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,o._)(l,"requires",[]),(0,n.__decorate)([r.autobind],l.prototype,"__afterPluginSystemInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__afterInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__beforeDestruct",null)},17338:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return d}});var o=i(25045),n=i(31635),s=i(91231),r=i(81937),a=i(49574),l=i(65946),c=i(33201),u=i(5266);i(37102);var h=i(32855);class d{className(){return"Ajax"}__buildParams(e,t){return(0,l.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,l.isString)(e)||e instanceof r.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,l.isFunction)(e.append)?e:(0,l.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(o,n)=>{let s=()=>{this.__isFulfilled=!0,n(c.connection("Connection error"))},r=()=>{this.__isFulfilled=!0,o(new h.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=r,e.onabort=()=>{this.__isFulfilled=!0,n(c.abort("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{let t=0;e.lengthComputable&&(t=e.loaded/e.total*100),this.options.onProgress?.(t)},e.onreadystatechange=()=>{this.options.onProgress?.(10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?r():e.statusText&&(this.__isFulfilled=!0,n(c.connection(e.statusText))))},e.withCredentials=t.withCredentials??!1;let{url:a,data:u,method:d}=i;e.open(d,a,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,l.isFunction)(p)&&(p=await p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(u?this.__buildParams(u):void 0)},0)})}async *stream(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest(),o=0,n="",s=[],r=null,a=!1,u=null,h=()=>{if(r){let e=r;r=null,e()}},d=t=>{let i=e.responseText;n+=i.substring(o),o=i.length;let r=n.split(`
|
|
11
11
|
|
|
12
12
|
`);for(let e of(n=t?"":r.pop()??"",r)){let t=e.trim();if(!t)continue;let i=[];for(let e of t.split(`
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
`,"paragraph","link","align","dots"]}},70235:function(e,t,i){"use strict";var o=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec(e,t){let i=(0,o.attr)(t,"href");t&&i&&/^(https?:|mailto:|tel:)/i.test(i.trim())&&!/^(javascript:|data:|vbscript:)/i.test(i.trim())&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},17849:function(e,t,i){"use strict";var o=i(28686),n=i(80991);let s=e=>e.args&&(0,o.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec(e,t,{control:i}){let o=s(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,n.css)(e,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},`
|
|
217
217
|
`,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,o.isJoditObject)(e))return;if(!i.args)return!1;let n=s(i);e.execCommand(n,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(e,t,{control:i}){if(!(0,o.isJoditObject)(e))return;if(!i.args)return!1;let n=s(i);e.execCommand(n,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,o.isJoditObject)(e))return;if(!i.args)return!1;let n=s(i);e.execCommand(n,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},466:function(e,t,i){"use strict";var o=i(75711);t.default=[{name:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},o.align]},75711:function(e,t,i){"use strict";var o=i(27795),n=i(85932),s=i(16849),r=i(80991);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec(e,t,{control:i}){if(!o.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let r=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.hAlignElement)(t,r),o.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,s.hAlignElement)(t.firstElementChild,r),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(e,t,{control:i}){if(!o.Dom.isTag(t,"img"))return;let s=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.css)(t,"vertical-align","normal"===s?"":s),e.e.fire("recalcPositionPopup")}},a],i.d(t,["align",0,a])},59399:function(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
|
|
218
218
|
`,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},88952:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=r.Dom.isTag(e,"img")?e:r.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let o=this.j.o.popup[t];if(e=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(e)){let t=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(t.length?e.filter(e=>{let i=(0,l.isString)(e)?e:e.name;return!t.includes(i??"")}):e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container}this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,l.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,l.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,l.isString)(e)?e:e.name;return i&&"|"!==i&&`
|
|
219
|
-
`!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,l.isString)(e)?e:e.nodeName),(0,l.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(e){this.popup.isOpened&&"selection"===this.type&&e.target&&u.UIElement.closestElement(e.target,h.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let e=this.j.s.sel;e&&!e.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let e=this.j.s.range.getBoundingClientRect(),{left:t,top:i}=e;if(this.j.iframe){let e=(0,l.position)(this.j.iframe,this.j,!0);t+=e.left,i+=e.top}return{left:t,top:i,width:e.width,height:e.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&u.UIElement.closestElement(e.target,h.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if(t?.isCollapsed||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),e)}isSelectedTarget(e){let t=e.startContainer;return r.Dom.isElement(t)&&t===e.endContainer&&r.Dom.isTag(t.childNodes[e.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,l.camelCase)("click_"+e)).concat(e.map(e=>(0,l.camelCase)("touchstart_"+e))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(...e){super(...e),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"__reopenSelectionPopup",!1),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,o._)(p,"requires",["select"]),(0,n.__decorate)([s.cache],p.prototype,"popup",null),(0,n.__decorate)([s.cache],p.prototype,"toolbar",null),(0,n.__decorate)([s.autobind],p.prototype,"onClick",null),(0,n.__decorate)([(0,s.wait)(e=>!e.j.isLocked)],p.prototype,"showPopup",null),(0,n.__decorate)([(0,s.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),s.autobind],p.prototype,"hidePopup",null),(0,n.__decorate)([(0,s.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,n.__decorate)([s.autobind],p.prototype,"__onDocumentMouseDown",null),(0,n.__decorate)([s.autobind],p.prototype,"__onCloseAllPopups",null),(0,n.__decorate)([s.autobind],p.prototype,"onSelectionStart",null),(0,n.__decorate)([s.autobind],p.prototype,"onSelectionEnd",null),(0,n.__decorate)([(0,s.debounce)(e=>e.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,n.__decorate)([s.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},64094:function(e,t,i){"use strict";var o=i(23211),n=i(28077),s=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,n=e.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,s.isPlainObject)(c)?c[l]:c.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,u.currentValue=l)}},isActive(e,t){let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let n=o.Dom.closest(i,o.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},n.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let n=o.Dom.up(i,o.Dom.isBlock,e.editor);n||(n=o.Dom.wrapInline(i,e.o.enterBlock,e)),(0,r.alignElement)(t,n)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},18210:function(e,t,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){if(e.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:t,endOffset:i}=this.j.selection.range;if(r.Dom.isText(t)&&t.nodeValue?.length===i){let{parentNode:e}=t;r.Dom.isInlineBlock(e)&&!r.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&r.Dom.after(e,this.j.createInside.text(n.NBSP_SPACE))}}}(0,o.__decorate)([(0,s.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},82147:function(e,t,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},50662:function(e,t,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(n.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t;let{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,r=i.o.limitHTML?i.value:i.text,a=this.__splitWords(r);if(o&&(t=a.length,e?t>o:t>=o))return i.e.fire("denyWords.limit limit.limit"),!0;let l=i.o.countTextSpaces?r.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:a.join("").length,c=!!(s&&(e?l>s:l>=s));return c&&i.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}(0,o.__decorate)([s.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([s.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},87908:function(e,t,i){"use strict";var o=i(65946),n=i(29434),s=i(5266),r=i(223),a=i.n(r);s.Config.prototype.defaultLineHeight=null,n.Icon.set("line-height",a()),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,o.memorizeExec)(e,t,{control:i},e=>e)}},5070:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},sk:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},58354:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(91206);i(87908);var u=i(5070);class h extends c.Plugin{afterInit(e){(0,l.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let o,{s:n,createInside:s,editor:a,o:c}=this.j;n.isFocused()||n.focus(),n.save();let u=e=>{let t=r.Dom.closest(e,r.Dom.isBlock,a);t||(t=r.Dom.wrap(e,c.enter,s));let n=(0,l.css)(t,"lineHeight");void 0===o&&(o=n.toString()!==i.toString()),(0,l.css)(t,"lineHeight",o?i:null)};try{if(n.isCollapsed()){let e=s.fake();n.insertNode(e,!1,!1),u(e),r.Dom.safeRemove(e)}else n.eachSelection(u)}finally{n.restore()}}beforeDestruct(e){(0,l.css)(e.editor,{lineHeight:null})}constructor(e){super(e),(0,o._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(u)}}(0,n.__decorate)([s.autobind],h.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",h)},65230:function(e,t,i){"use strict";var o=i(23211),n=i(29434),s=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,deriveUrlFromText:!1,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.Icon.set("link",a()).set("unlink",c()),s.Config.prototype.controls.unlink={exec(e,t){let i=o.Dom.closest(t,"a",e.editor);i&&o.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(e){let t=e.s.current();return!!(t&&o.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},68624:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206);i(65230);class u extends c.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);e?.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!r.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let e=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,t,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return(0,l.attr)(e,"href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,o,{jodit:n}=this,s=n.i18n.bind(n),{openInNewTabCheckbox:a,openInNewTabCheckboxDefaultChecked:c,noFollowCheckbox:u,formTemplate:h,formClassName:d,modeClassName:p}=n.o.link,f=h(n),m=(0,l.isString)(f)?n.c.fromHTML(f,{target_checkbox_box:a,nofollow_checkbox_box:u}):f,g=r.Dom.isElement(m)?m:m.container,_=(0,l.refs)(g),{insert:v,unlink:b,content_input_box:w}=_,{target_checkbox:y,nofollow_checkbox:S,url_input:C}=_,E=r.Dom.isImage(e),{content_input:I}=_,{className_input:D}=_,{className_select:k}=_,{aria_label_input:T}=_;I||(I=n.c.element("input",{type:"hidden",ref:"content_input"})),d&&g.classList.add(d),E&&r.Dom.hide(w);let x=()=>o?o.innerText:(0,l.stripTags)(n.s.range.cloneContents(),n.ed);o=!!(e&&r.Dom.closest(e,"a",n.editor))&&r.Dom.closest(e,"a",n.editor),!E&&e&&(I.value=x()),T&&(T.value=o&&(0,l.attr)(o,"aria-label")||""),o?(C.value=(0,l.attr)(o,"href")||"",p&&function(e,t,i,o){switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(o){for(let e=0;e<o.selectedOptions.length;e++){let t=o.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<o.options.length;t++){let i=o.options.item(t);i?.value&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(p,D,o,k),a&&y&&(y.checked="_blank"===(0,l.attr)(o,"target")),u&&S&&(S.checked=((0,l.attr)(o,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=s("Update")):(r.Dom.hide(b),n.o.link.deriveUrlFromText&&C&&!E&&!C.value.trim()&&(C.value=!(i=I.value.trim())||/\s/.test(i)?"":/^(https?:|mailto:|tel:|ftp:|#|\/|\.{1,2}\/)/i.test(i)?i:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?"mailto:"+i:/^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(i)?"https://"+i:""),a&&y&&(y.checked=c)),n.editor.normalize();let j=n.history.snapshot.make();b&&n.e.on(b,"click",e=>{n.s.restore(),n.history.snapshot.restore(j),o&&r.Dom.unwrap(o),n.synchronizeValues(),t(),e.preventDefault()});let P=()=>{let e;if(!C.value.trim().length)return C.focus(),C.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(j);let i=x()!==I.value.trim(),s=n.createInside;if(o&&r.Dom.isOrContains(n.editor,o))e=[o];else{if(n.s.isCollapsed()){let t=s.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{let t=n.s.current();e=r.Dom.isTag(t,"img")?[r.Dom.wrap(t,"a",s)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let o;if((0,l.attr)(e,"href",C.value),function(e,t,i,o){if(e&&(t??i)){if("input"===e)""===t.value&&o.hasAttribute("class")&&(0,l.attr)(o,"class",null),""!==t.value&&(0,l.attr)(o,"class",t.value);else if("select"===e){o.hasAttribute("class")&&(0,l.attr)(o,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=i.selectedOptions.item(e)?.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{o.classList.add(e)})}}}}(p,D,k,e),E||(t=I,o=e.textContent,t.value.trim().length?i&&(o=t.value):o=C.value,o!==e.textContent&&(e.textContent=o)),a&&y&&(0,l.attr)(e,"target",y.checked?"_blank":null),u&&S){let t=((0,l.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");S.checked&&!i?t.push("nofollow"):!S.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,l.attr)(e,"rel",t.length?t.join(" "):null)}if(T){let t=T.value.trim();(0,l.attr)(e,"aria-label",t||null)}n.e.fire("applyLink",n,e,m)}),n.synchronizeValues(),t(),!1};return r.Dom.isElement(m)?n.e.on(m,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),P(),!1)):m.onSubmit(P),m}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&r.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,n.__decorate)([s.autobind],u.prototype,"__onDblClickOnLink",null),(0,n.__decorate)([s.autobind],u.prototype,"onProcessPasteLink",null),(0,n.__decorate)([s.autobind],u.prototype,"__generateForm",null),(0,n.__decorate)([s.autobind],u.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",u)},45778:function(e,t,i){"use strict";var o=i(59400),n=i(5658);i.d(t,["formTemplate",0,e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,ariaLabelInput:s,modeClassName:r,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:c}=e.o.link;return new n.UIForm(e,[new n.UIBlock(e,[new n.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),s?new n.UIBlock(e,[new n.UIInput(e,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new n.UIBlock(e,[new n.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new n.UIBlock(e,["input"===r?new n.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new n.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:c}):null]):null,t?new n.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new n.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new n.UIBlock(e,[new o.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}])},51730:function(e,t,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},76830:function(e,t,i){"use strict";var o=i(81937),n=i(23211),s=i(28077),r=i(93640),a=i(80991);i(51730),s.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:s,mediaInFakeBlock:l}=e.options;l&&e.e.on("afterGetValueFromEditor",e=>{let o=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===o.MODE_SOURCE||(0,r.$$)(s.join(","),e.editor).forEach(o=>{if(!(0,r.dataBind)(o,t)){(0,r.dataBind)(o,t,!0);var s=o;if(s.parentNode&&(0,r.attr)(s.parentNode,"data-jodit_iframe_wrapper"))s=s.parentNode;else{let o=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,r.attr)(o,"style",(0,r.attr)(s,"style")),(0,a.css)(o,{display:"inline-block"===(0,a.cssInline)(s,"display")?"inline-block":"block",width:s.offsetWidth,height:s.offsetHeight}),s.parentNode&&n.Dom.before(s,o),n.Dom.append(o,s),s=o}e.e.off(s,"mousedown.select touchstart.select").on(s,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(s)})}})},e.defaultTimeout))})},3244:function(e,t,i){"use strict";var o=i(81937),n=i(65946),s=i(80991),r=i(5266),a=i(42573),l=i(4274);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
|
|
219
|
+
`!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,l.isString)(e)?e:e.nodeName),(0,l.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(e){this.popup.isOpened&&"selection"===this.type&&e.target&&u.UIElement.closestElement(e.target,h.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let e=this.j.s.sel;e&&!e.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let e=this.j.s.range.getBoundingClientRect(),{left:t,top:i}=e;if(this.j.iframe){let e=(0,l.position)(this.j.iframe,this.j,!0);t+=e.left,i+=e.top}return{left:t,top:i,width:e.width,height:e.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&u.UIElement.closestElement(e.target,h.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if(t?.isCollapsed||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),e)}isSelectedTarget(e){let t=e.startContainer;return r.Dom.isElement(t)&&t===e.endContainer&&r.Dom.isTag(t.childNodes[e.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,l.camelCase)("click_"+e)).concat(e.map(e=>(0,l.camelCase)("touchstart_"+e))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(...e){super(...e),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"__reopenSelectionPopup",!1),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,o._)(p,"requires",["select"]),(0,n.__decorate)([s.cache],p.prototype,"popup",null),(0,n.__decorate)([s.cache],p.prototype,"toolbar",null),(0,n.__decorate)([s.autobind],p.prototype,"onClick",null),(0,n.__decorate)([(0,s.wait)(e=>!e.j.isLocked)],p.prototype,"showPopup",null),(0,n.__decorate)([(0,s.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),s.autobind],p.prototype,"hidePopup",null),(0,n.__decorate)([(0,s.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,n.__decorate)([s.autobind],p.prototype,"__onDocumentMouseDown",null),(0,n.__decorate)([s.autobind],p.prototype,"__onCloseAllPopups",null),(0,n.__decorate)([s.autobind],p.prototype,"onSelectionStart",null),(0,n.__decorate)([s.autobind],p.prototype,"onSelectionEnd",null),(0,n.__decorate)([(0,s.debounce)(e=>e.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,n.__decorate)([s.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},64094:function(e,t,i){"use strict";var o=i(23211),n=i(28077),s=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,n=e.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,s.isPlainObject)(c)?c[l]:c.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,u.currentValue=l)}},isActive(e,t){let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let n=o.Dom.closest(i,o.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},n.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let n=o.Dom.up(i,o.Dom.isBlock,e.editor);n||(n=o.Dom.wrapInline(i,e.o.enterBlock,e)),(0,r.alignElement)(t,n)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},18210:function(e,t,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){if(e.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:t,endOffset:i}=this.j.selection.range;if(r.Dom.isText(t)&&t.nodeValue?.length===i){let{parentNode:e}=t;r.Dom.isInlineBlock(e)&&!r.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&r.Dom.after(e,this.j.createInside.text(n.NBSP_SPACE))}}}(0,o.__decorate)([(0,s.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},82147:function(e,t,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},50662:function(e,t,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(n.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t;let{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,r=i.o.limitHTML?i.value:i.text,a=this.__splitWords(r);if(o&&(t=a.length,e?t>o:t>=o))return i.e.fire("denyWords.limit limit.limit"),!0;let l=i.o.countTextSpaces?r.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:a.join("").length,c=!!(s&&(e?l>s:l>=s));return c&&i.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}(0,o.__decorate)([s.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([s.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},87908:function(e,t,i){"use strict";var o=i(65946),n=i(29434),s=i(5266),r=i(223),a=i.n(r);s.Config.prototype.defaultLineHeight=null,n.Icon.set("line-height",a()),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,o.memorizeExec)(e,t,{control:i},e=>e)}},5070:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},sk:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},58354:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(91206);i(87908);var u=i(5070);class h extends c.Plugin{afterInit(e){(0,l.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let o,{s:n,createInside:s,editor:a,o:c}=this.j;n.isFocused()||n.focus(),n.save();let u=e=>{let t=r.Dom.closest(e,r.Dom.isBlock,a);t||(t=r.Dom.wrap(e,c.enter,s));let n=(0,l.css)(t,"lineHeight");void 0===o&&(o=n.toString()!==i.toString()),(0,l.css)(t,"lineHeight",o?i:null)};try{if(n.isCollapsed()){let e=s.fake();n.insertNode(e,!1,!1),u(e),r.Dom.safeRemove(e)}else n.eachSelection(u)}finally{n.restore()}}beforeDestruct(e){(0,l.css)(e.editor,{lineHeight:null})}constructor(e){super(e),(0,o._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(u)}}(0,n.__decorate)([s.autobind],h.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",h)},65230:function(e,t,i){"use strict";var o=i(23211),n=i(29434),s=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,deriveUrlFromText:!1,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.Icon.set("link",a()).set("unlink",c()),s.Config.prototype.controls.unlink={exec(e,t){let i=o.Dom.closest(t,"a",e.editor);i&&o.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(e){let t=e.s.current();return!!(t&&o.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},68624:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206);i(65230);class u extends c.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);e?.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!r.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let e=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,t,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return(0,l.attr)(e,"href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,o,{jodit:n}=this,s=n.i18n.bind(n),{openInNewTabCheckbox:a,openInNewTabCheckboxDefaultChecked:c,noFollowCheckbox:u,formTemplate:h,formClassName:d,modeClassName:p}=n.o.link,f=h(n),m=(0,l.isString)(f)?n.c.fromHTML(f,{target_checkbox_box:a,nofollow_checkbox_box:u}):f,g=r.Dom.isElement(m)?m:m.container,_=(0,l.refs)(g),{insert:v,unlink:b,content_input_box:w}=_,{target_checkbox:y,nofollow_checkbox:S,url_input:C}=_,E=r.Dom.isImage(e),{content_input:I}=_,{className_input:D}=_,{className_select:k}=_,{aria_label_input:T}=_;I||(I=n.c.element("input",{type:"hidden",ref:"content_input"})),d&&g.classList.add(d),E&&r.Dom.hide(w);let x=()=>o?o.innerText:(0,l.stripTags)(n.s.range.cloneContents(),n.ed);o=!!(e&&r.Dom.closest(e,"a",n.editor))&&r.Dom.closest(e,"a",n.editor),!E&&e&&(I.value=x()),T&&(T.value=o&&(0,l.attr)(o,"aria-label")||""),o?(C.value=(0,l.attr)(o,"href")||"",p&&function(e,t,i,o){switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(o){for(let e=0;e<o.selectedOptions.length;e++){let t=o.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<o.options.length;t++){let i=o.options.item(t);i?.value&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(p,D,o,k),a&&y&&(y.checked="_blank"===(0,l.attr)(o,"target")),u&&S&&(S.checked=((0,l.attr)(o,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=s("Update")):(r.Dom.hide(b),n.o.link.deriveUrlFromText&&C&&!E&&!C.value.trim()&&(C.value=!(i=I.value.trim())||/\s/.test(i)?"":/^(https?:|mailto:|tel:|ftp:|#|\/|\.{1,2}\/)/i.test(i)?i:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?"mailto:"+i:/^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(i)?"https://"+i:""),a&&y&&(y.checked=c)),n.editor.normalize();let j=n.history.snapshot.make();b&&n.e.on(b,"click",e=>{n.s.restore(),n.history.snapshot.restore(j),o&&r.Dom.unwrap(o),n.synchronizeValues(),t(),e.preventDefault()});let P=()=>{let e;if(!C.value.trim().length)return C.focus(),C.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(j);let i=x()!==I.value.trim(),s=n.createInside,c=null;if(o&&r.Dom.isOrContains(n.editor,o))e=[o];else{if(n.s.isCollapsed()){let t=s.element("a");n.s.insertNode(t,!1,!1),e=[t],c=t}else{let t=n.s.current();e=r.Dom.isTag(t,"img")?[r.Dom.wrap(t,"a",s)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let o;if((0,l.attr)(e,"href",C.value),function(e,t,i,o){if(e&&(t??i)){if("input"===e)""===t.value&&o.hasAttribute("class")&&(0,l.attr)(o,"class",null),""!==t.value&&(0,l.attr)(o,"class",t.value);else if("select"===e){o.hasAttribute("class")&&(0,l.attr)(o,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=i.selectedOptions.item(e)?.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{o.classList.add(e)})}}}}(p,D,k,e),E||(t=I,o=e.textContent,t.value.trim().length?i&&(o=t.value):o=C.value,o!==e.textContent&&(e.textContent=o)),a&&y&&(0,l.attr)(e,"target",y.checked?"_blank":null),u&&S){let t=((0,l.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");S.checked&&!i?t.push("nofollow"):!S.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,l.attr)(e,"rel",t.length?t.join(" "):null)}if(T){let t=T.value.trim();(0,l.attr)(e,"aria-label",t||null)}n.e.fire("applyLink",n,e,m)}),c&&n.s.setCursorAfter(c),n.synchronizeValues(),t(),!1};return r.Dom.isElement(m)?n.e.on(m,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),P(),!1)):m.onSubmit(P),m}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&r.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,n.__decorate)([s.autobind],u.prototype,"__onDblClickOnLink",null),(0,n.__decorate)([s.autobind],u.prototype,"onProcessPasteLink",null),(0,n.__decorate)([s.autobind],u.prototype,"__generateForm",null),(0,n.__decorate)([s.autobind],u.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",u)},45778:function(e,t,i){"use strict";var o=i(59400),n=i(5658);i.d(t,["formTemplate",0,e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,ariaLabelInput:s,modeClassName:r,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:c}=e.o.link;return new n.UIForm(e,[new n.UIBlock(e,[new n.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),s?new n.UIBlock(e,[new n.UIInput(e,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new n.UIBlock(e,[new n.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new n.UIBlock(e,["input"===r?new n.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new n.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:c}):null]):null,t?new n.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new n.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new n.UIBlock(e,[new o.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}])},51730:function(e,t,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},76830:function(e,t,i){"use strict";var o=i(81937),n=i(23211),s=i(28077),r=i(93640),a=i(80991);i(51730),s.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:s,mediaInFakeBlock:l}=e.options;l&&e.e.on("afterGetValueFromEditor",e=>{let o=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===o.MODE_SOURCE||(0,r.$$)(s.join(","),e.editor).forEach(o=>{if(!(0,r.dataBind)(o,t)){(0,r.dataBind)(o,t,!0);var s=o;if(s.parentNode&&(0,r.attr)(s.parentNode,"data-jodit_iframe_wrapper"))s=s.parentNode;else{let o=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,r.attr)(o,"style",(0,r.attr)(s,"style")),(0,a.css)(o,{display:"inline-block"===(0,a.cssInline)(s,"display")?"inline-block":"block",width:s.offsetWidth,height:s.offsetHeight}),s.parentNode&&n.Dom.before(s,o),n.Dom.append(o,s),s=o}e.e.off(s,"mousedown.select touchstart.select").on(s,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(s)})}})},e.defaultTimeout))})},3244:function(e,t,i){"use strict";var o=i(81937),n=i(65946),s=i(80991),r=i(5266),a=i(42573),l=i(4274);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
|
|
220
220
|
`,{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],r.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},`
|
|
221
221
|
`,{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:o.MODE_SOURCE+o.MODE_WYSIWYG,popup(e,t,i,o){let r=o.control.data;return void 0===r&&(r={toolbar:(0,l.makeCollection)(e),rebuild(){if(o){let t=e.e.fire("getDiffButtons.mobile",o.closest(a.ToolbarCollection));if(t&&r){r.toolbar.build((0,n.splitArray)(t));let i=e.toolbar?.firstButton?.container.offsetWidth||36;(0,s.css)(r.toolbar.container,"width",(i+4)*3)}}}},o.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},74240:function(e,t,i){"use strict";var o=i(28077),n=i(65946),s=i(2496);i(3244);let r=e=>"|"===e||"---"===e||`
|
|
222
222
|
`===e;function a(e,t){let i=(0,s.flatButtonsSet)((0,n.splitArray)(t.o.buttons),t),o=t.getRegisteredButtonGroups(),a=!1,l=!1,c=[];for(let t of e)if((0,s.isButtonGroup)(t)){let e=[...t.buttons,...o[t.group]??[]],n=e.filter(e=>i.has(e));n.length!==e.length&&(a=!0),c.push(...n)}else r(t)?c.push(t):"dots"===t?l=!0:i.has(t)?c.push(t):a=!0;if(!a)return e;let u=[];for(let e of c)r(e)&&(0===u.length||r(u[u.length-1]))||u.push(e);for(;u.length&&r(u[u.length-1]);)u.pop();if(l){let e=(0,s.flatButtonsSet)(u,t);(0,n.toArray)(i).some(t=>!e.has(t))&&u.push("dots")}return u}o.pluginSystem.add("mobile",function(e){let t=0,i=(0,n.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let o=new Date().getTime(),n=o-t;n>e.o.mobileTapTimeout&&(t=o,n<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,s.flatButtonsSet)((0,n.splitArray)(e.o.buttons),e),o=(0,s.flatButtonsSet)(i,e);return(0,n.toArray)(t).reduce((e,t)=>(o.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!e.o.toolbar)return;let t=(e.container.parentElement??e.container).offsetWidth,o=e.isFullSize||t>=e.o.sizeLG?(0,n.splitArray)(e.o.buttons):t>=e.o.sizeMD?a((0,n.splitArray)(e.o.buttonsMD),e):t>=e.o.sizeSM?a((0,n.splitArray)(e.o.buttonsSM),e):a((0,n.splitArray)(e.o.buttonsXS),e);o.toString()!==i.toString()&&(i=o,e.e.fire("closeAllPopups"),e.toolbar?.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},60162:function(e,t,i){"use strict";var o=i(36400),n=i(29434),s=i(5266),r=i(40037),a=i.n(r),l=i(83207),c=i.n(l);let u=(e,t,{control:i})=>{let n="button"+i.command,s=(i.args&&i.args[0])??(0,o.dataBind)(e,n);(0,o.dataBind)(e,n,s),e.execCommand(i.command,!1,"default"===s?null:s)};n.Icon.set("ol",a()).set("ul",c()),s.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},s.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},98792:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(...e){super(...e),(0,o._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,n.__decorate)([s.autobind],l.prototype,"onCommand",null),r.pluginSystem.add("orderedList",l)},71693:function(e,t,i){"use strict";var o=i(81937),n=i(5266);n.Config.prototype.askBeforePasteFromWord=!0,n.Config.prototype.processPasteFromWord=!0,n.Config.prototype.defaultActionOnPasteFromWord=null,n.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},96730:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:o}=this,{processPasteFromWord:n,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(n&&(0,l.isHtmlFromWord)(t))&&(s?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(e,t,o,i)},c):this.insertFromWordByType(e,t,r||a,i),!0)}insertFromWordByType(e,t,i,o){switch(i){case s.INSERT_AS_HTML:{t=(0,l.applyStyles)(t);let e=this.j.events?.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e);break}case s.INSERT_AS_TEXT:t=(0,l.cleanFromWord)(t);break;case s.INSERT_ONLY_TEXT:t=(0,l.stripTags)((0,l.cleanFromWord)(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,u.pasteInsertHtml)(e,this.j,t)}}(0,o._)(h,"requires",["paste"]),(0,n.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},7758:function(e,t,i){"use strict";var o=i(25045),n=i(81937),s=i(23211),r=i(28077),a=i(65946),l=i(18855),c=i(53681);class u extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,c.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,c.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),s.Dom.append(this.container,this.listBox),s.Dom.append(this.container,this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return s.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),s.Dom.safeRemove(this.previewBox),s.Dom.safeRemove(this.listBox),s.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(...e){super(...e),(0,o._)(this,"currentIndex",0),(0,o._)(this,"list",[]),(0,o._)(this,"container",null),(0,o._)(this,"listBox",null),(0,o._)(this,"previewBox",null),(0,o._)(this,"dialog",null),(0,o._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,o._)(this,"onKeyDown",e=>{let t=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)){if(e.key===n.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===n.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===n.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}}),(0,o._)(this,"selectIndex",e=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e}),(0,o._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&s.Dom.detach(this.listBox),this.previewBox&&s.Dom.detach(this.previewBox),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",t.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&s.Dom.append(this.listBox,i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}r.pluginSystem.add("pasteStorage",u)},38187:function(e,t,i){"use strict";var o=i(81937),n=i(5266),s=i(54308);n.Config.prototype.askBeforePasteHTML=!0,n.Config.prototype.processPasteHTML=!0,n.Config.prototype.scrollToPastedContent=!0,n.Config.prototype.pasteExcludeStripTags=["br","hr"],n.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],n.Config.prototype.memorizeChoiceWhenPasteFragment=!1,n.Config.prototype.nl2brInPlainText=!0;let r="pasteStorage";n.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===r)return void e.execCommand("showPasteStorage");e.s.focus();let n="",a=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=e[0],i=t.types?.includes(o.TEXT_HTML)?o.TEXT_HTML:o.TEXT_PLAIN,s=await t.getType(i);n=await new Response(s).text()}a=!1}catch(e){o.IS_PROD}if(a)try{n=await navigator.clipboard.readText(),a=!1}catch(e){o.IS_PROD}}a&&(a=0===(n=e.buffer.get(o.CLIPBOARD_ID)||"").length);let l=e.value;a?(e.ed.execCommand("paste"),(a=l===e.value)||e.e.fire("afterPaste")):n.length?((0,s.pasteInsertHtml)(null,e,n),e.e.fire("afterPaste")):a&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[r]:"Paste Storage"},isChildDisabled:e=>2>e.e.fire("pasteStorageList")}},54308:function(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var o=i(81937),n=i(23211),s=i(28686),r=i(53681);function a(e,t,i){var o;let r,a;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let l=t.e.fire("beforePasteInsert",i);!(0,s.isVoid)(l)&&((0,s.isString)(l)||(0,s.isNumber)(l)||n.Dom.isNode(l))&&(i=l),(0,s.isString)(i)&&(-1!==(r=(o=(o=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(o=o.substring(r+20)),-1!==(a=o.search(/<!--EndFragment-->/i))&&(o=o.substring(0,a)),i=o),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,s.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||o.TEXT_PLAIN).toString()+";";return i}function c(e,t,i,o,n){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,o,n))return;let s=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=n.map(({text:t,value:i})=>(0,r.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{s.close(),o(i)}));s.e.one(s,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,r.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{s.close()});return s.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",s,t,i,o,n),s}},23422:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(38187);var h=i(54308);class d extends u.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,c.getDataTransfer)(e),i=[t?.getData(s.TEXT_PLAIN),t?.getData(s.TEXT_HTML),t?.getData(s.TEXT_RTF)];for(let t of i)if((0,c.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,c.getDataTransfer)(e),i=t?.getData(s.TEXT_HTML)||t?.getData(s.TEXT_PLAIN);if(t&&i&&""!==(0,c.trim)(i)){let o=this.j.e.fire("processPaste",e,i,(0,h.getAllTypes)(t));void 0!==o&&(i=o),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,h.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,c.isString)(t))switch(this.j.buffer.set(s.CLIPBOARD_ID,t),i){case s.INSERT_CLEAR_HTML:t=(0,c.cleanFromWord)(t);break;case s.INSERT_ONLY_TEXT:t=(0,c.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case s.INSERT_AS_TEXT:t=(0,c.htmlspecialchars)(t),this.j.o.nl2brInPlainText&&(t=(0,c.nl2br)(t));break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof o&&(t=o)}}(0,h.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===s.TEXT_PLAIN+";"&&!(0,c.isHTML)(t)){let e=(0,c.htmlspecialchars)(t);return this.j.o.nl2brInPlainText?(0,c.nl2br)(e):e}}constructor(...e){super(...e),(0,o._)(this,"pasteStack",new c.LimitedStack(20)),(0,o._)(this,"_isDialogOpened",!1)}}(0,n.__decorate)([r.autobind],d.prototype,"onPaste",null),(0,n.__decorate)([r.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",d)},8257:function(e,t,i){"use strict";var o=i(5266);o.Config.prototype.showPlaceholder=!0,o.Config.prototype.placeholder="Type something",o.Config.prototype.useInputsPlaceholder=!0},28346:function(e,t,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(23175),u=i(7909),h=i(80991),d=i(18855);i(8257);class p extends d.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(0,h.css)(this.placeholderElm,{right:0,direction:"rtl"}),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,o=e.s.current(),n=o&&a.Dom.closest(o,a.Dom.isBlock,e.editor)||e.editor,s=e.ew.getComputedStyle(n),r=e.ew.getComputedStyle(e.editor);a.Dom.append(e.workplace,this.placeholderElm);let{firstChild:l}=e.editor;if(a.Dom.isElement(l)&&!(0,c.isMarker)(l)){let o=e.ew.getComputedStyle(l);t=parseInt(o.getPropertyValue("margin-top"),10),i=parseInt(o.getPropertyValue("margin-left"),10),(0,h.css)(this.placeholderElm,{fontSize:parseInt(o.getPropertyValue("font-size"),10),lineHeight:o.getPropertyValue("line-height")})}else(0,h.css)(this.placeholderElm,{fontSize:parseInt(s.getPropertyValue("font-size"),10),lineHeight:s.getPropertyValue("line-height")});(0,h.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(r.paddingTop,10)+"px",paddingLeft:parseInt(r.paddingLeft,10)+"px",paddingRight:parseInt(r.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==s.MODE_WYSIWYG)return void this.hide();!function(e){if(!e.firstChild)return!0;let t=e.firstChild;if(s.INSEPARABLE_TAGS.has(t.nodeName?.toLowerCase())||/^(TABLE)$/i.test(t.nodeName))return!1;let i=a.Dom.next(t,e=>e&&!a.Dom.isEmptyTextNode(e),e);return a.Dom.isText(t)&&!i?a.Dom.isEmptyTextNode(t):!i&&a.Dom.each(t,e=>!(a.Dom.isLeaf(e)||a.Dom.isList(e))&&(a.Dom.isEmpty(e)||a.Dom.isTag(e,"br")))}(e.editor)?this.hide():this.show()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...e){super(...e),(0,o._)(this,"placeholderElm",void 0),(0,o._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,o._)(this,"addEvents",()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,u.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,n.__decorate)([(0,r.debounce)(e=>e.defaultTimeout/10,!0)],p.prototype,"toggle",null),l.pluginSystem.add("placeholder",p)},198:function(e,t,i){"use strict";i(28077).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
|