<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5516],{8254:(t,e,i)=&gt;{let s;var n=i(62147),r=i(77069),o=i(93213),a=i(30409);let l=a.createContext({});function h(t){return null!==t&amp;&amp;"object"==typeof t&amp;&amp;"function"==typeof t.start}function u(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=&gt;{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function d(t,e,i,s){if("function"==typeof e){let[n,r]=u(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&amp;&amp;(e=t.variants&amp;&amp;t.variants[e]),"function"==typeof e){let[n,r]=u(s);e=e(void 0!==i?i:t.custom,n,r)}return e}function c(t,e,i){let s=t.getProps();return d(s,e,void 0!==i?i:s.custom,t)}let p={skipAnimations:!1,useManualTiming:!1},m=["read","resolveKeyframes","update","preRender","render","postRender"],f={value:null};function v(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=&gt;i=!0,o=m.reduce((t,i)=&gt;(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)&amp;&amp;(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,r=!1)=&gt;{let a=r&amp;&amp;n?i:s;return e&amp;&amp;o.add(t),a.has(t)||a.add(t),t},cancel:t=&gt;{s.delete(t),o.delete(t)},process:t=&gt;{if(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(h),e&amp;&amp;f.value&amp;&amp;f.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&amp;&amp;(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:h,preRender:u,render:d,postRender:c}=o,v=()=&gt;{let r=p.useManualTiming?n.timestamp:performance.now();i=!1,p.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),h.process(n),u.process(n),d.process(n),c.process(n),n.isProcessing=!1,i&amp;&amp;e&amp;&amp;(s=!1,t(v))},g=()=&gt;{i=!0,s=!0,n.isProcessing||t(v)};return{schedule:m.reduce((t,e)=&gt;{let s=o[e];return t[e]=(t,e=!1,n=!1)=&gt;(i||g(),s.schedule(t,e,n)),t},{}),cancel:t=&gt;{for(let e=0;e&lt;m.length;e++)o[m[e]].cancel(t)},state:n,steps:o}}let{schedule:g,cancel:y,state:x,steps:T}=v("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.noop,!0),P=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],w=new Set(P),S=new Set(["width","height","top","left","right","bottom",...P]),b=t=&gt;Array.isArray(t),A=t=&gt;!!(t&amp;&amp;"object"==typeof t&amp;&amp;t.mix&amp;&amp;t.toValue),V=t=&gt;b(t)?t[t.length-1]||0:t;function M(){s=void 0}let C={now:()=&gt;(void 0===s&amp;&amp;C.set(x.isProcessing||p.useManualTiming?x.timestamp:performance.now()),s),set:t=&gt;{s=t,queueMicrotask(M)}};function D(t,e){-1===t.indexOf(e)&amp;&amp;t.push(e)}function E(t,e){let i=t.indexOf(e);i&gt;-1&amp;&amp;t.splice(i,1)}class R{constructor(){this.subscriptions=[]}add(t){return D(this.subscriptions,t),()=&gt;E(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&lt;s;n++){let s=this.subscriptions[n];s&amp;&amp;s(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function k(t,e){return e?1e3/e*t:0}let F=new Set,j=t=&gt;!isNaN(parseFloat(t)),L={current:void 0};class B{constructor(t,e={}){this.version="12.4.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=&gt;{let i=C.now();this.updatedAt!==i&amp;&amp;this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&amp;&amp;this.events.change&amp;&amp;this.events.change.notify(this.current),e&amp;&amp;this.events.renderRequest&amp;&amp;this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=C.now(),null===this.canTrackVelocity&amp;&amp;void 0!==t&amp;&amp;(this.canTrackVelocity=j(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 R);let i=this.events[t].add(e);return"change"===t?()=&gt;{i(),g.read(()=&gt;{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&amp;&amp;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&amp;&amp;this.stop(),this.stopPassiveEffect&amp;&amp;this.stopPassiveEffect()}get(){return L.current&amp;&amp;L.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=C.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt&gt;30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return k(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=&gt;{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&amp;&amp;this.events.animationStart.notify()}).then(()=&gt;{this.events.animationComplete&amp;&amp;this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&amp;&amp;(this.animation.stop(),this.events.animationCancel&amp;&amp;this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&amp;&amp;this.stopPassiveEffect()}}function O(t,e){return new B(t,e)}function I(t,e){let{transitionEnd:i={},transition:s={},...n}=c(t,e)||{};for(let e in n={...n,...i}){let i=V(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,O(i))}}let U=t=&gt;!!(t&amp;&amp;t.getVelocity);function N(t,e){let i=t.getValue("willChange");if(U(i)&amp;&amp;i.add)return i.add(e)}let $=t=&gt;t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),W="framerAppearId",z="data-"+$(W);function H(t){return t.props[z]}let Y={current:!1},G=(t,e,i)=&gt;(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function K(t,e,i,s){if(t===e&amp;&amp;i===s)return r.noop;let n=e=&gt;(function(t,e,i,s,n){let r,o;let a=0;do(r=G(o=e+(i-e)/2,s,n)-t)&gt;0?i=o:e=o;while(Math.abs(r)&gt;1e-7&amp;&amp;++a&lt;12);return o})(e,0,1,t,i);return t=&gt;0===t||1===t?t:G(n(t),e,s)}let X=t=&gt;e=&gt;e&lt;=.5?t(2*e)/2:(2-t(2*(1-e)))/2,q=t=&gt;e=&gt;1-t(1-e),_=K(.33,1.53,.69,.99),Z=q(_),J=X(Z),Q=t=&gt;(t*=2)&lt;1?.5*Z(t):.5*(2-Math.pow(2,-10*(t-1))),tt=t=&gt;1-Math.sin(Math.acos(t)),te=q(tt),ti=X(tt),ts=t=&gt;/^0[^.\s]+$/u.test(t),tn=(t,e,i)=&gt;i&gt;e?e:i&lt;t?t:i,tr={test:t=&gt;"number"==typeof t,parse:parseFloat,transform:t=&gt;t},to={...tr,transform:t=&gt;tn(0,1,t)},ta={...tr,default:1},tl=t=&gt;Math.round(1e5*t)/1e5,th=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,td=(t,e)=&gt;i=&gt;!!("string"==typeof i&amp;&amp;tu.test(i)&amp;&amp;i.startsWith(t)||e&amp;&amp;null!=i&amp;&amp;Object.prototype.hasOwnProperty.call(i,e)),tc=(t,e,i)=&gt;s=&gt;{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(th);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tp=t=&gt;tn(0,255,t),tm={...tr,transform:t=&gt;Math.round(tp(t))},tf={test:td("rgb","red"),parse:tc("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=&gt;"rgba("+tm.transform(t)+", "+tm.transform(e)+", "+tm.transform(i)+", "+tl(to.transform(s))+")"},tv={test:td("#"),parse:function(t){let e="",i="",s="",n="";return t.length&gt;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:tf.transform},tg=t=&gt;({test:e=&gt;"string"==typeof e&amp;&amp;e.endsWith(t)&amp;&amp;1===e.split(" ").length,parse:parseFloat,transform:e=&gt;`${e}${t}`}),ty=tg("deg"),tx=tg("%"),tT=tg("px"),tP=tg("vh"),tw=tg("vw"),tS={...tx,parse:t=&gt;tx.parse(t)/100,transform:t=&gt;tx.transform(100*t)},tb={test:td("hsl","hue"),parse:tc("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=&gt;"hsla("+Math.round(t)+", "+tx.transform(tl(e))+", "+tx.transform(tl(i))+", "+tl(to.transform(s))+")"},tA={test:t=&gt;tf.test(t)||tv.test(t)||tb.test(t),parse:t=&gt;tf.test(t)?tf.parse(t):tb.test(t)?tb.parse(t):tv.parse(t),transform:t=&gt;"string"==typeof t?t:t.hasOwnProperty("red")?tf.transform(t):tb.transform(t)},tV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tM="number",tC="color",tD=/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 tE(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(tD,t=&gt;(tA.test(t)?(s.color.push(r),n.push(tC),i.push(tA.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(tM),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function tR(t){return tE(t).values}function tk(t){let{split:e,types:i}=tE(t),s=e.length;return t=&gt;{let n="";for(let r=0;r&lt;s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===tM?n+=tl(t[r]):e===tC?n+=tA.transform(t[r]):n+=t[r]}return n}}let tF=t=&gt;"number"==typeof t?0:t,tj={test:function(t){var e,i;return isNaN(t)&amp;&amp;"string"==typeof t&amp;&amp;((null===(e=t.match(th))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tV))||void 0===i?void 0:i.length)||0)&gt;0},parse:tR,createTransformer:tk,getAnimatableNone:function(t){let e=tR(t);return tk(t)(e.map(tF))}},tL=new Set(["brightness","contrast","saturate","opacity"]);function tB(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(th)||[];if(!s)return t;let n=i.replace(s,""),r=+!!tL.has(e);return s!==i&amp;&amp;(r*=100),e+"("+r+n+")"}let tO=/\b([a-z-]*)\(.*?\)/gu,tI={...tj,getAnimatableNone:t=&gt;{let e=t.match(tO);return e?e.map(tB).join(" "):t}},tU={borderWidth:tT,borderTopWidth:tT,borderRightWidth:tT,borderBottomWidth:tT,borderLeftWidth:tT,borderRadius:tT,radius:tT,borderTopLeftRadius:tT,borderTopRightRadius:tT,borderBottomRightRadius:tT,borderBottomLeftRadius:tT,width:tT,maxWidth:tT,height:tT,maxHeight:tT,top:tT,right:tT,bottom:tT,left:tT,padding:tT,paddingTop:tT,paddingRight:tT,paddingBottom:tT,paddingLeft:tT,margin:tT,marginTop:tT,marginRight:tT,marginBottom:tT,marginLeft:tT,backgroundPositionX:tT,backgroundPositionY:tT},tN={...tr,transform:Math.round},t$={...tU,rotate:ty,rotateX:ty,rotateY:ty,rotateZ:ty,scale:ta,scaleX:ta,scaleY:ta,scaleZ:ta,skew:ty,skewX:ty,skewY:ty,distance:tT,translateX:tT,translateY:tT,translateZ:tT,x:tT,y:tT,z:tT,perspective:tT,transformPerspective:tT,opacity:to,originX:tS,originY:tS,originZ:tT,zIndex:tN,size:tT,fillOpacity:to,strokeOpacity:to,numOctaves:tN},tW={...t$,color:tA,backgroundColor:tA,outlineColor:tA,fill:tA,stroke:tA,borderColor:tA,borderTopColor:tA,borderRightColor:tA,borderBottomColor:tA,borderLeftColor:tA,filter:tI,WebkitFilter:tI},tz=t=&gt;tW[t];function tH(t,e){let i=tz(t);return i!==tI&amp;&amp;(i=tj),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tY=new Set(["auto","none","0"]),tG=t=&gt;t===tr||t===tT,tK=(t,e)=&gt;parseFloat(t.split(", ")[e]),tX=(t,e)=&gt;(i,{transform:s})=&gt;{if("none"===s||!s)return 0;let n=s.match(/^matrix3d\((.+)\)$/u);if(n)return tK(n[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?tK(e[1],t):0}},tq=new Set(["x","y","z"]),t_=P.filter(t=&gt;!tq.has(t)),tZ={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=&gt;t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=&gt;t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=&gt;parseFloat(e),left:(t,{left:e})=&gt;parseFloat(e),bottom:({y:t},{top:e})=&gt;parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=&gt;parseFloat(e)+(t.max-t.min),x:tX(4,13),y:tX(5,14)};tZ.translateX=tZ.x,tZ.translateY=tZ.y;let tJ=new Set,tQ=!1,t0=!1;function t1(){if(t0){let t=Array.from(tJ).filter(t=&gt;t.needsMeasurement),e=new Set(t.map(t=&gt;t.element)),i=new Map;e.forEach(t=&gt;{let e=function(t){let e=[];return t_.forEach(i=&gt;{let s=t.getValue(i);void 0!==s&amp;&amp;(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}(t);e.length&amp;&amp;(i.set(t,e),t.render())}),t.forEach(t=&gt;t.measureInitialState()),e.forEach(t=&gt;{t.render();let e=i.get(t);e&amp;&amp;e.forEach(([e,i])=&gt;{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=&gt;t.measureEndState()),t.forEach(t=&gt;{void 0!==t.suspendedScrollY&amp;&amp;window.scrollTo(0,t.suspendedScrollY)})}t0=!1,tQ=!1,tJ.forEach(t=&gt;t.complete()),tJ.clear()}function t5(){tJ.forEach(t=&gt;{t.readKeyframes(),t.needsMeasurement&amp;&amp;(t0=!0)})}class t2{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?(tJ.add(this),tQ||(tQ=!0,g.read(t5),g.resolveKeyframes(t1))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n&lt;t.length;n++)if(null===t[n]){if(0===n){let n=null==s?void 0:s.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&amp;&amp;e){let s=i.readValue(e,r);null!=s&amp;&amp;(t[0]=s)}void 0===t[0]&amp;&amp;(t[0]=r),s&amp;&amp;void 0===n&amp;&amp;s.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tJ.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tJ.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let t3=t=&gt;/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),t9=t=&gt;e=&gt;"string"==typeof e&amp;&amp;e.startsWith(t),t4=t9("--"),t6=t9("var(--"),t8=t=&gt;!!t6(t)&amp;&amp;t7.test(t.split("/*")[0].trim()),t7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ee=t=&gt;e=&gt;e.test(t),ei=[tr,tT,tx,ty,tw,tP,{test:t=&gt;"auto"===t,parse:t=&gt;t}],es=t=&gt;ei.find(ee(t));class en extends t2{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&lt;t.length;i++){let s=t[i];if("string"==typeof s&amp;&amp;t8(s=s.trim())){let n=function t(e,i,s=1){r.invariant(s&lt;=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=function(t){let e=et.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${null!=i?i:s}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return t3(t)?parseFloat(t):t}return t8(o)?t(o,i,s+1):o}(s,e.current);void 0!==n&amp;&amp;(t[i]=n),i===t.length-1&amp;&amp;(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!S.has(i)||2!==t.length)return;let[s,n]=t,o=es(s),a=es(n);if(o!==a){if(tG(o)&amp;&amp;tG(a))for(let e=0;e&lt;t.length;e++){let i=t[e];"string"==typeof i&amp;&amp;(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e&lt;t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||ts(s))&amp;&amp;i.push(e)}i.length&amp;&amp;function(t,e,i){let s,n=0;for(;n&lt;t.length&amp;&amp;!s;){let e=t[n];"string"==typeof e&amp;&amp;!tY.has(e)&amp;&amp;tE(e).values.length&amp;&amp;(s=t[n]),n++}if(s&amp;&amp;i)for(let n of e)t[n]=tH(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&amp;&amp;(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tZ[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&amp;&amp;t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let n=e.getValue(i);n&amp;&amp;n.jump(this.measuredOrigin,!1);let r=s.length-1,o=s[r];s[r]=tZ[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&amp;&amp;void 0===this.finalKeyframe&amp;&amp;(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&amp;&amp;this.removedTransforms.forEach(([t,i])=&gt;{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let er=(t,e)=&gt;"zIndex"!==e&amp;&amp;!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&amp;&amp;(tj.test(t)||"0"===t)&amp;&amp;!t.startsWith("url(")),eo=t=&gt;null!==t;function ea(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(eo),r=e&amp;&amp;"loop"!==i&amp;&amp;e%2==1?0:n.length-1;return r&amp;&amp;void 0!==s?s:n[r]}class el{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=C.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&amp;&amp;this.resolvedAt-this.createdAt&gt;40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t5(),t1()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=C.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:o,delay:a,onComplete:l,onUpdate:h,isGenerator:u}=this.options;if(!u&amp;&amp;!function(t,e,i,s){let o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],l=er(o,e),h=er(a,e);return r.warning(l===h,`You are trying to animate ${e} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!!l&amp;&amp;!!h&amp;&amp;(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i&lt;t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||n.isGenerator(i))&amp;&amp;s)}(t,i,s,o)){if(Y.current||!a){h&amp;&amp;h(ea(t,this.options,e)),l&amp;&amp;l(),this.resolveFinishedPromise();return}this.options.duration=0}let d=this.initPlayback(t,e);!1!==d&amp;&amp;(this._resolved={keyframes:t,finalKeyframe:e,...d},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=&gt;{this.resolveFinishedPromise=t})}}let eh=(t,e,i)=&gt;t+(e-t)*i;function eu(t,e,i){return(i&lt;0&amp;&amp;(i+=1),i&gt;1&amp;&amp;(i-=1),i&lt;1/6)?t+(e-t)*6*i:i&lt;.5?e:i&lt;2/3?t+(e-t)*(2/3-i)*6:t}function ed(t,e){return i=&gt;i&gt;0?e:t}let ec=(t,e,i)=&gt;{let s=t*t,n=i*(e*e-s)+s;return n&lt;0?0:Math.sqrt(n)},ep=[tv,tf,tb],em=t=&gt;ep.find(e=&gt;e.test(t));function ef(t){let e=em(t);if(r.warning(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tb&amp;&amp;(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&lt;.5?i*(1+e):i+e-i*e,a=2*i-s;n=eu(a,s,t+1/3),r=eu(a,s,t),o=eu(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 ev=(t,e)=&gt;{let i=ef(t),s=ef(e);if(!i||!s)return ed(t,e);let n={...i};return t=&gt;(n.red=ec(i.red,s.red,t),n.green=ec(i.green,s.green,t),n.blue=ec(i.blue,s.blue,t),n.alpha=eh(i.alpha,s.alpha,t),tf.transform(n))},eg=(t,e)=&gt;i=&gt;e(t(i)),ey=(...t)=&gt;t.reduce(eg),ex=new Set(["none","hidden"]);function eT(t,e){return i=&gt;eh(t,e,i)}function eP(t){return"number"==typeof t?eT:"string"==typeof t?t8(t)?ed:tA.test(t)?ev:eb:Array.isArray(t)?ew:"object"==typeof t?tA.test(t)?ev:eS:ed}function ew(t,e){let i=[...t],s=i.length,n=t.map((t,i)=&gt;eP(t)(t,e[i]));return t=&gt;{for(let e=0;e&lt;s;e++)i[e]=n[e](t);return i}}function eS(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&amp;&amp;void 0!==e[n]&amp;&amp;(s[n]=eP(t[n])(t[n],e[n]));return t=&gt;{for(let e in s)i[e]=s[e](t);return i}}let eb=(t,e)=&gt;{let i=tj.createTransformer(e),s=tE(t),n=tE(e);return s.indexes.var.length===n.indexes.var.length&amp;&amp;s.indexes.color.length===n.indexes.color.length&amp;&amp;s.indexes.number.length&gt;=n.indexes.number.length?ex.has(t)&amp;&amp;!n.values.length||ex.has(e)&amp;&amp;!s.values.length?function(t,e){return ex.has(t)?i=&gt;i&lt;=0?t:e:i=&gt;i&gt;=1?e:t}(t,e):ey(ew(function(t,e){var i;let s=[],n={color:0,var:0,number:0};for(let r=0;r&lt;e.values.length;r++){let o=e.types[r],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&amp;&amp;void 0!==i?i:0;s[r]=l,n[o]++}return s}(s,n),n.values),i):(r.warning(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ed(t,e))};function eA(t,e,i){return"number"==typeof t&amp;&amp;"number"==typeof e&amp;&amp;"number"==typeof i?eh(t,e,i):eP(t)(t,e)}function eV(t,e,i){let s=Math.max(e-5,0);return k(i-t(s),e-s)}let eM={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eC({duration:t=eM.duration,bounce:e=eM.bounce,velocity:i=eM.velocity,mass:s=eM.mass}){let n,o;r.warning(t&lt;=r.secondsToMilliseconds(eM.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=tn(eM.minDamping,eM.maxDamping,a),t=tn(eM.minDuration,eM.maxDuration,r.millisecondsToSeconds(t)),a&lt;1?(n=e=&gt;{let s=e*a,n=s*t;return .001-(s-i)/eD(e,a)*Math.exp(-n)},o=e=&gt;{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=eD(Math.pow(e,2),a);return(s*i+i-r)*o*(-n(e)+.001&gt;0?-1:1)/l}):(n=e=&gt;-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=&gt;t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i&lt;12;i++)s-=t(s)/e(s);return s}(n,o,5/t);if(t=r.secondsToMilliseconds(t),isNaN(l))return{stiffness:eM.stiffness,damping:eM.damping,duration:t};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function eD(t,e){return t*Math.sqrt(1-e*e)}let eE=["duration","bounce"],eR=["stiffness","damping","mass"];function ek(t,e){return e.some(e=&gt;void 0!==t[e])}function eF(t=eM.visualDuration,e=eM.bounce){let i;let s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:a}=s,l=s.keyframes[0],h=s.keyframes[s.keyframes.length-1],u={done:!1,value:l},{stiffness:d,damping:c,mass:p,duration:m,velocity:f,isResolvedFromDuration:v}=function(t){let e={velocity:eM.velocity,stiffness:eM.stiffness,damping:eM.damping,mass:eM.mass,isResolvedFromDuration:!1,...t};if(!ek(t,eR)&amp;&amp;ek(t,eE)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*tn(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:eM.mass,stiffness:s,damping:n}}else{let i=eC(t);(e={...e,...i,mass:eM.mass}).isResolvedFromDuration=!0}}return e}({...s,velocity:-r.millisecondsToSeconds(s.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(d*p)),x=h-l,T=r.millisecondsToSeconds(Math.sqrt(d/p)),P=5&gt;Math.abs(x);if(o||(o=P?eM.restSpeed.granular:eM.restSpeed.default),a||(a=P?eM.restDelta.granular:eM.restDelta.default),y&lt;1){let t=eD(T,y);i=e=&gt;h-Math.exp(-y*T*e)*((g+y*T*x)/t*Math.sin(t*e)+x*Math.cos(t*e))}else if(1===y)i=t=&gt;h-Math.exp(-T*t)*(x+(g+T*x)*t);else{let t=T*Math.sqrt(y*y-1);i=e=&gt;{let i=Math.exp(-y*T*e),s=Math.min(t*e,300);return h-i*((g+y*T*x)*Math.sinh(s)+t*x*Math.cosh(s))/t}}let w={calculatedDuration:v&amp;&amp;m||null,next:t=&gt;{let e=i(t);if(v)u.done=t&gt;=m;else{let s=0;y&lt;1&amp;&amp;(s=0===t?r.secondsToMilliseconds(g):eV(i,t,e));let n=Math.abs(h-e)&lt;=a;u.done=Math.abs(s)&lt;=o&amp;&amp;n}return u.value=u.done?h:e,u},toString:()=&gt;{let t=Math.min(n.calcGeneratorDuration(w),n.maxGeneratorDuration),e=n.generateLinearEasing(e=&gt;w.next(t*e).value,t,30);return t+"ms "+e}};return w}function ej({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c;let p=t[0],m={done:!1,value:p},f=t=&gt;void 0!==a&amp;&amp;t&lt;a||void 0!==l&amp;&amp;t&gt;l,v=t=&gt;void 0===a?l:void 0===l?a:Math.abs(a-t)&lt;Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&amp;&amp;(g=x-p);let T=t=&gt;-g*Math.exp(-t/s),P=t=&gt;x+T(t),w=t=&gt;{let e=T(t),i=P(t);m.done=Math.abs(e)&lt;=h,m.value=m.done?x:i},S=t=&gt;{f(m.value)&amp;&amp;(d=t,c=eF({keyframes:[m.value,v(m.value)],velocity:eV(P,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u}))};return S(0),{calculatedDuration:null,next:t=&gt;{let e=!1;return(c||void 0!==d||(e=!0,w(t),S(t)),void 0!==d&amp;&amp;t&gt;=d)?c.next(t-d):(e||w(t),m)}}}let eL=K(.42,0,1,1),eB=K(0,0,.58,1),eO=K(.42,0,.58,1),eI=t=&gt;Array.isArray(t)&amp;&amp;"number"!=typeof t[0],eU={linear:r.noop,easeIn:eL,easeInOut:eO,easeOut:eB,circIn:tt,circInOut:ti,circOut:te,backIn:Z,backInOut:J,backOut:_,anticipate:Q},eN=t=&gt;{if(n.isBezierDefinition(t)){r.invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return K(e,i,s,n)}return"string"==typeof t?(r.invariant(void 0!==eU[t],`Invalid easing type '${t}'`),eU[t]):t};function e$(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let o=t.length;if(r.invariant(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=&gt;e[0];if(2===o&amp;&amp;e[0]===e[1])return()=&gt;e[1];let a=t[0]===t[1];t[0]&gt;t[o-1]&amp;&amp;(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let s=[],n=i||eA,o=t.length-1;for(let i=0;i&lt;o;i++){let o=n(t[i],t[i+1]);e&amp;&amp;(o=ey(Array.isArray(e)?e[i]||r.noop:e,o)),s.push(o)}return s}(e,s,n),h=l.length,u=i=&gt;{if(a&amp;&amp;i&lt;t[0])return e[0];let s=0;if(h&gt;1)for(;s&lt;t.length-2&amp;&amp;!(i&lt;t[s+1]);s++);let n=r.progress(t[s],t[s+1],i);return l[s](n)};return i?e=&gt;u(tn(t[0],t[o-1],e)):u}function eW(t,e){let i=t[t.length-1];for(let s=1;s&lt;=e;s++){let n=r.progress(0,e,s);t.push(eh(i,1,n))}}function ez(t){let e=[0];return eW(e,t.length-1),e}function eH({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let n=eI(s)?s.map(eN):eN(s),r={done:!1,value:e[0]},o=e$((i&amp;&amp;i.length===e.length?i:ez(e)).map(e=&gt;e*t),e,{ease:Array.isArray(n)?n:e.map(()=&gt;n||eO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=&gt;(r.value=o(e),r.done=e&gt;=t,r)}}let eY=t=&gt;{let e=({timestamp:e})=&gt;t(e);return{start:()=&gt;g.update(e,!0),stop:()=&gt;y(e),now:()=&gt;x.isProcessing?x.timestamp:C.now()}},eG={decay:ej,inertia:ej,tween:eH,keyframes:eH,spring:eF},eK=t=&gt;t/100;class eX extends el{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=()=&gt;{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&amp;&amp;t()};let{name:e,motionValue:i,element:s,keyframes:n}=this.options,r=(null==s?void 0:s.KeyframeResolver)||t2;this.resolver=new r(n,(t,e)=&gt;this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&amp;&amp;Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:s="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,h=n.isGenerator(s)?s:eG[s]||eH;h!==eH&amp;&amp;"number"!=typeof t[0]&amp;&amp;(e=ey(eK,eA(t[0],t[1])),t=[0,100]);let u=h({...this.options,keyframes:t});"mirror"===a&amp;&amp;(i=h({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===u.calculatedDuration&amp;&amp;(u.calculatedDuration=n.calcGeneratorDuration(u));let{calculatedDuration:d}=u,c=d+o;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(r+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&amp;&amp;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:h,resolvedDuration:u}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed&gt;0?this.startTime=Math.min(this.startTime,t):this.speed&lt;0&amp;&amp;(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed&gt;=0?1:-1),g=this.speed&gt;=0?v&lt;0:v&gt;h;this.currentTime=Math.max(v,0),"finished"===this.state&amp;&amp;null===this.holdTime&amp;&amp;(this.currentTime=h);let y=this.currentTime,x=n;if(c){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&amp;&amp;t&gt;=1&amp;&amp;(i=1),1===i&amp;&amp;e--,(e=Math.min(e,c+1))%2&amp;&amp;("reverse"===p?(i=1-i,m&amp;&amp;(i-=m/u)):"mirror"===p&amp;&amp;(x=r)),y=tn(0,1,i)*u}let T=g?{done:!1,value:a[0]}:x.next(y);o&amp;&amp;(T.value=o(T.value));let{done:P}=T;g||null===l||(P=this.speed&gt;=0?this.currentTime&gt;=h:this.currentTime&lt;=0);let w=null===this.holdTime&amp;&amp;("finished"===this.state||"running"===this.state&amp;&amp;P);return w&amp;&amp;void 0!==s&amp;&amp;(T.value=ea(a,this.options,s)),f&amp;&amp;f(T.value),w&amp;&amp;this.finish(),T}get duration(){let{resolved:t}=this;return t?r.millisecondsToSeconds(t.calculatedDuration):0}get time(){return r.millisecondsToSeconds(this.currentTime)}set time(t){t=r.secondsToMilliseconds(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&amp;&amp;(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&amp;&amp;(this.time=r.millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eY,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=&gt;this.tick(t))),e&amp;&amp;e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&amp;&amp;(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&amp;&amp;this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&amp;&amp;void 0!==t?t:0}complete(){"running"!==this.state&amp;&amp;this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&amp;&amp;t()}cancel(){null!==this.cancelTime&amp;&amp;this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&amp;&amp;(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eq=new Set(["opacity","clipPath","filter","transform"]);function e_(t,e,i,{delay:s=0,duration:r=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:h}={}){let u={[e]:i};h&amp;&amp;(u.offset=h);let d=n.mapEasingToNativeEasing(l,r);return Array.isArray(d)&amp;&amp;(u.easing=d),t.animate(u,{delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}let eZ=r.memo(()=&gt;Object.hasOwnProperty.call(Element.prototype,"animate")),eJ={anticipate:Q,backInOut:J,circInOut:ti};class eQ extends el{constructor(t){super(t);let{name:e,motionValue:i,element:s,keyframes:n}=this.options;this.resolver=new en(n,(t,e)=&gt;this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:r,ease:o,type:a,motionValue:l,name:h,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&amp;&amp;n.supportsLinearEasing()&amp;&amp;o in eJ&amp;&amp;(o=eJ[o]),i=this.options,n.isGenerator(i.type)||"spring"===i.type||!n.isWaapiSupportedEasing(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...h}=this.options,u=function(t,e){let i=new eX({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],r=0;for(;!s.done&amp;&amp;r&lt;2e4;)n.push((s=i.sample(r)).value),r+=10;return{times:void 0,keyframes:n,duration:r-10,ease:"linear"}}(t,h);1===(t=u.keyframes).length&amp;&amp;(t[1]=t[0]),s=u.duration,r=u.times,o=u.ease,a="keyframes"}let d=e_(l.owner.current,h,t,{...this.options,duration:s,times:r,ease:o});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(n.attachTimeline(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=&gt;{let{onComplete:i}=this.options;l.set(ea(t,this.options,e)),i&amp;&amp;i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return r.millisecondsToSeconds(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return r.millisecondsToSeconds(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=r.secondsToMilliseconds(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return r.noop;let{animation:i}=e;n.attachTimeline(i,t)}else this.pendingTimeline=t;return r.noop}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&amp;&amp;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:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:h,...u}=this.options,d=new eX({...u,keyframes:i,duration:s,type:n,ease:o,times:a,isGenerator:!0}),c=r.secondsToMilliseconds(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&amp;&amp;l(),this.cancel()}complete(){let{resolved:t}=this;t&amp;&amp;t.animation.finish()}cancel(){let{resolved:t}=this;t&amp;&amp;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 eZ()&amp;&amp;i&amp;&amp;eq.has(i)&amp;&amp;!a&amp;&amp;!l&amp;&amp;!s&amp;&amp;"mirror"!==n&amp;&amp;0!==r&amp;&amp;"inertia"!==o}}let e0={type:"spring",stiffness:500,damping:25,restSpeed:10},e1=t=&gt;({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e5={type:"keyframes",duration:.8},e2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e3=(t,{keyframes:e})=&gt;e.length&gt;2?e5:w.has(t)?t.startsWith("scale")?e1(e[1]):e0:e2,e9=(t,e,i,s={},o,a)=&gt;l=&gt;{let h=n.getValueTransition(s,t)||{},u=h.delay||s.delay||0,{elapsed:d=0}=s;d-=r.secondsToMilliseconds(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-d,onUpdate:t=&gt;{e.set(t),h.onUpdate&amp;&amp;h.onUpdate(t)},onComplete:()=&gt;{l(),h.onComplete&amp;&amp;h.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:h,...u}){return!!Object.keys(u).length}(h)&amp;&amp;(c={...c,...e3(t,c)}),c.duration&amp;&amp;(c.duration=r.secondsToMilliseconds(c.duration)),c.repeatDelay&amp;&amp;(c.repeatDelay=r.secondsToMilliseconds(c.repeatDelay)),void 0!==c.from&amp;&amp;(c.keyframes[0]=c.from);let m=!1;if(!1!==c.type&amp;&amp;(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(m=!0)),(Y.current||p.skipAnimations)&amp;&amp;(m=!0,c.duration=0,c.delay=0),m&amp;&amp;!a&amp;&amp;void 0!==e.get()){let t=ea(c.keyframes,h);if(void 0!==t)return g.update(()=&gt;{c.onUpdate(t),c.onComplete()}),new n.GroupPlaybackControls([])}return!a&amp;&amp;eQ.supports(c)?new eQ(c):new eX(c)};function e4(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...h}=e;s&amp;&amp;(a=s);let u=[],d=r&amp;&amp;t.animationState&amp;&amp;t.animationState.getState()[r];for(let e in h){let s=t.getValue(e,null!==(o=t.latestValues[e])&amp;&amp;void 0!==o?o:null),r=h[e];if(void 0===r||d&amp;&amp;function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&amp;&amp;!0!==e[i];return e[i]=!1,s}(d,e))continue;let l={delay:i,...n.getValueTransition(a||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=H(t);if(i){let t=window.MotionHandoffAnimation(i,e,g);null!==t&amp;&amp;(l.startTime=t,c=!0)}}N(t,e),s.start(e9(e,s,r,t.shouldReduceMotion&amp;&amp;S.has(e)?{type:!1}:l,t,c));let p=s.animation;p&amp;&amp;u.push(p)}return l&amp;&amp;Promise.all(u).then(()=&gt;{g.update(()=&gt;{l&amp;&amp;I(t,l)})}),u}function e6(t,e,i={}){var s;let n=c(t,e,"exit"===i.type?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&amp;&amp;(r=i.transitionOverride);let o=n?()=&gt;Promise.all(e4(t,n,i)):()=&gt;Promise.resolve(),a=t.variantChildren&amp;&amp;t.variantChildren.size?(s=0)=&gt;{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,n=1,r){let o=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=&gt;t*s:(t=0)=&gt;a-t*s;return Array.from(t.variantChildren).sort(e8).forEach((t,s)=&gt;{t.notify("AnimationStart",e),o.push(e6(t,e,{...r,delay:i+l(s)}).then(()=&gt;t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=&gt;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(()=&gt;e())}}function e8(t,e){return t.sortNodePosition(e)}function e7(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=&gt;e6(t,e,i)));else if("string"==typeof e)s=e6(t,e,i);else{let n="function"==typeof e?c(t,e,i.custom):e;s=Promise.all(e4(t,n,i))}return s.then(()=&gt;{t.notify("AnimationComplete",e)})}function it(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s&lt;i;s++)if(e[s]!==t[s])return!1;return!0}function ie(t){return"string"==typeof t||Array.isArray(t)}let ii=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],is=["initial",...ii],ir=is.length,io=[...ii].reverse(),ia=ii.length;function il(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ih(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class iu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class id extends iu{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=&gt;Promise.all(e.map(({animation:e,options:i})=&gt;e7(t,e,i))),i=ih(),s=!0,n=e=&gt;(i,s)=&gt;{var n;let r=c(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function r(r){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&amp;&amp;t(e.parent)||{};return void 0!==e.props.initial&amp;&amp;(i.initial=e.props.initial),i}let i={};for(let t=0;t&lt;ir;t++){let s=is[t],n=e.props[s];(ie(n)||!1===n)&amp;&amp;(i[s]=n)}return i}(t.parent)||{},l=[],u=new Set,d={},c=1/0;for(let e=0;e&lt;ia;e++){var p,m;let f=io[e],v=i[f],g=void 0!==o[f]?o[f]:a[f],y=ie(g),x=f===r?v.isActive:null;!1===x&amp;&amp;(c=e);let T=g===a[f]&amp;&amp;g!==o[f]&amp;&amp;y;if(T&amp;&amp;s&amp;&amp;t.manuallyAnimateOnMount&amp;&amp;(T=!1),v.protectedKeys={...d},!v.isActive&amp;&amp;null===x||!g&amp;&amp;!v.prevProp||h(g)||"boolean"==typeof g)continue;let P=(p=v.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&amp;&amp;!it(m,p)),w=P||f===r&amp;&amp;v.isActive&amp;&amp;!T&amp;&amp;y||e&gt;c&amp;&amp;y,S=!1,A=Array.isArray(g)?g:[g],V=A.reduce(n(f),{});!1===x&amp;&amp;(V={});let{prevResolvedValues:M={}}=v,C={...M,...V},D=e=&gt;{w=!0,u.has(e)&amp;&amp;(S=!0,u.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&amp;&amp;(i.liveStyle=!1)};for(let t in C){let e=V[t],i=M[t];if(d.hasOwnProperty(t))continue;let s=!1;(b(e)&amp;&amp;b(i)?it(e,i):e===i)?void 0!==e&amp;&amp;u.has(t)?D(t):v.protectedKeys[t]=!0:null!=e?D(t):u.add(t)}v.prevProp=g,v.prevResolvedValues=V,v.isActive&amp;&amp;(d={...d,...V}),s&amp;&amp;t.blockInitialAnimation&amp;&amp;(w=!1);let E=!(T&amp;&amp;P)||S;w&amp;&amp;E&amp;&amp;l.push(...A.map(t=&gt;({animation:t,options:{type:f}})))}if(u.size){let e={};u.forEach(i=&gt;{let s=t.getBaseTarget(i),n=t.getValue(i);n&amp;&amp;(n.liveStyle=!0),e[i]=null!=s?s:null}),l.push({animation:e})}let f=!!l.length;return s&amp;&amp;(!1===o.initial||o.initial===o.animate)&amp;&amp;!t.manuallyAnimateOnMount&amp;&amp;(f=!1),s=!1,f?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=&gt;{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=r(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=&gt;i,reset:()=&gt;{i=ih(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();h(t)&amp;&amp;(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&amp;&amp;this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let ic=0;class ip extends iu{constructor(){super(...arguments),this.id=ic++}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&amp;&amp;!t&amp;&amp;s.then(()=&gt;{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&amp;&amp;e(this.id),t&amp;&amp;(this.unmount=t(this.id))}unmount(){}}let im={animation:{Feature:id},exit:{Feature:ip}},iv=a.createContext({}),ig=()=&gt;({translate:0,scale:1,origin:0,originPoint:0}),iy=()=&gt;({x:ig(),y:ig()}),ix=()=&gt;({min:0,max:0}),iT=()=&gt;({x:ix(),y:ix()});function iP(t){return t.max-t.min}function iw(t,e,i,s=.5){t.origin=s,t.originPoint=eh(e.min,e.max,t.origin),t.scale=iP(i)/iP(e),t.translate=eh(i.min,i.max,t.origin)-t.originPoint,(t.scale&gt;=.9999&amp;&amp;t.scale&lt;=1.0001||isNaN(t.scale))&amp;&amp;(t.scale=1),(t.translate&gt;=-.01&amp;&amp;t.translate&lt;=.01||isNaN(t.translate))&amp;&amp;(t.translate=0)}function iS(t,e,i,s){iw(t.x,e.x,i.x,s?s.originX:void 0),iw(t.y,e.y,i.y,s?s.originY:void 0)}function ib(t,e,i){t.min=i.min+e.min,t.max=t.min+iP(e)}function iA(t,e,i){t.min=e.min-i.min,t.max=t.min+iP(e)}function iV(t,e,i){iA(t.x,e.x,i.x),iA(t.y,e.y,i.y)}let iM=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 iC(t){return t.startsWith("while")||t.startsWith("drag")&amp;&amp;"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iM.has(t)}let iD=t=&gt;!iC(t);function iE(t){t&amp;&amp;(iD=e=&gt;e.startsWith("on")?!iC(e):t(e))}try{iE(i(58536).A)}catch(t){}function iR(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&amp;&amp;(iD(n)||!0===i&amp;&amp;iC(n)||!e&amp;&amp;!iC(n)||t.draggable&amp;&amp;n.startsWith("onDrag"))&amp;&amp;(s[n]=t[n]);return s}let ik=a.createContext(null);function iF(t){return h(t.animate)||is.some(e=&gt;ie(t[e]))}function ij(t){return!!(iF(t)||t.variants)}function iL(t){let e=a.useRef(null);return null===e.current&amp;&amp;(e.current=t()),e.current}function iB(t){let e=U(t)?t.get():t;return A(e)?e.toValue():e}let iO=t=&gt;(e,i)=&gt;{let s=a.useContext(iv),n=a.useContext(ik),r=()=&gt;(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},s,n,r){let o={latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=iB(r[t]);let{initial:o,animate:a}=t,l=iF(t),u=ij(t);e&amp;&amp;u&amp;&amp;!l&amp;&amp;!1!==t.inherit&amp;&amp;(void 0===o&amp;&amp;(o=e.initial),void 0===a&amp;&amp;(a=e.animate));let c=!!i&amp;&amp;!1===i.initial,p=(c=c||!1===o)?a:o;if(p&amp;&amp;"boolean"!=typeof p&amp;&amp;!h(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i&lt;e.length;i++){let s=d(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&amp;&amp;(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(s,n,r,t),renderState:e()};return i&amp;&amp;(o.onMount=t=&gt;i({props:s,current:t,...o}),o.onUpdate=t=&gt;i(t)),o})(t,e,s,n);return i?r():iL(r)};function iI(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=&gt;t.removeEventListener(e,i)}function iU(t){return{point:{x:t.pageX,y:t.pageY}}}let iN=t=&gt;e=&gt;n.isPrimaryPointer(e)&amp;&amp;t(e,iU(e));function i$(t,e,i,s){return iI(t,e,iN(i),s)}let iW="undefined"!=typeof window,iz=iW?a.useLayoutEffect:a.useEffect,iH=a.createContext({transformPagePoint:t=&gt;t,isStatic:!1,reducedMotion:"never"});function iY(t=!0){let e=a.useContext(ik);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=a.useId();a.useEffect(()=&gt;{t&amp;&amp;n(r)},[t]);let o=a.useCallback(()=&gt;t&amp;&amp;s&amp;&amp;s(r),[r,s,t]);return!i&amp;&amp;s?[!1,o]:[!0]}function iG(t,e,i){let s=U(t)?t:O(t);return s.start(e9("",s,e,i)),s.animation}let iK=new WeakMap;function iX(t){return t instanceof SVGElement&amp;&amp;"svg"!==t.tagName}let iq={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"]},i_={};for(let t in iq)i_[t]={isEnabled:e=&gt;iq[t].some(t=&gt;!!e[t])};let iZ={current:null},iJ={current:!1};function iQ(){if(iJ.current=!0,iW){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=&gt;iZ.current=t.matches;t.addListener(e),e()}else iZ.current=!1}}let i0=[...ei,tA,tj],i1=t=&gt;i0.find(ee(t)),i5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i2{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=&gt;this.notify("Update",this.latestValues),this.render=()=&gt;{this.current&amp;&amp;(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=&gt;{let t=C.now();this.renderScheduledAt&lt;t&amp;&amp;(this.renderScheduledAt=t,g.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:h}=r;this.onUpdate=h,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=iF(e),this.isVariantNode=ij(e),this.isVariantNode&amp;&amp;(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&amp;&amp;t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&amp;&amp;U(e)&amp;&amp;e.set(a[t],!1)}}mount(t){this.current=t,iK.set(t,this),this.projection&amp;&amp;!this.projection.instance&amp;&amp;this.projection.mount(t),this.parent&amp;&amp;this.isVariantNode&amp;&amp;!this.isControllingVariants&amp;&amp;(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=&gt;this.bindToMotionValue(e,t)),iJ.current||iQ(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&amp;&amp;("always"===this.reducedMotionConfig||iZ.current),this.parent&amp;&amp;this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&amp;&amp;this.projection.unmount(),y(this.notifyUpdate),y(this.render),this.valueSubscriptions.forEach(t=&gt;t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&amp;&amp;this.removeFromVariantTree(),this.parent&amp;&amp;this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&amp;&amp;(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&amp;&amp;this.valueSubscriptions.get(t)();let s=w.has(t);s&amp;&amp;this.onBindTransform&amp;&amp;this.onBindTransform();let n=e.on("change",e=&gt;{this.latestValues[t]=e,this.props.onUpdate&amp;&amp;g.preRender(this.notifyUpdate),s&amp;&amp;this.projection&amp;&amp;(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&amp;&amp;(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=&gt;{n(),r(),i&amp;&amp;i(),e.owner&amp;&amp;e.stop()})}sortNodePosition(t){return this.current&amp;&amp;this.sortInstanceNodePosition&amp;&amp;this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in i_){let e=i_[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&amp;&amp;s&amp;&amp;i(this.props)&amp;&amp;(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iT()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&amp;&amp;this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e&lt;i5.length;e++){let i=i5[e];this.propEventSubscriptions[i]&amp;&amp;(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&amp;&amp;(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(U(n))t.addValue(s,n);else if(U(r))t.addValue(s,O(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,O(void 0!==e?e:n,{owner:t}))}}}for(let s in i)void 0===e[s]&amp;&amp;t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&amp;&amp;this.handleChildMotionValue(),this.onUpdate&amp;&amp;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&amp;&amp;e.variantChildren.add(t),()=&gt;e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&amp;&amp;(i&amp;&amp;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&amp;&amp;(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&amp;&amp;this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&amp;&amp;void 0!==e&amp;&amp;(i=O(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&amp;&amp;this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&amp;&amp;void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&amp;&amp;("string"==typeof s&amp;&amp;(t3(s)||ts(s))?s=parseFloat(s):!i1(s)&amp;&amp;tj.test(e)&amp;&amp;(s=tH(t,e)),this.setBaseTarget(t,U(s)?s.get():s)),U(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let n=d(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&amp;&amp;(i=n[t])}if(s&amp;&amp;void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||U(n)?void 0!==this.initialValues[t]&amp;&amp;void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new R),this.events[t].add(e)}notify(t,...e){this.events[t]&amp;&amp;this.events[t].notify(...e)}}class i3 extends i2{constructor(){super(...arguments),this.KeyframeResolver=en}sortInstanceNodePosition(t,e){return 2&amp;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&amp;&amp;(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;U(t)&amp;&amp;(this.childSubscription=t.on("change",t=&gt;{this.current&amp;&amp;(this.current.textContent=`${t}`)}))}}let i9=(t,e)=&gt;e&amp;&amp;"number"==typeof t?e.transform(t):t,i4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i6=P.length;function i8(t,e,i){let s="",n=!0;for(let r=0;r&lt;i6;r++){let o=P[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=i9(a,t$[o]);if(!l){n=!1;let e=i4[o]||o;s+=`${e}(${t}) `}i&amp;&amp;(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&amp;&amp;(s="none"),s}function i7(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(w.has(t)){o=!0;continue}if(t4(t)){n[t]=i;continue}{let e=i9(i,t$[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}if(!e.transform&amp;&amp;(o||i?s.transform=i8(e,t.transform,i):s.transform&amp;&amp;(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let st={offset:"stroke-dashoffset",array:"stroke-dasharray"},se={offset:"strokeDashoffset",array:"strokeDasharray"};function si(t,e,i){return"string"==typeof t?t:tT.transform(e+i*t)}function ss(t,{attrX:e,attrY:i,attrScale:s,originX:n,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...h},u,d){if(i7(t,h,d),u){t.style.viewBox&amp;&amp;(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&amp;&amp;(m&amp;&amp;(p.transform=c.transform),delete c.transform),m&amp;&amp;(void 0!==n||void 0!==r||p.transform)&amp;&amp;(p.transformOrigin=function(t,e,i){let s=si(e,t.x,t.width),n=si(i,t.y,t.height);return`${s} ${n}`}(m,void 0!==n?n:.5,void 0!==r?r:.5)),void 0!==e&amp;&amp;(c.x=e),void 0!==i&amp;&amp;(c.y=i),void 0!==s&amp;&amp;(c.scale=s),void 0!==o&amp;&amp;function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?st:se;t[r.offset]=tT.transform(-s);let o=tT.transform(e),a=tT.transform(i);t[r.array]=`${o} ${a}`}(c,o,a,l,!1)}let sn=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"]),sr=t=&gt;"string"==typeof t&amp;&amp;"svg"===t.toLowerCase();function so(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}}}function sa(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&amp;&amp;n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}function sl(t,e,i,s){for(let i in sa(t,e,void 0,s),e.attrs)t.setAttribute(sn.has(i)?i:$(i),e.attrs[i])}let sh={};function su(t){for(let e in t)sh[e]=t[e],t4(e)&amp;&amp;(sh[e].isCSSVariable=!0)}function sd(t,{layout:e,layoutId:i}){return w.has(t)||t.startsWith("origin")||(e||void 0!==i)&amp;&amp;(!!sh[t]||"opacity"===t)}function sc(t,e,i){var s;let{style:n}=t,r={};for(let o in n)(U(n[o])||e.style&amp;&amp;U(e.style[o])||sd(o,t)||(null===(s=null==i?void 0:i.getValue(o))||void 0===s?void 0:s.liveStyle)!==void 0)&amp;&amp;(r[o]=n[o]);return r}function sp(t,e,i){let s=sc(t,e,i);for(let i in t)(U(t[i])||U(e[i]))&amp;&amp;(s[-1!==P.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class sm extends i3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iT,this.updateDimensions=()=&gt;{this.current&amp;&amp;!this.renderState.dimensions&amp;&amp;so(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(w.has(e)){let t=tz(e);return t&amp;&amp;t.default||0}return e=sn.has(e)?e:$(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sp(t,e,i)}onBindTransform(){this.current&amp;&amp;!this.renderState.dimensions&amp;&amp;g.postRender(this.updateDimensions)}build(t,e,i){ss(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){sl(t,e,i,s)}mount(t){this.isSVGTag=sr(t.tagName),super.mount(t)}}function sf({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function sv(t){return void 0===t||1===t}function sg({scale:t,scaleX:e,scaleY:i}){return!sv(t)||!sv(e)||!sv(i)}function sy(t){return sg(t)||sx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function sx(t){var e,i;return(e=t.x)&amp;&amp;"0%"!==e||(i=t.y)&amp;&amp;"0%"!==i}function sT(t,e,i,s,n){return void 0!==n&amp;&amp;(t=s+n*(t-s)),s+i*(t-s)+e}function sP(t,e=0,i=1,s,n){t.min=sT(t.min,e,i,s,n),t.max=sT(t.max,e,i,s,n)}function sw(t,{x:e,y:i}){sP(t.x,e.translate,e.scale,e.originPoint),sP(t.y,i.translate,i.scale,i.originPoint)}function sS(t,e){t.min=t.min+e,t.max=t.max+e}function sb(t,e,i,s,n=.5){let r=eh(t.min,t.max,n);sP(t,e,i,r,s)}function sA(t,e){sb(t.x,e.x,e.scaleX,e.scale,e.originX),sb(t.y,e.y,e.scaleY,e.scale,e.originY)}function sV(t,e){return sf(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))}class sM extends i3{constructor(){super(...arguments),this.type="html",this.renderInstance=sa}readValueFromInstance(t,e){if(w.has(e)){let t=tz(e);return t&amp;&amp;t.default||0}{let i=window.getComputedStyle(t),s=(t4(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return sV(t,e)}build(t,e,i){i7(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return sc(t,e,i)}}function sC(t,e){let i=C.now(),s=({timestamp:n})=&gt;{let r=n-i;r&gt;=e&amp;&amp;(y(s),t(r-e))};return g.read(s,!0),()=&gt;y(s)}let sD=(t,e)=&gt;Math.abs(t-e);function sE(t,e){return Math.sqrt(sD(t.x,e.x)**2+sD(t.y,e.y)**2)}let{schedule:sR,cancel:sk}=v(queueMicrotask,!1),sF=(t,e)=&gt;t.depth-e.depth;class sj{constructor(){this.children=[],this.isDirty=!1}add(t){D(this.children,t),this.isDirty=!0}remove(t){E(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&amp;&amp;this.children.sort(sF),this.isDirty=!1,this.children.forEach(t)}}let sL=["TopLeft","TopRight","BottomLeft","BottomRight"],sB=sL.length,sO=t=&gt;"string"==typeof t?parseFloat(t):t,sI=t=&gt;"number"==typeof t||tT.test(t);function sU(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sN=sW(0,.5,te),s$=sW(.5,.95,r.noop);function sW(t,e,i){return s=&gt;s&lt;t?0:s&gt;e?1:i(r.progress(t,e,s))}function sz(t,e){t.min=e.min,t.max=e.max}function sH(t,e){sz(t.x,e.x),sz(t.y,e.y)}function sY(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sG(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&amp;&amp;(t=s+1/n*(t-s)),t}function sK(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(tx.test(e)&amp;&amp;(e=parseFloat(e),e=eh(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eh(r.min,r.max,s);t===r&amp;&amp;(a-=e),t.min=sG(t.min,e,i,a,n),t.max=sG(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let sX=["x","scaleX","originX"],sq=["y","scaleY","originY"];function s_(t,e,i,s){sK(t.x,e,sX,i?i.x:void 0,s?s.x:void 0),sK(t.y,e,sq,i?i.y:void 0,s?s.y:void 0)}function sZ(t){return 0===t.translate&amp;&amp;1===t.scale}function sJ(t){return sZ(t.x)&amp;&amp;sZ(t.y)}function sQ(t,e){return t.min===e.min&amp;&amp;t.max===e.max}function s0(t,e){return Math.round(t.min)===Math.round(e.min)&amp;&amp;Math.round(t.max)===Math.round(e.max)}function s1(t,e){return s0(t.x,e.x)&amp;&amp;s0(t.y,e.y)}function s5(t){return iP(t.x)/iP(t.y)}function s2(t,e){return t.translate===e.translate&amp;&amp;t.scale===e.scale&amp;&amp;t.originPoint===e.originPoint}class s3{constructor(){this.members=[]}add(t){D(this.members,t),t.scheduleRender()}remove(t){if(E(this.members,t),t===this.prevLead&amp;&amp;(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&amp;&amp;this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=&gt;t===e);if(0===i)return!1;for(let t=i;t&gt;=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&amp;&amp;(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&amp;&amp;(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&amp;&amp;i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&amp;&amp;(t.resumeFrom.preserveOpacity=!0),i.snapshot&amp;&amp;(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&amp;&amp;t.root.isUpdating&amp;&amp;(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&amp;&amp;i.hide()}}exitAnimationComplete(){this.members.forEach(t=&gt;{let{options:e,resumingFrom:i}=t;e.onExitComplete&amp;&amp;e.onExitComplete(),i&amp;&amp;i.options.onExitComplete&amp;&amp;i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=&gt;{t.instance&amp;&amp;t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&amp;&amp;this.lead.snapshot&amp;&amp;(this.lead.snapshot=void 0)}}function s9(t){return[t("x"),t("y")]}let s4={hasAnimatedSinceResize:!0,hasEverUpdated:!1},s6=["","X","Y","Z"],s8={visibility:"hidden"},s7=0;function nt(t,e,i,s){let{latestValues:n}=e;n[t]&amp;&amp;(i[t]=n[t],e.setStaticValue(t,0),s&amp;&amp;(s[t]=0))}function ne({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=s7++,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=()=&gt;this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=&gt;{this.isUpdating&amp;&amp;(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=&gt;{this.projectionUpdateScheduled=!1,this.nodes.forEach(nn),this.nodes.forEach(nd),this.nodes.forEach(nc),this.nodes.forEach(nr)},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&lt;this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&amp;&amp;(this.nodes=new sj)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new R),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&amp;&amp;i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=iX(e),this.instance=e;let{layoutId:s,layout:r,visualElement:o}=this.options;if(o&amp;&amp;!o.current&amp;&amp;o.mount(e),this.root.nodes.add(this),this.parent&amp;&amp;this.parent.children.add(this),i&amp;&amp;(r||s)&amp;&amp;(this.isLayoutDirty=!0),t){let i;let s=()=&gt;this.root.updateBlockedByResize=!1;t(e,()=&gt;{this.root.updateBlockedByResize=!0,i&amp;&amp;i(),i=sC(s,250),s4.hasAnimatedSinceResize&amp;&amp;(s4.hasAnimatedSinceResize=!1,this.nodes.forEach(nu))})}s&amp;&amp;this.root.registerSharedNode(s,this),!1!==this.options.animate&amp;&amp;o&amp;&amp;(s||r)&amp;&amp;this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=&gt;{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||ny,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),h=!this.targetLayout||!s1(this.targetLayout,s),u=!e&amp;&amp;i;if(this.options.layoutRoot||this.resumeFrom||u||e&amp;&amp;(h||!this.currentAnimation)){this.resumeFrom&amp;&amp;(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...n.getValueTransition(r,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&amp;&amp;(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nu(this),this.isLead()&amp;&amp;this.options.onExitComplete&amp;&amp;this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&amp;&amp;this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&amp;&amp;t.remove(this),this.parent&amp;&amp;this.parent.children.delete(this),this.instance=void 0,y(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&amp;&amp;this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&amp;&amp;(this.isUpdating=!0,this.nodes&amp;&amp;this.nodes.forEach(np),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&amp;&amp;t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&amp;&amp;this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&amp;&amp;!this.hasCheckedOptimisedAppear&amp;&amp;function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=H(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",g,!(t||i))}let{parent:n}=e;n&amp;&amp;!n.hasCheckedOptimisedAppear&amp;&amp;t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t&lt;this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&amp;&amp;e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&amp;&amp;!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&amp;&amp;this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(na);return}this.isUpdating||this.nodes.forEach(nl),this.isUpdating=!1,this.nodes.forEach(nh),this.nodes.forEach(ni),this.nodes.forEach(ns),this.clearAllSnapshots();let t=C.now();x.delta=tn(0,1e3/60,t-x.timestamp),x.timestamp=t,x.isProcessing=!0,T.update.process(x),T.preRender.process(x),T.render.process(x),x.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sR.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(no),this.sharedNodes.forEach(nm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,g.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){g.postRender(()=&gt;{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iP(this.snapshot.measuredBox.x)||iP(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&amp;&amp;this.isLead())&amp;&amp;!this.isLayoutDirty))return;if(this.resumeFrom&amp;&amp;!this.resumeFrom.instance)for(let t=0;t&lt;this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iT(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&amp;&amp;e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&amp;&amp;this.instance);if(this.scroll&amp;&amp;this.scroll.animationId===this.root.animationId&amp;&amp;this.scroll.phase===t&amp;&amp;(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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&amp;&amp;!sJ(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&amp;&amp;(e||sy(this.latestValues)||n)&amp;&amp;(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&amp;&amp;(s=this.removeTransform(s)),nP((e=s).x),nP(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iT();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(nS))){let{scroll:t}=this.root;t&amp;&amp;(sS(i.x,t.offset.x),sS(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iT();if(sH(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e&lt;this.path.length;e++){let s=this.path[e],{scroll:n,options:r}=s;s!==this.root&amp;&amp;n&amp;&amp;r.layoutScroll&amp;&amp;(n.wasRoot&amp;&amp;sH(i,t),sS(i.x,n.offset.x),sS(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=iT();sH(i,t);for(let t=0;t&lt;this.path.length;t++){let s=this.path[t];!e&amp;&amp;s.options.layoutScroll&amp;&amp;s.scroll&amp;&amp;s!==s.root&amp;&amp;sA(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),sy(s.latestValues)&amp;&amp;sA(i,s.latestValues)}return sy(this.latestValues)&amp;&amp;sA(i,this.latestValues),i}removeTransform(t){let e=iT();sH(e,t);for(let t=0;t&lt;this.path.length;t++){let i=this.path[t];if(!i.instance||!sy(i.latestValues))continue;sg(i.latestValues)&amp;&amp;i.updateSnapshot();let s=iT();sH(s,i.measurePageBox()),s_(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return sy(this.latestValues)&amp;&amp;s_(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&amp;&amp;this.relativeParent.resolvedRelativeTargetAt!==x.timestamp&amp;&amp;this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==r;if(!(t||o&amp;&amp;this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&amp;&amp;(a||l)){if(this.resolvedRelativeTargetAt=x.timestamp,!this.targetDelta&amp;&amp;!this.relativeTarget){let t=this.getClosestProjectingParent();t&amp;&amp;t.layout&amp;&amp;1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iT(),this.relativeTargetOrigin=iT(),iV(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),sH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&amp;&amp;((this.target||(this.target=iT(),this.targetWithTransforms=iT()),this.relativeTarget&amp;&amp;this.relativeTargetOrigin&amp;&amp;this.relativeParent&amp;&amp;this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,ib(i.x,s.x,n.x),ib(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sH(this.target,this.layout.layoutBox),sw(this.target,this.targetDelta)):sH(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&amp;&amp;!!t.resumingFrom==!!this.resumingFrom&amp;&amp;!t.options.layoutScroll&amp;&amp;t.target&amp;&amp;1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iT(),this.relativeTargetOrigin=iT(),iV(this.relativeTargetOrigin,this.target,t.target),sH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){return!this.parent||sg(this.parent.latestValues)||sx(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&amp;&amp;this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&amp;&amp;(s=!1),i&amp;&amp;(this.isSharedProjectionDirty||this.isTransformDirty)&amp;&amp;(s=!1),this.resolvedRelativeTargetAt===x.timestamp&amp;&amp;(s=!1),s)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&amp;&amp;this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;sH(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,r;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a&lt;o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&amp;&amp;(s&amp;&amp;n.options.layoutScroll&amp;&amp;n.scroll&amp;&amp;n!==n.root&amp;&amp;sA(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&amp;&amp;(e.x*=r.x.scale,e.y*=r.y.scale,sw(t,r)),s&amp;&amp;sy(n.latestValues)&amp;&amp;sA(t,n.latestValues))}e.x&lt;1.0000000000001&amp;&amp;e.x&gt;.999999999999&amp;&amp;(e.x=1),e.y&lt;1.0000000000001&amp;&amp;e.y&gt;.999999999999&amp;&amp;(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&amp;&amp;!e.target&amp;&amp;(1!==this.treeScale.x||1!==this.treeScale.y)&amp;&amp;(e.target=e.layout.layoutBox,e.targetWithTransforms=iT());let{target:l}=e;if(!l){this.prevProjectionDelta&amp;&amp;(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&amp;&amp;this.prevProjectionDelta?(sY(this.prevProjectionDelta.x,this.projectionDelta.x),sY(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iS(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&amp;&amp;this.treeScale.y===a&amp;&amp;s2(this.projectionDelta.x,this.prevProjectionDelta.x)&amp;&amp;s2(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&amp;&amp;t.scheduleRender()}this.resumingFrom&amp;&amp;!this.resumingFrom.instance&amp;&amp;(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iy(),this.projectionDelta=iy(),this.projectionDeltaWithTransform=iy()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=iy();this.relativeParent&amp;&amp;this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iT(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length&lt;=1,d=!!(l&amp;&amp;!u&amp;&amp;!0===this.options.crossfade&amp;&amp;!this.path.some(ng));this.animationProgress=0,this.mixTargetDelta=e=&gt;{let s=e/1e3;if(nf(o.x,t.x,s),nf(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&amp;&amp;this.relativeTargetOrigin&amp;&amp;this.layout&amp;&amp;this.relativeParent&amp;&amp;this.relativeParent.layout){var h,c,p,m,f,v;if(iV(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=s,nv(p.x,m.x,f.x,v),nv(p.y,m.y,f.y,v),i&amp;&amp;(h=this.relativeTarget,c=i,sQ(h.x,c.x)&amp;&amp;sQ(h.y,c.y)))this.isProjectionDirty=!1;i||(i=iT()),sH(i,this.relativeTarget)}l&amp;&amp;(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=eh(0,void 0!==i.opacity?i.opacity:1,sN(s)),t.opacityExit=eh(void 0!==e.opacity?e.opacity:1,0,s$(s))):r&amp;&amp;(t.opacity=eh(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n&lt;sB;n++){let r=`border${sL[n]}Radius`,o=sU(e,r),a=sU(i,r);(void 0!==o||void 0!==a)&amp;&amp;(o||(o=0),a||(a=0),0===o||0===a||sI(o)===sI(a)?(t[r]=Math.max(eh(sO(o),sO(a),s),0),(tx.test(a)||tx.test(o))&amp;&amp;(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&amp;&amp;(t.rotate=eh(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&amp;&amp;this.currentAnimation.stop(),this.resumingFrom&amp;&amp;this.resumingFrom.currentAnimation&amp;&amp;this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&amp;&amp;(y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=g.update(()=&gt;{s4.hasAnimatedSinceResize=!0,this.currentAnimation=iG(0,1e3,{...t,onUpdate:e=&gt;{this.mixTargetDelta(e),t.onUpdate&amp;&amp;t.onUpdate(e)},onStop:()=&gt;{},onComplete:()=&gt;{t.onComplete&amp;&amp;t.onComplete(),this.completeAnimation()}}),this.resumingFrom&amp;&amp;(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&amp;&amp;(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&amp;&amp;t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&amp;&amp;(this.mixTargetDelta&amp;&amp;this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&amp;&amp;i&amp;&amp;s){if(this!==t&amp;&amp;this.layout&amp;&amp;s&amp;&amp;nw(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||iT();let e=iP(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=iP(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}sH(e,i),sA(e,n),iS(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s3),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&amp;&amp;i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&amp;&amp;(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&amp;&amp;s.promote(this,i),t&amp;&amp;(this.projectionDelta=void 0,this.needsReset=!0),e&amp;&amp;this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&amp;&amp;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)&amp;&amp;(e=!0),!e)return;let s={};i.z&amp;&amp;nt("z",t,s,this.animationValues);for(let e=0;e&lt;s6.length;e++)nt(`rotate${s6[e]}`,t,s,this.animationValues),nt(`skew${s6[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&amp;&amp;(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return s8;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=iB(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let e={};return this.options.layoutId&amp;&amp;(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iB(null==t?void 0:t.pointerEvents)||""),this.hasProjected&amp;&amp;!sy(this.latestValues)&amp;&amp;(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||r||o)&amp;&amp;(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&amp;&amp;(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:o,skewY:a}=i;t&amp;&amp;(s=`perspective(${t}px) ${s}`),e&amp;&amp;(s+=`rotate(${e}deg) `),n&amp;&amp;(s+=`rotateX(${n}deg) `),r&amp;&amp;(s+=`rotateY(${r}deg) `),o&amp;&amp;(s+=`skewX(${o}deg) `),a&amp;&amp;(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&amp;&amp;(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&amp;&amp;(s.transform=n(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?s.opacity=r===this?null!==(i=null!==(e=o.opacity)&amp;&amp;void 0!==e?e:this.latestValues.opacity)&amp;&amp;void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,sh){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:n}=sh[t],a="none"===s.transform?o[t]:e(o[t],r);if(i){let t=i.length;for(let e=0;e&lt;t;e++)s[i[e]]=a}else n?this.options.visualElement.renderState.vars[t]=a:s[t]=a}return this.options.layoutId&amp;&amp;(s.pointerEvents=r===this?iB(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=&gt;{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(na),this.root.sharedNodes.clear()}}}function ni(t){t.updateLayout()}function ns(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&amp;&amp;t.layout&amp;&amp;i&amp;&amp;t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,r=i.source!==t.layout.source;"size"===n?s9(t=&gt;{let s=r?i.measuredBox[t]:i.layoutBox[t],n=iP(s);s.min=e[t].min,s.max=s.min+n}):nw(n,i.layoutBox,e)&amp;&amp;s9(s=&gt;{let n=r?i.measuredBox[s]:i.layoutBox[s],o=iP(e[s]);n.max=n.min+o,t.relativeTarget&amp;&amp;!t.currentAnimation&amp;&amp;(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=iy();iS(o,e,i.layoutBox);let a=iy();r?iS(a,t.applyTransform(s,!0),i.measuredBox):iS(a,e,i.layoutBox);let l=!sJ(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&amp;&amp;!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&amp;&amp;r){let o=iT();iV(o,i.layoutBox,n.layoutBox);let a=iT();iV(a,e,r.layoutBox),s1(o,a)||(h=!0),s.options.layoutRoot&amp;&amp;(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&amp;&amp;e()}t.options.transition=void 0}function nn(t){t.parent&amp;&amp;(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function no(t){t.clearSnapshot()}function na(t){t.clearMeasurements()}function nl(t){t.isLayoutDirty=!1}function nh(t){let{visualElement:e}=t.options;e&amp;&amp;e.getProps().onBeforeLayoutMeasure&amp;&amp;e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nu(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nd(t){t.resolveTargetDelta()}function nc(t){t.calcProjection()}function np(t){t.resetSkewAndRotation()}function nm(t){t.removeLeadSnapshot()}function nf(t,e,i){t.translate=eh(e.translate,0,i),t.scale=eh(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nv(t,e,i,s){t.min=eh(e.min,i.min,s),t.max=eh(e.max,i.max,s)}function ng(t){return t.animationValues&amp;&amp;void 0!==t.animationValues.opacityExit}let ny={duration:.45,ease:[.4,0,.1,1]},nx=t=&gt;"undefined"!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().includes(t),nT=nx("applewebkit/")&amp;&amp;!nx("chrome/")?Math.round:r.noop;function nP(t){t.min=nT(t.min),t.max=nT(t.max)}function nw(t,e,i){return"position"===t||"preserve-aspect"===t&amp;&amp;!(.2&gt;=Math.abs(s5(e)-s5(i)))}function nS(t){var e;return t!==t.root&amp;&amp;(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let nb=ne({attachResizeListener:(t,e)=&gt;iI(t,"resize",e),measureScroll:()=&gt;({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=&gt;!0}),nA={current:void 0},nV=ne({measureScroll:t=&gt;({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=&gt;{if(!nA.current){let t=new nb({});t.mount(window),t.setOptions({layoutScroll:!0}),nA.current=t}return nA.current},resetTransform:(t,e)=&gt;{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=&gt;"fixed"===window.getComputedStyle(t).position});function nM(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nC={correct:(t,e)=&gt;{if(!e.target)return t;if("string"==typeof t){if(!tT.test(t))return t;t=parseFloat(t)}let i=nM(t,e.target.x),s=nM(t,e.target.y);return`${i}% ${s}%`}},nD=a.createContext({strict:!1});function nE(t){for(let e in t)i_[e]={...i_[e],...t[e]}}class nR{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=&gt;{if(!(this.lastMoveEvent&amp;&amp;this.lastMoveEventInfo))return;let t=nj(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=sE(t.offset,{x:0,y:0})&gt;=3;if(!e&amp;&amp;!i)return;let{point:s}=t,{timestamp:n}=x;this.history.push({...s,timestamp:n});let{onStart:r,onMove:o}=this.handlers;e||(r&amp;&amp;r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&amp;&amp;o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=&gt;{this.lastMoveEvent=t,this.lastMoveEventInfo=nk(e,this.transformPagePoint),g.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=&gt;{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&amp;&amp;n&amp;&amp;n(),!(this.lastMoveEvent&amp;&amp;this.lastMoveEventInfo))return;let r=nj("pointercancel"===t.type?this.lastMoveEventInfo:nk(e,this.transformPagePoint),this.history);this.startEvent&amp;&amp;i&amp;&amp;i(t,r),s&amp;&amp;s(t,r)},!n.isPrimaryPointer(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=nk(iU(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=x;this.history=[{...a,timestamp:l}];let{onSessionStart:h}=e;h&amp;&amp;h(t,nj(o,this.history)),this.removeListeners=ey(i$(this.contextWindow,"pointermove",this.handlePointerMove),i$(this.contextWindow,"pointerup",this.handlePointerUp),i$(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&amp;&amp;this.removeListeners(),y(this.updatePoint)}}function nk(t,e){return e?{point:e(t.point)}:t}function nF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nj({point:t},e){return{point:t,delta:nF(t,nL(e)),offset:nF(t,e[0]),velocity:function(t,e){if(t.length&lt;2)return{x:0,y:0};let i=t.length-1,s=null,n=nL(t);for(;i&gt;=0&amp;&amp;(s=t[i],!(n.timestamp-s.timestamp&gt;r.secondsToMilliseconds(.1)));)i--;if(!s)return{x:0,y:0};let o=r.millisecondsToSeconds(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let a={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return a.x===1/0&amp;&amp;(a.x=0),a.y===1/0&amp;&amp;(a.y=0),a}(e,.1)}}function nL(t){return t[t.length-1]}function nB(t){return t&amp;&amp;"object"==typeof t&amp;&amp;Object.prototype.hasOwnProperty.call(t,"current")}function nO(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 nI(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min&lt;t.max-t.min&amp;&amp;([i,s]=[s,i]),{min:i,max:s}}function nU(t,e,i){return{min:nN(t,e),max:nN(t,i)}}function nN(t,e){return"number"==typeof t?t:t[e]||0}let n$=({current:t})=&gt;t?t.ownerDocument.defaultView:null,nW=new WeakMap;class nz{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=iT(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&amp;&amp;!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new nR(t,{onSessionStart:t=&gt;{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&amp;&amp;this.snapToCursor(iU(t).point)},onStart:(t,e)=&gt;{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&amp;&amp;!s&amp;&amp;(this.openDragLock&amp;&amp;this.openDragLock(),this.openDragLock=n.setDragLock(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&amp;&amp;(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),s9(t=&gt;{let e=this.getAxisMotionValue(t).get()||0;if(tx.test(e)){let{projection:i}=this.visualElement;if(i&amp;&amp;i.layout){let s=i.layout.layoutBox[t];s&amp;&amp;(e=iP(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&amp;&amp;g.postRender(()=&gt;r(t,e)),N(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&amp;&amp;o.setActive("whileDrag",!0)},onMove:(t,e)=&gt;{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&amp;&amp;!this.openDragLock)return;let{offset:o}=e;if(s&amp;&amp;null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)&gt;e?i="y":Math.abs(t.x)&gt;e&amp;&amp;(i="x"),i}(o),null!==this.currentDirection&amp;&amp;n&amp;&amp;n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&amp;&amp;r(t,e)},onSessionEnd:(t,e)=&gt;this.stop(t,e),resumeAnimation:()=&gt;s9(t=&gt;{var e;return"paused"===this.getAnimationState(t)&amp;&amp;(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:n$(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&amp;&amp;g.postRender(()=&gt;n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&amp;&amp;(t.isAnimationBlocked=!1),this.panSession&amp;&amp;this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&amp;&amp;this.openDragLock&amp;&amp;(this.openDragLock(),this.openDragLock=null),e&amp;&amp;e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nH(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&amp;&amp;this.constraints[t]&amp;&amp;(r=function(t,{min:e,max:i},s){return void 0!==e&amp;&amp;t&lt;e?t=s?eh(e,t,s.min):Math.max(t,e):void 0!==i&amp;&amp;t&gt;i&amp;&amp;(t=s?eh(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&amp;&amp;!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&amp;&amp;nB(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&amp;&amp;s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:nO(t.x,i,n),y:nO(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&amp;&amp;(t=.35),{x:nU(t,"left","right"),y:nU(t,"top","bottom")}}(i),n!==this.constraints&amp;&amp;s&amp;&amp;this.constraints&amp;&amp;!this.hasMutatedConstraints&amp;&amp;s9(t=&gt;{!1!==this.constraints&amp;&amp;this.getAxisMotionValue(t)&amp;&amp;(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&amp;&amp;(i.min=e.min-t.min),void 0!==e.max&amp;&amp;(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!nB(e))return!1;let s=e.current;r.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;let o=function(t,e,i){let s=sV(t,i),{scroll:n}=e;return n&amp;&amp;(sS(s.x,n.offset.x),sS(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a={x:nI((t=n.layout.layoutBox).x,o.x),y:nI(t.y,o.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&amp;&amp;(a=sf(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(s9(o=&gt;{if(!nH(o,e,this.currentDirection))return;let l=a&amp;&amp;a[o]||{};r&amp;&amp;(l={min:0,max:0});let h={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,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return N(this.visualElement,t),i.start(e9(t,i,0,e,this.visualElement,!1))}stopAnimation(){s9(t=&gt;this.getAxisMotionValue(t).stop())}pauseAnimation(){s9(t=&gt;{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){s9(e=&gt;{let{drag:i}=this.getProps();if(!nH(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&amp;&amp;s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-eh(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!nB(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};s9(t=&gt;{let e=this.getAxisMotionValue(t);if(e&amp;&amp;!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=iP(t),n=iP(e);return n&gt;s?i=r.progress(e.min,e.max-s,t.min):s&gt;n&amp;&amp;(i=r.progress(t.min,t.max-n,e.min)),tn(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&amp;&amp;i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),s9(e=&gt;{if(!nH(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(eh(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;nW.set(this.visualElement,this);let t=i$(this.visualElement.current,"pointerdown",t=&gt;{let{drag:e,dragListener:i=!0}=this.getProps();e&amp;&amp;i&amp;&amp;this.start(t)}),e=()=&gt;{let{dragConstraints:t}=this.getProps();nB(t)&amp;&amp;t.current&amp;&amp;(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&amp;&amp;!i.layout&amp;&amp;(i.root&amp;&amp;i.root.updateScroll(),i.updateLayout()),g.read(e);let n=iI(window,"resize",()=&gt;this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=&gt;{this.isDragging&amp;&amp;e&amp;&amp;(s9(e=&gt;{let i=this.getAxisMotionValue(e);i&amp;&amp;(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=&gt;{n(),t(),s(),r&amp;&amp;r()}}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 nH(t,e,i){return(!0===e||e===t)&amp;&amp;(null===i||i===t)}class nY extends iu{constructor(t){super(t),this.removeGroupControls=r.noop,this.removeListeners=r.noop,this.controls=new nz(t)}mount(){let{dragControls:t}=this.node.getProps();t&amp;&amp;(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}let nG=t=&gt;(e,i)=&gt;{t&amp;&amp;g.postRender(()=&gt;t(e,i))};class nK extends iu{constructor(){super(...arguments),this.removePointerDownListener=r.noop}onPointerDown(t){this.session=new nR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n$(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nG(t),onStart:nG(e),onMove:i,onEnd:(t,e)=&gt;{delete this.session,s&amp;&amp;g.postRender(()=&gt;s(t,e))}}}mount(){this.removePointerDownListener=i$(this.node.current,"pointerdown",t=&gt;this.onPointerDown(t))}update(){this.session&amp;&amp;this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&amp;&amp;this.session.end()}}let nX=a.createContext({});class nq extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;su(nZ),n&amp;&amp;(e.group&amp;&amp;e.group.add(n),i&amp;&amp;i.register&amp;&amp;s&amp;&amp;i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=&gt;{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=&gt;this.safeToRemove()})),s4.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,r=i.projection;return r&amp;&amp;(r.isPresent=n,s||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent===n||(n?r.promote():r.relegate()||g.postRender(()=&gt;{let t=r.getStack();t&amp;&amp;t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&amp;&amp;(t.root.didUpdate(),sR.postRender(()=&gt;{!t.currentAnimation&amp;&amp;t.isLead()&amp;&amp;this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&amp;&amp;(s.scheduleCheckAfterUnmount(),e&amp;&amp;e.group&amp;&amp;e.group.remove(s),i&amp;&amp;i.deregister&amp;&amp;i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&amp;&amp;t()}render(){return null}}function n_(t){let[e,i]=iY(),s=a.useContext(l);return o.jsx(nq,{...t,layoutGroup:s,switchLayoutGroup:a.useContext(nX),isPresent:e,safeToRemove:i})}let nZ={borderRadius:{...nC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nC,borderTopRightRadius:nC,borderBottomLeftRadius:nC,borderBottomRightRadius:nC,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=&gt;{let s=tj.parse(t);if(s.length&gt;5)return t;let n=tj.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=eh(o,a,.5);return"number"==typeof s[2+r]&amp;&amp;(s[2+r]/=l),"number"==typeof s[3+r]&amp;&amp;(s[3+r]/=l),n(s)}}},nJ={pan:{Feature:nK},drag:{Feature:nY,ProjectionNode:nV,MeasureLayout:n_}};function nQ(t,e,i){let{props:s}=t;t.animationState&amp;&amp;s.whileHover&amp;&amp;t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&amp;&amp;g.postRender(()=&gt;n(e,iU(e)))}class n0 extends iu{mount(){let{current:t}=this.node;t&amp;&amp;(this.unmount=n.hover(t,(t,e)=&gt;(nQ(this.node,e,"Start"),t=&gt;nQ(this.node,t,"End"))))}unmount(){}}class n1 extends iu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&amp;&amp;this.node.animationState&amp;&amp;(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&amp;&amp;this.node.animationState&amp;&amp;(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ey(iI(this.node.current,"focus",()=&gt;this.onFocus()),iI(this.node.current,"blur",()=&gt;this.onBlur()))}unmount(){}}function n5(t,e,i){let{props:s}=t;t.animationState&amp;&amp;s.whileTap&amp;&amp;t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&amp;&amp;g.postRender(()=&gt;n(e,iU(e)))}class n2 extends iu{mount(){let{current:t}=this.node;t&amp;&amp;(this.unmount=n.press(t,(t,e)=&gt;(n5(this.node,e,"Start"),(t,{success:e})=&gt;n5(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let n3=new WeakMap,n9=new WeakMap,n4=t=&gt;{let e=n3.get(t.target);e&amp;&amp;e(t)},n6=t=&gt;{t.forEach(n4)},n8={some:0,all:1};class n7 extends iu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:n8[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;n9.has(i)||n9.set(i,{});let s=n9.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(n6,{root:t,...e})),s[n]}(e);return n3.set(t,i),s.observe(t),()=&gt;{n3.delete(t),s.unobserve(t)}}(this.node.current,r,t=&gt;{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&amp;&amp;!e&amp;&amp;this.hasEnteredView))return;e&amp;&amp;(this.hasEnteredView=!0),this.node.animationState&amp;&amp;this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&amp;&amp;r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=&gt;t[i]!==e[i]}(t,e))&amp;&amp;this.startObserver()}unmount(){}}let rt={inView:{Feature:n7},tap:{Feature:n2},focus:{Feature:n1},hover:{Feature:n0}},re={layout:{ProjectionNode:nV,MeasureLayout:n_}};function ri(t){return Array.isArray(t)?t.join(" "):t}let rs=Symbol.for("motionComponentSymbol");function rn({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:n}){var r,h;function u(t,r){var h,u,d;let c;let p={...a.useContext(iH),...t,layoutId:function({layoutId:t}){let e=a.useContext(l).id;return e&amp;&amp;void 0!==t?e+"-"+t:t}(t)},{isStatic:m}=p,f=function(t){let{initial:e,animate:i}=function(t,e){if(iF(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ie(e)?e:void 0,animate:ie(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,a.useContext(iv));return a.useMemo(()=&gt;({initial:e,animate:i}),[ri(e),ri(i)])}(t),v=s(t,m);if(!m&amp;&amp;iW){u=0,d=0,a.useContext(nD).strict;let t=function(t){let{drag:e,layout:i}=i_;if(!e&amp;&amp;!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(p);c=t.MeasureLayout,f.visualElement=function(t,e,i,s,n){var r,o;let{visualElement:l}=a.useContext(iv),h=a.useContext(nD),u=a.useContext(ik),d=a.useContext(iH).reducedMotion,c=a.useRef(null);s=s||h.renderer,!c.current&amp;&amp;s&amp;&amp;(c.current=s(t,{visualState:e,parent:l,props:i,presenceContext:u,blockInitialAnimation:!!u&amp;&amp;!1===u.initial,reducedMotionConfig:d}));let p=c.current,m=a.useContext(nX);p&amp;&amp;!p.projection&amp;&amp;n&amp;&amp;("html"===p.type||"svg"===p.type)&amp;&amp;function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot: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&amp;&amp;nB(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(c.current,i,n,m);let f=a.useRef(!1);a.useInsertionEffect(()=&gt;{p&amp;&amp;f.current&amp;&amp;p.update(i,u)});let v=i[z],g=a.useRef(!!v&amp;&amp;!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,v))&amp;&amp;(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,v)));return iz(()=&gt;{p&amp;&amp;(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),sR.render(p.render),g.current&amp;&amp;p.animationState&amp;&amp;p.animationState.animateChanges())}),a.useEffect(()=&gt;{p&amp;&amp;(!g.current&amp;&amp;p.animationState&amp;&amp;p.animationState.animateChanges(),g.current&amp;&amp;(queueMicrotask(()=&gt;{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,v)}),g.current=!1))}),p}(n,v,p,e,t.ProjectionNode)}return o.jsxs(iv.Provider,{value:f,children:[c&amp;&amp;f.visualElement?o.jsx(c,{visualElement:f.visualElement,...p}):null,i(n,t,(h=f.visualElement,a.useCallback(t=&gt;{t&amp;&amp;v.onMount&amp;&amp;v.onMount(t),h&amp;&amp;(t?h.mount(t):h.unmount()),r&amp;&amp;("function"==typeof r?r(t):nB(r)&amp;&amp;(r.current=t))},[h])),v,m,f.visualElement)]})}t&amp;&amp;nE(t),u.displayName=`motion.${"string"==typeof n?n:`create(${null!==(h=null!==(r=n.displayName)&amp;&amp;void 0!==r?r:n.name)&amp;&amp;void 0!==h?h:""})`}`;let d=a.forwardRef(u);return d[rs]=n,d}let rr=()=&gt;({style:{},transform:{},transformOrigin:{},vars:{}});function ro(t,e,i){for(let s in e)U(e[s])||sd(s,i)||(t[s]=e[s])}let ra=["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 rl(t){if("string"!=typeof t||t.includes("-"));else if(ra.indexOf(t)&gt;-1||/[A-Z]/u.test(t))return!0;return!1}let rh=()=&gt;({...rr(),attrs:{}}),ru={useVisualState:iO({scrapeMotionValuesFromProps:sc,createRenderState:rr})},rd=["x","y","width","height","cx","cy","r"],rc={useVisualState:iO({scrapeMotionValuesFromProps:sp,createRenderState:rh,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:n})=&gt;{if(!i)return;let r=!!t.drag;if(!r){for(let t in n)if(w.has(t)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let i=0;i&lt;rd.length;i++){let s=rd[i];t[s]!==e[s]&amp;&amp;(o=!0)}o&amp;&amp;g.read(()=&gt;{so(i,s),g.render(()=&gt;{ss(s,n,sr(i.tagName),t.transformTemplate),sl(i,s)})})}})};function rp(t,e){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){let n={...rl(i)?rc:ru,preloadedFeatures:t,useRender:function(t=!1){return(e,i,s,{latestValues:n},r)=&gt;{let o=(rl(e)?function(t,e,i,s){let n=a.useMemo(()=&gt;{let i=rh();return ss(i,e,sr(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ro(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return ro(s,i,t),Object.assign(s,function({transformTemplate:t},e){return a.useMemo(()=&gt;{let i=rr();return i7(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&amp;&amp;!1!==t.dragListener&amp;&amp;(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&amp;&amp;(t.onTap||t.onTapStart||t.whileTap)&amp;&amp;(i.tabIndex=0),i.style=s,i})(i,n,r,e),l=iR(i,"string"==typeof e,t),h=e!==a.Fragment?{...l,...o,ref:s}:{},{children:u}=i,d=a.useMemo(()=&gt;U(u)?u.get():u,[u]);return a.createElement(e,{...h,children:d})}}(s),createVisualElement:e,Component:i};return rn(n)}}let rm=(t,e)=&gt;rl(t)?new sm(e):new sM(e,{allowProjection:t!==a.Fragment}),rf=rp({...im,...rt,...nJ,...re},rm);e.AcceleratedAnimation=eQ,e.FlatTree=sj,e.HTMLVisualElement=sM,e.LayoutGroupContext=l,e.LazyContext=nD,e.MotionConfigContext=iH,e.MotionContext=iv,e.MotionGlobalConfig=p,e.MotionValue=B,e.PresenceContext=ik,e.SVGVisualElement=sm,e.SwitchLayoutGroupContext=nX,e.VisualElement=i2,e.acceleratedValues=eq,e.addDomEvent=iI,e.addPointerEvent=i$,e.addPointerInfo=iN,e.addScaleCorrector=su,e.addUniqueItem=D,e.animateSingleValue=iG,e.animateTarget=e4,e.animateValue=function(t){return new eX(t)},e.animateVisualElement=e7,e.animations=im,e.anticipate=Q,e.backIn=Z,e.backInOut=J,e.backOut=_,e.browserNumberValueTypes=tU,e.buildTransform=i8,e.calcLength=iP,e.camelToDash=$,e.cancelFrame=y,e.circIn=tt,e.circInOut=ti,e.circOut=te,e.clamp=tn,e.collectMotionValues=L,e.color=tA,e.complex=tj,e.createBox=iT,e.createDomVisualElement=rm,e.createMotionComponent=rf,e.createMotionComponentFactory=rp,e.createRendererMotionComponent=rn,e.cubicBezier=K,e.defaultOffset=ez,e.delay=sC,e.distance=sD,e.distance2D=sE,e.drag=nJ,e.easeIn=eL,e.easeInOut=eO,e.easeOut=eB,e.easingDefinitionToFunction=eN,e.fillOffset=eW,e.filterProps=iR,e.findSpring=eC,e.frame=g,e.frameData=x,e.frameSteps=T,e.gestureAnimations=rt,e.getFinalKeyframe=ea,e.getOptimisedAppearId=H,e.hasReducedMotionListener=iJ,e.inertia=ej,e.initPrefersReducedMotion=iQ,e.instantAnimationState=Y,e.interpolate=e$,e.isBrowser=iW,e.isEasingArray=eI,e.isMotionValue=U,e.isSVGElement=iX,e.isValidMotionProp=iC,e.keyframes=eH,e.layout=re,e.loadExternalIsValidProp=iE,e.loadFeatures=nE,e.makeUseVisualState=iO,e.mirrorEasing=X,e.mix=eA,e.mixNumber=eh,e.motionComponentSymbol=rs,e.motionValue=O,e.moveItem=function([...t],e,i){let s=e&lt;0?t.length+e:e;if(s&gt;=0&amp;&amp;s&lt;t.length){let s=i&lt;0?t.length+i:i,[n]=t.splice(e,1);t.splice(s,0,n)}return t},e.optimizedAppearDataAttribute=z,e.optimizedAppearDataId=W,e.pipe=ey,e.prefersReducedMotion=iZ,e.px=tT,e.removeItem=E,e.resolveMotionValue=iB,e.reverseEasing=q,e.rootProjectionNode=nA,e.setTarget=I,e.spring=eF,e.startWaapiAnimation=e_,e.stepsOrder=m,e.supportsWaapi=eZ,e.time=C,e.transformProps=w,e.useConstant=iL,e.useIsPresent=function(){var t;return null===(t=a.useContext(ik))||t.isPresent},e.useIsomorphicLayoutEffect=iz,e.usePresence=iY,e.velocityPerSecond=k,e.visualElementStore=iK,e.warnOnce=function(t,e,i){t||F.has(e)||(console.warn(e),i&amp;&amp;console.warn(i),F.add(e))}}}]);</pre></body></html>