!function(v){"use strict";varl=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returnl(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!e.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))},s=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})},u=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},n=function(t,e){returnt.fire("paste",{ieFake:e})},m={shouldPlainTextInform:function(t){returnt.getParam("paste_plaintext_inform",!0)},shouldBlockDrop:function(t){returnt.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(t){returnt.getParam("paste_data_images",!1)},shouldFilterDrop:function(t){returnt.getParam("paste_filter_drop",!0)},getPreProcess:function(t){returnt.getParam("paste_preprocess")},getPostProcess:function(t){returnt.getParam("paste_postprocess")},getWebkitStyles:function(t){returnt.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(t){returnt.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(t){returnt.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(t){returnt.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(t){returnt.getParam("paste_as_text",!1)},getRetainStyleProps:function(t){returnt.getParam("paste_retain_style_properties")},getWordValidElements:function(t){returnt.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")},shouldConvertWordFakeLists:function(t){returnt.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(t){returnt.getParam("paste_enable_default_filters",!0)}},r=function(t,e,n){varr,o,i;"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),u(t,!1)):(e.pasteFormat.set("text"),u(t,!0),i=t,!1===n.get()&&m.shouldPlainTextInform(i)&&(o="Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",(r=t).notificationManager.open({text:r.translate(o),type:"info"}),n.set(!0))),t.focus()},c=function(t,n,e){t.addCommand("mceTogglePlainTextPaste",function(){r(t,n,e)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},h=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),b=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=tinymce.util.Tools.resolve("tinymce.util.VK"),t="x-tinymce/html",i="\x3c!-- "+t+" --\x3e",g=function(t){returni+t},p=function(t){returnt.replace(i,"")},x=function(t){return-1!==t.indexOf(i)},P=function(){returnt},w=tinymce.util.Tools.resolve("tinymce.html.Entities"),_=function(t){returnt.replace(/\r?\n/g,"<br>")},D=function(t,e,n){varr=t.split(/\n\n/),o=function(t,e){varn,r=[],o="<"+t;if("object"==typeofe){for(nine)e.hasOwnProperty(n)&&r.push(n+'="'+w.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}returno+">"}(e,n),i="</"+e+">",a=b.map(r,function(t){returnt.split(/\n/).join("<br />")});return1===a.length?a[0]:b.map(a,function(t){returno+t+i}).join("")},T=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},C=function(t,e,n){returne?D(t,e,n):_(t)},k=tinymce.util.Tools.resolve("tinymce.html.DomParser"),S=tinymce.util.Tools.resolve("tinymce.html.Node"),O=tinymce.util.Tools.resolve("tinymce.html.Schema"),R=tinymce.util.Tools.resolve("tinymce.html.Serializer");functionF(e,t){returnb.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}va