!function(){"use strict";functione(r){returnfunction(e){returnn=typeof(t=e),(null===t?"null":"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n)===r;vart,n}}functiont(t){returnfunction(e){returntypeofe===t}}functionD(e){return!(null==e)}functionl(){}functioni(e){returnfunction(){returne}}functionn(e){returne}functionr(){returng}vara,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=function(){return(y=Object.assign||function(e){for(vart,n=1,r=arguments.length;n<r;n++)for(varaint=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);returne}).apply(this,arguments)},T=e("string"),s=e("object"),c=e("array"),N=t("boolean"),w=t("function"),u=t("number"),m=i(!1),d=i(!(a=null)),g={fold:function(e,t){returne()},isSome:m,isNone:d,getOr:n,getOrThunk:p,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void0),or:n,orThunk:p,map:r,each:l,bind:r,exists:m,forall:d,filter:function(){returng},toArray:function(){return[]},toString:i("none()")};functionp(e){returne()}functionf(e,i,o,l){returnfunction(e){for(vart=v(e),n=0,r=t.length;n<r;n++){vara=t[n];!function(e,t){(i(e,t)?o:l)(e,t)}(e[a],a)}}(e),1}functionh(e,t){returnA.call(e,t)}functionS(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}returnt}varb=function(n){functione(){returna}functiont(e){returne(n)}varr=i(n),a={fold:function(e,t){returnt(n)},isSome:d,isNone:m,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){returnb(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){returne(n)?a:g},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returna},L={some:b,none:r,from:function(e){returnnull==e?g:b(e)}},v=Object.keys,A=Object.hasOwnProperty,U=Array.prototype.push;functionC(e,t,n){!function(e,t,n){if(!(T(n)||N(n)||u(n)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}functionI(e){returne.getParam("image_dimensions",!0,"boolean")}functionx(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))}functionO(e){returne&&e.replace(/px$/,"")}functionP(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e}function_(e){if(e.margin){vart=String(e.margin).split(" ");switch(t.length){case1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}deletee.margin}returne}functionE(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))}functionR(e){returne.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?O(e.style.marginLeft):""}functionk(e){returne.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?O(e.style.marginTop):""}functionz(e){returne.style.borderWidth?O(e.style.borderWidth):""}functionM(e,t){returne.hasAttribute(t)?e.getAttribute(t):""}functionj(e,t){returne.style[t]||""}functionB(e){returnnull!==e.parentNode&&"FIGURE"===e.parentNode.nodeName}functionH(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)}functionF(e,t){varn=e.getAttribute("style"),r=t(null!==n?n:"")