!function(L,V){"use strict";var j=V(L),I=V(document),M=V("#wpadminbar"),N=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"),O=V("#postbox-container-1"),S=V("#post-body"),z=L.wp.editor&&L.wp.editor.fullscreen,r=function(){},l=function(){},E=!1,k=!1,A=!1,R=!1,K=0,W=56,Y=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","")),O.width()<300&&600B.height()+s+120&&D.windowHeightD.windowHeight||A||R?e+W<=s?(B.attr("style",""),A=R=!1):K=e+W&&(A=!0,B.css({position:"fixed",top:W,bottom:""}))):(s-W<=e?B.css({position:"fixed",top:W}):B.attr("style",""),A=R=!1),K=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&&130W&&(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 i,n,t,s,f,a,d,c,u,r,l,p=V(document.body),o=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(){(s=g.offset()).right=s.left+g.outerWidth(),s.bottom=s.top+g.outerHeight()}function O(){v||(v=!0,I.trigger("dfw-activate"),h.on("keydown.focus-shortcut",Y))}function S(){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,o=t&&t.keyCode;L.navigator.platform&&(e=-1s.bottom+T)&&_(),c=t})}).on("mouseleave.focus",function(){f=a=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(f&&a&&(e!==f||o!==a))if(o<=a&&os.bottom-i||e<=f&&es.right-t){if(y+=Math.abs(f-e),C+=Math.abs(a-o),(o<=s.top-T-i||o>=s.bottom+T-i||e<=s.left-T-t||e>=s.right+T-t)&&(10