!function(){var i;(i=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_fullwidth_header_modules=function(){i((()=>{function e(){if(!window.et_is_fixed_nav)return 0;const e=void 0===i("#main-header").attr("data-fixed-height-onload")?0:i("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(e):0}window.et_pb_fullwidth_header_scroll=function(t){t.preventDefault();const d="object"==typeof window.ET_Builder,n=i(window),a=i("#top-header"),o=i("body").hasClass("et-bfb"),r=d&&!o,_=n.width(),h=i("body"),l=_<782,s=h.hasClass("et_transparent_nav"),w=h.hasClass("et_hide_nav"),f=_>980,c=i(this).parents("section"),u=c.offset(),p=i("#wpadminbar"),b=i("#main-header"),v=p.length&&!l?p.height():0,g=a.length&&window.et_is_fixed_nav&&f?a.height():0,m=void 0===b.attr("data-height-onload")?0:b.attr("data-height-onload"),y=b.height()===e()||!f||!window.et_is_fixed_nav||s||w?0:e()-parseFloat(m);let x=u.top+c.outerHeight(!0)+y-(v+g+e());if(!r&&window.et_is_fixed_nav&&s){const i=b.clone().addClass("et-disabled-animations et-fixed-header").css("visibility","hidden").appendTo(h);x+=e()-i.height(),i.remove()}if(c.length){const e=800;i("html, body").animate({scrollTop:x},{duration:e})}},i(document).on("click",".et_pb_fullwidth_header_scroll a",et_pb_fullwidth_header_scroll),i(window).resize((function(){}))}))},window.et_pb_init_fullwidth_header_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryFullwidthHeader={}}();