!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager");conste=t=>e=>(t=>{conste=typeoft;returnnull===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(n=o=t,(r=String).prototype.isPrototypeOf(n)||(null===(s=o.constructor)||void0===s?void0:s.name)===r.name)?"string":e;varn,o,r,s})(e)===t,n=t=>e=>typeofe===t,o=e("string"),r=e("object"),s=(null,t=>null===t);consta=n("boolean"),l=n("number");classi{constructor(t,e){this.tag=t,this.value=e}staticsome(t){returnnewi(!0,t)}staticnone(){returni.singletonNone}fold(t,e){returnthis.tag?e(this.value):t()}isSome(){returnthis.tag}isNone(){return!this.tag}map(t){returnthis.tag?i.some(t(this.value)):i.none()}bind(t){returnthis.tag?t(this.value):i.none()}exists(t){returnthis.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:i.none()}getOr(t){returnthis.tag?this.value:t}or(t){returnthis.tag?this:t}getOrThunk(t){returnthis.tag?this.value:t()}orThunk(t){returnthis.tag?this:t()}getOrDie(t){if(this.tag)returnthis.value;thrownewError(null!=t?t:"Called getOrDie on None")}staticfrom(t){returnnull==t?i.none():i.some(t)}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(t){this.tag&&t(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}i.singletonNone=newi(!1);constu=(t,e)=>{for(letn=0,o=t.length;n<o;n++)e(t[n],n)},c=Object.keys,d=(t,e)=>{constn=c(t);for(leto=0,r=n.length;o<r;o++){constr=n[o];e(t[r],r)}},h="undefined"!=typeofwindow?window:Function("return this;")(),m=(t,e)=>((t,e)=>{letn=null!=e?e:h;for(lete=0;e<t.length&&null!=n;++e)n=n[t[e]];returnn})(t.split("."),e),g=Object.getPrototypeOf,v=t=>{conste=m("ownerDocument.defaultView",t);returnr(t)&&((t=>((t,e)=>{constn=((t,e)=>m(t,e))(t,e);if(null==n)thrownewError(t+" not available on this browser");returnn})("HTMLElement",t))(e).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(g(t).constructor.name))},f=t=>t.dom.nodeValue,p=t=>e=>(t=>t.dom.nodeType)(e)===t,b=t=>w(t)&&v(t.dom),w=p(1),y=p(3),A=(t,e,n)=>{((t,e,n)=>{if(!(o(n)||a(n)||l(n)))throwconsole.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),newError("Attribute value was not simple");t.setAttribute(e,n+"")})(t.dom,e,n)},k=(t,e)=>{t.dom.removeAttribute(e)},N=(t,e)=>{constn=((t,e)=>{constn=t.dom.getAttribute(e);returnnull===n?void0:n})(t,e);returnvoid0===n||""===n?[]:n.split(" ")},T=t=>void0!==t.dom.classList,C=t=>{if(null==t)thrownewError("Node cannot be null or undefined");return{dom:t}},E=C,O={"\xa0":"nbsp","\xad":"shy"},L=(t,e)=>{letn="";returnd(t,((t,e)=>{n+=e})),newRegExp("["+n+"]",e?"g":"")},V=L(O),j=L(O,!0),B=(t=>{lete="";returnd(t,(t=>{e&&(e+=","),e+="span.mce-"+t})),e})(O),S="mce-nbsp",_=t=>t.dom.contentEditable,x=t=>'<span data-mce-bogus="1" class="mce-'+O[t]+'">'+t+"</span>",M=t=>"span"===t.nodeName.toLowerCase()&&t.classList.contains("mce-nbsp-wrap"),P=t=>{conste=f(t);returny(t)&&o(e)&&V.test(e)},D=(t,e,n)=>{leto=[];constr=((t,e)=>{constn=t.length,o=newArray(n);for(letr=0;r<n;r++){constn=t[r];o[r]=e(n,r)}returno})(t.dom.childNodes,E);returnu(r,(t=>{varr;n&&(M((r=t).dom)||!(t=>b(t)&&"false"===_(t))(r))&&e(t)&&(o=o.concat([t])),o=o.concat(D(t,e,((t,e)=>{if(b(t)&&!M(t.dom)){conste=_(t);if("true"===e)return!0;if("false"===e)return!1}returne})(t,n)))})),o},H=(t,e)=>{constn=t.dom,o=D(E(e),P,t.dom.isEditable(e));u(o,(e=>{varo;constr=e.dom.parentNode;if(M(r))s=E(r),a=S,T(s)?s.dom.classList.add(a):((t,e)=>{((t,e,n)=>{consto=N(t,e).concat([n]);A(t,e,o.join(" "))})(t,"class",e)})(s,a);else{constr=n.encode(null!==(o=f(e))&&void0!==o?o:"").replace(j,x),s=n.create("div",{},r);leta;for(;a=s.lastChild;)n.insertAfter(a,e.dom);t.dom.remove(e.dom)}vars,a}))},I=(t,e)=>{constn=t.dom.select(B,e);u(n,(e=>{varn,o;M(e)?(n=E(e),o=S,T(n)?n.dom.classList.remove(o):((t,e)=>{((t,e,n)=>{consto=((t,e)=>{consto=[];for(lete=0,r=t.length;e<r;e++){constr=t[e];r!==n&&o.push(r)}returno})(N(t,e));o.length>0?A(t,e,