1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5597],{7648:function(t,e,i){"use strict";i.d(e,{default:function(){return n.a}});var s=i(2972),n=i.n(s)},9376:function(t,e,i){"use strict";var s=i(5475);i.o(s,"useParams")&&i.d(e,{useParams:function(){return s.useParams}}),i.o(s,"usePathname")&&i.d(e,{usePathname:function(){return s.usePathname}}),i.o(s,"useRouter")&&i.d(e,{useRouter:function(){return s.useRouter}}),i.o(s,"useSearchParams")&&i.d(e,{useSearchParams:function(){return s.useSearchParams}})},8667:function(t,e,i){"use strict";i.d(e,{default:function(){return n.a}});var s=i(8003),n=i.n(s)},8221:function(t,e){"use strict";let i;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DOMAttributeNames:function(){return s},default:function(){return o},isEqualNode:function(){return r}});let s={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(t){let{type:e,props:i}=t,n=document.createElement(e);for(let t in i){if(!i.hasOwnProperty(t)||"children"===t||"dangerouslySetInnerHTML"===t||void 0===i[t])continue;let r=s[t]||t.toLowerCase();"script"===e&&("async"===r||"defer"===r||"noModule"===r)?n[r]=!!i[t]:n.setAttribute(r,i[t])}let{children:r,dangerouslySetInnerHTML:o}=i;return o?n.innerHTML=o.__html||"":r&&(n.textContent="string"==typeof r?r:Array.isArray(r)?r.join(""):""),n}function r(t,e){if(t instanceof HTMLElement&&e instanceof HTMLElement){let i=e.getAttribute("nonce");if(i&&!t.getAttribute("nonce")){let s=e.cloneNode(!0);return s.setAttribute("nonce",""),s.nonce=i,i===t.nonce&&t.isEqualNode(s)}}return t.isEqualNode(e)}function o(){return{mountedInstances:new Set,updateHead:t=>{let e={};t.forEach(t=>{if("link"===t.type&&t.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+t.props["data-href"]+'"]'))return;t.props.href=t.props["data-href"],t.props["data-href"]=void 0}let i=e[t.type]||[];i.push(t),e[t.type]=i});let s=e.title?e.title[0]:null,n="";if(s){let{children:t}=s.props;n="string"==typeof t?t:Array.isArray(t)?t.join(""):""}n!==document.title&&(document.title=n),["meta","base","link","style","script"].forEach(t=>{i(t,e[t]||[])})}}}i=(t,e)=>{let i=document.getElementsByTagName("head")[0],s=i.querySelector("meta[name=next-head-count]"),o=Number(s.content),l=[];for(let e=0,i=s.previousElementSibling;e<o;e++,i=(null==i?void 0:i.previousElementSibling)||null){var a;(null==i?void 0:null==(a=i.tagName)?void 0:a.toLowerCase())===t&&l.push(i)}let h=e.map(n).filter(t=>{for(let e=0,i=l.length;e<i;e++)if(r(l[e],t))return l.splice(e,1),!1;return!0});l.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),h.forEach(t=>i.insertBefore(t,s)),s.content=(o-l.length+h.length).toString()},("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8003:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return S},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return g}});let s=i(7043),n=i(3099),r=i(7437),o=s._(i(4887)),l=n._(i(2265)),a=i(8701),h=i(8221),c=i(3515),u=new Map,d=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=t=>{if(o.default.preinit){t.forEach(t=>{o.default.preinit(t,{as:"style"})});return}if("undefined"!=typeof window){let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}},m=t=>{let{src:e,id:i,onLoad:s=()=>{},onReady:n=null,dangerouslySetInnerHTML:r,children:o="",strategy:l="afterInteractive",onError:a,stylesheets:c}=t,m=i||e;if(m&&d.has(m))return;if(u.has(e)){d.add(m),u.get(e).then(s,a);return}let v=()=>{n&&n(),d.add(m)},g=document.createElement("script"),w=new Promise((t,e)=>{g.addEventListener("load",function(e){t(),s&&s.call(this,e),v()}),g.addEventListener("error",function(t){e(t)})}).catch(function(t){a&&a(t)});for(let[i,s]of(r?(g.innerHTML=r.__html||"",v()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",v()):e&&(g.src=e,u.
1set(e,w)),Object.entries(t))){if(void 0===s||p.includes(i))continue;let t=h.DOMAttributeNames[i]||i.toLowerCase();g.setAttribute(t,s)}"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),c&&f(c),document.body.appendChild(g)};function v(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(t))}):m(t)}function g(t){t.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");d.add(e)})}function w(t){let{id:e,src:i="",onLoad:s=()=>{},onReady:n=null,strategy:h="afterInteractive",onError:u,stylesheets:p,...f}=t,{updateScripts:v,scripts:g,getIsSsr:w,appDir:S,nonce:y}=(0,l.useContext)(a.HeadManagerContext),E=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let t=e||i;E.current||(n&&t&&d.has(t)&&n(),E.current=!0)},[n,e,i]);let _=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{!_.current&&("afterInteractive"===h?m(t):"lazyOnload"===h&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(t)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(t))})),_.current=!0)},[t,h]),("beforeInteractive"===h||"worker"===h)&&(v?(g[h]=(g[h]||[]).concat([{id:e,src:i,onLoad:s,onReady:n,onError:u,...f}]),v(g)):w&&w()?d.add(e||i):w&&!w()&&m(t)),S){if(p&&p.forEach(t=>{o.default.preinit(t,{as:"style"})}),"beforeInteractive"===h)return i?(o.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin}),(0,r.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...f,id:e}])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,r.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f,id:e}])+")"}}));"afterInteractive"===h&&i&&o.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(w,"__nextScript",{value:!0});let S=w;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1174:function(t){t.exports={style:{fontFamily:"'__aeonik_e2d852', '__aeonik_Fallback_e2d852'"},className:"__className_e2d852",variable:"__variable_e2d852"}},2359:function(t){t.exports={style:{fontFamily:"'__montreal_161473', '__montreal_Fallback_161473'"},className:"__className_161473",variable:"__variable_161473"}},8614:function(t,e,i){"use strict";i.d(e,{M:function(){return w}});var s=i(7437),n=i(2265),r=i(8881),o=i(3576),l=i(1534),a=i(4252),h=i(3537),c=i(5750);class u extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,h.R)(t)&&t.offsetWidth||0,s=this.props.sizeRef.current;s.height=e.offsetHeight||0,s.width=e.offsetWidth||0,s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(t){let{children:e,isPresent:i,anchorX:r,root:o}=t,l=(0,n.useId)(),a=(0,n.useRef)(null),h=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,n.useContext)(c._);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:s,left:n,right:c}=h.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=l;let u=document.createElement("style");
1d&&(u.nonce=d);let p=null!=o?o:document.head;return p.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(l,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===r?"left: ".concat(n):"right: ".concat(c),"px !important;\n top: ").concat(s,"px !important;\n }\n ")),()=>{p.contains(u)&&p.removeChild(u)}},[i]),(0,s.jsx)(u,{isPresent:i,childRef:a,sizeRef:h,children:n.cloneElement(e,{ref:a})})}let p=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:l,custom:h,presenceAffectsLayout:c,mode:u,anchorX:p,root:m}=t,v=(0,o.h)(f),g=(0,n.useId)(),w=!0,S=(0,n.useMemo)(()=>(w=!1,{id:g,initial:i,isPresent:r,custom:h,onExitComplete:t=>{for(let e of(v.set(t,!0),v.values()))if(!e)return;l&&l()},register:t=>(v.set(t,!1),()=>v.delete(t))}),[r,v,l]);return c&&w&&(S={...S}),(0,n.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[r]),n.useEffect(()=>{r||v.size||!l||l()},[r]),"popLayout"===u&&(e=(0,s.jsx)(d,{isPresent:r,anchorX:p,root:m,children:e})),(0,s.jsx)(a.O.Provider,{value:S,children:e})};function f(){return new Map}var m=i(9637);let v=t=>t.key||"";function g(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let w=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:h,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:f="left",root:w}=t,[S,y]=(0,m.oO)(d),E=(0,n.useMemo)(()=>g(e),[e]),_=d&&!S?[]:E.map(v),b=(0,n.useRef)(!0),L=(0,n.useRef)(E),T=(0,o.h)(()=>new Map),[x,R]=(0,n.useState)(E),[N,M]=(0,n.useState)(E);(0,l.L)(()=>{b.current=!1,L.current=E;for(let t=0;t<N.length;t++){let e=v(N[t]);_.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}},[N,_.length,_.join("-")]);let z=[];if(E!==x){let t=[...E];for(let e=0;e<N.length;e++){let i=N[e],s=v(i);_.includes(s)||(t.splice(e,0,i),z.push(i))}return"wait"===u&&z.length&&(t=z),M(g(t)),R(E),null}let{forceRender:C}=(0,n.useContext)(r.p);return(0,s.jsx)(s.Fragment,{children:N.map(t=>{let e=v(t),n=(!d||!!S)&&(E===N||_.includes(e));return(0,s.jsx)(p,{isPresent:n,initial:(!b.current||!!a)&&void 0,custom:i,presenceAffectsLayout:c,mode:u,root:w,onExitComplete:n?void 0:()=>{if(!T.has(e))return;T.set(e,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),M(L.current),d&&(null==y||y()),h&&h())},anchorX:f,children:t},e)})})}},6892:function(t,e,i){"use strict";function s(t,e,i){return Math.max(t,Math.min(e,i))}i.d(e,{ReactLenis:function(){return v}});var n=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=s(0,this.currentTime/this.duration,1),n=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*n}else if(this.lerp){var i,n,r;this.value=(i=this.value,n=this.to,(1-(r=1-Math.exp(-(60*this.lerp)*t)))*i+r*n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:n,onStart:r,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=n,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=o}},r=class{constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){if(this.wrapper=t,this.content=e,i){var n;let t;this.debouncedResize=(n=this.resize,function(...e){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,e)},s)}),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}}},o=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t<s;t++)i[t]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}},l=100/6,a={passive:!1},h=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,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 o;on(t,e){return this.emitter.on(t,e)}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=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,n=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:n},this.emitter.emit("scroll",{deltaX:s,deltaY:n,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t,n=1===s?l:2===s?this.window.width:1,r=1===s?l:2===s?this.window.height:1;e*=n,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},c=t=>Math.min(1,1.001-Math.pow(2,-10*t)),u=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 n;emitter=new o;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:s=!0,syncTouch:n=!1,syncTouchLerp:o=.075,touchInertiaMultiplier:l=35,duration:a,easing:u,lerp:d=.1,infinite:p=!1,orientation:f="vertical",gestureOrientation:m="vertical",touchMultiplier:v=1,wheelMultiplier:g=1,autoResize:w=!0,prevent:S,virtualScroll:y,overscroll:E=!0,autoRaf:_=!1,anchors:b=!1,autoToggle:L=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:x=!1}={}){window.lenisVersion="1.3.4",t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof u?u=c:"function"==typeof u&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:s,syncTouch:n,syncTouchLerp:o,touchInertiaMultiplier:l,duration:a,easing:u,lerp:d,infinite:p,gestureOrientation:m,orientation:f,touchMultiplier:v,wheelMultiplier:g,autoResize:w,prevent:S,virtualScroll:y,overscroll:E,autoRaf:_,anchors:b,autoToggle:L,allowNestedScroll:T,__experimental__naiveDimensions:x},this.dimensions=new r(t,e,{autoResize:w}),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.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
1w h(i,{touchMultiplier:v,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&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.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=t=>{if(t.propertyName.includes("overflow")){let t=this.isHorizontal?"overflow-x":"overflow-y";["hidden","clip"].includes(getComputedStyle(this.rootElement)[t])?this.stop():this.start()}};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().find(t=>t instanceof HTMLAnchorElement&&(t.getAttribute("href")?.startsWith("#")||t.getAttribute("href")?.startsWith("/#")||t.getAttribute("href")?.startsWith("./#")));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]}`;["#","/#","./#","#top","/#top","./#top"].includes(t)&&(i=0),this.scrollTo(i,e)}}};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let n=s.type.includes("touch"),r=s.type.includes("wheel");this.isTouching="touchstart"===s.type||"touchmove"===s.type;let o=0===e&&0===i;if(this.options.syncTouch&&n&&"touchstart"===s.type&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(o||l)return;let a=s.composedPath();a=a.slice(0,a.indexOf(this.rootElement));let h=this.options.prevent;if(a.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||n&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){s.preventDefault();return}if(!(this.options.syncTouch&&n||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.preventDefault();let u=n&&this.options.syncTouch,d=n&&"touchend"===s.type&&Math.abs(c)>5;d&&(c=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+c,{programmatic:!1,...u?{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()}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 t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit
1(),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(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:n=!1,duration:r=this.options.duration,easing:o=this.options.easing,lerp:l=this.options.lerp,onStart:a,onComplete:h,force:u=!1,programmatic:d=!0,userData:p}={}){if(!this.isStopped&&!this.isLocked||u){if("string"==typeof t&&["top","left","start"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?i=document.querySelector(t):t instanceof HTMLElement&&t?.nodeType&&(i=t),i){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let s=i.getBoundingClientRect();t=(this.isHorizontal?s.left:s.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite){if(d){this.targetScroll=this.animatedScroll=this.scroll;let e=t-this.animatedScroll;e>this.limit/2?t-=this.limit:e<-this.limit/2&&(t+=this.limit)}}else t=s(0,t,this.limit);if(t===this.targetScroll){a?.(this),h?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=t),"number"==typeof r&&"function"!=typeof o?o=c:"function"==typeof o&&"number"!=typeof r&&(r=1),this.animate.fromTo(this.animatedScroll,t,{duration:r,easing:o,lerp:l,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),d&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:i}){let s,n,r,o,l,a,h,c,u,d,p,f,m,v;let g=Date.now(),w=t._lenis??={},S=this.options.gestureOrientation;if(g-(w.time??0)>2e3){w.time=Date.now();let e=window.getComputedStyle(t);w.computedStyle=e;let i=e.overflowX,u=e.overflowY;if(s=["auto","overlay","scroll"].includes(i),n=["auto","overlay","scroll"].includes(u),w.hasOverflowX=s,w.hasOverflowY=n,!s&&!n||"vertical"===S&&!n||"horizontal"===S&&!s)return!1;l=t.scrollWidth,a=t.scrollHeight,h=t.clientWidth,c=t.clientHeight,r=l>h,o=a>c,w.isScrollableX=r,w.isScrollableY=o,w.scrollWidth=l,w.scrollHeight=a,w.clientWidth=h,w.clientHeight=c}else r=w.isScrollableX,o=w.isScrollableY,s=w.hasOverflowX,n=w.hasOverflowY,l=w.scrollWidth,a=w.scrollHeight,h=w.clientWidth,c=w.clientHeight;if(!s&&!n||!r&&!o||"vertical"===S&&(!n||!o)||"horizontal"===S&&(!s||!r)||("horizontal"===S?u="x":"vertical"===S?u="y":(0!==e&&s&&r&&(u="x"),0!==i&&n&&o&&(u="y")),!u))return!1;if("x"===u)d=t.scrollLeft,p=l-h,f=e,m=s,v=r;else{if("y"!==u)return!1;d=t.scrollTop,p=a-c,f=i,m=n,v=o}return(f>0?d<p:d>0)&&m&&v}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__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 t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},d=i(2265),p=i(7437),f=(0,d.createContext)(null),m=new class{set(t){for(let e of(this.state=t,this.listeners))e(this.state)}subscribe(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(e=>e!==t)}}get(){return this.state}constructor(t){this.listeners=[],this.state=t}}(null),v=(0,d.forwardRef)((t,e)=>{let{children:i,root:s=!1,options:n={},className:r,autoRaf:o=!0,style:l,props:a}=t,h=(0,d.useRef)(null),c=(0,d.useRef)(null),[v,g]=(0,d.useState)(void 0);(0,d.useImperativeHandle)(e,()=>({wrapper:h.current,content:c.current,lenis:v}),[v]),(0,d.useEffect)(()=>{var t;let e=new u({...n,...!s&&{wrapper:h.current,content:c.current},autoRaf:null!==(t=null==n?void 0:n.autoRaf)&&void 0!==t?t:o});return g(e),()=>{e.destroy(),g(void 0)}},[s,JSON.stringify(n)]);let w=(0,d.useRef)([]),S=(0,d.useCallback)((t,e)=>{w.current.push({callback:t,priority:e}),w.current.sort((t,e)=>t.priority-e.priority)},[]),y=(0,d.useCallback)(t=>{w.current=w.current.filter(e=>e.callback!==t)},[]);return(0,d.useEffect)(()=>
1{if(s&&v)return m.set({lenis:v,addCallback:S,removeCallback:y}),()=>m.set(null)},[s,v,S,y]),(0,d.useEffect)(()=>{if(!v)return;let t=t=>{for(let i=0;i<w.current.length;i++){var e;null===(e=w.current[i])||void 0===e||e.callback(t)}};return v.on("scroll",t),()=>{v.off("scroll",t)}},[v]),(0,p.jsx)(f.Provider,{value:{lenis:v,addCallback:S,removeCallback:y},children:s?i:(0,p.jsx)("div",{ref:h,className:r,style:l,...a,children:(0,p.jsx)("div",{ref:c,children:i})})})})},3977:function(t,e,i){"use strict";i.d(e,{ViewTransitions:function(){return c}});var s=i(7437);i(7648);var n=i(9376),r=i(2265);function o(){return window.location.hash}function l(){return""}function a(t){return window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)}let h=(0,r.createContext)(()=>()=>{});function c(t){let{children:e}=t,[i,c]=(0,r.useState)(null);return(0,r.useEffect)(()=>{i&&(i(),c(null))},[i]),!function(){let t=(0,n.usePathname)(),e=(0,r.useRef)(t),[i,s]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(!("startViewTransition"in document))return()=>{};let t=()=>{let t;let e=new Promise(e=>{t=e});s([new Promise(t=>{document.startViewTransition(()=>(t(),e))}),t])};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}},[]),i&&e.current!==t&&(0,r.use)(i[0]);let h=(0,r.useRef)(i);(0,r.useEffect)(()=>{h.current=i},[i]);let c=(0,r.useSyncExternalStore)(a,o,l);(0,r.useEffect)(()=>{e.current=t,h.current&&(h.current[1](),h.current=null)},[c,t])}(),(0,s.jsx)(h.Provider,{value:c,children:e})}}}]);
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.