!function(s){"use strict";function t(){var t=0,e=s("#wpadminbar");0<e.length&&(t+=e.height()),window.innerWidth<992?s("#secondary").trigger("sticky_kit:detach"):s("#secondary").stick_in_parent({offset_top:t})}var e,n,i,o,r,c;s(".site-header .primary-navigation .menu-item-has-children").on("mouseenter",function(t){var e,n,i,o,r=s(t.currentTarget);n=(e=r).children(".sub-menu"),i=e.offset(),o=e.outerWidth(),t=s(window).width(),r=n.outerWidth(),0<i.left+o+r-t?e.parents(".menu-item-has-children").length?n.css({left:"auto",right:"100%"}):n.css({left:"auto",right:"0"}):n.css({left:"",right:""})}),e=s("body"),n=s(window).outerHeight(),i=s("header.header-1").outerHeight(),o=s("footer.site-footer").outerHeight(),0<(r=s("#wpadminbar")).length&&(i+=r.height()),e.find("header.header-1").length&&s(".site-content").css({"min-height":n-i-o}),c=document.querySelector("body"),window.innerWidth>c.clientWidth+5?(c.classList.add("has-scrollbar"),c.setAttribute("style","--scroll-bar: "+(window.innerWidth-c.clientWidth)+"px")):c.classList.remove("has-scrollbar"),s(".site-header-account").mouseenter(function(){s(".account-dropdown",this).has(".account-wrap").length||s(".account-dropdown",this).append(s(".account-wrap"))}),s(window).scroll(function(){50<s(this).scrollTop()?s(".scrollup").addClass("activate"):s(".scrollup").removeClass("activate")}),s(".scrollup").on("click",function(){return s("html, body").animate({scrollTop:0},600),!1}),s(document).ready(function(){0<s("#secondary").length&&(t(),s(window).resize(function(){setTimeout(function(){t()},100)}))})}(jQuery);