!function(){"use strict";varn,e,t,r,o=function(n){vare=n,t=function(){returne};return{get:t,set:function(n){e=n},clone:function(){returno(t())}}},u=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(n){return{isEnabled:function(){returnn.get()}}},c=function(n,e){returnn.fire("VisualChars",{state:e})},a={"\xa0":"nbsp","\xad":"shy"},f=function(n,e){vart,r="";for(tinn)r+=t;returnnewRegExp("["+r+"]",e?"g":"")},l=function(n){vare,t="";for(einn)t&&(t+=","),t+="span.mce-"+n[e];returnt},s={charMap:a,regExp:f(a),regExpGlobal:f(a,!0),selector:l(a),charMapToRegExp:f,charMapToSelector:l},d=function(n){returnfunction(){returnn}},m=d(!1),p=d(!0),v={noop:function(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e]},noarg:function(t){returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returnt()}},compose:function(t,r){returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];returnt(r.apply(null,arguments))}},constant:d,identity:function(n){returnn},tripleEquals:function(n,e){returnn===e},curry:function(u){for(varn=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];for(vari=newArray(arguments.length-1),t=1;t<arguments.length;t++)i[t-1]=arguments[t];returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(vart=newArray(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];varo=i.concat(t);returnu.apply(null,o)}},not:function(t){returnfunction(){for(varn=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return!t.apply(null,arguments)}},die:function(n){returnfunction(){thrownewError(n)}},apply:function(n){returnn()},call:function(n){n()},never:m,always:p},h=v.never,g=v.always,y=function(){returnb},b=(r={fold:function(n,e){returnn()},is:h,isSome:h,isNone:g,getOr:t=function(n){returnn},getOrThunk:e=function(n){returnn()},getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},or:t,orThunk:e,map:y,ap:y,each:function(){},bind:y,flatten:y,exists:h,forall:g,filter:y,equals:n=function(n){returnn.isNone()},equals_:n,toArray:function(){return[]},toString:v.constant("none()")},Object.freeze&&Object.freeze(r),r),T=function(t){varn=function(){returnt},e=function(){returno},r=function(n){returnn(t)},o={fold:function(n,e){returne(t)},is:function(n){returnt===n},isSome:g,isNone:h,getOr:n,getOrThunk:n,getOrDie:n,or:e,orThunk:e,map:function(n){returnT(n(t))},ap:function(n){returnn.fold(y,function(n){returnT(n(t))})},each:function(n){n(t)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){returnn(t)?o:b},equals:function(n){returnn.is(t)},equals_:function(n,e){returnn.fold(h,function(n){returne(t,n)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};returno},w={some:T,none:y,from:function(n){returnnull===n||n===undefined?b:T(n)}},x=function(e){returnfunction(n){returnfunction(n){if(null===n)return"null";vare=typeofn;return"object"===e&&Array.prototype.isPrototypeOf(n)?"array":"object"===e&&String.prototype.isPrototypeOf(n)?"string":e}(n)===e}},E={isString:x("string"),isObject:x("object"),isArray:x("array"),isNull:x("null"),isBoolean:x("boolean"),isUndefined:x("undefined"),isFunction:x("function"),isNumber:x("number")},N=(Array.prototype.indexOf,undefined,function(n,e){for(vart=n.length,r=newArray(t),o=0;o<t;o++){varu=n[o];r[o]=e(u,o,n)}returnr}),k=function(n,e){for(vart=0,r=n.length;t<r;t++)e(n[t],t,n)},A=(Array.prototype.push,Array.prototype.slice,E.isFunction(Array.from)&&Array.from,N),O=k,C=function(n){if(null===n||n===undefined)thrownewError("Node cannot be null or undefined");return{dom:v.constant(n)}},M={fromHtml:function(n,e){vart=(e||document).createElement("div");if(t.innerHTML=n,!t.hasChildNodes()||1<t.childNodes.length)throwconsole.error("HTML does not have a single root node",n),"HTML must have a single root node";returnC(t.childNodes[0])},fromTag:function(n,e){vart=(e||document).createElement(n);returnC(t)},fromText:function(n,e){vart=(e||document).createTextNode(n);returnC(t)},fromDom:C,fromPoint:function(n,e,t){returnw.from(n.dom().elementFro