jodit 4.8.5 → 4.8.7
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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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/xpath/xpath.js +7 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.8.
|
|
4
|
+
* Version: v4.8.7
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
`)),p.appendChild(_)}(0,s.$$)("input[type=checkbox]:checked",m).forEach(t=>{t.value.split(/[\s]+/).forEach(t=>{f.classList.add(t)})}),t.s.restore(),t.s.removeMarkers(),t.editor.normalize(),t.history.snapshot.restore(a);let b=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,f,void 0,!1,!0);else if(b){let e=d.text(`
|
|
189
189
|
`);if(t.o.table.splitBlockOnInsertTable){let i=t.s.range;i.collapse(!1),i.insertNode(e),i.collapse(!1),t.s.selectRange(i);let s=t.s.splitSelection(b,e);s?o.Dom.after(s,f):o.Dom.after(b,f)}else o.Dom.after(b,e),o.Dom.after(e,f)}else t.s.insertNode(f,!1);g&&(t.s.setCursorIn(g),(0,s.scrollIntoViewIfNeeded)(g,t.editor,t.ed)),i()}),r&&r.parentElement){for(let e=0;e<c;e+=1){let i=t.c.div();for(let t=0;t<u;t+=1)i.appendChild(g[e*u+t]);f.appendChild(i)}g[0]&&(g[0].className="hovered")}return h},tooltip:"Insert table"}},48729:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return a}});var o=i(25045),s=i(81937),n=i(85932),r=i(28712);class a{setState(t){(0,r.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,e){let i=this.transitions[this.getState()][t];if(i){let t=i.call(this,e);return(0,r.assert)(t&&t!==e,"Action should return new value"),(0,r.assert)((0,n.isString)(t.next),"Value should contain the next state"),(0,r.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),s.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,e){(0,o._)(this,"transitions",void 0),(0,o._)(this,"__state",void 0),(0,o._)(this,"silent",void 0),(0,o._)(this,"__previewsStates",void 0),this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},48776:function(t,e,i){"use strict";i.r(e),i.d(e,{required:function(){return n},url:function(){return r}});var o=i(91764),s=i(4040);let n=function(t){return!!(0,s.trim)(t.value).length||(t.error="Please fill out this field",!1)},r=function(t){return!!(0,o.isURL)((0,s.trim)(t.value))||(t.error="Please enter a web address",!1)}},48838:function(t,e,i){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}i.d(e,{nl2br:function(){return o}})},48842:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},48899:function(t,e,i){"use strict";var o=i(65946),s=i(59400),n=i(5658),r=i(29434),a=i(5266),l=i(15753),c=i(36339),u=i.n(c);a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},r.Icon.set("video",u()),a.Config.prototype.controls.video={popup(t,e,i){let r=new n.UIForm(t,[new n.UIBlock(t,[new n.UIInput(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new n.UIBlock(t,[(0,s.Button)(t,"","Insert","primary").onAction(()=>r.submit())])]),a=new n.UIForm(t,[new n.UIBlock(t,[new n.UITextArea(t,{name:"code",required:!0,label:"Embed code"})]),new n.UIBlock(t,[(0,s.Button)(t,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),c.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:a.container}),r.onSubmit(e=>{u((0,o.call)(t.o.video?.parseUrlToVideoEmbed??o.convertMediaUrlToVideoEmbed,e.url,{width:t.o.video?.defaultWidth,height:t.o.video?.defaultHeight}))}),a.onSubmit(t=>{u(t.code)}),(0,l.TabsWidget)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},49147:function(t,e,i){"use strict";i.d(e,{applySize:function(){return a}});var o=i(70222),s=i(7909),n=i(80991),r=i(10808);function a(t,e,i,a){if(e!==t.offsetWidth||i!==t.offsetHeight){let l=e?(0,r.normalSizeToString)(e):null,c=i?(0,r.normalSizeToString)(i):null;(0,n.css)(t,{width:l,height:l&&a?null:c}),(0,s.attr)(t,"width",l&&(0,o.isNumeric)(e)&&(0,s.attr)(t,"width")?l:null),(!(0,s.attr)(t,"width")||a)&&(c=null),(0,s.attr)(t,"height",c)}}},49385:function(t,e,i){"use strict";i.d(e,{cns:function(){return o},markDeprecated:function(){return s}});let o=console;function s(t,e=[""],i=null){return(...s)=>(o.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(i,...s))}},49422:function(t,e,i){"use strict";i.d(e,{applyLink:function(){return n}});var o=i(23211),s=i(7909);function n(t,e,i,n){let r=o.Dom.closest(e,"a",t.editor);i?(r||(r=o.Dom.wrap(e,"a",t.createInside)),(0,s.attr)(r,"href",i),(0,s.attr)(r,"target",n?"_blank":null)):r&&r.parentNode&&r.parentNode.replaceChild(e,r)}},49574:function(t,e,i){"use strict";i.d(e,{autobind:function(){return s}});var o=i(91565);function s(t,e,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${e}" is not a function`);let s=i.value;return{configurable:!0,get(){let t=s.bind(this);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}}}},49663:function(t,e,i){"use strict";i.d(e,{normalizeLicense:function(){return o}});let o=(t,e=8)=>{let i=[];for(;t.length;)i.push(t.substr(0,e)),t=t.substr(e);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},49690:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(57075);i(5266).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Preview"},s.pluginSystem.add("preview",function(t){t.registerButton({name:"preview"}),t.registerCommand("preview",(e,i,o)=>{let s=t.dlg();s.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);let[,r]=(0,n.previewBox)(t,o,"px",s.getElm("content"));s.e.on(s,"afterClose",r)})})},49764:function(t,e,i){"use strict";var o=i(23211),s=i(28077),n=i(5266),r=i(15753);n.Config.prototype.controls.file={popup(t,e,i){let s=(e,i="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${i}">${i||e}</a>`))},n=null;return e&&(o.Dom.isTag(e,"a")||o.Dom.closest(e,"a",t.editor))&&(n=o.Dom.isTag(e,"a")?e:o.Dom.closest(e,"a",t.editor)),(0,r.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(e=>s(t.baseurl+e)),i()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):s(t,e),i()}},n,i,!1)},tags:["a"],tooltip:"Insert file"},s.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},49972:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},49999:function(t,e,i){"use strict";i.d(e,{UISelect:function(){return c}});var o=i(25045),s=i(31635),n=i(91672),r=i(7909),a=i(65273),l=i(81488);class c extends a.UIInput{className(){return"UISelect"}createContainer(t){let e=super.createContainer(t),{j:i}=this,{nativeInput:o}=this;if(void 0!==t.placeholder){let e=i.create.element("option");e.value="",e.text=i.i18n(t.placeholder),o.add(e)}return t.options?.forEach(t=>{let e=i.create.element("option");e.value=t.value.toString(),e.text=i.i18n(t.text),o.add(e)}),t.size&&t.size>0&&(0,r.attr)(o,"size",t.size),t.multiple&&(0,r.attr)(o,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,e){super(t,e),(0,o._)(this,"state",{...c.defaultState}),Object.assign(this.state,e)}}(0,o._)(c,"defaultState",{...a.UIInput.defaultState,options:[],size:1,multiple:!1}),c=(0,s.__decorate)([n.component],c)},50083:function(t,e,i){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}i.d(e,{isValidName:function(){return o}})},50294:function(t,e,i){"use strict";var o=i(28077),s=i(65946);i(7433),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let e=(e,i,o)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,s.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)})},50662:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(t){let{limitWords:e,limitChars:i}=t.o;if(t&&(e||i)){let e=null;t.e.off(".limit").on("beforePaste.limit",()=>{e=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(s.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var e,i;let{jodit:o}=this,{limitWords:s,limitChars:n}=o.o,r=o.o.limitHTML?o.value:o.text,a=this.__splitWords(r);if(s&&(e=a.length,t?e>s:e>=s))return o.e.fire("denyWords.limit limit.limit"),!0;let l=!!(n&&(i=a.join("").length,t?i>n:i>=n));return l&&o.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=e)}__splitWords(t){return t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}(0,o.__decorate)([n.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([n.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},50982:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(28077),r=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(t){(0,r.keys)(t.o.commandToHotkeys,!1).forEach(e=>{let i=t.o.commandToHotkeys[e];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&t.registerHotkeyToCommand(i,e)});let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===s.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),s={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,s))if(s.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(...t){super(...t),(0,o._)(this,"onKeyPress",t=>{let e=this.specialKeys[t.which],i=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[e||i];return["alt","ctrl","shift","meta"].forEach(i=>{t[i+"Key"]&&e!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))}),(0,o._)(this,"specialKeys",{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"})}}n.pluginSystem.add("hotkeys",l)},51034:function(t,e,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},51116:function(t,e,i){"use strict";i.d(e,{Popup:function(){return f}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(28712),h=i(96007),d=i(63468);let p=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class f extends d.UIGroup{className(){return"Popup"}appendChildToContainer(t){let e=this.getElm("content");(0,u.assert)(e,"Content element should exist"),e.appendChild(t)}updateParentElement(t){return t!==this&&n.Component.isInstanceOf(t,f)&&(this.__childrenPopups.forEach(e=>{!t.closest(e)&&e.isOpened&&e.close()}),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",()=>{this.__childrenPopups.delete(t)}),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(n.Component.isInstanceOf(t,h.UIElement))this.append(t);else{let e=(0,c.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,i){if((0,c.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,i)i.appendChild(this.container);else{let t=(0,l.getContainer)(this.jodit,f);i!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;let t=t=>{let e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(e.toString(),10)),!0)},{j:e}=this;if(t(e))return;let i=this.parentElement;for(;i;){if(t(i.j))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(i.container.style.zIndex.toString(),10));if(!i.parentElement&&i.container.parentElement){let t=h.UIElement.closestElement(i.container.parentElement,h.UIElement);if(t){i=t;continue}}i=i.parentElement}}getKeepBound(t){let e=t(),i=this.od.elementFromPoint(e.left,e.top);if(!i)return t;let o=a.Dom.isHTMLElement(i)?i:i.parentElement,s=(0,c.position)(o,this.j);return()=>{let e=t(),i=(0,c.position)(o,this.j);return{...e,top:e.top+(i.top-s.top),left:e.left+(i.left-s.left)}}}updatePosition(){if(!this.isOpened)return this;let[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,c.position)(this.container,this.j));return this.setMod("strategy",e),(0,c.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(t=>t.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,i,o=this.strategy){let s={left:t.left,right:t.left-(i.width-t.width)},n={bottom:t.top+t.height,top:t.top-i.height},r=Object.keys(s).reduce((t,e)=>t.concat(Object.keys(n).map(t=>`${e}${(0,c.ucfirst)(t)}`)),[]),a=t=>{let[e,o]=(0,c.kebabCase)(t).split("-");return{left:s[e],top:n[o],width:i.width,height:i.height}},l=t=>f.boxInView(a(o),t)?o:r.find(e=>{if(f.boxInView(a(e),t))return e})||null,u=l((0,c.position)(this.j.container,this.j));return u&&f.boxInView(a(u),e)||(u=l(e)||u||o),[a(u),u]}static boxInView(t,e){return t.top-e.top>=-2&&t.left-e.left>=-2&&e.top+e.height-(t.top+t.height)>=-2&&e.left+e.width-(t.left+t.width)>=-2}close(){return this.isOpened&&(this.isOpened=!1,this.__childrenPopups.forEach(t=>t.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),a.Dom.safeRemove(this.container)),this}__closeOnOutsideClick(t){!this.isOpened||this.isOwnClick(t)||this.close()}isOwnClick(t){if(!t.target)return!1;let e=h.UIElement.closestElement(t.target,f);return!!(e&&(this===e||e.closest(this)))}__addGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(p,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),a.Dom.up(this.j.container,e=>{e&&this.j.e.on(e,"scroll mousewheel",t)})}__removeGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(p,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&a.Dom.up(this.j.container,e=>{e&&this.j.e.off(e,"scroll mousewheel",t)})}setZIndex(t){this.container.style.zIndex=t.toString()}render(){return`<div>
|
|
190
190
|
<div class="&__content"></div>
|
|
191
|
-
</div>`}destruct(){return this.close(),super.destruct()}constructor(t,e=!0){super(t),(0,o._)(this,"smart",void 0),(0,o._)(this,"isOpened",void 0),(0,o._)(this,"strategy",void 0),(0,o._)(this,"viewBound",void 0),(0,o._)(this,"__targetBound",void 0),(0,o._)(this,"__childrenPopups",void 0),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,c.attr)(this.container,"role","popup")}}(0,s.__decorate)([r.autobind],f.prototype,"updatePosition",null),(0,s.__decorate)([(0,r.throttle)(10),r.autobind],f.prototype,"__throttleUpdatePosition",null),(0,s.__decorate)([r.autobind],f.prototype,"close",null),(0,s.__decorate)([r.autobind],f.prototype,"__closeOnOutsideClick",null)},51457:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51640:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return s.FiniteStateMachine},elementsEqualAttributes:function(){return l.elementsEqualAttributes},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return n.getSuitChild},getSuitParent:function(){return r.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},isSameAttributes:function(){return l.isSameAttributes},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return h.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return p.wrap}});var o=i(17481),s=i(48729),n=i(10171),r=i(19549);i(9703);var a=i(39608);i(83653);var l=i(95971),c=i(73019),u=i(34582);i(97110);var h=i(82794),d=i(89081),p=i(73154);i(83335)},51676:function(t,e,i){"use strict";i.d(e,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(69364),s=i(23211),n=i(28686),r=i(38027);function a(t,e){let i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,n.isFunction)(i.get)?null:i.value}function l(t,e,i){let o=i.get;if(!o)throw(0,r.error)("Getter property descriptor expected");i.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function c(t,e,i){let a=i.value;if(!(0,n.isFunction)(a))throw(0,r.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);let e=a.apply(this,t);return l&&s.Dom.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(o.STATUSES.ready,t=>{l=!!((0,n.isViewObject)(t)?t:t.jodit).options.cache})}},51730:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},51822:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},51957:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52014:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(27795),r=i(28077),a=i(65946),l=i(91206),c=i(67399),u=i(4274);i(92063);class h extends l.Plugin{afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===s.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=s.INVISIBLE_SPACE),this.appendSelectAll()))}),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),n.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(...t){super(...t),(0,o._)(this,"onContext",(t,e)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?n.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1)),(0,o._)(this,"onSelectPath",(t,e)=>{this.j.s.focus();let i=(0,a.attr)(e.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1}),(0,o._)(this,"tpl",(t,e,i,o)=>{let s=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${o}" tabindex="-1"'>${(0,a.trim)(i)}</a></span>`),n=s.firstChild;return this.j.e.on(n,"click",this.onSelectPath.bind(this,t)).on(n,"contextmenu",this.onContext.bind(this,t)),s}),(0,o._)(this,"selectAllButton",void 0),(0,o._)(this,"removeSelectAll",()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)}),(0,o._)(this,"appendSelectAll",()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)}),(0,o._)(this,"calcPathImd",()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=s.INVISIBLE_SPACE),t){let e,i,o;n.Dom.up(t,t=>{t&&this.j.editor!==t&&!n.Dom.isText(t)&&!n.Dom.isComment(t)&&(e=t.nodeName.toLowerCase(),i=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,i,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()}),(0,o._)(this,"calcPath",this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)),(0,o._)(this,"container",void 0),(0,o._)(this,"menu",void 0)}}r.pluginSystem.add("xpath",h)},52100:function(t,e,i){"use strict";function o(t){return t&&"function"==typeof t.then}i.d(e,{isPromise:function(){return o}})},52144:function(t,e,i){"use strict";i.d(e,{set:function(){return a}});var o=i(17312),s=i(70222),n=i(62101),r=i(85932);function a(t,e,i){if(!(0,r.isString)(t)||!t.length)return;let a=t.split("."),l=i,c=a[0];for(let t=0;t<a.length-1;t+=1)c=a[t],(0,o.isArray)(l[c])||(0,n.isPlainObject)(l[c])||(l[c]=(0,s.isNumeric)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},52433:function(t,e,i){"use strict";i.d(e,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return r}});var o=i(23211),s=i(91565),n=i(18303);function r(t){return!(0,n.isVoid)(t)&&(0,s.isFunction)(t.init)}function a(t){return!(0,n.isVoid)(t)&&(0,s.isFunction)(t.destruct)}function l(t){return!(0,n.isVoid)(t)&&o.Dom.isElement(t.container)}},52450:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},52938:function(t,e,i){"use strict";i.d(e,{wrapText:function(){return s}});var o=i(23211);function s(t,e){let i=t;o.Dom.up(i,t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)},e.editor);let s=o.Dom.wrapInline(i,e.o.enter,e);if(o.Dom.isEmpty(s)){let i=e.createInside.element("br");s.appendChild(i),o.Dom.before(i,t)}return s}},53202:function(t,e,i){"use strict";i.d(e,{loadTree:function(){return n}});var o=i(27795),s=i(1488);async function n(t){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let e=(0,s.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(e=>{t.state.sources=e}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),e])):(t.tree.setMod("active",!1),e)}},53328:function(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},53390:function(t,e,i){"use strict";var o=i(28077);i(96863),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(e,i,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},53414:function(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53514:function(t,e,i){"use strict";i.d(e,{removeInvTextNodes:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i,n,r,a){if(a===e||!s.Dom.isText(e)||null==e.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return i;let l=s.Dom.furthest(a,s.Dom.isBlock,t.editor);return!l||s.Dom.isOrContains(l,e)?i:(e.nodeValue=e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||s.Dom.safeRemove(e),!0)}},53681:function(t,e,i){"use strict";i.d(e,{Button:function(){return g},UIButton:function(){return m},UIButtonState:function(){return f}});var o=i(25045),s=i(31635),n=i(69364),r=i(84839),a=i(23211),l=i(91565),c=i(85932),u=i(93640),h=i(96007),d=i(97959),p=i(29434);let f=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class m extends h.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,u.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,u.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let t=this.closest(d.UIList);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",t),(0,u.attr)(this.container,"aria-label",t)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,l.isFunction)(t)&&t(this.state.name))return;a.Dom.detach(this.icon);let e=p.Icon.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&a.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return e.appendChild(i),e.appendChild(o),e}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(e=>e.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,e){super(t),(0,o._)(this,"isButton",!0),(0,o._)(this,"state",f()),(0,o._)(this,"button",void 0),(0,o._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(n.STATUSES.ready,()=>{this.setState(e)})}}function g(t,e,i,o){let s=new m(t);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(e)?(s.state.icon.name=e,s.state.name=e,o&&(s.state.variant=o),i&&(s.state.text=i)):s.setState(e),s}(0,s.__decorate)([r.cache],m.prototype,"text",null),(0,s.__decorate)([r.cache],m.prototype,"icon",null),(0,s.__decorate)([(0,r.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),(0,s.__decorate)([(0,r.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),(0,s.__decorate)([(0,r.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),(0,s.__decorate)([(0,r.watch)("parentElement")],m.prototype,"updateSize",null),(0,s.__decorate)([(0,r.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),(0,s.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),(0,s.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),(0,s.__decorate)([(0,r.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,s.__decorate)([(0,r.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,s.__decorate)([(0,r.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),(0,s.__decorate)([(0,r.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),(0,s.__decorate)([(0,r.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),(0,s.__decorate)([(0,r.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),(0,s.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,s.__decorate)([(0,r.watch)("button:click")],m.prototype,"__onActionFire",null),m=(0,s.__decorate)([r.component],m)},53808:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53855:function(t,e,i){"use strict";i.d(e,{History:function(){return h}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(5266),l=i(8838),c=i(46363),u=i(33511);a.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends n.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let e=this.snapshot.make();if(!c.Snapshot.equal(e,this.startValue)){let i=new l.Command(this.startValue,e,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,e=new u.Stack(t.o.history.maxHistoryLength),i=new c.Snapshot(t)){super(t),(0,o._)(this,"__startValue",void 0),(0,o._)(this,"__stack",void 0),(0,o._)(this,"snapshot",void 0),(0,o._)(this,"updateTick",0),this.__stack=e,this.snapshot=i,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}(0,s.__decorate)([(0,r.debounce)()],h.prototype,"onChange",null)},54053:function(t,e,i){"use strict";i.d(e,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return s.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return n.removeFormatForSelection},visitNodeWalker:function(){return r.visitNodeWalker}});var o=i(5650),s=i(37431),n=i(70195),r=i(45219)},54308:function(t,e,i){"use strict";i.d(e,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var o=i(81937),s=i(23211),n=i(28686),r=i(53681);function a(t,e,i){var o;let r,a;if(e.isInDestruct)return;t&&"drop"===t.type&&e.s.insertCursorAtPoint(t.clientX,t.clientY);let l=e.e.fire("beforePasteInsert",i);!(0,n.isVoid)(l)&&((0,n.isString)(l)||(0,n.isNumber)(l)||s.Dom.isNode(l))&&(i=l),(0,n.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),e.s.insertHTML(i)}function l(t){let e=t.types,i="";if((0,n.isArray)(e)||"[object DOMStringList]"===({}).toString.call(e))for(let t=0;t<e.length;t+=1)i+=e[t]+";";else i=(e||o.TEXT_PLAIN).toString()+";";return i}function c(t,e,i,o,s){if(!1===t.e.fire("beforeOpenPasteDialog",e,i,o,s))return;let n=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(i)),a=s.map(({text:e,value:i})=>(0,r.Button)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction(()=>{n.close(),o(i)}));n.e.one(n,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let l=(0,r.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{n.close()});return n.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",n,e,i,o,s),n}},54447:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},54500:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(928),r=i.n(n),a=i(31230),l=i.n(a);s.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r()).set("resize",l())},54522:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},54794:function(t,e,i){"use strict";i.d(e,{fastClone:function(){return r},isAtom:function(){return s},markAsAtomic:function(){return n}});var o=i(3347);function s(t){return t&&t.isAtom}function n(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function r(t){return JSON.parse((0,o.stringify)(t))}},55184:function(t,e,i){"use strict";i.d(e,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),s=i(28686),n=i(28712),r=i(33201);function a(t,e=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,s.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,n.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,s.isFunction)(t)?t(o):t,c=(0,s.isNumber)(a)||(0,s.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,e)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(t,e=!1){return a(t,e,"throttle")}},55376:function(t,e,i){"use strict";i.d(e,{FileBrowserTree:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserTree"}}},55810:function(t,e,i){"use strict";i.d(e,{init:function(){return a}});var o=i(81937),s=i(28077),n=i(28686),r=i(3050);function a(t,e,i,a,l,c){if((0,n.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,r.loadStyle)(t,e).catch(t=>{o.IS_PROD}),a.styles&&((0,s.getContainer)(t,e,"style").innerHTML=a.styles)}},56490:function(t,e,i){"use strict";i.d(e,{Popup:function(){return o.Popup}});var o=i(51116)},56894:function(t,e,i){"use strict";var o=i(31635),s=i(68616),n=i(28077),r=i(91206);i(96722);var a=i(33915),l=i(14282);class c extends r.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(e=>{l[e](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(e=>{a[e](this.j,t)})}}(0,o.__decorate)([(0,s.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,o.__decorate)([(0,s.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},57075:function(t,e,i){"use strict";i.d(e,{previewBox:function(){return l}});var o=i(23211),s=i(85932),n=i(7909),r=i(80991),a=i(28723);function l(t,e,i="px",c=null){let u=[],h=function(t,e){let i=[];try{(0,a.$$)("img",t.editor).forEach(s=>{let r=[(0,n.attr)(s,"width"),(0,n.attr)(s,"height"),s.src];(0,n.attr)(s,{width:s.offsetWidth+e,height:s.offsetHeight+e});let a=t.createInside.a();t.ed.body.appendChild(a),a.href=s.src,s.src=a.href,o.Dom.safeRemove(a),i.push(()=>{s.src=r[2]??"",(0,n.attr)(s,{width:r[0]||null,height:r[1]||null})})})}catch(t){throw i.forEach(t=>t()),i.length=0,t}return i}(t,i);try{let a=t.e.fire("beforePreviewBox",e,i);if(null!=a)return a;let l=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,r.css)(l,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let e=t.create.element("iframe");(0,r.css)(e,{minWidth:800,minHeight:600,border:0}),l.appendChild(e);let i=e.contentWindow;if(i&&(t.e.fire("generateDocumentStructure.iframe",i.document,t),l=i.document.body,"function"==typeof ResizeObserver)){let o=!1,s=i.document.body,n=new ResizeObserver(t.async.debounce(()=>{n.unobserve(s),e.style.height=`${s.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||n.observe(s)})},100)),r=()=>{o=!0,n.unobserve(s),n.disconnect(),t.e.off("beforeDestruct",r)};u.push(r),t.e.on("beforeDestruct",r)}}else(0,r.css)(l,{minWidth:1024,minHeight:600,border:0});let d=(e,i)=>{let r=(0,s.isString)(i)?t.c.div():i;(0,s.isString)(i)&&(r.innerHTML=i);for(let t=0;t<r.childNodes.length;t+=1){let i=r.childNodes[t];if(o.Dom.isElement(i)){let t=e.ownerDocument.createElement(i.nodeName);for(let e=0;e<i.attributes.length;e+=1)(0,n.attr)(t,i.attributes[e].nodeName,i.attributes[e].nodeValue);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(t.textContent=i.textContent):i.innerHTML&&(t.innerHTML=i.innerHTML):d(t,i);try{e.appendChild(t)}catch{}}else try{e.appendChild(i.cloneNode(!0))}catch{}}};return d(l,h),t.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},57339:function(t,e,i){"use strict";i.d(e,{readSizes:function(){return a}});var o=i(70222),s=i(7909),n=i(80991),r=i(10808);async function a(t,e,i){try{await t.decode()}catch(t){}let a=(0,n.css)(t,"width",!0)||(0,s.attr)(t,"width")||!1,l=(0,n.css)(t,"height",!0)||(0,s.attr)(t,"height")||!1;e.imageWidth=!1!==a?(0,r.normalSizeFromString)(a):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(e.imageWidth)?e.imageHeight=!1!==l?(0,r.normalSizeFromString)(l):t.offsetHeight||t.naturalHeight:e.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=e,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){e.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*i.ratio)}},57626:function(t,e,i){"use strict";i.d(e,{fuzzySearchIndex:function(){return s}});var o=i(81937);function s(t,e,i=0,n=1){let r=0,a=0,l=-1,c=0,u=0;for(a=i;r<t.length&&a<e.length;)t[r].toLowerCase()===e[a].toLowerCase()?(r++,c++,u=0,-1===l&&(l=a)):r>0&&(u>=n&&e[a]!==o.INVISIBLE_SPACE?(r=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return r===t.length?[l,c]:[-1,0]}},57821:function(t,e,i){"use strict";i.d(e,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,e,i)=>i.toUpperCase())},58250:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},58293:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeX=!1,o.Config.prototype.allowResizeY=!0},58317:function(t,e,i){"use strict";i.d(e,{UISearch:function(){return u}});var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(4099);class u extends c.UIElement{className(){return"UISearch"}render(){return`<div>
|
|
191
|
+
</div>`}destruct(){return this.close(),super.destruct()}constructor(t,e=!0){super(t),(0,o._)(this,"smart",void 0),(0,o._)(this,"isOpened",void 0),(0,o._)(this,"strategy",void 0),(0,o._)(this,"viewBound",void 0),(0,o._)(this,"__targetBound",void 0),(0,o._)(this,"__childrenPopups",void 0),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,c.attr)(this.container,"role","popup")}}(0,s.__decorate)([r.autobind],f.prototype,"updatePosition",null),(0,s.__decorate)([(0,r.throttle)(10),r.autobind],f.prototype,"__throttleUpdatePosition",null),(0,s.__decorate)([r.autobind],f.prototype,"close",null),(0,s.__decorate)([r.autobind],f.prototype,"__closeOnOutsideClick",null)},51457:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51640:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return s.FiniteStateMachine},elementsEqualAttributes:function(){return l.elementsEqualAttributes},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return n.getSuitChild},getSuitParent:function(){return r.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},isSameAttributes:function(){return l.isSameAttributes},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return h.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return p.wrap}});var o=i(17481),s=i(48729),n=i(10171),r=i(19549);i(9703);var a=i(39608);i(83653);var l=i(95971),c=i(73019),u=i(34582);i(97110);var h=i(82794),d=i(89081),p=i(73154);i(83335)},51676:function(t,e,i){"use strict";i.d(e,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(69364),s=i(23211),n=i(28686),r=i(38027);function a(t,e){let i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,n.isFunction)(i.get)?null:i.value}function l(t,e,i){let o=i.get;if(!o)throw(0,r.error)("Getter property descriptor expected");i.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function c(t,e,i){let a=i.value;if(!(0,n.isFunction)(a))throw(0,r.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);let e=a.apply(this,t);return l&&s.Dom.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(o.STATUSES.ready,t=>{l=!!((0,n.isViewObject)(t)?t:t.jodit).options.cache})}},51730:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},51822:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},51957:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52014:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(27795),r=i(28077),a=i(65946),l=i(91206),c=i(67399),u=i(4274);i(92063);class h extends l.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath");let t=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===s.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=s.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",t),t(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),n.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(...t){super(...t),(0,o._)(this,"onContext",(t,e)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?n.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1)),(0,o._)(this,"onSelectPath",(t,e)=>{this.j.s.focus();let i=(0,a.attr)(e.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1}),(0,o._)(this,"tpl",(t,e,i,o)=>{let s=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${o}" tabindex="-1"'>${(0,a.trim)(i)}</a></span>`),n=s.firstChild;return this.j.e.on(n,"click",this.onSelectPath.bind(this,t)).on(n,"contextmenu",this.onContext.bind(this,t)),s}),(0,o._)(this,"selectAllButton",void 0),(0,o._)(this,"removeSelectAll",()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)}),(0,o._)(this,"appendSelectAll",()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)}),(0,o._)(this,"calcPathImd",()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=s.INVISIBLE_SPACE),t){let e,i,o;n.Dom.up(t,t=>{t&&this.j.editor!==t&&!n.Dom.isText(t)&&!n.Dom.isComment(t)&&(e=t.nodeName.toLowerCase(),i=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,i,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()}),(0,o._)(this,"calcPath",this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)),(0,o._)(this,"container",void 0),(0,o._)(this,"menu",void 0)}}r.pluginSystem.add("xpath",h)},52100:function(t,e,i){"use strict";function o(t){return t&&"function"==typeof t.then}i.d(e,{isPromise:function(){return o}})},52144:function(t,e,i){"use strict";i.d(e,{set:function(){return a}});var o=i(17312),s=i(70222),n=i(62101),r=i(85932);function a(t,e,i){if(!(0,r.isString)(t)||!t.length)return;let a=t.split("."),l=i,c=a[0];for(let t=0;t<a.length-1;t+=1)c=a[t],(0,o.isArray)(l[c])||(0,n.isPlainObject)(l[c])||(l[c]=(0,s.isNumeric)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},52433:function(t,e,i){"use strict";i.d(e,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return r}});var o=i(23211),s=i(91565),n=i(18303);function r(t){return!(0,n.isVoid)(t)&&(0,s.isFunction)(t.init)}function a(t){return!(0,n.isVoid)(t)&&(0,s.isFunction)(t.destruct)}function l(t){return!(0,n.isVoid)(t)&&o.Dom.isElement(t.container)}},52450:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},52938:function(t,e,i){"use strict";i.d(e,{wrapText:function(){return s}});var o=i(23211);function s(t,e){let i=t;o.Dom.up(i,t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)},e.editor);let s=o.Dom.wrapInline(i,e.o.enter,e);if(o.Dom.isEmpty(s)){let i=e.createInside.element("br");s.appendChild(i),o.Dom.before(i,t)}return s}},53202:function(t,e,i){"use strict";i.d(e,{loadTree:function(){return n}});var o=i(27795),s=i(1488);async function n(t){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let e=(0,s.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(e=>{t.state.sources=e}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),e])):(t.tree.setMod("active",!1),e)}},53328:function(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},53390:function(t,e,i){"use strict";var o=i(28077);i(96863),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(e,i,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},53414:function(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53514:function(t,e,i){"use strict";i.d(e,{removeInvTextNodes:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i,n,r,a){if(a===e||!s.Dom.isText(e)||null==e.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return i;let l=s.Dom.furthest(a,s.Dom.isBlock,t.editor);return!l||s.Dom.isOrContains(l,e)?i:(e.nodeValue=e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||s.Dom.safeRemove(e),!0)}},53681:function(t,e,i){"use strict";i.d(e,{Button:function(){return g},UIButton:function(){return m},UIButtonState:function(){return f}});var o=i(25045),s=i(31635),n=i(69364),r=i(84839),a=i(23211),l=i(91565),c=i(85932),u=i(93640),h=i(96007),d=i(97959),p=i(29434);let f=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class m extends h.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,u.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,u.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let t=this.closest(d.UIList);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",t),(0,u.attr)(this.container,"aria-label",t)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,l.isFunction)(t)&&t(this.state.name))return;a.Dom.detach(this.icon);let e=p.Icon.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&a.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return e.appendChild(i),e.appendChild(o),e}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(e=>e.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,e){super(t),(0,o._)(this,"isButton",!0),(0,o._)(this,"state",f()),(0,o._)(this,"button",void 0),(0,o._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(n.STATUSES.ready,()=>{this.setState(e)})}}function g(t,e,i,o){let s=new m(t);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(e)?(s.state.icon.name=e,s.state.name=e,o&&(s.state.variant=o),i&&(s.state.text=i)):s.setState(e),s}(0,s.__decorate)([r.cache],m.prototype,"text",null),(0,s.__decorate)([r.cache],m.prototype,"icon",null),(0,s.__decorate)([(0,r.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),(0,s.__decorate)([(0,r.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),(0,s.__decorate)([(0,r.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),(0,s.__decorate)([(0,r.watch)("parentElement")],m.prototype,"updateSize",null),(0,s.__decorate)([(0,r.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),(0,s.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),(0,s.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),(0,s.__decorate)([(0,r.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,s.__decorate)([(0,r.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,s.__decorate)([(0,r.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),(0,s.__decorate)([(0,r.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),(0,s.__decorate)([(0,r.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),(0,s.__decorate)([(0,r.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),(0,s.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,s.__decorate)([(0,r.watch)("button:click")],m.prototype,"__onActionFire",null),m=(0,s.__decorate)([r.component],m)},53808:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53855:function(t,e,i){"use strict";i.d(e,{History:function(){return h}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(5266),l=i(8838),c=i(46363),u=i(33511);a.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends n.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let e=this.snapshot.make();if(!c.Snapshot.equal(e,this.startValue)){let i=new l.Command(this.startValue,e,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,e=new u.Stack(t.o.history.maxHistoryLength),i=new c.Snapshot(t)){super(t),(0,o._)(this,"__startValue",void 0),(0,o._)(this,"__stack",void 0),(0,o._)(this,"snapshot",void 0),(0,o._)(this,"updateTick",0),this.__stack=e,this.snapshot=i,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}(0,s.__decorate)([(0,r.debounce)()],h.prototype,"onChange",null)},54053:function(t,e,i){"use strict";i.d(e,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return s.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return n.removeFormatForSelection},visitNodeWalker:function(){return r.visitNodeWalker}});var o=i(5650),s=i(37431),n=i(70195),r=i(45219)},54308:function(t,e,i){"use strict";i.d(e,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var o=i(81937),s=i(23211),n=i(28686),r=i(53681);function a(t,e,i){var o;let r,a;if(e.isInDestruct)return;t&&"drop"===t.type&&e.s.insertCursorAtPoint(t.clientX,t.clientY);let l=e.e.fire("beforePasteInsert",i);!(0,n.isVoid)(l)&&((0,n.isString)(l)||(0,n.isNumber)(l)||s.Dom.isNode(l))&&(i=l),(0,n.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),e.s.insertHTML(i)}function l(t){let e=t.types,i="";if((0,n.isArray)(e)||"[object DOMStringList]"===({}).toString.call(e))for(let t=0;t<e.length;t+=1)i+=e[t]+";";else i=(e||o.TEXT_PLAIN).toString()+";";return i}function c(t,e,i,o,s){if(!1===t.e.fire("beforeOpenPasteDialog",e,i,o,s))return;let n=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(i)),a=s.map(({text:e,value:i})=>(0,r.Button)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction(()=>{n.close(),o(i)}));n.e.one(n,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let l=(0,r.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{n.close()});return n.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",n,e,i,o,s),n}},54447:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},54500:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(928),r=i.n(n),a=i(31230),l=i.n(a);s.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r()).set("resize",l())},54522:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},54794:function(t,e,i){"use strict";i.d(e,{fastClone:function(){return r},isAtom:function(){return s},markAsAtomic:function(){return n}});var o=i(3347);function s(t){return t&&t.isAtom}function n(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function r(t){return JSON.parse((0,o.stringify)(t))}},55184:function(t,e,i){"use strict";i.d(e,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),s=i(28686),n=i(28712),r=i(33201);function a(t,e=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,s.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,n.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,s.isFunction)(t)?t(o):t,c=(0,s.isNumber)(a)||(0,s.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,e)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(t,e=!1){return a(t,e,"throttle")}},55376:function(t,e,i){"use strict";i.d(e,{FileBrowserTree:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserTree"}}},55810:function(t,e,i){"use strict";i.d(e,{init:function(){return a}});var o=i(81937),s=i(28077),n=i(28686),r=i(3050);function a(t,e,i,a,l,c){if((0,n.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,r.loadStyle)(t,e).catch(t=>{o.IS_PROD}),a.styles&&((0,s.getContainer)(t,e,"style").innerHTML=a.styles)}},56490:function(t,e,i){"use strict";i.d(e,{Popup:function(){return o.Popup}});var o=i(51116)},56894:function(t,e,i){"use strict";var o=i(31635),s=i(68616),n=i(28077),r=i(91206);i(96722);var a=i(33915),l=i(14282);class c extends r.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(e=>{l[e](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(e=>{a[e](this.j,t)})}}(0,o.__decorate)([(0,s.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,o.__decorate)([(0,s.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},57075:function(t,e,i){"use strict";i.d(e,{previewBox:function(){return l}});var o=i(23211),s=i(85932),n=i(7909),r=i(80991),a=i(28723);function l(t,e,i="px",c=null){let u=[],h=function(t,e){let i=[];try{(0,a.$$)("img",t.editor).forEach(s=>{let r=[(0,n.attr)(s,"width"),(0,n.attr)(s,"height"),s.src];(0,n.attr)(s,{width:s.offsetWidth+e,height:s.offsetHeight+e});let a=t.createInside.a();t.ed.body.appendChild(a),a.href=s.src,s.src=a.href,o.Dom.safeRemove(a),i.push(()=>{s.src=r[2]??"",(0,n.attr)(s,{width:r[0]||null,height:r[1]||null})})})}catch(t){throw i.forEach(t=>t()),i.length=0,t}return i}(t,i);try{let a=t.e.fire("beforePreviewBox",e,i);if(null!=a)return a;let l=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,r.css)(l,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let e=t.create.element("iframe");(0,r.css)(e,{minWidth:800,minHeight:600,border:0}),l.appendChild(e);let i=e.contentWindow;if(i&&(t.e.fire("generateDocumentStructure.iframe",i.document,t),l=i.document.body,"function"==typeof ResizeObserver)){let o=!1,s=i.document.body,n=new ResizeObserver(t.async.debounce(()=>{n.unobserve(s),e.style.height=`${s.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||n.observe(s)})},100)),r=()=>{o=!0,n.unobserve(s),n.disconnect(),t.e.off("beforeDestruct",r)};u.push(r),t.e.on("beforeDestruct",r)}}else(0,r.css)(l,{minWidth:1024,minHeight:600,border:0});let d=(e,i)=>{let r=(0,s.isString)(i)?t.c.div():i;(0,s.isString)(i)&&(r.innerHTML=i);for(let t=0;t<r.childNodes.length;t+=1){let i=r.childNodes[t];if(o.Dom.isElement(i)){let t=e.ownerDocument.createElement(i.nodeName);for(let e=0;e<i.attributes.length;e+=1)(0,n.attr)(t,i.attributes[e].nodeName,i.attributes[e].nodeValue);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(t.textContent=i.textContent):i.innerHTML&&(t.innerHTML=i.innerHTML):d(t,i);try{e.appendChild(t)}catch{}}else try{e.appendChild(i.cloneNode(!0))}catch{}}};return d(l,h),t.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},57339:function(t,e,i){"use strict";i.d(e,{readSizes:function(){return a}});var o=i(70222),s=i(7909),n=i(80991),r=i(10808);async function a(t,e,i){try{await t.decode()}catch(t){}let a=(0,n.css)(t,"width",!0)||(0,s.attr)(t,"width")||!1,l=(0,n.css)(t,"height",!0)||(0,s.attr)(t,"height")||!1;e.imageWidth=!1!==a?(0,r.normalSizeFromString)(a):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(e.imageWidth)?e.imageHeight=!1!==l?(0,r.normalSizeFromString)(l):t.offsetHeight||t.naturalHeight:e.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=e,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){e.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*i.ratio)}},57626:function(t,e,i){"use strict";i.d(e,{fuzzySearchIndex:function(){return s}});var o=i(81937);function s(t,e,i=0,n=1){let r=0,a=0,l=-1,c=0,u=0;for(a=i;r<t.length&&a<e.length;)t[r].toLowerCase()===e[a].toLowerCase()?(r++,c++,u=0,-1===l&&(l=a)):r>0&&(u>=n&&e[a]!==o.INVISIBLE_SPACE?(r=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return r===t.length?[l,c]:[-1,0]}},57821:function(t,e,i){"use strict";i.d(e,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,e,i)=>i.toUpperCase())},58250:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},58293:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeX=!1,o.Config.prototype.allowResizeY=!0},58317:function(t,e,i){"use strict";i.d(e,{UISearch:function(){return u}});var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(4099);class u extends c.UIElement{className(){return"UISearch"}render(){return`<div>
|
|
192
192
|
<div class="&__box">
|
|
193
193
|
<div class="&__inputs">
|
|
194
194
|
<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
<div class="${e("resizer")}">${f.Icon.get("resize_handler")}</div>
|
|
251
251
|
</div>
|
|
252
252
|
</div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,d.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");const s=this.getElm("resizer");(0,p.assert)(null!=s,"Resizer element does not exist");const n=this.getElm("header-title");(0,p.assert)(null!=n,"header-title element does not exist");const r=this.getElm("content");(0,p.assert)(null!=r,"Content element does not exist");const a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");const u=this.getElm("header-toolbar");(0,p.assert)(null!=u,"header-toolbar element does not exist"),this.dialog=i,this.resizer=s,this.dialogbox_header=n,this.dialogbox_content=r,this.dialogbox_footer=a,this.dialogbox_toolbar=u,(0,d.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const g=c.pluginSystem.get("fullsize");if((0,h.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,p.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}}(0,o._)(v,"defaultOptions",{...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,s.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,s.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,s.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"close",null),(0,s.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,s.__decorate)([a.component],v)},77036:function(t,e,i){"use strict";i.d(e,{persistent:function(){return n}});var o=i(69364),s=i(31534);function n(t,e){t.hookStatus(o.STATUSES.ready,t=>{let i=(0,s.isViewObject)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,n=t[e];Object.defineProperty(t,e,{get:()=>i.storage.get(o)??n,set(t){i.storage.set(o,t)}})})}},77213:function(t,e,i){"use strict";i.d(e,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},77227:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(91115),r=i.n(n),a=i(1916),l=i.n(a);s.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",l()),o.Icon.set("ai-commands",r()),s.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:i}){t.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},s.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,i){t.e.fire("generateAiAssistantForm.ai-assistant")}}},77367:function(t,e,i){"use strict";i.d(e,{normalizeColor:function(){return n}});var o=i(93387),s=i(4040);let n=t=>{let e=["#"],i=(0,o.colorToHex)(t);if(!i)return!1;if(3===(i=(i=(0,s.trim)(i.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483:function(t,e,i){"use strict";i.d(e,{ConfigDeepFlatten:function(){return function t(e){return(0,c.keys)(e,!1).reduce((i,o)=>(i[o]=(0,s.isPlainObject)(e[o])?t(e[o]):e[o],i),{})}},ConfigFlatten:function(){return u},ConfigProto:function(){return function t(e,i,c=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;let u=a.Config.defaultOptions;if((0,n.isString)(e.preset)){if(void 0!==u.presets[e.preset]){let t=u.presets[e.preset];Object.keys(t).forEach(i=>{(0,r.isVoid)(e[i])&&(e[i]=t[i])})}delete e.preset}let h={};return Object.keys(e).forEach(n=>{let r=e[n],a=i?i[n]:null;if((0,s.isPlainObject)(r)&&(0,s.isPlainObject)(a)&&!(0,l.isAtom)(r)){h[n]=t(r,a,c+1);return}if(0!==c&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){h[n]=[...r,...a.slice(r.length)];return}h[n]=r}),Object.setPrototypeOf(h,i),h}}});var o=i(17312),s=i(62101),n=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(71125);function u(t){return(0,c.keys)(t,!1).reduce((e,i)=>(e[i]=t[i],e),{})}},77911:function(t,e,i){"use strict";i.d(e,{ajaxInstances:function(){return r},send:function(){return a}});var o=i(65946),s=i(73714),n=i(89446);let r=new WeakMap;function a(t,e){let i=(0,n.buildData)(t,e),a=e=>{t.j.progressbar.show().progress(e),e>=100&&t.j.progressbar.hide()},l=(e,i)=>{let n=new s.Ajax({xhr(){let e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(i(10),e.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;i(e*=100)}},!1)):i(100),e},method:t.o.method||"POST",data:e,url:(0,o.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1}),a=r.get(t);return a||(a=new Set,r.set(t,a)),a.add(n),t.j.e.one("beforeDestruct",n.destruct),n.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{n.destruct(),a?.delete(n)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(l=t.o.customUploadFunction),(0,o.isPromise)(i))?i.then(t=>l(t,a)).catch(e=>{t.o.error.call(t,e)}):l(i,a)}},78462:function(t,e,i){"use strict";i.d(e,{states:function(){return l},transactions:function(){return c}});var o=i(81937),s=i(23211),n=i(28712),r=i(59841),a=i(51640);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(t){let{element:e,jodit:i,style:o,mode:n,collapsed:c}=t;if((0,a.isInsideInvisibleElement)(e,i.editor)||!c&&s.Dom.isEmptyContent(e))return{...t,next:l.END};let u=(0,a.getSuitParent)(o,e,i.editor)||(0,a.getSuitChild)(o,e);if(u)return{...t,next:l.ELEMENT,element:u};let h=(0,a.suitableClosest)(o,e,i.editor);return o.elementIsList&&s.Dom.isList(h)?{...t,next:l.LIST}:h?{...t,next:l.EXTRACT}:{...t,next:n!==r.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(t){let{element:e,jodit:i,mode:n}=t;if(n!==r.INITIAL&&n!==r.UNWRAP&&n!==r.REPLACE)return{...t,next:l.END};let a=s.Dom.closest(e,"li",i.editor);return a&&s.Dom.closest(e,o.LIST_TAGS,i.editor)?{...t,element:a,next:l.TOGGLE_LIST}:{...t,next:l.END}}},[l.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:l.END})},[l.EXTRACT]:{exec(t){let{element:e,jodit:i,style:o}=t,r=(0,a.suitableClosest)(o,e,i.editor);return((0,n.assert)(r,"This place should have an element"),!o.elementIsBlock&&o.options.attributes?.style&&s.Dom.isBlock(r))?{...t,next:l.WRAP}:(o.elementIsBlock||(0,a.extractSelectedPart)(r,e,i),{...t,element:r,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(t){let{element:e,style:i}=t;return(0,a.unwrapChildren)(i,e)?{...t,mode:r.UNWRAP,next:l.END}:{...t,next:l.WRAP}}},[l.WRAP]:{exec(t){let{element:e,jodit:i,style:o}=t,s=(0,a.wrap)(o,e,i);return{...t,next:o.elementIsList?l.END:l.CHANGE,mode:r.WRAP,element:s}}},[l.ELEMENT]:{exec(t){let{style:e,element:i,jodit:o}=t;return(0,a.toggleAttributes)(e,i,o,r.INITIAL,!0)!==r.INITIAL?{...t,next:l.CHANGE}:s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,next:l.END}}},[l.CHANGE]:{exec(t){let{style:e,element:i,jodit:o,mode:n}=t,c=(0,a.toggleAttributes)(e,i,o,t.mode);return n!==r.WRAP&&c===r.UNSET&&!i.attributes.length&&s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,mode:c,next:l.END}}},[l.UNWRAP]:{exec:t=>t.element.attributes.length&&s.Dom.isTag(t.element,t.style.element)?{...t,next:l.REPLACE_DEFAULT}:(s.Dom.unwrap(t.element),{...t,mode:r.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:t=>(s.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:r.REPLACE,next:l.END})},[l.END]:{exec:t=>t}}},78690:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(5266);n.Config.prototype.autofocus=!1,n.Config.prototype.cursorAfterAutofocus="end",n.Config.prototype.saveSelectionOnBlur=!0,s.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.s.restore()});let e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){let e=o.Dom.last(t.editor,t=>o.Dom.isText(t));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",e=>{t.isEditorMode()&&e.target&&o.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))})})})},78982:function(t,e,i){"use strict";i.d(e,{asArray:function(){return s}});var o=i(17312);let s=t=>(0,o.isArray)(t)?t:[t]},79310:function(t,e,i){"use strict";i.d(e,{readLink:function(){return n}});var o=i(23211),s=i(7909);function n(t,e,i){let n=o.Dom.closest(t.sourceImage,"a",e.editor);n?(i.imageLink=(0,s.attr)(n,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,s.attr)(n,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},79821:function(t,e,i){"use strict";i.d(e,{Create:function(){return o.Create}});var o=i(76517)},79947:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return n},setTimeout:function(){return s}});var o=i(81937);function s(t,e,...i){return e?o.globalWindow.setTimeout(t,e,...i):(t.call(null,...i),0)}function n(t){o.globalWindow.clearTimeout(t)}},80202:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},80251:function(t,e,i){"use strict";i.d(e,{Component:function(){return c}});var o=i(25045),s=i(91231),n=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,e,i){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),e&&(o.push("_",e),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,a.get)(t,e||this)}get isReady(){return this.componentStatus===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);let o=l.get(this),s=o?.[t];s&&s.length&&s.forEach(t=>t(e))}hookStatus(t,e){let i=l.get(this);i||(i={},l.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}constructor(){(0,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new s.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",n.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",n.STATUSES)},80347:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512:function(t,e,i){"use strict";i.d(e,{Dlgs:function(){return a}});var o=i(28077),s=i(28686),n=i(71125),r=i(37333);class a{dlg(t){let e=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new r.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:e,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,n.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(t,e,i){return t=l(t,this),e=l(e,this),r.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,e,i)}prompt(t,e,i,o,s){return t=l(t,this),e=l(e,this),o=l(o,this),r.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o,s)}alert(t,e,i,o){return t=l(t,this),e=l(e,this),r.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o)}}function l(t,e){return(0,s.isString)(t)&&!(0,s.isHTML)(t)&&(t=e.i18n(t)),t}},80515:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538:function(t,e,i){"use strict";var o=i(81937),s=i(29434),n=i(5266),r=i(24772),a=i.n(r),l=i(66547),c=i.n(l);n.Config.prototype.fullsize=!1,n.Config.prototype.globalFullSize=!0,s.Icon.set("fullsize",a()).set("shrink",c()),n.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){let i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},80840:function(t,e,i){"use strict";i.d(e,{wait:function(){return r}});var o=i(69364),s=i(91565),n=i(33201);function r(t){return(e,i)=>{let r=e[i];if(!(0,s.isFunction)(r))throw(0,n.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:o}=e,s=e[i],n=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...r){o.clearTimeout(n),t(e)?s.apply(e,r):n=o.setTimeout(()=>i(...r),10)}})})}}},80951:function(t,e,i){"use strict";i.d(e,{checkJoinTwoLists:function(){return r}});var o=i(23211),s=i(71125),n=i(15200);function r(t,e,i){let r=o.Dom.findSibling(e,i),a=o.Dom.findSibling(e,!i);if(!o.Dom.closest(e,o.Dom.isElement,t.editor)&&o.Dom.isList(r)&&o.Dom.isList(a)&&o.Dom.isTag(r.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=t.s,u=r.lastElementChild,h=a.firstElementChild;return(0,s.call)(i?o.Dom.prepend:o.Dom.append,h,e),o.Dom.moveContent(a,r,!i,(0,n.getMoveFilter)(t)),o.Dom.safeRemove(a),(0,s.call)(i?o.Dom.append:o.Dom.prepend,u,e),(0,s.call)(i?l:c,e),!0}return!1}},80991:function(t,e,i){"use strict";i.d(e,{clearCenterAlign:function(){return c},css:function(){return l}});var o=i(22289),s=i(62101),n=i(19147),r=i(57821),a=i(74264);function l(t,e,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,s.isPlainObject)(e)||void 0!==i){let o=(t,e,i)=>{void 0!==(i=(0,n.normalizeCssNumericValue)(e,i))&&(null==i||l(t,e,!0)!==(0,n.normalizeCssValue)(e,i))&&(t.style[e]=i)};if((0,s.isPlainObject)(e)){let i=Object.keys(e);for(let s=0;s<i.length;s+=1)o(t,(0,r.camelCase)(i[s]),e[i[s]])}else o(t,(0,r.camelCase)(e),i);return""}let u=(0,a.kebabCase)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),p=t.style[e],f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(t).getPropertyValue(u)),n.NUMBER_FIELDS_REG.test(e)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,n.normalizeCssValue)(e,f)}let c=t=>{"block"===l(t,"display")&&l(t,"display","");let{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},81008:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(51457),r=i.n(n),a=i(23602),l=i.n(a),c=i(86899),u=i.n(c),h=i(95320),d=i.n(h);s.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},s.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},s.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r()).set("cut",l()).set("paste",u()).set("select-all",d())},81144:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946);i(17326),s.pluginSystem.add("iframe",function(t){let e=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,i)=>{let o=t||i.iframe.contentWindow.document;if(o.open(),o.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,n.defaultLanguage)(e.language)}">`+"<head>"+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach(t=>{let e=o.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),o.head&&o.head.appendChild(e)}),e.iframeStyle){let t=o.createElement("style");t.innerHTML=e.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!e.iframe)return;let i=t.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",e.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=e.iframeSandbox&&i.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(i),t.iframe=i;let s=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,n.callPromise)(s,()=>{if(!t.iframe)return!1;let i=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let s=e.editHTMLDocumentMode,r=()=>{(0,n.attr)(i.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},a=t=>{let e=/<body.*<\/body>/im,i="{%%BODY%%}",o=e.exec(t);return o&&(t=t.replace(e,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(s){let e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,n.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>a(t.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?a(i.documentElement.outerHTML)!==a(e)&&(i.open(),i.write(t.o.iframeDoctype+a(e)),i.close(),t.editor=i.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=e,!0),{top:!0})}if(t.editor=i.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let o=t.async.throttle((...i)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===e.height){let e=t.ew.getComputedStyle(t.editor),i=parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10);(0,n.css)(t.iframe,"height",t.editor.offsetHeight+i)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let e=new ResizeObserver(o);e.observe(i.body),t.e.on("beforeDestruct",()=>{e.disconnect()})}}return i.documentElement&&t.e.on(i.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===i.body&&t.s.setCursorIn(i.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events?.fire(t.ow,e)}),!1})})})},81488:function(t,e,i){"use strict";i.d(e,{inputValidators:function(){return o},selectValidators:function(){return s}});var o=i(48776),s=i(6490)},81576:function(t,e,i){"use strict";i.d(e,{generateCriticalCSS:function(){return n}});var o=i(25045),s=i(88475);function n(t){let e=(t,e=t.ownerDocument.styleSheets)=>(0,s.toArray)(e).map(t=>{try{return(0,s.toArray)(t.cssRules)}catch{}return[]}).flat().filter(e=>{try{return!!(e&&t.matches(e.selectorText))}catch{}return!1});class i{generateCSS(){let t="";for(let e in this.css)if(!/:not\(/.test(e)){for(let i in t+=e+" { ",this.css[e])t+=i+": "+this.css[e][i]+"; ";t+=`}
|
|
253
|
-
`}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.8.5",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",P="Enter",A="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return p.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),s=i(81937),n=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(h.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,d={},p=new Set;t.__plugins=d;let f=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void p.add(o)}e=!0;let c=(0,u.makeInstance)(t,s);if(!c){n.set(o,null),p.delete(o);return}(0,l.init)(t,o,s,c,n,p),d[o]=c}),e&&(t.e.fire("updatePlugins"),f())};e&&e.length&&(0,c.loadExtras)(this.__items,t,e,f),f(),t.e.on("beforeDestruct",()=>{Object.keys(d).forEach(e=>{let i=d[e];(0,a.isDestructable)(i)&&i.destruct(t),delete d[e]}),delete t.__plugins}),s.IS_PROD||p.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||" ",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
|
|
253
|
+
`}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.8.7",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",P="Enter",A="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return p.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),s=i(81937),n=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(h.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,d={},p=new Set;t.__plugins=d;let f=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void p.add(o)}e=!0;let c=(0,u.makeInstance)(t,s);if(!c){n.set(o,null),p.delete(o);return}(0,l.init)(t,o,s,c,n,p),d[o]=c}),e&&(t.e.fire("updatePlugins"),f())};e&&e.length&&(0,c.loadExtras)(this.__items,t,e,f),f(),t.e.on("beforeDestruct",()=>{Object.keys(d).forEach(e=>{let i=d[e];(0,a.isDestructable)(i)&&i.destruct(t),delete d[e]}),delete t.__plugins}),s.IS_PROD||p.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||" ",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
|
|
254
254
|
`!==i&&!e.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,e,i)=>{this.showPopup(e,i||((0,l.isString)(t)?t:t.nodeName),(0,l.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&u.UIElement.closestElement(t.target,h.Popup))return;let{snapRange:e}=this,{range:i}=this.j.s;(!e||i.collapsed||i.startContainer!==e.startContainer||i.startOffset!==e.startOffset||i.endContainer!==e.endContainer||i.endOffset!==e.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",e=this.j.s.sel,i=this.j.s.range;if(e?.isCollapsed||this.isSelectedTarget(i)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),t)}isSelectedTarget(t){let e=t.startContainer;return r.Dom.isElement(e)&&e===t.endContainer&&r.Dom.isTag(e.childNodes[t.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,l.camelCase)("click_"+t)).concat(t.map(t=>(0,l.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:e}=this.j.s;return e.getBoundingClientRect()},"toolbar")}constructor(...t){super(...t),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t)))}}(0,o._)(p,"requires",["select"]),(0,s.__decorate)([n.cache],p.prototype,"popup",null),(0,s.__decorate)([n.cache],p.prototype,"toolbar",null),(0,s.__decorate)([n.autobind],p.prototype,"onClick",null),(0,s.__decorate)([(0,n.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),(0,s.__decorate)([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],p.prototype,"hidePopup",null),(0,s.__decorate)([(0,n.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionStart",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionEnd",null),(0,s.__decorate)([(0,n.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,s.__decorate)([n.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},89081:function(t,e,i){"use strict";i.d(e,{unwrapChildren:function(){return a}});var o=i(23211),s=i(93640),n=i(9703),r=i(73019);function a(t,e){let i,a=[],l=[],c=t.options.attributes?.style;if(e.firstChild){let u=o.Dom.eachGen(e),h=u.next();for(;!h.done;){let e=h.value;(0,r.isSuitElement)(t,e,!0)&&(!c||(0,n.hasSameStyleKeys)(e,c))?(void 0===i&&(i=!0),a.push(e)):c&&(0,r.isSameStyleChild)(t,e)?(void 0===i&&(i=!1),l.push(()=>{(0,s.css)(e,Object.keys(c).reduce((t,e)=>(t[e]=null,t),{})),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null),(0,s.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||a.push(e)})):o.Dom.isEmptyTextNode(e)||void 0!==i||(i=!1),h=u.next()}}return l.forEach(t=>t()),a.forEach(o.Dom.unwrap),!!i}},89097:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89308:function(t,e,i){"use strict";i.d(e,{get:function(){return n}});var o=i(85932),s=i(18303);function n(t,e){if(!(0,o.isString)(t)||!t.length)return null;let i=t.split("."),n=e;try{for(let t of i){if((0,s.isVoid)(n[t]))return null;n=n[t]}}catch{return null}return(0,s.isVoid)(n)?null:n}},89317:function(t,e,i){"use strict";var o=i(17312),s=i(41324),n=i.n(s),r=i(63837),a=i(53414);let l={};l={ar:n(),cs_cz:n(),de:n(),en:r,es:n(),fi:n(),fr:n(),he:n(),hu:n(),id:n(),it:n(),ja:n(),ko:n(),mn:n(),nl:n(),no:n(),pl:n(),pt_br:n(),ru:n(),tr:n(),ua:n(),zh_cn:n(),zh_tw:n()};let c=t=>t?t.default||t:{},u={};(0,o.isArray)(c(a))&&c(a).forEach((t,e)=>{u[e]=t}),Object.keys(l).forEach(t=>{let e=c(l[t]);(0,o.isArray)(e)?(l[t]={},e.forEach((e,i)=>{l[t][u[i]]=e})):l[t]=e}),e.default=l},89446:function(t,e,i){"use strict";i.d(e,{buildData:function(){return s}});var o=i(65946);function s(t,e){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);let i=t.ow.FormData;if(void 0!==i){if(e instanceof i||(0,o.isString)(e))return e;let t=new i;return Object.keys(e).forEach(i=>{t.append(i,e[i])}),t}return e}},89636:function(t,e,i){"use strict";i.d(e,{TabsWidget:function(){return l}});var o=i(16964),s=i(23211),n=i(91565),r=i(7909),a=i(4099);let l=(t,e,i)=>{let l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,r.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},d=[],p="";l.appendChild(u),l.appendChild(c);let f=t=>{h[t]&&(d.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach(({icon:l,name:m,content:g})=>{let _=t.c.div("jodit-tab");(0,r.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(t,l||m,m);v.state.role="tab",t.e.on(v.container,"pointerdown",t=>t.preventDefault()),p||(p=m),u.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.isFunction)(g)?_.appendChild(t.c.div("jodit-tab_empty")):_.appendChild(o.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(_),v.onAction(()=>(f(m),(0,n.isFunction)(g)&&!s.Dom.isElement(g)&&g.call(t),i&&(i.activeTab=m),!1)),h[m]={button:v,tab:_}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"}),f(i&&i.activeTab&&h[i.activeTab]?i.activeTab:p),i){let t=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,f(e)}})}return l}},89817:function(t,e,i){"use strict";i.d(e,{moveNodeInsideStart:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i){let n=s.Dom.findSibling(e,i),r=s.Dom.findSibling(e,!i);for(;s.Dom.isElement(n)&&!s.Dom.isTag(n,o.INSEPARABLE_TAGS)&&s.Dom.isContentEditable(n,t.editor)&&(!r||!s.Dom.closest(e,s.Dom.isElement,t.editor));)i||!n.firstChild?n.appendChild(e):s.Dom.before(n.firstChild,e),n=s.Dom.sibling(e,i),r=s.Dom.sibling(e,!i)}},89827:function(t,e,i){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}i.d(e,{checkNotCollapsed:function(){return o}})},89873:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(70235),r=i(17849),a=i(466),l=i(75711),c=i(59399),u=i(38681),h=i.n(u),d=i(64637),p=i.n(d),f=i(94190),m=i.n(f),g=i(51957),_=i.n(g),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineForSelection=!1,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",p()).set("merge",m()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),s.Config.prototype.popup={a:n.default,img:l.default,cells:r.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
|
|
255
255
|
`,"outdent","indent","fontsize","brush","cut",`
|
|
256
256
|
`,"paragraph","link","align","dots"]}},90204:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class u extends l.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),(0,o._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,r.extendLang)(c)}}(0,s.__decorate)([n.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},90826:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(15753),c=i(64831),u=i.n(c);r.Icon.set("image",u()),a.Config.prototype.controls.image={popup(t,e,i){let s=null;return e&&!o.Dom.isText(e)&&o.Dom.isHTMLElement(e)&&(o.Dom.isTag(e,"img")||(0,n.$$)("img",e).length)&&(s=o.Dom.isTag(e,"img")?e:(0,n.$$)("img",e)[0]),t.s.save(),(0,l.FileSelectorWidget)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach(i=>t.s.insertImage(e.baseurl+i,null,t.o.imageDefaultWidth)),i()},upload:!0,async url(e,o){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);let n=s||t.createInside.element("img");n.setAttribute("src",e),n.setAttribute("alt",o),s||await t.s.insertImage(n,null,t.o.imageDefaultWidth),i()}},s,i)},tags:["img"],tooltip:"Insert Image"},s.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},90886:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(18855),u=i(59400);i(34689);var h=i(27137),d=i(28771),p=i(670),f=i(47744),m=i(71552);class g extends c.Plugin{get form(){return new h.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,p.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,m.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()}),i.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),e.close()}),i.cancel.onAction(()=>{e.close()}),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[i.cancel,i.remove],i.check]),t.e.on(e,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),e.setSize(t.o.image.dialogWidth),(0,l.markOwner)(t,e.container),e}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,e)=>(0,f.readValuesFromImage)(this.j,this.state).then(t,e)).catch(t=>{(0,l.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let e=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",i=>{let o=i.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;e.state.sourceImage=o,e.state.image=o.cloneNode(!0),t.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),e.open())}else i.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:e}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,l.isNumeric)(e.imageWidth)){let t=parseFloat(e.imageWidth.toString());e.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){Object.values((0,n.cached)(this,"__buttons")??{}).forEach(t=>t.destruct()),(0,n.cached)(this,"dialog")?.destruct(),(0,n.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(...t){super(...t),(0,o._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:e}=this.image;return t/e||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,o._)(this,"activeTabState",{activeTab:"Image"})}}(0,s.__decorate)([n.cache],g.prototype,"form",null),(0,s.__decorate)([n.cache],g.prototype,"dialog",null),(0,s.__decorate)([n.cache],g.prototype,"__buttons",null),(0,s.__decorate)([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},91017:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},91115:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91162:function(t,e,i){"use strict";i.d(e,{IndexedDBProvider:function(){return n},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=i(25045),s=i(81937);class n{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,e)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{e(i.error)},i.onsuccess=()=>{t(i.result)},i.onupgradeneeded=t=>{let e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,e){try{let i=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=e(i);return new Promise((t,e)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{e(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,e){try{await this.performTransaction("readwrite",i=>i.put(e,t))}catch(t){s.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",e=>e.delete(t))}catch{}return this}async get(t){try{return await this.performTransaction("readonly",e=>e.get(t))}catch{return}}async exists(t){try{let e=await this.performTransaction("readonly",e=>e.get(t));return void 0!==e}catch{return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch{}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch{}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>t+"")}catch{return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch{return[]}}async entries(){try{let[t,e]=await Promise.all([this.keys(),this.values()]);return t.map((t,i)=>[t,e[i]])}catch{return[]}}constructor(t="JoditDB",e="keyValueStore"){(0,o._)(this,"dbName",void 0),(0,o._)(this,"dbPromise",void 0),(0,o._)(this,"DB_VERSION",void 0),(0,o._)(this,"storeName",void 0),this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=e}}let r=null;function a(){r=null}async function l(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let t="___Jodit___"+Math.random().toString(),e=indexedDB.open(t);return r=await new Promise(i=>{e.onerror=()=>{i(!1)},e.onsuccess=()=>{indexedDB.deleteDatabase(t),i(!0)}})}catch{return r=!1,!1}}},91206:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},91231:function(t,e,i){"use strict";i.d(e,{Async:function(){return o.Async}});var o=i(24735)},91321:function(t,e,i){"use strict";i.d(e,{completeUrl:function(){return s}});var o=i(81937);let s=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},91535:function(t,e,i){"use strict";i.d(e,{Alert:function(){return l}});var o=i(23211),s=i(78982),n=i(91565),r=i(53681),a=i(76841);function l(t,e,i,c="jodit-dialog_alert"){(0,n.isFunction)(e)&&(i=e,e=void 0);let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),h=u.c.div(c),d=(0,r.Button)(u,"ok","Ok");return(0,s.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:u.c.fromHTML(t))}),d.onAction(()=>{i&&(0,n.isFunction)(i)&&!1===i(u)||u.close()}),u.setFooter([d]),u.open(h,e||" ",!0,!0),d.focus(),u}},91560:function(t,e,i){"use strict";i.r(e),i.d(e,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return n.removeEmptyTextNode},removeInvTextNodes:function(){return r.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return c.tryRemoveNode}});var o=i(95559),s=i(39188),n=i(94561),r=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{isFunction:function(){return o}})},91672:function(t,e,i){"use strict";function o(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}i.d(e,{component:function(){return o}})},91678:function(t,e,i){"use strict";var o=i(28077),s=i(65946),n=i(29434),r=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),u=i.n(c),h=i(49972),d=i.n(h),p=i(45062),f=i.n(p),m=i(18605),g=i.n(m),_=i(83389),v=i.n(_);o.pluginSystem.add("bold",function(t){let e=e=>{let i,o=r.Config.defaultOptions.controls[e],n={...o.css};return Object.keys(n).forEach(t=>{i||(i={}),i[t]=(0,s.isArray)(n[t])?n[t][0]:n[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(e=>{t.registerButton({name:e,group:"font-style"})}),["superscript","subscript"].forEach(e=>{t.registerButton({name:e,group:"script"})}),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})}),n.Icon.set("bold",l()).set("italic",u()).set("strikethrough",d()).set("subscript",f()).set("superscript",g()).set("underline",v())},91764:function(t,e,i){"use strict";i.d(e,{isURL:function(){return s}});var o=i(81937);function s(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}let e=o.globalDocument.createElement("a");return e.href=t,!!e.hostname}},91882:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063:function(t,e,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";let i=parseInt(e[2],10),o=parseInt(e[3],10),s=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;s.length<6;)s="0"+s;return e[1]+"#"+s}},93637:function(t,e,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014),i(31262)},93640:function(t,e,i){"use strict";i.r(e),i.d(e,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return v.OptionsError},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return s.alreadyLoadedList},appendScriptAsync:function(){return s.appendScriptAsync},appendStyleAsync:function(){return s.appendStyleAsync},attr:function(){return l.attr},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return f.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return f.css},cssPath:function(){return D.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return w.getClassName},getDataTransfer:function(){return L.getDataTransfer},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return x.inView},isAbort:function(){return v.isAbort},isAtom:function(){return b.isAtom},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return s.loadNext},loadNextStyle:function(){return s.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return L.markOwner},memorizeExec:function(){return L.memorizeExec},options:function(){return v.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return D.refs},reset:function(){return T.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return x.scrollIntoViewIfNeeded},set:function(){return k.set}});var o=i(16849),s=i(47760),n=i(28712),r={};for(var a in n)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(t){return n[t]}).bind(0,a));i.d(e,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),p=i(3856),f=i(80991),m=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),x=i(60898),D=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return h}});var o=i(25045),s=i(81937),n=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,n.splitArray)(t).map(t=>t.trim()).forEach(t=>{let i=t.split("."),o=i[1]||u.defaultNameSpace;e.call(this,i[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let e=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,o){let n,u,h,p;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,u=t,h=e,p=i):(n=t,u=e,h=i,p=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(n))return n.forEach(t=>{this.on(t,u,h,p)}),this;let f=n,m=this.__getStore(f),g=this,_=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return d(f)&&(_=function(t){if(!g.isMuted(t.type)&&(g.__prepareEvent(t),h&&!1===h.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,e)=>{if(0===t.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(t,e,h)){let i={event:t,originalCallback:h,syntheticCallback:_};if(m.set(t,e,i,p?.top),d(f)){let e=s.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=e,f.addEventListener(t,_,e),this.__memoryDOMSubjectToHandler(f,_)}}}),this}__memoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let s,n,r,a;(0,l.isString)(t)||(0,l.isStringArray)(t)?(s=this,n=t,r=e,a=i):(s=t,n=e,r=i,a=o);let c=(...t)=>(this.off(s,n,c),r(...t));return this.on(s,n,c,a),this}off(t,e,i){let o,s,n;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,s=t,n=e):(o=t,s=e,n=i),(0,r.isArray)(o))return o.forEach(t=>{this.off(t,s,n)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(s)||(0,l.isStringArray)(s))||0===s.length)return h.namespaces().forEach(t=>{this.off(c,"."+t)}),this.__removeStoreFromSubject(c),this;let p=t=>{d(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void h.events(e).forEach(t=>{""!==t&&f(t,e)});let i=h.get(t,e);if(i&&i.length)if((0,a.isFunction)(n)){let o=h.indexOf(t,e,n);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(p),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(s,(t,e)=>{e===u.defaultNameSpace?h.namespaces().forEach(e=>{f(t,e)}):f(t,e)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){let i=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:e;if("string"!=typeof o)throw(0,c.error)("Need event names");let s=this.__getStore(i);this.__eachEvent(o,(t,e)=>{let o=s.get(t,e);o&&this.__stopped.push(o),e===u.defaultNameSpace&&s.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}__removeStop(t){if(t){let e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...i){let o,s,n=(0,l.isString)(t)?this:t,r=(0,l.isString)(t)?t:e,a=(0,l.isString)(t)?[e,...i]:i;if(!d(n)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(n);return!(0,l.isString)(r)&&d(n)?this.__triggerNativeEvent(n,e):this.__eachEvent(r,(t,e)=>{if(d(n))this.__triggerNativeEvent(n,t);else{let i=h.get(t,e);if(i)try{[...i].every(e=>!this.__isStopped(i)&&(this.currents.push(t),s=e.syntheticCallback.call(n,t,...a),this.currents.pop(),void 0!==s&&(o=s),!0))}finally{this.__removeStop(i)}e!==u.defaultNameSpace||d(n)||h.namespaces().filter(t=>t!==e).forEach(e=>{let i=this.fire.apply(this,[n,t+"."+e,...a]);void 0!==i&&(o=i)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,e)=>{this.off(e)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){(0,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",s.globalDocument),(0,o._)(this,"__prepareEvent",t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),t&&(this.__doc=t),this.__key+=new Date().getTime()}}function d(t){return(0,a.isFunction)(t.addEventListener)}},93890:function(t,e,i){"use strict";i.d(e,{checkRemoveUnbreakableElement:function(){return r}});var o=i(81937),s=i(23211),n=i(2409);function r(t,e,i){let r=s.Dom.findSibling(e,i);return!!(s.Dom.isElement(r)&&(s.Dom.isTag(r,o.INSEPARABLE_TAGS)||s.Dom.isEmpty(r)))&&(s.Dom.safeRemove(r),s.Dom.isTag(r,"br")&&!s.Dom.findNotEmptySibling(e,!1)&&s.Dom.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),s.Dom.isTag(r,"br")&&(0,n.checkRemoveEmptyParent)(t,e,i),!0)}},94013:function(t,e,i){"use strict";i.d(e,{isEqual:function(){return s},isFastEqual:function(){return n}});var o=i(3347);function s(t,e){return t===e||(0,o.stringify)(t)===(0,o.stringify)(e)}function n(t,e){return t===e}},94092:function(t,e,i){"use strict";i.d(e,{PII:function(){return o},WARN:function(){return s}});let o=440,s=940},94190:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193:function(t,e,i){"use strict";i.d(e,{SourceEditor:function(){return s}});var o=i(25045);class s{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}constructor(t,e,i,s){(0,o._)(this,"jodit",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"toWYSIWYG",void 0),(0,o._)(this,"fromWYSIWYG",void 0),(0,o._)(this,"instance",void 0),(0,o._)(this,"className",void 0),(0,o._)(this,"isReady",void 0),this.jodit=t,this.container=e,this.toWYSIWYG=i,this.fromWYSIWYG=s,this.className="",this.isReady=!1}}},94358:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(t){let e=t.dlg({closeOnClickOverlay:!0}),i=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
|
package/es2021.en/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.8.
|
|
4
|
+
* Version: v4.8.7
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -21147,7 +21147,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 48 48\">
|
|
|
21147
21147
|
afterInit() {
|
|
21148
21148
|
if (this.j.o.showXPathInStatusbar) {
|
|
21149
21149
|
this.container = this.j.c.div('jodit-xpath');
|
|
21150
|
-
|
|
21150
|
+
const init = ()=>{
|
|
21151
21151
|
if (!this.j.o.showXPathInStatusbar || !this.container) {
|
|
21152
21152
|
return;
|
|
21153
21153
|
}
|
|
@@ -21160,7 +21160,9 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 48 48\">
|
|
|
21160
21160
|
}
|
|
21161
21161
|
this.appendSelectAll();
|
|
21162
21162
|
}
|
|
21163
|
-
}
|
|
21163
|
+
};
|
|
21164
|
+
this.j.e.off('.xpath').on('mouseup.xpath change.xpath keydown.xpath changeSelection.xpath', this.calcPath).on('afterSetMode.xpath afterInit.xpath changePlace.xpath', init);
|
|
21165
|
+
init();
|
|
21164
21166
|
this.calcPath();
|
|
21165
21167
|
}
|
|
21166
21168
|
}
|
|
@@ -33170,7 +33172,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33170
33172
|
* ```
|
|
33171
33173
|
* @packageDocumentation
|
|
33172
33174
|
* @module constants
|
|
33173
|
-
*/ const APP_VERSION = "4.8.
|
|
33175
|
+
*/ const APP_VERSION = "4.8.7";
|
|
33174
33176
|
// prettier-ignore
|
|
33175
33177
|
const ES = "es2021";
|
|
33176
33178
|
const IS_ES_MODERN = true;
|