1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4416],{25920:function(t,e,i){i.d(e,{Z:function(){return s}});var n,r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(n={},function(t){return void 0===n[t]&&(n[t]=r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)),n[t]})}
1,49008:function(t,e,i){i.d(e,{S:function(){return spring}});var n=i(53279),r=i(44300),s=i(29793),o=i(76495);function calcAngularFreq(t,e){return t*Math.sqrt(1-e*e)}let a=["duration","bounce"],l=["stiffness","damping","mass"];function isSpringType(t,e){return e.some(e=>void 0!==t[e])}function spring({keyframes:t,restDelta:e,restSpeed:i,...u}){let c;let h=t[0],d=t[t.length-1],p={done:!1,value:h},{stiffness:m,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!isSpringType(t,l)&&isSpringType(t,a)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let a,l;(0,s.K)(t<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let u=1-e;u=(0,o.u)(.05,1,u),t=(0,o.u)(.01,10,(0,n.X)(t)),u<1?(a=e=>{let n=e*u,r=n*t,s=calcAngularFreq(e,u);return .001-(n-i)/s*Math.exp(-r)},l=e=>{let n=e*u,r=n*t,s=Math.pow(u,2)*Math.pow(e,2)*t,o=calcAngularFreq(Math.pow(e,2),u),l=-a(e)+.001>0?-1:1;return l*((r*i+i-s)*Math.exp(-r))/o}):(a=e=>{let n=Math.exp(-e*t),r=(e-i)*t+1;return -.001+n*r},l=e=>{let n=Math.exp(-e*t),r=(i-e)*(t*t);return n*r});let c=5/t,h=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(a,l,c);if(t=(0,n.w)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(h,2)*r;return{stiffness:e,damping:2*u*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-(0,n.X)(u.velocity||0)}),P=y||0,A=f/(2*Math.sqrt(m*g)),T=d-h,b=(0,n.X)(Math.sqrt(m/g)),V=5>Math.abs(T);if(i||(i=V?.01:2),e||(e=V?.005:.5),A<1){let t=calcAngularFreq(b,A);c=e=>{let i=Math.exp(-A*b*e);return d-i*((P+A*b*T)/t*Math.sin(t*e)+T*Math.cos(t*e))}}else if(1===A)c=t=>d-Math.exp(-b*t)*(T+(P+b*T)*t);else{let t=b*Math.sqrt(A*A-1);c=e=>{let i=Math.exp(-A*b*e),n=Math.min(t*e,300);return d-i*((P+A*b*T)*Math.sinh(n)+t*T*Math.cosh(n))/t}}return{calculatedDuration:x&&v||null,next:t=>{let n=c(t);if(x)p.done=t>=v;else{let s=P;0!==t&&(s=A<1?(0,r.P)(c,t,n):0);let o=Math.abs(s)<=i,a=Math.abs(d-n)<=e;p.done=o&&a}return p.value=p.done?d:n,p}}}},30858:function(t,e,i){i.d(e,{E:function(){return n},i:function(){return calcGeneratorDuration}});let n=2e4;function calcGeneratorDuration(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}},44300:function(t,e,i){i.d(e,{P:function(){return calcGeneratorVelocity}});var n=i(44954);function calcGeneratorVelocity(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},80491:function(t,e,i){i.d(e,{v:function(){return animateMotionValue}});var n=i(29793),r=i(53279);let s={current:!1},isBezierDefinition=t=>Array.isArray(t)&&"number"==typeof t[0],cubicBezierAsString=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,o={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};var a=i(58261);let calcBezier=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function cubicBezier(t,e,i,n){if(t===e&&i===n)return a.Z;let getTForX=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=calcBezier(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,n)}let l=cubicBezier(.42,0,1,1),u=cubicBezier(0,0,.58,1),c=cubicBezier(.42,0,.58,1);var h=i(81988),d=i(41473),p=i(39708),m=i(87623);let f=cubicBezier(.33,1.53,.69,.99),g=(0,m.M)(f),v=(0,p.o)(g),y={linear:a.Z,easeIn:l,easeInOut:c,easeOut:u,circIn:d.Z7,circInOut:d.X7,circOut:d.Bn,backIn:g,backInOut:v,backOut:f,anticipate:t=>(t*=2)<1?.5*g(t):.5*(2-Math.pow(2,-10*(t-1)))},easingDefinitionToFunction=t=>{if(Array.isArray(t)){(0,n.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,s]=t;return cubicBezier(e,i,r,s)}return"string"==typeof t?((0,n.k)(void 0!==y[t],`Invalid easing type '${t}'`),y[t]):t};var x=i(4657),P=i(13253);function keyframes({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,h.N)(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),s={done:!1,value:e[0]}
1,o=(i&&i.length===e.length?i:(0,P.Y)(e)).map(e=>e*t),a=(0,x.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||c).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var A=i(49008),T=i(44300);function inertia({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let p=t[0],m={done:!1,value:p},isOutOfBounds=t=>void 0!==a&&t<a||void 0!==l&&t>l,nearestBoundary=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let calcDelta=t=>-f*Math.exp(-t/n),calcLatest=t=>v+calcDelta(t),applyFriction=t=>{let e=calcDelta(t),i=calcLatest(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},checkCatchBoundary=t=>{isOutOfBounds(m.value)&&(h=t,d=(0,A.S)({keyframes:[m.value,nearestBoundary(m.value)],velocity:(0,T.P)(calcLatest,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return checkCatchBoundary(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,applyFriction(t),checkCatchBoundary(t)),void 0!==h&&t>h)?d.next(t-h):(e||applyFriction(t),m)}}}var b=i(81730);let frameloopDriver=t=>{let passTimestamp=({timestamp:e})=>t(e);return{start:()=>b.Wi.update(passTimestamp,!0),stop:()=>(0,b.Pn)(passTimestamp),now:()=>b.frameData.isProcessing?b.frameData.timestamp:performance.now()}};var V=i(76495),S=i(30858);let C={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:A.S};function animateValue({autoplay:t=!0,delay:e=0,driver:i=frameloopDriver,keyframes:n,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:u,onStop:c,onComplete:h,onUpdate:d,...p}){let m,f,g,v,y,P=1,A=!1,updateFinishedPromise=()=>{f=new Promise(t=>{m=t})};updateFinishedPromise();let T=C[s]||keyframes;T!==keyframes&&"number"!=typeof n[0]&&(v=(0,x.s)([0,100],n,{clamp:!1}),n=[0,100]);let b=T({...p,keyframes:n});"mirror"===l&&(y=T({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let D="idle",w=null,E=null,k=null;null===b.calculatedDuration&&o&&(b.calculatedDuration=(0,S.i)(b));let{calculatedDuration:M}=b,R=1/0,L=1/0;null!==M&&(L=(R=M+a)*(o+1)-a);let B=0,tick=t=>{if(null===E)return;P>0&&(E=Math.min(E,t)),P<0&&(E=Math.min(t-L/P,E)),B=null!==w?w:Math.round(t-E)*P;let i=B-e*(P>=0?1:-1),r=P>=0?i<0:i>L;B=Math.max(i,0),"finished"===D&&null===w&&(B=L);let s=B,u=b;if(o){let t=Math.min(B,L)/R,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,o+1);let n=!!(e%2);n&&("reverse"===l?(i=1-i,a&&(i-=a/R)):"mirror"===l&&(u=y)),s=(0,V.u)(0,1,i)*R}let c=r?{done:!1,value:n[0]}:u.next(s);v&&(c.value=v(c.value));let{done:h}=c;r||null===M||(h=P>=0?B>=L:B<=0);let p=null===w&&("finished"===D||"running"===D&&h);return d&&d(c.value),p&&finish(),c},stopAnimationDriver=()=>{g&&g.stop(),g=void 0},cancel=()=>{D="idle",stopAnimationDriver(),m(),updateFinishedPromise(),E=k=null},finish=()=>{D="finished",h&&h(),stopAnimationDriver(),m()},play=()=>{if(A)return;g||(g=i(tick));let t=g.now();u&&u(),null!==w?E=t-w:E&&"finished"!==D||(E=t),"finished"===D&&updateFinishedPromise(),k=E,w=null,D="running",g.start()};t&&play();let F={then:(t,e)=>f.then(t,e),get time(){return(0,r.X)(B)},set time(newTime){B=newTime=(0,r.w)(newTime),null===w&&g&&0!==P?E=g.now()-newTime/P:w=newTime},get duration(){let t=null===b.calculatedDuration?(0,S.i)(b):b.calculatedDuration;return(0,r.X)(t)},get speed(){return P},set speed(newSpeed){if(newSpeed===P||!g)return;P=newSpeed,F.time=(0,r.X)(B)},get state(){return D},play,pause:()=>{D="paused",w=B},stop:()=>{A=!0,"idle"!==D&&(D="idle",c&&c(),cancel())},cancel:()=>{null!==k&&tick(k),cancel()},complete:()=>{D="finished"},sample:t=>(E=0,tick(t))};return F}var D=i(65468);let w=(0,D.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),E=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),requiresPregeneratedKeyframes=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function isWaapiSupportedEasing(t){return!!(!t||"string"==typeof t&&o[t]||isBezierDefinition(t)||Array.isArray(t)&&t.every(isWaapiSupportedEasing))}(e.ease);var k=i(64577);let M={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),R={type:"keyframes",duration:.8},L={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(t,{keyframes:e})=>e.length>2?R:k.G.has(t)?t.startsWith("scale")?criticallyDampedSpring(e[1]):M:L;var B=i(30675);let isAnimatable=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(B.P.test(e)||"0"===e)&&!e.startsWith("url("));var F=i(2779),O=i(25598),j=i(83930);let I={skipAnimations:!1},animateMotionValue=(t,e,i,l={})=>u=>{let c=(0,j.e)(l,t)||{},h=c.delay||l.delay||0,{elapsed:d=0}=l;d-=(0,r.w)(h);
1let p=function(t,e,i,n){let r,s;let o=isAnimatable(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?a:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||(0,O.W)(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(s=r[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++){let i=l[t];r[i]=(0,F.T)(e,s)}return r}(e,t,i,c),m=p[0],f=p[p.length-1],g=isAnimatable(t,m),v=isAnimatable(t,f);(0,n.K)(g===v,`You are trying to animate ${t} from "${m}" to "${f}". ${m} is not an animatable value - to enable this animation set ${m} to a value animatable to ${f} via the \`style\` property.`);let y={keyframes:p,velocity:e.getVelocity(),ease:"easeOut",...c,delay:-d,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{u(),c.onComplete&&c.onComplete()}};if((0,j.r)(c)||(y={...y,...getDefaultTransition(t,y)}),y.duration&&(y.duration=(0,r.w)(y.duration)),y.repeatDelay&&(y.repeatDelay=(0,r.w)(y.repeatDelay)),!g||!v||s.current||!1===c.type||I.skipAnimations)return function({keyframes:t,delay:e,onUpdate:i,onComplete:n}){let setValue=()=>(i&&i(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:a.Z,pause:a.Z,stop:a.Z,then:t=>(t(),Promise.resolve()),cancel:a.Z,complete:a.Z});return e?animateValue({keyframes:[0,1],duration:0,delay:e,onComplete:setValue}):setValue()}(s.current?{...y,delay:0}:y);if(!l.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...s}){let l,u;let c=w()&&E.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping&&"inertia"!==s.type;if(!c)return!1;let h=!1,d=!1,updateFinishedPromise=()=>{u=new Promise(t=>{l=t})};updateFinishedPromise();let{keyframes:p,duration:m=300,ease:f,times:g}=s;if(requiresPregeneratedKeyframes(e,s)){let t=animateValue({...s,repeat:0,delay:0}),e={done:!1,value:p[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;g=void 0,p=i,m=n-10,f="linear"}let v=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:a="loop",ease:l,times:u}={}){let c={[e]:i};u&&(c.offset=u);let h=function mapEasingToNativeEasing(t){if(t)return isBezierDefinition(t)?cubicBezierAsString(t):Array.isArray(t)?t.map(mapEasingToNativeEasing):o[t]}(l);return Array.isArray(h)&&(c.easing=h),t.animate(c,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,p,{...s,duration:m,ease:f,times:g}),cancelAnimation=()=>{d=!1,v.cancel()},safeCancel=()=>{d=!0,b.Wi.update(cancelAnimation),l(),updateFinishedPromise()};return v.onfinish=()=>{d||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(p,s)),n&&n(),safeCancel())},{then:(t,e)=>u.then(t,e),attachTimeline:t=>(v.timeline=t,v.onfinish=null,a.Z),get time(){return(0,r.X)(v.currentTime||0)},set time(newTime){v.currentTime=(0,r.w)(newTime)},get speed(){return v.playbackRate},set speed(newSpeed){v.playbackRate=newSpeed},get duration(){return(0,r.X)(m)},play:()=>{h||(v.play(),(0,b.Pn)(cancelAnimation))},pause:()=>v.pause(),stop:()=>{if(h=!0,"idle"===v.playState)return;let{currentTime:e}=v;if(e){let i=animateValue({...s,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}safeCancel()},complete:()=>{d||v.finish()},cancel:safeCancel}}(e,t,y);if(i)return i}return animateValue(y)}},50025:function(t,e,i){i.d(e,{D:function(){return animateSingleValue}});var n=i(80491),r=i(34932),s=i(24182);function animateSingleValue(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}},91943:function(t,e,i){i.d(e,{w:function(){return animateTarget}});var n=i(64577),r=i(89902),s=i(80491),o=i(73551),a=i(32300),l=i(83930),u=i(81730);function animateTarget(t,e,{delay:i=0,transitionOverride:c,type:h}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:p,...m}=t.makeTargetAnimatable(e),f=t.getValue("willChange");c&&(d=c);let g=[],v=h&&t.animationState&&t.animationState.getState()[h];for(let e in m){let a=t.getValue(e),c=m[e];
1if(!a||void 0===c||v&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(v,e))continue;let h={delay:i,elapsed:0,...(0,l.e)(d||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[r.M];if(i){let t=window.HandoffAppearAnimations(i,e,a,u.Wi);null!==t&&(h.elapsed=t,h.isHandoff=!0)}}let p=!h.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(a,c);if("spring"===h.type&&(a.getVelocity()||h.velocity)&&(p=!1),a.animation&&(p=!1),p)continue;a.start((0,s.v)(e,a,c,t.shouldReduceMotion&&n.G.has(e)?{type:!1}:h));let y=a.animation;(0,o.L)(f)&&(f.add(e),y.then(()=>f.remove(e))),g.push(y)}return p&&Promise.all(g).then(()=>{p&&(0,a.CD)(t,p)}),g}},89902:function(t,e,i){i.d(e,{M:function(){return r}});var n=i(42245);let r="data-"+(0,n.D)("framerAppearId")},28645:function(t,e,i){i.d(e,{H:function(){return isAnimationControls}});function isAnimationControls(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},64127:function(t,e,i){i.d(e,{C:function(){return isKeyframesTarget}});let isKeyframesTarget=t=>Array.isArray(t)},83930:function(t,e,i){function isTransitionDefined({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function getValueTransition(t,e){return t[e]||t.default||t}i.d(e,{e:function(){return getValueTransition},r:function(){return isTransitionDefined}})},33918:function(t,e,i){i.d(e,{p:function(){return r}});var n=i(77455);let r=(0,n.createContext)({})},68102:function(t,e,i){i.d(e,{_:function(){return r}});var n=i(77455);let r=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},81206:function(t,e,i){i.d(e,{O:function(){return r}});var n=i(77455);let r=(0,n.createContext)(null)},41473:function(t,e,i){i.d(e,{Bn:function(){return s},X7:function(){return o}
1,Z7:function(){return circIn}});var n=i(39708),r=i(87623);let circIn=t=>1-Math.sin(Math.acos(t)),s=(0,r.M)(circIn),o=(0,n.o)(circIn)},39708:function(t,e,i){i.d(e,{o:function(){return mirrorEasing}});let mirrorEasing=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},87623:function(t,e,i){i.d(e,{M:function(){return reverseEasing}});let reverseEasing=t=>e=>1-t(1-e)},81988:function(t,e,i){i.d(e,{N:function(){return isEasingArray}});let isEasingArray=t=>Array.isArray(t)&&"number"!=typeof t[0]},81730:function(t,e,i){i.d(e,{Pn:function(){return o},Wi:function(){return s},frameData:function(){return a},S6:function(){return l}});var n=i(58261);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}};let r=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:o,state:a,steps:l}=function(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},o=r.reduce((t,e)=>(t[e]=function(t){let e=new Queue,i=new Queue,n=0,r=!1,s=!1,o=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{let l=a&&r,u=l?e:i;return s&&o.add(t),u.add(t)&&l&&r&&(n=e.order.length),t},cancel:t=>{i.remove(t),o.delete(t)},process:l=>{if(r){s=!0;return}if(r=!0,[e,i]=[i,e],i.clear(),n=e.order.length)for(let i=0;i<n;i++){let n=e.order[i];n(l),o.has(n)&&(a.schedule(n),t())}r=!1,s&&(s=!1,a.process(l))}};return a}(()=>i=!0),t),{}),processStep=t=>o[t].process(s),processBatch=()=>{let o=performance.now();i=!1,s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,r.forEach(processStep),s.isProcessing=!1,i&&e&&(n=!1,t(processBatch))},wake=()=>{i=!0,n=!0,s.isProcessing||t(processBatch)},a=r.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||wake(),n.schedule(t,e,r)),t},{});return{schedule:a,cancel:t=>r.forEach(e=>o[e].cancel(t)),state:s,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},57650:function(t,e,i){i.d(e,{A: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])}},24086:function(t,e,i){i.d(e,{j:function(){return isForcedMotionValue}});var n=i(67434),r=i(64577);function isForcedMotionValue(t,{layout:e,layoutId:i}){return r.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.P[t]||"opacity"===t)}},19377:function(t,e,i){function convertBoundingBoxToBox({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function convertBoxToBoundingBox({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function transformBoxPoints(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 transformBoxPoints},i8:function(){return convertBoundingBoxToBox},z2:function(){return convertBoxToBoundingBox}})},17905:function(t,e,i){i.d(e,{D2:function(){return transformBox},YY:function(){return applyTreeDeltas},am:function(){return translateAxis},o2:function(){return applyBoxDelta},q2:function(){return scalePoint}});var n=i(3152),r=i(95924);function scalePoint(t,e,i){return i+e*(t-i)}function applyPointDelta(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function applyAxisDelta(t,e=0,i=1,n,r){t.min=applyPointDelta(t.min,e,i,n,r),t.max=applyPointDelta(t.max,e,i,n,r)}function applyBoxDelta(t,{x:e,y:i}){applyAxisDelta(t.x,e.translate,e.scale,e.originPoint),applyAxisDelta(t.y,i.translate,i.scale,i.originPoint)}function applyTreeDeltas(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let l=0;l<a;l++){o=(s=i[l]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&transformBox(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,applyBoxDelta(t,o)),n&&(0,r.ud)(s.latestValues)&&transformBox(t,s.latestValues))}e.x=snapToDefault(e.x),e.y=snapToDefault(e.y)}}function snapToDefault(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function translateAxis(t,e){t.min=t.min+e,t.max=t.max+e}function transformAxis(t,e,[i,r,s]){let o=void 0!==e[s]?e[s]:.5,a=(0,n.C)(t.min,t.max,o);applyAxisDelta(t,e[i],e[r],a,e.scale)}let s=["x","scaleX","originX"],o=["y","scaleY","originY"];function transformBox(t,e){transformAxis(t.x,e,s),transformAxis(t.y,e,o)}}
1,60660:function(t,e,i){i.d(e,{dO:function(){return createBox},wc:function(){return createDelta}});let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()})},67434:function(t,e,i){i.d(e,{B:function(){return addScaleCorrector},P:function(){return n}});let n={};function addScaleCorrector(t){Object.assign(n,t)}},95924:function(t,e,i){function isIdentityScale(t){return void 0===t||1===t}function hasScale({scale:t,scaleX:e,scaleY:i}){return!isIdentityScale(t)||!isIdentityScale(e)||!isIdentityScale(i)}function hasTransform(t){return hasScale(t)||has2DTranslate(t)||t.z||t.rotate||t.rotateX||t.rotateY}function has2DTranslate(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return has2DTranslate},Lj:function(){return hasScale},ud:function(){return hasTransform}})},68068:function(t,e,i){i.d(e,{J:function(){return measureViewportBox},z:function(){return measurePageBox}});var n=i(19377),r=i(17905);function measureViewportBox(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function measurePageBox(t,e,i){let n=measureViewportBox(t,i),{scroll:s}=e;return s&&((0,r.am)(n.x,s.offset.x),(0,r.am)(n.y,s.offset.y)),n}},74999:function(t,e,i){i.d(e,{J:function(){return DOMVisualElement}});var n=i(32300),r=i(29793),s=i(72151),o=i(20558);let a=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(t,e,i=1){(0,r.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,l]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let u=window.getComputedStyle(e).getPropertyValue(n);if(u){let t=u.trim();return(0,s.P)(t)?parseFloat(t):t}return(0,o.tm)(l)?getVariableValue(l,e,i+1):l}var l=i(64127),u=i(64577),c=i(29991),h=i(13035),d=i(8639),p=i(96879);let m=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=t=>m.has(t),hasPositionalKey=t=>Object.keys(t).some(isPositionalKey),isNumOrPxType=t=>t===d.Rx||t===p.px,getPosFromMatrix=(t,e)=>parseFloat(t.split(", ")[e]),getTranslateFromMatrix=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return getPosFromMatrix(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?getPosFromMatrix(e[1],t):0}},f=new Set(["x","y","z"]),g=u._.filter(t=>!f.has(t)),v={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:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};v.translateX=v.x,v.translateY=v.y;let convertChangedValueTypes=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,s=getComputedStyle(r),{display:o}=s,a={};"none"===o&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=v[t](n,s)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(a[i]),t[i]=v[i](l,s)}),t},checkAndConvertChangedValueTypes=(t,e,i={},n={})=>{e={...e},n={...n};let s=Object.keys(e).filter(isPositionalKey),o=[],a=!1,u=[];if(s.forEach(s=>{let h;let d=t.getValue(s);if(!t.hasValue(s))return;let m=i[s],f=(0,c.C)(m),v=e[s];if((0,l.C)(v)){let t=v.length,e=null===v[0]?1:0;m=v[e],f=(0,c.C)(m);for(let i=e;i<t&&null!==v[i];i++)h?(0,r.k)((0,c.C)(v[i])===h,"All keyframes must be of the same type"):(h=(0,c.C)(v[i]),(0,r.k)(h===f||isNumOrPxType(f)&&isNumOrPxType(h),"Keyframes must be of the same dimension as the current value"))}else h=(0,c.C)(v);if(f!==h){if(isNumOrPxType(f)&&isNumOrPxType(h)){let t=d.get();"string"==typeof t&&d.set(parseFloat(t)),"string"==typeof v?e[s]=parseFloat(v):Array.isArray(v)&&h===p.px&&(e[s]=v.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==h?void 0:h.transform)&&(0===m||0===v)?0===m?d.set(h.transform(m)):e[s]=f.transform(v):(a||(o=function(t){let e=[];return g.forEach(i=>
1{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),a=!0),u.push(s),n[s]=void 0!==n[s]?n[s]:e[s],d.jump(v))}}),!u.length)return{target:e,transitionEnd:n};{let i=u.indexOf("height")>=0?window.pageYOffset:null,r=convertChangedValueTypes(e,t,u);return o.length&&o.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),h.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},parseDomVariant=(t,e,i,n)=>{var r,s;let a=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,o.tm)(e))return;let i=getVariableValue(e,n);i&&t.set(i)}),e){let t=e[r];if(!(0,o.tm)(t))continue;let s=getVariableValue(t,n);s&&(e[r]=s,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=a.target,n=a.transitionEnd,r=e,s=n,hasPositionalKey(r)?checkAndConvertChangedValueTypes(t,r,i,s):{target:r,transitionEnd:s}};var y=i(60660),x=i(28392);let P={current:null},A={current:!1};var T=i(2361),b=i(34932),V=i(73551),S=i(24182),C=i(4625),D=i(66429),w=i(50853),E=i(57650),k=i(73810),M=i(21484),R=i(81730);let L=Object.keys(E.A),B=L.length,F=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],O=k.V.length;let VisualElement=class VisualElement{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>R.Wi.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=(0,C.G)(e),this.isVariantNode=(0,C.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&(0,S.i)(e)&&(e.set(o[t],!1),(0,V.L)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}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)),A.current||function(){if(A.current=!0,h.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>P.current=t.matches;t.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else P.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||P.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,R.Pn)(this.notifyUpdate),(0,R.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)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=u.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&R.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,r){let s,o;for(let t=0;t<B;t++){let i=L[t],{isEnabled:n,Feature:r,ProjectionNode:a,MeasureLayout:l}=E.A[i];a&&(s=a),n(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:n,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!n||o&&(0,x.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,y.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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<F.length;e++){let i=F[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if((0,S.i)(s))t.addValue(r,s),(0,V.L)(n)&&n.add(r);else if((0,S.i)(o))t.addValue(r,(0,b.BX)(s,{owner:t})),(0,V.L)(n)&&n.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,b.BX)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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<O;t++){let i=k.V[t],n=this.props[i];((0,D.$)(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){e!==this.values.get(t)&&(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,b.BX)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=(0,w.o)(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,S.i)(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new T.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},s){let o=(0,n.P$)(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),o&&(o=r(o))),s){(0,n.GJ)(this,i,o);let t=parseDomVariant(this,i,o,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}},44416:function(t,e,i){i.d(e,{E:function(){return tI}});var n,r=i(77455),s=i(68102);let o=(0,r.createContext)({});var a=i(81206),l=i(9180);let u=(0,r.createContext)({strict:!1});var c=i(89902),h=i(28392),d=i(66429),p=i(4625);function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}var m=i(57650),f=i(13035),g=i(33918);let v=(0,r.createContext)({}),y=Symbol.for("motionComponentSymbol"),x=["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 isSVGComponent(t){if("string"!=typeof t||t.includes("-"));else if(x.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}var P=i(24086),A=i(24182),T=i(42456);let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(t,e,i){for(let n in e)(0,A.i)(e[n])||
1(0,P.j)(n,i)||(t[n]=e[n])}function useHTMLProps(t,e,i){let n={},s=function(t,e,i){let n=t.style||{},s={};return copyRawValuesOnly(s,n,t),Object.assign(s,function({transformTemplate:t},e,i){return(0,r.useMemo)(()=>{let n=createHtmlRenderState();return(0,T.r)(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(s):s}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}let b=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||b.has(t)}let shouldForward=t=>!isValidMotionProp(t);try{(n=i(25920).Z)&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):n(t))}catch(t){}var V=i(38596);let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});var S=i(55771);
1function useSVGProps(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=createSvgRenderState();return(0,V.i)(i,e,{enableHardwareAcceleration:!1},(0,S.a)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};copyRawValuesOnly(e,t.style,t),s.style={...e,...s.style}}return s}var C=i(64215),D=i(99442),w=i(28645),E=i(50853),k=i(54471),M=i(55180);function resolveMotionValue(t){let e=(0,A.i)(t)?t.get():t;return(0,M.p)(e)?e.toValue():e}let makeUseVisualState=t=>(e,i)=>{let n=(0,r.useContext)(o),s=(0,r.useContext)(a.O),make=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=resolveMotionValue(s[t]);let{initial:o,animate:a}=t,l=(0,p.G)(t),u=(0,p.M)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let c=!!i&&!1===i.initial;c=c||!1===o;let h=c?a:o;if(h&&"boolean"!=typeof h&&!(0,w.H)(h)){let e=Array.isArray(h)?h:[h];e.forEach(e=>{let i=(0,E.o)(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]})}return r}(n,r,s,t),renderState:e()};return i&&(o.mount=t=>i(n,t,o)),o})(t,e,n,s);return i?make():(0,k.h)(make)};var R=i(81730);let L={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:D.U,createRenderState:createSvgRenderState,onMount:(t,e,{renderState:i,latestValues:n})=>{R.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}}}),R.Wi.render(()=>{(0,V.i)(i,n,{enableHardwareAcceleration:!1},(0,S.a)(e.tagName),t.transformTemplate),(0,C.K)(e,i)})}})};var B=i(43051);let F={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:B.U,createRenderState:createHtmlRenderState})};function addDomEvent(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let isPrimaryPointer=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function extractEventInfo(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let addPointerInfo=t=>e=>isPrimaryPointer(e)&&t(e,extractEventInfo(e));function addPointerEvent(t,e,i,n){return addDomEvent(t,e,addPointerInfo(i),n)}var O=i(8985);function createLock(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let j=createLock("dragHorizontal"),I=createLock("dragVertical");function getGlobalLock(t){let e=!1;if("y"===t)e=I();else if("x"===t)e=j();else{let t=j(),i=I();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function isDragActive(){let t=getGlobalLock(!0);return!t||(t(),!1)}let Feature=class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}};function addHoverEvent(t,e){let i="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End");return addPointerEvent(t.current,i,(i,r)=>{if("touch"===i.pointerType||isDragActive())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[n]&&R.Wi.update(()=>s[n](i,r))},{passive:!t.getProps()[n]})}let isNodeOrChild=(t,e)=>!!e&&(t===e||isNodeOrChild(t,e.parentElement));var U=i(58261);function fireSyntheticPointerEvent(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,extractEventInfo(i))}let N=new WeakMap,W=new WeakMap,fireObserverCallback=t=>{let e=N.get(t.target);e&&e(t)},fireAllObserverCallbacks=t=>{t.forEach(fireObserverCallback)},$={some:0,all:1};var z=i(64127);function shallowCompare(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 H=i(13406),G=i(73810),X=i(91943);function animateVariant(t,e,i={}){let n=(0,H.x)(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all((0,X.w)(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;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(sortByTreeOrder).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(animateVariant(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function sortByTreeOrder(t,e){return t.sortNodePosition(e)}let Z=[...G.e].reverse(),q=G.e.length;function createTypeState(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Y=0;var K=i(29793),_=i(53279);let distance=(t,e)=>Math.abs(t-e);let PanSession=class PanSession{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=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=getPanInfo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){let i=distance(t.x,e.x),n=distance(t.y,e.y);return Math.sqrt(i**2+n**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=R.frameData;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=transformPoint(e,this.transformPagePoint),R.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=getPanInfo("pointercancel"===t.type?this.lastMoveEventInfo:transformPoint(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=extractEventInfo(t),o=transformPoint(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=R.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,getPanInfo(o,this.history)),this.removeListeners=(0,O.z)(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.Pn)(this.updatePoint)}};function transformPoint(t,e){return e?{point:e(t.point)}:t}function subtractPoint(t,e){return{x:t.x-e.x,y:t.y-e.y}}function getPanInfo({point:t},e){return{point:t,delta:subtractPoint(t,lastDevicePoint(e)),offset:subtractPoint(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=lastDevicePoint(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,_.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,_.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}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function lastDevicePoint(t){return t[t.length-1]}var J=i(40702),Q=i(3152);function calcLength(t){return t.max-t.min}function isNear(t,e=0,i=.01){return Math.abs(t-e)<=i}function calcAxisDelta(t,e,i,n=.5){t.origin=n,t.originPoint=(0,Q.C)(e.min,e.max,t.origin),t.scale=calcLength(i)/calcLength(e),(isNear(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,Q.C)(i.min,i.max,t.origin)-t.originPoint,(isNear(t.translate)||isNaN(t.translate))&&(t.translate=0)}function calcBoxDelta(t,e,i,n){calcAxisDelta(t.x,e.x,i.x,n?n.originX:void 0),calcAxisDelta(t.y,e.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(t,e,i){t.min=i.min+e.min,t.max=t.min+calcLength(e)}function calcRelativeAxisPosition(t,e,i){t.min=e.min-i.min,t.max=t.min+calcLength(e)}function calcRelativePosition(t,e,i){calcRelativeAxisPosition(t.x,e.x,i.x),calcRelativeAxisPosition(t.y,e.y,i.y)}var tt=i(76495);function calcRelativeAxisConstraints(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 calcViewportAxisConstraints(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 resolveAxisElastic(t,e,i){return{min:resolvePointElastic(t,e),max:resolvePointElastic(t,i)}}function resolvePointElastic(t,e){return"number"==typeof t?t:t[e]||0}var te=i(60660);function eachAxis(t){return[t("x"),t("y")]}var ti=i(68068),tn=i(19377),tr=i(96879),ts=i(80491);let getContextWindow=({current:t})=>t?t.ownerDocument.defaultView:null,to=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{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,te.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 PanSession(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(extractEventInfo(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(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),eachAxis(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=calcLength(n);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),r&&R.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.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:()=>eachAxis(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:getContextWindow(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&R.Wi.update(()=>r(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||!shouldDrag(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,Q.C)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,Q.C)(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&&(0,h.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:calcRelativeAxisConstraints(t.x,i,r),y:calcRelativeAxisConstraints(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:resolveAxisElastic(t,"left","right"),y:resolveAxisElastic(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(t=>{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||!(0,h.I)(e))return!1;let n=e.current;(0,K.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,ti.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:calcViewportAxisConstraints((t=r.layout.layoutBox).x,s.x),y:calcViewportAxisConstraints(t.y,s.y)};if(i){let t=i((0,tn.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tn.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=eachAxis(o=>
1{if(!shouldDrag(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)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,ts.v)(t,i,0,e))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(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(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(e=>{let{drag:i}=this.getProps();if(!shouldDrag(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,Q.C)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,h.I)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=calcLength(t),r=calcLength(e);return r>n?i=(0,J.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,J.Y)(t.min,t.max-r,e.min)),(0,tt.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(),eachAxis(e=>{if(!shouldDrag(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,Q.C)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let t=this.visualElement.current,e=addPointerEvent(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),measureDragConstraints=()=>{let{dragConstraints:t}=this.getProps();(0,h.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",measureDragConstraints);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),measureDragConstraints();let r=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eachAxis(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(),e(),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 shouldDrag(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let asyncHandler=t=>(e,i)=>{t&&R.Wi.update(()=>t(e,i))},ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tl={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tr.px.test(t))return t;t=parseFloat(t)}let i=pixelsToPercent(t,e.target.x),n=pixelsToPercent(t,e.target.y);return`${i}% ${n}%`}};var tu=i(30675),tc=i(67434);let MeasureLayoutWithContext=class MeasureLayoutWithContext extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tc.B)(th),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()})),ta.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()||R.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!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 MeasureLayout(t){let[e,i]=function(){let t=(0,r.useContext)(a.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,s=(0,r.useId)();return(0,r.useEffect)(()=>n(s),[]),!e&&i?[!1,()=>i&&i(s)]:[!0]}(),n=(0,r.useContext)(g.p);return r.createElement(MeasureLayoutWithContext,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(v),isPresent:e,safeToRemove:i})}let th={borderRadius:{...tl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tl,borderTopRightRadius:tl,borderBottomLeftRadius:tl,borderBottomRightRadius:tl,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tu.P.parse(t);if(n.length>5)return t;let r=tu.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,Q.C)(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 td=i(2361),tp=i(41473);let tm=["TopLeft","TopRight","BottomLeft","BottomRight"],tf=tm.length,asNumber=t=>"string"==typeof t?parseFloat(t):t,isPx=t=>"number"==typeof t||tr.px.test(t);function getRadius(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tg=compress(0,.5,tp.Bn),tv=compress(.5,.95,U.Z);function compress(t,e,i){return n=>n<t?0:n>e?1:i((0,J.Y)(t,e,n))}function copyAxisInto(t,e){t.min=e.min,t.max=e.max}function copyBoxInto(t,e){copyAxisInto(t.x,e.x),copyAxisInto(t.y,e.y)}var ty=i(17905);function removePointDelta(t,e,i,n,r){return t-=e,t=(0,ty.q2)(t,1/i,n),void 0!==r&&(t=(0,ty.q2)(t,1/r,n)),t}function removeAxisTransforms(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tr.aQ.test(e)){e=parseFloat(e);let t=(0,Q.C)(o.min,o.max,e/100);e=t-o.min}if("number"!=typeof e)return;let a=(0,Q.C)(s.min,s.max,n);t===s&&(a-=e),t.min=removePointDelta(t.min,e,i,a,r),t.max=removePointDelta(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let tx=["x","scaleX","originX"],tP=["y","scaleY","originY"];function removeBoxTransforms(t,e,i,n){removeAxisTransforms(t.x,e,tx,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(t.y,e,tP,i?i.y:void 0,n?n.y:void 0)}var tA=i(83930);function isAxisDeltaZero(t){return 0===t.translate&&1===t.scale}function isDeltaZero(t){return isAxisDeltaZero(t.x)&&isAxisDeltaZero(t.y)}function boxEqualsRounded(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function aspectRatio(t){return calcLength(t.x)/calcLength(t.y)}var tT=i(33855);let NodeStack=class NodeStack{constructor(){this.members=[]}add(t){(0,tT.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tT.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)}};function buildProjectionTransform(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+=`scale(${o}, ${a})`),n||"none"}var tb=i(95924);let compareByDepth=(t,e)=>t.depth-e.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tT.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tT.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}};var tV=i(36366),tS=i(50025);let tC=["","X","Y","Z"],tD={visibility:"hidden"},tw=0,tE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tw++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tE.totalNodes=tE.resolvedTargetDeltas=tE.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(tE)},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 FlatTree)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new td.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,tV.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 resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),checkElapsed=({timestamp:n})=>{let r=n-i;r>=e&&((0,R.Pn)(checkElapsed),t(r-e))};return R.Wi.read(checkElapsed,!0),()=>(0,R.Pn)(checkElapsed)}(resizeUnblockUpdate,250),ta.hasAnimatedSinceResize&&(ta.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(finishAnimation))})}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()||tk,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!boxEqualsRounded(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,tA.e)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||finishAnimation(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,R.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(resetRotation),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(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(){this.updateScheduled=!1;let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();let e=performance.now();R.frameData.delta=(0,tt.u)(0,1e3/60,e-R.frameData.timestamp),R.frameData.timestamp=e,R.frameData.isProcessing=!0,R.S6.update.process(R.frameData),R.S6.preRender.process(R.frameData),R.S6.render.process(R.frameData),R.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.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++){let e=this.path[t];e.updateScroll()}let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,te.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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:n(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||(0,tb.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);
1return t&&(n=this.removeTransform(n)),roundAxis((e=n).x),roundAxis(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,te.dO)();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&((0,ty.am)(e.x,i.offset.x),(0,ty.am)(e.y,i.offset.y)),e}removeElementScroll(t){let e=(0,te.dO)();copyBoxInto(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){copyBoxInto(e,t);let{scroll:i}=this.root;i&&((0,ty.am)(e.x,-i.offset.x),(0,ty.am)(e.y,-i.offset.y))}(0,ty.am)(e.x,r.offset.x),(0,ty.am)(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=(0,te.dO)();copyBoxInto(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,ty.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,tb.ud)(n.latestValues)&&(0,ty.D2)(i,n.latestValues)}return(0,tb.ud)(this.latestValues)&&(0,ty.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,te.dO)();copyBoxInto(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tb.ud)(i.latestValues))continue;(0,tb.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,te.dO)(),r=i.measurePageBox();copyBoxInto(n,r),removeBoxTransforms(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,tb.ud)(this.latestValues)&&removeBoxTransforms(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!==R.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.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s,a=!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(a)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=R.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,te.dO)(),this.relativeTargetOrigin=(0,te.dO)(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,te.dO)(),this.targetWithTransforms=(0,te.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,calcRelativeAxis(i.x,n.x,r.x),calcRelativeAxis(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),(0,ty.o2)(this.target,this.targetDelta)):copyBoxInto(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,te.dO)(),this.relativeTargetOrigin=(0,te.dO)(),calcRelativePosition(this.relativeTargetOrigin,this.target,t.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tE.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tb.Lj)(this.parent.latestValues)||(0,tb.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===R.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;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,ty.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);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=(0,te.wc)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,te.wc)(),this.projectionDeltaWithTransform=(0,te.wc)());let u=this.projectionTransform;calcBoxDelta(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=buildProjectionTransform(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tE.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,te.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,te.dO)(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,c=l!==u,h=this.getStack(),d=!h||h.members.length<=1,p=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(mixAxisDelta(o.x,t.x,n),mixAxisDelta(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,u,h,m;
1calcRelativePosition(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(h.x,m.x,a.x,n),mixAxis(h.y,m.y,a.y,n),i&&(l=this.relativeTarget,u=i,l.x.min===u.x.min&&l.x.max===u.x.max&&l.y.min===u.y.min&&l.y.max===u.y.max)&&(this.isProjectionDirty=!1),i||(i=(0,te.dO)()),copyBoxInto(i,this.relativeTarget)}c&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,Q.C)(0,void 0!==i.opacity?i.opacity:1,tg(n)),t.opacityExit=(0,Q.C)(void 0!==e.opacity?e.opacity:1,0,tv(n))):s&&(t.opacity=(0,Q.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<tf;r++){let s=`border${tm[r]}Radius`,o=getRadius(e,s),a=getRadius(i,s);if(void 0===o&&void 0===a)continue;o||(o=0),a||(a=0);let l=0===o||0===a||isPx(o)===isPx(a);l?(t[s]=Math.max((0,Q.C)(asNumber(o),asNumber(a),n),0),(tr.aQ.test(a)||tr.aQ.test(o))&&(t[s]+="%")):t[s]=a}(e.rotate||i.rotate)&&(t.rotate=(0,Q.C)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,p,d)),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,R.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.Wi.update(()=>{ta.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tS.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&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,te.dO)();let e=calcLength(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=calcLength(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}copyBoxInto(e,i),(0,ty.D2)(e,r),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new NodeStack);let i=this.sharedNodes.get(t);i.add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.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)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<tC.length;e++){let r="rotate"+tC[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tD;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=resolveMotionValue(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=resolveMotionValue(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tb.ud)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=buildProjectionTransform(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,tc.P){if(void 0===o[t])continue;let{correct:e,applyTo:i}=tc.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?resolveMotionValue(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(t){t.updateLayout()}function notifyLayoutUpdate(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?eachAxis(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=calcLength(n);n.min=e[t].min,n.max=n.min+r}):shouldAnimatePositionOnly(r,i.layoutBox,e)&&eachAxis(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=calcLength(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,te.wc)();calcBoxDelta(o,e,i.layoutBox);let a=(0,te.wc)();s?calcBoxDelta(a,t.applyTransform(n,!0),i.measuredBox):calcBoxDelta(a,e,i.layoutBox);let l=!isDeltaZero(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,te.dO)();calcRelativePosition(o,i.layoutBox,r.layoutBox);let a=(0,te.dO)();calcRelativePosition(a,e,s.layoutBox),boxEqualsRounded(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 propagateDirtyNodes(t){tE.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 cleanDirtyNodes(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function clearSnapshot(t){t.clearSnapshot()}function clearMeasurements(t){t.clearMeasurements()}function clearIsLayoutDirty(t){t.isLayoutDirty=!1}function resetTransformStyle(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function finishAnimation(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function resolveTargetDelta(t){t.resolveTargetDelta()}function calcProjection(t){t.calcProjection()}function resetRotation(t){t.resetRotation()}function removeLeadSnapshots(t){t.removeLeadSnapshot()}function mixAxisDelta(t,e,i){t.translate=(0,Q.C)(e.translate,0,i),t.scale=(0,Q.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function mixAxis(t,e,i,n){t.min=(0,Q.C)(e.min,i.min,n),t.max=(0,Q.C)(e.max,i.max,n)}function hasOpacityCrossfade(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tk={duration:.45,ease:[.4,0,.1,1]},userAgentContains=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),tM=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:U.Z;function roundAxis(t){t.min=tM(t.min),t.max=tM(t.max)}function shouldAnimatePositionOnly(t,e,i){return"position"===t||"preserve-aspect"===t&&!isNear(aspectRatio(e),aspectRatio(i),.2)}let tR=createProjectionNode({attachResizeListener:(t,e)=>addDomEvent(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tL={current:void 0},tB=createProjectionNode({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tL.current){let t=new tR({});t.mount(window),t.setOptions({layoutScroll:!0}),tL.current=t}return tL.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var tF=i(47986),tO=i(41561);let create_visual_element_createDomVisualElement=(t,e)=>isSVGComponent(t)?new tO.e(e,{enableHardwareAcceleration:!1}):new tF.W(e,{enableHardwareAcceleration:!0}),tj={animation:{Feature:class extends Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let animate=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){let r=e.map(e=>animateVariant(t,e,i));n=Promise.all(r)}else if("string"==typeof e)n=animateVariant(t,e,i);else{let r="function"==typeof e?(0,H.x)(t,e,i.custom):e;n=Promise.all((0,X.w)(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),e={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},i=!0,buildResolvedTypeValues=(e,i)=>{let n=(0,H.x)(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function animateChanges(n,r){let s=t.getProps(),o=t.getVariantContext(!0)||{},a=[],l=new Set,u={},c=1/0;for(let p=0;p<q;p++){var h;let m=Z[p],f=e[m],g=void 0!==s[m]?s[m]:o[m],v=(0,d.$)(g),y=m===r?f.isActive:null;!1===y&&(c=p);let x=g===o[m]&&g!==s[m]&&v;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===y||!g&&!f.prevProp||(0,w.H)(g)||"boolean"==typeof g)continue;let P=(h=f.prevProp,"string"==typeof g?g!==h:!!Array.isArray(g)&&!shallowCompare(g,h)),A=P||m===r&&f.isActive&&!x&&v||p>c&&v,T=!1,b=Array.isArray(g)?g:[g],V=b.reduce(buildResolvedTypeValues,{});!1===y&&(V={});let{prevResolvedValues:S={}}=f,C={...S,...V},markToAnimate=t=>{A=!0,l.has(t)&&(T=!0,l.delete(t)),f.needsAnimating[t]=!0};for(let t in C){let e=V[t],i=S[t];if(!u.hasOwnProperty(t))((0,z.C)(e)&&(0,z.C)(i)?shallowCompare(e,i):e===i)?void 0!==e&&l.has(t)?markToAnimate(t):f.protectedKeys[t]=!0:void 0!==e?markToAnimate(t):l.add(t)}f.prevProp=g,f.prevResolvedValues=V,f.isActive&&(u={...u,...V}),i&&t.blockInitialAnimation&&(A=!1),A&&(!x||T)&&a.push(...b.map(t=>({animation:t,options:{type:m,...n}})))}if(l.size){let e={};l.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),a.push({animation:e})}let p=!!a.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?animate(a):Promise.resolve()}return{animateChanges,setActive:function(i,n,r){var s;if(e[i].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var e;return null===(e=t.animationState)||void 0===e?void 0:e.setActive(i,n)}),e[i].isActive=n;let o=animateChanges(r,i);for(let t in e)e[t].protectedKeys={};return o},setAnimateFunction:function(e){animate=e(t)},getState:()=>e}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,w.H)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=Y++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends Feature{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:$[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;W.has(i)||W.set(i,{});let n=W.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(fireAllObserverCallbacks,{root:t,...e})),n[r]}(e);return N.set(t,i),n.observe(t),()=>{N.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,i=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=U.Z,this.removeEndListeners=U.Z,this.removeAccessibleListeners=U.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=addPointerEvent(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();R.Wi.update(()=>{r||isNodeOrChild(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=addPointerEvent(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,O.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=addDomEvent(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addD
1omEvent(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&R.Wi.update(()=>i(t,e))})}),fireSyntheticPointerEvent("down",(t,e)=>{this.startPress(t,e)}))}),e=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,O.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&&R.Wi.update(()=>i(t,e))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let t=this.node.getProps();return t.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&R.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=addPointerEvent(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,O.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{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,O.z)(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=(0,O.z)(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=U.Z}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(t){super(t),this.removeGroupControls=U.Z,this.removeListeners=U.Z,this.controls=new VisualElementDragControls(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tB,MeasureLayout:MeasureLayout},layout:{ProjectionNode:tB,MeasureLayout:MeasureLayout}},tI=function(t){function custom(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:x}){t&&function(t){for(let e in t)m.A[e]={...m.A[e],...t[e]}}(t);let P=(0,r.forwardRef)(function(m,y){var P;let A;let T={...(0,r.useContext)(s._),...m,layoutId:function({layoutId:t}){let e=(0,r.useContext)(g.p).id;return e&&void 0!==t?e+"-"+t:t}(m)},{isStatic:b}=T,V=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,d.$)(e)?e:void 0,animate:(0,d.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(o));return(0,r.useMemo)(()=>({initial:e,animate:i}),[variantLabelsAsDependency(e),variantLabelsAsDependency(i)])}(m),S=n(m,b);if(!b&&f.j){V.visualElement=function(t,e,i,n){let{visualElement:h}=(0,r.useContext)(o),d=(0,r.useContext)(u),p=(0,r.useContext)(a.O),m=(0,r.useContext)(s._).reducedMotion,f=(0,r.useRef)();n=n||d.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:h,props:i,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;(0,r.useInsertionEffect)(()=>{g&&g.update(i,p)});let v=(0,r.useRef)(!!(i[c.M]&&!window.HandoffComplete));return(0,l.L)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(x,S,T,e);let i=(0,r.useContext)(v),n=(0,r.useContext)(u).strict;V.visualElement&&(A=V.visualElement.loadFeatures(T,n,t,i))}return r.createElement(o.Provider,{value:V},A&&V.visualElement?r.createElement(A,{visualElement:V.visualElement,...T}):null,i(x,m,(P=V.visualElement,(0,r.useCallback)(t=>
1{t&&S.mount&&S.mount(t),P&&(t?P.mount(t):P.unmount()),y&&("function"==typeof y?y(t):(0,h.I)(y)&&(y.current=t))},[P])),S,b,V.visualElement))});return P[y]=x,P}(t(e,i))}if("undefined"==typeof Proxy)return custom;let e=new Map;return new Proxy(custom,{get:(t,i)=>(e.has(i)||e.set(i,custom(i)),e.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){let s=isSVGComponent(t)?L:F;return{...s,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:s},o)=>{let a=isSVGComponent(e)?useSVGProps:useHTMLProps,l=a(i,s,o,e),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(shouldForward(r)||!0===i&&isValidMotionProp(r)||!e&&!isValidMotionProp(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),c={...u,...l,ref:n},{children:h}=i,d=(0,r.useMemo)(()=>(0,A.i)(h)?h.get():h,[h]);return(0,r.createElement)(e,{...c,children:d})}}(e),createVisualElement:n,Component:t}})(t,e,tj,create_visual_element_createDomVisualElement))},42245:function(t,e,i){i.d(e,{D:function(){return camelToDash}});let camelToDash=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},20558:function(t,e,i){i.d(e,{Xp:function(){return s},f9:function(){return n},tm:function(){return r}});let checkStringStartsWith=t=>e=>"string"==typeof e&&e.startsWith(t),n=checkStringStartsWith("--"),r=checkStringStartsWith("var(--"),s=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
1:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},36366:function(t,e,i){i.d(e,{v:function(){return isSVGElement}});function isSVGElement(t){return t instanceof SVGElement&&"svg"!==t.tagName}},2779:function(t,e,i){i.d(e,{T:function(){return getAnimatableNone}});var n=i(30675),r=i(87787),s=i(47661);function getAnimatableNone(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},47661:function(t,e,i){i.d(e,{A:function(){return getDefaultValueType}});var n=i(95504),r=i(87787),s=i(54293);let o={...s.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},getDefaultValueType=t=>o[t]},29991:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return findDimensionValueType}});var n=i(8639),r=i(96879),s=i(35667);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],findDimensionValueType=t=>o.find((0,s.l)(t))},54293:function(t,e,i){i.d(e,{j:function(){return o}});var n=i(8639),r=i(96879);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,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:s}},35667:function(t,e,i){i.d(e,{l:function(){return testValueType}});let testValueType=t=>e=>e.test(t)},47986:function(t,e,i){i.d(e,{W:function(){return HTMLVisualElement}});var n=i(42456),r=i(20558),s=i(64577),o=i(43051),a=i(90679),l=i(47661),u=i(68068),c=i(74999),h=i(24182);let HTMLVisualElement=class HTMLVisualElement extends c.J{constructor(){super(...arguments),this.type="html"}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.f9)(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,r){(0,n.r)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,o.U)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,h.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){(0,a.N)(t,e,i,n)}}},42456:function(t,e,i){i.d(e,{r:function(){return buildHTMLStyles}});var n=i(64577);let r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s=n._.length;var o=i(20558);let getValueAsType=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var a=i(54293);function buildHTMLStyles(t,e,i,l){let{style:u,vars:c,transform:h,transformOrigin:d}=t,p=!1,m=!1,f=!0;for(let t in e){let i=e[t];if((0,o.f9)(t)){c[t]=i;continue}let r=a.j[t],s=getValueAsType(i,r);if(n.G.has(t)){if(p=!0,h[t]=s,!f)continue;i!==(r.default||0)&&(f=!1)}else t.startsWith("origin")?(m=!0,d[t]=s):u[t]=s}if(!e.transform&&(p||l?u.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},o,a){let l="";for(let e=0;e<s;e++){let i=n._[e];if(void 0!==t[i]){let e=r[i]||i;l+=`${e}(${t[i]}) `}}return e&&!t.z&&(l+="translateZ(0)"),l=l.trim(),a?l=a(t,o?"":l):i&&o&&(l="none"),l}(t.transform,i,f,l):u.transform&&(u.transform="none")),m){let{originX:t="50%",originY:e="50%",originZ:i=0}=d;u.transformOrigin=`${t} ${e} ${i}`}}},90679:function(t,e,i){i.d(e,{N:function(){return renderHTML}});function renderHTML(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])}}
1,43051:function(t,e,i){i.d(e,{U:function(){return scrapeMotionValuesFromProps}});var n=i(24086),r=i(24182);function scrapeMotionValuesFromProps(t,e){let{style:i}=t,s={};for(let o in i)((0,r.i)(i[o])||e.style&&(0,r.i)(e.style[o])||(0,n.j)(o,t))&&(s[o]=i[o]);return s}},64577:function(t,e,i){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)},21484:function(t,e,i){i.d(e,{R:function(){return n}});let n=new WeakMap},41561:function(t,e,i){i.d(e,{e:function(){return SVGVisualElement}});var n=i(99442),r=i(74999),s=i(38596),o=i(42245),a=i(74993),l=i(64577),u=i(64215),c=i(47661),h=i(60660),d=i(55771);let SVGVisualElement=class SVGVisualElement extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,c.A)(e);return t&&t.default||0}return e=a.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,h.dO)()}scrapeMotionValuesFromProps(t,e){return(0,n.U)(t,e)}
1build(t,e,i,n){(0,s.i)(t,e,i,this.isSVGTag,n.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)}}},38596:function(t,e,i){i.d(e,{i:function(){return buildSVGAttrs}});var n=i(42456),r=i(96879);function calcOrigin(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(t,{attrX:e,attrY:i,attrScale:a,originX:l,originY:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...p},m,f,g){if((0,n.r)(t,p,m,g),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:v,style:y,dimensions:x}=t;v.transform&&(x&&(y.transform=v.transform),delete v.transform),x&&(void 0!==l||void 0!==u||y.transform)&&(y.transformOrigin=function(t,e,i){let n=calcOrigin(e,t.x,t.width),r=calcOrigin(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==e&&(v.x=e),void 0!==i&&(v.y=i),void 0!==a&&(v.scale=a),void 0!==c&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),c=r.px.transform(i);t[l.array]=`${u} ${c}`}(v,c,h,d,!1)}},74993:function(t,e,i){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"])},55771:function(t,e,i){i.d(e,{a:function(){return isSVGTag}});let isSVGTag=t=>"string"==typeof t&&"svg"===t.toLowerCase()},64215:function(t,e,i){i.d(e,{K:function(){return renderSVG}});var n=i(42245),r=i(90679),s=i(74993);
1function renderSVG(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])}},99442:function(t,e,i){i.d(e,{U:function(){return scrapeMotionValuesFromProps}});var n=i(24182),r=i(43051),s=i(64577);function scrapeMotionValuesFromProps(t,e){let i=(0,r.U)(t,e);for(let r in t)if((0,n.i)(t[r])||(0,n.i)(e[r])){let e=-1!==s._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[e]=t[r]}return i}},4625:function(t,e,i){i.d(e,{G:function(){return isControllingVariants},M:function(){return isVariantNode}});var n=i(28645),r=i(66429),s=i(73810);function isControllingVariants(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function isVariantNode(t){return!!(isControllingVariants(t)||t.variants)}},66429:function(t,e,i){i.d(e,{$:function(){return isVariantLabel}});function isVariantLabel(t){return"string"==typeof t||Array.isArray(t)}},13406:function(t,e,i){i.d(e,{x:function(){return resolveVariant}});var n=i(50853);function resolveVariant(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}},50853:function(t,e,i){i.d(e,{o:function(){return resolveVariantFromProps}});function resolveVariantFromProps(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}},32300:function(t,e,i){i.d(e,{GJ:function(){return checkTargetForNewValues},P$:function(){return getOrigin},CD:function(){return setTarget}});var n=i(72151),r=i(25598),s=i(55180),o=i(34932),a=i(30675),l=i(2779),u=i(95504),c=i(29991),h=i(35667);let d=[...c.$,u.$,a.P],findValueType=t=>d.find((0,h.l)(t));var p=i(13406);function setTarget(t,e){let i=(0,p.x)(t,e),{transitionEnd:n={},transition:r={},...a}=i?t.makeTargetAnimatable(i,!1):{};for(let e in a={...a,...n}){let i=(0,s.Y)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}function checkTargetForNewValues(t,e,i){var s,u;let c=Object.keys(e).filter(e=>!t.hasValue(e)),h=c.length;if(h)for(let d=0;d<h;d++){let h=c[d],p=e[h],m=null;Array.isArray(p)&&(m=p[0]),null===m&&(m=null!==(u=null!==(s=i[h])&&void 0!==s?s:t.readValue(h))&&void 0!==u?u:e[h]),null!=m&&("string"==typeof m&&((0,n.P)(m)||(0,r.W)(m))?m=parseFloat(m):!findValueType(m)&&a.P.test(p)&&(m=(0,l.T)(h,p)),t.addValue(h,(0,o.BX)(m,{owner:t})),void 0===i[h]&&(i[h]=m),null!==m&&t.setBaseTarget(h,m))}}function getOrigin(t,e,i){let n={};for(let r in t){let t=function(t,e){if(!e)return;let i=e[t]||e.default||e;return i.from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}},73810:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},33855:function(t,e,i){function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return removeItem},y4:function(){return addUniqueItem}})},76495:function(t,e,i){i.d(e,{u:function(){return clamp}});let clamp=(t,e,i)=>Math.min(Math.max(i,t),e)},29793:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(58261);let r=n.Z,s=n.Z},4657:function(t,e,i){i.d(e,{s:function(){return interpolate}});var n=i(29793),r=i(95504),s=i(76495),o=i(3152);function hueToRgb(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 a=i(3101),l=i(52857),u=i(65802);let mixLinearColor=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},c=[a.$,l.m,u.J],getColorType=t=>c.find(e=>e.test(t));function asRGBA(t){let e=getColorType(t);(0,n.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=hueToRgb(a,n,t+1/3),s=hueToRgb(a,n,t),o=hueToRgb(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let mixColor=(t,e)=>{let i=asRGBA(t),n=asRGBA(e),r={...i};return t=>(r.red=mixLinearColor(i.red,n.red,t),r.green=mixLinearColor(i.green,n.green,t),r.blue=mixLinearColor(i.blue,n.blue,t),r.alpha=(0,o.C)(i.alpha,n.alpha,t),l.m.transform(r))};var h=i(8985),d=i(30675);let mixImmediate=(t,e)=>i=>`${i>0?e:t}`;function getMixer(t,e){return"number"==typeof t?i=>(0,o.C)(t,e,i):r.$.test(t)?mixColor(t,e):t.startsWith("var(")?mixImmediate(t,e):mixComplex(t,e)}let mixArray=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>getMixer(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},mixObject=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=getMixer(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},mixComplex=(t,e)=>{let i=d.P.createTransformer(e),r=(0,d.V)(t),s=(0,d.V)(e),o=r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers;return o?(0,h.z)(mixArray(r.values,s.values),i):((0,n.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.`),mixImmediate(t,e))};var p=i(40702),m=i(58261);let mixNumber=(t,e)=>i=>(0,o.C)(t,e,i);function interpolate(t,e,{clamp:i=!0,ease:o,mixer:a}={}){let l=t.length;if((0,n.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],s=i||function(t){if("number"==typeof t);else if("string"==typeof t)return r.$.test(t)?mixColor:mixComplex;else if(Array.isArray(t))return mixArray;else if("object"==typeof t)return mixObject;return mixNumber}(t[0]),o=t.length-1;for(let i=0;i<o;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||m.Z:e;r=(0,h.z)(t,r)}n.push(r)}return n}(e,o,a),c=u.length,interpolator=e=>{let i=0;if(c>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,p.Y)(t[i],t[i+1],e);return u[i](n)};return i?e=>interpolator((0,s.u)(t[0],t[l-1],e)):interpolator}},13035:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},72151:function(t,e,i){i.d(e,{P:function(){return isNumericalString}});let isNumericalString=t=>/^\-?\d*\.?\d+$/.test(t)},28392:function(t,e,i){i.d(e,{I:function(){return isRefObject}});function isRefObject(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}},25598:function(t,e,i){i.d(e,{W:function(){return isZeroValueString}});let isZeroValueString=t=>/^0[^.\s]+$/.test(t)},65468:function(t,e,i){i.d(e,{X:function(){return memo}});function memo(t){let e;return()=>(void 0===e&&(e=t()),e)}},3152:function(t,e,i){i.d(e,{C:function(){return mix}});let mix=(t,e,i)=>-i*t+i*e+t},58261:function(t,e,i){i.d(e,{Z:function(){return noop}});let noop=t=>t},13253:function(t,e,i){i.d(e,{Y:function(){return defaultOffset}});var n=i(9807);function defaultOffset(t){let e=[0];return(0,n.c)(e,t.length-1),e}},9807:function(t,e,i){i.d(e,{c:function(){return fillOffset}});var n=i(3152),r=i(40702);function fillOffset(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.C)(i,1,o))}}},8985:function(t,e,i){i.d(e,{z:function(){return pipe}});let combineFunctions=(t,e)=>i=>e(t(i)),pipe=(...t)=>t.reduce(combineFunctions)},40702:function(t,e,i){i.d(e,{Y:function(){return progress}});let progress=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},55180:function(t,e,i){i.d(e,{Y:function(){return resolveFinalValueInKeyframes},p:function(){return isCustomValue}});var n=i(64127);let isCustomValue=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),resolveFinalValueInKeyframes=t=>(0,n.C)(t)?t[t.length-1]||0:t},2361:function(t,e,i){i.d(e,{L:function(){return SubscriptionManager}});var n=i(33855);let SubscriptionManager=class SubscriptionManager{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}}},53279:function(t,e,i){i.d(e,{X:function(){return millisecondsToSeconds},w:function(){return secondsToMilliseconds}});let secondsToMilliseconds=t=>1e3*t,millisecondsToSeconds=t=>t/1e3},54471:function(t,e,i){i.d(e,{h:function(){return useConstant}});var n=i(77455);function useConstant(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9180:function(t,e,i){i.d(e,{L:function(){return s}});var n=i(77455),r=i(13035);let s=r.j?n.useLayoutEffect:n.useEffect},44954:function(t,e,i){i.d(e,{R:function(){return velocityPerSecond}});function velocityPerSecond(t,e){return e?t*(1e3/e):0}},34932:function(t,e,i){i.d(e,{BX:function(){return motionValue},S1:function(){return o}});var n=i(2361),r=i(44954),s=i(81730);let isFloat=t=>!isNaN(parseFloat(t)),o={current:void 0};let MotionValue=class MotionValue{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:n}=s.frameData;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,s.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=isFloat(this.current),this.owner=e.owner}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(),s.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=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 motionValue(t,e){return new MotionValue(t,e)}}
1,3101:function(t,e,i){i.d(e,{$:function(){return s}});var n=i(52857),r=i(65051);let s={test:(0,r.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}},65802:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(8639),r=i(96879),s=i(61330),o=i(65051);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))+")"}},95504:function(t,e,i){i.d(e,{$:function(){return a}});var n=i(61330),r=i(3101),s=i(65802),o=i(52857);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)}},52857:function(t,e,i){i.d(e,{m:function(){return l}});var n=i(76495),r=i(8639),s=i(61330),o=i(65051);let clampRgbUnit=t=>(0,n.u)(0,255,t),a={...r.Rx,transform:t=>Math.round(clampRgbUnit(t))},l={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,s.Nw)(r.Fq.transform(n))+")"}},65051:function(t,e,i){i.d(e,{d:function(){return splitColor},i:function(){return isColorString}});var n=i(61330);let isColorString=(t,e)=>i=>!!((0,n.HD)(i)&&n.mj.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),splitColor=(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}}},87787:function(t,e,i){i.d(e,{h:function(){return a}});var n=i(30675),r=i(61330);let s=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(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 o=/([a-z-]*)\(.*?\)/g,a={...n.P,getAnimatableNone:t=>{let e=t.match(o);return e?e.map(applyDefaultFilter).join(" "):t}}},30675:function(t,e,i){i.d(e,{P:function(){return h},V:function(){return analyseComplexValue}});var n=i(20558),r=i(58261),s=i(95504),o=i(8639),a=i(61330);let l={regex:n.Xp,countKey:"Vars",token:"${v}",parse:r.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:s.$.parse},c={regex:a.KP,countKey:"Numbers",token:"${n}",parse:o.Rx.parse};function tokenise(t,{regex:e,countKey:i,token:n,parse:r}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(r)))}function analyseComplexValue(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&tokenise(i,l),tokenise(i,u),tokenise(i,c),i}function parseComplexValue(t){return analyseComplexValue(t).values}function createTransformer(t){let{values:e,numColors:i,numVars:n,tokenised:r}=analyseComplexValue(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=r<n?e.replace(l.token,t[r]):r<n+i?e.replace(u.token,s.$.transform(t[r])):e.replace(c.token,(0,a.Nw)(t[r]));return e}}let convertNumbersToZero=t=>"number"==typeof t?0:t,h={test:function(t){var e,i;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(a.dA))||void 0===i?void 0:i.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(t){let e=parseComplexValue(t),i=createTransformer(t);return i(e.map(convertNumbersToZero))}}},8639:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(76495);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}}
1,96879:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});var n=i(61330);let createUnitType=t=>({test:e=>(0,n.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=createUnitType("deg"),s=createUnitType("%"),o=createUnitType("px"),a=createUnitType("vh"),l=createUnitType("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},61330:function(t,e,i){i.d(e,{HD:function(){return isString},KP:function(){return n},Nw:function(){return sanitize},dA:function(){return r},mj:function(){return s}});let sanitize=t=>Math.round(1e5*t)/1e5,n=/(-)?([\d]*\.?[\d])+/g,r=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString(t){return"string"==typeof t}},73551:function(t,e,i){i.d(e,{L:function(){return isWillChangeMotionValue}});var n=i(24182);function isWillChangeMotionValue(t){return!!((0,n.i)(t)&&t.add)}},24182:function(t,e,i){i.d(e,{i:function(){return isMotionValue}});let isMotionValue=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.