!function(){"use strict";let e,t,o,r,n={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,fixedBackground:!0,excluded:""},a=n,i=!1,l={x:0,y:0},c=!1,s=document.documentElement,u=[],d=/^Mac/.test(navigator.platform),f=navigator.userAgent,m=f.toLowerCase().includes("safari")&&!f.toLowerCase().includes("chrome"),w=37,h=38,v=39,p=40,y=32,b=33,g=34,S=35,x=36,k={37:1,38:1,39:1,40:1};function D(){if(c||!document.body)return;c=!0;let r=document.body,n=document.documentElement,l=window.innerHeight,u=r.scrollHeight;if(s=document.compatMode.indexOf("CSS")>=0?n:r,e=r,a.keyboardSupport&&F("keydown",H),window.top!==window.self)i=!0;else if(ce&&u>l&&(r.offsetHeight<=l||n.offsetHeight<=l)){var d,f=document.createElement("div");f.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+s.scrollHeight+"px",document.body.appendChild(f),o=function(){d||(d=setTimeout((function(){f.style.height="0",f.style.height=s.scrollHeight+"px",d=null}),500))},setTimeout(o,10),F("resize",o);if(t=new Q(o),t.observe(r,{attributes:!0,childList:!0,characterData:!1}),s.offsetHeight<=l){var m=document.createElement("div");m.style.clear="both",r.appendChild(m)}}a.fixedBackground||(r.style.backgroundAttachment="scroll",n.style.backgroundAttachment="scroll")}var M=[],E=!1,B=Date.now();function C(e,t,o){var r,n;if(r=(r=t)>0?1:-1,n=(n=o)>0?1:-1,(l.x!==r||l.y!==n)&&(l.x=r,l.y=n,M=[],B=0),1!=a.accelerationMax){var i=Date.now()-B;if(i<a.accelerationDelta){var c=(1+50/i)/2;c>1&&(c=Math.min(c,a.accelerationMax),t*=c,o*=c)}B=Date.now()}if(M.push({x:t,y:o,lastX:t<0?.99:-.99,lastY:o<0?.99:-.99,start:Date.now()}),!E){var s=Z(),u=e===s||e===document.body;null==e.$scrollBehavior&&function(e){var t=A(e);if(null==N[t]){var o=getComputedStyle(e,"")["scroll-behavior"];N[t]="smooth"==o}return N[t]}(e)&&(e.$scrollBehavior=e.style.scrollBehavior,e.style.scrollBehavior="auto");var d=function(){for(var r=Date.now(),n=0,i=0,l=0;l<M.length;l++){var c=M[l],s=r-c.start,f=s>=a.animationTime,m=f?1:s/a.animationTime;a.pulseAlgorithm&&(m=te(m));var w=c.x*m-c.lastX>>0,h=c.y*m-c.lastY>>0;n+=w,i+=h,c.lastX+=w,c.lastY+=h,f&&(M.splice(l,1),l--)}u?window.scrollBy(n,i):(n&&(e.scrollLeft+=n),i&&(e.scrollTop+=i)),t||o||(M=[]),M.length?J(d,e,1e3/a.frameRate+1):(E=!1,null!=e.$scrollBehavior&&(e.style.scrollBehavior=e.$scrollBehavior,e.$scrollBehavior=null))};J(d,e,0),E=!0}}function T(t){if(!(t.wheelDeltaY?t.wheelDeltaY===-3*t.deltaY:0===t.deltaMode)){c||D();var o=t.target;if(t.defaultPrevented||t.ctrlKey)return!0;if(_(e,"embed")||_(o,"embed")&&/\.pdf/i.test(o.src)||_(e,"object")||o.shadowRoot)return!0;var n=-t.wheelDeltaX||t.deltaX||0,l=-t.wheelDeltaY||t.deltaY||0;m&&(l*=10,Math.abs(l)>120&&(l=l>0?120:-120)),d&&(t.wheelDeltaX&&W(t.wheelDeltaX,120)&&(n=t.wheelDeltaX/Math.abs(t.wheelDeltaX)*-120),t.wheelDeltaY&&W(t.wheelDeltaY,120)&&(l=t.wheelDeltaY/Math.abs(t.wheelDeltaY)*-120)),n||l||(l=-t.wheelDelta||0),1===t.deltaMode&&(n*=40,l*=40);var s=j(o);if(!s)return!i||!ne||(Object.defineProperty(t,"target",{value:window.frameElement}),parent.wheel(t));if(function(e){if(!e)return;u.length||(u=[e,e,e]);e=Math.abs(e),u.push(e),u.shift(),clearTimeout(r),r=setTimeout((function(){try{localStorage.SS_deltaBuffer=u.join(",")}catch(e){}}),1e3);var t=e>120&&U(e),o=!U(120)&&!U(100)&&!t;if(e<50)return!0;return o}(l))return!0;Math.abs(n)>1.2&&(n*=a.stepSize/120),Math.abs(l)>1.2&&(l*=a.stepSize/120),C(s,n,l),t.preventDefault(),K()}}function H(t){var o=t.target,r=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==y;document.body.contains(e)||(e=document.activeElement);var n=/^(button|submit|radio|checkbox|file|color|image)$/i;if(t.defaultPrevented||/^(textarea|select|embed|object)$/i.test(o.nodeName)||_(o,"input")&&!n.test(o.type)||_(e,"video")||function(e){var t=e.target,o=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(o=t.classList&&t.classList.contains("html5-video-controls"))break}while(t=t.parentNode);return o}(t)||o.isContentEditable||r)return!0;if((_(o,"button")||_(o,"input")&&n.test(o.type))&&t.keyCode===y)return!0;if(_(o,"input")&&"radio"==o.type&&k[t.keyCode])return!0;var l=0,c=0,s=j(e);if(!s)return!i||!ne||parent.keydown(t);var u=s.clientHeight;switch(s==document.body&&(u=window.innerHeight),t.keyCode){case h:c=-a.arrowScroll;break;case p:c=a.arrowScroll;break;case y:c=-(t.shiftKey?1:-1)*u*.9;break;case b:c=.9*-u;break;case g:c=.9*u;break;case x:s==document.body&&document.scrollingElement&&(s=document.scrollingElement),c=-s.scrollTop;break;case S:var d=s.scrollHeight-s.scrollTop-u;c=d>0?d+10:0;break;case w:l=-a.arrowScroll;break;case v:l=a.arrowScroll;break;default:return!0}C(s,l,c),t.preventDefault(),K()}function z(t){e=t.target}var L,Y,A=(L=0,function(e){return e.uniqueID||(e.uniqueID=L++)}),O={},X={},N={};function K(){clearTimeout(Y),Y=setInterval((function(){O=X=N={}}),1e3)}function P(e,t,o){for(var r=o?O:X,n=e.length;n--;)r[A(e[n])]=t;return t}function $(e,t){return(t?O:X)[A(e)]}function j(e){var t=[],o=document.body,r=s.scrollHeight;do{var n=$(e,!1);if(n)return P(t,n);if(t.push(e),r===e.scrollHeight){var a=q(s)&&q(o)||V(s);if(i&&R(s)||!i&&a)return P(t,Z())}else if(R(e)&&V(e))return P(t,e)}while(e=e.parentElement)}function R(e){return e.clientHeight+10<e.scrollHeight}function q(e){return"hidden"!==getComputedStyle(e,"").getPropertyValue("overflow-y")}function V(e){var t=getComputedStyle(e,"").getPropertyValue("overflow-y");return"scroll"===t||"auto"===t}function F(e,t,o){window.addEventListener(e,t,o||!1)}function I(e,t,o){window.removeEventListener(e,t,o||!1)}function _(e,t){return e&&(e.nodeName||"").toLowerCase()===t.toLowerCase()}if(window.localStorage&&localStorage.SS_deltaBuffer)try{u=localStorage.SS_deltaBuffer.split(",")}catch(e){}function W(e,t){return Math.floor(e/t)==e/t}function U(e){return W(u[0],e)&&W(u[1],e)&&W(u[2],e)}var G,J=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e,t,o){window.setTimeout(e,o||1e3/60)},Q=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Z=(G=document.scrollingElement,function(){if(!G){var e=document.createElement("div");e.style.cssText="height:10000px;width:1px;",document.body.appendChild(e);var t=document.body.scrollTop;window.scrollBy(0,3),G=document.body.scrollTop!=t?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(e)}return G});function ee(e){var t,o;return(e*=a.pulseScale)<1?t=e-(1-Math.exp(-e)):(e-=1,t=(o=Math.exp(-1))+(1-Math.exp(-e))*(1-o)),t*a.pulseNormalize}function te(e){return e>=1?1:e<=0?0:(1==a.pulseNormalize&&(a.pulseNormalize/=ee(1)),ee(e))}var oe=window.navigator.userAgent,re=/Edge/.test(oe),ne=/chrome/i.test(oe)&&!re,ae=/safari/i.test(oe)&&!re,ie=/mobile/i.test(oe),le=/Windows NT 6.1/i.test(oe)&&/rv:11/i.test(oe),ce=ae&&(/Version\/8/i.test(oe)||/Version\/9/i.test(oe)),se=(ne||ae||le||window.t42SmoothScrollAllBrowsers)&&!ie,ue=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ue=!0}}))}catch(e){}var de=!!ue&&{passive:!1},fe="onwheel"in document.createElement("div")?"wheel":"mousewheel";function me(e){for(var t in e)n.hasOwnProperty(t)&&(a[t]=e[t])}fe&&se&&(F(fe,T,de),F("mousedown",z),F("load",D)),me.destroy=function(){t&&t.disconnect(),I(fe,T),I("mousedown",z),I("keydown",H),I("resize",o),I("load",D)},me.restart=function(){t&&t.observe(),F(fe,T,{passive:!1}),F("mousedown",z),F("keydown",H),F("resize",o),F("load",D)},window.SmoothScrollOptions&&me(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define((function(){return me})):"object"==typeof exports?module.exports=me:window.SmoothScroll=me}();