!function(v){"use strict";vart,e,n,r,o,i=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returni(n())}}},a=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!a.get("powerpaste")||("undefined"!=typeofv.window.console&&v.window.console.log&&v.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},u=function(t,e){return{clipboard:t,quirks:e}},f=function(t,e,n,r){returnt.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},d=function(t,e,n,r){returnt.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},c=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},g=function(t,e){returnt.fire("paste",{ieFake:e})},l=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),c(t,!1)):(e.pasteFormat.set("text"),c(t,!0)),t.focus()},m=function(t,n){t.addCommand("mceTogglePlainTextPaste",function(){l(t,n)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},p=function(t){returnfunction(){returnt}},h=p(!1),y=p(!0),b=h,x=y,P=function(){returnw},w=(r={fold:function(t,e){returnt()},is:b,isSome:b,isNone:x,getOr:n=function(t){returnt},getOrThunk:e=function(t){returnt()},getOrDie:function(t){thrownewError(t||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:e,map:P,ap:P,each:function(){},bind:P,flatten:P,exists:b,forall:x,filter:P,equals:t=function(t){returnt.isNone()},equals_:t,toArray:function(){return[]},toString:p("none()")},Object.freeze&&Object.freeze(r),r),_=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:x,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return_(t(n))},ap:function(t){returnt.fold(P,function(t){return_(t(n))})},each:function(t){t(n)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){returnt(n)?o:w},equals:function(t){returnt.is(n)},equals_:function(t,e){returnt.fold(b,function(t){returne(n,t)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},T={some:_,none:P,from:function(t){returnnull===t||t===undefined?w:_(t)}},D=(o="function",function(t){returnfunction(t){if(null===t)return"null";vare=typeoft;return"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}(t)===o}),C=Array.prototype.slice,k=function(t,e){for(varn=t.length,r=newArray(n),o=0;o<n;o++){vari=t[o];r[o]=e(i,o,t)}returnr},S=function(t,e){for(varn=0,r=t.length;n<r;n++){e(t[n],n,t)}},O=D(Array.from)?Array.from:function(t){returnC.call(t)},A=function(t){varn=T.none(),e=[],r=function(t){o()?a(t):e.push(t)},o=function(){returnn.isSome()},i=function(t){S(t,a)},a=function(e){n.each(function(t){v.setTimeout(function(){e(t)},0)})};returnt(function(t){n=T.some(t),i(e),e=[]}),{get:r,map:function(n){returnA(function(e){r(function(t){e(n(t))})})},isReady:o}},R={nu:A,pure:function(e){returnA(function(t){t(e)})}},E=function(e){vart=function(t){varr;e((r=t,function(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];varn=this;v.setTimeout(function(){r.apply(n,t)},0)}))},n=function(){returnR.nu(t)};return{map:function(r){returnE(function(n){t(function(t){vare=r(t);n(e)})})},bind:function(n){returnE(function(e){t(function(t){n(t).get(e)})})},anonBind:function(n){returnE(function(e){t(function(t){n.get(e)})})},toLazy:n,toCached:function(){vare=null;returnE(function(t){null===e&&(e=n()),e.get(t)})},get:t}},F={nu:E,pure:function(e){returnE(function(t){t(e)})}},I=function(a,t){returnt(function(r){varo=[],i=0;0===a.length?r([]):S(a,function(t,e){varn;t.get((n=e,function(t){o[n]=t,++i>=a.length&&r(o)}))})