!function(o,r,t){var s="astHookExtSticky",i=r.document,a=(jQuery(r).outerWidth(),jQuery(r).width()),n={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"
",body_padding_support:!0,html_padding_support:!0,active_shrink:!1,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"};function e(t,e){this.element=t,this.options=o.extend({},n,e),this._defaults=n,this._name=s,"1"==this.options.hide_on_scroll&&(this.navbarHeight=o(t).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}e.prototype.stick_me=function(t,e){var o=jQuery(t.element),s=jQuery(r).outerWidth(),i=parseInt(t.options.stick_upto_scroll),a=parseInt(o.parent().attr("data-stick-maxwidth")),n=parseInt(o.parent().attr("data-stick-gutter"));"enabled"==(astraAddon.hook_sticky_header||"")&&("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point>s?t.stickRelease(t):"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point<=s?t.stickRelease(t):jQuery(r).scrollTop()>i?"none"==t.options.header_style&&("enabled"==t.options.active_shrink&&t.hasShrink(t,"stick"),o.hasClass("ast-custom-header")&&(o.parent().css("min-height",o.outerHeight()),o.addClass("ast-header-sticky-active").stop().css({"max-width":a,top:n,"padding-top":t.options.shrink.padding_top,"padding-bottom":t.options.shrink.padding_bottom}),o.addClass("ast-sticky-shrunk").stop())):t.stickRelease(t)),"enabled"==(astraAddon.hook_sticky_footer||"")&&("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point>s?t.stickRelease(t):"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point<=s?t.stickRelease(t):(jQuery("body").addClass("ast-footer-sticky-active"),o.parent().css("min-height",o.outerHeight()),o.stop().css({"max-width":a})))},e.prototype.update_attrs=function(){var t=this,e=jQuery(t.element),o=parseInt(t.options.gutter),s=t.options.max_width;if("none"==t.options.header_style)var i=e.offset().top||0;"ast-box-layout"!=t.options.site_layout&&(s=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(t,e){jQuery(e).length&&"on"==jQuery(e).parent().attr("data-stick-support")&&(dependent_height=jQuery(e).outerHeight(),o+=parseInt(dependent_height),i-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782jQuery(t.element).outerHeight()?jQuery("body").addClass("ast-shrink-custom-header"):jQuery("body").removeClass("ast-shrink-custom-header")},e.prototype.stickRelease=function(t){var e=jQuery(t.element);"enabled"==(astraAddon.hook_sticky_header||"")&&"none"==t.options.header_style&&(e.removeClass("ast-header-sticky-active").stop().css({"max-width":"",top:"",padding:""}),e.parent().css("min-height",""),e.removeClass("ast-sticky-shrunk").stop()),"enabled"==(astraAddon.hook_sticky_footer||"")&&jQuery("body").removeClass("ast-footer-sticky-active")},e.prototype.init=function(){if(jQuery(this.element)){var e=this,t=jQuery(e.element);parseInt(e.options.gutter),t.position().top;"none"==e.options.header_style&&t.wrap(e.options.wrap).parent().css("min-height",t.outerHeight()).attr("data-stick-support","on").attr("data-stick-maxwidth",parseInt(e.options.max_width)),e.update_attrs(),jQuery(r).on("resize",function(){e.stickRelease(e),e.update_attrs(),e.stick_me(e)}),jQuery(r).on("scroll",function(){e.stick_me(e,"scroll")}),jQuery(i).ready(function(t){e.stick_me(e)})}},o.fn[s]=function(t){return this.each(function(){o.data(this,"plugin_"+s)||o.data(this,"plugin_"+s,new e(this,t))})};var d=jQuery("body").width(),_=astraAddon.site_layout||"",h=astraAddon.hook_sticky_header||"",p=astraAddon.hook_shrink_header||"";switch(sticky_header_on_devices=astraAddon.hook_sticky_header_on_devices||"desktop",site_layout_box_width=astraAddon.site_layout_box_width||1200,hook_sticky_footer=astraAddon.hook_sticky_footer||"",sticky_footer_on_devices=astraAddon.hook_sticky_footer_on_devices||"desktop",_){case"ast-box-layout":d=parseInt(site_layout_box_width)}jQuery(i).ready(function(t){"enabled"==h&&jQuery(".ast-custom-header").astHookExtSticky({sticky_on_device:sticky_header_on_devices,header_style:"none",site_layout:_,max_width:d,active_shrink:p}),"enabled"==hook_sticky_footer&&jQuery(".ast-custom-footer").astHookExtSticky({sticky_on_device:sticky_footer_on_devices,max_width:d,site_layout:_,header_style:"none"})})}(jQuery,window);!function(){var e,t,a,l,n,o,r=document.querySelector(".ast-above-header"),s=document.querySelector(".ast-above-header-navigation"),u=document.querySelector(".menu-above-header-toggle"),i=document.querySelector(".main-header-menu-toggle"),d=document.querySelector(".menu-below-header-toggle"),c=document.querySelector("html"),g=document.querySelectorAll(".ast-above-header"),m=document.querySelectorAll(".menu-above-header-toggle"),v=document.querySelectorAll(".ast-above-header-navigation");if(0 a");else b=g[h].querySelectorAll("ul.ast-above-header-menu .ast-menu-toggle");AstraToggleMenu(b)}}else{var f=document.querySelectorAll(".main-header-menu"),p=document.querySelectorAll(".ast-above-header-menu-items"),A=document.querySelectorAll(".main-header-menu-toggle");if(0",body_padding_support:!0,html_padding_support:!0,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"},n=0;function t(e,t){this.element=e,this.options=r.extend({},s,t),this._defaults=s,this._name=a,"1"==this.options.hide_on_scroll&&(this.navbarHeight=r(e).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}t.prototype.stick_me=function(e,t){var a=jQuery(e.element);jQuery(i).outerWidth();if(stick_upto_scroll=parseInt(e.options.stick_upto_scroll),max_width=parseInt(a.parent().attr("data-stick-maxwidth")),gutter=parseInt(a.parent().attr("data-stick-gutter")),"desktop"==e.options.sticky_on_device&&jQuery("body").hasClass("ast-header-break-point"))e.stickRelease(e);else if("mobile"!=e.options.sticky_on_device||jQuery("body").hasClass("ast-header-break-point"))if(jQuery(i).scrollTop()>stick_upto_scroll){var s=a;"1"===e.options.hide_on_scroll?e.hasScrolled(e,"stick"):"none"==e.options.header_style?(a.parent().css("min-height",a.outerHeight()),a.addClass("ast-sticky-active").stop().css({"max-width":max_width,top:gutter,"padding-top":e.options.shrink.padding_top,"padding-bottom":e.options.shrink.padding_bottom}),a.addClass("ast-sticky-shrunk").stop(),r(d).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"slide"==e.options.header_style?(s.css({top:gutter}),s.addClass("ast-header-slide"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({transform:"translateY(0)"}),r("html").addClass("ast-header-stick-slide-active"),r(d).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"fade"==e.options.header_style&&(s.css({top:gutter}),s.addClass("ast-header-fade"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({opacity:"1"}),r("html").addClass("ast-header-stick-fade-active"),r(d).trigger("addStickyClass"),s.addClass("ast-header-sticked"))}else e.stickRelease(e);else e.stickRelease(e)},t.prototype.update_attrs=function(){var e=this,t=jQuery(e.element),a=parseInt(e.options.gutter),s=e.options.max_width;if("none"!=e.options.header_style||jQuery("body").hasClass("ast-sticky-toggled-off")){if(r("#masthead").length){var i=r("#masthead");d=i.offset().top+i.outerHeight()+100||0}}else var d=t.offset().top||0;"ast-box-layout"!=e.options.site_layout&&(s=jQuery("body").width()),e.options.dependent&&jQuery.each(e.options.dependent,function(e,t){jQuery(t).length&&"on"==jQuery(t).parent().attr("data-stick-support")&&(dependent_height=jQuery(t).outerHeight(),a+=parseInt(dependent_height),d-=parseInt(dependent_height))}),e.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782";else if(""!=x)S="";r("head").append(S)}if(p||_||m){switch(r(d).on("addStickyClass",function(){var e="";"1"!=p&&"on"!=p||(e+=" ast-primary-sticky-header-active"),"1"!=_&&"on"!=_||(e+=" ast-above-sticky-header-active"),"1"!=m&&"on"!=m||(e+=" ast-below-sticky-header-active"),r("body").addClass(e)}),r(d).on("removeStickyClass",function(){var e="";"1"!=p&&"on"!=p||(e+=" ast-primary-sticky-header-active"),"1"!=_&&"on"!=_||(e+=" ast-above-sticky-header-active"),"1"!=m&&"on"!=m||(e+=" ast-below-sticky-header-active"),r("body").removeClass(e)}),v){case"ast-box-layout":l=parseInt(b)}jQuery(d).ready(function(e){if("1"==j)"1"==y&&jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=_&&"on"!=_&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=p&&"on"!=p&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=m&&"on"!=m&&jQuery("#ast-fixed-header .ast-below-header").hide(),jQuery("#ast-fixed-header").astExtSticky({max_width:l,site_layout:v,sticky_on_device:f,header_style:"slide",hide_on_scroll:j});else if("none"==w)if("1"!=_&&"on"!=_||jQuery("#masthead .ast-above-header").astExtSticky({max_width:l,site_layout:v,sticky_on_device:f,header_style:w,hide_on_scroll:j}),"1"!=p&&"on"!=p||"1"!=m&&"on"!=m){if("1"==p||"on"==p){var t="";y&&(t={padding_top:"",padding_bottom:""}),jQuery("#masthead .main-header-bar").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:l,site_layout:v,shrink:t,sticky_on_device:f,header_style:w,hide_on_scroll:j}),jQuery("#masthead .ast-custom-header").astExtSticky({max_width:l,site_layout:v,shrink:t,sticky_on_device:f,header_style:w,hide_on_scroll:j})}"1"!=m&&"on"!=m||jQuery("body").hasClass("ast-header-break-point")||jQuery("#masthead .ast-below-header").astExtSticky({dependent:["#masthead .main-header-bar","#masthead .ast-above-header"],max_width:l,site_layout:v,sticky_on_device:f,header_style:w,hide_on_scroll:j})}else jQuery("#masthead .main-header-bar-wrap").wrap('
'),jQuery("#masthead .ast-below-header-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .main-header-bar-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:l,site_layout:v,shrink:t,sticky_on_device:f,header_style:w,hide_on_scroll:j});else if(jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=_&&"on"!=_&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=p&&"on"!=p&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=m&&"on"!=m&&jQuery("#ast-fixed-header .ast-below-header").hide(),"1"==_||"on"==_||"1"==p||"on"==p||"1"==m||"on"==m){t="";y&&(t={padding_top:"",padding_bottom:""}),jQuery("#ast-fixed-header").astExtSticky({max_width:l,site_layout:v,shrink:t,sticky_on_device:f,header_style:w,hide_on_scroll:j})}"mobile"!=f&&"both"!=f||(jQuery("#masthead .main-header-menu-toggle").click(function(e){if(jQuery("#masthead .main-header-menu-toggle").hasClass("toggled")){if(h.addClass("ast-sticky-toggled-off"),"none"==s.header_style&&(jQuery("#masthead .main-header-bar").hasClass("ast-sticky-active")||jQuery("#masthead .ast-stick-primary-below-wrapper").hasClass("ast-sticky-active"))){var t=jQuery(i).height(),a=0;jQuery("#masthead .ast-above-header")&&jQuery("#masthead .ast-above-header").length&&(a=jQuery("#masthead .ast-above-header").height()),"1"==j&&jQuery("html").css({overflow:"hidden"}),"1"!=y||"1"!=p&&"on"!=p||"1"!=m&&"on"!=m?jQuery("#masthead .main-header-bar.ast-sticky-active").css({"max-height":t-a+"px","overflow-y":"auto"}):jQuery("#masthead .ast-stick-primary-below-wrapper").css({"max-height":t-a+"px","overflow-y":"auto"})}}else h.addClass("ast-sticky-toggled-off"),jQuery("html").css({overflow:""}),"1"!=y||"1"!=p&&"on"!=p||"1"!=m&&"on"!=m?jQuery("#masthead .main-header-bar.ast-sticky-active").css({"max-height":"","overflow-y":""}):jQuery("#masthead .ast-stick-primary-below-wrapper").css({"max-height":"","overflow-y":""})}),jQuery("#ast-fixed-header .main-header-menu-toggle").click(function(e){if(jQuery("#ast-fixed-header .main-header-menu-toggle").hasClass("toggled")){var t=jQuery(i).height();"1"==j&&jQuery("html").css({overflow:"hidden"}),jQuery("#ast-fixed-header").css({"max-height":t+"px","overflow-y":"auto"})}else jQuery("html").css({overflow:""}),jQuery("#ast-fixed-header").css({"max-height":"","overflow-y":""})}))})}}}(jQuery,window);jQuery,jQuery(document).ready(function(o){var r=document.querySelector("#page header");jQuery("#ast-scroll-top")&&jQuery("#ast-scroll-top").length&&(ast_scroll_top=function(){var o=jQuery("#ast-scroll-top"),e=o.css("content"),t=o.data("on-devices");if(e=e.replace(/[^0-9]/g,""),"both"==t||"desktop"==t&&"769"==e||"mobile"==t&&""==e){var l=window.pageYOffset||document.body.scrollTop;r&&r.length?l>r.offsetHeight+100?o.show():o.hide():300parseInt(astra.break_point)){var n=t.width(),i=t.offset(),r=s.offset(),f=r.left-(i.left+parseFloat(t.css("paddingLeft"))),d=a.width(),l=a.offset(),o=r.left-(l.left+parseFloat(a.css("paddingLeft")));if(s.hasClass("menu-container-width-mega")){$target_container=jQuery(".main-navigation"),n=$target_container.width()+"px";var c=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),u=s.offset(),m=jQuery(window).width()-c-u.left;f=parseInt($target_container.width()-m)}s.hasClass("full-width-mega")?(s.find(".astra-full-megamenu-wrapper").css({left:"-"+o+"px",width:d}),s.find(".astra-megamenu").css({width:n})):s.find(".astra-megamenu").css({left:"-"+f+"px",width:n})}else s.find(".astra-megamenu").css({left:"",width:"","background-image":""}),s.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""})})});!function(){var e,t;function n(e){var t=document.body.className;t=t.replace(e,""),document.body.className=t}function r(e){e.style.display="block",setTimeout(function(){e.style.opacity=1},1)}function s(e){e.style.opacity="",setTimeout(function(){e.style.display=""},200)}function l(e){if(document.body.classList.contains("ast-header-break-point")){var t=document.querySelector(".main-navigation"),a=document.querySelector(".main-header-bar");if(null!==a&&null!==t){var o=t.offsetHeight,n=a.offsetHeight;if(o&&!document.body.classList.contains("ast-no-toggle-menu-enable"))var s=parseFloat(o)-parseFloat(n);else s=parseFloat(n);e.style.maxHeight=Math.abs(s)+"px"}}}e="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",t="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+e,document.body.className+=" "+t;for(var a=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),o=0;a.length>o;o++)a[o].onclick=function(e){if(e.preventDefault(),e||(e=window.event),this.classList.contains("header-cover"))for(var t=document.querySelectorAll(".ast-search-box.header-cover"),a=0;a