1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1955],{81955:(t,e,i)=>{var n;let r,s,a;i.r(e),i.d(e,{AsyncMotionValueAnimation:()=>eJ,DOMKeyframesResolver:()=>iZ,DOMVisualElement:()=>rP,DocumentProjectionNode:()=>ab,Feature:()=>rM,FlatTree:()=>sQ,GroupAnimation:()=>eQ,GroupAnimationWithThen:()=>e1,HTMLProjectionNode:()=>aP,HTMLVisualElement:()=>r5,JSAnimation:()=>er,KeyframeResolver:()=>eR,LayoutAnimationBuilder:()=>ak,MotionGlobalConfig:()=>o,MotionValue:()=>iw,NativeAnimation:()=>eK,NativeAnimationExtended:()=>eX,NativeAnimationWrapper:()=>e2,NodeStack:()=>s5,ObjectVisualElement:()=>r3,SVGVisualElement:()=>sr,SubscriptionManager:()=>ix,ViewTransitionBuilder:()=>rn,VisualElement:()=>rV,acceleratedValues:()=>i1,activeAnimations:()=>S,addAttrValue:()=>i6,addDomEvent:()=>s_,addScaleCorrector:()=>r0,addStyleValue:()=>nr,addUniqueItem:()=>ig,addValueToWillChange:()=>iM,alpha:()=>B,analyseComplexValue:()=>ti,animate:()=>aJ,animateMini:()=>aQ,animateMotionValue:()=>ih,animateSingleValue:()=>sZ,animateTarget:()=>iC,animateValue:()=>es,animateVariant:()=>iB,animateView:()=>rr,animateVisualElement:()=>ij,animationMapKey:()=>e3,anticipate:()=>tG,applyAxisDelta:()=>rO,applyBoxDelta:()=>rI,applyGeneratorOptions:()=>ez,applyPointDelta:()=>rF,applyPxDefaults:()=>iJ,applyTreeDeltas:()=>rW,aspectRatio:()=>sO,attachFollow:()=>nG,attachSpring:()=>nQ,attrEffect:()=>i8,axisDeltaEquals:()=>sI,axisEquals:()=>sB,axisEqualsRounded:()=>sL,backIn:()=>tX,backInOut:()=>tH,backOut:()=>tY,boxEquals:()=>sj,boxEqualsRounded:()=>sF,buildHTMLStyles:()=>rG,buildProjectionTransform:()=>sN,buildSVGAttrs:()=>r7,buildSVGPath:()=>r6,buildTransform:()=>rH,calcAxisDelta:()=>sx,calcBoxDelta:()=>sT,calcChildStagger:()=>e4,calcGeneratorDuration:()=>tP,calcLength:()=>sy,calcRelativeAxis:()=>sw,calcRelativeAxisPosition:()=>sS,calcRelativeBox:()=>sb,calcRelativePosition:()=>sA,camelCaseAttributes:()=>st,camelToDash:()=>iE,cancelFrame:()=>p,cancelMicrotask:()=>nl,cancelSync:()=>aB,checkVariantsDidChange:()=>sd,circIn:()=>tq,circInOut:()=>t_,circOut:()=>tZ,clamp:()=>T,cleanDirtyNodes:()=>an,collectMotionValues:()=>iT,color:()=>_,compareByDepth:()=>sJ,complex:()=>ta,containsCSSVariable:()=>R,convertBoundingBoxToBox:()=>rE,convertBoxToBoundingBox:()=>rk,convertOffsetToTimes:()=>t9,copyAxisDeltaInto:()=>sg,copyAxisInto:()=>sm,copyBoxInto:()=>sf,correctBorderRadius:()=>r_,correctBoxShadow:()=>rJ,createAnimationState:()=>sh,createAxis:()=>ro,createAxisDelta:()=>rs,createBox:()=>rl,createDelta:()=>ra,createGeneratorEasing:()=>tM,createProjectionNode:()=>s7,createRenderBatcher:()=>d,createScopedAnimate:()=>a_,cubicBezier:()=>tI,cubicBezierAsString:()=>eI,defaultEasing:()=>t4,defaultOffset:()=>t3,defaultTransformValue:()=>em,defaultValueTypes:()=>iX,degrees:()=>K,delay:()=>s1,delayInSeconds:()=>s1,dimensionValueTypes:()=>iF,distance:()=>oh,distance2D:()=>od,eachAxis:()=>sW,easeIn:()=>tW,easeInOut:()=>tU,easeOut:()=>tN,easingDefinitionToFunction:()=>t0,fillOffset:()=>t5,fillWildcards:()=>ea,findDimensionValueType:()=>iO,findValueType:()=>n1,flushKeyframeResolvers:()=>eD,followValue:()=>nH,frame:()=>c,frameData:()=>m,frameSteps:()=>f,generateLinearEasing:()=>tA,getAnimatableNone:()=>iG,getAnimationMap:()=>e9,getComputedStyle:()=>nV,getDefaultTransition:()=>is,getDefaultValueType:()=>iH,getEasingForSegment:()=>aW,getFeatureDefinitions:()=>rA,getFinalKeyframe:()=>io,getMixer:()=>tv,getOptimisedAppearId:()=>iR,getOriginIndex:()=>nK,getValueAsType:()=>i3,getValueTransition:()=>il,getVariableValue:()=>it,getVariantContext:()=>sa,getViewAnimationLayerInfo:()=>n9,getViewAnimations:()=>n6,globalProjectionState:()=>s3,has2DTranslate:()=>rj,hasReducedMotionListener:()=>rh,hasScale:()=>rC,hasTransform:()=>rB,hasWarned:()=>aL,hex:()=>$,hover:()=>nm,hsla:()=>Z,hslaToRgba:()=>tl,inView:()=>ou,inertia:()=>tF,initPrefersReducedMotion:()=>rc,interpolate:()=>t2,invariant:()=>V,invisibleValues:()=>tf,isAnimationControls:()=>rm,isBezierDefinition:()=>tJ,isCSSVariableName:()=>M,isCSSVariableToken:()=>k,isControllingVariants:()=>rv,isDeltaZero:()=>sC,isDragActive:()=>nh,isDragging:()=>nu,isEasingArray:()=>t$,isElementKeyboardAccessible:()=>nv,isElementTextInput:()=>nT,isForcedMotionValue:()=>r1,isGenerator:()=>e$,isHTMLElement:()=>ne,isKeyframesTarget:()=>iS,isMotionValue:()=>iV,isNear:()=>sv,isNodeOrChild:()=>nf,isNumericalString:()=>e6,isObject:()=>nt,isPrimaryPointer:()=>ng,isSVGElement:()=>nP,isSVGSVGElement:()=>nz,isSVGTag:()=>se,isTransitionDefined:()=>iu,isVariantLabel:()=>rf,isVariantNode:()=>rx,isWaapiSupportedEasing:()=>iQ,isWillChangeMotionValue:()=>iP,isZeroValueString:()=>iI,keyframes:()=>t6,makeAnimationInstant:()=>eG,mapEasingToNativeEasing:()=>eN,mapValue:()=>n_,maxGeneratorDuration:()=>tV,measurePageBox:()=>rK,measureViewportBox:()=>rz,memo:()=>ej,microtask:()=>no,millisecondsToSeconds:()=>b,mirrorEasing:()=>tz,mix:()=>tb,mixArray:()=>tx,mixColor:()=>tm,mixComplex:()=>tw,mixImmediate:()=>tu,mixLinearColor:()=>td,mixNumber:()=>th,mixObject:()=>tT,mixValues:()=>sY,mixVisibility:()=>tg,motionValue:()=>ib,moveItem:()=>iv,nodeGroup:()=>aA,noop:()=>l,number:()=>C,numberValueTypes:()=>iY,observeTimeline:()=>nL,optimizedAppearDataAttribute:()=>iD,optimizedAppearDataId:()=>ik,parseAnimateLayoutArgs:()=>aD,parseCSSVariable:()=>e7,parseValueFromTransform:()=>ef,percent:()=>Y,pipe:()=>x,pixelsToPercent:()=>rZ,positionalKeys:()=>im,prefersReducedMotion:()=>ru,press:()=>nA,progress:()=>t1,progressPercentage:()=>q,propEffect:()=>i7,propagateDirtyNodes:()=>ai,px:()=>X,readTransformValue:()=>eg,recordStats:()=>n$,removeAxisDelta:()=>sP,removeAxisTransforms:()=>sM,removeBoxTransforms:()=>sD,removeItem:()=>iy,removePointDelta:()=>sV,renderHTML:()=>
1rq,renderSVG:()=>si,resize:()=>nj,resolveElements:()=>i2,resolveMotionValue:()=>s2,resolveVariant:()=>ip,resolveVariantFromProps:()=>ic,reverseEasing:()=>tK,rgbUnit:()=>N,rgba:()=>U,rootProjectionNode:()=>aV,scale:()=>j,scaleCorrectors:()=>rQ,scalePoint:()=>rL,scrapeHTMLMotionValuesFromProps:()=>r2,scrapeSVGMotionValuesFromProps:()=>sn,scroll:()=>oo,scrollInfo:()=>or,secondsToMilliseconds:()=>w,setDragLock:()=>nd,setFeatureDefinitions:()=>rS,setStyle:()=>eB,setTarget:()=>iA,spring:()=>tL,springValue:()=>nJ,stagger:()=>nY,startWaapiAnimation:()=>eU,statsBuffer:()=>h,steps:()=>aI,styleEffect:()=>ns,supportedWaapiEasing:()=>eW,supportsBrowserAnimation:()=>e_,supportsFlags:()=>eF,supportsLinearEasing:()=>eO,supportsPartialKeyframes:()=>i0,supportsScrollTimeline:()=>eL,svgEffect:()=>na,sync:()=>aC,testValueType:()=>iL,time:()=>y,transform:()=>nX,transformAxis:()=>rU,transformBox:()=>r$,transformBoxPoints:()=>rD,transformPropOrder:()=>ev,transformProps:()=>ex,transformValue:()=>nZ,transformValueTypes:()=>iK,translateAxis:()=>rN,updateMotionValuesFromProps:()=>rT,variantPriorityOrder:()=>rg,variantProps:()=>ry,velocityPerSecond:()=>tE,vh:()=>H,visualElementStore:()=>rp,vw:()=>G,warnOnce:()=>aF,warning:()=>A,wrap:()=>aO});let o={},l=t=>t,u=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],h={value:null,addProjectionMetrics:null};function d(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=u.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(d.schedule(e),t()),l++,e(o)}let d={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&h.value&&h.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,d.process(t))}};return d}(s,e?i:void 0),t),{}),{setup:l,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:g,postRender:y}=a,v=()=>{let s=o.useManualTiming?r.timestamp:performance.now();i=!1,o.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,l.process(r),d.process(r),c.process(r),p.process(r),m.process(r),f.process(r),g.process(r),y.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(v))};return{schedule:u.reduce((e,s)=>{let o=a[s];return e[s]=(e,s=!1,a=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(v)),o.schedule(e,s,a)),e},{}),cancel:t=>{for(let e=0;e<u.length;e++)a[u[e]].cancel(t)},state:r,steps:a}}let{schedule:c,cancel:p,state:m,steps:f}=d("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:l,!0);function g(){r=void 0}let y={now:()=>(void 0===r&&y.set(m.isProcessing||o.useManualTiming?m.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(g)}},v=(t,e)=>i=>e(t(i)),x=(...t)=>t.reduce(v),T=(t,e,i)=>i>e?e:i<t?t:i,w=t=>1e3*t,b=t=>t/1e3,S={layout:0,mainThread:0,waapi:0};i(95704);let A=()=>{},V=()=>{},P=t=>e=>"string"==typeof e&&e.startsWith(t),M=P("--"),E=P("var(--"),k=t=>!!E(t)&&D.test(t.split("/*")[0].trim()),D=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function R(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let C={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},B={...C,transform:t=>T(0,1,t)},j={...C,default:1},L=t=>Math.round(1e5*t)/1e5,F=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,O=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,I=(t,e)=>i=>!!("string"==typeof i&&O.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),W=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(F);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},N={...C,transform:t=>Math.round(T(0,255,t))},U={test:I("rgb","red"),parse:W("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+N.transform(t)+", "+N.transform(e)+", "+N.transform(i)+", "+L(B.transform(n))+")"},$={test: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),alph
1a:r?parseInt(r,16)/255:1}},transform:U.transform},z=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=z("deg"),Y=z("%"),X=z("px"),H=z("vh"),G=z("vw"),q={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(100*t)},Z={test:I("hsl","hue"),parse:W("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+Y.transform(L(e))+", "+Y.transform(L(i))+", "+L(B.transform(n))+")"},_={test:t=>U.test(t)||$.test(t)||Z.test(t),parse:t=>U.test(t)?U.parse(t):Z.test(t)?Z.parse(t):$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?U.transform(t):Z.transform(t),getAnimatableNone:t=>{let e=_.parse(t);return e.alpha=0,_.transform(e)}},J=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Q="number",tt="color",te=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ti(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=e.replace(te,t=>(_.test(t)?(n.color.push(s),r.push(tt),i.push(_.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(Q),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function tn(t){return ti(t).values}function tr(t){let{split:e,types:i}=ti(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===Q?r+=L(t[s]):e===tt?r+=_.transform(t[s]):r+=t[s]}return r}}let ts=t=>"number"==typeof t?0:_.test(t)?_.getAnimatableNone(t):t,ta={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(F)?.length||0)+(t.match(J)?.length||0)>0},parse:tn,createTransformer:tr,getAnimatableNone:function(t){let e=tn(t);return tr(t)(e.map(ts))}};function to(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}function tl({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=to(o,n,t+1/3),s=to(o,n,t),a=to(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}function tu(t,e){return i=>i>0?e:t}let th=(t,e,i)=>t+(e-t)*i,td=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},tc=[$,U,Z];function tp(t){let e=tc.find(e=>e.test(t));if(A(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===Z&&(i=tl(i)),i}let tm=(t,e)=>{let i=tp(t),n=tp(e);if(!i||!n)return tu(t,e);let r={...i};return t=>(r.red=td(i.red,n.red,t),r.green=td(i.green,n.green,t),r.blue=td(i.blue,n.blue,t),r.alpha=th(i.alpha,n.alpha,t),U.transform(r))},tf=new Set(["none","hidden"]);function tg(t,e){return tf.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function ty(t,e){return i=>th(t,e,i)}function tv(t){return"number"==typeof t?ty:"string"==typeof t?k(t)?tu:_.test(t)?tm:tw:Array.isArray(t)?tx:"object"==typeof t?_.test(t)?tm:tT:tu}function tx(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>tv(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function tT(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=tv(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tw=(t,e)=>{let i=ta.createTransformer(e),n=ti(t),r=ti(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?tf.has(t)&&!r.values.length||tf.has(e)&&!n.values.length?tg(t,e):x(tx(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i):(A(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),tu(t,e))};function tb(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?th(t,e,
1i):tv(t)(t,e)}let tS=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>c.update(e,t),stop:()=>p(e),now:()=>m.isProcessing?m.timestamp:y.now()}},tA=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},tV=2e4;function tP(t){let e=0,i=t.next(e);for(;!i.done&&e<tV;)e+=50,i=t.next(e);return e>=tV?1/0:e}function tM(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(tP(n),tV);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:b(r)}}function tE(t,e){return e?1e3/e*t:0}function tk(t,e,i){let n=Math.max(e-5,0);return tE(i-t(n),e-n)}let tD={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tR(t,e){return t*Math.sqrt(1-e*e)}let tC=["duration","bounce"],tB=["stiffness","damping","mass"];function tj(t,e){return e.some(e=>void 0!==t[e])}function tL(t=tD.visualDuration,e=tD.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tD.velocity,stiffness:tD.stiffness,damping:tD.damping,mass:tD.mass,isResolvedFromDuration:!1,...t};if(!tj(t,tB)&&tj(t,tC))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*T(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tD.mass,stiffness:n,damping:r}}else{let i=function({duration:t=tD.duration,bounce:e=tD.bounce,velocity:i=tD.velocity,mass:n=tD.mass}){let r,s;A(t<=w(tD.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=T(tD.minDamping,tD.maxDamping,a),t=T(tD.minDuration,tD.maxDuration,b(t)),a<1?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/tR(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=tR(Math.pow(e,2),a);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=w(t),isNaN(o))return{stiffness:tD.stiffness,damping:tD.damping,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tD.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-b(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=o-a,v=b(Math.sqrt(u/d)),x=5>Math.abs(y);if(r||(r=x?tD.restSpeed.granular:tD.restSpeed.default),s||(s=x?tD.restDelta.granular:tD.restDelta.default),g<1){let t=tR(v,g);i=e=>o-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return o-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let S={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;g<1&&(n=0===t?w(f):tk(i,t,e));let a=Math.abs(o-e)<=s;l.done=Math.abs(n)<=r&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(tP(S),tV),e=tA(e=>S.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return S}function tF({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),T=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=tL({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tk(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}tL.applyToOptions=t=>{let e=tM(t,100,tL);return t.ease=e.ease,t.duration=w(e.duration),t.type="keyframes",t};let tO=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tI(t,e,i,n){return t===e&&i===n?l:r=>
10===r||1===r?r:tO(function(t,e,i,n,r){let s,a,o=0;do(s=tO(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a}(r,0,1,t,i),e,n)}let tW=tI(.42,0,1,1),tN=tI(0,0,.58,1),tU=tI(.42,0,.58,1),t$=t=>Array.isArray(t)&&"number"!=typeof t[0],tz=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tK=t=>e=>1-t(1-e),tY=tI(.33,1.53,.69,.99),tX=tK(tY),tH=tz(tX),tG=t=>(t*=2)<1?.5*tX(t):.5*(2-Math.pow(2,-10*(t-1))),tq=t=>1-Math.sin(Math.acos(t)),tZ=tK(tq),t_=tz(tq),tJ=t=>Array.isArray(t)&&"number"==typeof t[0],tQ={linear:l,easeIn:tW,easeInOut:tU,easeOut:tN,circIn:tq,circInOut:t_,circOut:tZ,backIn:tX,backInOut:tH,backOut:tY,anticipate:tG},t0=t=>{if(tJ(t)){V(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return tI(e,i,n,r)}return"string"==typeof t?(V(void 0!==tQ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tQ[t]):t},t1=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function t2(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(V(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],r=i||o.mix||tb,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=x(Array.isArray(e)?e[i]||l:e,s)),n.push(s)}return n}(e,n,r),h=u.length,d=i=>{if(a&&i<t[0])return e[0];let n=0;if(h>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=t1(t[n],t[n+1],i);return u[n](r)};return i?e=>d(T(t[0],t[s-1],e)):d}function t5(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=t1(0,e,n);t.push(th(i,1,r))}}function t3(t){let e=[0];return t5(e,t.length-1),e}function t9(t,e){return t.map(t=>t*e)}function t4(t,e){return t.map(()=>e||tU).splice(0,t.length-1)}function t6({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=t$(n)?n.map(t0):t0(n),s={done:!1,value:e[0]},a=t2(t9(i&&i.length===e.length?i:t3(e),t),e,{ease:Array.isArray(r)?r:t4(e,r)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let t8=t=>null!==t;function t7(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(t8),a=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let et={decay:tF,inertia:tF,tween:t6,keyframes:t6,spring:tL};function ee(t){"string"==typeof t.type&&(t.type=et[t.type])}class ei{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let en=t=>t/100;class er extends ei{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==y.now()&&this.tick(y.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},S.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ee(t);let{type:e=t6,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,o=e||t6;o!==t6&&"number"!=typeof a[0]&&(this.mixKeyframes=x(en,tb(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tP(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(x=s)),v=T(0,1,i)*a}let w=y?{done:!1,value:u[0]}:x.next(v);r&&(w.value=r(w.value));let{done:b}=w;y||null===o||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&p!==tF&&(w.value=t7(u,this.options,f,this.speed)),m&&m(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return b(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(this.currentTime)}set time(t){t=w(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(y.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tS,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(y.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,S.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function es(t){return new er(t)}function ea(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}let eo=t=>180*t/Math.PI,el=t=>eh(eo(Math.atan2(t[1],t[0]))),eu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:el,rotateZ:el,skewX:t=>eo(Math.atan(t[1])),skewY:t=>eo(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eh=t=>((t%=360)<0&&(t+=360),t),ed=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ec=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ep={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ed,scaleY:ec,scale:t=>(ed(t)+ec(t))/2,rotateX:t=>eh(eo(Math.atan2(t[6],t[5]))),rotateY:t=>eh(eo(Math.atan2(-t[2],t[0]))),rotateZ:el,rotate:el,skewX:t=>eo(Math.atan(t[4])),skewY:t=>eo(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function em(t){return+!!t.includes("scale")}function ef(t,e){let i,n;if(!t||"none"===t)return em(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ep,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eu,n=e}if(!n)return em(e);let s=i[e],a=n[1].split(",").map(ey);return"function"==typeof s?s(a):a[s]}let eg=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ef(i,e)};function ey(t){return parseFloat(t.trim())}let ev=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ex=new Set(ev),eT=t=>t===C||t===X,ew=new Set(["x","y","z"]),eb=ev.filter(t=>!ew.has(t)),eS={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:(t,{transform:e})=>ef(e,"x"),y:(t,{transform:e})=>ef(e,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let eA=new Set,eV=!1,eP=!1,eM=!1;function eE(){if(eP){let t=Array.from(eA).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eb.forEach(i=>
1{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eP=!1,eV=!1,eA.forEach(t=>t.complete(eM)),eA.clear()}function ek(){eA.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eP=!0)})}function eD(){eM=!0,ek(),eE(),eM=!1}class eR{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eA.add(this),eV||(eV=!0,c.read(ek),c.resolveKeyframes(eE))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}ea(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eA.delete(this)}cancel(){"scheduled"===this.state&&(eA.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eC=t=>t.startsWith("--");function eB(t,e,i){eC(e)?t.style.setProperty(e,i):t.style[e]=i}function ej(t){let e;return()=>(void 0===e&&(e=t()),e)}let eL=ej(()=>void 0!==window.ScrollTimeline),eF={},eO=function(t,e){let i=ej(t);return()=>eF[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eI=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eI([0,.65,.55,1]),circOut:eI([.55,0,1,.45]),backIn:eI([.31,.01,.66,-.59]),backOut:eI([.33,1.53,.69,.99])};function eN(t,e){if(t)return"function"==typeof t?eO()?tA(t,e):"ease-out":tJ(t)?eI(t):Array.isArray(t)?t.map(t=>eN(t,e)||eW.easeOut):eW[t]}function eU(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let d={[e]:i};l&&(d.offset=l);let c=eN(o,r);Array.isArray(c)&&(d.easing=c),h.value&&S.waapi++;let p={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(p.pseudoElement=u);let m=t.animate(d,p);return h.value&&m.finished.finally(()=>{S.waapi--}),m}function e$(t){return"function"==typeof t&&"applyToOptions"in t}function ez({type:t,...e}){return e$(t)&&eO()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class eK extends ei{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,V("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=ez(t);this.animation=eU(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t7(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):eB(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return b(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=w(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eL())?(this.animation.timeline=t,l):e(this)}}let eY={anticipate:tG,backInOut:tH,circInOut:t_};class eX extends eK{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eY&&(t.ease=eY[t.ease])}(t),ee(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new er({...s,autoplay:!1}),o=Math.max(10,y.now()-this.startTime),l=T(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let eH=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(ta.test(t)||"0"===t)&&!t.startsWith("url("));function eG(t){t.duration=0,t.type="keyframes"}let eq=new Set(["opacity","clipPath","filter","transform"]),eZ=ej(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function e_(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return eZ()&&i&&eq.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}class eJ extends ei{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=y.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},c=u?.KeyframeResolver||eR;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:u,isHandoff:h,onUpdate:d}=i;this.resolvedAt=y.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=eH(r,e),o=eH(s,e);return A(a===o,`You are trying to animate ${e} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||e$(i))&&n)}(t,r,s,a)&&((o.instantAnimations||!u)&&d?.(t7(t,i,e)),t[0]=t[t.length-1],eG(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=!h&&e_(c),m=c.motionValue?.owner?.current,f=p?new eX({...c,element:m}):new er(c);f.finished.then(()=>{this.notifyFinished()}).catch(l),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eD()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class eQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return e0(this.animations,"duration")}get iterationDuration(){return e0(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function e0(t,e){let i=0;for(let n=0;n<t.length;n++){let r=t[n][e];null!==r&&r>i&&(i=r)}return i}class e1 extends eQ{then(t,e){return this.finished.finally(t).then(()=>{})}}class e2 extends eK{constructor(t){super(),this.animation=t,t.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}}let e5=new WeakMap,e3=(t,e="")=>`${t}:${e}`;function e9(t){let e=e5.get(t)||new Map;return e5.set(t,e),e}function e4(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}let e6=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),e8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function e7(t){let e=e8.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}function it(t,e,i=1){V(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=e7(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return e6(t)?parseFloat(t):t}return k(r)?it(r,e,i+1):r}let ie={type:"spring",stiffness:500,damping:25,restSpeed:10},ii={type:"keyframes",duration:.8},ir={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},is=(t,{keyframes:e})=>e.length>2?ii:ex.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ie:ir,ia=t=>null!==t;function io(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(ia),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}function il(t,e){return t?.[e]??t?.default??t}function iu({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}let ih=(t,e,i,n={},r,s)=>a=>{let l=il(n,t)||{}
1,u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=w(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};iu(l)||Object.assign(d,is(t,d)),d.duration&&(d.duration=w(d.duration)),d.repeatDelay&&(d.repeatDelay=w(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(eG(d),0===d.delay&&(p=!0)),(o.instantAnimations||o.skipAnimations||r?.shouldSkipAnimations)&&(p=!0,eG(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!s&&void 0!==e.get()){let t=io(d.keyframes,l);if(void 0!==t)return void c.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new er(d):new eJ(d)};function id(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ic(t,e,i,n){if("function"==typeof e){let[r,s]=id(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=id(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function ip(t,e,i){let n=t.getProps();return ic(n,e,void 0!==i?i:n.custom,t)}let im=new Set(["width","height","top","left","right","bottom",...ev]);function ig(t,e){-1===t.indexOf(e)&&t.push(e)}function iy(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function iv([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&n<t.length){let n=i<0?t.length+i:i,[r]=t.splice(e,1);t.splice(n,0,r)}return t}class ix{constructor(){this.subscriptions=[]}add(t){return ig(this.subscriptions,t),()=>iy(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}}let iT={current:void 0};class iw{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=y.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=y.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ix);let i=this.events[t].add(e);return"change"===t?()=>{i(),c.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return iT.current&&iT.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=y.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tE(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ib(t,e){return new iw(t,e)}let iS=t=>Array.isArray(t);function iA(t,e){let{transitionEnd:i={},transition:n={},...r}=ip(t,e)||{};for(let e in r={...r,...i}){var s;let i=iS(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ib(i))}}let iV=t=>!!(t&&t.getVelocity);function iP(t){return!!(iV(t)&&t.add)}function iM(t,e){let i=t.getValue("willChange");if(iP(i))return i.add(e);if(!i&&o.WillChange){let i=new o.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function iE(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ik="framerAppearId",iD="data-"+iE(ik);function iR(t){return t.props[iD]}function iC(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=e,l=s?.reduceMotion;n&&(s=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let a={delay:i,...il(s||{},e)},d=n.get();if(void 0!==d&&!n.isAnimating&&!Array.isArray(r)&&r===d&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=iR(t);if(i){let t=window.MotionHandoffAnimation(i,e,c);null!==t&&(a.startTime=t,p=!0)}}iM(t,e);let m=l??t.shouldReduceMotion;n.start(ih(e,n,r,m&&im.has(e)?{type:!1}:a,t,p));let f=n.animation;f&&u.push(f)}return a&&Promise.all(u).then(()=>{c.update(()=>{a&&iA(t,a)})}),u}function iB(t,e,i={}){let n=ip(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iC(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(t,e,i=0,n=0,r=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(iB(l,e,{...a,delay:i+("function"==typeof n?0:n)+e4(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}function ij(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iB(t,e,i)));else if("string"==typeof e)n=iB(t,e,i);else{let r="function"==typeof e?ip(t,e,i.custom):e;n=Promise.all(iC(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}let iL=t=>e=>e.test(t),iF=[C,X,Y,K,G,H,{test:t=>"auto"===t,parse:t=>t}],iO=t=>iF.find(iL(t)),iI=t=>/^0[^.\s]+$/u.test(t),iW=new Set(["brightness","contrast","saturate","opacity"]);function iN(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(F)||[];if(!n)return t;let r=i.replace(n,""),s=+!!iW.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let iU=/\b([a-z-]*)\(.*?\)/gu,i$={...ta,getAnimatableNone:t=>{let e=t.match(iU);return e?e.map(iN).join(" "):t}},iz={...C,transform:Math.round},iK={rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:j,scaleX:j,scaleY:j,scaleZ:j,skew:K,skewX:K,skewY:K,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:B,originX:q,originY:q,originZ:X},iY={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,inset:X,insetBlock:X,insetBlockStart:X,insetBlockEnd:X,insetInline:X,insetInlineStart:X,insetInlineEnd:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,paddingBlock:X,paddingBlockStart:X,paddingBlockEnd:X,paddingInline:X,paddingInlineStart:X,paddingInlineEnd:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,marginBlock:X,marginBlockStart:X,marginBlockEnd:X,marginInline:X,marginInlineStart:X,marginInlineEnd:X,fontSize:X,backgroundPositionX:X,backgroundPositionY:X,...iK,zIndex:iz,fillOpacity:B,strokeOpacity:B,numOctaves:iz},iX={...iY,color:_,backgroundColor:_,outlineColor:_,fill:_,stroke:_,borderColor:_,borderTopColor:_,borderRightColor:_,borderBottomColor:_,borderLeftColor:_,filter:i$,WebkitFilter:i$},iH=t=>iX[t];function iG(t,e){let i=iH(t);return i!==i$&&(i=ta),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let iq=new Set(["auto","none","0"]);class iZ extends eR{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&k(n=n.trim())){let r=it(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!im.has(i)||2!==t.length)return;let[n,r]=t,s=iO(n),a=iO(r);if(R(n)!==R(r)&&eS[i]){this.needsMeasurement=!0;return}if(s!==a)if(eT(s)&&eT(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else eS[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||iI(n)))&&i.push(e)}
1i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!iq.has(e)&&ti(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=iG(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=eS[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let i_=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function iJ(t,e){for(let i=0;i<t.length;i++)"number"==typeof t[i]&&i_.has(e)&&(t[i]=t[i]+"px")}function iQ(t){return!!("function"==typeof t&&eO()||!t||"string"==typeof t&&(t in eW||eO())||tJ(t)||Array.isArray(t)&&t.every(iQ))}let i0=ej(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),i1=new Set(["opacity","clipPath","filter","transform"]);function i2(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}function i5(t){return(e,i)=>{let n=i2(e),r=[];for(let e of n){let n=t(e,i);r.push(n)}return()=>{for(let t of r)t()}}}let i3=(t,e)=>e&&"number"==typeof t?e.transform(t):t;class i9{constructor(){this.latest={},this.values=new Map}set(t,e,i,n,r=!0){let s=this.values.get(t);s&&s.onRemove();let a=()=>{let n=e.get();r?this.latest[t]=i3(n,iY[t]):this.latest[t]=n,i&&c.render(i)};a();let o=e.on("change",a);n&&e.addDependent(n);let l=()=>{o(),i&&p(i),this.values.delete(t),n&&e.removeDependent(n)};return this.values.set(t,{value:e,onRemove:l}),l}get(t){return this.values.get(t)?.value}destroy(){for(let t of this.values.values())t.onRemove()}}function i4(t){let e=new WeakMap,i=[];return(n,r)=>{let s=e.get(n)??new i9;for(let a in e.set(n,s),r){let e=r[a],o=t(n,s,a,e);i.push(o)}return()=>{for(let t of i)t()}}}let i6=(t,e,i,n)=>{let r=function(t,e){if(!(e in t))return!1;let i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return i&&"function"==typeof i.set}(t,i),s=r?i:i.startsWith("data")||i.startsWith("aria")?iE(i):i,a=r?()=>{t[s]=e.latest[i]}:()=>{let n=e.latest[i];null==n?t.removeAttribute(s):t.setAttribute(s,String(n))};return e.set(i,n,a)},i8=i5(i4(i6)),i7=i4((t,e,i,n)=>e.set(i,n,()=>{t[i]=e.latest[i]},void 0,!1));function nt(t){return"object"==typeof t&&null!==t}function ne(t){return nt(t)&&"offsetHeight"in t}let ni={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nn=new Set(["originX","originY","originZ"]),nr=(t,e,i,n)=>{let r,s;return ex.has(i)?(e.get("transform")||(ne(t)||e.get("transformBox")||nr(t,e,"transformBox",new iw("fill-box")),e.set("transform",new iw("none"),()=>{t.style.transform=function(t){let e="",i=!0;for(let n=0;n<ev.length;n++){let r=ev[n],s=t.latest[r];if(void 0===s)continue;let a=!0;
1if("number"==typeof s)a=s===+!!r.startsWith("scale");else{let t=parseFloat(s);a=r.startsWith("scale")?1===t:0===t}if(!a){i=!1;let n=ni[r]||r,s=t.latest[r];e+=`${n}(${s}) `}}return i?"none":e.trim()}(e)})),s=e.get("transform")):nn.has(i)?(e.get("transformOrigin")||e.set("transformOrigin",new iw(""),()=>{let i=e.latest.originX??"50%",n=e.latest.originY??"50%",r=e.latest.originZ??0;t.style.transformOrigin=`${i} ${n} ${r}`}),s=e.get("transformOrigin")):r=eC(i)?()=>{t.style.setProperty(i,e.latest[i])}:()=>{t.style[i]=e.latest[i]},e.set(i,n,r,s)},ns=i5(i4(nr)),na=i5(i4((t,e,i,n)=>i.startsWith("path")?function(t,e,i,n){return(c.render(()=>t.setAttribute("pathLength","1")),"pathOffset"===i)?e.set(i,n,()=>{let n=e.latest[i];t.setAttribute("stroke-dashoffset",`${-n}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new iw("1 1"),()=>{let{pathLength:i=1,pathSpacing:n}=e.latest;t.setAttribute("stroke-dasharray",`${i} ${n??1-Number(i)}`)}),e.set(i,n,void 0,e.get("stroke-dasharray")))}(t,e,i,n):i.startsWith("attr")?i6(t,e,i.replace(/^attr([A-Z])/,(t,e)=>e.toLowerCase()),n):(i in t.style?nr:i6)(t,e,i,n))),{schedule:no,cancel:nl}=d(queueMicrotask,!1),nu={x:!1,y:!1};function nh(){return nu.x||nu.y}function nd(t){if("x"===t||"y"===t)if(nu[t])return null;else return nu[t]=!0,()=>{nu[t]=!1};return nu.x||nu.y?null:(nu.x=nu.y=!0,()=>{nu.x=nu.y=!1})}function nc(t,e){let i=i2(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function np(t){return!("touch"===t.pointerType||nh())}function nm(t,e,i={}){let[n,r,s]=nc(t,i),a=t=>{if(!np(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{np(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",a,r)}),s}let nf=(t,e)=>!!e&&(t===e||nf(t,e.parentElement)),ng=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,ny=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nv(t){return ny.has(t.tagName)||!0===t.isContentEditable}let nx=new Set(["INPUT","SELECT","TEXTAREA"]);function nT(t){return nx.has(t.tagName)||!0===t.isContentEditable}let nw=new WeakSet;function nb(t){return e=>{"Enter"===e.key&&t(e)}}function nS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function nA(t,e,i={}){let[n,r,s]=nc(t,i),a=t=>{let n=t.currentTarget;if(!(ng(t)&&!nh()))return;nw.add(n);let s=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),nw.has(n)&&nw.delete(n),ng(t)&&!nh()&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||nf(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),ne(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=nb(()=>{if(nw.has(i))return;nS(i,"down");let t=nb(()=>{nS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nS(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),nv(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}function nV(t,e){let i=window.getComputedStyle(t);return eC(e)?i.getPropertyValue(e):i[e]}function nP(t){return nt(t)&&"ownerSVGElement"in t}let nM=new WeakMap,nE=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nP(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nk=nE("inline","width","offsetWidth"),nD=nE("block","height","offsetHeight");function nR({target:t,borderBoxSize:e}){nM.get(t)?.forEach(i=>{i(t,{get width(){return nk(t,e)},get height(){return nD(t,e)}})})}function nC(t){t.forEach(nR)}let nB=new Set;function nj(t,e){return"function"==typeof t?(nB.add(t),a||(a=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};nB.forEach(e=>e(t))},window.addEventListener("resize",a)),()=>{nB.delete(t),nB.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):function(t,e){s||"undefined"!=typeof ResizeObserver&&(s=new ResizeObserver(nC));let i=i2(t);
1return i.forEach(t=>{let i=nM.get(t);i||(i=new Set,nM.set(t,i)),i.add(e),s?.observe(t)}),()=>{i.forEach(t=>{let i=nM.get(t);i?.delete(e),i?.size||s?.unobserve(t)})}}(t,e)}function nL(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return c.preUpdate(n,!0),()=>p(n)}function nF(){let{value:t}=h;if(null===t)return void p(nF);t.frameloop.rate.push(m.delta),t.animations.mainThread.push(S.mainThread),t.animations.waapi.push(S.waapi),t.animations.layout.push(S.layout)}function nO(t){return t.reduce((t,e)=>t+e,0)/t.length}function nI(t,e=nO){return 0===t.length?{min:0,max:0,avg:0}:{min:Math.min(...t),max:Math.max(...t),avg:e(t)}}let nW=t=>Math.round(1e3/t);function nN(){h.value=null,h.addProjectionMetrics=null}function nU(){let{value:t}=h;if(!t)throw Error("Stats are not being measured");nN(),p(nF);let e={frameloop:{setup:nI(t.frameloop.setup),rate:nI(t.frameloop.rate),read:nI(t.frameloop.read),resolveKeyframes:nI(t.frameloop.resolveKeyframes),preUpdate:nI(t.frameloop.preUpdate),update:nI(t.frameloop.update),preRender:nI(t.frameloop.preRender),render:nI(t.frameloop.render),postRender:nI(t.frameloop.postRender)},animations:{mainThread:nI(t.animations.mainThread),waapi:nI(t.animations.waapi),layout:nI(t.animations.layout)},layoutProjection:{nodes:nI(t.layoutProjection.nodes),calculatedTargetDeltas:nI(t.layoutProjection.calculatedTargetDeltas),calculatedProjections:nI(t.layoutProjection.calculatedProjections)}},{rate:i}=e.frameloop;return i.min=nW(i.min),i.max=nW(i.max),i.avg=nW(i.avg),[i.min,i.max]=[i.max,i.min],e}function n$(){if(h.value)throw nN(),Error("Stats are already being measured");return h.value={frameloop:{setup:[],rate:[],read:[],resolveKeyframes:[],preUpdate:[],update:[],preRender:[],render:[],postRender:[]},animations:{mainThread:[],waapi:[],layout:[]},layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},h.addProjectionMetrics=t=>{let{layoutProjection:e}=h.value;e.nodes.push(t.nodes),e.calculatedTargetDeltas.push(t.calculatedTargetDeltas),e.calculatedProjections.push(t.calculatedProjections)},c.postRender(nF,!0),nU}function nz(t){return nP(t)&&"svg"===t.tagName}function nK(t,e){if("first"===t)return 0;{let i=e-1;return"last"===t?i:i/2}}function nY(t=.1,{startDelay:e=0,from:i=0,ease:n}={}){return(r,s)=>{let a=t*Math.abs(("number"==typeof i?i:nK(i,s))-r);if(n){let e=s*t;a=t0(n)(a/e)*e}return e+a}}function nX(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],s=t2(r,t[2+i],t[3+i]);return e?s(n):s}function nH(t,e){let i=ib(iV(t)?t.get():t);return nG(i,t,e),i}function nG(t,e,i={}){let n,r=t.get(),s=null,a=r,o="string"==typeof r?r.replace(/[\d.-]/g,""):void 0,l=()=>{s&&(s.stop(),s=null)};if(t.attach((e,r)=>{a=e,n=t=>{var e,i;return r((e=t,(i=o)?e+i:e))},c.postRender(()=>{l();let e=nq(t.get()),r=nq(a);e!==r&&(s=new er({keyframes:[e,r],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})),t.events.animationStart?.notify(),s?.then(()=>{t.events.animationComplete?.notify()})})},l),iV(e)){let i=e.on("change",e=>{var i,n;return t.set((i=e,(n=o)?i+n:i))}),n=t.on("destroy",i);return()=>{i(),n()}}return l}function nq(t){return"number"==typeof t?t:parseFloat(t)}function nZ(t){let e=[];iT.current=e;let i=t();iT.current=void 0;let n=ib(i),r=()=>n.set(t()),s=()=>c.preRender(r,!1,!0),a=e.map(t=>t.on("change",s));return n.on("destroy",()=>{a.forEach(t=>t()),p(r)}),n}function n_(t,e,i,n){let r=nX(e,i,n);return nZ(()=>r(t.get()))}function nJ(t,e){return nH(t,{type:"spring",...e})}function nQ(t,e,i){return nG(t,e,{type:"spring",...i})}let n0=[...iF,_,ta],n1=t=>n0.find(iL(t)),n2={},n5=null,n3={set:(t,e)=>{n2[t]=e},commit:()=>{n5||((n5=document.createElement("style")).id="motion-view");let t="";for(let e in n2){let i=n2[e];for(let[n,r]of(t+=`${e} { 2`,Object.entries(i)))t+=` ${n}: ${r}; 3`;t+="}\n"}n5.textContent=t,document.head.appendChild(n5),n2={}},remove:()=>{n5&&n5.parentElement&&n5.parentElement.removeChild(n5)}};function n9(t){let e=t.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function n4(t){let{effect:e}=t;return!!e&&e.target===document.documentElement&&e.pseudoElement?.startsWith("::view-transition")}function n6(){return document.getAnimations().filter(n4)}let n8=["layout","enter","exit","new","old"];function n7(t,e){return t?.[e]?.keyframes.opacity}let rt=[],re=null;function ri(){for(let t=rt.length-1;t>=0;t--){let e=rt[t],{interrupt:i}=e.options;if("immediate"===i){let i=rt.slice(0,t+1).map(t=>t.update),n=rt.slice(t+1);e.update=()=>
3{i.forEach(t=>t())},rt=[e,...n];break}}re&&rt[0]?.options.interrupt!=="immediate"||function t(){var e;re=null;let[i]=rt;i&&(iy(rt,e=i),re=e,(function(t){let{update:e,targets:i,options:n}=t;if(!document.startViewTransition)return new Promise(async t=>{await e(),t(new eQ([]))});i.has("root")&&Object.keys(i.get("root")).length>0||n3.set(":root",{"view-transition-name":"none"}),n3.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),n3.commit();let r=document.startViewTransition(async()=>{await e()});return r.finished.finally(()=>{n3.remove()}),new Promise(t=>{r.ready.then(()=>{let e=n6(),r=[];for(let t of(i.forEach((t,e)=>{for(let i of n8){if(!t[i])continue;let{keyframes:s,options:a}=t[i];for(let[t,o]of Object.entries(s)){if(!o)continue;let s={...il(n,t),...il(a,t)},l="layout"===i?"group":"enter"===i||"new"===i?"new":"exit"===i||"old"===i?"old":"group";"opacity"!==t||Array.isArray(o)||(o=[+("new"!==l),o]),"function"==typeof s.delay&&(s.delay=s.delay(0,1)),s.duration&&(s.duration=w(s.duration)),s.delay&&(s.delay=w(s.delay));let u=new eK({...s,element:document.documentElement,name:t,pseudoElement:`::view-transition-${l}(${e})`,keyframes:o});r.push(u)}}}),e)){if("finished"===t.playState)continue;let{effect:e}=t;if(!e||!(e instanceof KeyframeEffect))continue;let{pseudoElement:s}=e;if(!s)continue;let a=n9(s);if(!a)continue;let o=i.get(a.layer);if(o)n7(o,"enter")&&n7(o,"exit")&&e.getKeyframes().some(t=>t.mixBlendMode)?r.push(new e2(t)):t.cancel();else{let i={...il(n,"group"===a.type?"layout":"")};i.duration&&(i.duration=w(i.duration));let s=eN((i=ez(i)).ease,i.duration);e.updateTiming({delay:w(i.delay??0),duration:i.duration,easing:s}),r.push(new e2(t))}}t(new eQ(r))})})})(e).then(i=>{e.notifyReady(i),i.finished.finally(t)}))}()}class rn{constructor(t,e={}){this.currentSubject="root",this.targets=new Map,this.notifyReady=l,this.readyPromise=new Promise(t=>{this.notifyReady=t}),this.update=t,this.options={interrupt:"wait",...e},rt.push(this),no.render(ri)}get(t){return this.currentSubject=t,this}layout(t,e){return this.updateTarget("layout",t,e),this}new(t,e){return this.updateTarget("new",t,e),this}old(t,e){return this.updateTarget("old",t,e),this}enter(t,e){return this.updateTarget("enter",t,e),this}exit(t,e){return this.updateTarget("exit",t,e),this}crossfade(t){return this.updateTarget("enter",{opacity:1},t),this.updateTarget("exit",{opacity:0},t),this}updateTarget(t,e,i={}){let{currentSubject:n,targets:r}=this;r.has(n)||r.set(n,{}),r.get(n)[t]={keyframes:e,options:i}}then(t,e){return this.readyPromise.then(t,e)}}function rr(t,e={}){return new rn(t,e)}let rs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:rs(),y:rs()}),ro=()=>({min:0,max:0}),rl=()=>({x:ro(),y:ro()}),ru={current:null},rh={current:!1},rd="undefined"!=typeof window;function rc(){if(rh.current=!0,rd)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ru.current=t.matches;t.addEventListener("change",e),e()}else ru.current=!1}let rp=new WeakMap;function rm(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function rf(t){return"string"==typeof t||Array.isArray(t)}let rg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ry=["initial",...rg];function rv(t){return rm(t.animate)||ry.some(e=>rf(t[e]))}function rx(t){return!!(rv(t)||t.variants)}function rT(t,e,i){for(let n in e){let r=e[n],s=i[n];if(iV(r))t.addValue(n,r);else if(iV(s))t.addValue(n,ib(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,ib(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}let rw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rb={};function rS(t){rb=t}function rA(){return rb}class rV{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eR,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=y.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,c.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=rv(e),this.isVariantNode=rx(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&iV(e)&&e.set(l[t])}}mount(t){this.current=t,rp.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.forEac
3h((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(rh.current||rc(),this.shouldReduceMotion=ru.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),p(this.notifyUpdate),p(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=ex.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&c.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rb){let e=rb[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rl()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rw.length;e++){let i=rw[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=rT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ib(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(e6(i)||iI(i))?i=parseFloat(i):!n1(i)&&ta.test(e)&&(i=iG(t,e)),this.setBaseTarget(t,iV(i)?i.get():i)),iV(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ic(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||iV(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new ix),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){no.render(this.render)}}class rP extends rV{constructor(){super(...arguments),this.KeyframeResolver=iZ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;iV(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class rM{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rE({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function rk({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rD(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}}function rR(t){return void 0===t||1===t}function rC({scale:t,scaleX:e,scaleY:i}){return!rR(t)||!rR(e)||!rR(i)}function rB(t){return rC(t)||rj(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function rj(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function rL(t,e,i){return i+e*(t-i)}
3function rF(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function rO(t,e=0,i=1,n,r){t.min=rF(t.min,e,i,n,r),t.max=rF(t.max,e,i,n,r)}function rI(t,{x:e,y:i}){rO(t.x,e.translate,e.scale,e.originPoint),rO(t.y,i.translate,i.scale,i.originPoint)}function rW(t,e,i,n=!1){let r,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&r$(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,rI(t,s)),n&&rB(r.latestValues)&&r$(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function rN(t,e){t.min=t.min+e,t.max=t.max+e}function rU(t,e,i,n,r=.5){let s=th(t.min,t.max,r);rO(t,e,i,s,n)}function r$(t,e){rU(t.x,e.x,e.scaleX,e.scale,e.originX),rU(t.y,e.y,e.scaleY,e.scale,e.originY)}function rz(t,e){return rE(rD(t.getBoundingClientRect(),e))}function rK(t,e,i){let n=rz(t,i),{scroll:r}=e;return r&&(rN(n.x,r.offset.x),rN(n.y,r.offset.y)),n}let rY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rX=ev.length;function rH(t,e,i){let n="",r=!0;for(let s=0;s<rX;s++){let a=ev[s],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=i3(o,iY[a]);if(!l){r=!1;let e=rY[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}function rG(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(ex.has(t)){a=!0;continue}if(M(t)){r[t]=i;continue}{let e=i3(i,iY[t]);t.startsWith("origin")?(o=!0,s[t]=e):n[t]=e}}if(!e.transform&&(a||i?n.transform=rH(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}function rq(t,{style:e,vars:i},n,r){let s,a=t.style;for(s in e)a[s]=e[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function rZ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let r_={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!X.test(t))return t;else t=parseFloat(t);let i=rZ(t,e.target.x),n=rZ(t,e.target.y);return`${i}% ${n}%`}},rJ={correct:(t,{treeScale:e,projectionDelta:i})=>{let n=ta.parse(t);if(n.length>5)return t;let r=ta.createTransformer(t),s=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=th(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}},rQ={borderRadius:{...r_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r_,borderTopRightRadius:r_,borderBottomLeftRadius:r_,borderBottomRightRadius:r_,boxShadow:rJ};function r0(t){for(let e in t)rQ[e]=t[e],M(e)&&(rQ[e].isCSSVariable=!0)}function r1(t,{layout:e,layoutId:i}){return ex.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!rQ[t]||"opacity"===t)}function r2(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(iV(n[e])||r&&iV(r[e])||r1(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}class r5 extends rP{constructor(){super(...arguments),this.type="html",this.renderInstance=rq}readValueFromInstance(t,e){if(ex.has(e))return this.projection?.isProjecting?em(e):eg(t,e);{let i=window.getComputedStyle(t),n=(M(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rz(t,e)}build(t,e,i){rG(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return r2(t,e,i)}}class r3 extends rV{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return rl()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}let r9={offset:"stroke-dashoffset",array:"stroke-dasharray"},r4={offset:"strokeDashoffset",array:"strokeDasharray"};function r6(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?r9:r4;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}let r8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function r7(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o}
3,l,u,h){if(rG(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),r8))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&r6(d,r,s,a,!1)}let st=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"]),se=t=>"string"==typeof t&&"svg"===t.toLowerCase();function si(t,e,i,n){for(let i in rq(t,e,void 0,n),e.attrs)t.setAttribute(st.has(i)?i:iE(i),e.attrs[i])}function sn(t,e,i){let n=r2(t,e,i);for(let i in t)(iV(t[i])||iV(e[i]))&&(n[-1!==ev.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class sr extends rP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rl}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ex.has(e)){let t=iH(e);return t&&t.default||0}return e=st.has(e)?e:iE(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sn(t,e,i)}build(t,e,i){r7(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){si(t,e,i,n)}mount(t){this.isSVGTag=se(t.tagName),super.mount(t)}}let ss=ry.length;function sa(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&sa(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<ss;i++){let n=ry[i],r=t.props[n];(rf(r)||!1===r)&&(e[n]=r)}return e}function so(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}let sl=[...rg].reverse(),su=rg.length;function sh(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>ij(t,e,i))),i=sp(),n=!0,r=e=>(i,n)=>{let r=ip(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,o=sa(t.parent)||{},l=[],u=new Set,h={},d=1/0;for(let e=0;e<su;e++){let c=sl[e],p=i[c],m=void 0!==a[c]?a[c]:o[c],f=rf(m),g=c===s?p.isActive:null;!1===g&&(d=e);let y=m===o[c]&&m!==a[c]&&f;if(y&&n&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||rm(m)||"boolean"==typeof m)continue;let v=sd(p.prevProp,m),x=v||c===s&&p.isActive&&!y&&f||e>d&&f,T=!1,w=Array.isArray(m)?m:[m],b=w.reduce(r(c),{});!1===g&&(b={});let{prevResolvedValues:S={}}=p,A={...S,...b},V=e=>{x=!0,u.has(e)&&(T=!0,u.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=b[t],i=S[t];if(!h.hasOwnProperty(t))(iS(e)&&iS(i)?so(e,i):e===i)?void 0!==e&&u.has(t)?V(t):p.protectedKeys[t]=!0:null!=e?V(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(h={...h,...b}),n&&t.blockInitialAnimation&&(x=!1);let P=y&&v,M=!P||T;x&&M&&l.push(...w.map(e=>{let i={type:c};if("string"==typeof e&&n&&!P&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=ip(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=e4(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=ip(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let c=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(c=!1),n=!1,c?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sp()}}}function sd(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!so(e,t)}function sc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sp(){return{animate:sc(!0),whileInView:sc(),whileHover:sc(),whileTap:sc(),whileDrag:sc(),whileFocus:sc(),exit:sc()}}function sm(t,e){t.min=e.min,t.max=e.max}function sf(t,e){sm(t.x,e.x),sm(t.y,e.y)}function sg(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sy(t){return t.max-t.min}function sv(t,e,i){return Math.abs(t-e)<=i}function sx(t,e,i,n=.5){t.origin=n,t.originPoint=th(e.min,e.max,t.origin),t.scale=sy(i)/sy(e),t.translate=th(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function sT(t,e,i,n){sx(t.x,e.x,i.x,n?n.originX:void 0),sx(t.y,e.y,i.y,n?n.originY:void 0)}
3function sw(t,e,i){t.min=i.min+e.min,t.max=t.min+sy(e)}function sb(t,e,i){sw(t.x,e.x,i.x),sw(t.y,e.y,i.y)}function sS(t,e,i){t.min=e.min-i.min,t.max=t.min+sy(e)}function sA(t,e,i){sS(t.x,e.x,i.x),sS(t.y,e.y,i.y)}function sV(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function sP(t,e=0,i=1,n=.5,r,s=t,a=t){if(Y.test(e)&&(e=parseFloat(e),e=th(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=th(s.min,s.max,n);t===s&&(o-=e),t.min=sV(t.min,e,i,o,r),t.max=sV(t.max,e,i,o,r)}function sM(t,e,[i,n,r],s,a){sP(t,e[i],e[n],e[r],e.scale,s,a)}let sE=["x","scaleX","originX"],sk=["y","scaleY","originY"];function sD(t,e,i,n){sM(t.x,e,sE,i?i.x:void 0,n?n.x:void 0),sM(t.y,e,sk,i?i.y:void 0,n?n.y:void 0)}function sR(t){return 0===t.translate&&1===t.scale}function sC(t){return sR(t.x)&&sR(t.y)}function sB(t,e){return t.min===e.min&&t.max===e.max}function sj(t,e){return sB(t.x,e.x)&&sB(t.y,e.y)}function sL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sF(t,e){return sL(t.x,e.x)&&sL(t.y,e.y)}function sO(t){return sy(t.x)/sy(t.y)}function sI(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function sW(t){return[t("x"),t("y")]}function sN(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}let sU=["TopLeft","TopRight","BottomLeft","BottomRight"],s$=sU.length,sz=t=>"string"==typeof t?parseFloat(t):t,sK=t=>"number"==typeof t||X.test(t);function sY(t,e,i,n,r,s){r?(t.opacity=th(0,i.opacity??1,sH(n)),t.opacityExit=th(e.opacity??1,0,sG(n))):s&&(t.opacity=th(e.opacity??1,i.opacity??1,n));for(let r=0;r<s$;r++){let s=`border${sU[r]}Radius`,a=sX(e,s),o=sX(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sK(a)===sK(o)?(t[s]=Math.max(th(sz(a),sz(o),n),0),(Y.test(o)||Y.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=th(e.rotate||0,i.rotate||0,n))}function sX(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sH=sq(0,.5,tZ),sG=sq(.5,.95,l);function sq(t,e,i){return n=>n<t?0:n>e?1:i(t1(t,e,n))}function sZ(t,e,i){let n=iV(t)?t:ib(t);return n.start(ih("",n,e,i)),n.animation}function s_(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let sJ=(t,e)=>t.depth-e.depth;class sQ{constructor(){this.children=[],this.isDirty=!1}add(t){ig(this.children,t),this.isDirty=!0}remove(t){iy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sJ),this.isDirty=!1,this.children.forEach(t)}}function s0(t,e){let i=y.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&(p(n),t(s-e))};return c.setup(n,!0),()=>p(n)}function s1(t,e){return s0(t,w(e))}function s2(t){return iV(t)?t.get():t}class s5{constructor(){this.members=[]}add(t){ig(this.members,t),t.scheduleRender()}remove(t){if(iy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,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();let n=i.options.layoutDependency,r=t.options.layoutDependency;(void 0===n||void 0===r||n!==r)&&(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:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}
3scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let s3={hasAnimatedSinceResize:!0,hasEverUpdated:!1},s9={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},s4=["","X","Y","Z"],s6=0;function s8(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function s7({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=s6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,h.value&&(s9.nodes=s9.calculatedTargetDeltas=s9.calculatedProjections=0),this.nodes.forEach(ai),this.nodes.forEach(au),this.nodes.forEach(ah),this.nodes.forEach(an),h.addProjectionMetrics&&h.addProjectionMetrics(s9)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sQ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ix),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){if(this.instance)return;this.isSVG=nP(e)&&!nz(e),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;c.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=s0(r,250),s3.hasAnimatedSinceResize&&(s3.hasAnimatedSinceResize=!1,this.nodes.forEach(al)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||ag,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!sF(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...il(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||al(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,this.eventHandlers.clear(),p(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
3h(ad),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=iR(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",c,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(as);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(aa);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ao),this.nodes.forEach(at),this.nodes.forEach(ae)):this.nodes.forEach(aa),this.clearAllSnapshots();let t=y.now();m.delta=T(0,1e3/60,t-m.timestamp),m.timestamp=t,m.isProcessing=!0,f.update.process(m),f.preRender.process(m),f.render.process(m),m.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,no.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ar),this.sharedNodes.forEach(ac)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,c.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){c.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sy(this.snapshot.measuredBox.x)||sy(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=rl(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sC(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||rB(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ax((e=n).x),ax(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rl();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(aw))){let{scroll:t}=this.root;t&&(rN(e.x,t.offset.x),rN(e.y,t.offset.y))}return e}removeElementScroll(t){let e=rl();if(sf(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&sf(e,t),rN(e.x,r.offset.x),rN(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=rl();sf(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&&r$(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rB(n.latestValues)&&r$(i,n.latestValues)}return rB(this.latestValues)&&r$(i,this.latestValues),i}removeTransform(t){let e=rl();sf(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!rB(i.latestValues))continue;rC(i.latestValues)&&i.updateSnapshot();
3let n=rl();sf(n,i.measurePageBox()),sD(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return rB(this.latestValues)&&sD(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!==m.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=m.timestamp;let s=this.getClosestProjectingParent();s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=rl(),this.targetWithTransforms=rl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sf(this.target,this.layout.layoutBox),rI(this.target,this.targetDelta)):sf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),h.value&&s9.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||rC(this.parent.latestValues)||rj(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rl(),this.relativeTargetOrigin=rl(),sA(this.relativeTargetOrigin,e,i),sf(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===m.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;sf(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;rW(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rl());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sg(this.prevProjectionDelta.x,this.projectionDelta.x),sg(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sT(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&sI(this.projectionDelta.x,this.prevProjectionDelta.x)&&sI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),h.value&&s9.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=ra();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=rl(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
3!0===this.options.crossfade&&!this.path.some(af));this.animationProgress=0,this.mixTargetDelta=e=>{var n,u,c,p;let m=e/1e3;ap(a.x,t.x,m),ap(a.y,t.y,m),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sA(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,u=this.relativeTargetOrigin,c=o,p=m,am(n.x,u.x,c.x,p),am(n.y,u.y,c.y,p),i&&sj(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=rl()),sf(i,this.relativeTarget)),l&&(this.animationValues=s,sY(s,r,this.latestValues,m,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(p(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=c.update(()=>{s3.hasAnimatedSinceResize=!0,S.layout++,this.motionValue||(this.motionValue=ib(0)),this.currentAnimation=sZ(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{S.layout--},onComplete:()=>{S.layout--,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&&aT(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||rl();let e=sy(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=sy(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sf(e,i),r$(e,r),sT(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s5),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
3return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&s8("z",t,n,this.animationValues);for(let e=0;e<s4.length;e++)s8(`rotate${s4[e]}`,t,n,this.animationValues),s8(`skew${s4[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=s2(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=s2(e?.pointerEvents)||""),this.hasProjected&&!rB(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=sN(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,rQ){if(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=rQ[e],l="none"===s?r[e]:i(r[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?s2(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(as),this.root.sharedNodes.clear()}}}function at(t){t.updateLayout()}function ae(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?sW(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=sy(n);n.min=i[t].min,n.max=n.min+r}):aT(r,e.layoutBox,i)&&sW(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=sy(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=ra();sT(a,i,e.layoutBox);let o=ra();s?sT(o,t.applyTransform(n,!0),e.measuredBox):sT(o,i,e.layoutBox);let l=!sC(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=rl();sA(a,e.layoutBox,r.layoutBox);let o=rl();sA(o,i,s.layoutBox),sF(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ai(t){h.value&&s9.nodes++,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 an(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ar(t){t.clearSnapshot()}function as(t){t.clearMeasurements()}function aa(t){t.isLayoutDirty=!1}function ao(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function al(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function au(t){t.resolveTargetDelta()}function ah(t){t.calcProjection()}
3function ad(t){t.resetSkewAndRotation()}function ac(t){t.removeLeadSnapshot()}function ap(t,e,i){t.translate=th(e.translate,0,i),t.scale=th(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function am(t,e,i,n){t.min=th(e.min,i.min,n),t.max=th(e.max,i.max,n)}function af(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ag={duration:.45,ease:[.4,0,.1,1]},ay=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),av=ay("applewebkit/")&&!ay("chrome/")?Math.round:l;function ax(t){t.min=av(t.min),t.max=av(t.max)}function aT(t,e,i){return"position"===t||"preserve-aspect"===t&&!sv(sO(e),sO(i),.2)}function aw(t){return t!==t.root&&t.scroll?.wasRoot}let ab=s7({attachResizeListener:(t,e)=>s_(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),aS=t=>!t.isLayoutDirty&&t.willUpdate(!1);function aA(){let t=new Set,e=new WeakMap,i=()=>t.forEach(aS);return{add:n=>{t.add(n),e.set(n,n.addEventListener("willUpdate",i))},remove:n=>{t.delete(n);let r=e.get(n);r&&(r(),e.delete(n)),i()},dirty:i}}let aV={current:void 0},aP=s7({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!aV.current){let t=new ab({});t.mount(window),t.setOptions({layoutScroll:!0}),aV.current=t}return aV.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),aM="[data-layout], [data-layout-id]",aE=()=>{};class ak{constructor(t,e,i){this.sharedTransitions=new Map,this.notifyReady=aE,this.rejectReady=aE,this.scope=t,this.updateDom=e,this.defaultOptions=i,this.readyPromise=new Promise((t,e)=>{this.notifyReady=t,this.rejectReady=e}),c.postRender(()=>{this.start().then(this.notifyReady).catch(this.rejectReady)})}shared(t,e){return this.sharedTransitions.set(t,e),this}then(t,e){return this.readyPromise.then(t,e)}async start(){let t=aR(this.scope),e=this.buildRecords(t);e.forEach(({projection:t})=>{let e=!!t.currentAnimation,i=!!t.options.layoutId;if(e&&i){let e=function(t){let e=t.targetWithTransforms||t.target;if(!e)return;let i=rl(),n=rl();return sf(i,e),sf(n,e),{animationId:t.root?.animationId??0,measuredBox:i,layoutBox:n,latestValues:t.animationValues||t.latestValues||{},source:t.id}}(t);e?t.snapshot=e:t.snapshot&&(t.snapshot=void 0)}else t.snapshot&&(t.currentAnimation||t.isProjecting())&&(t.snapshot=void 0);t.isPresent=!0,t.willUpdate()}),await this.updateDom();let i=aR(this.scope),n=this.buildRecords(i);this.handleExitingElements(e,n),n.forEach(({projection:t})=>{let e=t.instance,i=t.resumeFrom?.instance;if(!e||!i||!("style"in e))return;let n=e.style.transform,r=i.style.transform;n&&r&&n===r&&(e.style.transform="",e.style.transformOrigin="")}),n.forEach(({projection:t})=>{t.isPresent=!0});let r=function(t,e){let i=t[0]||e[0];return i?.projection.root}(n,e);return r?.didUpdate(),await new Promise(t=>{c.postRender(()=>t())}),new eQ(function(t){let e=new Set;return t.forEach(t=>{let i=t.projection.currentAnimation;i&&e.add(i)}),Array.from(e)}(n))}buildRecords(t){let e=[],i=new Map;for(let n of t){let t=function(t,e,i){let n=t.parentElement;for(;n;){let t=e.get(n);if(t)return t;if(n===i)break;n=n.parentElement}}(n,i,this.scope),{layout:r,layoutId:s}=function(t){let e,i=t.getAttribute("data-layout-id")||void 0,n=t.getAttribute("data-layout");return""===n||"true"===n?e=!0:n&&(e=n),{layout:e,layoutId:i}}(n),a=(s?this.sharedTransitions.get(s):void 0)||this.defaultOptions,o=function(t,e,i){let n=rp.get(t),r=n??new r5({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0});return n&&r.projection||(r.projection=new aP(r.latestValues,e)),r.projection.setOptions({...i,visualElement:r}),r.current?r.projection.instance||r.projection.mount(t):r.mount(t),n||rp.set(t,r),{element:t,visualElement:r,projection:r.projection}}(n,t?.projection,{layout:r,layoutId:s,animationType:"string"==typeof r?r:"both",transition:a});i.set(n,o),e.push(o)}return e}handleExitingElements(t,e){let i=new Set(e.map(t=>t.element));t.forEach(t=>{i.has(t.element)||(t.projection.options.layoutId&&(t.projection.isPresent=!1,t.projection.relegate()),t.visualElement.unmount(),rp.delete(t.element))});let n=new Set(t.map(t=>t.element));e.forEach(({element:t,projection:e})=>{n.has(t)&&e.resumeFrom&&!e.resumeFrom.instance&&!e.isLead()&&(e.resumeFrom=void 0,e.snapshot=void 0)})}}function aD(t,e,i){return"function"==typeof t?{scope:document,updateDom:t,defaultOptions:e}:{scope:i2(t)[0]||document,updateDom:e,defaultOptions:i}}function aR(t){let e=Array.from(t.querySelectorAll(aM));return t instanceof Element&&t.matches(aM)&&!e.includes(t)&&e.unshift(t),e}let aC=c,aB=u.reduce((t,e)=>(t[e]=t=>p(t),t),{}),aj=new Set;function aL(t){return aj.has(t)}function aF(t,e,i){!(t||aj.has(e))&&(console.warn(i?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${i}`:e),aj.add(e))}let aO=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};function aI(t,e="end"){return i=>{let n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t;return T(0,1,("end"===e?Math.floor(n):Math.ceil(n))/t)}}function aW(t,e){return t$(t)?t[aO(0,t.length,e)]:t}function aN(t){return"object"==typeof t&&!Array.isArray(t)}function aU(t,e,i,n){return null==t?[]:"string"==typeof t&&aN(e)?i2(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function a$(t,e,i,n){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):n.get(e)??t}function az(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function aK(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function aY(t,e){return e[t]||(e[t]=[]),e[t]}let aX=t=>"number"==typeof t,aH=t=>t.every(aX);function aG(t){let e={presenceContext:null,props:{}
3,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=nP(t)&&!nz(t)?new sr(e):new r5(e);i.mount(t),rp.set(t,i)}function aq(t){let e=new r3({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),rp.set(t,e)}function aZ(t,e,i,n){let r=[];if(iV(t)||"number"==typeof t||"string"==typeof t&&!aN(e))r.push(sZ(t,aN(e)&&e.default||e,i&&i.default||i));else{if(null==t)return r;let s=aU(t,e,n),a=s.length;V(!!a,"No valid elements provided.","no-valid-elements");for(let t=0;t<a;t++){let n=s[t],o=n instanceof Element?aG:aq;rp.has(n)||o(n);let l=rp.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,a)),r.push(...iC(l,{...e,transition:u},{}))}}return r}function a_(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{scope:e,reduceMotion:i}=t;return function(t,n,r){let s,a=[];if(Array.isArray(t)&&t.some(Array.isArray))a=function(t,e,i){let n=[];return(function(t){let{defaultTransition:e={},...i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=e.duration||.3,a=new Map,o=new Map,l={},u=new Map,h=0,d=0,c=0;for(let i=0;i<t.length;i++){let a=t[i];if("string"==typeof a){u.set(a,d);continue}if(!Array.isArray(a)){u.set(a.name,a$(d,a.at,h,u));continue}let[f,g,y={}]=a;void 0!==y.at&&(d=a$(d,y.at,h,u));let v=0,x=function(t,i,n){var a;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=Array.isArray(a=t)?a:[a],{delay:h=0,times:p=t3(u),type:m=e.type||"keyframes",repeat:f,repeatType:g,repeatDelay:y=0,...x}=i,{ease:T=e.ease||"easeOut",duration:b}=i,S="function"==typeof h?h(o,l):h,A=u.length,P=e$(m)?m:null==r?void 0:r[m||"keyframes"];if(A<=2&&P){let t=100;2===A&&aH(u)&&(t=Math.abs(u[1]-u[0]));let i={...e,...x};void 0!==b&&(i.duration=w(b));let n=tM(i,t,P);T=n.ease,b=n.duration}b??(b=s);let M=d+S;1===p.length&&0===p[0]&&(p[1]=1);let E=p.length-u.length;if(E>0&&t5(p,E),1===u.length&&u.unshift(null),f){V(f<20,"Repeat count too high, must be less than 20","repeat-count-high");b*=f+1;let t=[...u],e=[...p],i=[...T=Array.isArray(T)?[...T]:[T]];for(let n=0;n<f;n++){u.push(...t);for(let r=0;r<t.length;r++)p.push(e[r]+(n+1)),T.push(0===r?"linear":aW(i,r-1))}for(let t=0;t<p.length;t++)p[t]=p[t]/(f+1)}let k=M+b;!function(t,e,i,n,r,s){for(let e=0;e<t.length;e++){let i=t[e];i.at>r&&i.at<s&&(iy(t,i),e--)}for(let a=0;a<e.length;a++)t.push({value:e[a],at:th(r,s,n[a]),easing:aW(i,a)})}(n,u,T,p,M,k),v=Math.max(S+b,v),c=Math.max(k,c)};if(iV(f))x(g,y,aY("default",aK(f,o)));else{let t=aU(f,g,n,l),e=t.length;for(let i=0;i<e;i++){let n=aK(t[i],o);for(let t in g){var p,m;x(g[t],(p=y,m=t,p&&p[m]?{...p,...p[m]}:{...p}),aY(t,n),i,e)}}}h=d,d+=v}return o.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(az);let o=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];o.push(i),l.push(t1(0,c,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(n)||a.set(n,{keyframes:{},transition:{}});let h=a.get(n);h.keyframes[r]=o;let{type:d,...p}=e;h.transition[r]={...p,duration:c,ease:u,times:l,...i}}}),a})(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){let e=t[0],i=ib(0);return(i.on("change",e),1===t.length)?[i,[0,1]]:2===t.length?[i,[0,1],t[1]]:[i,t[1],t[2]]}return t}),e,i,{spring:tL}).forEach((t,e)=>{let{keyframes:i,transition:r}=t;n.push(...aZ(e,i,r))}),n}(t,void 0!==i?{reduceMotion:i,...n}:n,e);else{let{onComplete:o,...l}=r||{};"function"==typeof o&&(s=o),a=aZ(t,n,void 0!==i?{reduceMotion:i,...l}:l,e)}let o=new e1(a);return s&&o.finished.then(s),e&&(e.animations.push(o),o.finished.then(()=>{iy(e.animations,o)})),o}}let aJ=a_(),aQ=function(t,e,i){return new e1(function(t,e,i,n){if(null==t)return[];let r=i2(t,n),s=r.length;V(!!s,"No valid elements provided.","no-valid-elements");let a=[];for(let t=0;t<s;t++){let n=r[t],o={...i};for(let i in"function"==typeof o.delay&&(o.delay=o.delay(t,s)),e){let t=e[i];Array.isArray(t)||(t=[t]);let r={...il(o,i)};r.duration&&(r.duration=w(r.duration)),r.delay&&(r.delay=w(r.delay));let s=e9(n),l=e3(i,r.pseudoElement||""),u=s.get(l);u&&u.stop(),a.push({map:s,key:l,unresolvedKeyframes:t,options:{...r,element:n,name:i,allowFlatten:!o.type&&!o.ease}})}}for(let t=0;t<a.length;t++){let{unresolvedKeyframes:e,options:i}=a[t],{element:n,name:r,pseudoElement:s}=i;s||null!==e[0]||(e[0]=nV(n,r)),ea(e),iJ(e,r),!s&&e.length<2&&e.unshift(nV(n,r)),i.keyframes=e}let o=[];for(let t=0;t<a.length;t++){let{map:e,key:i,options:n}=a[t],r=new eK(n);e.set(i,r),r.finished.finally(()=>e.delete(i)),o.push(r)}return o}(t,e,i,n))},a0=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),a1={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function a2(t,e,i,n){let r=i[e],{length:s,position:a}=a1[e],o=r.current,l=i.time;r.current=t[`scroll${a}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=t1(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:tE(r.current-o,u)}let a5={start:0,center:.5,end:1};function a3(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0;if(t in a5&&(t=a5[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let a9=[0,0],a4={All:[[0,0],[1,1]]},a6={x:0,y:0},a8=new WeakMap,a7=new WeakMap,ot=new WeakMap,oe=new WeakMap,oi=new WeakMap,on=t=>t===document.scrollingElement?window:t;function or(t){let{container:e=document.scrollingElement,trackContentSize:i=!1,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return l;let r=ot.get(e);r||(r=new Set,ot.set(e,r));
3let s=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:e=>{!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=arguments.length>2?arguments[2]:void 0;if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),a2(t,"x",i,e),a2(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=a4.All}=i,{target:r=t,axis:s="y"}=i,a="y"===s?"height":"width",o=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(ne(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):a6,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,d=n.length;for(let t=0;t<d;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:a9,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,a5[t]?t:"0"]),(s=a3(r[0],i,n))-a3(r[1],e)}(n[t],u[a],l[a],o[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=t2(e[s].offset,t3(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=T(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:a0(),y:a0()},n);if(r.add(s),!a8.has(e)){let t=()=>{for(let t of r)t.measure(m.timestamp);c.preUpdate(i)},i=()=>{for(let t of r)t.notify()},n=()=>c.read(t);a8.set(e,n);let s=on(e);window.addEventListener("resize",n,{passive:!0}),e!==document.documentElement&&a7.set(e,nj(e,n)),s.addEventListener("scroll",n,{passive:!0}),n()}if(i&&!oi.has(e)){let t=a8.get(e),i={width:e.scrollWidth,height:e.scrollHeight};oe.set(e,i);let n=c.read(()=>{let n=e.scrollWidth,r=e.scrollHeight;(i.width!==n||i.height!==r)&&(t(),i.width=n,i.height=r)},!0);oi.set(e,n)}let a=a8.get(e);return c.read(a,!1,!0),()=>{p(a);let t=ot.get(e);if(!t||(t.delete(s),t.size))return;let i=a8.get(e);if(a8.delete(e),i){var n;on(e).removeEventListener("scroll",i),null==(n=a7.get(e))||n(),window.removeEventListener("resize",i)}let r=oi.get(e);r&&(p(r),oi.delete(e)),oe.delete(e)}}let os=new Map;function oa(t){let{source:e,container:i,...n}=t,{axis:r}=n;e&&(i=e);let s=os.get(i)??new Map;os.set(i,s);let a=n.target??"self",o=s.get(a)??{},l=r+(n.offset??[]).join(",");return o[l]||(o[l]=!n.target&&eL()?new ScrollTimeline({source:i,axis:r}):function(t){let e={value:0},i=or(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}({container:i,...n})),o[l]}function oo(t){var e,i;let{axis:n="y",container:r=document.scrollingElement,...s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)return l;let a={axis:n,container:r,...s};return"function"==typeof t?(e=t,i=a,2===e.length?or(t=>{e(t[i.axis].progress,t)},i):nL(e,oa(i))):function(t,e){let i=oa(e);return t.attachTimeline({timeline:e.target?void 0:i,observe:t=>(t.pause(),nL(e=>{t.time=t.iterationDuration*e},i))})}(t,a)}let ol={some:0,all:1};function ou(t,e){let{root:i,margin:n,amount:r="some"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i2(t),a=new WeakMap,o=new IntersectionObserver(t=>{t.forEach(t=>{let i=a.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t.target,t);"function"==typeof i?a.set(t.target,i):o.unobserve(t.target)}else"function"==typeof i&&(i(t),a.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof r?r:ol[r]});return s.forEach(t=>o.observe(t)),()=>o.disconnect()}let oh=(t,e)=>Math.abs(t-e);function od(t,e){return Math.sqrt(oh(t.x,e.x)**2+oh(t.y,e.y)**2)}}}]);
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.