window.wp=window.wp||{};(function(e){var a,b,g,d,i=["standard","chat","status","aside","gallery"],j=e(".post-formats-fields"),f=e(".icon32");function c(k){a.get(0).className=a.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+k);f.get(0).className=f.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");f.addClass("wp-format-"+k)}function h(q){var m,k,l=q.parent(),p=q.data("wp-format"),n=e(".post-format-description"),o=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}l.slideUp().find("a.active").removeClass("active");q.addClass("active");e("#post_format").val(p);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(p);if(-1600){p=600}s+=' width="'+p+'"'}if(v.height){r=v.height;if(v.width&&p<'+u+s+' class="wp-'+u+'-shortcode" controls="controls" preload="none">");e(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=0,r=0,q,s=b.state().get("selection").first().toJSON();if(0===s.mime.indexOf("audio")){l.val(s.url);d(s)}else{if(0===s.mime.indexOf("video")){s.src=s.url;l.val(wp.shortcode.string({tag:"video",attrs:_.pick(s,"src","width","height")}));d(s)}else{q=wp.media.string.image({},s);l.val(q);e("#image-preview").remove();if(s.width){p=s.width>600?600:s.width}if(s.height){r=s.height}if(p','",""].join(""))}}});b.open()})})})(jQuery);