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