1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[590],{1025:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2265),r=i(5392),s=n&&"object"==typeof n&&"default"in n?n:{default:n},o=function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}function l(){return Math.min(Math.max(1,"undefined"!=typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}"function"==typeof SuppressedError&&SuppressedError;var u=function(){function t(){}return t.prototype.observe=function(){},t.prototype.unobserve=function(){},t.prototype.disconnect=function(){},t}(),h=globalThis.ResizeObserver||u,c=void 0!==globalThis.ResizeObserver,d=!c,f={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function p(t){return Object.assign({},f,t)}function m(t){var e,i,r,s,o,a,u,f,m,v,g,y=t.riveLoaded,x=void 0!==y&&y,w=t.canvasRef,P=t.containerRef,b=t.options,T=t.onCanvasHasResized,S=t.artboardBounds,A=p(void 0===b?{}:b),R=n.useState({height:0,width:0}),C=R[0],E=C.height,V=C.width,M=R[1],D=n.useState({height:0,width:0}),L=D[0],k=L.height,j=L.width,O=D[1],F=n.useState(!0),B=F[0],W=F[1],$=A.fitCanvasToArtboardHeight,I=A.shouldResizeCanvasToContainer,U=A.useDevicePixelRatio,N=A.customDevicePixelRatio,z=(void 0===(e=I)&&(e=!0),r=(i=n.useState({width:0,height:0}))[0],s=i[1],n.useEffect(function(){if("undefined"!=typeof window&&e){var t=function(){s({width:window.innerWidth,height:window.innerHeight})};return d&&(t(),window.addEventListener("resize",t)),function(){return window.removeEventListener("resize",t)}}},[]),u=n.useRef(new h((o=function(t){c&&s({width:t[t.length-1].contentRect.width,height:t[t.length-1].contentRect.height})},a=0,function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];clearTimeout(a),a=window.setTimeout(function(){return o.apply(t,e)},0)}))),n.useEffect(function(){var t=u.current;if(e){var i=P.current;return P.current&&c&&t.observe(P.current),function(){t.disconnect(),i&&c&&t.unobserve(i)}}t.disconnect()},[P,u]),r),H=(f=N||l(),v=(m=n.useState(f))[0],g=m[1],n.useEffect(function(){if("undefined"!=typeof window&&"matchMedia"in window){var t=function(){g(N||l())},e=window.matchMedia("screen and (resolution: ".concat(v,"dppx)"));return e.hasOwnProperty("addEventListener")?e.addEventListener("change",t):e.addListener(t),function(){e.hasOwnProperty("removeEventListener")?e.removeEventListener("change",t):e.removeListener(t)}}},[v,N]),v),X=null!=S?S:{},Y=X.maxX,K=X.maxY,G=n.useCallback(function(){var t,e,i,n,r=null!==(e=null===(t=P.current)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0,s=null!==(n=null===(i=P.current)||void 0===i?void 0:i.clientHeight)&&void 0!==n?n:0;return $&&S?{width:r,height:S.maxY/S.maxX*r}:{width:r,height:s}},[P,$,Y,K]);n.useEffect(function(){if(I&&P.current&&x){var t=G(),e=t.width,i=t.height,n=!1;if(w.current){var r=e!==V||i!==E;if(A.fitCanvasToArtboardHeight&&r&&(P.current.style.height=i+"px",n=!0),A.useDevicePixelRatio){if(r||e*H!==j||i*H!==k){var s=H*e,o=H*i;w.current.width=s,w.current.height=o,w.current.style.width=e+"px",w.current.style.height=i+"px",O({width:s,height:o}),n=!0}}else r&&(w.current.width=e,w.current.height=i,O({width:e,height:i}),n=!0);M({width:e,height:i})}T&&(B||n)&&T&&T(),B&&W(!1)}},[w,P,z,H,G,B,W,k,j,E,V,T,I,$,U,x])}function v(t){var e=t.setContainerRef,i=t.setCanvasRef,n=t.className,r=void 0===n?"":n,l=t.style,u=t.children,h=a(t,["setContainerRef","setCanvasRef","className","style","children"]),c=o({width:"100%",height:"100%"},l);return s.default.createElement("div",o({ref:e,className:r},!r&&{style:c}
1),s.default.createElement("canvas",o({ref:i,style:{verticalAlign:"top",width:0,height:0}},h),u))}function g(t,e){void 0===e&&(e={});var i=n.useRef(null),a=n.useRef(null),l=n.useState(null),u=l[0],h=l[1],c=!!t,d=p(e),f=n.useCallback(function(){u&&(u.startRendering(),u.resizeToCanvas())},[u]);m({riveLoaded:!!u,canvasRef:i,containerRef:a,options:d,onCanvasHasResized:f,artboardBounds:null==u?void 0:u.bounds});var g=n.useCallback(function(e){if(e&&t&&c){var n=d.useOffscreenRenderer,s=new r.Rive(o(o({useOffscreenRenderer:n},t),{canvas:e}));s.on(r.EventType.Load,function(){i.current?h(s):s.cleanup()})}else null===e&&i.current&&(i.current.height=0,i.current.width=0);i.current=e},[c]),y=n.useCallback(function(t){a.current=t},[]);n.useEffect(function(){var t=new IntersectionObserver(function(t){t[0].isIntersecting?u&&u.startRendering():u&&u.stopRendering()});return i.current&&t.observe(i.current),function(){t.disconnect()}},[u]),n.useEffect(function(){return function(){u&&(u.cleanup(),h(null))}},[u]);var x=null==t?void 0:t.animations;n.useEffect(function(){u&&x&&(u.isPlaying?(u.stop(u.animationNames),u.play(x)):u.isPaused&&(u.stop(u.animationNames),u.pause(x)))},[x,u]);var w=n.useCallback(function(t){return s.default.createElement(v,o({setContainerRef:y,setCanvasRef:g},t))},[g,y]);return{canvas:i.current,container:a.current,setCanvasRef:g,setContainerRef:y,rive:u,RiveComponent:w}}e.default=function(t){var e=t.src,i=t.artboard,n=t.animations,r=t.stateMachines,l=t.layout,u=t.useOffscreenRenderer,h=t.shouldDisableRiveListeners,c=t.shouldResizeCanvasToContainer,d=t.automaticallyHandleEvents,f=t.children,p=a(t,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),m=g({src:e,artboard:i,animations:n,layout:l,stateMachines:r,autoplay:!0,shouldDisableRiveListeners:void 0!==h&&h,automaticallyHandleEvents:void 0!==d&&d},{useOffscreenRenderer:void 0===u||u,shouldResizeCanvasToContainer:void 0===c||c}).RiveComponent;return s.default.createElement(m,o({},p),f)},e.useResizeCanvas=m,e.useRive=g,e.useStateMachineInput=function(t,e,i,s){var o=n.useState(null),a=o[0],l=o[1];return n.useEffect(function(){function n(){if(t&&e&&i||l(null),t&&e&&i){var n=t.stateMachineInputs(e);if(n){var r=n.find(function(t){return t.name===i});void 0!==s&&r&&(r.value=s),l(r||null)}}else l(null)}n(),t&&t.on(r.EventType.Play,function(){n()})},[t]),a},Object.keys(r).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},7907:function(t,e,i){"use strict";var n=i(5313);i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}})},6993:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});let n=i(6921)._(i(2265)).default.createContext(null)},4208:function(t,e,i){"use strict";i.d(e,{s:function(){return s}});var n=i(4205);let r=(0,i(6190).X)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>{if(!r()||!e.attachTimeline)return e.pause(),function(t,e){let i;let r=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return n.Wi.update(r,!0),()=>(0,n.Pn)(r)}(t=>{e.time=e.duration*t},t);e.attachTimeline(t)});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}
1runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}},8788:function(t,e,i){"use strict";i.d(e,{v:function(){return h}});var n=i(3791),r=i(4178),s=i(8262),o=i(9908),a=i(2263);let l=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(a.P.test(t)||"0"===t)&&!t.startsWith("url("));var u=i(3357);class h{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,r.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:a,delay:h,onComplete:c,onUpdate:d,isGenerator:f}=this.options;if(!f&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=l(r,e),u=l(s,e);return(0,o.K)(a===u,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!u&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||"spring"===i&&n)}(t,i,r,a)){if(s.c.current||!h){null==d||d((0,u.$)(t,this.options,e)),null==c||c(),this.resolveFinishedPromise();return}this.options.duration=0}let p=this.initPlayback(t,e);!1!==p&&(this._resolved={keyframes:t,finalKeyframe:e,...p},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}},2272:function(t,e,i){"use strict";i.d(e,{s:function(){return A},y:function(){return R}});var n=i(4178),r=i(9806),s=i(7229);function o({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:h,restDelta:c=.5,restSpeed:d}){let f,p;let m=t[0],v={done:!1,value:m},g=t=>void 0!==u&&t<u||void 0!==h&&t>h,y=t=>void 0===u?h:void 0===h?u:Math.abs(u-t)<Math.abs(h-t)?u:h,x=i*e,w=m+x,P=void 0===l?w:l(w);P!==w&&(x=P-m);let b=t=>-x*Math.exp(-t/n),T=t=>P+b(t),S=t=>{let e=b(t),i=T(t);v.done=Math.abs(e)<=c,v.value=v.done?P:i},A=t=>{g(v.value)&&(f=t,p=(0,r.S)({keyframes:[v.value,y(v.value)],velocity:(0,s.P)(T,t,v.value),damping:o,stiffness:a,restDelta:c,restSpeed:d}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==f||(e=!0,S(t),A(t)),void 0!==f&&t>=f)?p.next(t-f):(e||S(t),v)}}}var a=i(9569),l=i(113),u=i(7544),h=i(9780),c=i(5865);function d({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}
1){let r=(0,l.N)(n)?n.map(u.R):(0,u.R)(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,c.Y)(e)).map(e=>e*t),d=(0,h.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||a.mZ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=d(e),s.done=e>=t,s)}}var f=i(8788),p=i(9280),m=i(6722),v=i(9323),g=i(3303),y=i(2476),x=i(3791),w=i(4205);let P=t=>{let e=({timestamp:e})=>t(e);return{start:()=>w.Wi.update(e,!0),stop:()=>(0,w.Pn)(e),now:()=>w.frameData.isProcessing?w.frameData.timestamp:x.X.now()}};var b=i(3357);let T={decay:o,inertia:o,tween:d,keyframes:d,spring:r.S},S=t=>t/100;class A extends f.v{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:r,keyframes:s}=this.options,o=(null==r?void 0:r.KeyframeResolver)||n.e;this.resolver=new o(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=T[n]||d;l!==d&&"number"!=typeof t[0]&&(e=(0,p.z)(S,(0,m.C)(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,v.i)(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,w=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(i=1-i,p&&(i-=p/h)):"mirror"===f&&(w=s)),x=(0,y.u)(0,1,i)*h}let P=g?{done:!1,value:a[0]}:w.next(x);o&&(P.value=o(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&void 0!==n&&(P.value=(0,b.$)(a,this.options,n)),m&&m(P.value),S&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,g.X)(t.calculatedDuration):0}get time(){return(0,g.X)(this.currentTime)}set time(t){t=(0,g.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,g.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=P,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
1ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function R(t){return new A(t)}},1353:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=new Set(["opacity","clipPath","filter","transform"])},3357:function(t,e,i){"use strict";i.d(e,{$:function(){return r}});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(n),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}},9806:function(t,e,i){"use strict";i.d(e,{S:function(){return c}});var n=i(3303),r=i(7229),s=i(9908),o=i(2476);function a(t,e){return t*Math.sqrt(1-e*e)}let l=["duration","bounce"],u=["stiffness","damping","mass"];function h(t,e){return e.some(e=>void 0!==t[e])}function c({keyframes:t,restDelta:e,restSpeed:i,...c}){let d;let f=t[0],p=t[t.length-1],m={done:!1,value:f},{stiffness:v,damping:g,mass:y,duration:x,velocity:w,isResolvedFromDuration:P}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!h(t,u)&&h(t,l)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let l,u;(0,s.K)(t<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let h=1-e;h=(0,o.u)(.05,1,h),t=(0,o.u)(.01,10,(0,n.X)(t)),h<1?(l=e=>{let n=e*h,r=n*t;return .001-(n-i)/a(e,h)*Math.exp(-r)},u=e=>{let n=e*h*t,r=Math.pow(h,2)*Math.pow(e,2)*t,s=a(Math.pow(e,2),h);return(n*i+i-r)*Math.exp(-n)*(-l(e)+.001>0?-1:1)/s}):(l=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),u=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(l,u,5/t);if(t=(0,n.w)(t),isNaN(c))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(c,2)*r;return{stiffness:e,damping:2*h*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...c,velocity:-(0,n.X)(c.velocity||0)}),b=w||0,T=g/(2*Math.sqrt(v*y)),S=p-f,A=(0,n.X)(Math.sqrt(v/y)),R=5>Math.abs(S);if(i||(i=R?.01:2),e||(e=R?.005:.5),T<1){let t=a(A,T);d=e=>p-Math.exp(-T*A*e)*((b+T*A*S)/t*Math.sin(t*e)+S*Math.cos(t*e))}else if(1===T)d=t=>p-Math.exp(-A*t)*(S+(b+A*S)*t);else{let t=A*Math.sqrt(T*T-1);d=e=>{let i=Math.exp(-T*A*e),n=Math.min(t*e,300);return p-i*((b+T*A*S)*Math.sinh(n)+t*S*Math.cosh(n))/t}}return{calculatedDuration:P&&x||null,next:t=>{let s=d(t);if(P)m.done=t>=x;else{let o=0;T<1&&(o=0===t?(0,n.w)(b):(0,r.P)(d,t,s));let a=Math.abs(o)<=i,l=Math.abs(p-s)<=e;m.done=a&&l}return m.value=m.done?p:s,m}}}},9323:function(t,e,i){"use strict";i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},7229:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(2181);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},6594:function(t,e,i){"use strict";i.d(e,{v:function(){return V}});var n=i(3303),r=i(618);let s={type:"spring",stiffness:500,damping:25,restSpeed:10},o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,{keyframes:e})=>e.length>2?a:r.G.has(t)?t.startsWith("scale")?o(e[1]):s:l;var h=i(5566),c=i(6832),d=i(8262),f=i(3357),p=i(4205),m=i(928),v=i(6190),g=i(3393),y=i(8788),x=i(2272),w=i(1353);let P=t=>Array.isArray(t)&&"number"==typeof t[0],b=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,T={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:b([0,.65,.55,1]),circOut:b([.55,0,1,.45]),backIn:b([.31,.01,.66,-.59]),backOut:b([.33,1.53,.69,.99])};function S(t){return A(t)||T.easeOut}function A(t){if(t)return P(t)?b(t):Array.isArray(t)?t.map(S):T[t]}let R=(0,v.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class C extends y.v{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new m.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("spring"===(n=this.options).type||!function t(e){return!!(!e||"string"==typeof e&&e in T||P(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new x.s({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}
1let c=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=A(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,f.$)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,n.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,n.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,n.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return g.Z;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return g.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new x.s({...h,keyframes:i,duration:r,type:s,ease:o,times:a,isGenerator:!0}),d=(0,n.w)(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return R()&&i&&w.t.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var E=i(4208);let V=(t,e,i,r={},s,o,a)=>l=>{let m=(0,h.e)(r,t)||{},v=m.delay||r.delay||0,{elapsed:g=0}=r;g-=(0,n.w)(v);let y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...m,delay:-g,onUpdate:t=>{e.set(t),m.onUpdate&&m.onUpdate(t)},onComplete:()=>{l(),m.onComplete&&m.onComplete(),a&&a()},onStop:a,name:t,motionValue:e,element:o?void 0:s};(0,h.r)(m)||(y={...y,...u(t,y)}),y.duration&&(y.duration=(0,n.w)(y.duration)),y.repeatDelay&&(y.repeatDelay=(0,n.w)(y.repeatDelay)),void 0!==y.from&&(y.keyframes[0]=y.from);let w=!1;if(!1!==y.type&&(0!==y.duration||y.repeatDelay)||(y.duration=0,0!==y.delay||(w=!0)),(d.c.current||c.c.skipAnimations)&&(w=!0,y.duration=0,y.delay=0),w&&!o&&void 0!==e.get()){let t=(0,f.$)(y.keyframes,m);if(void 0!==t)return p.Wi.update(()=>{y.onUpdate(t),y.onComplete()}),new E.s([])}return!o&&C.supports(y)?new C(y):new x.s(y)}},2014:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(6594),r=i(3299),s=i(2702);function o(t,e,i){let o=(0,s.i)(t)?t:(0,r.BX)(t);return o.start((0,n.v)("",o,e,i)),o.animation}},1258:function(t,e,i){"use strict";i.d(e,{w:function(){return d}});var n=i(618),r=i(6594),s=i(698),o=i(3299),a=i(1148),l=i(5566),u=i(6032),h=i(9696),c=i(4205);function d(t,e,{delay:i=0,transitionOverride:d,type:f}={}){var p;let{transition:m=t.getDefaultTransition(),transitionEnd:v,...g}=e;d&&(m=d);let y=[],x=f&&t.animationState&&t.animationState.getState()[f];for(let e in g){let s=t.getValue(e,null!==(p=t.latestValues[e])&&void 0!==p?p:null),o=g[e];if(void 0===o||x&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(x,e))continue;let a={delay:i,elapsed:0,...(0,l.e)(m||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=(0,u.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,c.Wi);null!==t&&(a.elapsed=t,d=!0)}}s.start((0,r.v)(e,s,o,t.shouldReduceMotion&&n.G.has(e)?{type:!1}:a,t,d,(0,h.K)(t,e)));let f=s.animation;f&&y.push(f)}return v&&Promise.all(y).then(()=>{c.Wi.update(()=>{v&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,a.x)(t,e)||{};for(let e in r={...r,...i}){let i=(0,s.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}(t,v)})}),y}}
1,9043:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});let n="data-"+(0,i(5998).D)("framerAppearId")},6032:function(t,e,i){"use strict";i.d(e,{s:function(){return r}});var n=i(9043);function r(t){return t.getProps()[n.M]}},4633:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{H:function(){return n}})},561:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},5566:function(t,e,i){"use strict";function n({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}function r(t,e){return t[e]||t.default||t}i.d(e,{e:function(){return r},r:function(){return n}})},3856:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},3449:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4561:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},4354:function(t,e,i){"use strict";i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(7932),r=i(8841);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},4718:function(t,e,i){"use strict";i.d(e,{_:function(){return s}});var n=i(3393);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){if(t===e&&i===s)return n.Z;let o=e=>(function(t,e,i,n,s){let o,a;let l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:r(o(t),e,s)}},9569:function(t,e,i){"use strict";i.d(e,{Vv:function(){return s},YQ:function(){return r},mZ:function(){return o}});var n=i(4718);let r=(0,n._)(.42,0,1,1),s=(0,n._)(0,0,.58,1),o=(0,n._)(.42,0,.58,1)},7932:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},8841:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},113:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},7544:function(t,e,i){"use strict";i.d(e,{R:function(){return p}});var n=i(9908),r=i(4718),s=i(3393),o=i(9569),a=i(4354),l=i(7932),u=i(8841);let h=(0,r._)(.33,1.53,.69,.99),c=(0,u.M)(h),d=(0,l.o)(c),f={linear:s.Z,easeIn:o.YQ,easeInOut:o.mZ,easeOut:o.Vv,circIn:a.Z7,circInOut:a.X7,circOut:a.Bn,backIn:c,backInOut:d,backOut:h,anticipate:t=>(t*=2)<1?.5*c(t):.5*(2-Math.pow(2,-10*(t-1)))},p=t=>{if(Array.isArray(t)){(0,n.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,o]=t;return(0,r._)(e,i,s,o)}return"string"==typeof t?((0,n.k)(void 0!==f[t],`Invalid easing type '${t}'`),f[t]):t}},7839:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(6832);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],i.clear(),e.forEach(a),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:c,preRender:d,render:f,postRender:p}=l,m=()=>{let r=n.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),c.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))},v=()=>{i=!0,s=!0,o.isProcessing||t(m)};return{schedule:r.reduce((t,e)=>{let n=l[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)l[r[e]].cancel(t)},state:o,steps:l}}},4205:function(t,e,i){"use strict";i.d(e,{Pn:function(){return s},S6:function(){return a},Wi:function(){return r},frameData:function(){return o}});var n=i(3393);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(7839).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)}
1,3791:function(t,e,i){"use strict";let n;i.d(e,{X:function(){return a}});var r=i(6832),s=i(4205);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},5223:function(t,e,i){"use strict";i.d(e,{featureDefinitions:function(){return r}});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},5403:function(t,e,i){"use strict";i.d(e,{j:function(){return s}});var n=i(7381),r=i(618);function s(t,{layout:e,layoutId:i}){return r.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.P[t]||"opacity"===t)}},9068:function(t,e,i){"use strict";function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},5015:function(t,e,i){"use strict";i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var n=i(5312),r=i(4352);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=i[u]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&d(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),n&&(0,r.ud)(s.latestValues)&&d(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},4884:function(t,e,i){"use strict";i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},7381:function(t,e,i){"use strict";i.d(e,{B:function(){return r},P:function(){return n}});let n={};function r(t){Object.assign(n,t)}},4352:function(t,e,i){"use strict";function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},411:function(t,e,i){"use strict";i.d(e,{J:function(){return s},z:function(){return o}});var n=i(9068),r=i(5015);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},928:function(t,e,i){"use strict";i.d(e,{s:function(){return p}});var n=i(6894),r=i(9908),s=i(4829),o=i(7126);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(2756),u=i(1921),h=i(4178),c=i(2263),d=i(3462);let f=new Set(["auto","none","0"]);class p extends h.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];
1if("string"==typeof n&&(n=n.trim(),(0,o.t)(n))){let l=function t(e,i,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[l,u]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!l)return;let h=window.getComputedStyle(i).getPropertyValue(l);if(h){let t=h.trim();return(0,s.P)(t)?parseFloat(t):t}return(0,o.t)(u)?t(u,i,n+1):u}(n,e.current);void 0!==l&&(t[i]=l),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!l.z2.has(i)||2!==t.length)return;let[n,h]=t,c=(0,u.C)(n),d=(0,u.C)(h);if(c!==d){if((0,l.mP)(c)&&(0,l.mP)(d))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||(0,n.W)(r))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!f.has(e)&&(0,c.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,d.T)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=l.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},176:function(t,e,i){"use strict";i.d(e,{J:function(){return L}});var n=i(1702);let r={current:null},s={current:!1};var o=i(2685),a=i(3299),l=i(2702),u=i(618),h=i(9739),c=i(6930),d=i(1422),f=i(5223),p=i(1867),m=i(8854),v=i(4178),g=i(4829),y=i(6894),x=i(2809),w=i(2263),P=i(1921),b=i(4707);let T=[...P.$,x.$,w.P],S=t=>T.find((0,b.l)(t));var A=i(3462),R=i(4884),C=i(4205);let E=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],V=p.V.length;class M{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=v.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,C.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,h.G)(e),this.isVariantNode=(0,h.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&(0,l.i)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,m.R.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),s.current||function(){if(s.current=!0,n.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.current=t.matches;t.addListener(e),e()}else r.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in m.R.delete(this.current),this.projection&&this.projection.unmount(),(0,C.Pn)(this.notifyUpdate),(0,C.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i=u.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&C.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in f.featureDefinitions){let e=f.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,R.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<E.length;e++){let i=E[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,l.i)(r))t.addValue(n,r);else if((0,l.i)(s))t.addValue(n,(0,a.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,a.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<V;t++){let i=p.V[t],n=this.props[i];((0,c.$)(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,a.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,g.P)(n)||(0,y.W)(n))?n=parseFloat(n):!S(n)&&w.P.test(e)&&(n=(0,A.T)(t,e)),this.setBaseTarget(t,(0,l.i)(n)?n.get():n)),(0,l.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,d.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,l.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new o.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var D=i(928);class L extends M{constructor(){super(...arguments),this.KeyframeResolver=D.s}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}},7914:function(t,e,i){"use strict";i.d(e,{E:function(){return iA}});var n,r=i(7437),s=i(2265),o=i(3449);let a=(0,s.createContext)({});var l=i(4561),u=i(5526);let h=(0,s.createContext)({strict:!1});var c=i(9043);let{schedule:d,cancel:f}=(0,i(7839).Z)(queueMicrotask,!1);function p(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let m=(0,s.createContext)({}),v=!1;function g(){window.MotionHandoffIsComplete=!0}var y=i(6930),x=i(9739);function w(t){return Array.isArray(t)?t.join(" "):t}var P=i(5223),b=i(1702),T=i(3856);let S=Symbol.for("motionComponentSymbol"),A=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R(t){if("string"!=typeof t||t.includes("-"));else if(A.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var C=i(5403),E=i(2702),V=i(5275);let M=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
1function D(t,e,i){for(let n in e)(0,E.i)(e[n])||(0,C.j)(n,i)||(t[n]=e[n])}let L=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function k(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||L.has(t)}let j=t=>!k(t);try{(n=require("@emotion/is-prop-valid").default)&&(j=t=>t.startsWith("on")?!k(t):n(t))}catch(t){}var O=i(8348);let F=()=>({...M(),attrs:{}});var B=i(7612),W=i(1661),$=i(9548),I=i(4633),U=i(1422),N=i(2435),z=i(698);function H(t){let e=(0,E.i)(t)?t.get():t;return(0,z.p)(e)?e.toValue():e}var X=i(9634),Y=i(406);let K=t=>(e,i)=>{let n=(0,s.useContext)(a),r=(0,s.useContext)(l.O),o=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o,a){let l={latestValues:function(t,e,i,n,r){var s;let o={},a=[],l=n&&(null===(s=t.style)||void 0===s?void 0:s.willChange)===void 0,u=r(t,{});for(let t in u)o[t]=H(u[t]);let{initial:h,animate:c}=t,d=(0,x.G)(t),f=(0,x.M)(t);e&&f&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let p=!!i&&!1===i.initial,m=(p=p||!1===h)?c:h;return m&&"boolean"!=typeof m&&!(0,I.H)(m)&&G(t,m,(t,e)=>{for(let e in t){let i=t[e];if(Array.isArray(i)){let t=p?i.length-1:0;i=i[t]}null!==i&&(o[e]=i)}for(let t in e)o[t]=e[t]}),l&&(c&&!1!==h&&!(0,I.H)(c)&&G(t,c,t=>{for(let e in t)!function(t,e){let i=(0,X.p)(e);i&&(0,Y.y4)(t,i)}(a,e)}),a.length&&(o.willChange=a.join(","))),o}(r,s,o,!a&&t,e),renderState:i()};return n&&(l.mount=t=>n(r,t,l)),l})(t,e,n,r,i);return i?o():(0,N.h)(o)};function G(t,e,i){let n=Array.isArray(e)?e:[e];for(let e=0;e<n.length;e++){let r=(0,U.o)(t,n[e]);if(r){let{transitionEnd:t,transition:e,...n}=r;i(n,t)}}}var Z=i(4205);let _={useVisualState:K({scrapeMotionValuesFromProps:$.U,createRenderState:F,onMount:(t,e,{renderState:i,latestValues:n})=>{Z.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),Z.Wi.render(()=>{(0,O.i)(i,n,(0,B.a)(e.tagName),t.transformTemplate),(0,W.K)(e,i)})}})},q={useVisualState:K({applyWillChange:!0,scrapeMotionValuesFromProps:i(6235).U,createRenderState:M})};function J(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let Q=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let te=t=>e=>Q(e)&&t(e,tt(e));function ti(t,e,i,n){return J(t,e,te(i),n)}var tn=i(9280);function tr(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let ts=tr("dragHorizontal"),to=tr("dragVertical");function ta(t){let e=!1;if("y"===t)e=to();else if("x"===t)e=ts();else{let t=ts(),i=to();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tl(){let t=ta(!0);return!t||(t(),!1)}class tu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function th(t,e){let i=e?"onHoverStart":"onHoverEnd";return ti(t.current,e?"pointerenter":"pointerleave",(n,r)=>{if("touch"===n.pointerType||tl())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&Z.Wi.postRender(()=>o(n,r))},{passive:!t.getProps()[i]})}class tc extends tu{mount(){this.unmount=(0,tn.z)(th(this.node,!0),th(this.node,!1))}unmount(){}}class td extends tu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tn.z)(J(this.node.current,"focus",()=>this.onFocus()),J(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tf=(t,e)=>!!e&&(t===e||tf(t,e.parentElement));var tp=i(3393);function tm(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tt(i))}class tv extends tu{constructor(){super(...arguments),this.removeStartListeners=tp.Z,this.removeEndListeners=tp.Z,this.removeAccessibleListeners=tp.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=ti(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||tf(this.node.current,t.target)?i:n;s&&Z.Wi.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=ti(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tn.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=J(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=J(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tm("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&Z.Wi.postRender(()=>i(t,e))})}),tm("down",(t,e)=>{this.startPress(t,e)}))}),e=J(this.node.current,"blur",()=>{this.isPressing&&tm("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tn.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&Z.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tl()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&Z.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=ti(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=J(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tn.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tg=new WeakMap,ty=new WeakMap,tx=t=>{let e=tg.get(t.target);e&&e(t)}
1,tw=t=>{t.forEach(tx)},tP={some:0,all:1};class tb extends tu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:tP[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;ty.has(i)||ty.set(i,{});let n=ty.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(tw,{root:t,...e})),n[r]}(e);return tg.set(t,i),n.observe(t),()=>{tg.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var tT=i(561);function tS(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var tA=i(1148),tR=i(1867),tC=i(1258);function tE(t,e,i={}){var n;let r=(0,tA.x)(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all((0,tC.w)(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(tV).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(tE(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function tV(t,e){return t.sortNodePosition(e)}let tM=[...tR.e].reverse(),tD=tR.e.length;function tL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tk(){return{animate:tL(!0),whileInView:tL(),whileHover:tL(),whileTap:tL(),whileDrag:tL(),whileFocus:tL(),exit:tL()}}class tj extends tu{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tE(t,e,i)));else if("string"==typeof e)n=tE(t,e,i);else{let r="function"==typeof e?(0,tA.x)(t,e,i.custom):e;n=Promise.all((0,tC.w)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tk(),n=!0,r=e=>(i,n)=>{var r;let s=(0,tA.x)(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<tD;e++){var d;let f=tM[e],p=i[f],m=void 0!==o[f]?o[f]:a[f],v=(0,y.$)(m),g=f===s?p.isActive:null;!1===g&&(c=e);let x=m===a[f]&&m!==o[f]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||(0,I.H)(m)||"boolean"==typeof m)continue;let w=(d=p.prevProp,("string"==typeof m?m!==d:!!Array.isArray(m)&&!tS(m,d))||f===s&&p.isActive&&!x&&v||e>c&&v),P=!1,b=Array.isArray(m)?m:[m],T=b.reduce(r(f),{});!1===g&&(T={});let{prevResolvedValues:S={}}=p,A={...S,...T},R=e=>{w=!0,u.has(e)&&(P=!0,u.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=T[t],i=S[t];if(!h.hasOwnProperty(t))((0,tT.C)(e)&&(0,tT.C)(i)?tS(e,i):e===i)?void 0!==e&&u.has(t)?R(t):p.protectedKeys[t]=!0:null!=e?R(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=T,p.isActive&&(h={...h,...T}),n&&t.blockInitialAnimation&&(w=!1),w&&(!x||P)&&l.push(...b.map(t=>({animation:t,options:{type:f}})))}if(u.size){let e={};u.forEach(i=>
1{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),l.push({animation:e})}let f=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tk(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,I.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let tO=0;class tF extends tu{constructor(){super(...arguments),this.id=tO++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var tB=i(9908),tW=i(3303);let t$=(t,e)=>Math.abs(t-e);class tI{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tz(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(t$(t.x,e.x)**2+t$(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=Z.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tU(e,this.transformPagePoint),Z.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=tz("pointercancel"===t.type?this.lastMoveEventInfo:tU(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!Q(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=tU(tt(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=Z.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tz(s,this.history)),this.removeListeners=(0,tn.z)(ti(this.contextWindow,"pointermove",this.handlePointerMove),ti(this.contextWindow,"pointerup",this.handlePointerUp),ti(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,Z.Pn)(this.updatePoint)}}function tU(t,e){return e?{point:e(t.point)}:t}function tN(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tz({point:t},e){return{point:t,delta:tN(t,tH(e)),offset:tN(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=tH(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,tW.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,tW.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function tH(t){return t[t.length-1]}var tX=i(9049),tY=i(5312);function tK(t){return t.max-t.min}function tG(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tY.t)(e.min,e.max,t.origin),t.scale=tK(i)/tK(e),t.translate=(0,tY.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}
1function tZ(t,e,i,n){tG(t.x,e.x,i.x,n?n.originX:void 0),tG(t.y,e.y,i.y,n?n.originY:void 0)}function t_(t,e,i){t.min=i.min+e.min,t.max=t.min+tK(e)}function tq(t,e,i){t.min=e.min-i.min,t.max=t.min+tK(e)}function tJ(t,e,i){tq(t.x,e.x,i.x),tq(t.y,e.y,i.y)}var tQ=i(2476);function t0(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function t1(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function t2(t,e,i){return{min:t3(t,e),max:t3(t,i)}}function t3(t,e){return"number"==typeof t?t:t[e]||0}var t5=i(4884);function t9(t){return[t("x"),t("y")]}var t6=i(411),t4=i(9068),t8=i(2724),t7=i(6594);let et=({current:t})=>t?t.ownerDocument.defaultView:null;var ee=i(9696);let ei=new WeakMap;class en{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,t5.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new tI(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tt(t,"page").point)},onStart:(t,e)=>{var i;let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ta(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),t9(t=>{let e=this.getAxisMotionValue(t).get()||0;if(t8.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tK(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),s&&Z.Wi.postRender(()=>s(t,e)),null===(i=this.removeWillChange)||void 0===i||i.call(this),this.removeWillChange=(0,ee.K)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>t9(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:et(this.visualElement)})}stop(t,e){var i;null===(i=this.removeWillChange)||void 0===i||i.call(this);let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&Z.Wi.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!er(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tY.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tY.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:t0(t.x,i,r),y:t0(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t2(t,"left","right"),y:t2(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&t9(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!p(e))return!1;let n=e.current;(0,tB.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,t6.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:t1((t=r.layout.layoutBox).x,s.x),y:t1(t.y,s.y)};if(i){let t=i((0,t4.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,t4.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(t9(o=>{if(!er(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,t7.v)(t,i,0,e,this.visualElement,!1,(0,ee.K)(this.visualElement,t)))}stopAnimation(){t9(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){t9(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){t9(e=>{let{drag:i}=this.getProps();if(!er(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,tY.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;
1if(!p(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};t9(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tK(t),r=tK(e);return r>n?i=(0,tX.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tX.Y)(t.min,t.max-r,e.min)),(0,tQ.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),t9(e=>{if(!er(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tY.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;ei.set(this.visualElement,this);let t=ti(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Z.Wi.read(e);let r=J(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(t9(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function er(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class es extends tu{constructor(t){super(t),this.removeGroupControls=tp.Z,this.removeListeners=tp.Z,this.controls=new en(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tp.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let eo=t=>(e,i)=>{t&&Z.Wi.postRender(()=>t(e,i))};class ea extends tu{constructor(){super(...arguments),this.removePointerDownListener=tp.Z}onPointerDown(t){this.session=new tI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:et(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:eo(t),onStart:eo(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&Z.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ti(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eu(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eh={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!t8.px.test(t))return t;t=parseFloat(t)}let i=eu(t,e.target.x),n=eu(t,e.target.y);return`${i}% ${n}%`}};var ec=i(2263),ed=i(7381);class ef extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,ed.B)(em),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||Z.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),d.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ep(t){let[e,i]=function(){let t=(0,s.useContext)(l.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,s.useId)();(0,s.useEffect)(()=>n(r),[]);let o=(0,s.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,o]:[!0]}(),n=(0,s.useContext)(T.p);return(0,r.jsx)(ef,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(m),isPresent:e,safeToRemove:i})}let em={borderRadius:{...eh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eh,borderTopRightRadius:eh,borderBottomLeftRadius:eh,borderBottomRightRadius:eh,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=ec.P.parse(t);if(n.length>5)return t;let r=ec.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,tY.t)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var ev=i(2685),eg=i(4354);let ey=["TopLeft","TopRight","BottomLeft","BottomRight"],ex=ey.length,ew=t=>"string"==typeof t?parseFloat(t):t,eP=t=>"number"==typeof t||t8.px.test(t);function eb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eT=eA(0,.5,eg.Bn),eS=eA(.5,.95,tp.Z);function eA(t,e,i){return n=>n<t?0:n>e?1:i((0,tX.Y)(t,e,n))}function eR(t,e){t.min=e.min,t.max=e.max}function eC(t,e){eR(t.x,e.x),eR(t.y,e.y)}function eE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eV=i(5015);function eM(t,e,i,n,r){return t-=e,t=(0,eV.q2)(t,1/i,n),void 0!==r&&(t=(0,eV.q2)(t,1/r,n)),t}function eD(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(t8.aQ.test(e)&&(e=parseFloat(e),e=(0,tY.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,tY.t)(s.min,s.max,n);t===s&&(a-=e),t.min=eM(t.min,e,i,a,r),t.max=eM(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let eL=["x","scaleX","originX"],ek=["y","scaleY","originY"];function ej(t,e,i,n){eD(t.x,e,eL,i?i.x:void 0,n?n.x:void 0),eD(t.y,e,ek,i?i.y:void 0,n?n.y:void 0)}var eO=i(5566);function eF(t){return 0===t.translate&&1===t.scale}function eB(t){return eF(t.x)&&eF(t.y)}function eW(t,e){return t.min===e.min&&t.max===e.max}function e$(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eI(t,e){return e$(t.x,e.x)&&e$(t.y,e.y)}function eU(t){return tK(t.x)/tK(t.y)}function eN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ez{constructor(){this.members=[]}add(t){(0,Y.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,Y.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var eH=i(4352);let eX=(t,e)=>t.depth-e.depth;class eY{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Y.y4)(this.children,t),this.isDirty=!0}remove(t){(0,Y.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eX),this.isDirty=!1,this.children.forEach(t)}}var eK=i(3791),eG=i(1937),eZ=i(2014),e_=i(6032);let eq={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},eJ="undefined"!=typeof window&&void 0!==window.MotionDebug,eQ=["","X","Y","Z"],e0={visibility:"hidden"},e1=0;function e2(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function e3({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=e1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eJ&&(eq.totalNodes=eq.resolvedTargetDeltas=eq.recalculatedProjection=0),this.nodes.forEach(e6),this.nodes.forEach(ir),this.nodes.forEach(is),this.nodes.forEach(e4),eJ&&window.MotionDebug.record(eq)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eY)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ev.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,eG.v)(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=eK.X.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&((0,Z.Pn)(n),t(s-e))};return Z.Wi.read(n,!0),()=>(0,Z.Pn)(n)}(n,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(ii))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eI(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,eO.e)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ii(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,Z.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(io),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionHandoffCancelAll&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:i}=e.options;return!!i&&(!!window.MotionHasOptimisedTransformAnimation((0,e_.s)(i))||!!e.parent&&!e.parent.hasCheckedOptimisedAppear&&t(e.parent))}(this)&&window.MotionHandoffCancelAll(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e7);return}this.isUpdating||this.nodes.forEach(it),this.isUpdating=!1,this.nodes.forEach(ie),this.nodes.forEach(e5),this.nodes.forEach(e9),this.clearAllSnapshots();let t=eK.X.now();Z.frameData.delta=(0,tQ.u)(0,1e3/60,t-Z.frameData.timestamp),Z.frameData.timestamp=t,Z.frameData.isProcessing=!0,Z.S6.update.process(Z.frameData),Z.S6.preRender.process(Z.frameData),Z.S6.render.process(Z.frameData),Z.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e8),this.sharedNodes.forEach(ia)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,t5.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eB(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||(0,eH.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),im((e=n).x),im(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,t5.dO)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ig))){let{scroll:t}=this.root;t&&((0,eV.am)(i.x,t.offset.x),(0,eV.am)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,t5.dO)();if(eC(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&eC(i,t),(0,eV.am)(i.x,r.offset.x),(0,eV.am)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,t5.dO)();eC(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,eV.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,eH.ud)(n.latestValues)&&(0,eV.D2)(i,n.latestValues)}return(0,eH.ud)(this.latestValues)&&(0,eV.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,t5.dO)();eC(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,eH.ud)(i.latestValues))continue;(0,eH.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,t5.dO)();eC(n,i.measurePageBox()),ej(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,eH.ud)(this.latestValues)&&ej(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Z.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=Z.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,t5.dO)(),this.relativeTargetOrigin=(0,t5.dO)(),tJ(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),eC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,t5.dO)(),this.targetWithTransforms=(0,t5.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,t_(i.x,n.x,r.x),t_(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eC(this.target,this.layout.layoutBox),(0,eV.o2)(this.target,this.targetDelta)):eC(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,t5.dO)(),this.relativeTargetOrigin=(0,t5.dO)(),tJ(this.relativeTargetOrigin,this.target,t.target),eC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eJ&&eq.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,eH.Lj)(this.parent.latestValues)||(0,eH.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Z.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;eC(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,eV.YY)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,t5.dO)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eE(this.prevProjectionDelta.x,this.projectionDelta.x),eE(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tZ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&eN(this.projectionDelta.x,this.prevProjectionDelta.x)&&eN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),eJ&&eq.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,t5.wc)(),this.projectionDelta=(0,t5.wc)(),this.projectionDeltaWithTransform=(0,t5.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,t5.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,t5.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(ih));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(il(o.x,t.x,n),il(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;tJ(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,iu(f.x,p.x,a.x,n),iu(f.y,p.y,a.y,n),i&&(u=this.relativeTarget,d=i,eW(u.x,d.x)&&eW(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,t5.dO)()),eC(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tY.t)(0,void 0!==i.opacity?i.opacity:1,eT(n)),t.opacityExit=(0,tY.t)(void 0!==e.opacity?e.opacity:1,0,eS(n))):s&&(t.opacity=(0,tY.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<ex;r++){let s=`border${ey[r]}Radius`,o=eb(e,s),a=eb(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||eP(o)===eP(a)?(t[s]=Math.max((0,tY.t)(ew(o),ew(a),n),0),(t8.aQ.test(a)||t8.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tY.t)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,Z.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.Wi.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=(0,eZ.D)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&iv(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,t5.dO)();let e=tK(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tK(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}eC(e,i),(0,eV.D2)(e,r),tZ(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ez),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&e2("z",t,n,this.animationValues);for(let e=0;e<eQ.length;e++)e2(`rotate${eQ[e]}`,t,n,this.animationValues),e2(`skew${eQ[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return e0;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=H(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=H(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,eH.ud)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,ed.P){if(void 0===o[t])continue;let{correct:e,applyTo:i}=ed.P[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?H(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(e7),this.root.sharedNodes.clear()}}}function e5(t){t.updateLayout()}function e9(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?t9(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=tK(n);n.min=e[t].min,n.max=n.min+r}):iv(r,i.layoutBox,e)&&t9(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=tK(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,t5.wc)();tZ(o,e,i.layoutBox);let a=(0,t5.wc)();s?tZ(a,t.applyTransform(n,!0),i.measuredBox):tZ(a,e,i.layoutBox);let l=!eB(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,t5.dO)();tJ(o,i.layoutBox,r.layoutBox);let a=(0,t5.dO)();tJ(a,e,s.layoutBox),eI(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e6(t){eJ&&eq.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e8(t){t.clearSnapshot()}function e7(t){t.clearMeasurements()}function it(t){t.isLayoutDirty=!1}function ie(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ii(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ir(t){t.resolveTargetDelta()}function is(t){t.calcProjection()}function io(t){t.resetSkewAndRotation()}function ia(t){t.removeLeadSnapshot()}function il(t,e,i){t.translate=(0,tY.t)(e.translate,0,i),t.scale=(0,tY.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iu(t,e,i,n){t.min=(0,tY.t)(e.min,i.min,n),t.max=(0,tY.t)(e.max,i.max,n)}function ih(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ic={duration:.45,ease:[.4,0,.1,1]},id=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ip=id("applewebkit/")&&!id("chrome/")?Math.round:tp.Z;function im(t){t.min=ip(t.min),t.max=ip(t.max)}function iv(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eU(e)-eU(i)))}function ig(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let iy=e3({attachResizeListener:(t,e)=>J(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ix={current:void 0},iw=e3({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ix.current){let t=new iy({});t.mount(window),t.setOptions({layoutScroll:!0}),ix.current=t}return ix.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var iP=i(6276),ib=i(1165);let iT=(t,e)=>R(t)?new ib.e(e):new iP.W(e,{allowProjection:t!==s.Fragment}),iS={animation:{Feature:tj},exit:{Feature:tF},inView:{Feature:tb},tap:{Feature:tv},focus:{Feature:td},hover:{Feature:tc},pan:{Feature:ea},drag:{Feature:es,ProjectionNode:iw,MeasureLayout:ep},layout:{ProjectionNode:iw,MeasureLayout:ep}},iA=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:f}){t&&function(t){for(let e in t)P.featureDefinitions[e]={...P.featureDefinitions[e],...t[e]}}(t);let A=(0,s.forwardRef)(function(t,S){var A;let R;let C={...(0,s.useContext)(o._),...t,layoutId:function({layoutId:t}){let e=(0,s.useContext)(T.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:E}=C,V=function(t){let{initial:e,animate:i}=function(t,e){if((0,x.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,y.$)(e)?e:void 0,animate:(0,y.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:e,animate:i}),[w(e),w(i)])}(t),M=n(t,E);
1if(!E&&b.j){(0,s.useContext)(h).strict;let t=function(t){let{drag:e,layout:i}=P.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(C);R=t.MeasureLayout,V.visualElement=function(t,e,i,n,r){var f;let{visualElement:y}=(0,s.useContext)(a),x=(0,s.useContext)(h),w=(0,s.useContext)(l.O),P=(0,s.useContext)(o._).reducedMotion,b=(0,s.useRef)();n=n||x.renderer,!b.current&&n&&(b.current=n(t,{visualState:e,parent:y,props:i,presenceContext:w,blockInitialAnimation:!!w&&!1===w.initial,reducedMotionConfig:P}));let T=b.current,S=(0,s.useContext)(m);T&&!T.projection&&r&&("html"===T.type||"svg"===T.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&p(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(b.current,i,r,S),(0,s.useInsertionEffect)(()=>{T&&T.update(i,w)});let A=i[c.M],R=(0,s.useRef)(!!A&&!window.MotionHandoffIsComplete&&(null===(f=window.MotionHasOptimisedAnimation)||void 0===f?void 0:f.call(window,A)));return(0,u.L)(()=>{T&&(T.updateFeatures(),d.render(T.render),R.current&&T.animationState&&T.animationState.animateChanges())}),(0,s.useEffect)(()=>{T&&(!R.current&&T.animationState&&T.animationState.animateChanges(),R.current=!1,v||(v=!0,queueMicrotask(g)))}),T}(f,M,C,e,t.ProjectionNode)}return(0,r.jsxs)(a.Provider,{value:V,children:[R&&V.visualElement?(0,r.jsx)(R,{visualElement:V.visualElement,...C}):null,i(f,t,(A=V.visualElement,(0,s.useCallback)(t=>{t&&M.mount&&M.mount(t),A&&(t?A.mount(t):A.unmount()),S&&("function"==typeof S?S(t):p(S)&&(S.current=t))},[A])),M,E,V.visualElement)]})});return A[S]=f,A}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){return{...R(t)?_:q,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:r},o)=>{let a=(R(e)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=F();return(0,O.i)(i,e,(0,B.a)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};D(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return D(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=M();return(0,V.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,o,e),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(j(r)||!0===i&&k(r)||!e&&!k(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),u=e!==s.Fragment?{...l,...a,ref:n}:{},{children:h}=i,c=(0,s.useMemo)(()=>(0,E.i)(h)?h.get():h,[h]);return(0,s.createElement)(e,{...u,children:c})}}(e),createVisualElement:n,Component:t}})(t,e,iS,iT))},5998:function(t,e,i){"use strict";i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},7126:function(t,e,i){"use strict";i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},1937:function(t,e,i){"use strict";function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}i.d(e,{v:function(){return n}})},4637:function(t,e,i){"use strict";i.d(e,{I:function(){return r}});var n=i(9908);function r(t,e,i){var r;if("string"==typeof t){let s=document;e&&((0,n.k)(!!e.current,"Scope provided, but no element detected."),s=e.current),i?(null!==(r=i[t])&&void 0!==r||(i[t]=s.querySelectorAll(t)),t=i[t]):t=s.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}}
1,2756:function(t,e,i){"use strict";i.d(e,{Ei:function(){return d},lw:function(){return f},mP:function(){return a},z2:function(){return o}});var n=i(618),r=i(5218),s=i(2724);let o=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===r.Rx||t===s.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return l(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),c=n._.filter(t=>!h.has(t));function d(t){let e=[];return c.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let f={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:u(4,13),y:u(5,14)};f.translateX=f.x,f.translateY=f.y},3462:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(2263),r=i(2915),s=i(6217);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}}
1,6217:function(t,e,i){"use strict";i.d(e,{A:function(){return o}});var n=i(2809),r=i(2915);let s={...i(7346).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},1921:function(t,e,i){"use strict";i.d(e,{$:function(){return o},C:function(){return a}});var n=i(5218),r=i(2724),s=i(4707);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},7346:function(t,e,i){"use strict";i.d(e,{j:function(){return o}});var n=i(5218),r=i(2724);let s={...n.Rx,transform:Math.round},o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:s,backgroundPositionX:r.px,backgroundPositionY:r.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:s}},4707:function(t,e,i){"use strict";i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},6276:function(t,e,i){"use strict";i.d(e,{W:function(){return d}});var n=i(5275),r=i(7126),s=i(618),o=i(6235),a=i(4269),l=i(6217),u=i(411),h=i(176),c=i(2702);class d extends h.J{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=a.N}readValueFromInstance(t,e){if(s.G.has(e)){let t=(0,l.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,r.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.J)(t,e)}build(t,e,i){(0,n.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.U)(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,c.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},5275:function(t,e,i){"use strict";i.d(e,{r:function(){return u}});var n=i(618);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(7346);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=n._.length;var l=i(7126);function u(t,e,i){let{style:u,vars:h,transformOrigin:c}=t,d=!1,f=!1;for(let t in e){let i=e[t];if(n.G.has(t)){d=!0;continue}if((0,l.f)(t)){h[t]=i;continue}{let e=r(i,s.j[t]);t.startsWith("origin")?(f=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let l="",u=!0;for(let h=0;h<a;h++){let a=n._[h],c=t[a];if(void 0===c)continue;let d=!0;if(!(d="number"==typeof c?c===(a.startsWith("scale")?1:0):0===parseFloat(c))||i){let t=r(c,s.j[a]);if(!d){u=!1;let e=o[a]||a;l+=`${e}(${t}) `}i&&(e[a]=t)}}return l=l.trim(),i?l=i(e,u?"":l):u&&(l="none"),l}(e,t.transform,i):u.transform&&(u.transform="none")),f){let{originX:t="50%",originY:e="50%",originZ:i=0}=c;u.transformOrigin=`${t} ${e} ${i}`}}},4269:function(t,e,i){"use strict";function n(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}i.d(e,{N:function(){return n}})},6235:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(5403),r=i(2702);function s(t,e,i){var s;let{style:o}=t,a={};for(let l in o)((0,r.i)(o[l])||e.style&&(0,r.i)(e.style[l])||(0,n.j)(l,t)||(null===(s=null==i?void 0:i.getValue(l))||void 0===s?void 0:s.liveStyle)!==void 0)&&(a[l]=o[l]);return i&&o&&"string"==typeof o.willChange&&(i.applyWillChange=!1),a}}
1,618:function(t,e,i){"use strict";i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},8854:function(t,e,i){"use strict";i.d(e,{R:function(){return n}});let n=new WeakMap},1165:function(t,e,i){"use strict";i.d(e,{e:function(){return f}});var n=i(9548),r=i(176),s=i(8348),o=i(5998),a=i(8766),l=i(618),u=i(1661),h=i(6217),c=i(4884),d=i(7612);class f extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=c.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,h.A)(e);return t&&t.default||0}return e=a.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,n.U)(t,e,i)}build(t,e,i){(0,s.i)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,u.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,d.a)(t.tagName),super.mount(t)}}},8348:function(t,e,i){"use strict";i.d(e,{i:function(){return l}});var n=i(5275),r=i(2724);function s(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}let o={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},m,v){if((0,n.r)(t,p,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==h||y.transform)&&(y.transformOrigin=function(t,e,i){let n=s(e,t.x,t.width),r=s(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==c&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let l=s?o:a;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(g,c,d,f,!1)}},8766:function(t,e,i){"use strict";i.d(e,{s:function(){return n}});let n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},7612:function(t,e,i){"use strict";i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},1661:function(t,e,i){"use strict";i.d(e,{K:function(){return o}});var n=i(5998),r=i(4269),s=i(8766);function o(t,e,i,o){for(let i in(0,r.N)(t,e,void 0,o),e.attrs)t.setAttribute(s.s.has(i)?i:(0,n.D)(i),e.attrs[i])}},9548:function(t,e,i){"use strict";i.d(e,{U:function(){return o}});var n=i(2702),r=i(6235),s=i(618);function o(t,e,i){let o=(0,r.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==s._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},4178:function(t,e,i){"use strict";i.d(e,{e:function(){return c},m:function(){return h}});var n=i(2756),r=i(4205);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class c{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}}
1,9739:function(t,e,i){"use strict";i.d(e,{G:function(){return o},M:function(){return a}});var n=i(4633),r=i(6930),s=i(1867);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},6930:function(t,e,i){"use strict";function n(t){return"string"==typeof t||Array.isArray(t)}i.d(e,{$:function(){return n}})},1148:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(1422);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},1422:function(t,e,i){"use strict";function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},1867:function(t,e,i){"use strict";i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},6832:function(t,e,i){"use strict";i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},406:function(t,e,i){"use strict";function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},2476:function(t,e,i){"use strict";i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},9908:function(t,e,i){"use strict";i.d(e,{K:function(){return r},k:function(){return s}});var n=i(3393);let r=n.Z,s=n.Z},9780:function(t,e,i){"use strict";i.d(e,{s:function(){return u}});var n=i(9908),r=i(2476),s=i(9280),o=i(9049),a=i(3393),l=i(6722);function u(t,e,{clamp:i=!0,ease:u,mixer:h}={}){let c=t.length;if((0,n.k)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&t[0]===t[1])return()=>e[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let d=function(t,e,i){let n=[],r=i||l.C,o=t.length-1;for(let i=0;i<o;i++){let o=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||a.Z:e;o=(0,s.z)(t,o)}n.push(o)}return n}(e,u,h),f=d.length,p=e=>{let i=0;if(f>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,o.Y)(t[i],t[i+1],e);return d[i](n)};return i?e=>p((0,r.u)(t[0],t[c-1],e)):p}},1702:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},4829:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},6894:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},6190:function(t,e,i){"use strict";function n(t){let e;return()=>(void 0===e&&(e=t()),e)}i.d(e,{X:function(){return n}})},6722:function(t,e,i){"use strict";i.d(e,{C:function(){return A}});var n=i(5312),r=i(9908);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(4184),a=i(6352),l=i(9808);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},c=[o.$,a.m,l.J],d=t=>c.find(e=>e.test(t));function f(t){let e=d(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=f(t),r=f(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.t)(i.alpha,r.alpha,t),a.m.transform(s))};var m=i(9280),v=i(2809),g=i(2263),y=i(7126);let x=new Set(["none","hidden"]);function w(t,e){return i=>(0,n.t)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,y.t)(t)?u:v.$.test(t)?p:S:Array.isArray(t)?b:"object"==typeof t?v.$.test(t)?p:T:u}function b(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function T(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=P(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let i=g.P.createTransformer(e),n=(0,g.V)(t),s=(0,g.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?x.has(t)&&!s.values.length||x.has(e)&&!n.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,m.z)(b(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,s),s.values),i):((0,r.K)(!0,`Complex values '${t}' and '${e}
1' 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 A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,n.t)(t,e,i):P(t)(t,e)}},5312:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},3393:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let n=t=>t},5865:function(t,e,i){"use strict";i.d(e,{Y:function(){return r}});var n=i(2426);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},2426:function(t,e,i){"use strict";i.d(e,{c:function(){return s}});var n=i(5312),r=i(9049);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,r.Y)(0,e,s);t.push((0,n.t)(i,1,o))}}},9280:function(t,e,i){"use strict";i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},9049:function(t,e,i){"use strict";i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},698:function(t,e,i){"use strict";i.d(e,{Y:function(){return s},p:function(){return r}});var n=i(561);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.C)(t)?t[t.length-1]||0:t},2685:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(406);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},3303:function(t,e,i){"use strict";i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},2435:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8262:function(t,e,i){"use strict";i.d(e,{c:function(){return n}});let n={current:!1}},5526:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(2265);let r=i(1702).j?n.useLayoutEffect:n.useEffect},5364:function(t,e,i){"use strict";i.d(e,{W:function(){return r}});var n=i(2265);function r(t,e,i){(0,n.useInsertionEffect)(()=>t.on(e,i),[t,e,i])}},2181:function(t,e,i){"use strict";function n(t,e){return e?1e3/e*t:0}i.d(e,{R:function(){return n}})},3299:function(t,e,i){"use strict";i.d(e,{BX:function(){return h},Hg:function(){return u},S1:function(){return l}});var n=i(2685),r=i(2181),s=i(3791),o=i(4205);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.3.27",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=s.X.now();this.updatedAt!==i&&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=s.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 i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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=s.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,r.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 h(t,e){return new u(t,e)}}
1,4184:function(t,e,i){"use strict";i.d(e,{$:function(){return r}});var n=i(6352);let r={test:(0,i(204).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},9808:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(5218),r=i(2724),s=i(3922),o=i(204);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.Nw)(e))+", "+r.aQ.transform((0,s.Nw)(i))+", "+(0,s.Nw)(n.Fq.transform(o))+")"}},2809:function(t,e,i){"use strict";i.d(e,{$:function(){return a}});var n=i(3922),r=i(4184),s=i(9808),o=i(6352);let a={test:t=>o.m.test(t)||r.$.test(t)||s.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):s.J.test(t)?s.J.parse(t):r.$.parse(t),transform:t=>(0,n.HD)(t)?t:t.hasOwnProperty("red")?o.m.transform(t):s.J.transform(t)}},6352:function(t,e,i){"use strict";i.d(e,{m:function(){return u}});var n=i(2476),r=i(5218),s=i(3922),o=i(204);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.Nw)(r.Fq.transform(n))+")"}},204:function(t,e,i){"use strict";i.d(e,{d:function(){return s},i:function(){return r}});var n=i(3922);let r=(t,e)=>i=>!!((0,n.HD)(i)&&n.mj.test(i)&&i.startsWith(t)||e&&!(0,n.Rw)(i)&&Object.prototype.hasOwnProperty.call(i,e)),s=(t,e,i)=>r=>{if(!(0,n.HD)(r))return r;let[s,o,a,l]=r.match(n.KP);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},2915:function(t,e,i){"use strict";i.d(e,{h:function(){return l}});var n=i(2263),r=i(3922);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.KP)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},2263:function(t,e,i){"use strict";i.d(e,{P:function(){return d},V:function(){return l}});var n=i(2809),r=i(3922);let s="number",o="color",a=/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 l(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},l=[],u=0,h=e.replace(a,t=>(n.$.test(t)?(r.color.push(u),l.push(o),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(u),l.push("var"),i.push(t)):(r.number.push(u),l.push(s),i.push(parseFloat(t))),++u,"${}")).split("${}");return{values:i,split:h,indexes:r,types:l}}function u(t){return l(t).values}function h(t){let{split:e,types:i}=l(t),a=e.length;return t=>{let l="";for(let u=0;u<a;u++)if(l+=e[u],void 0!==t[u]){let e=i[u];e===s?l+=(0,r.Nw)(t[u]):e===o?l+=n.$.transform(t[u]):l+=t[u]}return l}}let c=t=>"number"==typeof t?0:t,d={test:function(t){var e,i;return isNaN(t)&&(0,r.HD)(t)&&((null===(e=t.match(r.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r.dA))||void 0===i?void 0:i.length)||0)>0},parse:u,createTransformer:h,getAnimatableNone:function(t){let e=u(t);return h(t)(e.map(c))}}},5218:function(t,e,i){"use strict";i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(2476);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},2724:function(t,e,i){"use strict";i.d(e,{$C:function(){return h},RW:function(){return s},aQ:function(){return o},px:function(){return a},vh:function(){return l},vw:function(){return u}});var n=i(3922);let r=t=>({test:e=>(0,n.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=r("deg"),o=r("%"),a=r("px"),l=r("vh"),u=r("vw"),h={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}}
1,3922:function(t,e,i){"use strict";i.d(e,{HD:function(){return a},KP:function(){return r},Nw:function(){return n},Rw:function(){return l},dA:function(){return s},mj:function(){return o}});let n=t=>Math.round(1e5*t)/1e5,r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,o=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function a(t){return"string"==typeof t}function l(t){return null==t}},1723:function(t,e,i){"use strict";let n,r;i.d(e,{v:function(){return O}});var s=i(3299),o=i(2435),a=i(2265),l=i(9908),u=i(4637);let h=new WeakMap;function c({target:t,contentRect:e,borderBoxSize:i}){var n;null===(n=h.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:i}=e[0];return{width:t,height:i}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,i)}})})}function d(t){t.forEach(c)}let f=new Set;var p=i(9049),m=i(2181);let v=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),g=()=>({time:0,x:v(),y:v()}),y={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function x(t,e,i,n){let r=i[e],{length:s,position:o}=y[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,p.Y)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,m.R)(r.current-a,u)}let w={All:[[0,0],[1,1]]},P={start:0,center:.5,end:1};function b(t,e,i=0){let n=0;if(t in P&&(t=P[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),i+n}let T=[0,0];var S=i(9780),A=i(5865);let R={x:0,y:0};var C=i(4205);let E=new WeakMap,V=new WeakMap,M=new WeakMap,D=t=>t===document.documentElement?window:t;var L=i(5526);function k(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 j=()=>({scrollX:(0,s.BX)(0),scrollY:(0,s.BX)(0),scrollXProgress:(0,s.BX)(0),scrollYProgress:(0,s.BX)(0)});function O({container:t,target:e,layoutEffect:i=!0,...s}={}){let l=(0,o.h)(j);return(i?L.L:a.useEffect)(()=>(k("target",e),k("container",t),function(t,{container:e=document.documentElement,...i}={}){let s=M.get(e);s||(s=new Set,M.set(e,s));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{x(t,"x",i,e),x(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=w.All}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):R,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;
1t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:T,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,P[t]?t:"0"]),b(r[0],i,n)-b(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=(0,S.s)(e[s].offset,(0,A.Y)(n)),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=e[s].interpolate(e[s].current)}(t,i,n)},notify:()=>e(i)}}(e,t,g(),i);if(s.add(o),!E.has(e)){let t=()=>{for(let t of s)t.measure()},i=()=>{for(let t of s)t.update(C.frameData.timestamp)},o=()=>{for(let t of s)t.notify()},a=()=>{C.Wi.read(t,!1,!0),C.Wi.read(i,!1,!0),C.Wi.update(o,!1,!0)};E.set(e,a);let l=D(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&V.set(e,"function"==typeof e?(f.add(e),r||(r=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};f.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{f.delete(e),!f.size&&r&&(r=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(d));let i=(0,u.I)(t);return i.forEach(t=>{let i=h.get(t);i||(i=new Set,h.set(t,i)),i.add(e),null==n||n.observe(t)}),()=>{i.forEach(t=>{let i=h.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=E.get(e);return C.Wi.read(a,!1,!0),()=>{var t;(0,C.Pn)(a);let i=M.get(e);if(!i||(i.delete(o),i.size))return;let n=E.get(e);E.delete(e),n&&(D(e).removeEventListener("scroll",n),null===(t=V.get(e))||void 0===t||t(),window.removeEventListener("resize",n))}}(({x:t,y:e})=>{l.scrollX.set(t.current),l.scrollXProgress.set(t.progress),l.scrollY.set(e.current),l.scrollYProgress.set(e.progress)},{...s,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(s.offset)]),l}},9696:function(t,e,i){"use strict";i.d(e,{K:function(){return l}});var n=i(3299),r=i(9634),s=i(406);class o extends n.Hg{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){let e=(0,r.p)(t);if(!e)return;let i=this.counts.get(e)||0;this.counts.set(e,i+1),0===i&&(this.output.push(e),this.update());let n=!1;return()=>{if(n)return;n=!0;let t=this.counts.get(e)-1;this.counts.set(e,t),0===t&&((0,s.cl)(this.output,e),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}var a=i(2702);function l(t,e){var i,n;if(!t.applyWillChange)return;let r=t.getValue("willChange");if(r||(null===(i=t.props.style)||void 0===i?void 0:i.willChange)||(r=new o("auto"),t.addValue("willChange",r)),n=r,(0,a.i)(n)&&n.add)return r.add(e)}},9634:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(1353),r=i(5998),s=i(618);function o(t){return s.G.has(t)?"transform":n.t.has(t)?(0,r.D)(t):void 0}},2702:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)}}]);
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.