"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87636],{21338:(e,t,r)=>{r.d(t,{d:()=>s});var n=r(43903),l=r(14232),i=r(39751),o=r(91200);function s(e){let t=(0,o.M)(()=>(0,n.OQ)(e)),{isStatic:r}=(0,l.useContext)(i.Q);if(r){let[,r]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",r),[])}return t}},89809:(e,t,r)=>{r.d(t,{L:()=>S});var n=r(43903),l=r(37605),i=r(14232),o=r(90620),s=r(90050);function a(e,t){let r,n=()=>{let{currentTime:n}=t,l=(null===n?0:n.value)/100;r!==l&&e(l),r=l};return s.Gt.preUpdate(n,!0),()=>(0,s.WG)(n)}var f=r(89739),c=r(79280),u=r(2589),g=r(70630);let d=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),h={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function p(e,t,r,n){let l=r[t],{length:i,position:o}=h[t],s=l.current,a=r.time;l.current=e[`scroll${o}`],l.scrollLength=e[`scroll${i}`]-e[`client${i}`],l.offset.length=0,l.offset[0]=0,l.offset[1]=l.scrollLength,l.progress=(0,u.q)(0,l.scrollLength,l.current);let f=n-a;l.velocity=f>50?0:(0,g.f)(l.current-s,f)}var y=r(61574),m=r(14046),v=r(12679),w=r(7990);let W={start:0,center:.5,end:1};function x(e,t,r=0){let n=0;if(e in W&&(e=W[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),r+n}let E=[0,0],L=[[0,0],[1,1]],k={x:0,y:0},G=new WeakMap,O=new WeakMap,b=new WeakMap,A=new WeakMap,M=new WeakMap,H=e=>e===document.scrollingElement?window:e;function B(e,{container:t=document.scrollingElement,trackContentSize:r=!1,...n}={}){if(!t)return o.l;let l=b.get(t);l||(l=new Set,b.set(t,l));let i=function(e,t,r,n={}){return{measure:t=>{!function(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}(e,n.target,r),p(e,"x",r,t),p(e,"y",r,t),r.time=t,(n.offset||n.target)&&function(e,t,r){let{offset:n=L}=r,{target:l=e,axis:i="y"}=r,o="y"===i?"height":"width",s=l!==e?function(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if((0,w.s)(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();r.x+=e,r.y+=t;let l=null,i=n.parentNode;for(;!l;)"svg"===i.tagName&&(l=i),i=n.parentNode;n=l}else break;return r}(l,e):k,a=l===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in l&&"svg"!==l.tagName?l.getBBox():{width:l.clientWidth,height:l.clientHeight},f={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,u=n.length;for(let e=0;et(r)}}(t,e,{time:0,x:d(),y:d()},n);if(l.add(i),!G.has(t)){let e=()=>{for(let e of l)e.measure(s.uv.timestamp);s.Gt.preUpdate(r)},r=()=>{for(let e of l)e.notify()},n=()=>s.Gt.read(e);G.set(t,n);let i=H(t);window.addEventListener("resize",n,{passive:!0}),t!==document.documentElement&&O.set(t,(0,c.X)(t,n)),i.addEventListener("scroll",n,{passive:!0}),n()}if(r&&!M.has(t)){let e=G.get(t),r={width:t.scrollWidth,height:t.scrollHeight};A.set(t,r);let n=s.Gt.read(()=>{let n=t.scrollWidth,l=t.scrollHeight;(r.width!==n||r.height!==l)&&(e(),r.width=n,r.height=l)},!0);M.set(t,n)}let a=G.get(t);return s.Gt.read(a,!1,!0),()=>{(0,s.WG)(a);let e=b.get(t);if(!e||(e.delete(i),e.size))return;let r=G.get(t);G.delete(t),r&&(H(t).removeEventListener("scroll",r),O.get(t)?.(),window.removeEventListener("resize",r));let n=M.get(t);n&&((0,s.WG)(n),M.delete(t)),A.delete(t)}}let N=new Map;function P({source:e,container:t,...r}){var n;let l,i,{axis:o}=r;e&&(t=e);let s=N.get(t)??new Map;N.set(t,s);let a=r.target??"self",c=s.get(a)??{},u=o+(r.offset??[]).join(",");return c[u]||(c[u]=!r.target&&(0,f.J)()?new ScrollTimeline({source:t,axis:o}):(n={container:t,...r},l={value:0},i=B(e=>{l.value=100*e[n.axis].progress},n),{currentTime:l,cancel:i})),c[u]}function T(e,{axis:t="y",container:r=document.scrollingElement,...n}={}){var l,i;let s;if(!r)return o.l;let f={axis:t,container:r,...n};return"function"==typeof e?(l=e,i=f,2===l.length?B(e=>{l(e[i.axis].progress,e)},i):a(l,P(i))):(s=P(f),e.attachTimeline({timeline:f.target?void 0:s,observe:e=>(e.pause(),a(t=>{e.time=e.iterationDuration*t},s))}))}var C=r(91200),Q=r(50181);let X=()=>({scrollX:(0,n.OQ)(0),scrollY:(0,n.OQ)(0),scrollXProgress:(0,n.OQ)(0),scrollYProgress:(0,n.OQ)(0)}),R=e=>!!e&&!e.current;function S({container:e,target:t,...r}={}){let n=(0,C.M)(X);n.scrollXProgress.accelerate={factory:n=>T(n,{...r,axis:"x",container:e?.current||void 0,target:t?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1},n.scrollYProgress.accelerate={factory:n=>T(n,{...r,axis:"y",container:e?.current||void 0,target:t?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1};let o=(0,i.useRef)(null),s=(0,i.useRef)(!1),a=(0,i.useCallback)(()=>(o.current=T((e,{x:t,y:r})=>{n.scrollX.set(t.current),n.scrollXProgress.set(t.progress),n.scrollY.set(r.current),n.scrollYProgress.set(r.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(r.offset)]);return(0,Q.E)(()=>{if(s.current=!1,!(R(e)||R(t)))return a();s.current=!0},[a]),(0,i.useEffect)(()=>s.current?((0,l.V)(!R(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,l.V)(!R(t),"Target ref is defined but not hydrated","use-scroll-ref"),a()):void 0,[a]),n}},96823:(e,t,r)=>{r.d(t,{G:()=>function e(t,r,i,o){if("function"==typeof t){let e;return f.bt.current=[],t(),e=a(f.bt.current,t),f.bt.current=void 0,e}if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof r){var s=t,u=r,g=i,d=o;let n=(0,l.M)(()=>Object.keys(g)),a=(0,l.M)(()=>({}));for(let t of n)a[t]=e(s,u,g[t],d);return a}let h="function"==typeof r?r:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,l=e[0+r],i=e[1+r],o=e[2+r],s=e[3+r],a=(0,n.G)(i,o,s);return t?a(l):a}(r,i,o),p=Array.isArray(t)?c(t,h):c([t],([e])=>h(e)),y=Array.isArray(t)?void 0:t.accelerate;return y&&!y.isTransformed&&"function"!=typeof r&&Array.isArray(i)&&o?.clamp!==!1&&(p.accelerate={...y,times:r,keyframes:i,isTransformed:!0,...o?.ease?{ease:o.ease}:{}}),p}});var n=r(61574),l=r(91200),i=r(90050),o=r(50181),s=r(21338);function a(e,t){let r=(0,s.d)(t()),n=()=>r.set(t());return n(),(0,o.E)(()=>{let t=()=>i.Gt.preRender(n,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,i.WG)(n)}}),r}var f=r(43903);function c(e,t){let r=(0,l.M)(()=>[]);return a(e,()=>{r.length=0;let n=e.length;for(let t=0;t