!function(){"use strict";vare=tinymce.util.Tools.resolve("tinymce.PluginManager");constt=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(s=o.constructor)||void0===s?void0:s.name)===r.name)?"string":t;varn,o,r,s})(t)===e,n=e=>t=>typeoft===e,o=t("string"),r=t("object"),s=t("array"),i=n("boolean"),l=e=>!(e=>null==e)(e),a=n("function"),d=n("number"),c=()=>{},m=e=>()=>e,u=(e,t)=>e===t,p=e=>t=>!e(t),g=m(!1);classh{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewh(!0,e)}staticnone(){returnh.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?h.some(e(this.value)):h.none()}bind(e){returnthis.tag?e(this.value):h.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:h.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returnl(e)?h.some(e):h.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}h.singletonNone=newh(!1);constf=Array.prototype.slice,y=Array.prototype.indexOf,v=Array.prototype.push,C=(e,t)=>{returnn=e,o=t,y.call(n,o)>-1;varn,o},b=(e,t)=>{for(letn=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},N=(e,t)=>{constn=e.length,o=newArray(n);for(letr=0;r<n;r++){constn=e[r];o[r]=t(n,r)}returno},S=(e,t)=>{for(letn=0,o=e.length;n<o;n++)t(e[n],n)},L=(e,t)=>{constn=[];for(leto=0,r=e.length;o<r;o++){constr=e[o];t(r,o)&&n.push(r)}returnn},O=(e,t,n)=>(S(e,((e,o)=>{n=t(n,e,o)})),n),A=(e,t,n)=>{for(leto=0,r=e.length;o<r;o++){constr=e[o];if(t(r,o))returnh.some(r);if(n(r,o))break}returnh.none()},T=(e,t)=>A(e,t,g),x=(e,t)=>(e=>{constt=[];for(letn=0,o=e.length;n<o;++n){if(!s(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);v.apply(t,e[n])}returnt})(N(e,t)),E=e=>{constt=f.call(e,0);returnt.reverse(),t},w=(e,t)=>t>=0&&t<e.length?h.some(e[t]):h.none(),k=e=>w(e,0),D=e=>w(e,e.length-1),B=(e,t)=>{constn=[],o=a(t)?e=>b(n,(n=>t(n,e))):e=>C(n,e);for(lett=0,r=e.length;t<r;t++){constr=e[t];o(r)||n.push(r)}returnn},M=(e,t,n=u)=>e.exists((e=>n(e,t))),P=(e,t,n)=>e.isSome()&&t.isSome()?h.some(n(e.getOrDie(),t.getOrDie())):h.none(),I=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},R=(e,t)=>{constn=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnI(n.childNodes[0])},U=(e,t)=>{constn=(t||document).createElement(e);returnI(n)},$=I,_=(e,t)=>{constn=e.dom;if(1!==n.nodeType)return!1;{conste=n;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}},H=(e,t)=>e.dom===t.dom,F=_,V="undefined"!=typeofwindow?window:Function("return this;")(),j=(e,t)=>((e,t)=>{letn=null!=t?t:V;for(lett=0;t<e.length&&null!=n;++t)n=n[e[t]];returnn})(e.split("."),t),K=Object.getPrototypeOf,z=e=>{constt=j("ownerDocument.defaultView",e);returnr(e)&&((e=>((e,t)=>{constn=((e,t)=>j(e,t))(e,t);if(null==n)thrownewError(e+" not available on this browser");returnn})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(K(e).constructor.name))},Q=e=>e.dom.nodeName.toLowerCase(),W=e=>e.dom.nodeType,q=e=>t=>W(t)===e,Z=e=>G(e)&&z(e.dom),G=q(1),J=q(3),X=q(9),Y=q(11),ee=e=>t=>G(t)&&Q(t)===e,te=e=>h.from(e.dom.parentNode).map($),ne=e=>N(e.dom.chi