(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8733],{95728:function(e,t,n){"use strict";var r,i,a=n(11720);function o(){return o=Object.assign||function(e){for(var t=1;th?s(e,n,i):o+r>f?l(o-h+r,n,i):i&&i()},u=function(e,n,r,i){l(Math.max(0,t.getTopOf(e)-t.getHeight()/2+(r||e.getBoundingClientRect().height/2)),n,i)};return{setup:function(e,t){return(0===e||e)&&(n=e),(0===t||t)&&(r=t),{defaultDuration:n,edgeOffset:r}},to:s,toY:l,intoView:h,center:u,stop:o,moving:function(){return!!i},getY:t.getY,getTopOf:t.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},i=t({body:document.scrollingElement||document.body,toY:function(e){window.scrollTo(0,e)},getY:r,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(e){return e.getBoundingClientRect().top+r()-n.offsetTop}});if(i.createScroller=function(e,r,i){return t({body:e,toY:function(t){e.scrollTop=t},getY:function(){return e.scrollTop},getHeight:function(){return Math.min(e.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(e){return e.offsetTop}},r,i)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var a="history"in window&&"pushState"in history,o=a&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){o&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(e){e.state&&"zenscrollY"in e.state&&i.toY(e.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var e=i.setup().edgeOffset;if(e){var t=document.getElementById(window.location.href.split("#")[1]);if(t){var n=Math.max(0,i.getTopOf(t)-e),r=i.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}}),9)}),!1);var c=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(e){for(var t=e.target;t&&"A"!==t.tagName;)t=t.parentNode;if(!(!t||1!==e.which||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){if(o){var n=history.state&&"object"===typeof history.state?history.state:{};n.zenscrollY=i.getY();try{history.replaceState(n,"")}catch(f){}}var r=t.getAttribute("href")||"";if(0===r.indexOf("#")&&!c.test(t.className)){var l=0,s=document.getElementById(r.substring(1));if("#"!==r){if(!s)return;l=i.getTopOf(s)}e.preventDefault();var h=function(){window.location=r},u=i.setup().edgeOffset;u&&(l=Math.max(0,l-u),a&&(h=function(){history.pushState({},"",r)})),i.toY(l,null,h)}}}),!1)}return i}(),void 0===(i="function"===typeof n?n.apply(t,r):n)||(e.exports=i)}}]);