!function(){"use strict";vare,t,n,r,o,i,u=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(e){returnfunction(){returne}},c={noop:function(){},noarg:function(e){returnfunction(){returne()}},compose:function(e,t){returnfunction(){returne(t.apply(null,arguments))}},constant:a,identity:function(e){returne},tripleEquals:function(e,t){returne===t},curry:function(e){for(vart=newArray(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];returnfunction(){for(varn=newArray(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];varo=t.concat(n);returne.apply(null,o)}},not:function(e){returnfunction(){return!e.apply(null,arguments)}},die:function(e){returnfunction(){thrownewError(e)}},apply:function(e){returne()},call:function(e){e()},never:a(!1),always:a(!0)},l=c.never,s=c.always,f=function(){returnd},d=(r={fold:function(e,t){returne()},is:l,isSome:l,isNone:s,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},or:n,orThunk:t,map:f,ap:f,each:function(){},bind:f,flatten:f,exists:l,forall:s,filter:f,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:c.constant("none()")},Object.freeze&&Object.freeze(r),r),m=function(e){vart=function(){returne},n=function(){returno},r=function(t){returnt(e)},o={fold:function(t,n){returnn(e)},is:function(t){returne===t},isSome:s,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,or:n,orThunk:n,map:function(t){returnm(t(e))},ap:function(t){returnt.fold(f,function(t){returnm(t(e))})},each:function(t){t(e)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){returnt(e)?o:d},equals:function(t){returnt.is(e)},equals_:function(t,n){returnt.fold(l,function(t){returnn(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};returno},g={some:m,none:f,from:function(e){returnnull===e||e===undefined?d:m(e)}},p=(o=Array.prototype.indexOf)===undefined?function(e,t){returnS(e,t)}:function(e,t){returno.call(e,t)},h=function(e,t){returnp(e,t)>-1},v=function(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o,e)}returnr},b=function(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n,e)},w=function(e,t){for(varn=e.length-1;n>=0;n--)t(e[n],n,e)},y=function(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r,e)&&n.push(i)}returnn},x=function(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n,e))returng.some(n);returng.none()},S=function(e,t){for(varn=0,r=e.length;n<r;++n)if(e[n]===t)returnn;return-1},C=Array.prototype.push,R=function(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!Array.prototype.isPrototypeOf(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}returnt},T=function(e,t){for(varn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},D=Array.prototype.slice,A={map:v,each:b,eachr:w,partition:function(e,t){for(varn=[],r=[],o=0,i=e.length;o<i;o++){varu=e[o];(t(u,o,e)?n:r).push(u)}return{pass:n,fail:r}},filter:y,groupBy:function(e,t){if(0===e.length)return[];for(varn=t(e[0]),r=[],o=[],i=0,u=e.length;i<u;i++){vara=e[i],c=t(a);c!==n&&(r.push(o),o=[]),n=c,o.push(a)}return0!==o.length&&r.push(o),r},indexOf:function(e,t){varn=p(e,t);return-1===n?g.none():g.some(n)},foldr:function(e,t,n){returnw(e,function(e){n=t(n,e)}),n},foldl:function(e,t,n){returnb(e,function(e){n=t(n,e)}),n},find:function(e,t){for(varn=0,r=e.length;n<r;n++){varo=e[n];if(t(o,n,e))returng.some(o)}returng.none()},findIndex:x,flatten:R,bind:function(e,t){varn=v(e,t);returnR(n)},forall:T,exists:function(e,t){returnx(e,t).isSome()},contains:h,equal:function(e,t){returne.length===t.length&&T(e,function(e,n){returne===t[n]})},reverse:function(e){vart=D.call(e,0);returnt.reverse(),t},chunk:function(e,t){for(varn=[],r=0;r<e.length;r+=t){varo=e.slice(r,r+t);n.push(o)}returnn},difference:function(e,t){returny(e,function(e){return!h(t,e)})},mapToObject:function(e,t){for(varn={},r=0,o=e.length;r<o;r++){vari=e[r];n[String(i)]=t(i,r)}returnn},pure:function(e){r