!function(a,b){var c=function(){function c(a){return a&&b.pressThisL10n?b.pressThisL10n[a]||a:a||""}function d(a){return a=a||"",a.replace(/|$)/g,"").replace(/<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/gi,"").replace(/<\/?[a-z][\s\S]*?(>|$)/gi,"")}function e(a){return a=d(a),I.innerHTML=a,d(I.value)}function f(b){return b=a.trim(b||""),/^(?:https?:)?\/\//.test(b)?(b=d(b),b.replace(/["\\]+/g,"")):""}function g(){var a="";return L._links&&L._links.canonical&&(a=L._links.canonical),!a&&L.u&&(a=L.u),!a&&L._meta&&(L._meta["twitter:url"]?a=L._meta["twitter:url"]:L._meta["og:url"]&&(a=L._meta["og:url"])),f(decodeURI(a))}function h(){var a="";return L._meta&&(L._meta["og:site_name"]?a=L._meta["og:site_name"]:L._meta["application-name"]&&(a=L._meta["application-name"])),e(a)}function i(){var a="";return L.t&&(a=L.t),!a&&L._meta&&(L._meta["twitter:title"]?a=L._meta["twitter:title"]:L._meta["og:title"]?a=L._meta["og:title"]:L._meta.title&&(a=L._meta.title)),a||(a=c("newPost"),P=!0),e(a)}function j(){var a="",b="",d=i(),f=g(),j=h();return L.s?b=L.s:L._meta&&(L._meta["twitter:description"]?b=L._meta["twitter:description"]:L._meta["og:description"]?b=L._meta["og:description"]:L._meta.description&&(b=L._meta.description)),b&&K.html.quote&&(a=K.html.quote.replace(/%1\$s/g,e(b))),f&&K.html.link&&(d&&c("newPost")!==d||j)&&(a+=K.html.link.replace(/%1\$s/g,encodeURI(f)).replace(/%2\$s/g,d||j)),a||""}function k(){var b=L._embed||[],c=[],d=[];return b.length&&a.each(b,function(b,e){if(e){var f=e.replace(/^https?:/,"");a.inArray(f,d)>-1||(c.push(e),d.push(f))}}),c}function l(b){var c=b._img||[],d=[],e=[];return c.length&&a.each(c,function(a,b){if(b=b.replace(/http:\/\/[\d]+\.gravatar\.com\//,"https://secure.gravatar.com/"),b=f(b)){var c=b.replace(/^https?:/,"");Array.prototype.indexOf&&e.indexOf(c)>-1||b.indexOf("avatar")>-1&&d.length>=15||(d.push(b),e.push(c))}}),d}function m(){a("#spinner").addClass("show"),a(".post-actions button").each(function(){a(this).attr("disabled","disabled")})}function n(){a("#spinner").removeClass("show"),a(".post-actions button").each(function(){a(this).removeAttr("disabled")})}function o(){G&&G.save(),a("#post_title").val(e(a("#title-container").text())),b.tagBox&&a("div.tagsdiv").each(function(){b.tagBox.flushTags(this,!1,1)})}function p(c){var d;H=!1,m(),"publish"===c&&a("#post_status").val("publish"),o(),d=a("#pressthis-form").serialize(),a.ajax({type:"post",url:b.ajaxurl,data:d,success:function(a){if(a.success){if(a.data.redirect)if(b.opener&&K.redirInParent){try{b.opener.location.href=a.data.redirect}catch(c){}b.self.close()}else b.location.href=a.data.redirect}else u(a.data.errorMessage),n()}})}function q(a,b,c){var d="";G&&(b=f(b),c=f(c),"img"===a?(c||(c=b),d='\n'):d="[embed]"+b+"[/embed]\n",S||G.focus(),G.execCommand("mceInsertContent",!1,d),S=!0)}function r(){var c,d=a("#new-category").val();d&&(c={action:"press-this-add-category",post_id:a("#post_ID").val()||0,name:d,new_cat_nonce:a("#_ajax_nonce-add-category").val()||"",parent:a("#new-category-parent").val()||0},a.post(b.ajaxurl,c,function(b){if(b.success){var c,d,e=a("ul.categories-select");a.each(b.data,function(b,f){var g=a("
  • ").attr("id","category-"+f.term_id).append(a('