!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&&(o=l=e,(n=String).prototype.isPrototypeOf(o)||(null===(r=l.constructor)||void0===r?void0:r.name)===n.name)?"string":t;varo,l,n,r})(t)===e,o=e=>t=>typeoft===e,l=t("string"),n=t("array"),r=o("boolean"),a=(void0,e=>undefined===e);consts=e=>!(e=>null==e)(e),c=o("function"),i=o("number"),m=()=>{},d=e=>()=>e,u=e=>e,p=(e,t)=>e===t;functionb(e,...t){return(...o)=>{constl=t.concat(o);returne.apply(null,l)}}constg=d(!1),h=d(!0);classf{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewf(!0,e)}staticnone(){returnf.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?f.some(e(this.value)):f.none()}bind(e){returnthis.tag?e(this.value):f.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:f.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){returns(e)?f.some(e):f.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()"}}f.singletonNone=newf(!1);consty=Object.keys,w=Object.hasOwnProperty,S=(e,t)=>{consto=y(e);for(letl=0,n=o.length;l<n;l++){constn=o[l];t(e[n],n)}},C=(e,t)=>{consto={};varl;return((e,t,o,l)=>{S(e,((e,n)=>{(t(e,n)?o:l)(e,n)}))})(e,t,(l=o,(e,t)=>{l[t]=e}),m),o},v=e=>y(e).length,T=(e,t)=>x(e,t)?f.from(e[t]):f.none(),x=(e,t)=>w.call(e,t),A=(e,t)=>x(e,t)&&void0!==e[t]&&null!==e[t],R=Array.prototype.indexOf,_=Array.prototype.push,O=(e,t)=>((e,t)=>R.call(e,t))(e,t)>-1,D=(e,t)=>{for(leto=0,l=e.length;o<l;o++)if(t(e[o],o))return!0;return!1},I=(e,t)=>{consto=[];for(letl=0;l<e;l++)o.push(t(l));returno},M=(e,t)=>{consto=e.length,l=newArray(o);for(letn=0;n<o;n++){consto=e[n];l[n]=t(o,n)}returnl},N=(e,t)=>{for(leto=0,l=e.length;o<l;o++)t(e[o],o)},P=(e,t)=>{consto=[];for(letl=0,n=e.length;l<n;l++){constn=e[l];t(n,l)&&o.push(n)}returno},k=(e,t,o)=>(N(e,((e,l)=>{o=t(o,e,l)})),o),B=(e,t)=>((e,t,o)=>{for(letl=0,n=e.length;l<n;l++){constn=e[l];if(t(n,l))returnf.some(n);if(o(n,l))break}returnf.none()})(e,t,g),E=(e,t)=>(e=>{constt=[];for(leto=0,l=e.length;o<l;++o){if(!n(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);_.apply(t,e[o])}returnt})(M(e,t)),F=(e,t)=>{for(leto=0,l=e.length;o<l;++o)if(!0!==t(e[o],o))return!1;return!0},q=(e,t)=>t>=0&&t<e.length?f.some(e[t]):f.none(),L=(e,t)=>{for(leto=0;o<e.length;o++){constl=t(e[o],o);if(l.isSome())returnl}returnf.none()},H=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},j={fromHtml:(e,t)=>{consto=(t||document).createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnH(o.childNodes[0])},fromTag:(e,t)=>{consto=(t||document).createElement(e);returnH(o)},fromText:(e,t)=>{consto=(t||document).createTextNode(e);returnH(o)},fromDom:H,fromPoint:(e,t,o)=>f.from(e.dom.elementFromPoint(t,o)).map(H)};"undefined"!=typeofwindow?window:Function("return this;")();constV=e=>e.dom.nodeName.toLowerCase(),z=e=>e.dom.nodeType,W=e=>t=>z(t)===e,$=W(1),U=W(3),G=W(9),K=W(11),J=e=>t=>$(t)&&V(t)===e,Q=(e,t)=>{consto=e.dom;if(1!==o.nodeType)return!1;{conste=o;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")}},X=e=>1!==e.nodeType