"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4725],{16014:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},37156:function(t,e,i){i.d(e,{_:function(){return r}});var n=i(81662);let s=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function r(t,e,i,r){if(t===e&&i===r)return n.Z;let o=e=>(function(t,e,i,n,r){let o,a;let l=0;do(o=s(a=e+(i-e)/2,n,r)-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:s(o(t),e,r)}},89727:function(t,e,i){i.d(e,{Z:function(){return r}});var n=i(22081);let s=["read","resolveKeyframes","update","preRender","render","postRender"];function r(t,e){let i=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=s.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0,[e,i]=[i,e],i.clear(),e.forEach(a),n=!1,s&&(s=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let s=n.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(r=!1,t(f))},v=()=>{i=!0,r=!0,o.isProcessing||t(f)};return{schedule:s.reduce((t,e)=>{let n=l[e];return t[e]=(t,e=!1,s=!1)=>(i||v(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e(void 0===n&&a.set(r.frameData.isProcessing||s.c.useManualTiming?r.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},44725:function(t,e,i){function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{E:function(){return sT}});let s=t=>Array.isArray(t);function r(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,n){if("function"==typeof e){let[s,r]=a(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=a(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function u(t,e,i){let n=t.getProps();return l(n,e,void 0!==i?i:n.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h],c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(c),m=t=>1e3*t,f=t=>t/1e3,v={type:"spring",stiffness:500,damping:25,restSpeed:10},g=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),y={type:"keyframes",duration:.8},x={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P=(t,{keyframes:e})=>e.length>2?y:p.has(t)?t.startsWith("scale")?g(e[1]):v:x;function w(t,e){return t?t[e]||t.default||t:void 0}var T,b,S,A=i(22081);let V={current:!1},M=t=>null!==t;function E(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(M),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}var C=i(26166),R=i(37156);let D=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,k=t=>e=>1-t(1-e),L=(0,R._)(.33,1.53,.69,.99),j=k(L),F=D(j),B=t=>(t*=2)<1?.5*j(t):.5*(2-Math.pow(2,-10*(t-1))),O=t=>1-Math.sin(Math.acos(t)),W=k(O),$=D(O),I=t=>/^0[^.\s]+$/u.test(t);var U=i(45487);let N=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var X=i(57630);let z=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var Y=i(61649),K=i(96190);let H=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Z=t=>t===Y.Rx||t===K.px,q=(t,e)=>parseFloat(t.split(", ")[e]),_=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return q(s[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?q(e[1],t):0}},G=new Set(["x","y","z"]),J=c.filter(t=>!G.has(t)),Q={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:_(4,13),y:_(5,14)};Q.translateX=Q.x,Q.translateY=Q.y;let tt=t=>e=>e.test(t),te=[Y.Rx,K.px,K.aQ,K.RW,K.vw,K.vh,{test:t=>"auto"===t,parse:t=>t}],ti=t=>te.find(tt(t)),tn=new Set,ts=!1,tr=!1;function to(){if(tr){let t=Array.from(tn).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return J.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(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)})}tr=!1,ts=!1,tn.forEach(t=>t.complete()),tn.clear()}function ta(){tn.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tr=!0)})}class tl{constructor(t,e,i,n,s,r=!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=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tn.add(this),ts||(ts=!0,C.Wi.read(ta),C.Wi.resolveKeyframes(to))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s{let e=t.match(tp);return e?e.map(tc).join(" "):t}};var tf=i(85385);let tv={borderWidth:K.px,borderTopWidth:K.px,borderRightWidth:K.px,borderBottomWidth:K.px,borderLeftWidth:K.px,borderRadius:K.px,radius:K.px,borderTopLeftRadius:K.px,borderTopRightRadius:K.px,borderBottomRightRadius:K.px,borderBottomLeftRadius:K.px,width:K.px,maxWidth:K.px,height:K.px,maxHeight:K.px,top:K.px,right:K.px,bottom:K.px,left:K.px,padding:K.px,paddingTop:K.px,paddingRight:K.px,paddingBottom:K.px,paddingLeft:K.px,margin:K.px,marginTop:K.px,marginRight:K.px,marginBottom:K.px,marginLeft:K.px,backgroundPositionX:K.px,backgroundPositionY:K.px},tg={rotate:K.RW,rotateX:K.RW,rotateY:K.RW,rotateZ:K.RW,scale:Y.bA,scaleX:Y.bA,scaleY:Y.bA,scaleZ:Y.bA,skew:K.RW,skewX:K.RW,skewY:K.RW,distance:K.px,translateX:K.px,translateY:K.px,translateZ:K.px,x:K.px,y:K.px,z:K.px,perspective:K.px,transformPerspective:K.px,opacity:Y.Fq,originX:K.$C,originY:K.$C,originZ:K.px},ty={...Y.Rx,transform:Math.round},tx={...tv,...tg,zIndex:ty,size:K.px,fillOpacity:Y.Fq,strokeOpacity:Y.Fq,numOctaves:ty},tP={...tx,color:tf.$,backgroundColor:tf.$,outlineColor:tf.$,fill:tf.$,stroke:tf.$,borderColor:tf.$,borderTopColor:tf.$,borderRightColor:tf.$,borderBottomColor:tf.$,borderLeftColor:tf.$,filter:tm,WebkitFilter:tm},tw=t=>tP[t];function tT(t,e){let i=tw(t);return i!==tm&&(i=tu.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tb=new Set(["auto","none","0"]);class tS extends tl{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}var tA=i(81662);function tV(t){return"function"==typeof t}var tM=i(1117);let tE=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tu.P.test(t)||"0"===t)&&!t.startsWith("url("));class tC{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tM.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ta(),to()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=tM.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=tE(s,e),a=tE(r,e);return(0,U.K)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}var tR=i(3038);function tD(t,e,i){let n=Math.max(e-5,0);return(0,tR.R)(i-t(n),e-n)}var tk=i(24169);function tL(t,e){return t*Math.sqrt(1-e*e)}let tj=["duration","bounce"],tF=["stiffness","damping","mass"];function tB(t,e){return e.some(e=>void 0!==t[e])}function tO({keyframes:t,restDelta:e,restSpeed:i,...n}){let s;let r=t[0],o=t[t.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:h,duration:d,velocity:c,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tB(t,tF)&&tB(t,tj)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let s,r;(0,U.K)(t<=m(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,tk.u)(.05,1,o),t=(0,tk.u)(.01,10,f(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/tL(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=tL(Math.pow(e,2),o);return(n*i+i-r)*Math.exp(-n)*(-s(e)+.001>0?-1:1)/a}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=m(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-f(n.velocity||0)}),v=c||0,g=u/(2*Math.sqrt(l*h)),y=o-r,x=f(Math.sqrt(l/h)),P=5>Math.abs(y);if(i||(i=P?.01:2),e||(e=P?.005:.5),g<1){let t=tL(x,g);s=e=>o-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)s=t=>o-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);s=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return o-i*((v+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}return{calculatedDuration:p&&d||null,next:t=>{let n=s(t);if(p)a.done=t>=d;else{let r=0;g<1&&(r=0===t?m(v):tD(s,t,n));let l=Math.abs(r)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function tW({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/n),w=t=>x+P(t),T=t=>{let e=P(t),i=w(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},b=t=>{f(m.value)&&(d=t,c=tO({keyframes:[m.value,v(m.value)],velocity:tD(w,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}let t$=(0,R._)(.42,0,1,1),tI=(0,R._)(0,0,.58,1),tU=(0,R._)(.42,0,.58,1),tN=t=>Array.isArray(t)&&"number"!=typeof t[0],tX=t=>Array.isArray(t)&&"number"==typeof t[0],tz={linear:tA.Z,easeIn:t$,easeInOut:tU,easeOut:tI,circIn:O,circInOut:$,circOut:W,backIn:j,backInOut:F,backOut:L,anticipate:B},tY=t=>{if(tX(t)){(0,U.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return(0,R._)(e,i,n,s)}return"string"==typeof t?((0,U.k)(void 0!==tz[t],`Invalid easing type '${t}'`),tz[t]):t};var tK=i(71884),tH=i(30533);function tZ({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=tN(n)?n.map(tY):tY(n),r={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,tH.Y)(e)).map(e=>e*t),a=(0,tK.s)(o,e,{ease:Array.isArray(s)?s:e.map(()=>s||tU).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}var tq=i(83624),t_=i(79976);let tG=t=>{let e=({timestamp:e})=>t(e);return{start:()=>C.Wi.update(e,!0),stop:()=>(0,C.Pn)(e),now:()=>C.frameData.isProcessing?C.frameData.timestamp:tM.X.now()}},tJ={decay:tW,inertia:tW,tween:tZ,keyframes:tZ,spring:tO},tQ=t=>t/100;class t0 extends tC{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:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||tl;this.resolver=new r(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=tV(n)?n:tJ[n]||tZ;l!==tZ&&"number"!=typeof t[0]&&(e=(0,tq.z)(tQ,(0,t_.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=function(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}(u));let{calculatedDuration:h}=u,d=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(s+1)-r}}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:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=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-d*(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 y=this.currentTime,x=s;if(c){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,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=r)),y=(0,tk.u)(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:w}=P;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&void 0!==n&&(P.value=E(a,this.options,n)),f&&f(P.value),T&&this.finish(),P}get duration(){let{resolved:t}=this;return t?f(t.calculatedDuration):0}get time(){return f(this.currentTime)}set time(t){t=m(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=f(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tG,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.updateFinishedPromise()}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)}}let t1=new Set(["opacity","clipPath","filter","transform"]);var t2=i(23967);let t5=(t,e)=>{let i="",n=Math.max(Math.round(e/10),2);for(let e=0;e{var t;return null!==(t=t3[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t4=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function t7(t,e){t.timeline=e,t.onfinish=null}let et=(0,t6.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ee={anticipate:B,backInOut:F,circInOut:$};class ei extends tC{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new tS(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:s=300,times:r,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("string"==typeof o&&t9()&&o in ee&&(o=ee[o]),tV((n=this.options).type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&t9()||!e||"string"==typeof e&&(e in t8||t9())||tX(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 t0({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&t9()?t5(e,i):tX(e)?t4(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:s,times:r,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(t7(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(E(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return f(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return f(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=m(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 tA.Z;let{animation:i}=e;t7(i,t)}else this.pendingTimeline=t;return tA.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:n,type:s,ease:r,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new t0({...u,keyframes:i,duration:n,type:s,ease:r,times:o,isGenerator:!0}),d=m(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),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:s,damping:r,type:o}=t;return et()&&i&&t1.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}}var en=i(63594);class es{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(0,en.t)()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.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;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let er=(t,e,i,n={},s,r)=>o=>{let a=w(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=m(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...P(t,h)}),h.duration&&(h.duration=m(h.duration)),h.repeatDelay&&(h.repeatDelay=m(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(d=!0)),(V.current||A.c.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!r&&void 0!==e.get()){let t=E(h.keyframes,a);if(void 0!==t)return C.Wi.update(()=>{h.onUpdate(t),h.onComplete()}),new es([])}return!r&&ei.supports(h)?new ei(h):new t0(h)},eo=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),ea=t=>s(t)?t[t.length-1]||0:t;var el=i(33234);let eu=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eh="data-"+eu("framerAppearId"),ed=t=>!!(t&&t.getVelocity);function ec(t,e){let i=t.getValue("willChange");if(ed(i)&&i.add)return i.add(e)}function ep(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let h=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in l){let n=t.getValue(e,null!==(r=t.latestValues[e])&&void 0!==r?r:null),s=l[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...w(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[eh];if(i){let t=window.MotionHandoffAnimation(i,e,C.Wi);null!==t&&(a.startTime=t,u=!0)}}ec(t,e),n.start(er(e,n,s,t.shouldReduceMotion&&p.has(e)?{type:!1}:a,t,u));let c=n.animation;c&&h.push(c)}return a&&Promise.all(h).then(()=>{C.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=u(t,e)||{};for(let e in s={...s,...i}){let i=ea(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,el.BX)(i))}}(t,a)})}),h}function em(t,e,i={}){var n;let s=u(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let o=s?()=>Promise.all(ep(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ef).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(em(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ef(t,e){return t.sortNodePosition(e)}let ev=d.length,eg=[...h].reverse(),ey=h.length;function ex(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eP(){return{animate:ex(!0),whileInView:ex(),whileHover:ex(),whileTap:ex(),whileDrag:ex(),whileFocus:ex(),exit:ex()}}class ew{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eT extends ew{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=>em(t,e,i)));else if("string"==typeof e)n=em(t,e,i);else{let s="function"==typeof e?u(t,e,i.custom):e;n=Promise.all(ep(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=eP(),a=!0,l=e=>(i,n)=>{var s;let r=u(t,n,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function h(u){let{props:h}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tv&&P,A=!1,V=Array.isArray(x)?x:[x],M=V.reduce(l(d),{});!1===w&&(M={});let{prevResolvedValues:E={}}=y,C={...E,...M},R=e=>{S=!0,m.has(e)&&(A=!0,m.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=M[t],i=E[t];if(!f.hasOwnProperty(t))(s(e)&&s(i)?r(e,i):e===i)?void 0!==e&&m.has(t)?R(t):y.protectedKeys[t]=!0:null!=e?R(t):m.add(t)}y.prevProp=x,y.prevResolvedValues=M,y.isActive&&(f={...f,...M}),a&&t.blockInitialAnimation&&(S=!1);let D=!(T&&b)||A;S&&D&&p.push(...V.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let y=!!p.length;return a&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(y=!1),a=!1,y?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=h(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eP(),a=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(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 eb=0;class eS extends ew{constructor(){super(...arguments),this.id=eb++}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(){}}let eA=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eV(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let eM=t=>e=>eA(e)&&t(e,eV(e));function eE(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function eC(t,e,i,n){return eE(t,e,eM(i),n)}let eR=(t,e)=>Math.abs(t-e);class eD{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!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=ej(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(eR(t.x,e.x)**2+eR(t.y,e.y)**2)>=3);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=C.frameData;this.history.push({...r,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=ek(e,this.transformPagePoint),C.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ej("pointercancel"===t.type?this.lastMoveEventInfo:ek(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!eA(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=ek(eV(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=C.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,ej(r,this.history)),this.removeListeners=(0,tq.z)(eC(this.contextWindow,"pointermove",this.handlePointerMove),eC(this.contextWindow,"pointerup",this.handlePointerUp),eC(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,C.Pn)(this.updatePoint)}}function ek(t,e){return e?{point:e(t.point)}:t}function eL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ej({point:t},e){return{point:t,delta:eL(t,eF(e)),offset:eL(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=eF(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>m(.1)));)i--;if(!n)return{x:0,y:0};let r=f(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function eF(t){return t[t.length-1]}function eB(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let eO=eB("dragHorizontal"),eW=eB("dragVertical");function e$(t){let e=!1;if("y"===t)e=eW();else if("x"===t)e=eO();else{let t=eO(),i=eW();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function eI(){let t=e$(!0);return!t||(t(),!1)}function eU(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var eN=i(40179);function eX(t){return t.max-t.min}function ez(t,e,i,n=.5){t.origin=n,t.originPoint=(0,eN.t)(e.min,e.max,t.origin),t.scale=eX(i)/eX(e),t.translate=(0,eN.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)}function eY(t,e,i,n){ez(t.x,e.x,i.x,n?n.originX:void 0),ez(t.y,e.y,i.y,n?n.originY:void 0)}function eK(t,e,i){t.min=i.min+e.min,t.max=t.min+eX(e)}function eH(t,e,i){t.min=e.min-i.min,t.max=t.min+eX(e)}function eZ(t,e,i){eH(t.x,e.x,i.x),eH(t.y,e.y,i.y)}function eq(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 e_(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),e0=()=>({x:eQ(),y:eQ()}),e1=()=>({min:0,max:0}),e2=()=>({x:e1(),y:e1()});function e5(t){return[t("x"),t("y")]}function e6({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e3(t){return void 0===t||1===t}function e9({scale:t,scaleX:e,scaleY:i}){return!e3(t)||!e3(e)||!e3(i)}function e4(t){return e9(t)||e8(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e8(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e7(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function it(t,e=0,i=1,n,s){t.min=e7(t.min,e,i,n,s),t.max=e7(t.max,e,i,n,s)}function ie(t,{x:e,y:i}){it(t.x,e.translate,e.scale,e.originPoint),it(t.y,i.translate,i.scale,i.originPoint)}function ii(t,e){t.min=t.min+e,t.max=t.max+e}function is(t,e,i,n,s=.5){let r=(0,eN.t)(t.min,t.max,s);it(t,e,i,r,n)}function ir(t,e){is(t.x,e.x,e.scaleX,e.scale,e.originX),is(t.y,e.y,e.scaleY,e.scale,e.originY)}function io(t,e){return e6(function(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}}(t.getBoundingClientRect(),e))}let ia=({current:t})=>t?t.ownerDocument.defaultView:null,il=new WeakMap;class iu{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=e2(),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 eD(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eV(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=e$(i),!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),e5(t=>{let e=this.getAxisMotionValue(t).get()||0;if(K.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=eX(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),s&&C.Wi.postRender(()=>s(t,e)),ec(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>e5(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:ia(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&C.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||!ih(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,eN.t)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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,s=this.constraints;e&&eU(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:eq(t.x,i,s),y:eq(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:eG(t,"left","right"),y:eG(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&e5(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||!eU(e))return!1;let n=e.current;(0,U.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=io(t,i),{scroll:s}=e;return s&&(ii(n.x,s.offset.x),ii(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o={x:e_((t=s.layout.layoutBox).x,r.x),y:e_(t.y,r.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e6(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(e5(o=>{if(!ih(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(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,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ec(this.visualElement,t),i.start(er(t,i,0,e,this.visualElement,!1))}stopAnimation(){e5(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){e5(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){e5(e=>{let{drag:i}=this.getProps();if(!ih(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,eN.t)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eU(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};e5(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=eX(t),s=eX(e);return s>n?i=(0,t2.Y)(e.min,e.max-n,t.min):n>s&&(i=(0,t2.Y)(t.min,t.max-s,e.min)),(0,tk.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),e5(e=>{if(!ih(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,eN.t)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;il.set(this.visualElement,this);let t=eC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();eU(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()),C.Wi.read(e);let s=eE(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(e5(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function ih(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class id extends ew{constructor(t){super(t),this.removeGroupControls=tA.Z,this.removeListeners=tA.Z,this.controls=new iu(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tA.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ic=t=>(e,i)=>{t&&C.Wi.postRender(()=>t(e,i))};class ip extends ew{constructor(){super(...arguments),this.removePointerDownListener=tA.Z}onPointerDown(t){this.session=new eD(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ia(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ic(t),onStart:ic(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&C.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=eC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var im=i(85893),iv=i(67294);let ig=(0,iv.createContext)(null),iy=(0,iv.createContext)({}),ix=(0,iv.createContext)({}),iP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let iT={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!K.px.test(t))return t;t=parseFloat(t)}let i=iw(t,e.target.x),n=iw(t,e.target.y);return`${i}% ${n}%`}},ib={},{schedule:iS,cancel:iA}=(0,i(89727).Z)(queueMicrotask,!1);class iV extends iv.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;Object.assign(ib,iE),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),iP.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||C.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iS.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 iM(t){let[e,i]=function(){let t=(0,iv.useContext)(ig);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,s=(0,iv.useId)();(0,iv.useEffect)(()=>n(s),[]);let r=(0,iv.useCallback)(()=>i&&i(s),[s,i]);return!e&&i?[!1,r]:[!0]}(),n=(0,iv.useContext)(iy);return(0,im.jsx)(iV,{...t,layoutGroup:n,switchLayoutGroup:(0,iv.useContext)(ix),isPresent:e,safeToRemove:i})}let iE={borderRadius:{...iT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iT,borderTopRightRadius:iT,borderBottomLeftRadius:iT,borderBottomRightRadius:iT,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tu.P.parse(t);if(n.length>5)return t;let s=tu.P.createTransformer(t),r="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=(0,eN.t)(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var iC=i(21560);let iR=["TopLeft","TopRight","BottomLeft","BottomRight"],iD=iR.length,ik=t=>"string"==typeof t?parseFloat(t):t,iL=t=>"number"==typeof t||K.px.test(t);function ij(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iF=iO(0,.5,W),iB=iO(.5,.95,tA.Z);function iO(t,e,i){return n=>ne?1:i((0,t2.Y)(t,e,n))}function iW(t,e){t.min=e.min,t.max=e.max}function i$(t,e){iW(t.x,e.x),iW(t.y,e.y)}function iI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iU(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function iN(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(K.aQ.test(e)&&(e=parseFloat(e),e=(0,eN.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,eN.t)(r.min,r.max,n);t===r&&(a-=e),t.min=iU(t.min,e,i,a,s),t.max=iU(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let iX=["x","scaleX","originX"],iz=["y","scaleY","originY"];function iY(t,e,i,n){iN(t.x,e,iX,i?i.x:void 0,n?n.x:void 0),iN(t.y,e,iz,i?i.y:void 0,n?n.y:void 0)}function iK(t){return 0===t.translate&&1===t.scale}function iH(t){return iK(t.x)&&iK(t.y)}function iZ(t,e){return t.min===e.min&&t.max===e.max}function iq(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function i_(t,e){return iq(t.x,e.x)&&iq(t.y,e.y)}function iG(t){return eX(t.x)/eX(t.y)}function iJ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var iQ=i(10010);class i0{constructor(){this.members=[]}add(t){(0,iQ.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,iQ.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)}}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)}}let i1=(t,e)=>t.depth-e.depth;class i2{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iQ.y4)(this.children,t),this.isDirty=!0}remove(t){(0,iQ.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i1),this.isDirty=!1,this.children.forEach(t)}}function i5(t){let e=ed(t)?t.get():t;return eo(e)?e.toValue():e}let i6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},i3="undefined"!=typeof window&&void 0!==window.MotionDebug,i9=["","X","Y","Z"],i4={visibility:"hidden"},i8=0;function i7(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nt({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=i8++,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,i3&&(i6.totalNodes=i6.resolvedTargetDeltas=i6.recalculatedProjection=0),this.nodes.forEach(nn),this.nodes.forEach(nh),this.nodes.forEach(nd),this.nodes.forEach(ns),i3&&window.MotionDebug.record(i6)},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;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tM.X.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,C.Pn)(n),t(s-250))};return C.Wi.read(n,!0),()=>(0,C.Pn)(n)}(n,0),iP.hasAnimatedSinceResize&&(iP.hasAnimatedSinceResize=!1,this.nodes.forEach(nu))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||ng,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!i_(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={...w(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nu(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,C.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.forEach(nc),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[eh];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",C.Wi,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{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.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(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=e2());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iI(this.prevProjectionDelta.x,this.projectionDelta.x),iI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eY(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iJ(this.projectionDelta.x,this.prevProjectionDelta.x)&&iJ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),i3&&i6.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=e0(),this.projectionDelta=e0(),this.projectionDeltaWithTransform=e0()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=e0();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=e2(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(nv));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(nm(o.x,t.x,n),nm(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;eZ(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,nf(p.x,m.x,a.x,n),nf(p.y,m.y,a.y,n),i&&(u=this.relativeTarget,c=i,iZ(u.x,c.x)&&iZ(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=e2()),i$(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,eN.t)(0,void 0!==i.opacity?i.opacity:1,iF(n)),t.opacityExit=(0,eN.t)(void 0!==e.opacity?e.opacity:1,0,iB(n))):r&&(t.opacity=(0,eN.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s{iP.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=ed(0)?0:(0,el.BX)(0);return n.start(er("",n,1e3,i)),n.animation}(0,0,{...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:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&nw(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||e2();let e=eX(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=eX(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}i$(e,i),ir(e,s),eY(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new i0),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&&i7("z",t,n,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(no),this.root.sharedNodes.clear()}}}function ne(t){t.updateLayout()}function ni(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:s}=t.options,r=i.source!==t.layout.source;"size"===s?e5(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=eX(n);n.min=e[t].min,n.max=n.min+s}):nw(s,i.layoutBox,e)&&e5(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=eX(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=e0();eY(o,e,i.layoutBox);let a=e0();r?eY(a,t.applyTransform(n,!0),i.measuredBox):eY(a,e,i.layoutBox);let l=!iH(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=e2();eZ(o,i.layoutBox,s.layoutBox);let a=e2();eZ(a,e,r.layoutBox),i_(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 nn(t){i3&&i6.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 ns(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nr(t){t.clearSnapshot()}function no(t){t.clearMeasurements()}function na(t){t.isLayoutDirty=!1}function nl(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nu(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nh(t){t.resolveTargetDelta()}function nd(t){t.calcProjection()}function nc(t){t.resetSkewAndRotation()}function np(t){t.removeLeadSnapshot()}function nm(t,e,i){t.translate=(0,eN.t)(e.translate,0,i),t.scale=(0,eN.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nf(t,e,i,n){t.min=(0,eN.t)(e.min,i.min,n),t.max=(0,eN.t)(e.max,i.max,n)}function nv(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ng={duration:.45,ease:[.4,0,.1,1]},ny=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nx=ny("applewebkit/")&&!ny("chrome/")?Math.round:tA.Z;function nP(t){t.min=nx(t.min),t.max=nx(t.max)}function nw(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iG(e)-iG(i)))}function nT(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let nb=nt({attachResizeListener:(t,e)=>eE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nS={current:void 0},nA=nt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nS.current){let t=new nb({});t.mount(window),t.setOptions({layoutScroll:!0}),nS.current=t}return nS.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nV(t,e){let i=e?"onHoverStart":"onHoverEnd";return eC(t.current,e?"pointerenter":"pointerleave",(n,s)=>{if("touch"===n.pointerType||eI())return;let r=t.getProps();t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",e);let o=r[i];o&&C.Wi.postRender(()=>o(n,s))},{passive:!t.getProps()[i]})}class nM extends ew{mount(){this.unmount=(0,tq.z)(nV(this.node,!0),nV(this.node,!1))}unmount(){}}class nE extends ew{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,tq.z)(eE(this.node.current,"focus",()=>this.onFocus()),eE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nC=(t,e)=>!!e&&(t===e||nC(t,e.parentElement));function nR(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,eV(i))}class nD extends ew{constructor(){super(...arguments),this.removeStartListeners=tA.Z,this.removeEndListeners=tA.Z,this.removeAccessibleListeners=tA.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=eC(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:s}=this.node.getProps(),r=s||nC(this.node.current,t.target)?i:n;r&&C.Wi.update(()=>r(t,e))},{passive:!(i.onTap||i.onPointerUp)}),s=eC(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tq.z)(n,s),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=eE(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eE(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&nR("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&C.Wi.postRender(()=>i(t,e))})}),nR("down",(t,e)=>{this.startPress(t,e)}))}),e=eE(this.node.current,"blur",()=>{this.isPressing&&nR("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tq.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&&C.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),!eI()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&C.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=eC(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=eE(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tq.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let nk=new WeakMap,nL=new WeakMap,nj=t=>{let e=nk.get(t.target);e&&e(t)},nF=t=>{t.forEach(nj)},nB={some:0,all:1};class nO extends ew{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:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:nB[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;nL.has(i)||nL.set(i,{});let n=nL.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(nF,{root:t,...e})),n[s]}(e);return nk.set(t,i),n.observe(t),()=>{nk.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!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(),r=e?i:n;r&&r(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 nW=i(16014);let n$=(0,iv.createContext)({});var nI=i(58868);let nU=(0,iv.createContext)({strict:!1});function nN(t){return n(t.animate)||d.some(e=>o(t[e]))}function nX(t){return!!(nN(t)||t.variants)}function nz(t){return Array.isArray(t)?t.join(" "):t}let nY={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"]},nK={};for(let t in nY)nK[t]={isEnabled:e=>nY[t].some(t=>!!e[t])};var nH=i(11741);let nZ=Symbol.for("motionComponentSymbol"),nq=["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 n_(t){if("string"!=typeof t||t.includes("-"));else if(nq.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function nG(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}let nJ=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"]);function nQ(t,e,i,n){for(let i in nG(t,e,void 0,n),e.attrs)t.setAttribute(nJ.has(i)?i:eu(i),e.attrs[i])}function n0(t,{layout:e,layoutId:i}){return p.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ib[t]||"opacity"===t)}function n1(t,e,i){var n;let{style:s}=t,r={};for(let o in s)(ed(s[o])||e.style&&ed(e.style[o])||n0(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function n2(t,e,i){let n=n1(t,e,i);for(let i in t)(ed(t[i])||ed(e[i]))&&(n[-1!==c.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}var n5=i(96681);let n6=t=>(e,i)=>{let s=(0,iv.useContext)(n$),r=(0,iv.useContext)(ig),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},s,r,o){let a={latestValues:function(t,e,i,s){let r={},o=s(t,{});for(let t in o)r[t]=i5(o[t]);let{initial:a,animate:u}=t,h=nN(t),d=nX(t);e&&d&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===a)?u:a;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;ii(s,t,a)),a})(t,e,s,r);return i?o():(0,n5.h)(o)},n3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),n9=()=>({...n3(),attrs:{}}),n4=(t,e)=>e&&"number"==typeof t?e.transform(t):t,n8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},n7=c.length;function st(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(p.has(t)){o=!0;continue}if((0,X.f)(t)){s[t]=i;continue}{let e=n4(i,tx[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r"string"==typeof t&&"svg"===t.toLowerCase(),so={useVisualState:n6({scrapeMotionValuesFromProps:n2,createRenderState:n9,onMount:(t,e,{renderState:i,latestValues:n})=>{C.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}}}),C.Wi.render(()=>{ss(i,n,sr(e.tagName),t.transformTemplate),nQ(e,i)})}})},sa={useVisualState:n6({scrapeMotionValuesFromProps:n1,createRenderState:n3})};function sl(t,e,i){for(let n in e)ed(e[n])||n0(n,i)||(t[n]=e[n])}let su=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 sh(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||su.has(t)}let sd=t=>!sh(t);try{(T=require("@emotion/is-prop-valid").default)&&(sd=t=>t.startsWith("on")?!sh(t):T(t))}catch(t){}let sc={current:null},sp={current:!1},sm=new WeakMap,sf=[...te,tf.$,tu.P],sv=t=>sf.find(tt(t)),sg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sy{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tM.X.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),sp.current||function(){if(sp.current=!0,nH.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sc.current=t.matches;t.addListener(e),e()}else sc.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in sm.delete(this.current),this.projection&&this.projection.unmount(),(0,C.Pn)(this.notifyUpdate),(0,C.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=p.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&C.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),i&&i(),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 nK){let e=nK[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):e2()}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;ee.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,el.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&&(N(n)||I(n))?n=parseFloat(n):!sv(n)&&tu.P.test(e)&&(n=tT(t,e)),this.setBaseTarget(t,ed(n)?n.get():n)),ed(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 s=l(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||ed(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new iC.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sx extends sy{constructor(){super(...arguments),this.KeyframeResolver=tS}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]}}class sP extends sx{constructor(){super(...arguments),this.type="html",this.renderInstance=nG}readValueFromInstance(t,e){if(p.has(e)){let t=tw(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,X.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return io(t,e)}build(t,e,i){st(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return n1(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ed(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sw extends sx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=e2}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(p.has(e)){let t=tw(e);return t&&t.default||0}return e=nJ.has(e)?e:eu(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return n2(t,e,i)}build(t,e,i){ss(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){nQ(t,e,i,n)}mount(t){this.isSVGTag=sr(t.tagName),super.mount(t)}}let sT=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((b={animation:{Feature:eT},exit:{Feature:eS},inView:{Feature:nO},tap:{Feature:nD},focus:{Feature:nE},hover:{Feature:nM},pan:{Feature:ip},drag:{Feature:id,ProjectionNode:nA,MeasureLayout:iM},layout:{ProjectionNode:nA,MeasureLayout:iM}},S=(t,e)=>n_(t)?new sw(e):new sP(e,{allowProjection:t!==iv.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:s}){t&&function(t){for(let e in t)nK[e]={...nK[e],...t[e]}}(t);let r=(0,iv.forwardRef)(function(t,r){var a;let l;let u={...(0,iv.useContext)(nW._),...t,layoutId:function({layoutId:t}){let e=(0,iv.useContext)(iy).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if(nN(t)){let{initial:e,animate:i}=t;return{initial:!1===e||o(e)?e:void 0,animate:o(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iv.useContext)(n$));return(0,iv.useMemo)(()=>({initial:e,animate:i}),[nz(e),nz(i)])}(t),c=n(t,h);if(!h&&nH.j){(0,iv.useContext)(nU).strict;let t=function(t){let{drag:e,layout:i}=nK;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}}(u);l=t.MeasureLayout,d.visualElement=function(t,e,i,n,s){var r,o;let{visualElement:a}=(0,iv.useContext)(n$),l=(0,iv.useContext)(nU),u=(0,iv.useContext)(ig),h=(0,iv.useContext)(nW._).reducedMotion,d=(0,iv.useRef)();n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,iv.useContext)(ix);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,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:s,layout:r,alwaysMeasureLayout:!!o||a&&eU(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,iv.useRef)(!1);(0,iv.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[eh],v=(0,iv.useRef)(!!f&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,nI.L)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),iS.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,iv.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(s,c,u,e,t.ProjectionNode)}return(0,im.jsxs)(n$.Provider,{value:d,children:[l&&d.visualElement?(0,im.jsx)(l,{visualElement:d.visualElement,...u}):null,i(s,t,(a=d.visualElement,(0,iv.useCallback)(t=>{t&&c.mount&&c.mount(t),a&&(t?a.mount(t):a.unmount()),r&&("function"==typeof r?r(t):eU(r)&&(r.current=t))},[a])),c,h,d.visualElement)]})});return r[nZ]=s,r}({...n_(t)?so:sa,preloadedFeatures:b,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(n_(e)?function(t,e,i,n){let s=(0,iv.useMemo)(()=>{let i=n9();return ss(i,e,sr(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sl(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sl(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,iv.useMemo)(()=>{let i=n3();return st(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,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sd(s)||!0===i&&sh(s)||!e&&!sh(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==iv.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,iv.useMemo)(()=>ed(u)?u.get():u,[u]);return(0,iv.createElement)(e,{...l,children:h})}}(e),createVisualElement:S,Component:t})}))},63594:function(t,e,i){i.d(e,{t:function(){return n}});let n=(0,i(4522).X)(()=>void 0!==window.ScrollTimeline)},57630:function(t,e,i){i.d(e,{f:function(){return s},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),o=t=>!!r(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},22081:function(t,e,i){i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},10010:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return s},y4:function(){return n}})},24169:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:ie[0];if(2===d&&t[0]===t[1])return()=>e[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let c=function(t,e,i){let n=[],s=i||l.C,o=t.length-1;for(let i=0;i{let i=0;if(p>1)for(;im((0,s.u)(t[0],t[d-1],e)):m}},11741:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},4522:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},79976:function(t,e,i){i.d(e,{C:function(){return A}});var n=i(40179),s=i(45487);function r(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(26382),a=i(40819),l=i(93184);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},d=[o.$,a.m,l.J],c=t=>d.find(e=>e.test(t));function p(t){let e=c(t);if((0,s.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 s=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;s=r(l,n,t+1/3),o=r(l,n,t),a=r(l,n,t-1/3)}else s=o=a=i;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let m=(t,e)=>{let i=p(t),s=p(e);if(!i||!s)return u(t,e);let r={...i};return t=>(r.red=h(i.red,s.red,t),r.green=h(i.green,s.green,t),r.blue=h(i.blue,s.blue,t),r.alpha=(0,n.t)(i.alpha,s.alpha,t),a.m.transform(r))};var f=i(83624),v=i(85385),g=i(56737),y=i(57630);let x=new Set(["none","hidden"]);function P(t,e){return i=>(0,n.t)(t,e,i)}function w(t){return"number"==typeof t?P:"string"==typeof t?(0,y.t)(t)?u:v.$.test(t)?m:S:Array.isArray(t)?T:"object"==typeof t?v.$.test(t)?m:b:u}function T(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e{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),r=(0,g.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?x.has(t)&&!r.values.length||x.has(e)&&!n.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,f.z)(T(function(t,e){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;rt+(e-t)*i},81662:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},30533:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(40179),s=i(23967);function r(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let o=(0,s.Y)(0,e,r);t.push((0,n.t)(i,1,o))}}(e,t.length-1),e}},83624:function(t,e,i){i.d(e,{z:function(){return s}});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},23967:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},21560:function(t,e,i){i.d(e,{L:function(){return s}});var n=i(10010);class s{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 s=0;s!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.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=r.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=r.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,s.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)}},26382:function(t,e,i){i.d(e,{$:function(){return s}});var n=i(40819);let s={test:(0,i(69940).i)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.m.transform}},93184:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(61649),s=i(96190),r=i(93609),o=i(69940);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)+", "+s.aQ.transform((0,r.N)(e))+", "+s.aQ.transform((0,r.N)(i))+", "+(0,r.N)(n.Fq.transform(o))+")"}},85385:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(26382),s=i(93184),r=i(40819);let o={test:t=>r.m.test(t)||n.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},40819:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(24169),s=i(61649),r=i(93609),o=i(69940);let a=t=>(0,n.u)(0,255,t),l={...s.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,r.N)(s.Fq.transform(n))+")"}},69940:function(t,e,i){i.d(e,{i:function(){return r},d:function(){return o}});var n=i(68054);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,o,a,l]=s.match(n.K);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},56737:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return m}});var n=i(85385);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(68054),o=i(93609);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(s.color.push(o),r.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(s.var.push(o),r.push("var"),i.push(t)):(s.number.push(o),r.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:s,types:r}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),s=e.length;return t=>{let r="";for(let u=0;u"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(r.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(s))||void 0===i?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},61649:function(t,e,i){i.d(e,{Fq:function(){return r},Rx:function(){return s},bA:function(){return o}});var n=i(24169);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.u)(0,1,t)},o={...s,default:1}},96190:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return s},aQ:function(){return r},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},68054:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},93609:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5}}]);