!function(v){"use strict";varp=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returnp(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))},u=function(t,e){return{clipboard:t,quirks:e}},d=function(t,e,n,r){returnt.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},m=function(t,e,n,r){returnt.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},s=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},n=function(t,e){returnt.fire("paste",{ieFake:e})},g={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"),s(t,!1)):(e.pasteFormat.set("text"),s(t,!0),i=t,!1===n.get()&&g.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",l=function(t){returni+t},f=function(t){returnt.replace(i,"")},w=function(t){return-1!==t.indexOf(i)},x=function(){returnt},_=tinymce.util.Tools.resolve("tinymce.html.Entities"),P=function(t){returnt.replace(/\r?\n/g,"<br>")},T=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+'="'+_.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("")},D=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?T(t,e,n):P(t)},k=tinymce.util.Tools.resolve("tinymce.html.DomParser"),F=tinymce.util.Tools.resolve("tinymce.html.Serializer"),E=tinymce.util.Tools.resolve("tinymce.html.Node"),R=tinymce.util.Tools.resolve("tinymce.html.Schema");functionI(e,t){returnb.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}va