1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,143975,602814,685674,454721,698072,480711,477837,181505,870713,524683,436347,25689,488174,210598,155371,216748,589446,908788,722295,298317,918489,866067,801597,995327,745656,57850,181775,651703,357290,367148,699811,879716,243826,734121,136686,391788,412438,730254,805965,379698,164809,695246,81137,462381,755343,76734,926267,337669,479102,266407,425217,977486,458925,896391,260894,740774,620980,872519,53360,840718,903549,636991,t=>{"use strict";let e,i;function s(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function n(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function r(t,e,i){let s=t.getProps();return n(s,e,void 0!==i?i:s.custom,t)}t.i(7241),t.s(["createDOMMotionComponentProxy",0,function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}],143975),t.s(["isAnimationControls",0,function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}],602814),t.s(["resolveVariantFromProps",0,n],685674),t.s(["resolveVariant",0,r],454721),t.s(["getValueTransition",0,function(t,e){return t?.[e]??t?.default??t}],698072);let o=t=>t;t.s(["noop",0,o],480711);let a={skipAnimations:!1,useManualTiming:!1};t.s(["MotionGlobalConfig",0,a],477837);let l=["read","resolveKeyframes","update","preRender","render","postRender"];t.s(["stepsOrder",0,l],181505);let u={value:null,addProjectionMetrics:null};function h(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=l.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(c.schedule(e),t()),l++,e(a)}let c={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(h),e&&u.value&&u.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,c.process(t))}};return c}(r,e?i:void 0),t),{}),{read:h,resolveKeyframes:c,update:d,preRender:p,render:m,postRender:f}=o,g=()=>{let r=a.useManualTiming?n.timestamp:performance.now();i=!1,a.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,h.process(n),c.process(n),d.process(n),p.process(n),m.process(n),f.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(g))};return{schedule:l.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(g)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<l.length;e++)o[l[e]].cancel(t)},state:n,steps:o}}t.s(["statsBuffer",0,u],870713),t.s(["createRenderBatcher",0,h],524683);let{schedule:c,cancel:d,state:p,steps:m}=h("u">typeof requestAnimationFrame?requestAnimationFrame:o,!0);t.s(["cancelFrame",0,d,"frame",0,c,"frameData",0,p,"frameSteps",0,m],436347);let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],g=new Set(f);t.s(["transformPropOrder",0,f,"transformProps",0,g],25689);let v=new Set(["width","height","top","left","right","bottom",...f]);function y(t,e){-1===t.indexOf(e)&&t.push(e)}function x(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["positionalKeys",0,v],488174),t.s(["addUniqueItem",0,y,"moveItem",0,function([...t],e,i){let s=e<0?t.length+e:e;if(s>=0&&s<t.length){let s=i<0?t.length+i:i,[n]=t.splice(e,1);t.splice(s,0,n)}return t},"removeItem",0,x],210598);class T{constructor(){this.subscriptions=[]}add(t){return y(this.subscriptions,t),()=>x(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function P(t,e){return e?1e3/e*t:0}function w(){e=void 0}t.s(["SubscriptionManager",0,T],155371),t.s(["velocityPerSecond",0,P],216748);let b={now:()=>(void 0===e&&b.set(p.isProcessing||a.useManualTiming?p.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(w)}};t.s(["time",0,b],589446);let S={current:void 0};class A{constructor(t,e={}){this.version="12.7.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=b.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=b.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 T);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,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return S.current&&S.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=b.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return P(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function V(t,e){return new A(t,e)}t.s(["MotionValue",0,A,"collectMotionValues",0,S,"motionValue",0,V],908788);let M=t=>Array.isArray(t);t.s(["isKeyframesTarget",0,M],722295);let E=t=>M(t)?t[t.length-1]||0:t;t.s(["isCustomValue",0,t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),"resolveFinalValueInKeyframes",0,E],298317),t.s(["setTarget",0,function(t,e){let{transitionEnd:i={},transition:s={},...n}=r(t,e)||{};for(let e in n={...n,...i}){let i=E(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,V(i))}}],918489);let C=t=>!!(t&&t.getVelocity);
1t.s(["isMotionValue",0,C],866067),t.s(["addValueToWillChange",0,function(t,e){let i=t.getValue("willChange");if(C(i)&&i.add)return i.add(e);if(!i&&a.WillChange){let i=new a.WillChange("auto");t.addValue("willChange",i),i.add(e)}}],801597);let D=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",0,D],995327);let k="framerAppearId",R="data-"+D(k);function F(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["optimizedAppearDataAttribute",0,R,"optimizedAppearDataId",0,k],745656),t.s(["getOptimisedAppearId",0,function(t){return t.props[R]}],57850),t.s(["memo",0,F],181775);let L=F(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",0,L],651703);class j{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,e){let i=this.animations.map(i=>L()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}t.s(["GroupAnimationWithThen",0,class extends j{then(t,e){return this.finished.finally(t).then(()=>{})}}],357290),t.s(["millisecondsToSeconds",0,t=>t/1e3,"secondsToMilliseconds",0,t=>1e3*t],367148),t.s(["instantAnimationState",0,{current:!1}],699811);let B={},O=(i=F(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>B.linearEasing??i());t.s(["supportsLinearEasing",0,O],879716);let I={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",0,I],243826);let U=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",0,U],734121);let N=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=t(e/(n-1))+", ";return`linear(${s.substring(0,s.length-2)})`};t.s(["generateLinearEasing",0,N],136686);let $=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,W={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$([0,.65,.55,1]),circOut:$([.55,0,1,.45]),backIn:$([.31,.01,.66,-.59]),backOut:$([.33,1.53,.69,.99])};t.s(["startWaapiAnimation",0,function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},h){let c={[e]:i};l&&(c.offset=l);let d=function t(e,i){if(e)return"function"==typeof e&&O()?N(e,i):U(e)?$(e):Array.isArray(e)?e.map(e=>t(e,i)||W.easeOut):W[e]}(a,n);Array.isArray(d)&&(c.easing=d),u.value&&I.waapi++;let p=t.animate(c,{delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal",pseudoElement:h});return u.value&&p.finished.finally(()=>{I.waapi--}),p}],391788),t.s(["attachTimeline",0,function(t,e){t.timeline=e,t.onfinish=null}],412438),t.s(["isGenerator",0,function(t){return"function"==typeof t&&"applyToOptions"in t}],730254),t.s(["isWaapiSupportedEasing",0,function t(e){return!!("function"==typeof e&&O()||!e||"string"==typeof e&&(e in W||O())||U(e)||Array.isArray(e)&&e.every(t))}],805965);let z=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function K(t,e,i,s){return t===e&&i===s?o:n=>0===n||1===n?n:z(function(t,e,i,s,n){let r,o,a=0;do(r=z(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}t.s(["cubicBezier",0,K],379698);let Y=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;t.s(["mirrorEasing",0,Y],164809);let H=t=>e=>1-t(1-e);t.s(["reverseEasing",0,H],695246);let X=K(.33,1.53,.69,.99),G=H(X),q=Y(G);t.s(["backIn",0,G,"backInOut",0,q,"backOut",0,X],81137),t.s(["anticipate",0,t=>(t*=2)<1?.5*G(t):.5*(2-Math.pow(2,-10*(t-1)))],462381);let Z=t=>1-Math.sin(Math.acos(t)),_=H(Z),J=Y(Z);t.s(["circIn",0,Z,"circInOut",0,J,"circOut",0,_],755343);let Q=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",0,Q],76734),t.s(["isNone",0,function(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||Q(t)}],926267);let tt=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,tt],337669);let te={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ti={...te,transform:t=>tt(0,1,t)},ts={...te,default:1};t.s(["alpha",0,ti,"number",0,te,"scale",0,ts],479102);let tn=t=>Math.round(1e5*t)/1e5,tr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,to=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ta=(t,e)=>i=>!!("string"==typeof i&&to.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tl=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(tr);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tu={...te,transform:t=>Math.round(tt(0,255,t))},th={test:ta("rgb","red"),parse:tl("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tu.transform(t)+", "+tu.transform(e)+", "+tu.transform(i)+", "+tn(ti.transform(s))+")"};t.s(["rgba",0,th],266407);let tc={test:ta("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:th.transform};t.s(["hex",0,tc],425217);let td=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tp=td("deg"),tm=td("%"),tf=td("px"),tg=td("vh"),tv=td("vw"),ty={...tm,parse:t=>tm.parse(t)/100,transform:t=>tm.transform(100*t)};t.s(["degrees",0,tp,"percent",0,tm,"progressPercentage",0,ty,"px",0,tf,"vh",0,tg,"vw",0,tv],977486);let tx={test:ta("hsl","hue"),parse:tl("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+tm.transform(tn(e))+", "+tm.transform(tn(i))+", "+tn(ti.transform(s))+")"};t.s(["hsla",0,tx],458925);let tT={test:t=>th.test(t)||tc.test(t)||tx.test(t),parse:t=>th.test(t)?th.parse(t):tx.test(t)?tx.parse(t):tc.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?th.transform(t):tx.transform(t)};t.s(["color",0,tT],896391);
1let tP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tw="number",tb="color",tS=/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 tA(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(tS,t=>(tT.test(t)?(s.color.push(r),n.push(tb),i.push(tT.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(tw),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function tV(t){return tA(t).values}function tM(t){let{split:e,types:i}=tA(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===tw?n+=tn(t[r]):e===tb?n+=tT.transform(t[r]):n+=t[r]}return n}}let tE=t=>"number"==typeof t?0:t,tC={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tr)?.length||0)+(t.match(tP)?.length||0)>0},parse:tV,createTransformer:tM,getAnimatableNone:function(t){let e=tV(t);return tM(t)(e.map(tE))}};t.s(["analyseComplexValue",0,tA,"complex",0,tC],260894);let tD=new Set(["brightness","contrast","saturate","opacity"]);function tk(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(tr)||[];if(!s)return t;let n=i.replace(s,""),r=+!!tD.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let tR=/\b([a-z-]*)\(.*?\)/gu,tF={...tC,getAnimatableNone:t=>{let e=t.match(tR);return e?e.map(tk).join(" "):t}},tL={...te,transform:Math.round},tj={borderWidth:tf,borderTopWidth:tf,borderRightWidth:tf,borderBottomWidth:tf,borderLeftWidth:tf,borderRadius:tf,radius:tf,borderTopLeftRadius:tf,borderTopRightRadius:tf,borderBottomRightRadius:tf,borderBottomLeftRadius:tf,width:tf,maxWidth:tf,height:tf,maxHeight:tf,top:tf,right:tf,bottom:tf,left:tf,padding:tf,paddingTop:tf,paddingRight:tf,paddingBottom:tf,paddingLeft:tf,margin:tf,marginTop:tf,marginRight:tf,marginBottom:tf,marginLeft:tf,backgroundPositionX:tf,backgroundPositionY:tf,rotate:tp,rotateX:tp,rotateY:tp,rotateZ:tp,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:tp,skewX:tp,skewY:tp,distance:tf,translateX:tf,translateY:tf,translateZ:tf,x:tf,y:tf,z:tf,perspective:tf,transformPerspective:tf,opacity:ti,originX:ty,originY:ty,originZ:tf,zIndex:tL,size:tf,fillOpacity:ti,strokeOpacity:ti,numOctaves:tL};t.s(["numberValueTypes",0,tj],740774);let tB={...tj,color:tT,backgroundColor:tT,outlineColor:tT,fill:tT,stroke:tT,borderColor:tT,borderTopColor:tT,borderRightColor:tT,borderBottomColor:tT,borderLeftColor:tT,filter:tF,WebkitFilter:tF},tO=t=>tB[t];function tI(t,e){let i=tO(t);return i!==tF&&(i=tC),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",0,tO],620980),t.s(["getAnimatableNone",0,tI],872519);let tU=new Set(["auto","none","0"]);t.s(["makeNoneKeyframesAnimatable",0,function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tU.has(e)&&tA(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tI(i,s)}],53360);let tN=t=>180*t/Math.PI,t$=t=>tz(tN(Math.atan2(t[1],t[0]))),tW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:t$,rotateZ:t$,skewX:t=>tN(Math.atan(t[1])),skewY:t=>tN(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tz=t=>((t%=360)<0&&(t+=360),t),tK=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tK,scaleY:tY,scale:t=>(tK(t)+tY(t))/2,rotateX:t=>tz(tN(Math.atan2(t[6],t[5]))),rotateY:t=>tz(tN(Math.atan2(-t[2],t[0]))),rotateZ:t$,rotate:t$,skewX:t=>tN(Math.atan(t[4])),skewY:t=>tN(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tX(t){return+!!t.includes("scale")}function tG(t,e){let i,s;if(!t||"none"===t)return tX(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tH,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tW,s=e}if(!s)return tX(e);let r=i[e],o=s[1].split(",").map(tq);return"function"==typeof r?r(o):o[r]}function tq(t){return parseFloat(t.trim())}t.s(["parseValueFromTransform",0,tG,"readTransformValue",0,(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tG(i,e)}],840718);let tZ=new Set(["x","y","z"]),t_=f.filter(t=>!tZ.has(t));function tJ(t){let e=[];return t_.forEach(i=>
1{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let tQ={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})=>tG(e,"x"),y:(t,{transform:e})=>tG(e,"y")};tQ.translateX=tQ.x,tQ.translateY=tQ.y,t.s(["isNumOrPxType",0,t=>t===te||t===tf,"positionalValues",0,tQ,"removeNonTranslationalTransform",0,tJ],903549);let t0=new Set,t1=!1,t5=!1;function t2(){if(t5){let t=Array.from(t0).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=tJ(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)})}t5=!1,t1=!1,t0.forEach(t=>t.complete()),t0.clear()}
1function t8(){t0.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t5=!0)})}t.s(["KeyframeResolver",0,class{constructor(t,e,i,s,n,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t0.add(this),t1||(t1=!0,c.read(t8),c.resolveKeyframes(t2))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n<t.length;n++)if(null===t[n])if(0===n){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t0.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t0.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},"flushKeyframeResolvers",0,function(){t8(),t2()}],636991)},798458,t=>{"use strict";t.s(["invariant",0,()=>{},"warning",0,()=>{}])},47268,198359,546023,193172,688171,232237,749666,604828,318192,76816,951012,241242,80631,579586,130114,886410,431194,319088,8115,969575,883858,230572,707575,595494,409859,954039,345738,446427,589843,713872,754569,595218,780460,702928,295221,255664,177091,725982,958864,577332,810684,614002,138433,120587,724668,582144,765237,85161,380037,329736,663785,730602,307419,437501,816633,318471,117395,540570,809127,499516,571124,948823,544774,946994,608408,268901,204250,t=>{"use strict";var e=t.i(143975),i=t.i(602814),s=t.i(454721),n=t.i(698072),r=t.i(436347),o=t.i(488174),a=t.i(918489),l=t.i(801597),u=t.i(57850),h=t.i(357290),c=t.i(367148),d=t.i(477837),p=t.i(699811),m=t.i(879716),f=t.i(391788),g=t.i(412438),v=t.i(730254),y=t.i(805965),x=t.i(480711),T=t.i(462381),P=t.i(81137),w=t.i(755343),b=t.i(926267),S=t.i(53360),A=t.i(636991),V=t.i(798458);let M=t=>e=>"string"==typeof e&&e.startsWith(t),E=M("--"),C=M("var(--"),D=t=>!!C(t)&&k.test(t.split("/*")[0].trim()),k=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,R=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var F=t.i(903549),L=t.i(479102),j=t.i(977486);let B=t=>e=>e.test(t),O=[L.number,j.px,j.percent,j.degrees,j.vw,j.vh,{test:t=>"auto"===t,parse:t=>t}],I=t=>O.find(B(t));class U extends A.KeyframeResolver{constructor(t,e,i,s,n){super(t,e,i,s,n,!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 s=t[i];if("string"==typeof s&&D(s=s.trim())){let n=function t(e,i,s=1){(0,V.invariant)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=R.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return D(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!o.positionalKeys.has(i)||2!==t.length)return;let[s,n]=t,r=I(s),a=I(n);if(r!==a)if((0,F.isNumOrPxType)(r)&&(0,F.isNumOrPxType)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(0,b.isNone)(t[e])&&i.push(e);i.length&&(0,S.makeNoneKeyframesAnimatable)(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=F.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=F.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var N=t.i(589446),$=t.i(260894);let W=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&($.complex.test(t)||"0"===t)&&!t.startsWith("url(")),z=t=>null!==t;function K(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(z),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return r&&void 0!==s?s:n[r]}class Y{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=N.time.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,A.flushKeyframeResolvers)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=N.time.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=W(n,e),a=W(r,e);return(0,V.warning)(o===a,`You are trying to animate ${e} from "${n}" to "${r}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,v.isGenerator)(i))&&s)}(t,i,s,n))if(p.instantAnimationState.current||!r){a&&a(K(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function H(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}t.i(7241);var X=t.i(243826),G=t.i(337669);let q=(t,e,i)=>t+(e-t)*i;function Z(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}t.s(["mixNumber",0,q],198359);var _=t.i(425217),J=t.i(266407),Q=t.i(458925);function tt(t,e){return i=>i>0?e:t}let te=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},ti=[_.hex,J.rgba,Q.hsla];function ts(t){let e=ti.find(e=>e.test(t));if((0,V.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===Q.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=Z(a,s,t+1/3),r=Z(a,s,t),o=Z(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let tn=(t,e)=>{let i=ts(t),s=ts(e);if(!i||!s)return tt(t,e);let n={...i};return t=>(n.red=te(i.red,s.red,t),n.green=te(i.green,s.green,t),n.blue=te(i.blue,s.blue,t),n.alpha=q(i.alpha,s.alpha,t),J.rgba.transform(n))},tr=(t,e)=>i=>e(t(i)),to=(...t)=>t.reduce(tr);t.s(["pipe",0,to],546023);var ta=t.i(896391);let tl=new Set(["none","hidden"]);function tu(t,e){return i=>q(t,e,i)}function th(t){return"number"==typeof t?tu:"string"==typeof t?D(t)?tt:ta.color.test(t)?tn:tp:Array.isArray(t)?tc:"object"==typeof t?ta.color.test(t)?tn:td:tt}function tc(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>th(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function td(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=th(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let tp=(t,e)=>{let i=$.complex.createTransformer(e),s=(0,$.analyseComplexValue)(t),n=(0,$.analyseComplexValue)(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return(0,V.warning)(!0,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tt(t,e);if(tl.has(t)&&!n.values.length||tl.has(e)&&!s.values.length)return tl.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return to(tc(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)};function tm(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?q(t,e,i):th(t)(t,e)}function tf(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(H(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:(0,c.millisecondsToSeconds)(n)}}t.s(["mix",0,tm],193172),t.s(["createGeneratorEasing",0,tf],688171);var tg=t.i(136686),tv=t.i(216748);function ty(t,e,i){let s=Math.max(e-5,0);return(0,tv.velocityPerSecond)(i-t(s),e-s)}let tx=.01,tT=2,tP=.005,tw=.5;function tb({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,V.warning)(t<=(0,c.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,G.clamp)(.05,1,o),t=(0,G.clamp)(.01,10,(0,c.millisecondsToSeconds)(t)),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/tS(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=tS(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=(0,c.secondsToMilliseconds)(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}function tS(t,e){return t*Math.sqrt(1-e*e)}t.s(["calcAngularFreq",0,tS,"findSpring",0,tb],232237);let tA=["duration","bounce"],tV=["stiffness","damping","mass"];function tM(t,e){return e.some(e=>void 0!==t[e])}function tE(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tM(t,tV)&&tM(t,tA))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,G.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=tb(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-(0,c.millisecondsToSeconds)(s.velocity||0)}),g=m||0,v=h/(2*Math.sqrt(u*d)),y=a-o,x=(0,c.millisecondsToSeconds)(Math.sqrt(u/d)),T=5>Math.abs(y);if(n||(n=T?tx:tT),r||(r=T?tP:tw),v<1){let t=tS(x,v);i=e=>a-Math.exp(-v*x*e)*((g+v*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-x*t)*(y+(g+x*y)*t);else{let t=x*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*x*e),s=Math.min(t*e,300);return a-i*((g+v*x*y)*Math.sinh(s)+t*y*Math.cosh(s))/t}}let P={calculatedDuration:f&&p||null,next:t=>{let e=i(t);if(f)l.done=t>=p;else{let s=0;v<1&&(s=0===t?(0,c.secondsToMilliseconds)(g):ty(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(s)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(H(P),2e4),e=(0,tg.generateLinearEasing)(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function tC({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/s),x=t=>v+y(t),T=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},P=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=tE({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ty(x,t,m.value),damping:n,stiffness:r,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),m)}}}tE.applyToOptions=t=>{let e=tf(t,100,tE);return t.ease=(0,m.supportsLinearEasing)()?e.ease:"easeOut",t.duration=(0,c.secondsToMilliseconds)(e.duration),t.type="keyframes",t},t.s(["spring",0,tE],749666),t.s(["inertia",0,tC],604828);var tD=t.i(379698);let tk=(0,tD.cubicBezier)(.42,0,1,1),tR=(0,tD.cubicBezier)(0,0,.58,1),tF=(0,tD.cubicBezier)(.42,0,.58,1);t.s(["easeIn",0,tk,"easeInOut",0,tF,"easeOut",0,tR],318192);let tL=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",0,tL],76816);var tj=t.i(734121);let tB={linear:x.noop,easeIn:tk,easeInOut:tF,easeOut:tR,circIn:w.circIn,circInOut:w.circInOut,circOut:w.circOut,backIn:P.backIn,backInOut:P.backInOut,backOut:P.backOut,anticipate:T.anticipate},tO=t=>{if((0,tj.isBezierDefinition)(t)){(0,V.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return(0,tD.cubicBezier)(e,i,s,n)}return"string"==typeof t?((0,V.invariant)(void 0!==tB[t],`Invalid easing type '${t}'`),tB[t]):t};t.s(["easingDefinitionToFunction",0,tO],951012);let tI=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function tU(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,V.invariant)(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>
1t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||tm,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=to(Array.isArray(e)?e[i]||x.noop:e,r)),s.push(r)}return s}(e,s,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=tI(t[s],t[s+1],i);return a[s](n)};return i?e=>u((0,G.clamp)(t[0],t[r-1],e)):u}function tN(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=tI(0,e,s);t.push(q(i,1,n))}}function t$(t){let e=[0];return tN(e,t.length-1),e}function tW({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r=tL(s)?s.map(tO):tO(s),o={done:!1,value:e[0]},a=tU((n=i&&i.length===e.length?i:t$(e),n.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||tF).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}t.s(["progress",0,tI],241242),t.s(["interpolate",0,tU],80631),t.s(["fillOffset",0,tN],579586),t.s(["defaultOffset",0,t$],130114),t.s(["keyframes",0,tW],886410);let tz=t=>{let e=({timestamp:e})=>t(e);return{start:()=>r.frame.update(e,!0),stop:()=>(0,r.cancelFrame)(e),now:()=>r.frameData.isProcessing?r.frameData.timestamp:N.time.now()}},tK={decay:tC,inertia:tC,tween:tW,keyframes:tW,spring:tE},tY=t=>t/100;class tH extends Y{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:s,keyframes:n}=this.options,r=s?.KeyframeResolver||A.KeyframeResolver,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new r(n,o,e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=(0,v.isGenerator)(s)?s:tK[s]||tW;l!==tW&&"number"!=typeof t[0]&&(e=to(tY,tm(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=H(u));let{calculatedDuration:h}=u,c=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;X.activeAnimations.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:n,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=r)),y=(0,G.clamp)(0,1,i)*h}let T=v?{done:!1,value:a[0]}:x.next(y);o&&(T.value=o(T.value));let{done:P}=T;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return w&&void 0!==s&&(T.value=K(a,this.options,s)),f&&f(T.value),w&&this.finish(),T}get duration(){let{resolved:t}=this;return t?(0,c.millisecondsToSeconds)(t.calculatedDuration):0}get time(){return(0,c.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,c.secondsToMilliseconds)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,c.millisecondsToSeconds)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tz,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=i??this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),X.activeAnimations.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}t.s(["MainThreadAnimation",0,tH,"animateValue",0,function(t){return new tH(t)}],431194);let tX=new Set(["opacity","clipPath","filter","transform"]);t.s(["acceleratedValues",0,tX],319088);let tG=(0,t.i(181775).memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tq={anticipate:T.anticipate,backInOut:P.backInOut,circInOut:w.circInOut};class tZ extends Y{constructor(t){super(t);const{name:e,motionValue:i,element:s,keyframes:n}=this.options;this.resolver=new U(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:n,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof r&&(0,m.supportsLinearEasing)()&&r in tq&&(r=tq[r]),i=this.options,(0,v.isGenerator)(i.type)||"spring"===i.type||!(0,y.isWaapiSupportedEasing)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new tH({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],r=0;for(;!s.done&&r<2e4;)n.push((s=i.sample(r)).value),r+=10;return{times:void 0,keyframes:n,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,n=h.times,r=h.ease,o="keyframes"}let h=(0,f.startWaapiAnimation)(a.owner.current,l,t,{...this.options,duration:s,times:n,ease:r});return h.startTime=u??this.calcStartTime(),this.pendingTimeline?((0,g.attachTimeline)(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(K(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:n,type:o,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,c.millisecondsToSeconds)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,c.millisecondsToSeconds)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;
1i.currentTime=(0,c.secondsToMilliseconds)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return x.noop;let{animation:i}=e;(0,g.attachTimeline)(i,t)}else this.pendingTimeline=t;return x.noop}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:n,ease:r,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new tH({...u,keyframes:i,duration:s,type:n,ease:r,times:o,isGenerator:!0}),d=(0,c.secondsToMilliseconds)(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tG()&&i&&tX.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}}t.s(["AcceleratedAnimation",0,tZ],8115);var t_=t.i(25689);let tJ={type:"spring",stiffness:500,damping:25,restSpeed:10},tQ={type:"keyframes",duration:.8},t0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t1=(t,e,i,s={},o,a)=>l=>{let u=(0,n.getValueTransition)(s,t)||{},m=u.delay||s.delay||0,{elapsed:f=0}=s;f-=(0,c.secondsToMilliseconds)(m);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-f,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:a?void 0:o};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&(g={...g,...((t,{keyframes:e})=>e.length>2?tQ:t_.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tJ:t0)(t,g)}),g.duration&&(g.duration=(0,c.secondsToMilliseconds)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,c.secondsToMilliseconds)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let v=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0===g.delay&&(v=!0)),(p.instantAnimationState.current||d.MotionGlobalConfig.skipAnimations)&&(v=!0,g.duration=0,g.delay=0),g.allowFlatten=!u.type&&!u.ease,v&&!a&&void 0!==e.get()){let t=K(g.keyframes,u);if(void 0!==t)return r.frame.update(()=>{g.onUpdate(t),g.onComplete()}),new h.GroupAnimationWithThen([])}return!a&&tZ.supports(g)?new tZ(g):new tH(g)};function t5(t,e,{delay:i=0,transitionOverride:s,type:h}={}){let{transition:c=t.getDefaultTransition(),transitionEnd:d,...p}=e;s&&(c=s);let m=[],f=h&&t.animationState&&t.animationState.getState()[h];for(let e in p){let s=t.getValue(e,t.latestValues[e]??null),a=p[e];if(void 0===a||f&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(f,e))continue;let h={delay:i,...(0,n.getValueTransition)(c||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=(0,u.getOptimisedAppearId)(t);if(i){let t=window.MotionHandoffAnimation(i,e,r.frame);null!==t&&(h.startTime=t,d=!0)}}(0,l.addValueToWillChange)(t,e),s.start(t1(e,s,a,t.shouldReduceMotion&&o.positionalKeys.has(e)?{type:!1}:h,t,d));let g=s.animation;g&&m.push(g)}return d&&Promise.all(m).then(()=>{r.frame.update(()=>{d&&(0,a.setTarget)(t,d)})}),m}function t2(t,e,i={}){let n=(0,s.resolveVariant)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let o=n?()=>Promise.all(t5(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,s=0,n=1,r){let o=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(t8).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(t2(t,e,{...r,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function t8(t,e){return t.sortNodePosition(e)}function t7(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>t2(t,e,i)));else if("string"==typeof e)n=t2(t,e,i);else{let r="function"==typeof e?(0,s.resolveVariant)(t,e,i.custom):e;n=Promise.all(t5(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}t.s(["animateTarget",0,t5],969575),t.s(["animateVisualElement",0,t7],883858);var t3=t.i(722295);function t4(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function t9(t){return"string"==typeof t||Array.isArray(t)}let t6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],et=["initial",...t6],ee=et.length,ei=[...t6].reverse(),es=t6.length;function en(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function er(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}let ea=0,el={animation:{Feature:class extends eo{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>t7(t,e,i))),n=er(),r=!0,o=e=>(i,n)=>{let r=(0,s.resolveVariant)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function a(a){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ee;t++){let s=et[t],n=e.props[s];(t9(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<es;e++){var m,f;let s=ei[e],g=n[s],v=void 0!==l[s]?l[s]:u[s],y=t9(v),x=s===a?g.isActive:null;!1===x&&(p=e);let T=v===u[s]&&v!==l[s]&&y;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),g.protectedKeys={...d},!g.isActive&&null===x||!v&&!g.prevProp||(0,i.isAnimationControls)(v)||"boolean"==typeof v)continue;let P=(m=g.prevProp,"string"==typeof(f=v)?f!==m:!!Array.isArray(f)&&!t4(f,m)),w=P||s===a&&g.isActive&&!T&&y||e>p&&y,b=!1,S=Array.isArray(v)?v:[v],A=S.reduce(o(s),{});!1===x&&(A={});let{prevResolvedValues:V={}}=g,M={...V,...A},E=e=>{w=!0,c.has(e)&&(b=!0,c.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=V[t];if(!d.hasOwnProperty(t))((0,t3.isKeyframesTarget)(e)&&(0,t3.isKeyframesTarget)(i)?t4(e,i):e===i)?void 0!==e&&c.has(t)?E(t):g.protectedKeys[t]=!0:null!=e?E(t):c.add(t)}g.prevProp=v,g.prevResolvedValues=A,g.isActive&&(d={...d,...A}),r&&t.blockInitialAnimation&&(w=!1);let C=!(T&&P)||b;w&&C&&h.push(...S.map(t=>({animation:t,options:{type:s}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=(0,s.resolveVariant)(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let g=!!h.length;return r&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let s=a(e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>n,reset:()=>{n=er(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,i.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends eo{constructor(){super(...arguments),this.id=ea++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",0,el],230572);let eu={x:!1,y:!1};function eh(){return eu.x||eu.y}function ec(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["isDragActive",0,eh,"isDragging",0,eu],707575),t.s(["addDomEvent",0,ec],595494);let ed=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ep(t){return{point:{x:t.pageX,y:t.pageY}}}let em=t=>e=>ed(e)&&t(e,ep(e));function ef(t,e,i,s){return ec(t,e,em(i),s)}function eg({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}t.s(["addPointerInfo",0,em,"extractEventInfo",0,ep],409859),t.s(["addPointerEvent",0,ef],954039);function ev(t){return t.max-t.min}function ey(t,e,i){return Math.abs(t-e)<=i}function ex(t,e,i,s=.5){t.origin=s,t.originPoint=q(e.min,e.max,t.origin),t.scale=ev(i)/ev(e),t.translate=q(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 eT(t,e,i,s){ex(t.x,e.x,i.x,s?s.originX:void 0),ex(t.y,e.y,i.y,s?s.originY:void 0)}function eP(t,e,i){t.min=i.min+e.min,t.max=t.min+ev(e)}function ew(t,e,i){eP(t.x,e.x,i.x),eP(t.y,e.y,i.y)}function eb(t,e,i){t.min=e.min-i.min,t.max=t.min+ev(e)}function eS(t,e,i){eb(t.x,e.x,i.x),eb(t.y,e.y,i.y)}t.s(["calcBoxDelta",0,eT,"calcLength",0,ev,"calcRelativeBox",0,ew,"calcRelativePosition",0,eS,"isNear",0,ey],345738);let eA=()=>({translate:0,scale:1,origin:0,originPoint:0}),eV=()=>({x:eA(),y:eA()}),eM=()=>({min:0,max:0}),eE=()=>({x:eM(),y:eM()});function eC(t){return[t("x"),t("y")]}function eD(t){return void 0===t||1===t}function ek({scale:t,scaleX:e,scaleY:i}){return!eD(t)||!eD(e)||!eD(i)}function eR(t){return ek(t)||eF(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eF(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eL(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function ej(t,e=0,i=1,s,n){t.min=eL(t.min,e,i,s,n),t.max=eL(t.max,e,i,s,n)}function eB(t,{x:e,y:i}){ej(t.x,e.translate,e.scale,e.originPoint),ej(t.y,i.translate,i.scale,i.originPoint)}function eO(t,e){t.min=t.min+e,t.max=t.max+e}function eI(t,e,i,s,n=.5){let r=q(t.min,t.max,n);ej(t,e,i,r,s)}function eU(t,e){eI(t.x,e.x,e.scaleX,e.scale,e.originX),eI(t.y,e.y,e.scaleY,e.scale,e.originY)}function eN(t,e){return eg(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}t.s(["createBox",0,eE,"createDelta",0,eV],446427);let e$=({current:t})=>t?t.ownerDocument.defaultView:null;function eW(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ez=(t,e)=>Math.abs(t-e);function eK(t,e){return Math.sqrt(ez(t.x,e.x)**2+ez(t.y,e.y)**2)}t.s(["distance",0,ez,"distance2D",0,eK],589843);class eY{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=eG(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=eK(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=r.frameData;this.history.push({...s,timestamp:n});let{onStart:o,onMove:a}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eH(e,this.transformPagePoint),r.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eG("pointercancel"===t.type?this.lastMoveEventInfo:eH(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!ed(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const o=eH(ep(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=r.frameData;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,eG(o,this.history)),this.removeListeners=to(ef(this.contextWindow,"pointermove",this.handlePointerMove),ef(this.contextWindow,"pointerup",this.handlePointerUp),ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,r.cancelFrame)(this.updatePoint)}}function eH(t,e){return e?{point:e(t.point)}:t}function eX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eG({point:t},e){return{point:t,delta:eX(t,eq(e)),offset:eX(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=eq(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,c.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let n=(0,c.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function eq(t){return t[t.length-1]}function eZ(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function e_(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function eJ(t,e,i){return{min:eQ(t,e),max:eQ(t,i)}}function eQ(t,e){return"number"==typeof t?t:t[e]||0}let e0=new WeakMap;class e1{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eE(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ep(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eu[t])return null;else return eu[t]=!0,()=>{eu[t]=!1};return eu.x||eu.y?null:(eu.x=eu.y=!0,()=>{eu.x=eu.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eC(t=>{let e=this.getAxisMotionValue(t).get()||0;if(j.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=ev(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&r.frame.postRender(()=>n(t,e)),(0,l.addValueToWillChange)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>this.stop(t,e),u=()=>eC(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new eY(t,{onSessionStart:s,onStart:n,onMove:o,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:e$(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&r.frame.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!e5(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?q(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?q(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&eW(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:eZ(t.x,i,n),y:eZ(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eJ(t,"left","right"),y:eJ(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eC(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!eW(e))return!1;let s=e.current;(0,V.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let r=function(t,e,i){let s=eN(t,i),{scroll:n}=e;return n&&(eO(s.x,n.offset.x),eO(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:e_(t.x,r.x),y:e_(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eg(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(eC(o=>{if(!e5(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,l.addValueToWillChange)(this.visualElement,t),i.start(t1(t,i,0,e,this.visualElement,!1))}stopAnimation(){eC(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eC(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eC(e=>{let{drag:i}=this.getProps();if(!e5(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-q(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eW(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};eC(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,o,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,o=ev(i),(a=ev(n))>o?r=tI(n.min,n.max-o,i.min):o>a&&(r=tI(i.min,i.max-a,n.min)),(0,G.clamp)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eC(e=>{if(!e5(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(q(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;e0.set(this.visualElement,this);let t=ef(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();eW(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r.frame.read(e);let n=ec(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eC(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function e5(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let e2=t=>(e,i)=>{t&&r.frame.postRender(()=>t(e,i))};var e8=t.i(968946);let{schedule:e7}=(0,t.i(524683).createRenderBatcher)(queueMicrotask,!1);var e3=t.i(533337);let e4=(0,e3.createContext)(null);function e9(t=!0){let e=(0,e3.useContext)(e4);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,e3.useId)();(0,e3.useEffect)(()=>{if(t)return n(r)},[t]);let o=(0,e3.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,o]:[!0]}t.s(["PresenceContext",0,e4],713872),t.s(["useIsPresent",0,function(){var t;return null===(t=(0,e3.useContext)(e4))||t.isPresent},"usePresence",0,e9],754569);let e6=(0,e3.createContext)({});t.s(["LayoutGroupContext",0,e6],595218);let it=(0,e3.createContext)({});t.s(["SwitchLayoutGroupContext",0,it],780460);let ie={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ii(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let is={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!j.px.test(t))return t;else t=parseFloat(t);let i=ii(t,e.target.x),s=ii(t,e.target.y);return`${i}% ${s}%`}},ir={};function io(t){for(let e in t)ir[e]=t[e],E(e)&&(ir[e].isCSSVariable=!0)}t.s(["addScaleCorrector",0,io,"scaleCorrectors",0,ir],702928);class ia extends e3.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;io(iu),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ie.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||r.frame.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),e7.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function il(t){let[e,i]=e9(),s=(0,e3.useContext)(e6);return(0,e8.jsx)(ia,{...t,layoutGroup:s,switchLayoutGroup:(0,e3.useContext)(it),isPresent:e,safeToRemove:i})}let iu={borderRadius:{...is,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=$.complex.parse(t);if(s.length>5)return t;let n=$.complex.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=q(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};var ih=t.i(870713),ic=t.i(155371),id=t.i(908788),ip=t.i(866067);function im(t,e,i){let s=(0,ip.isMotionValue)(t)?t:(0,id.motionValue)(t);return s.start(t1("",s,e,i)),s.animation}function ig(t){return t instanceof SVGElement&&"svg"!==t.tagName}t.s(["animateSingleValue",0,im],295221),t.s(["isSVGElement",0,ig],255664);var iv=t.i(210598);let iy=(t,e)=>t.depth-e.depth;class ix{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iv.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,iv.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iy),this.isDirty=!1,this.children.forEach(t)}}function iT(t,e){let i=N.time.now(),s=({timestamp:n})=>{let o=n-i;o>=e&&((0,r.cancelFrame)(s),t(o-e))};return r.frame.read(s,!0),()=>(0,r.cancelFrame)(s)}t.s(["FlatTree",0,ix],177091),t.s(["delay",0,iT],725982);var iP=t.i(298317);function iw(t){let e=(0,ip.isMotionValue)(t)?t.get():t;return(0,iP.isCustomValue)(e)?e.toValue():e}t.s(["resolveMotionValue",0,iw],958864);let ib=["TopLeft","TopRight","BottomLeft","BottomRight"],iS=ib.length,iA=t=>"string"==typeof t?parseFloat(t):t,iV=t=>"number"==typeof t||j.px.test(t);function iM(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iE=iD(0,.5,w.circOut),iC=iD(.5,.95,x.noop);function iD(t,e,i){return s=>s<t?0:s>e?1:i(tI(t,e,s))}function ik(t,e){t.min=e.min,t.max=e.max}function iR(t,e){ik(t.x,e.x),ik(t.y,e.y)}function iF(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iL(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function ij(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(j.percent.test(e)&&(e=parseFloat(e),e=q(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=q(r.min,r.max,s);t===r&&(a-=e),t.min=iL(t.min,e,i,a,n),t.max=iL(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let iB=["x","scaleX","originX"],iO=["y","scaleY","originY"];function iI(t,e,i,s){ij(t.x,e,iB,i?i.x:void 0,s?s.x:void 0),ij(t.y,e,iO,i?i.y:void 0,s?s.y:void 0)}function iU(t){return 0===t.translate&&1===t.scale}function iN(t){return iU(t.x)&&iU(t.y)}function i$(t,e){return t.min===e.min&&t.max===e.max}function iW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iz(t,e){return iW(t.x,e.x)&&iW(t.y,e.y)}function iK(t){return ev(t.x)/ev(t.y)}function iY(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iH{constructor(){this.members=[]}add(t){(0,iv.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,iv.removeItem)(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(),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()}}
1exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iX={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iG=["","X","Y","Z"],iq={visibility:"hidden"},iZ=0;function i_(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function iJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},i=e?.()){this.id=iZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ih.statsBuffer.value&&(iX.nodes=iX.calculatedTargetDeltas=iX.calculatedProjections=0),this.nodes.forEach(i1),this.nodes.forEach(i9),this.nodes.forEach(i6),this.nodes.forEach(i5),ih.statsBuffer.addProjectionMetrics&&ih.statsBuffer.addProjectionMetrics(iX)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ic.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ig(e),this.instance=e;let{layoutId:s,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=iT(s,250),ie.hasAnimatedSinceResize&&(ie.hasAnimatedSinceResize=!1,this.nodes.forEach(i4))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||sr,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!iz(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,n.getValueTransition)(r,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||i4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,r.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(st),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 s=(0,u.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",r.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(i8);return}this.isUpdating||this.nodes.forEach(i7),this.isUpdating=!1,this.nodes.forEach(i3),this.nodes.forEach(iQ),this.nodes.forEach(i0),this.clearAllSnapshots();let t=N.time.now();r.frameData.delta=(0,G.clamp)(0,1e3/60,t-r.frameData.timestamp),r.frameData.timestamp=t,r.frameData.isProcessing=!0,r.frameSteps.update.process(r.frameData),r.frameSteps.preRender.process(r.frameData),r.frameSteps.render.process(r.frameData),r.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e7.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i2),this.sharedNodes.forEach(se)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,r.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){r.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ev(this.snapshot.measuredBox.x)||ev(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.layoutCorrected=eE(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(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(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iN(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||eR(this.latestValues)||n)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),sl((e=s).x),sl(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return eE();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sh))){let{scroll:t}=this.root;t&&(eO(e.x,t.offset.x),eO(e.y,t.offset.y))}return e}removeElementScroll(t){let e=eE();if(iR(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&iR(e,t),eO(e.x,n.offset.x),eO(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=eE();iR(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&eU(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),eR(s.latestValues)&&eU(i,s.latestValues)}return eR(this.latestValues)&&eU(i,this.latestValues),i}removeTransform(t){let e=eE();iR(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eR(i.latestValues))continue;ek(i.latestValues)&&i.updateSnapshot();let s=eE();iR(s,i.measurePageBox()),iI(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return eR(this.latestValues)&&iI(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==r.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){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:s,layoutId:n}=this.options;if(this.layout&&(s||n)){if(this.resolvedRelativeTargetAt=r.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eE(),this.relativeTargetOrigin=eE(),eS(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),iR(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=eE(),this.targetWithTransforms=eE()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ew(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iR(this.target,this.layout.layoutBox),eB(this.target,this.targetDelta)):iR(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eE(),this.relativeTargetOrigin=eE(),eS(this.relativeTargetOrigin,this.target,t.target),iR(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ih.statsBuffer.value&&iX.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ek(this.parent.latestValues)||eF(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)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===r.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;iR(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&eU(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eB(t,r)),s&&eR(n.latestValues)&&eU(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(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=eE());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iF(this.prevProjectionDelta.x,this.projectionDelta.x),iF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eT(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iY(this.projectionDelta.x,this.prevProjectionDelta.x)&&iY(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ih.statsBuffer.value&&iX.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=eV(),this.projectionDelta=eV(),this.projectionDeltaWithTransform=eV()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=eV();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=eE(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sn));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(si(o.x,t.x,s),si(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;eS(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=s,ss(p.x,m.x,f.x,g),ss(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,i$(u.x,d.x)&&i$(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=eE()),iR(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=q(0,i.opacity??1,iE(s)),t.opacityExit=q(e.opacity??1,0,iC(s))):r&&(t.opacity=q(e.opacity??1,i.opacity??1,s));for(let n=0;n<iS;n++){let r=`border${ib[n]}Radius`,o=iM(e,r),a=iM(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||iV(o)===iV(a)?(t[r]=Math.max(q(iA(o),iA(a),s),0),(j.percent.test(a)||j.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=q(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,r.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.frame.update(()=>{ie.hasAnimatedSinceResize=!0,X.activeAnimations.layout++,this.currentAnimation=im(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{X.activeAnimations.layout--},onComplete:()=>{X.activeAnimations.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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&su(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||eE();let e=ev(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=ev(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}iR(e,i),eU(e,n),eT(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iH),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;
1return 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 s=this.getStack();s&&s.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 s={};i.z&&i_("z",t,s,this.animationValues);for(let e=0;e<iG.length;e++)i_(`rotate${iG[e]}`,t,s,this.animationValues),i_(`skew${iG[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return iq;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=iw(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iw(t?.pointerEvents)||""),this.hasProjected&&!eR(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let n=s.animationValues||s.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n),i&&(e.transform=i(n,e.transform));let{x:r,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ir){if(void 0===n[t])continue;let{correct:i,applyTo:r,isCSSVariable:o}=ir[t],a="none"===e.transform?n[t]:i(n[t],s);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=s===this?iw(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(i8),this.root.sharedNodes.clear()}}}function iQ(t){t.updateLayout()}function i0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?eC(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=ev(s);s.min=i[t].min,s.max=s.min+n}):su(n,e.layoutBox,i)&&eC(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=ev(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=eV();eT(o,i,e.layoutBox);let a=eV();r?eT(a,t.applyTransform(s,!0),e.measuredBox):eT(a,i,e.layoutBox);let l=!iN(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=eE();eS(o,e.layoutBox,n.layoutBox);let a=eE();eS(a,i,r.layoutBox),iz(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i1(t){ih.statsBuffer.value&&iX.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function i5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function i2(t){t.clearSnapshot()}function i8(t){t.clearMeasurements()}function i7(t){t.isLayoutDirty=!1}function i3(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function i4(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function i9(t){t.resolveTargetDelta()}function i6(t){t.calcProjection()}function st(t){t.resetSkewAndRotation()}function se(t){t.removeLeadSnapshot()}function si(t,e,i){t.translate=q(e.translate,0,i),t.scale=q(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,i,s){t.min=q(e.min,i.min,s),t.max=q(e.max,i.max,s)}function sn(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sr={duration:.45,ease:[.4,0,.1,1]},so=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sa=so("applewebkit/")&&!so("chrome/")?Math.round:x.noop;function sl(t){t.min=sa(t.min),t.max=sa(t.max)}function su(t,e,i){return"position"===t||"preserve-aspect"===t&&!ey(iK(e),iK(i),.2)}function sh(t){return t!==t.root&&t.scroll?.wasRoot}let sc=iJ({attachResizeListener:(t,e)=>ec(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sd={current:void 0},sp=iJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sd.current){let t=new sc({});t.mount(window),t.setOptions({layoutScroll:!0}),sd.current=t}return sd.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,sp,"rootProjectionNode",0,sd],577332);let sm={pan:{Feature:class extends eo{constructor(){super(...arguments),this.removePointerDownListener=x.noop}onPointerDown(t){this.session=new eY(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e$(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:e2(t),onStart:e2(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&r.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=ef(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends eo{constructor(t){super(t),this.removeGroupControls=x.noop,this.removeListeners=x.noop,this.controls=new e1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||x.noop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sp,MeasureLayout:il}};function sf(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}function sg(t,e){let i=sf(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function sv(t){return!("touch"===t.pointerType||eh())}function sy(t,e,i={}){let[s,n,r]=sg(t,i),o=t=>{if(!sv(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{sv(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",o,n)}),r}function sx(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&r.frame.postRender(()=>n(e,ep(e)))}t.s(["drag",0,sm],810684),t.s(["resolveElements",0,sf],614002),t.s(["hover",0,sy],138433);let sT=(t,e)=>!!e&&(t===e||sT(t,e.parentElement)),sP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sw=new WeakSet;
1function sb(t){return e=>{"Enter"===e.key&&t(e)}}function sS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sA(t,e,i={}){let[s,n,r]=sg(t,i),o=t=>{let s=t.currentTarget;if(!(ed(t)&&!eh())||sw.has(s))return;sw.add(s);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ed(t)&&!eh()&&sw.has(s)&&(sw.delete(s),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||sT(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t instanceof HTMLElement)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=sb(()=>{if(sw.has(i))return;sS(i,"down");let t=sb(()=>{sS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sS(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),sP.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}function sV(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&r.frame.postRender(()=>n(e,ep(e)))}t.s(["press",0,sA],120587);let sM=new WeakMap,sE=new WeakMap,sC=t=>{let e=sM.get(t.target);e&&e(t)},sD=t=>{t.forEach(sC)},sk={some:0,all:1},sR={inView:{Feature:class extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:sk[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;sE.has(i)||sE.set(i,{});let s=sE.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(sD,{root:t,...e})),s[n]}(a),sM.set(t,l),e.observe(t),()=>{sM.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends eo{mount(){let{current:t}=this.node;t&&(this.unmount=sA(t,(t,e)=>(sV(this.node,e,"Start"),(t,{success:e})=>sV(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=to(ec(this.node.current,"focus",()=>this.onFocus()),ec(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends eo{mount(){let{current:t}=this.node;t&&(this.unmount=sy(t,(t,e)=>(sx(this.node,e,"Start"),t=>sx(this.node,t,"End"))))}unmount(){}}}};t.s(["gestureAnimations",0,sR],724668);let sF={layout:{ProjectionNode:sp,MeasureLayout:il}};t.s(["layout",0,sF],582144);let sL=(0,e3.createContext)({strict:!1});t.s(["LazyContext",0,sL],765237);let sj=(0,e3.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,sj],85161);let sB=(0,e3.createContext)({});function sO(t){return(0,i.isAnimationControls)(t.animate)||et.some(e=>t9(t[e]))}function sI(t){return!!(sO(t)||t.variants)}function sU(t){return Array.isArray(t)?t.join(" "):t}t.s(["MotionContext",0,sB],380037);let sN="u">typeof window;t.s(["isBrowser",0,sN],329736);let s$={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sW={};for(let t in s$)sW[t]={isEnabled:e=>s$[t].some(t=>!!e[t])};function sz(t){for(let e in t)sW[e]={...sW[e],...t[e]}}t.s(["loadFeatures",0,sz],663785);let sK=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,sK],730602);var sY=t.i(745656);let sH=sN?e3.useLayoutEffect:e3.useEffect;function sX({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:n}){function r(t,r){var o;let a,l={...(0,e3.useContext)(sj),...t,layoutId:function({layoutId:t}){let e=(0,e3.useContext)(e6).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(sO(t)){let{initial:e,animate:i}=t;return{initial:!1===e||t9(e)?e:void 0,animate:t9(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e3.useContext)(sB));return(0,e3.useMemo)(()=>({initial:e,animate:i}),[sU(e),sU(i)])}
1(t),c=s(t,u);if(!u&&sN){(0,e3.useContext)(sL).strict;let t=function(t){let{drag:e,layout:i}=sW;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(l);a=t.MeasureLayout,h.visualElement=function(t,e,i,s,n){let{visualElement:r}=(0,e3.useContext)(sB),o=(0,e3.useContext)(sL),a=(0,e3.useContext)(e4),l=(0,e3.useContext)(sj).reducedMotion,u=(0,e3.useRef)(null);s=s||o.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,c=(0,e3.useContext)(it);h&&!h.projection&&n&&("html"===h.type||"svg"===h.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&eW(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,n,c);let d=(0,e3.useRef)(!1);(0,e3.useInsertionEffect)(()=>{h&&d.current&&h.update(i,a)});let p=i[sY.optimizedAppearDataAttribute],m=(0,e3.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return sH(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),e7.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,e3.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(n,c,l,e,t.ProjectionNode)}return(0,e8.jsxs)(sB.Provider,{value:h,children:[a&&h.visualElement?(0,e8.jsx)(a,{visualElement:h.visualElement,...l}):null,i(n,t,(o=h.visualElement,(0,e3.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),r&&("function"==typeof r?r(t):eW(r)&&(r.current=t))},[o])),c,u,h.visualElement)]})}t&&sz(t),r.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;let o=(0,e3.forwardRef)(r);return o[sK]=n,o}function sG(t,{layout:e,layoutId:i}){return t_.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ir[t]||"opacity"===t)}t.s(["useIsomorphicLayoutEffect",0,sH],307419),t.s(["createRendererMotionComponent",0,sX],437501);let sq=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var sZ=t.i(740774);let s_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sJ=t_.transformPropOrder.length;function sQ(t,e,i){let s="",n=!0;for(let r=0;r<sJ;r++){let o=t_.transformPropOrder[r],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=sq(a,sZ.numberValueTypes[o]);if(!l){n=!1;let e=s_[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}function s0(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(t_.transformProps.has(t)){o=!0;continue}if(E(t)){n[t]=i;continue}{let e=sq(i,sZ.numberValueTypes[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}if(!e.transform&&(o||i?s.transform=sQ(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildTransform",0,sQ],816633);let s1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function s5(t,e,i){for(let s in e)(0,ip.isMotionValue)(e[s])||sG(s,i)||(t[s]=e[s])}let s2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function s8(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s2.has(t)}t.s(["isValidMotionProp",0,s8],318471);let s7=t=>!s8(t);function s3(t){t&&(s7=e=>e.startsWith("on")?!s8(e):t(e))}try{s3(t.r(252823).default)}catch{}function s4(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(s7(n)||!0===i&&s8(n)||!e&&!s8(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}
1t.s(["filterProps",0,s4,"loadExternalIsValidProp",0,s3],117395);let s9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s6(t){if("string"!=typeof t||t.includes("-"));else if(s9.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let nt={offset:"stroke-dashoffset",array:"stroke-dasharray"},ne={offset:"strokeDashoffset",array:"strokeDasharray"};function ni(t,e,i){return"string"==typeof t?t:j.px.transform(e+i*t)}function ns(t,{attrX:e,attrY:i,attrScale:s,originX:n,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(s0(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:g}=t;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==n||void 0!==r||f.transform)&&(d=ni(void 0!==n?n:.5,g.x,g.width),p=ni(void 0!==r?r:.5,g.y,g.height),f.transformOrigin=`${d} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==s&&(m.scale=s),void 0!==o&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?nt:ne;t[r.offset]=j.px.transform(-s);let o=j.px.transform(e),a=j.px.transform(i);t[r.array]=`${o} ${a}`}(m,o,a,l,!1)}let nn=()=>({...s1(),attrs:{}}),nr=t=>"string"==typeof t&&"svg"===t.toLowerCase();var no=t.i(685674);function na(t){let e=(0,e3.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["useConstant",0,na],540570);let nl=t=>(e,s)=>{let n=(0,e3.useContext)(sB),r=(0,e3.useContext)(e4),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:s},n,r,o){let a={latestValues:function(t,e,s,n){let r={},o=n(t,{});for(let t in o)r[t]=iw(o[t]);let{initial:a,animate:l}=t,u=sO(t),h=sI(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!s&&!1===s.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!(0,i.isAnimationControls)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=(0,no.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,r,o,t),renderState:e()};return s&&(a.onMount=t=>s({props:n,current:t,...a}),a.onUpdate=t=>s(t)),a})(t,e,n,r);return s?o():na(o)};function nu(t,e,i){let{style:s}=t,n={};for(let r in s)((0,ip.isMotionValue)(s[r])||e.style&&(0,ip.isMotionValue)(e.style[r])||sG(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(n[r]=s[r]);return n}t.s(["makeUseVisualState",0,nl],809127);let nh={useVisualState:nl({scrapeMotionValuesFromProps:nu,createRenderState:s1})};function nc(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}var nd=t.i(995327);function np(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}let nm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nf(t,e,i,s){for(let i in np(t,e,void 0,s),e.attrs)t.setAttribute(nm.has(i)?i:(0,nd.camelToDash)(i),e.attrs[i])}function ng(t,e,i){let s=nu(t,e,i);for(let i in t)((0,ip.isMotionValue)(t[i])||(0,ip.isMotionValue)(e[i]))&&(s[-1!==t_.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let nv=["x","y","width","height","cx","cy","r"],ny={useVisualState:nl({scrapeMotionValuesFromProps:ng,createRenderState:nn,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:n})=>{if(!i)return;let o=!!t.drag;if(!o){for(let t in n)if(t_.transformProps.has(t)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let i=0;i<nv.length;i++){let s=nv[i];t[s]!==e[s]&&(a=!0)}a&&r.frame.read(()=>{nc(i,s),r.frame.render(()=>{ns(s,n,nr(i.tagName),t.transformTemplate),nf(i,s)})})}})};function nx(t,e){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){let n={...s6(i)?ny:nh,preloadedFeatures:t,useRender:function(t=!1){return(e,i,s,{latestValues:n},r)=>
1{let o=(s6(e)?function(t,e,i,s){let n=(0,e3.useMemo)(()=>{let i=nn();return ns(i,e,nr(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};s5(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},r=(i=t.style||{},s5(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,e3.useMemo)(()=>{let i=s1();return s0(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(i,n,r,e),a=s4(i,"string"==typeof e,t),l=e!==e3.Fragment?{...a,...o,ref:s}:{},{children:u}=i,h=(0,e3.useMemo)(()=>(0,ip.isMotionValue)(u)?u.get():u,[u]);return(0,e3.createElement)(e,{...l,children:h})}}(s),createVisualElement:e,Component:i};return sX(n)}}t.s(["createMotionComponentFactory",0,nx],499516);var nT=t.i(76734);let nP={current:null},nw={current:!1};function nb(){if(nw.current=!0,sN)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nP.current=t.matches;t.addListener(e),e()}else nP.current=!1}t.s(["hasReducedMotionListener",0,nw,"prefersReducedMotion",0,nP],571124),t.s(["initPrefersReducedMotion",0,nb],948823);var nS=t.i(872519);let nA=[...O,ta.color,$.complex],nV=new WeakMap;t.s(["visualElementStore",0,nV],544774);let nM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class nE{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A.KeyframeResolver,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=N.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,r.frame.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:h}=o;this.onUpdate=h,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=s,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=sO(e),this.isVariantNode=sI(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&(0,ip.isMotionValue)(e)&&e.set(l[t],!1)}}mount(t){this.current=t,nV.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nw.current||nb(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nP.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,r.cancelFrame)(this.notifyUpdate),(0,r.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=t_.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&r.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),o(),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 sW){let e=sW[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
1e.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):eE()}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<nM.length;e++){let i=nM[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if((0,ip.isMotionValue)(n))t.addValue(s,n);else if((0,ip.isMotionValue)(r))t.addValue(s,(0,id.motionValue)(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,id.motionValue)(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=(0,id.motionValue)(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];if(null!=i){let s;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(0,nT.isZeroValueString)(i)))i=parseFloat(i);else{let s;s=i,!nA.find(B(s))&&$.complex.test(e)&&(i=(0,nS.getAnimatableNone)(t,e))}this.setBaseTarget(t,(0,ip.isMotionValue)(i)?i.get():i)}return(0,ip.isMotionValue)(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 s=(0,no.resolveVariantFromProps)(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,ip.isMotionValue)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new ic.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}t.s(["VisualElement",0,nE],946994);class nC extends nE{constructor(){super(...arguments),this.KeyframeResolver=U}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,ip.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var nD=t.i(840718);class nk extends nC{constructor(){super(...arguments),this.type="html",this.renderInstance=np}readValueFromInstance(t,e){if(t_.transformProps.has(e))return(0,nD.readTransformValue)(t,e);{let i=window.getComputedStyle(t),s=(E(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eN(t,e)}build(t,e,i){s0(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return nu(t,e,i)}}t.s(["HTMLVisualElement",0,nk],608408);var nR=t.i(620980);class nF extends nC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eE,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&nc(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(t_.transformProps.has(e)){let t=(0,nR.getDefaultValueType)(e);return t&&t.default||0}return e=nm.has(e)?e:(0,nd.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ng(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&r.frame.postRender(this.updateDimensions)}build(t,e,i){ns(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){nf(t,e,i,s)}mount(t){this.isSVGTag=nr(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",0,nF],268901);let nL=(t,e)=>s6(t)?new nF(e):new nk(e,{allowProjection:t!==e3.Fragment});t.s(["createDomVisualElement",0,nL],204250);let nj=nx({...el,...sR,...sm,...sF},nL),nB=(0,e.createDOMMotionComponentProxy)(nj);t.s(["motion",0,nB],47268)}]);
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.