!function(L,V){"use strict";var j=V(L),I=V(document),N=V("#wpadminbar"),M=V("#wpfooter");V(function(){var g,e,u=V("#postdivrich"),h=V("#wp-content-wrap"),m=V("#wp-content-editor-tools"),w=V(),H=V(),b=V("#ed_toolbar"),v=V("#content"),x=V('
'),y=V("#post-status-info"),C=V(),T=V(),B=V("#side-sortables"),S=V("#postbox-container-1"),O=V("#post-body"),z=L.wp.editor&&L.wp.editor.fullscreen,r=function(){},l=function(){},E=!1,k=!1,A=!1,R=!1,W=0,Y=56,K=20,U=300,o=h.hasClass("tmce-active")?"tinymce":"html",P=!!parseInt(L.getUserSetting("hidetb"),10),D={windowHeight:0,windowWidth:0,adminBarHeight:0,toolsHeight:0,menuBarHeight:0,visualTopHeight:0,textTopHeight:0,bottomHeight:0,statusBarHeight:0,sideSortablesHeight:0};function t(t){var e,o,i,n=jQuery.ui.keyCode,s=t.keyCode,f=document.createRange(),a=v[0].selectionStart,d=v[0].selectionEnd,c=x[0].firstChild;if(!a||!d||a===d){try{f.setStart(c,a),f.setEnd(c,d+1)}catch(t){}(i=f.getBoundingClientRect()).height&&(o=(e=i.top-10)+i.height+10,t=D.adminBarHeight+D.toolsHeight+D.textTopHeight,i=D.windowHeight-D.bottomHeight,e=p-D.toolsHeight-D.adminBarHeight&&e<=p-D.toolsHeight-D.adminBarHeight+l-n?(E=!0,m.css({position:"fixed",top:D.adminBarHeight,width:f}),i&&C.length&&C.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),a.css({position:"fixed",top:D.adminBarHeight+D.toolsHeight+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):(E||o)&&(e<=p-D.toolsHeight-D.adminBarHeight?(E=!1,m.css({position:"absolute",top:0,width:f}),i&&C.length&&C.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())})):e>=p-D.toolsHeight-D.adminBarHeight+l-n&&(E=!1,m.css({position:"absolute",top:l-n,width:f}),i&&C.length&&C.css({position:"absolute",top:l-n,width:f-2}),a.css({position:"absolute",top:l-n+D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}))),(!k||o&&P)&&e+D.windowHeight<=r+l+D.bottomHeight+D.statusBarHeight+1?t&&0r+l+D.bottomHeight+D.statusBarHeight-1)&&(k=!1,T.attr("style",P?"":"visibility: hidden;"),y.attr("style",""))):o&&(m.css({position:"absolute",top:0,width:f}),i&&C.length&&C.css({position:"absolute",top:0,width:f-2}),a.css({position:"absolute",top:D.menuBarHeight,width:f-2-(i?0:a.outerWidth()-a.width())}),T.attr("style",P?"":"visibility: hidden;"),y.attr("style","")),S.width()<300&&600B.height()+s+120&&D.windowHeightD.windowHeight||A||R?e+Y<=s?(B.attr("style",""),A=R=!1):W=e+Y&&(A=!0,B.css({position:"fixed",top:Y,bottom:""}))):(s-Y<=e?B.css({position:"fixed",top:Y}):B.attr("style",""),A=R=!1),W=e):(B.attr("style",""),A=R=!1),o&&(h.css({paddingTop:D.toolsHeight}),i?H.css({paddingTop:D.visualTopHeight+D.menuBarHeight}):(v.css({marginTop:D.textTopHeight}),x.width(f-20-2)))))}function i(){X(),p()}function F(t){for(var e=1;e<6;e++)setTimeout(t,500*e)}function n(){L.pageYOffset&&130Y&&(R=!0,L.scrollBy(0,-1),p(),L.scrollBy(0,1)),p()}).on("wp-window-resized.editor-expand",function(){g&&!g.isHidden()?g.execCommand("wpAutoResize"):X()}),v.on("focus.editor-expand input.editor-expand propertychange.editor-expand",X),v.on("keyup.editor-expand",t),r(),z&&z.pubsub.subscribe("hidden",i),g&&(g.settings.wp_autoresize_on=!0,g.execCommand("wpAutoResizeOn"),g.isHidden()||g.execCommand("wpAutoResize")),g&&!g.isHidden()||X(),p(),I.trigger("editor-expand-on")}function s(){var t=parseInt(L.getUserSetting("ed_size",300),10);t<50?t=50:5e3t&&L.scrollTo(L.pageXOffset,t-D.adminBarHeight),X(),p()},100),p()}function c(){P=!P}"content"===f.id&&((g=f).settings.autoresize_min_height=U,w=h.find(".mce-toolbar-grp"),H=h.find(".mce-edit-area"),T=h.find(".mce-statusbar"),C=h.find(".mce-menubar"),r=function(){f.on("keyup",o),f.on("show",s),f.on("hide",d),f.on("wp-toolbar-toggle",c),f.on("setcontent wp-autoresize wp-toolbar-toggle",p),f.on("undo redo",i),f.on("FullscreenStateChanged",n),j.off("scroll.mce-float-panels").on("scroll.mce-float-panels",e)},l=function(){f.off("keyup",o),f.off("show",s),f.off("hide",d),f.off("wp-toolbar-toggle",c),f.off("setcontent wp-autoresize wp-toolbar-toggle",p),f.off("undo redo",i),f.off("FullscreenStateChanged",n),j.off("scroll.mce-float-panels")},u.hasClass("wp-editor-expand")&&(r(),F(p)))}),u.hasClass("wp-editor-expand")&&(n(),h.hasClass("html-active")&&F(function(){p(),X()})),V("#adv-settings .editor-expand").show(),V("#editor-expand-toggle").on("change.editor-expand",function(){V(this).prop("checked")?(n(),L.setUserSetting("editor_expand","on")):(s(),L.setUserSetting("editor_expand","off"))}),L.editorExpand={on:n,off:s}}),V(function(){var o,i,t,n,s,f,a,d,c,u,r,l=V(document.body),p=V("#wpcontent"),g=V("#post-body-content"),e=V("#title"),h=V("#content"),m=V(document.createElement("DIV")),w=V("#edit-slug-box"),H=w.find("a").add(w.find("button")).add(w.find("input")),b=V("#adminmenuwrap"),v=(V(),V(),"on"===L.getUserSetting("editor_expand","on")),x=!!v&&"on"===L.getUserSetting("post_dfw"),y=0,C=0,T=20;function B(){(n=g.offset()).right=n.left+g.outerWidth(),n.bottom=n.top+g.outerHeight()}function S(){v||(v=!0,I.trigger("dfw-activate"),h.on("keydown.focus-shortcut",K))}function O(){v&&(E(),v=!1,I.trigger("dfw-deactivate"),h.off("keydown.focus-shortcut"))}function z(){!x&&v&&(x=!0,h.on("keydown.focus",A),e.add(h).on("blur.focus",R),A(),L.setUserSetting("post_dfw","on"),I.trigger("dfw-on"))}function E(){x&&(x=!1,e.add(h).off(".focus"),_(),g.off(".focus"),L.setUserSetting("post_dfw","off"),I.trigger("dfw-off"))}function k(){(x?E:z)()}function A(t){var e=t&&t.keyCode;27===e||87===e&&t.altKey&&t.shiftKey?_(t):t&&(t.metaKey||t.ctrlKey&&!t.altKey||t.altKey&&t.shiftKey||e&&(e<=47&&8!==e&&13!==e&&32!==e&&46!==e||91<=e&&e<=93||112<=e&&e<=135||144<=e&&e<=150||224<=e))||(o||(o=!0,clearTimeout(u),u=setTimeout(function(){m.show()},600),g.css("z-index",9998),m.on("mouseenter.focus",function(){B(),j.on("scroll.focus",function(){var t=L.pageYOffset;d&&a&&d!==t&&(an.bottom+T)&&_(),d=t})}).on("mouseleave.focus",function(){s=f=null,y=C=0,j.off("scroll.focus")}).on("mousemove.focus",function(t){var e=t.clientX,o=t.clientY,i=L.pageYOffset,t=L.pageXOffset;if(s&&f&&(e!==s||o!==f))if(o<=f&&on.bottom-i||e<=s&&en.right-t){if(y+=Math.abs(s-e),C+=Math.abs(f-o),(o<=n.top-T-i||o>=n.bottom+T-i||e<=n.left-T-t||e>=n.right+T-t)&&(10