1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{7648:function(e,t,i){i.d(t,{default:function(){return r.a}});var n=i(2972),r=i.n(n)},9376:function(e,t,i){var n=i(5475);i.o(n,"usePathname")&&i.d(t,{usePathname:function(){return n.usePathname}})},5449:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),i(8521);let n=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6958:function(e,t,i){function n(e,t,i,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),i(8521),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2972:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let n=i(7043),r=i(7437),o=n._(i(2265)),s=i(5246),l=i(3552),a=i(7497),u=i(3987),c=i(5449),h=i(5523),d=i(1956),p=i(6081),f=i(6958),m=i(1634),g=i(4673),v=new Set;function S(e,t,i,n,r,o){if("undefined"!=typeof window&&(o||(0,l.isLocalURL)(t))){if(!n.bypassPrefetchedCheck){let r=t+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(r))return;v.add(r)}(async()=>o?e.prefetch(t,r):e.prefetch(t,i,n))().catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let E=o.default.forwardRef(function(e,t){let i,n;let{href:a,as:v,children:E,prefetch:y=null,passHref:R,replace:w,shallow:b,scroll:T,locale:P,onClick:N,onMouseEnter:O,onTouchStart:A,legacyBehavior:x=!1,...C}=e;i=E,x&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let I=o.default.useContext(h.RouterContext),L=o.default.useContext(d.AppRouterContext),M=null!=I?I:L,j=!I,D=!1!==y,k=null===y?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:z,as:U}=o.default.useMemo(()=>{if(!I){let e=_(a);return{href:e,as:v?_(v):e}}let[e,t]=(0,s.resolveHref)(I,a,!0);return{href:e,as:v?(0,s.resolveHref)(I,v):t||e}},[I,a,v]),W=o.default.useRef(z),H=o.default.useRef(U);x&&(n=o.default.Children.only(i));let F=x?n&&"object"==typeof n&&n.ref:t,[X,V,Y]=(0,p.useIntersection)({rootMargin:"200px"}),G=o.default.useCallback(e=>{(H.current!==U||W.current!==z)&&(Y(),H.current=U,W.current=z),X(e),F&&("function"==typeof F?F(e):"object"==typeof F&&(F.current=e))},[U,F,z,Y,X]);o.default.useEffect(()=>{M&&V&&D&&S(M,z,U,{locale:P},{kind:k},j)},[U,z,V,P,D,null==I?void 0:I.locale,M,j,k]);let B={ref:G,onClick(e){x||"function"!=typeof N||N(e),x&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,i,n,r,s,a,u,c){let{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,l.isLocalURL)(i)))return;e.preventDefault();let d=()=>{let e=null==a||a;"beforePopState"in t?t[r?"replace":"push"](i,n,{shallow:s,locale:u,scroll:e}):t[r?"replace":"push"](n||i,{scroll:e})};c?o.default.startTransition(d):d()}(e,M,z,U,w,b,T,P,j)},onMouseEnter(e){x||"function"!=typeof O||O(e),x&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&(D||!j)&&S(M,z,U,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:k},j)},onTouchStart:function(e){x||"function"!=typeof A||A(e),x&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&(D||!j)&&S(M,z,U,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:k},j)}};if((0,u.isAbsoluteUrl)(U))B.href=U;else if(!x||R||"a"===n.type&&!("href"in n.props)){let e=void 0!==P?P:null==I?void 0:I.locale,t=(null==I?void 0:I.isLocaleDomain)&&(0,f.getDomainLocale)(U,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales);B.href=t||(0,m.addBasePath)((0,c.addLocale)(U,e,null==I?void 0:I.defaultLocale))}return x?o.default.cloneElement(n,B):(0,r.jsx)("a",{...C,...B,children:i})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3515:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5246:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return h}});let n=i(8637),r=i(7497),o=i(7053),s=i(3987),l=i(8521),a=i(3552),u=i(6279),c=i(7205);function h(e,t,i){let h;let d="string"==typeof t?t:(0,r.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),f=p?d.slice(p[0].length):d;if((f.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,s.normalizeRepeatedSlashes)(f);d=(p?p[0]:"")+t}if(!(0,a.isLocalURL)(d))return i?[d]:d;try{h=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(d,h);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&i){let i=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:s,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,i);s&&(t=(0,r.formatWithValidation)({pathname:s,hash:e.hash,query:(0,o.omit)(i,l)}))}let s=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return i?[s,t||s]:s}catch(e){return i?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6081:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let n=i(2265),r=i(3515),o="function"==typeof IntersectionObserver,s=new Map,l=[];function a(e){let{rootRef:t,rootMargin:i,disabled:a}=e,u=a||!o,[c,h]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,i){let{id:n,observer:r,elements:o}=function(e){let t;let i={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===i.root&&e.margin===i.margin);if(n&&(t=s.get(n)))return t;let r=new Map;return t={id:i,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=r.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e),elements:r},l.push(i),s.set(i,t),t}(i);return o.set(e,t),r.observe(e),function(){if(o.delete(e),r.unobserve(e),0===o.size){r.disconnect(),s.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:i})}else if(!c){let e=(0,r.requestIdleCallback)(()=>h(!0));return()=>(0,r.cancelIdleCallback)(e)}},[u,i,t,c,d.current]),[p,c,(0,n.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9259:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ACTION_SUFFIX:function(){return a},APP_DIR_ALIAS:function(){return N},CACHE_ONE_YEAR:function(){return E},DOT_NEXT_ALIAS:function(){return T},ESLINT_DEFAULT_DIRS:function(){return Y},GSP_NO_RETURNED_VALUE:function(){return U},GSSP_COMPONENT_MEMBER_ERROR:function(){return F},GSSP_NO_RETURNED_VALUE:function(){return W},INSTRUMENTATION_HOOK_FILENAME:function(){return w},MIDDLEWARE_FILENAME:function(){return y},MIDDLEWARE_LOCATION_REGEXP:function(){return R},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return _},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return p},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return S},NEXT_CACHE_TAGS_HEADER:function(){return d},NEXT_CACHE_TAG_MAX_ITEMS:function(){return g},NEXT_CACHE_TAG_MAX_LENGTH:function(){return v},NEXT_DATA_SUFFIX:function(){return u},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n}
1,NEXT_META_SUFFIX:function(){return c},NEXT_QUERY_PARAM_PREFIX:function(){return i},NON_STANDARD_NODE_ENV:function(){return X},PAGES_DIR_ALIAS:function(){return b},PRERENDER_REVALIDATE_HEADER:function(){return r},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return L},ROOT_DIR_ALIAS:function(){return P},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return I},RSC_ACTION_ENCRYPTION_ALIAS:function(){return C},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_VALIDATE_ALIAS:function(){return A},RSC_MOD_REF_PROXY_ALIAS:function(){return O},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return z},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return j},SERVER_PROPS_SSG_CONFLICT:function(){return D},SERVER_RUNTIME:function(){return G},SSG_FALLBACK_EXPORT_ERROR:function(){return V},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return M},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return k},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return H},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return q}});let i="nxtP",n="nxtI",r="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",s=".prefetch.rsc",l=".rsc",a=".action",u=".json",c=".meta",h=".body",d="x-next-cache-tags",p="x-next-cache-soft-tags",f="x-next-revalidated-tags",m="x-next-revalidate-tag-token",g=128,v=256,S=1024,_="_N_T_",E=31536e3,y="middleware",R=`(?:src/)?${y}`,w="instrumentation",b="private-next-pages",T="private-dot-next",P="private-next-root-dir",N="private-next-app-dir",O="private-next-rsc-mod-ref-proxy",A="private-next-rsc-action-validate",x="private-next-rsc-server-reference",C="private-next-rsc-action-encryption",I="private-next-rsc-action-client-wrapper",L="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",M="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",j="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",D="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",k="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",z="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",U="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",W="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",H="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",F="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",X='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',V="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Y=["app","pages","components","lib","src"],G={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},B={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},K={...B,GROUP:{serverOnly:[B.reactServerComponents,B.actionBrowser,B.appMetadataRoute,B.appRouteHandler,B.instrument],clientOnly:[B.serverSideRendering,B.appPagesBrowser],nonClientServerTarget:[B.middleware,B.api],app:[B.reactServerComponents,B.actionBrowser,B.appMetadataRoute,B.appRouteHandler,B.serverSideRendering,B.appPagesBrowser,B.shared,B.instrument]}},q={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}
1,42:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});let i=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(e){return i.test(e)?e.replace(n,"\\$&"):e}},7497:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return l},urlObjectKeys:function(){return s}});let n=i(3099)._(i(8637)),r=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:i}=e,o=e.protocol||"",s=e.pathname||"",l=e.hash||"",a=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:i&&(u=t+(~i.indexOf(":")?"["+i+"]":i),e.port&&(u+=":"+e.port)),a&&"object"==typeof a&&(a=String(n.urlQueryToSearchParams(a)));let c=e.search||a&&"?"+a||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return o(e)}},6279:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let n=i(4777),r=i(8104)},7205:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let n=i(4199),r=i(9964);function o(e,t,i){let o="",s=(0,r.getRouteRegex)(e),l=s.groups,a=(t!==e?(0,n.getRouteMatcher)(s)(t):"")||i;o=e;let u=Object.keys(l);return u.every(e=>{let t=a[e]||"",{repeat:i,optional:n}=l[e],r="["+(i?"...":"")+e+"]";return n&&(r=(t?"":"/")+"["+r+"]"),i&&!Array.isArray(t)&&(t=[t]),(n||e in a)&&(o=o.replace(r,i?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},8104:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=i(1182),r=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),r.test(e)}},3552:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=i(3987),r=i(1283);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,r.hasBasePath)(i.pathname)}catch(e){return!1}}},7053:function(e,t){function i(e,t){let i={};return Object.keys(e).forEach(n=>{t.includes(n)||(i[n]=e[n])}),i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return i}})},8637:function(e,t){function i(e){let t={};return e.forEach((e,i)=>{void 0===t[i]?t[i]=e:Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function r(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[i,r]=e;Array.isArray(r)?r.forEach(e=>t.append(i,n(e))):t.set(i,n(r))}),t}function o(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,i)=>e.append(i,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return r}})},4199:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let n=i(3987);function r(e){let{re:t,groups:i}=e;return e=>{let r=t.exec(e);if(!r)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},s={};
1return Object.keys(i).forEach(e=>{let t=i[e],n=r[t.pos];void 0!==n&&(s[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),s}}},9964:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u},parseParameter:function(){return l}});let n=i(9259),r=i(1182),o=i(42),s=i(6674);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let i=e.startsWith("...");return i&&(e=e.slice(3)),{key:e,repeat:i,optional:t}}function a(e){let t=(0,s.removeTrailingSlash)(e).slice(1).split("/"),i={},n=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),s=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&s){let{key:e,optional:r,repeat:a}=l(s[1]);return i[e]={pos:n++,repeat:a,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!s)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=l(s[1]);return i[e]={pos:n++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:i}}function u(e){let{parameterizedRoute:t,groups:i}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:i}}function c(e){let{interceptionMarker:t,getSafeRouteKey:i,segment:n,routeKeys:r,keyPrefix:s}=e,{key:a,optional:u,repeat:c}=l(n),h=a.replace(/\W/g,"");s&&(h=""+s+h);let d=!1;(0===h.length||h.length>30)&&(d=!0),isNaN(parseInt(h.slice(0,1)))||(d=!0),d&&(h=i()),s?r[h]=""+s+a:r[h]=a;let p=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+h+">.+?))?":"/"+p+"(?<"+h+">.+?)":"/"+p+"(?<"+h+">[^/]+?)"}function h(e,t){let i;let l=(0,s.removeTrailingSlash)(e).slice(1).split("/"),a=(i=0,()=>{let e="",t=++i;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:l.map(e=>{let i=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),s=e.match(/\[((?:\[.*\])|.+)\]/);if(i&&s){let[i]=e.split(s[0]);return c({getSafeRouteKey:a,interceptionMarker:i,segment:s[1],routeKeys:u,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return s?c({getSafeRouteKey:a,segment:s[1],routeKeys:u,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function d(e,t){let i=h(e,t);return{...u(e),namedRegex:"^"+i.namedParameterizedRoute+"(?:/)?$",routeKeys:i.routeKeys}}function p(e,t){let{parameterizedRoute:i}=a(e),{catchAll:n=!0}=t;if("/"===i)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:r}=h(e,!1);return{namedRegex:"^"+r+(n?"(?:(/.*)?)":"")+"$"}}},4777:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let i=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&i.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');i.unshift(t)}return null!==this.restSlugName&&i.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&i.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let r=e[0];if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1),s=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),s=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+i+"').");if(i.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+i+"').");function o(e,i){if(null!==e&&e!==i)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+i+"').");
1t.forEach(e=>{if(e===i)throw Error('You cannot have the same slug name "'+i+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===r.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+i+'" differ only by non-word symbols within a single dynamic path')}),t.push(i)}if(n){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,i),this.optionalRestSlugName=i,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,i),this.restSlugName=i,r="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,i),this.slugName=i,r="[]"}}this.children.has(r)||this.children.set(r,new i),this.children.get(r)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}},3987:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return i},execOnce:function(){return n},getDisplayName:function(){return a},getLocationOrigin:function(){return s},getURL:function(){return l},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return _}});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,i=!1;return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return i||(i=!0,t=e(...r)),t}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>r.test(e);function s(){let{protocol:e,hostname:t,port:i}=window.location;
1return e+"//"+t+(i?":"+i:"")}function l(){let{href:e}=window.location,t=s();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function h(e,t){let i=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(i&&u(i))return n;if(!n)throw Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},8614:function(e,t,i){i.d(t,{M:function(){return v}});var n=i(7437),r=i(2265),o=i(8881),s=i(3576),l=i(4252),a=i(5750);class u extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:i}=e,o=(0,r.useId)(),s=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,r.useContext)(a._);return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:r}=l.current;if(i||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(r,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:s,sizeRef:l,children:r.cloneElement(t,{ref:s})})}let h=e=>{let{children:t,initial:i,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:p}=e,f=(0,s.h)(d),m=(0,r.useId)(),g=(0,r.useCallback)(e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;a&&a()},[f,a]),v=(0,r.useMemo)(()=>({id:m,initial:i,isPresent:o,custom:u,onExitComplete:g,register:e=>(f.set(e,!1),()=>f.delete(e))}),h?[Math.random(),g]:[o,g]);return(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[o]),r.useEffect(()=>{o||f.size||!a||a()},[o]),"popLayout"===p&&(t=(0,n.jsx)(c,{isPresent:o,children:t})),(0,n.jsx)(l.O.Provider,{value:v,children:t})};function d(){return new Map}var p=i(9637);let f=e=>e.key||"";function m(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}var g=i(1534);let v=e=>{let{children:t,custom:i,initial:l=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1}=e,[v,S]=(0,p.oO)(d),_=(0,r.useMemo)(()=>m(t),[t]),E=d&&!v?[]:_.map(f),y=(0,r.useRef)(!0),R=(0,r.useRef)(_),w=(0,s.h)(()=>new Map),[b,T]=(0,r.useState)(_),[P,N]=(0,r.useState)(_);(0,g.L)(()=>{y.current=!1,R.current=_;for(let e=0;e<P.length;e++){let t=f(P[e]);E.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[P,E.length,E.join("-")]);let O=[];if(_!==b){let e=[..._];for(let t=0;t<P.length;t++){let i=P[t],n=f(i);E.includes(n)||(e.splice(t,0,i),O.push(i))}"wait"===c&&O.length&&(e=O),N(m(e)),T(_);return}let{forceRender:A}=(0,r.useContext)(o.p);return(0,n.jsx)(n.Fragment,{children:P.map(e=>{let t=f(e),r=(!d||!!v)&&(_===P||E.includes(t));return(0,n.jsx)(h,{isPresent:r,initial:(!y.current||!!l)&&void 0,custom:r?void 0:i,presenceAffectsLayout:u,mode:c,onExitComplete:r?void 0:()=>
1{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==A||A(),N(R.current),d&&(null==S||S()),a&&a())},children:e},t)})})}},9096:function(e,t,i){function n(e,t,i){return Math.max(e,Math.min(t,i))}i.d(t,{Z:function(){return h}});var r=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let i=n(0,this.currentTime/this.duration,1),r=(t=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*r}else if(this.lerp){var i,r,o;this.value=(i=this.value,r=this.to,(1-(o=1-Math.exp(-(60*this.lerp)*e)))*i+o*r),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)}else this.value=this.to,t=!0;t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:i,duration:n,easing:r,onStart:o,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=i,this.duration=n,this.easing=r,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=s}},o=class{constructor(e,t,{autoResize:i=!0,debounce:n=250}={}){if(this.wrapper=e,this.content=t,i){var r;let e;this.debouncedResize=(r=this.resize,function(...t){let i=this;clearTimeout(e),e=setTimeout(()=>{e=void 0,r.apply(i,t)},n)}),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)}this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},s=class{events={};emit(e,...t){let i=this.events[e]||[];for(let e=0,n=i.length;e<n;e++)i[e]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},l=100/6,a={passive:!1},u=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,a),this.element.addEventListener("touchstart",this.onTouchStart,a),this.element.addEventListener("touchmove",this.onTouchMove,a),this.element.addEventListener("touchend",this.onTouchEnd,a)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new s;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,a),this.element.removeEventListener("touchstart",this.onTouchStart,a),this.element.removeEventListener("touchmove",this.onTouchMove,a),this.element.removeEventListener("touchend",this.onTouchEnd,a)}onTouchStart=e=>{let{clientX:t,clientY:i}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:i}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=i,this.lastDelta={x:n,y:r},this.emitter.emit("scroll",{deltaX:n,deltaY:r,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:i,deltaMode:n}=e,r=1===n?l:2===n?this.window.width:1,o=1===n?l:2===n?this.window.height:1;t*=r,i*=o,t*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:i,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},c=e=>Math.min(1,1.001-Math.pow(2,-10*e)),h=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new s;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:i=e,smoothWheel:n=!0,syncTouch:r=!1,syncTouchLerp:s=.075,touchInertiaExponent:l=1.7,duration:a,easing:h,lerp:d=.1,infinite:p=!1,orientation:f="vertical",gestureOrientation:m="horizontal"===f?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:v=1,autoResize:S=!0,prevent:_,virtualScroll:E,overscroll:y=!0,autoRaf:R=!1,anchors:w=!1,autoToggle:b=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:P=!1,naiveDimensions:N=P,stopInertiaOnNavigate:O=!1}={}){window.lenisVersion="1.3.17",e&&e!==document.documentElement||(e=window),"number"==typeof a&&"function"!=typeof h?h=c:"function"==typeof h&&"number"!=typeof a&&(a=1),this.options={wrapper:e,content:t,eventsTarget:i,smoothWheel:n,syncTouch:r,syncTouchLerp:s,touchInertiaExponent:l,duration:a,easing:h,lerp:d,infinite:p,gestureOrientation:m,orientation:f,touchMultiplier:g,wheelMultiplier:v,autoResize:S,prevent:_,virtualScroll:E,overscroll:y,autoRaf:R,anchors:w,autoToggle:b,allowNestedScroll:T,naiveDimensions:N,stopInertiaOnNavigate:O},this.dimensions=new o(e,t,{autoResize:S}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
1w u(i,{touchMultiplier:g,wheelMultiplier:v}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName.includes("overflow")&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.getAttribute("href"));if(this.options.anchors){let e=t.find(e=>e.getAttribute("href")?.includes("#"));if(e){let t=e.getAttribute("href");if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${t.split("#")[1]}`;this.scrollTo(i,e)}}}this.options.stopInertiaOnNavigate&&t.find(e=>e.host===window.location.host)&&this.reset()};onPointerDown=e=>{1===e.button&&this.reset()};onVirtualScroll=e=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:i,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:i,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let r=n.type.includes("touch"),o=n.type.includes("wheel");this.isTouching="touchstart"===n.type||"touchmove"===n.type;let s=0===t&&0===i;if(this.options.syncTouch&&r&&"touchstart"===n.type&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===t;if(s||l)return;let a=n.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let u=this.options.prevent;if(a.find(e=>e instanceof HTMLElement&&("function"==typeof u&&u?.(e)||e.hasAttribute?.("data-lenis-prevent")||r&&e.hasAttribute?.("data-lenis-prevent-touch")||o&&e.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(e,{deltaX:t,deltaY:i}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(t)?i:t:"horizontal"===this.options.gestureOrientation&&(c=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let h=r&&this.options.syncTouch,d=r&&"touchend"===n.type;d&&(c=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+c,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
1()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:i=!1,lock:r=!1,programmatic:o=!0,lerp:s=o?this.options.lerp:void 0,duration:l=o?this.options.duration:void 0,easing:a=o?this.options.easing:void 0,onStart:u,onComplete:h,force:d=!1,userData:p}={}){if(!this.isStopped&&!this.isLocked||d){if("string"==typeof e&&["top","left","start","#"].includes(e))e=0;else if("string"==typeof e&&["bottom","right","end"].includes(e))e=this.limit;else{let i;if("string"==typeof e?(i=document.querySelector(e))||("#top"===e?e=0:console.warn("Lenis: Target not found",e)):e instanceof HTMLElement&&e?.nodeType&&(i=e),i){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}let n=i.getBoundingClientRect();e=(this.isHorizontal?n.left:n.top)+this.animatedScroll}}if("number"==typeof e){if(e+=t,e=Math.round(e),this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let t=e-this.animatedScroll;t>this.limit/2?e-=this.limit:t<-this.limit/2&&(e+=this.limit)}}else e=n(0,e,this.limit);if(e===this.targetScroll){u?.(this),h?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=e),"number"==typeof l&&"function"!=typeof a?a=c:"function"==typeof a&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,e,{duration:l,easing:a,lerp:s,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",u?.(this)},onUpdate:(e,t)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),o&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:i}){let n,r,o,s,l,a,u,c,h,d,p,f,m,g;let v=Date.now(),S=e._lenis??={},_=this.options.gestureOrientation;if(v-(S.time??0)>2e3){S.time=Date.now();let t=window.getComputedStyle(e);S.computedStyle=t;let i=t.overflowX,h=t.overflowY;if(n=["auto","overlay","scroll"].includes(i),r=["auto","overlay","scroll"].includes(h),S.hasOverflowX=n,S.hasOverflowY=r,!n&&!r||"vertical"===_&&!r||"horizontal"===_&&!n)return!1;l=e.scrollWidth,a=e.scrollHeight,u=e.clientWidth,c=e.clientHeight,o=l>u,s=a>c,S.isScrollableX=o,S.isScrollableY=s,S.scrollWidth=l,S.scrollHeight=a,S.clientWidth=u,S.clientHeight=c}else o=S.isScrollableX,s=S.isScrollableY,n=S.hasOverflowX,r=S.hasOverflowY,l=S.scrollWidth,a=S.scrollHeight,u=S.clientWidth,c=S.clientHeight;if(!n&&!r||!o&&!s||"vertical"===_&&(!r||!s)||"horizontal"===_&&(!n||!o)||("horizontal"===_?h="x":"vertical"===_?h="y":(0!==t&&n&&o&&(h="x"),0!==i&&r&&s&&(h="y")),!h))return!1;if("x"===h)d=e.scrollLeft,p=l-u,f=t,m=n,g=o;else{if("y"!==h)return!1;d=e.scrollTop,p=a-c,f=i,m=r,g=s}return(f>0?d<p:d>0)&&m&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){var e;return this.options.infinite?(this.animatedScroll%(e=this.limit)+e)%e:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),"smooth"===this.isScrolling&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.