!function(g){"use strict";varn,t,e,r,c=function(n){vart=n;return{get:function(){returnt},set:function(n){t=n}}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(n){return{isFullscreen:function(){returnnull!==n.get()}}},i=function(){},a=function(n){returnfunction(){returnn}},l=a(!1),f=a(!0),d=function(){returns},s=(n=function(n){returnn.isNone()},{fold:function(n,t){returnn()},is:l,isSome:l,isNone:f,getOr:e=function(n){returnn},getOrThunk:t=function(n){returnn()},getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(undefined),or:e,orThunk:t,map:d,each:i,bind:d,exists:l,forall:f,filter:d,equals:n,equals_:n,toArray:function(){return[]},toString:a("none()")}),m=function(e){varn=a(e),t=function(){returno},r=function(n){returnn(e)},o={fold:function(n,t){returnt(e)},is:function(n){returne===n},isSome:f,isNone:l,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){returnm(n(e))},each:function(n){n(e)},bind:r,exists:r,forall:r,filter:function(n){returnn(e)?o:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){returnn.is(e)},equals_:function(n,t){returnn.fold(l,function(n){returnt(e,n)})}};returno},h={some:m,none:d,from:function(n){returnnull===n||n===undefined?s:m(n)}},p=function(){returnn=function(n){n.unbind()},t=c(h.none()),e=function(){t.get().each(n)},{clear:function(){e(),t.set(h.none())},isSet:function(){returnt.get().isSome()},set:function(n){e(),t.set(h.some(n))}};varn,t,e},v=function(r){returnfunction(n){returne=typeof(t=n),(null===t?"null":"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e)===r;vart,e}},y=function(t){returnfunction(n){returntypeofn===t}},w=v("string"),b=v("array"),S=y("boolean"),T=y("function"),x=y("number"),C=Array.prototype.push,A=function(n,t){for(vare=n.length,r=newArray(e),o=0;o<e;o++){vari=n[o];r[o]=t(i,o)}returnr},E=function(n,t){for(vare=0,r=n.length;e<r;e++){t(n[e],e)}},O=function(n,t){for(vare=[],r=0,o=n.length;r<o;r++){vari=n[r];t(i,r)&&e.push(i)}returne},D=function(n,t){returnfunction(n){for(vart=[],e=0,r=n.length;e<r;++e){if(!b(n[e]))thrownewError("Arr.flatten item "+e+" was not an array, input: "+n);C.apply(t,n[e])}returnt}(A(n,t))},M=Object.keys,N=function(n){returnn.style!==undefined&&T(n.style.getPropertyValue)},k=function(n){if(null===n||n===undefined)thrownewError("Node cannot be null or undefined");return{dom:a(n)}},F={fromHtml:function(n,t){vare=(t||g.document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||1<e.childNodes.length)throwg.console.error("HTML does not have a single root node",n),newError("HTML must have a single root node");returnk(e.childNodes[0])},fromTag:function(n,t){vare=(t||g.document).createElement(n);returnk(e)},fromText:function(n,t){vare=(t||g.document).createTextNode(n);returnk(e)},fromDom:k,fromPoint:function(n,t,e){varr=n.dom();returnh.from(r.elementFromPoint(t,e)).map(k)}},P=("undefined"!=typeofg.window?g.window:Function("return this;")(),r=3,function(n){returnn.dom().nodeType===r}),L=function(n,t,e){!function(n,t,e){if(!(w(e)||S(e)||x(e)))throwg.console.error("Invalid call to Attr.set. Key ",t,":: Value ",e,":: Element ",n),newError("Attribute value was not simple");n.setAttribute(t,e+"")}(n.dom(),t,e)},H=function(n,t){vare=n.dom().getAttribute(t);returnnull===e?undefined:e},q=function(n,t){n.dom().removeAttribute(t)},V=function(n,t){vare=n.dom();!function(n,t){for(vare=M(n),r=0,o=e.length;r<o;r++){vari=e[r];t(n[i],i)}}(t,function(n,t){!function(n,t,e){if(!w(e))throwg.console.error("Invalid call to CSS.set. Property ",t,":: Value ",e,":: Element ",n),newError("CSS value must be a string: "+e);N(n)&&n.style.setProperty(t,e)}(e,t,n)})},W=function(n,t){vare,r,o=n.dom(),i=g.window.getComputedStyle(o).getPropertyValue(t);return""!==i||(r=P(e=n)?e.dom().parentNode:e.dom())!==