!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=e=>{e()},h=d(!1),f=d(!0);classy{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewy(!0,e)}staticnone(){returny.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?y.some(e(this.value)):y.none()}bind(e){returnthis.tag?e(this.value):y.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:y.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)?y.some(e):y.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()"}}y.singletonNone=newy(!1);constw=Object.keys,S=Object.hasOwnProperty,C=(e,t)=>{consto=w(e);for(letl=0,n=o.length;l<n;l++){constn=o[l];t(e[n],n)}},v=(e,t)=>{consto={};varl;return((e,t,o,l)=>{C(e,((e,n)=>{(t(e,n)?o:l)(e,n)}))})(e,t,(l=o,(e,t)=>{l[t]=e}),m),o},T=e=>w(e).length,x=(e,t)=>A(e,t)?y.from(e[t]):y.none(),A=(e,t)=>S.call(e,t),R=(e,t)=>A(e,t)&&void0!==e[t]&&null!==e[t],O=Array.prototype.indexOf,_=Array.prototype.push,D=(e,t)=>((e,t)=>O.call(e,t))(e,t)>-1,I=(e,t)=>{for(leto=0,l=e.length;o<l;o++)if(t(e[o],o))return!0;return!1},M=(e,t)=>{consto=[];for(letl=0;l<e;l++)o.push(t(l));returno},N=(e,t)=>{consto=e.length,l=newArray(o);for(letn=0;n<o;n++){consto=e[n];l[n]=t(o,n)}returnl},P=(e,t)=>{for(leto=0,l=e.length;o<l;o++)t(e[o],o)},k=(e,t)=>{consto=[];for(letl=0,n=e.length;l<n;l++){constn=e[l];t(n,l)&&o.push(n)}returno},B=(e,t,o)=>(P(e,((e,l)=>{o=t(o,e,l)})),o),E=(e,t)=>((e,t,o)=>{for(letl=0,n=e.length;l<n;l++){constn=e[l];if(t(n,l))returny.some(n);if(o(n,l))break}returny.none()})(e,t,h),F=(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})(N(e,t)),q=(e,t)=>{for(leto=0,l=e.length;o<l;++o)if(!0!==t(e[o],o))return!1;return!0},L=(e,t)=>t>=0&&t<e.length?y.some(e[t]):y.none(),H=(e,t)=>{for(leto=0;o<e.length;o++){constl=t(e[o],o);if(l.isSome())returnl}returny.none()},j=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},V={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)}returnj(o.childNodes[0])},fromTag:(e,t)=>{consto=(t||document).createElement(e);returnj(o)},fromText:(e,t)=>{consto=(t||document).createTextNode(e);returnj(o)},fromDom:j,fromPoint:(e,t,o)=>y.from(e.dom.elementFromPoint(t,o)).map(j)},z=(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")}},W=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,$=(e,t)=>e.dom===t.dom,U=z;"undefined"!=typeofwindow?window:Function("return this;")();constG=e=>e.dom.nodeName.toLowe