(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{95728:function(e,t,n){"use strict";var r,a,i=n(67294);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?l(e,n,a):o+r>g?c(o-u+r,n,a):a&&a()},d=function(e,n,r,a){c(Math.max(0,t.getTopOf(e)-t.getHeight()/2+(r||e.getBoundingClientRect().height/2)),n,a)};return{setup:function(e,t){return(0===e||e)&&(n=e),(0===t||t)&&(r=t),{defaultDuration:n,edgeOffset:r}},to:l,toY:c,intoView:u,center:d,stop:o,moving:function(){return!!a},getY:t.getY,getTopOf:t.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},a=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(a.createScroller=function(e,r,a){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,a)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var i="history"in window&&"pushState"in history,o=i&&"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&&a.toY(e.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var e=a.setup().edgeOffset;if(e){var t=document.getElementById(window.location.href.split("#")[1]);if(t){var n=Math.max(0,a.getTopOf(t)-e),r=a.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}}),9)}),!1);var s=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=a.getY();try{history.replaceState(n,"")}catch(g){}}var r=t.getAttribute("href")||"";if(0===r.indexOf("#")&&!s.test(t.className)){var c=0,l=document.getElementById(r.substring(1));if("#"!==r){if(!l)return;c=a.getTopOf(l)}e.preventDefault();var u=function(){window.location=r},d=a.setup().edgeOffset;d&&(c=Math.max(0,c-d),i&&(u=function(){history.pushState({},"",r)})),a.toY(c,null,u)}}}),!1)}return a}(),void 0===(a="function"===typeof n?n.apply(t,r):n)||(e.exports=a)}}]);