!function(){"use strict";function e(){var e=Array.prototype.slice.call(document.querySelectorAll(".puffergo-header-wrap.puffergo-header-overlay"));if(e.length){var n=Math.max(0,window.pageYOffset||0),t=!1;e.forEach(function(e){i(e,n<=8?"top":"pinned")}),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0})}function i(e,n){e.classList.toggle("is-top","top"===n),e.classList.toggle("is-hidden","hidden"===n),e.classList.toggle("is-pinned","pinned"===n)}function o(){t=!1;var o=Math.max(0,window.pageYOffset||0);if(o<=8)return e.forEach(function(e){i(e,"top")}),void(n=o);var a=o-n;if(!(Math.abs(a)<6)){var d=a>0?"hidden":"pinned";e.forEach(function(e){i(e,d)}),n=o}}function a(){t||(t=!0,window.requestAnimationFrame(o))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();