!function(I){I.fn.hoverIntent=function(e,t,n){function r(e){o=e.pageX,v=e.pageY}var o,v,i,u,s={interval:100,sensitivity:6,timeout:0},s="object"==typeof e?I.extend(s,e):I.isFunction(t)?I.extend(s,{over:e,out:t,selector:n}):I.extend(s,{over:e,out:e,selector:t}),h=function(e,t){if(t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((i-o)*(i-o)+(u-v)*(u-v))<s.sensitivity)return I(t).off("mousemove.hoverIntent",r),t.hoverIntent_s=!0,s.over.apply(t,[e]);i=o,u=v,t.hoverIntent_t=setTimeout(function(){h(e,t)},s.interval)},t=function(e){var n=I.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"===e.type?(i=n.pageX,u=n.pageY,I(o).on("mousemove.hoverIntent",r),o.hoverIntent_s||(o.hoverIntent_t=setTimeout(function(){h(n,o)},s.interval))):(I(o).off("mousemove.hoverIntent",r),o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){var e,t;e=n,(t=o).hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=!1,s.out.apply(t,[e])},s.timeout)))};return this.on({"mouseenter.hoverIntent":t,"mouseleave.hoverIntent":t},s.selector)}}(jQuery);
var showNotice,adminMenu,columns,validateForm,screenMeta;!function(F,R){var e,n,_=F(document),L=F(R),V=F(document.body);function t(){_.trigger("wp-window-resized")}adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},columns={init:function(){var t=this;F(".hide-column-tog","#adv-settings").click(function(){var e=F(this),n=e.val();e.prop("checked")?t.checked(n):t.unchecked(n),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();F.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:F("#screenoptionnonce").val(),page:pagenow})},checked:function(e){F(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){F(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return F(".manage-column[id]").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return F(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var n=F("table").find(".colspanchange");n.length&&(e=parseInt(n.attr("colspan"),10)+e,n.attr("colspan",e.toString()))}},_.ready(function(){columns.init()}),validateForm=function(e){return!F(e).find(".form-required").filter(function(){return""===F("input:visible",this).val()}).addClass("form-invalid").find("input:visible").change(function(){F(this).closest(".form-invalid").removeClass("form-invalid")}).length},showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},screenMeta={element:null,toggles:null,page:null,init:function(){this.element=F("#screen-meta"),this.toggles=F("#screen-meta-links").find(".show-settings"),this.page=F("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(){var e=F("#"+F(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,F(this)):screenMeta.open(e,F(this)))},open:function(e,n){F("#screen-meta-links").find(".screen-meta-toggle").not(n.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),n.addClass("screen-meta-active").attr("aria-expanded",!0)}),_.trigger("screen:options:open")},close:function(e,n){e.slideUp("fast",function(){n.removeClass("screen-meta-active").attr("aria-expanded",!1),F(".screen-meta-toggle").css("visibility",""),e.parent().hide()}),_.trigger("screen:options:close")}},F(".contextual-help-tabs").delegate("a","click",function(e){var n=F(this);if(e.preventDefault(),n.is(".active a"))return!1;F(".contextual-help-tabs .active").removeClass("active"),n.parent("li").addClass("active"),n=F(n.attr("href")),F(".help-tab-content").not(n).removeClass("active").hide(),n.addClass("active").show()}),_.ready(function(){var t,i,o,s,e,n,a,r,c,l=!1,d=F("input.current-page"),u=d.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),f=-1!==navigator.userAgent.indexOf("Android"),h=F(document.documentElement).hasClass("ie8"),m=F("#adminmenuwrap"),v=F("#wpwrap"),w=F("#adminmenu"),g=F("#wp-responsive-overlay"),b=F("#wp-toolbar"),C=b.find('a[aria-haspopup="true"]'),k=F(".meta-box-sortables"),x=!1,y=F("#wpadminbar"),S=0,M=!1,E=!1,T=0,D=!1,W={window:L.height(),wpwrap:v.height(),adminbar:y.height(),menu:m.height()};function A(){var e=F("a.wp-has-current-submenu"),n=R.innerWidth?Math.max(R.innerWidth,document.documentElement.clientWidth):961;V.hasClass("folded")||V.hasClass("auto-fold")&&n&&n<=960&&782<n?e.attr("aria-haspopup","true"):e.attr("aria-haspopup","false")}function I(e){var n=e.find(".wp-submenu"),t=e.offset().top,i=L.scrollTop(),o=t-i-30,e=t+n.height()+1,t=60+e-v.height(),i=L.height()+i-50;1<(t=o<(t=i<e-t?e-i:t)?o:t)?n.css("margin-top","-"+t+"px"):n.css("margin-top","")}function U(){F(".notice.is-dismissible").each(function(){var n=F(this),e=F('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>'),t=commonL10n.dismiss||"";e.find(".screen-reader-text").text(t),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),n.fadeTo(100,0,function(){n.slideUp(100,function(){n.remove()})})}),n.append(e)})}function j(){r.prop("disabled",""===c.map(function(){return F(this).val()}).get().join(""))}function K(e){var n=L.scrollTop(),e=!e||"scroll"!==e.type;if(!(p||h||w.data("wp-responsive")))if(W.menu+W.adminbar<W.window||W.menu+W.adminbar+20>W.wpwrap)N();else{if(D=!0,W.menu+W.adminbar>W.window){if(n<0)return void(M||(E=!(M=!0),m.css({position:"fixed",top:"",bottom:""})));if(n+W.window>_.height()-1)return void(E||(M=!(E=!0),m.css({position:"fixed",top:"",bottom:0})));S<n?M?(M=!1,(T=m.offset().top-W.adminbar-(n-S))+W.menu+W.adminbar<n+W.window&&(T=n+W.window-W.menu-W.adminbar),m.css({position:"absolute",top:T,bottom:""})):!E&&m.offset().top+W.menu<n+W.window&&(E=!0,m.css({position:"fixed",top:"",bottom:0})):n<S?E?(E=!1,(T=m.offset().top-W.adminbar+(S-n))+W.menu>n+W.window&&(T=n),m.css({position:"absolute",top:T,bottom:""})):!M&&m.offset().top>=n+W.adminbar&&(M=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(M=E=!1,0<(T=n+W.window-W.menu-W.adminbar-1)?m.css({position:"absolute",top:T,bottom:""}):N())}S=n}}function z(){W={window:L.height(),wpwrap:v.height(),adminbar:y.height(),menu:m.height()}}function N(){!p&&D&&(M=E=D=!1,m.css({position:"",top:"",bottom:""}))}function O(){z(),w.data("wp-responsive")?(V.removeClass("sticky-menu"),N()):W.menu+W.adminbar>W.window?(K(),V.removeClass("sticky-menu")):(V.addClass("sticky-menu"),N())}function P(){F(".aria-button-if-js").attr("role","button")}w.on("click.wp-submenu-head",".wp-submenu-head",function(e){F(e.target).parent().siblings("a").get(0).click()}),F("#collapse-menu").on("click.collapse-menu",function(){var e;F("#adminmenu div.wp-submenu").css("margin-top",""),e=(e=R.innerWidth?Math.max(R.innerWidth,document.documentElement.clientWidth):961)&&e<960?V.hasClass("auto-fold")?(V.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(V.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):V.hasClass("folded")?(V.removeClass("folded"),setUserSetting("mfold","o"),"open"):(V.addClass("folded"),setUserSetting("mfold","f"),"folded"),A(),_.trigger("wp-collapse-menu",{state:e})}),_.on("wp-window-resized wp-responsive-activate wp-responsive-deactivate",A),("ontouchstart"in R||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(e=p?"touchstart":"click",V.on(e+".wp-mobile-hover",function(e){w.data("wp-responsive")||F(e.target).closest("#adminmenu").length||w.find("li.opensub").removeClass("opensub")}),w.find("a.wp-has-submenu").on(e+".wp-mobile-hover",function(e){var n=F(this).parent();w.data("wp-responsive")||n.hasClass("opensub")||n.hasClass("wp-menu-open")&&!(n.width()<40)||(e.preventDefault(),I(n),w.find("li.opensub").removeClass("opensub"),n.addClass("opensub"))})),p||f||(w.find("li.wp-has-submenu").hoverIntent({over:function(){var e=F(this),n=e.find(".wp-submenu"),n=parseInt(n.css("top"),10);isNaN(n)||-5<n||w.data("wp-responsive")||(I(e),w.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){w.data("wp-responsive")||F(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),w.on("focus.adminmenu",".wp-submenu a",function(e){w.data("wp-responsive")||F(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){w.data("wp-responsive")||F(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){I(F(this))})),F("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(F(".wrap h1, .wrap h2").first()),_.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error",U),screenMeta.init(),F("tbody").children().children(".check-column").find(":checkbox").click(function(e){if("undefined"==e.shiftKey)return!0;if(e.shiftKey){if(!l)return!0;t=F(l).closest("form").find(":checkbox").filter(":visible:enabled"),i=t.index(l),o=t.index(this),s=F(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?t.slice(i,o):t.slice(o,i)).prop("checked",function(){return!!F(this).closest("tr").is(":visible")&&s})}var n=F(l=this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked");return F(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===n.length}),!0}),F("thead, tfoot").find(".check-column :checkbox").on("click.wp-toggle-checkboxes",function(e){var n=F(this),t=n.closest("table"),i=n.prop("checked"),o=e.shiftKey||n.data("wp-toggle");t.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!F(this).is(":hidden,:disabled")&&(o?!F(this).prop("checked"):!!i)}),t.children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),F("#wpbody-content").on({focusin:function(){clearTimeout(n),a=F(this).find(".row-actions"),F(".row-actions").not(this).removeClass("visible"),a.addClass("visible")},focusout:function(){n=setTimeout(function(){a.removeClass("visible")},30)}},".has-row-actions"),F("tbody").on("click",".toggle-row",function(){F(this).closest("tr").toggleClass("is-expanded")}),F("#default-password-nag-no").click(function(){return setUserSetting("default_password_nag","hide"),F("div.default-password-nag").hide(),!1}),F("#newcontent").bind("keydown.wpevent_InsertTab",function(e){var n,t,i,o,s=e.target;if(27==e.keyCode)return e.preventDefault(),void F(s).data("tab-out",!0);9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(F(s).data("tab-out")?F(s).data("tab-out",!1):(n=s.selectionStart,t=s.selectionEnd,i=s.value,document.selection?(s.focus(),document.selection.createRange().text="\t"):0<=n&&(o=this.scrollTop,s.value=i.substring(0,n).concat("\t",i.substring(t)),s.selectionStart=s.selectionEnd=n+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),d.length&&d.closest("form").submit(function(){-1==F('select[name="action"]').val()&&-1==F('select[name="action2"]').val()&&d.val()==u&&d.val("1")}),F('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function(){F('select[name^="action"]').val("-1")}),F("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoView&&e.target.scrollIntoView(!1)}),(f=F("form.wp-upload-form")).length&&(r=f.find('input[type="submit"]'),c=f.find('input[type="file"]'),j(),c.on("change",j)),p||(L.on("scroll.pin-menu",K),_.on("tinymce-editor-init.pin-menu",function(e,n){n.on("wp-autoresize",z)})),R.wpResponsive={init:function(){var e=this;_.on("wp-responsive-activate.wp-responsive",function(){e.activate()}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate()}),F("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),F("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),y.find(".hover").removeClass("hover"),v.toggleClass("wp-responsive-open"),v.hasClass("wp-responsive-open")?(F(this).find("a").attr("aria-expanded","true"),F("#adminmenu a:first").focus()):F(this).find("a").attr("aria-expanded","false")}),w.on("click.wp-responsive","li.wp-has-submenu > a",function(e){w.data("wp-responsive")&&(F(this).parent("li").toggleClass("selected"),e.preventDefault())}),e.trigger(),_.on("wp-window-resized.wp-responsive",F.proxy(this.trigger,this)),L.on("load.wp-responsive",function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?L.width():R.innerWidth)<=782&&e.disableSortables()})},activate:function(){O(),V.hasClass("auto-fold")||V.addClass("auto-fold"),w.data("wp-responsive",1),this.disableSortables()},deactivate:function(){O(),w.removeData("wp-responsive"),this.enableSortables()},trigger:function(){var e;R.innerWidth&&((e=Math.max(R.innerWidth,document.documentElement.clientWidth))<=782?x||(_.trigger("wp-responsive-activate"),x=!0):x&&(_.trigger("wp-responsive-deactivate"),x=!1),e<=480?this.enableOverlay():this.disableOverlay())},enableOverlay:function(){0===g.length&&(g=F('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){b.find(".menupop.hover").removeClass("hover"),F(this).hide()})),C.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){C.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(k.length)try{k.sortable("disable")}catch(e){}},enableSortables:function(){if(k.length)try{k.sortable("enable")}catch(e){}}},F(document).ajaxComplete(function(){P()}),R.wpResponsive.init(),O(),A(),U(),P(),_.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",O),F(".wp-initial-focus").focus()}),L.on("resize.wp-fire-once",function(){R.clearTimeout(e),e=R.setTimeout(t,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window);
"undefined"!=typeof jQuery?(void 0===jQuery.fn.hoverIntent&&function(u){u.fn.hoverIntent=function(e,t,n){function a(e){o=e.pageX,r=e.pageY}var o,r,s,i,c={interval:100,sensitivity:6,timeout:0},c="object"==typeof e?u.extend(c,e):u.isFunction(t)?u.extend(c,{over:e,out:t,selector:n}):u.extend(c,{over:e,out:e,selector:t}),l=function(e,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((s-o)*(s-o)+(i-r)*(i-r))<c.sensitivity?(u(t).off("mousemove.hoverIntent",a),t.hoverIntent_s=!0,c.over.apply(t,[e])):(s=o,i=r,void(t.hoverIntent_t=setTimeout(function(){l(e,t)},c.interval)))},t=function(e){var n=u.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"===e.type?(s=n.pageX,i=n.pageY,u(o).on("mousemove.hoverIntent",a),o.hoverIntent_s||(o.hoverIntent_t=setTimeout(function(){l(n,o)},c.interval))):(u(o).off("mousemove.hoverIntent",a),o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){var e,t;e=n,(t=o).hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=!1,c.out.apply(t,[e])},c.timeout)))};return this.on({"mouseenter.hoverIntent":t,"mouseleave.hoverIntent":t},c.selector)}}(jQuery),jQuery(document).ready(function(a){var o=a("#wpadminbar"),r=!1,s=function(e,t){var n=a(t),t=n.attr("tabindex");t&&n.attr("tabindex","0").attr("tabindex",t)},e=function(n){o.find("li.menupop").on("click.wp-mobile-hover",function(e){var t=a(this);t.parent().is("#wp-admin-bar-root-default")&&!t.hasClass("hover")?(e.preventDefault(),o.find("li.menupop.hover").removeClass("hover"),t.addClass("hover")):t.hasClass("hover")?a(e.target).closest("div").hasClass("ab-sub-wrapper")||(e.stopPropagation(),e.preventDefault(),t.removeClass("hover")):(e.stopPropagation(),e.preventDefault(),t.addClass("hover")),n&&(a("li.menupop").off("click.wp-mobile-hover"),r=!1)})},t=function(){var e=/Mobile\/.+Safari/.test(navigator.userAgent)?"touchstart":"click";a(document.body).on(e+".wp-mobile-hover",function(e){a(e.target).closest("#wpadminbar").length||o.find("li.menupop.hover").removeClass("hover")})};o.removeClass("nojq").removeClass("nojs"),"ontouchstart"in window?(o.on("touchstart",function(){e(!0),r=!0}),t()):/IEMobile\/[1-9]/.test(navigator.userAgent)&&(e(),t()),o.find("li.menupop").hoverIntent({over:function(){r||a(this).addClass("hover")},out:function(){r||a(this).removeClass("hover")},timeout:180,sensitivity:7,interval:100}),window.location.hash&&window.scrollBy(0,-32),a("#wp-admin-bar-get-shortlink").click(function(e){e.preventDefault(),a(this).addClass("selected").children(".shortlink-input").blur(function(){a(this).parents("#wp-admin-bar-get-shortlink").removeClass("selected")}).focus().select()}),a("#wpadminbar li.menupop > .ab-item").bind("keydown.adminbar",function(e){var t,n,o;13==e.which&&(n=(t=a(e.target)).closest(".ab-sub-wrapper"),o=t.parent().hasClass("hover"),e.stopPropagation(),e.preventDefault(),(n=!n.length?a("#wpadminbar .quicklinks"):n).find(".menupop").removeClass("hover"),o||t.parent().toggleClass("hover"),t.siblings(".ab-sub-wrapper").find(".ab-item").each(s))}).each(s),a("#wpadminbar .ab-item").bind("keydown.adminbar",function(e){var t;27==e.which&&(t=a(e.target),e.stopPropagation(),e.preventDefault(),t.closest(".hover").removeClass("hover").children(".ab-item").focus(),t.siblings(".ab-sub-wrapper").find(".ab-item").each(s))}),o.click(function(e){"wpadminbar"!=e.target.id&&"wp-admin-bar-top-secondary"!=e.target.id||(o.find("li.menupop.hover").removeClass("hover"),a("html, body").animate({scrollTop:0},"fast"),e.preventDefault())}),a(".screen-reader-shortcut").keydown(function(e){var t;13==e.which&&(t=a(this).attr("href"),-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")&&t&&"#"==t.charAt(0)&&setTimeout(function(){a(t).focus()},100))}),a("#adminbar-search").on({focus:function(){a("#adminbarsearch").addClass("adminbar-focused")},blur:function(){a("#adminbarsearch").removeClass("adminbar-focused")}}),"sessionStorage"in window&&a("#wp-admin-bar-logout a").click(function(){try{for(var e in sessionStorage)-1!=e.indexOf("wp-autosave-")&&sessionStorage.removeItem(e)}catch(e){}}),navigator.userAgent&&-1===document.body.className.indexOf("no-font-face")&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})):function(l,e){function t(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){return n.call(e,window.event)})}function n(e){for(var t,n,o,a,r,s,i=[],c=0;e&&e!=u&&e!=l;)"LI"==e.nodeName.toUpperCase()&&((n=function(e){for(var t=m.length;t--;)if(m[t]&&e==m[t][1])return m[t][0];return!1}(i[i.length]=e))&&clearTimeout(n),e.className=e.className?e.className.replace(d,"")+" hover":"hover",a=e),e=e.parentNode;if(a&&a.parentNode&&(r=a.parentNode)&&"UL"==r.nodeName.toUpperCase())for(t=r.childNodes.length;t--;)(s=r.childNodes[t])!=a&&(s.className=s.className?s.className.replace(f,""):"");for(t=m.length;t--;){for(o=!1,c=i.length;c--;)i[c]==m[t][1]&&(o=!0);o||(m[t][1].className=m[t][1].className?m[t][1].className.replace(d,""):"")}}function o(e){for(;e&&e!=u&&e!=l;)"LI"==e.nodeName.toUpperCase()&&function(e){var t=setTimeout(function(){e.className=e.className?e.className.replace(d,""):""},500);m[m.length]=[t,e]}(e),e=e.parentNode}function a(e){for(var t,n,o,a=e.target||e.srcElement;;){if(!a||a==l||a==u)return;if(a.id&&"wp-admin-bar-get-shortlink"==a.id)break;a=a.parentNode}for(e.preventDefault&&e.preventDefault(),e.returnValue=!1,-1==a.className.indexOf("selected")&&(a.className+=" selected"),t=0,n=a.childNodes.length;t<n;t++)if((o=a.childNodes[t]).className&&-1!=o.className.indexOf("shortlink-input")){o.focus(),o.select(),o.onblur=function(){a.className=a.className?a.className.replace(f,""):""};break}return!1}var u,d=new RegExp("\\bhover\\b","g"),m=[],f=new RegExp("\\bselected\\b","g");t(e,"load",function(){u=l.getElementById("wpadminbar"),l.body&&u&&(l.body.appendChild(u),u.className&&(u.className=u.className.replace(/nojs/,"")),t(u,"mouseover",function(e){n(e.target||e.srcElement)}),t(u,"mouseout",function(e){o(e.target||e.srcElement)}),t(u,"click",a),t(u,"click",function(e){!function(e){var t,n,o,a,r;if(!("wpadminbar"!=e.id&&"wp-admin-bar-top-secondary"!=e.id||(t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)<1))for(e=800<t?130:100,n=Math.min(12,Math.round(t/e)),o=800<t?Math.round(t/30):Math.round(t/20),a=[],r=0;t;)(t-=o)<0&&(t=0),a.push(t),setTimeout(function(){window.scrollTo(0,a.shift())},r*n),r++}(e.target||e.srcElement)}),t(document.getElementById("wp-admin-bar-logout"),"click",function(){if("sessionStorage"in window)try{for(var e in sessionStorage)-1!=e.indexOf("wp-autosave-")&&sessionStorage.removeItem(e)}catch(e){}})),e.location.hash&&e.scrollBy(0,-32),navigator.userAgent&&-1===document.body.className.indexOf("no-font-face")&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})}(document,window);
/**
 * Attempt to re-color SVG icons used in the admin menu or the toolbar
 *
 */

window.wp = window.wp || {};

wp.svgPainter = ( function( $, window, document, undefined ) {
	'use strict';
	var selector, base64, painter,
		colorscheme = {},
		elements = [];

	$(document).ready( function() {
		// detection for browser SVG capability
		if ( document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
			$( document.body ).removeClass( 'no-svg' ).addClass( 'svg' );
			wp.svgPainter.init();
		}
	});

	/**
	 * Needed only for IE9
	 *
	 * Based on jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js
	 *
	 * Based on: https://gist.github.com/Yaffle/1284012
	 *
	 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
	 * Licensed under the MIT license
	 * http://www.opensource.org/licenses/mit-license.php
	 */
	base64 = ( function() {
		var c,
			b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
			a256 = '',
			r64 = [256],
			r256 = [256],
			i = 0;

		function init() {
			while( i < 256 ) {
				c = String.fromCharCode(i);
				a256 += c;
				r256[i] = i;
				r64[i] = b64.indexOf(c);
				++i;
			}
		}

		function code( s, discard, alpha, beta, w1, w2 ) {
			var tmp, length,
				buffer = 0,
				i = 0,
				result = '',
				bitsInBuffer = 0;

			s = String(s);
			length = s.length;

			while( i < length ) {
				c = s.charCodeAt(i);
				c = c < 256 ? alpha[c] : -1;

				buffer = ( buffer << w1 ) + c;
				bitsInBuffer += w1;

				while( bitsInBuffer >= w2 ) {
					bitsInBuffer -= w2;
					tmp = buffer >> bitsInBuffer;
					result += beta.charAt(tmp);
					buffer ^= tmp << bitsInBuffer;
				}
				++i;
			}

			if ( ! discard && bitsInBuffer > 0 ) {
				result += beta.charAt( buffer << ( w2 - bitsInBuffer ) );
			}

			return result;
		}

		function btoa( plain ) {
			if ( ! c ) {
				init();
			}

			plain = code( plain, false, r256, b64, 8, 6 );
			return plain + '===='.slice( ( plain.length % 4 ) || 4 );
		}

		function atob( coded ) {
			var i;

			if ( ! c ) {
				init();
			}

			coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' );
			coded = String(coded).split('=');
			i = coded.length;

			do {
				--i;
				coded[i] = code( coded[i], true, r64, a256, 6, 8 );
			} while ( i > 0 );

			coded = coded.join('');
			return coded;
		}

		return {
			atob: atob,
			btoa: btoa
		};
	})();

	return {
		init: function() {
			painter = this;
			selector = $( '#adminmenu .wp-menu-image, #wpadminbar .ab-item' );

			this.setColors();
			this.findElements();
			this.paint();
		},

		setColors: function( colors ) {
			if ( typeof colors === 'undefined' && typeof window._wpColorScheme !== 'undefined' ) {
				colors = window._wpColorScheme;
			}

			if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) {
				colorscheme = colors.icons;
			}
		},

		findElements: function() {
			selector.each( function() {
				var $this = $(this), bgImage = $this.css( 'background-image' );

				if ( bgImage && bgImage.indexOf( 'data:image/svg+xml;base64' ) != -1 ) {
					elements.push( $this );
				}
			});
		},

		paint: function() {
			// loop through all elements
			$.each( elements, function( index, $element ) {
				var $menuitem = $element.parent().parent();

				if ( $menuitem.hasClass( 'current' ) || $menuitem.hasClass( 'wp-has-current-submenu' ) ) {
					// paint icon in 'current' color
					painter.paintElement( $element, 'current' );
				} else {
					// paint icon in base color
					painter.paintElement( $element, 'base' );

					// set hover callbacks
					$menuitem.hover(
						function() {
							painter.paintElement( $element, 'focus' );
						},
						function() {
							// Match the delay from hoverIntent
							window.setTimeout( function() {
								painter.paintElement( $element, 'base' );
							}, 100 );
						}
					);
				}
			});
		},

		paintElement: function( $element, colorType ) {
			var xml, encoded, color;

			if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
				return;
			}

			color = colorscheme[ colorType ];

			// only accept hex colors: #101 or #101010
			if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
				return;
			}

			xml = $element.data( 'wp-ui-svg-' + color );

			if ( xml === 'none' ) {
				return;
			}

			if ( ! xml ) {
				encoded = $element.css( 'background-image' ).match( /.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/ );

				if ( ! encoded || ! encoded[1] ) {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}

				try {
					if ( 'atob' in window ) {
						xml = window.atob( encoded[1] );
					} else {
						xml = base64.atob( encoded[1] );
					}
				} catch ( error ) {}

				if ( xml ) {
					// replace `fill` attributes
					xml = xml.replace( /fill="(.+?)"/g, 'fill="' + color + '"');

					// replace `style` attributes
					xml = xml.replace( /style="(.+?)"/g, 'style="fill:' + color + '"');

					// replace `fill` properties in `<style>` tags
					xml = xml.replace( /fill:.*?;/g, 'fill: ' + color + ';');

					if ( 'btoa' in window ) {
						xml = window.btoa( xml );
					} else {
						xml = base64.btoa( xml );
					}

					$element.data( 'wp-ui-svg-' + color, xml );
				} else {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}
			}

			$element.attr( 'style', 'background-image: url("data:image/svg+xml;base64,' + xml + '") !important;' );
		}
	};

})( jQuery, window, document );

!function(f,w){w.wp=w.wp||{},w.wp.heartbeat=new function(){var e,n,t,a,i=f(document),r={suspend:!1,suspendEnabled:!0,screenId:"",url:"",lastTick:0,queue:{},mainInterval:60,tempInterval:0,originalInterval:0,minimalInterval:0,countdown:0,connecting:!1,connectionError:!1,errorcount:0,hasConnected:!1,hasFocus:!0,userActivity:0,userActivityEvents:!1,checkFocusTimer:0,beatTimer:0};function o(){return(new Date).getTime()}function c(e){var n,t=e.src;if(!t||!/^https?:\/\//.test(t)||(n=w.location.origin||w.location.protocol+"//"+w.location.host,0===t.indexOf(n)))try{if(e.contentWindow.document)return 1}catch(e){}}function u(){r.hasFocus&&!document.hasFocus()?m():!r.hasFocus&&document.hasFocus()&&d()}function s(e,n){var t;if(e){switch(e){case"abort":break;case"timeout":t=!0;break;case"error":if(503===n&&r.hasConnected){t=!0;break}case"parsererror":case"empty":case"unknown":r.errorcount++,2<r.errorcount&&r.hasConnected&&(t=!0)}t&&!p()&&(r.connectionError=!0,i.trigger("heartbeat-connection-lost",[e,n]))}}function l(){var e;r.connecting||r.suspend||(r.lastTick=o(),e=f.extend({},r.queue),r.queue={},i.trigger("heartbeat-send",[e]),e={data:e,interval:r.tempInterval?r.tempInterval/1e3:r.mainInterval/1e3,_nonce:"object"==typeof w.heartbeatSettings?w.heartbeatSettings.nonce:"",action:"heartbeat",screen_id:r.screenId,has_focus:r.hasFocus},r.connecting=!0,r.xhr=f.ajax({url:r.url,type:"post",timeout:3e4,data:e,dataType:"json"}).always(function(){r.connecting=!1,v()}).done(function(e,n,t){var a;e?(r.hasConnected=!0,p()&&(r.errorcount=0,r.connectionError=!1,i.trigger("heartbeat-connection-restored")),e.nonces_expired&&i.trigger("heartbeat-nonces-expired"),e.heartbeat_interval&&(a=e.heartbeat_interval,delete e.heartbeat_interval),i.trigger("heartbeat-tick",[e,n,t]),a&&b(a)):s("empty")}).fail(function(e,n,t){s(n||"unknown",e.status),i.trigger("heartbeat-error",[e,n,t])}))}function v(){var e=o()-r.lastTick,n=r.mainInterval;r.suspend||(r.hasFocus?0<r.countdown&&r.tempInterval&&(n=r.tempInterval,r.countdown--,r.countdown<1&&(r.tempInterval=0)):n=12e4,r.minimalInterval&&n<r.minimalInterval&&(n=r.minimalInterval),w.clearTimeout(r.beatTimer),e<n?r.beatTimer=w.setTimeout(function(){l()},n-e):l())}function m(){r.hasFocus=!1}function d(){r.userActivity=o(),r.suspend=!1,r.hasFocus||(r.hasFocus=!0,v())}function h(){r.userActivityEvents=!1,i.off(".wp-heartbeat-active"),f("iframe").each(function(e,n){c(n)&&f(n.contentWindow).off(".wp-heartbeat-active")}),d()}function I(){var e=r.userActivity?o()-r.userActivity:0;3e5<e&&r.hasFocus&&m(),(r.suspendEnabled&&6e5<e||36e5<e)&&(r.suspend=!0),r.userActivityEvents||(i.on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active touchend.wp-heartbeat-active",function(){h()}),f("iframe").each(function(e,n){c(n)&&f(n.contentWindow).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active touchend.wp-heartbeat-active",function(){h()})}),r.userActivityEvents=!0)}function p(){return r.connectionError}function b(e,n){var t,a=r.tempInterval||r.mainInterval;if(e){switch(e){case"fast":case 5:t=5e3;break;case 15:t=15e3;break;case 30:t=3e4;break;case 60:t=6e4;break;case 120:t=12e4;break;case"long-polling":return r.mainInterval=0;default:t=r.originalInterval}5e3===(t=r.minimalInterval&&t<r.minimalInterval?r.minimalInterval:t)?(n=(n=parseInt(n,10)||30)<1||30<n?30:n,r.countdown=n,r.tempInterval=t):(r.countdown=0,r.tempInterval=0,r.mainInterval=t),t!==a&&v()}return r.tempInterval?r.tempInterval/1e3:r.mainInterval/1e3}return"string"==typeof w.pagenow&&(r.screenId=w.pagenow),"string"==typeof w.ajaxurl&&(r.url=w.ajaxurl),"object"==typeof w.heartbeatSettings&&(e=w.heartbeatSettings,!r.url&&e.ajaxurl&&(r.url=e.ajaxurl),e.interval&&(r.mainInterval=e.interval,r.mainInterval<15?r.mainInterval=15:120<r.mainInterval&&(r.mainInterval=120)),e.minimalInterval&&(e.minimalInterval=parseInt(e.minimalInterval,10),r.minimalInterval=0<e.minimalInterval&&e.minimalInterval<=600?1e3*e.minimalInterval:0),r.minimalInterval&&r.mainInterval<r.minimalInterval&&(r.mainInterval=r.minimalInterval),r.screenId||(r.screenId=e.screenId||"front"),"disable"===e.suspension&&(r.suspendEnabled=!1)),r.mainInterval=1e3*r.mainInterval,r.originalInterval=r.mainInterval,void 0!==document.hidden?(n="hidden",a="visibilitychange",t="visibilityState"):void 0!==document.msHidden?(n="msHidden",a="msvisibilitychange",t="msVisibilityState"):void 0!==document.webkitHidden&&(n="webkitHidden",a="webkitvisibilitychange",t="webkitVisibilityState"),n&&(document[n]&&(r.hasFocus=!1),i.on(a+".wp-heartbeat",function(){"hidden"===document[t]?(m(),w.clearInterval(r.checkFocusTimer)):(d(),document.hasFocus&&(r.checkFocusTimer=w.setInterval(u,1e4)))})),document.hasFocus&&(r.checkFocusTimer=w.setInterval(u,1e4)),f(w).on("unload.wp-heartbeat",function(){r.suspend=!0,r.xhr&&4!==r.xhr.readyState&&r.xhr.abort()}),w.setInterval(I,3e4),i.ready(function(){r.lastTick=o(),v()}),{hasFocus:function(){return r.hasFocus},connectNow:function(){r.lastTick=0,v()},disableSuspend:function(){r.suspendEnabled=!1},interval:b,hasConnectionError:p,enqueue:function(e,n,t){return!!e&&((!t||!this.isQueued(e))&&(r.queue[e]=n,!0))},dequeue:function(e){e&&delete r.queue[e]},isQueued:function(e){if(e)return r.queue.hasOwnProperty(e)},getQueuedItem:function(e){if(e)return this.isQueued(e)?r.queue[e]:void 0}}}}(jQuery,window);
!function(d){var i,t;function s(){d(window).off("beforeunload.wp-auth-check"),"undefined"==typeof adminpage||"post-php"!==adminpage&&"post-new-php"!==adminpage||"undefined"==typeof wp||!wp.heartbeat||(d(document).off("heartbeat-tick.wp-auth-check"),wp.heartbeat.connectNow()),i.fadeOut(200,function(){i.addClass("hidden").css("display",""),d("#wp-auth-check-frame").remove(),d("body").removeClass("modal-open")})}function u(){var e=parseInt(window.authcheckL10n.interval,10)||180;t=(new Date).getTime()+1e3*e}d(document).on("heartbeat-tick.wp-auth-check",function(e,a){var t,n,c,o,h;"wp-auth-check"in a&&(u(),!a["wp-auth-check"]&&i.hasClass("hidden")?(n=d("#wp-auth-check"),c=d("#wp-auth-check-form"),o=i.find(".wp-auth-fallback-expired"),h=!1,c.length&&(d(window).on("beforeunload.wp-auth-check",function(e){e.originalEvent.returnValue=window.authcheckL10n.beforeunload}),(t=d('<iframe id="wp-auth-check-frame" frameborder="0">').attr("title",o.text())).on("load",function(){var e,a;h=!0,c.removeClass("loading");try{e=(a=d(this).contents().find("body")).height()}catch(e){return i.addClass("fallback"),n.css("max-height",""),c.remove(),void o.focus()}e?a&&a.hasClass("interim-login-success")?s():n.css("max-height",e+40+"px"):a&&a.length||(i.addClass("fallback"),n.css("max-height",""),c.remove(),o.focus())}).attr("src",c.data("src")),c.append(t)),d("body").addClass("modal-open"),i.removeClass("hidden"),t?(t.focus(),setTimeout(function(){h||(i.addClass("fallback"),c.remove(),o.focus())},1e4)):o.focus()):a["wp-auth-check"]&&!i.hasClass("hidden")&&s())}).on("heartbeat-send.wp-auth-check",function(e,a){(new Date).getTime()>t&&(a["wp-auth-check"]=!0)}).ready(function(){u(),(i=d("#wp-auth-check-wrap")).find(".wp-auth-check-close").on("click",function(){s()})})}(jQuery);
!function(s){s(document).ready(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),n=s(this),o=n.closest(".accordion-section"),a=o.find("[aria-expanded]").first(),i=o.closest(".accordion-container"),t=i.find(".open"),e=t.find("[aria-expanded]").first(),n=o.find(".accordion-section-content"),o.hasClass("cannot-expand")||(i.addClass("opening"),o.hasClass("open")?(o.toggleClass("open"),n.toggle(!0).slideToggle(150)):(e.attr("aria-expanded","false"),t.removeClass("open"),t.find(".accordion-section-content").show().slideUp(150),n.toggle(!1).slideToggle(150),o.toggleClass("open")),setTimeout(function(){i.removeClass("opening")},150),a&&a.attr("aria-expanded",String("false"===a.attr("aria-expanded")))))})})}(jQuery);
