(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[49086],{44622:function(e,t,n){e.exports="function"===typeof Array.from?Array.from:n(64486)},64486:function(e){e.exports=function(){var e=function(e){return"function"===typeof e},t=Math.pow(2,53)-1,n=function(e){var n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(n,0),t)},o=function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!==typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}},r=function(t,n){if(null!=t&&null!=n){var o=t[n];if(null==o)return;if(!e(o))throw new TypeError(o+" is not a function");return o}},l=function(e){var t=e.next();return!Boolean(t.done)&&t};return function(t){"use strict";var i,c,a,s=this,u=arguments.length>1?arguments[1]:void 0;if("undefined"!==typeof u){if(!e(u))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}var f=r(t,o(t));if(void 0!==f){c=e(s)?Object(new s):[];var m,d,h=f.call(t);if(null==h)throw new TypeError("Array.from requires an array-like or iterable object");for(a=0;;){if(!(m=l(h)))return c.length=a,c;d=m.value,c[a]=u?u.call(i,d,a):d,a++}}else{var p=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var y,w=n(p.length);for(c=e(s)?Object(new s(w)):new Array(w),a=0;a{i.elements.push(e),i.cancelMethods.push(t)},remove:(e,t)=>{const n=i.elements.indexOf(e);n>-1&&(t&&i.cancelMethods[n](),i.elements.splice(n,1),i.cancelMethods.splice(n,1))}},c="undefined"!==typeof window,a={cancelOnUserAction:!0,easing:e=>--e*e*e+1,elementToScroll:c?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};t.Z=function(e,t={}){return n(this,void 0,void 0,(function*(){if(!c)return new Promise((e=>{e(!1)}));if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill.";let n,o,s,u=Object.assign(Object.assign({},a),t);const f=u.elementToScroll===window,m=!!u.elementToScroll.nodeName;if(!f&&!m)throw"Element to scroll needs to be either window or DOM element.";const d=f?document.documentElement:u.elementToScroll;"smooth"===getComputedStyle(d).getPropertyValue("scroll-behavior")&&console.warn(`${d.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);const h=f?new l:new r(u.elementToScroll);if(e instanceof Element){if(s=e,m&&(!u.elementToScroll.contains(s)||u.elementToScroll.isSameNode(s)))throw"options.elementToScroll has to be a parent of scrollToElement";n=h.getHorizontalElementScrollOffset(s,u.elementToScroll),o=h.getVerticalElementScrollOffset(s,u.elementToScroll)}else if("number"===typeof e)n=h.getHorizontalScroll(),o=e;else{if(!Array.isArray(e)||2!==e.length)throw"Wrong function signature. Check documentation.\nAvailable method signatures are:\n animateScrollTo(y:number, options)\n animateScrollTo([x:number | null, y:number | null], options)\n animateScrollTo(scrollToElement:Element, options)";n=null===e[0]?h.getHorizontalScroll():e[0],o=null===e[1]?h.getVerticalScroll():e[1]}n+=u.horizontalOffset,o+=u.verticalOffset;const p=h.getMaxHorizontalScroll(),y=h.getHorizontalScroll();n>p&&(n=p);const w=n-y,g=h.getMaxVerticalScroll(),b=h.getVerticalScroll();o>g&&(o=g);const v=o-b,S=Math.abs(Math.round(w/1e3*u.speed)),O=Math.abs(Math.round(v/1e3*u.speed));let T=S>O?S:O;return Tu.maxDuration&&(T=u.maxDuration),new Promise(((e,t)=>{let r;0===w&&0===v&&e(!0),i.remove(h.element,!0);const l=()=>{f(),cancelAnimationFrame(r),e(!1)};i.add(h.element,l);const c=u.cancelOnUserAction?l:e=>e.preventDefault(),a=u.cancelOnUserAction?{passive:!0}:{passive:!1},s=["wheel","touchstart","keydown","mousedown"],f=()=>{s.forEach((e=>{h.element.removeEventListener(e,c,a)}))};s.forEach((e=>{h.element.addEventListener(e,c,a)}));const m=Date.now(),d=()=>{var t=Date.now()-m,l=t/T;const c=Math.round(y+w*u.easing(l)),a=Math.round(b+v*u.easing(l));t