"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9797],{23583:function(t,e,r){r.d(e,{Z:function(){return x}});var n=r(61155),o=r(17610),i=r(7653),s=r(10607),a=r(3838),l=r(67624),u=r(1878),c=r(46401),f=r(28051),d=r(14573),p=r(37501);function h(t){return(0,p.ZP)("MuiAppBar",t)}(0,d.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var g=r(27573);let v=["className","color","enableColorOnDark","position"],m=t=>{let{color:e,position:r,classes:n}=t,o={root:["root","color".concat((0,c.Z)(e)),"position".concat((0,c.Z)(r))]};return(0,a.Z)(o,h,n)},b=(t,e)=>t?"".concat(null==t?void 0:t.replace(")",""),", ").concat(e,")"):e,y=(0,l.ZP)(f.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e["position".concat((0,c.Z)(r.position))],e["color".concat((0,c.Z)(r.color))]]}})(t=>{let{theme:e,ownerState:r}=t,n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,o.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!e.vars&&(0,o.Z)({},"default"===r.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===e.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,o.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,o.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:b(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:b(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:b(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:b(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))});var x=i.forwardRef(function(t,e){let r=(0,u.i)({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:l=!1,position:c="fixed"}=r,f=(0,n.Z)(r,v),d=(0,o.Z)({},r,{color:a,position:c,enableColorOnDark:l}),p=m(d);return(0,g.jsx)(y,(0,o.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,s.Z)(p.root,i,"fixed"===c&&"mui-fixed"),ref:e},f))})},44097:function(t,e,r){r.d(e,{Z:function(){return m}});var n=r(61155),o=r(17610),i=r(7653),s=r(10607),a=r(3838),l=r(1878),u=r(67624),c=r(14573),f=r(37501);function d(t){return(0,f.ZP)("MuiToolbar",t)}(0,c.Z)("MuiToolbar",["root","gutters","regular","dense"]);var p=r(27573);let h=["className","component","disableGutters","variant"],g=t=>{let{classes:e,disableGutters:r,variant:n}=t;return(0,a.Z)({root:["root",!r&&"gutters",n]},d,e)},v=(0,u.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(t=>{let{theme:e,ownerState:r}=t;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===r.variant&&{minHeight:48})},t=>{let{theme:e,ownerState:r}=t;return"regular"===r.variant&&e.mixins.toolbar});var m=i.forwardRef(function(t,e){let r=(0,l.i)({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:u=!1,variant:c="regular"}=r,f=(0,n.Z)(r,h),d=(0,o.Z)({},r,{component:a,disableGutters:u,variant:c}),m=g(d);return(0,p.jsx)(v,(0,o.Z)({as:a,className:(0,s.Z)(m.root,i),ref:e,ownerState:d},f))})},26928:function(t,e,r){let n;r.d(e,{X:function(){return a}});var o=r(2321),i=r(32736);function s(){n=void 0}let a={now:()=>(void 0===n&&a.set(i.frameData.isProcessing||o.c.useManualTiming?i.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(s)}}},37665:function(t,e,r){r.d(e,{t:function(){return n}});let n=(0,r(52953).X)(()=>void 0!==window.ScrollTimeline)},3779:function(t,e,r){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}r.d(e,{cl:function(){return o},y4:function(){return n}})},40131:function(t,e,r){r.d(e,{K:function(){return o},k:function(){return i}});var n=r(38752);let o=n.Z,i=n.Z},12010:function(t,e,r){r.d(e,{s:function(){return u}});var n=r(40131),o=r(3983),i=r(50970),s=r(99075),a=r(38752),l=r(25309);function u(t,e,{clamp:r=!0,ease:u,mixer:c}={}){let f=t.length;if((0,n.k)(f===e.length,"Both input and output ranges must be the same length"),1===f)return()=>e[0];if(2===f&&t[0]===t[1])return()=>e[1];t[0]>t[f-1]&&(t=[...t].reverse(),e=[...e].reverse());let d=function(t,e,r){let n=[],o=r||l.C,s=t.length-1;for(let r=0;r<s;r++){let s=o(t[r],t[r+1]);if(e){let t=Array.isArray(e)?e[r]||a.Z:e;s=(0,i.z)(t,s)}n.push(s)}return n}(e,u,c),p=d.length,h=e=>{let r=0;if(p>1)for(;r<t.length-2&&!(e<t[r+1]);r++);let n=(0,s.Y)(t[r],t[r+1],e);return d[r](n)};return r?e=>h((0,o.u)(t[0],t[f-1],e)):h}},52953:function(t,e,r){r.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},25309:function(t,e,r){r.d(e,{C:function(){return E}});var n=r(82552),o=r(40131);function i(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var s=r(63822),a=r(70326),l=r(4520);function u(t,e){return r=>r>0?e:t}let c=(t,e,r)=>{let n=t*t,o=r*(e*e-n)+n;return o<0?0:Math.sqrt(o)},f=[s.$,a.m,l.J],d=t=>f.find(e=>e.test(t));function p(t){let e=d(t);if((0,o.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===l.J&&(r=function({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,r/=100;let o=0,s=0,a=0;if(e/=100){let n=r<.5?r*(1+e):r+e-r*e,l=2*r-n;o=i(l,n,t+1/3),s=i(l,n,t),a=i(l,n,t-1/3)}else o=s=a=r;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(r)),r}let h=(t,e)=>{let r=p(t),o=p(e);if(!r||!o)return u(t,e);let i={...r};return t=>(i.red=c(r.red,o.red,t),i.green=c(r.green,o.green,t),i.blue=c(r.blue,o.blue,t),i.alpha=(0,n.t)(r.alpha,o.alpha,t),a.m.transform(i))};var g=r(50970),v=r(38180),m=r(28508),b=r(25375);let y=new Set(["none","hidden"]);function x(t,e){return r=>(0,n.t)(t,e,r)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,b.t)(t)?u:v.$.test(t)?h:B:Array.isArray(t)?A:"object"==typeof t?v.$.test(t)?h:k:u}function A(t,e){let r=[...t],n=r.length,o=t.map((t,r)=>w(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=o[e](t);return r}}function k(t,e){let r={...t,...e},n={};for(let o in r)void 0!==t[o]&&void 0!==e[o]&&(n[o]=w(t[o])(t[o],e[o]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let B=(t,e)=>{let r=m.P.createTransformer(e),n=(0,m.V)(t),i=(0,m.V)(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?y.has(t)&&!i.values.length||y.has(e)&&!n.values.length?y.has(t)?r=>r<=0?t:e:r=>r>=1?e:t:(0,g.z)(A(function(t,e){var r;let n=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let s=e.types[i],a=t.indexes[s][o[s]],l=null!==(r=t.values[a])&&void 0!==r?r:0;n[i]=l,o[s]++}return n}(n,i),i.values),r):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(t,e))};function E(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?(0,n.t)(t,e,r):w(t)(t,e)}},82552:function(t,e,r){r.d(e,{t:function(){return n}});let n=(t,e,r)=>t+(e-t)*r},76750:function(t,e,r){r.d(e,{Y:function(){return i}});var n=r(82552),o=r(99075);function i(t){let e=[0];return!function(t,e){let r=t[t.length-1];for(let i=1;i<=e;i++){let s=(0,o.Y)(0,e,i);t.push((0,n.t)(r,1,s))}}(e,t.length-1),e}},50970:function(t,e,r){r.d(e,{z:function(){return o}});let n=(t,e)=>r=>e(t(r)),o=(...t)=>t.reduce(n)},99075:function(t,e,r){r.d(e,{Y:function(){return n}});let n=(t,e,r)=>{let n=e-t;return 0===n?1:(r-t)/n}},39311:function(t,e,r){r.d(e,{L:function(){return o}});var n=r(3779);class o{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,r);else for(let o=0;o<n;o++){let n=this.subscriptions[o];n&&n(t,e,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},2365:function(t,e,r){r.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},90039:function(t,e,r){r.d(e,{BX:function(){return c}});var n=r(39311),o=r(2365),i=r(26928),s=r(32736);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let r=i.X.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=i.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let r=this.events[t].add(e);return"change"===t?()=>{r(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=i.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(t,e){return new u(t,e)}},63822:function(t,e,r){r.d(e,{$:function(){return o}});var n=r(70326);let o={test:(0,r(84230).i)("#"),parse:function(t){let e="",r="",n="",o="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),o=t.substring(4,5),e+=e,r+=r,n+=n,o+=o),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:n.m.transform}},4520:function(t,e,r){r.d(e,{J:function(){return a}});var n=r(37822),o=r(31150),i=r(16498),s=r(84230);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:s=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,i.N)(e))+", "+o.aQ.transform((0,i.N)(r))+", "+(0,i.N)(n.Fq.transform(s))+")"}},38180:function(t,e,r){r.d(e,{$:function(){return s}});var n=r(63822),o=r(4520),i=r(70326);let s={test:t=>i.m.test(t)||n.$.test(t)||o.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):o.J.test(t)?o.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?i.m.transform(t):o.J.transform(t)}},70326:function(t,e,r){r.d(e,{m:function(){return u}});var n=r(3983),o=r(37822),i=r(16498),s=r(84230);let a=t=>(0,n.u)(0,255,t),l={...o.Rx,transform:t=>Math.round(a(t))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(r)+", "+(0,i.N)(o.Fq.transform(n))+")"}},84230:function(t,e,r){r.d(e,{i:function(){return i},d:function(){return s}});var n=r(36201);let o=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i=(t,e)=>r=>!!("string"==typeof r&&o.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),s=(t,e,r)=>o=>{if("string"!=typeof o)return o;let[i,s,a,l]=o.match(n.K);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},28508:function(t,e,r){r.d(e,{V:function(){return c},P:function(){return h}});var n=r(38180);let o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var i=r(36201),s=r(16498);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},i=[],s=0,c=e.replace(u,t=>(n.$.test(t)?(o.color.push(s),i.push(l),r.push(n.$.parse(t))):t.startsWith("var(")?(o.var.push(s),i.push("var"),r.push(t)):(o.number.push(s),i.push(a),r.push(parseFloat(t))),++s,"${}")).split("${}");return{values:r,split:c,indexes:o,types:i}}function f(t){return c(t).values}function d(t){let{split:e,types:r}=c(t),o=e.length;return t=>{let i="";for(let u=0;u<o;u++)if(i+=e[u],void 0!==t[u]){let e=r[u];e===a?i+=(0,s.N)(t[u]):e===l?i+=n.$.transform(t[u]):i+=t[u]}return i}}let p=t=>"number"==typeof t?0:t,h={test:function(t){var e,r;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(i.K))||void 0===e?void 0:e.length)||0)+((null===(r=t.match(o))||void 0===r?void 0:r.length)||0)>0},parse:f,createTransformer:d,getAnimatableNone:function(t){let e=f(t);return d(t)(e.map(p))}}},36201:function(t,e,r){r.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},16498:function(t,e,r){r.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},61302:function(t,e,r){let n,o;r.d(e,{v:function(){return V}});var i=r(90039),s=r(2415),a=r(7653),l=r(40131);let u=new WeakMap;function c({target:t,contentRect:e,borderBoxSize:r}){var n;null===(n=u.get(t))||void 0===n||n.forEach(n=>{n({target:t,contentSize:e,get size(){return function(t,e){if(e){let{inlineSize:t,blockSize:r}=e[0];return{width:t,height:r}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,r)}})})}function f(t){t.forEach(c)}let d=new Set;var p=r(99075),h=r(2365);let g=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),v=()=>({time:0,x:g(),y:g()}),m={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function b(t,e,r,n){let o=r[e],{length:i,position:s}=m[e],a=o.current,l=r.time;o.current=t[`scroll${s}`],o.scrollLength=t[`scroll${i}`]-t[`client${i}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,p.Y)(0,o.scrollLength,o.current);let u=n-l;o.velocity=u>50?0:(0,h.R)(o.current-a,u)}let y=[[0,0],[1,1]],x={start:0,center:.5,end:1};function w(t,e,r=0){let n=0;if(t in x&&(t=x[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),r+n}let A=[0,0];var k=r(12010),B=r(76750);let E={x:0,y:0};var Z=r(32736);let C=new WeakMap,W=new WeakMap,N=new WeakMap,P=t=>t===document.documentElement?window:t;function L(t,{container:e=document.documentElement,...r}={}){let i=N.get(e);i||(i=new Set,N.set(e,i));let s=function(t,e,r,n={}){return{measure:()=>(function(t,e=t,r){if(r.x.targetOffset=0,r.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=e===t?e.scrollWidth:e.clientWidth,r.y.targetLength=e===t?e.scrollHeight:e.clientHeight,r.x.containerLength=t.clientWidth,r.y.containerLength=t.clientHeight})(t,n.target,r),update:e=>{b(t,"x",r,e),b(t,"y",r,e),r.time=e,(n.offset||n.target)&&function(t,e,r){let{offset:n=y}=r,{target:o=t,axis:i="y"}=r,s="y"===i?"height":"width",a=o!==t?function(t,e){let r={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();r.x+=t.left-e.left,r.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();r.x+=t,r.y+=e;let o=null,i=n.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=n.parentNode;n=o}else break;return r}(o,t):E,l=o===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let c=!e[i].interpolate,f=n.length;for(let t=0;t<f;t++){let r=function(t,e,r,n){let o=Array.isArray(t)?t:A,i=0;return"number"==typeof t?o=[t,t]:"string"==typeof t&&(o=(t=t.trim()).includes(" ")?t.split(" "):[t,x[t]?t:"0"]),w(o[0],r,n)-w(o[1],e)}(n[t],u[s],l[s],a[i]);c||r===e[i].interpolatorOffsets[t]||(c=!0),e[i].offset[t]=r}c&&(e[i].interpolate=(0,k.s)(e[i].offset,(0,B.Y)(n)),e[i].interpolatorOffsets=[...e[i].offset]),e[i].progress=e[i].interpolate(e[i].current)}(t,r,n)},notify:()=>e(r)}}(e,t,v(),r);if(i.add(s),!C.has(e)){let t=()=>{for(let t of i)t.measure()},r=()=>{for(let t of i)t.update(Z.frameData.timestamp)},s=()=>{for(let t of i)t.notify()},a=()=>{Z.Wi.read(t,!1,!0),Z.Wi.read(r,!1,!0),Z.Wi.update(s,!1,!0)};C.set(e,a);let l=P(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&W.set(e,"function"==typeof e?(d.add(e),o||(o=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};d.forEach(t=>t(e))},window.addEventListener("resize",o)),()=>{d.delete(e),!d.size&&o&&(o=void 0)}):function(t,e){var r;n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(f));let o=("string"==typeof(r=t)?r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[]));return o.forEach(t=>{let r=u.get(t);r||(r=new Set,u.set(t,r)),r.add(e),null==n||n.observe(t)}),()=>{o.forEach(t=>{let r=u.get(t);null==r||r.delete(e),(null==r?void 0:r.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=C.get(e);return Z.Wi.read(a,!1,!0),()=>{var t;(0,Z.Pn)(a);let r=N.get(e);if(!r||(r.delete(s),r.size))return;let n=C.get(e);C.delete(e),n&&(P(e).removeEventListener("scroll",n),null===(t=W.get(e))||void 0===t||t(),window.removeEventListener("resize",n))}}function S(t,e){let r;let n=()=>{let{currentTime:n}=e,o=(null===n?0:n.value)/100;r!==o&&t(o),r=o};return Z.Wi.update(n,!0),()=>(0,Z.Pn)(n)}var M=r(37665);let z=new Map;function T({source:t,container:e=document.documentElement,axis:r="y"}={}){t&&(e=t),z.has(e)||z.set(e,{});let n=z.get(e);return n[r]||(n[r]=(0,M.t)()?new ScrollTimeline({source:e,axis:r}):function({source:t,container:e,axis:r="y"}){t&&(e=t);let n={value:0},o=L(t=>{n.value=100*t[r].progress},{container:e,axis:r});return{currentTime:n,cancel:o}}({source:e,axis:r})),n[r]}function O(t){return t&&(t.target||t.offset)}var $=r(98739);function F(t,e){(0,l.K)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let R=()=>({scrollX:(0,i.BX)(0),scrollY:(0,i.BX)(0),scrollXProgress:(0,i.BX)(0),scrollYProgress:(0,i.BX)(0)});function V({container:t,target:e,layoutEffect:r=!0,...n}={}){let o=(0,s.h)(R);return(r?$.L:a.useEffect)(()=>(F("target",e),F("container",t),function(t,{axis:e="y",...r}={}){let n={axis:e,...r};return"function"==typeof t?2===t.length||O(n)?L(e=>{t(e[n.axis].progress,e)},n):S(t,T(n)):function(t,e){if(O(e))return t.pause(),L(r=>{t.time=t.duration*r[e.axis].progress},e);{let r=T(e);return t.attachTimeline(r,t=>(t.pause(),S(e=>{t.time=t.duration*e},r)))}}(t,n)}((t,{x:e,y:r})=>{o.scrollX.set(e.current),o.scrollXProgress.set(e.progress),o.scrollY.set(r.current),o.scrollYProgress.set(r.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),o}}}]);