(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4031],{15972:function(t,e,i){"use strict";i.d(e,{S1:function(){return s},ZT:function(){return n},jU:function(){return o},on:function(){return r}});var n=function(){};function r(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function s(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var o=!0},22689:function(t,e,i){"use strict";var n=i(67294),r=i(15972);function s(t){if(!t)return null;if("BODY"===t.tagName)return t;if("IFRAME"===t.tagName){var e=t.contentDocument;return e?e.body:null}return t.offsetParent?s(t.offsetParent):null}function o(t){var e=t||window.event;return e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}var a=r.jU&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),l=new Map,u="object"==typeof document?document:void 0,h=!1;e.Z=u?function(t,e){void 0===t&&(t=!0);var i=(0,n.useRef)(u.body);e=e||i;var c=function(t){var e=l.get(t);e?l.set(t,{counter:e.counter+1,initialOverflow:e.initialOverflow}):(l.set(t,{counter:1,initialOverflow:t.style.overflow}),a?h||((0,r.on)(document,"touchmove",o,{passive:!1}),h=!0):t.style.overflow="hidden")},d=function(t){var e=l.get(t);e&&(1===e.counter?(l.delete(t),a?(t.ontouchmove=null,h&&((0,r.S1)(document,"touchmove",o),h=!1)):t.style.overflow=e.initialOverflow):l.set(t,{counter:e.counter-1,initialOverflow:e.initialOverflow}))};(0,n.useEffect)(function(){var i=s(e.current);i&&(t?c(i):d(i))},[t,e.current]),(0,n.useEffect)(function(){var t=s(e.current);if(t)return function(){d(t)}},[])}:function(t,e){void 0===t&&(t=!0)}},56097:function(t,e,i){"use strict";var n=i(67294),r=i(15972);e.Z=function(t,e){var i=(0,n.useState)(void 0!==e?e:!!r.jU&&window.matchMedia(t).matches),s=i[0],o=i[1];return(0,n.useEffect)(function(){var e=!0,i=window.matchMedia(t),n=function(){e&&o(!!i.matches)};return i.addEventListener("change",n),o(i.matches),function(){e=!1,i.removeEventListener("change",n)}},[t]),s}},9008:function(t,e,i){t.exports=i(23867)},2337:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var n=i(67294);function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t);var i=e.prototype;return i.getColumns=function(){var t=this.props,e=t.children,i=t.columnsCount,r=Array.from({length:i},function(){return[]});return n.Children.forEach(e,function(t,e){t&&n.isValidElement(t)&&r[e%i].push(t)}),r},i.renderColumns=function(){var t=this.props.gutter;return this.getColumns().map(function(e,i){return n.createElement("div",{key:i,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:t}},e.map(function(t){return t}))})},i.render=function(){var t=this.props,e=t.gutter,i=t.className,s=t.style;return n.createElement("div",{style:r({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:e},s),className:i},this.renderColumns())},e}(n.Component);o.propTypes={},o.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,l=o},13114:function(t,e,i){"use strict";i.d(e,{M:function(){return g}});var n=i(85893),r=i(67294),s=i(240),o=i(96681),a=i(16014);class l extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:t,isPresent:e}){let i=(0,r.useId)(),s=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,r.useContext)(a._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:n,top:r,left:a}=o.current;if(e||!s.current||!t||!n)return;s.current.dataset.motionPopId=i;let l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${t}px !important;
            height: ${n}px !important;
            top: ${r}px !important;
            left: ${a}px !important;
          }
        `),()=>{document.head.removeChild(l)}},[e]),(0,n.jsx)(l,{isPresent:e,childRef:s,sizeRef:o,children:r.cloneElement(t,{ref:s})})}let h=({children:t,initial:e,isPresent:i,onExitComplete:a,custom:l,presenceAffectsLayout:h,mode:d})=>{let p=(0,o.h)(c),f=(0,r.useId)(),m=(0,r.useCallback)(t=>{for(let e of(p.set(t,!0),p.values()))if(!e)return;a&&a()},[p,a]),v=(0,r.useMemo)(()=>({id:f,initial:e,isPresent:i,custom:l,onExitComplete:m,register:t=>(p.set(t,!1),()=>p.delete(t))}),h?[Math.random(),m]:[i,m]);return(0,r.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[i]),r.useEffect(()=>{i||p.size||!a||a()},[i]),"popLayout"===d&&(t=(0,n.jsx)(u,{isPresent:i,children:t})),(0,n.jsx)(s.O.Provider,{value:v,children:t})};function c(){return new Map}var d=i(25364),p=i(45487);let f=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(58868);let g=({children:t,exitBeforeEnter:e,custom:i,initial:s=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,p.k)(!e,"Replace exitBeforeEnter with mode='wait'");let c=(0,r.useMemo)(()=>m(t),[t]),g=c.map(f),y=(0,r.useRef)(!0),x=(0,r.useRef)(c),w=(0,o.h)(()=>new Map),[P,b]=(0,r.useState)(c),[T,S]=(0,r.useState)(c);(0,v.L)(()=>{y.current=!1,x.current=c;for(let t=0;t<T.length;t++){let e=f(T[t]);g.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[T,g.length,g.join("-")]);let A=[];if(c!==P){let t=[...c];for(let e=0;e<T.length;e++){let i=T[e],n=f(i);g.includes(n)||(t.splice(e,0,i),A.push(i))}"wait"===u&&A.length&&(t=A),S(m(t)),b(c);return}let{forceRender:E}=(0,r.useContext)(d.p);return(0,n.jsx)(n.Fragment,{children:T.map(t=>{let e=f(t),r=c===T||g.includes(e);return(0,n.jsx)(h,{isPresent:r,initial:(!y.current||!!s)&&void 0,custom:r?void 0:i,presenceAffectsLayout:l,mode:u,onExitComplete:r?void 0:()=>{if(!w.has(e))return;w.set(e,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(null==E||E(),S(x.current),a&&a())},children:t},e)})})}},25364:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(67294).createContext)({})},16014:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(67294).createContext)(null)},89727:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(22081);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],i.clear(),e.forEach(a),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:c,preRender:d,render:p,postRender:f}=l,m=()=>{let r=n.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),c.process(o),d.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))},v=()=>{i=!0,s=!0,o.isProcessing||t(m)};return{schedule:r.reduce((t,e)=>{let n=l[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)l[r[e]].cancel(t)},state:o,steps:l}}},26166:function(t,e,i){"use strict";i.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var n=i(81662);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(89727).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},1117:function(t,e,i){"use strict";let n;i.d(e,{X:function(){return a}});var r=i(22081),s=i(26166);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},86348:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{E:function(){return rS}});let r=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function o(t){return"string"==typeof t||Array.isArray(t)}function a(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,n){if("function"==typeof e){let[r,s]=a(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=a(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function u(t,e,i){let n=t.getProps();return l(n,e,void 0!==i?i:n.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...h],d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(d),f=t=>1e3*t,m=t=>t/1e3,v={type:"spring",stiffness:500,damping:25,restSpeed:10},g=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),y={type:"keyframes",duration:.8},x={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},w=(t,{keyframes:e})=>e.length>2?y:p.has(t)?t.startsWith("scale")?g(e[1]):v:x;function P(t,e){return t?t[e]||t.default||t:void 0}var b,T,S,A=i(22081);let E={current:!1},C=t=>null!==t;function V(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(C),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}var M=i(26166),R=i(81662);let D=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function k(t,e,i,n){if(t===e&&i===n)return R.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=D(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:D(r(t),e,n)}let L=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,j=t=>e=>1-t(1-e),F=k(.33,1.53,.69,.99),B=j(F),O=L(B),W=t=>(t*=2)<1?.5*B(t):.5*(2-Math.pow(2,-10*(t-1))),$=t=>1-Math.sin(Math.acos(t)),I=j($),U=L($),N=t=>/^0[^.\s]+$/u.test(t);var z=i(45487);let X=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Y=i(57630);let H=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var K=i(61649),Z=i(96190);let q=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),G=t=>t===K.Rx||t===Z.px,_=(t,e)=>parseFloat(t.split(", ")[e]),J=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return _(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?_(e[1],t):0}},Q=new Set(["x","y","z"]),tt=d.filter(t=>!Q.has(t)),te={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:J(4,13),y:J(5,14)};te.translateX=te.x,te.translateY=te.y;let ti=t=>e=>e.test(t),tn=[K.Rx,Z.px,Z.aQ,Z.RW,Z.vw,Z.vh,{test:t=>"auto"===t,parse:t=>t}],tr=t=>tn.find(ti(t)),ts=new Set,to=!1,ta=!1;function tl(){if(ta){let t=Array.from(ts).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tt.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ta=!1,to=!1,ts.forEach(t=>t.complete()),ts.clear()}function tu(){ts.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ta=!0)})}class th{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ts.add(this),to||(to=!0,M.Wi.read(tu),M.Wi.resolveKeyframes(tl))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ts.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ts.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var tc=i(56737),td=i(68054);let tp=new Set(["brightness","contrast","saturate","opacity"]);function tf(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(td.K)||[];if(!n)return t;let r=i.replace(n,""),s=tp.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tm=/\b([a-z-]*)\(.*?\)/gu,tv={...tc.P,getAnimatableNone:t=>{let e=t.match(tm);return e?e.map(tf).join(" "):t}};var tg=i(85385);let ty={borderWidth:Z.px,borderTopWidth:Z.px,borderRightWidth:Z.px,borderBottomWidth:Z.px,borderLeftWidth:Z.px,borderRadius:Z.px,radius:Z.px,borderTopLeftRadius:Z.px,borderTopRightRadius:Z.px,borderBottomRightRadius:Z.px,borderBottomLeftRadius:Z.px,width:Z.px,maxWidth:Z.px,height:Z.px,maxHeight:Z.px,top:Z.px,right:Z.px,bottom:Z.px,left:Z.px,padding:Z.px,paddingTop:Z.px,paddingRight:Z.px,paddingBottom:Z.px,paddingLeft:Z.px,margin:Z.px,marginTop:Z.px,marginRight:Z.px,marginBottom:Z.px,marginLeft:Z.px,backgroundPositionX:Z.px,backgroundPositionY:Z.px},tx={rotate:Z.RW,rotateX:Z.RW,rotateY:Z.RW,rotateZ:Z.RW,scale:K.bA,scaleX:K.bA,scaleY:K.bA,scaleZ:K.bA,skew:Z.RW,skewX:Z.RW,skewY:Z.RW,distance:Z.px,translateX:Z.px,translateY:Z.px,translateZ:Z.px,x:Z.px,y:Z.px,z:Z.px,perspective:Z.px,transformPerspective:Z.px,opacity:K.Fq,originX:Z.$C,originY:Z.$C,originZ:Z.px},tw={...K.Rx,transform:Math.round},tP={...ty,...tx,zIndex:tw,size:Z.px,fillOpacity:K.Fq,strokeOpacity:K.Fq,numOctaves:tw},tb={...tP,color:tg.$,backgroundColor:tg.$,outlineColor:tg.$,fill:tg.$,stroke:tg.$,borderColor:tg.$,borderTopColor:tg.$,borderRightColor:tg.$,borderBottomColor:tg.$,borderLeftColor:tg.$,filter:tv,WebkitFilter:tv},tT=t=>tb[t];function tS(t,e){let i=tT(t);return i!==tv&&(i=tc.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tA=new Set(["auto","none","0"]);class tE extends th{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,Y.t)(n))){let r=function t(e,i,n=1){(0,z.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=H.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return X(t)?parseFloat(t):t}return(0,Y.t)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!q.has(i)||2!==t.length)return;let[n,r]=t,s=tr(n),o=tr(r);if(s!==o){if(G(s)&&G(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||N(n))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tA.has(e)&&(0,tc.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tS(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=te[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=te[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function tC(t){return"function"==typeof t}var tV=i(1117);let tM=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tc.P.test(t)||"0"===t)&&!t.startsWith("url("));class tR{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tV.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tu(),tl()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=tV.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=tM(r,e),a=tM(s,e);return(0,z.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||tC(i))&&n)}(t,i,n,r)){if(E.current||!s){null==a||a(V(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}var tD=i(3038);function tk(t,e,i){let n=Math.max(e-5,0);return(0,tD.R)(i-t(n),e-n)}var tL=i(24169);function tj(t,e){return t*Math.sqrt(1-e*e)}let tF=["duration","bounce"],tB=["stiffness","damping","mass"];function tO(t,e){return e.some(e=>void 0!==t[e])}function tW({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tO(t,tB)&&tO(t,tF)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;(0,z.K)(t<=f(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,tL.u)(.05,1,o),t=(0,tL.u)(.01,10,m(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/tj(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=tj(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=f(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-m(n.velocity||0)}),v=d||0,g=u/(2*Math.sqrt(l*h)),y=o-s,x=m(Math.sqrt(l/h)),w=5>Math.abs(y);if(i||(i=w?.01:2),e||(e=w?.005:.5),g<1){let t=tj(x,g);r=e=>o-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)r=t=>o-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);r=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return o-i*((v+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}return{calculatedDuration:p&&c||null,next:t=>{let n=r(t);if(p)a.done=t>=c;else{let s=0;g<1&&(s=0===t?f(v):tk(r,t,n));let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function t$({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(c=t,d=tW({keyframes:[f.value,v(f.value)],velocity:tk(P,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),f)}}}let tI=k(.42,0,1,1),tU=k(0,0,.58,1),tN=k(.42,0,.58,1),tz=t=>Array.isArray(t)&&"number"!=typeof t[0],tX=t=>Array.isArray(t)&&"number"==typeof t[0],tY={linear:R.Z,easeIn:tI,easeInOut:tN,easeOut:tU,circIn:$,circInOut:U,circOut:I,backIn:B,backInOut:O,backOut:F,anticipate:W},tH=t=>{if(tX(t)){(0,z.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return k(e,i,n,r)}return"string"==typeof t?((0,z.k)(void 0!==tY[t],`Invalid easing type '${t}'`),tY[t]):t};var tK=i(71884),tZ=i(30533);function tq({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=tz(n)?n.map(tH):tH(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,tZ.Y)(e)).map(e=>e*t),a=(0,tK.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||tN).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var tG=i(83624),t_=i(79976);let tJ=t=>{let e=({timestamp:e})=>t(e);return{start:()=>M.Wi.update(e,!0),stop:()=>(0,M.Pn)(e),now:()=>M.frameData.isProcessing?M.frameData.timestamp:tV.X.now()}},tQ={decay:t$,inertia:t$,tween:tq,keyframes:tq,spring:tW},t0=t=>t/100;class t1 extends tR{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||th;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=tC(n)?n:tQ[n]||tq;l!==tq&&"number"!=typeof t[0]&&(e=(0,tG.z)(t0,(0,t_.C)(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=(0,tL.u)(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==n&&(w.value=V(a,this.options,n)),m&&m(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?m(t.calculatedDuration):0}get time(){return m(this.currentTime)}set time(t){t=f(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=m(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tJ,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let t2=new Set(["opacity","clipPath","filter","transform"]);var t6=i(23967);let t3=(t,e)=>{let i="",n=Math.max(Math.round(e/10),2);for(let e=0;e<n;e++)i+=t((0,t6.Y)(0,n-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};var t5=i(4522);let t9={linearEasing:void 0},t4=function(t,e){let i=(0,t5.X)(t);return()=>{var t;return null!==(t=t9[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t8=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t8([0,.65,.55,1]),circOut:t8([.55,0,1,.45]),backIn:t8([.31,.01,.66,-.59]),backOut:t8([.33,1.53,.69,.99])};function et(t,e){t.timeline=e,t.onfinish=null}let ee=(0,t5.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ei={anticipate:W,backInOut:O,circInOut:U};class en extends tR{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new tE(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&t4()&&o in ei&&(o=ei[o]),tC((n=this.options).type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&t4()||!e||"string"==typeof e&&(e in t7||t4())||tX(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new t1({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let c=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&t4()?t3(e,i):tX(e)?t8(e):Array.isArray(e)?e.map(e=>t(e,i)||t7.easeOut):t7[e]}(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(et(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set(V(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return m(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return m(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=f(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.Z;let{animation:i}=e;et(i,t)}else this.pendingTimeline=t;return R.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new t1({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=f(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return ee()&&i&&t2.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var er=i(63594);class es{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>(0,er.t)()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eo=(t,e,i,n={},r,s)=>o=>{let a=P(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=f(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...w(t,h)}),h.duration&&(h.duration=f(h.duration)),h.repeatDelay&&(h.repeatDelay=f(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(E.current||A.c.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=V(h.keyframes,a);if(void 0!==t)return M.Wi.update(()=>{h.onUpdate(t),h.onComplete()}),new es([])}return!s&&en.supports(h)?new en(h):new t1(h)},ea=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),el=t=>r(t)?t[t.length-1]||0:t;var eu=i(33234);let eh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ec="data-"+eh("framerAppearId"),ed=t=>!!(t&&t.getVelocity);function ep(t,e){if(!t.applyWillChange)return;let i=t.getValue("willChange");if(ed(i)&&i.add)return i.add(e)}function ef(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=l[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...P(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[ec];if(i){let t=window.MotionHandoffAnimation(i,e,M.Wi);null!==t&&(a.startTime=t,u=!0)}}ep(t,e),n.start(eo(e,n,r,t.shouldReduceMotion&&p.has(e)?{type:!1}:a,t,u));let d=n.animation;d&&h.push(d)}return a&&Promise.all(h).then(()=>{M.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=u(t,e)||{};for(let e in r={...r,...i}){let i=el(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,eu.BX)(i))}}(t,a)})}),h}function em(t,e,i={}){var n;let r=u(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(ef(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ev).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(em(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ev(t,e){return t.sortNodePosition(e)}let eg=c.length,ey=[...h].reverse(),ex=h.length;function ew(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eP(){return{animate:ew(!0),whileInView:ew(),whileHover:ew(),whileTap:ew(),whileDrag:ew(),whileFocus:ew(),exit:ew()}}class eb{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eT extends eb{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>em(t,e,i)));else if("string"==typeof e)n=em(t,e,i);else{let r="function"==typeof e?u(t,e,i.custom):e;n=Promise.all(ef(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=eP(),a=!0,l=e=>(i,n)=>{var r;let s=u(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function h(u){let{props:h}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<eg;t++){let n=c[t],r=e.props[n];(o(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],f=new Set,m={},v=1/0;for(let e=0;e<ex;e++){var g;let c=ey[e],y=i[c],x=void 0!==h[c]?h[c]:d[c],w=o(x),P=c===u?y.isActive:null;!1===P&&(v=e);let b=x===d[c]&&x!==h[c]&&w;if(b&&a&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...m},!y.isActive&&null===P||!x&&!y.prevProp||n(x)||"boolean"==typeof x)continue;let T=(g=y.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!s(x,g)),S=T||c===u&&y.isActive&&!b&&w||e>v&&w,A=!1,E=Array.isArray(x)?x:[x],C=E.reduce(l(c),{});!1===P&&(C={});let{prevResolvedValues:V={}}=y,M={...V,...C},R=e=>{S=!0,f.has(e)&&(A=!0,f.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=C[t],i=V[t];if(!m.hasOwnProperty(t))(r(e)&&r(i)?s(e,i):e===i)?void 0!==e&&f.has(t)?R(t):y.protectedKeys[t]=!0:null!=e?R(t):f.add(t)}y.prevProp=x,y.prevResolvedValues=C,y.isActive&&(m={...m,...C}),a&&t.blockInitialAnimation&&(S=!1);let D=!(b&&T)||A;S&&D&&p.push(...E.map(t=>({animation:t,options:{type:c}})))}if(f.size){let e={};f.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let y=!!p.length;return a&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(y=!1),a=!1,y?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=h(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eP(),a=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let eS=0;class eA extends eb{constructor(){super(...arguments),this.id=eS++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let eE=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eC(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let eV=t=>e=>eE(e)&&t(e,eC(e));function eM(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function eR(t,e,i,n){return eM(t,e,eV(i),n)}let eD=(t,e)=>Math.abs(t-e);class ek{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eF(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(eD(t.x,e.x)**2+eD(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=M.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eL(e,this.transformPagePoint),M.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=eF("pointercancel"===t.type?this.lastMoveEventInfo:eL(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!eE(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=eL(eC(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=M.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,eF(s,this.history)),this.removeListeners=(0,tG.z)(eR(this.contextWindow,"pointermove",this.handlePointerMove),eR(this.contextWindow,"pointerup",this.handlePointerUp),eR(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.Pn)(this.updatePoint)}}function eL(t,e){return e?{point:e(t.point)}:t}function ej(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eF({point:t},e){return{point:t,delta:ej(t,eB(e)),offset:ej(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=eB(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>f(.1)));)i--;if(!n)return{x:0,y:0};let s=m(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function eB(t){return t[t.length-1]}function eO(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let eW=eO("dragHorizontal"),e$=eO("dragVertical");function eI(t){let e=!1;if("y"===t)e=e$();else if("x"===t)e=eW();else{let t=eW(),i=e$();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function eU(){let t=eI(!0);return!t||(t(),!1)}function eN(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ez=i(40179);function eX(t){return t.max-t.min}function eY(t,e,i,n=.5){t.origin=n,t.originPoint=(0,ez.t)(e.min,e.max,t.origin),t.scale=eX(i)/eX(e),t.translate=(0,ez.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eH(t,e,i,n){eY(t.x,e.x,i.x,n?n.originX:void 0),eY(t.y,e.y,i.y,n?n.originY:void 0)}function eK(t,e,i){t.min=i.min+e.min,t.max=t.min+eX(e)}function eZ(t,e,i){t.min=e.min-i.min,t.max=t.min+eX(e)}function eq(t,e,i){eZ(t.x,e.x,i.x),eZ(t.y,e.y,i.y)}function eG(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function e_(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function eJ(t,e,i){return{min:eQ(t,e),max:eQ(t,i)}}function eQ(t,e){return"number"==typeof t?t:t[e]||0}let e0=()=>({translate:0,scale:1,origin:0,originPoint:0}),e1=()=>({x:e0(),y:e0()}),e2=()=>({min:0,max:0}),e6=()=>({x:e2(),y:e2()});function e3(t){return[t("x"),t("y")]}function e5({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e9(t){return void 0===t||1===t}function e4({scale:t,scaleX:e,scaleY:i}){return!e9(t)||!e9(e)||!e9(i)}function e8(t){return e4(t)||e7(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e7(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function it(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function ie(t,e=0,i=1,n,r){t.min=it(t.min,e,i,n,r),t.max=it(t.max,e,i,n,r)}function ii(t,{x:e,y:i}){ie(t.x,e.translate,e.scale,e.originPoint),ie(t.y,i.translate,i.scale,i.originPoint)}function ir(t,e){t.min=t.min+e,t.max=t.max+e}function is(t,e,i,n,r=.5){let s=(0,ez.t)(t.min,t.max,r);ie(t,e,i,s,n)}function io(t,e){is(t.x,e.x,e.scaleX,e.scale,e.originX),is(t.y,e.y,e.scaleY,e.scale,e.originY)}function ia(t,e){return e5(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let il=({current:t})=>t?t.ownerDocument.defaultView:null,iu=new WeakMap;class ih{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=e6(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new ek(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eC(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eI(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),e3(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=eX(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&M.Wi.postRender(()=>r(t,e)),ep(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>e3(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:il(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&M.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!ic(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,ez.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,ez.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&eN(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:eG(t.x,i,r),y:eG(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eJ(t,"left","right"),y:eJ(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&e3(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!eN(e))return!1;let n=e.current;(0,z.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=ia(t,i),{scroll:r}=e;return r&&(ir(n.x,r.offset.x),ir(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:e_((t=r.layout.layoutBox).x,s.x),y:e_(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e5(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(e3(o=>{if(!ic(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ep(this.visualElement,t),i.start(eo(t,i,0,e,this.visualElement,!1))}stopAnimation(){e3(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){e3(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){e3(e=>{let{drag:i}=this.getProps();if(!ic(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,ez.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eN(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};e3(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=eX(t),r=eX(e);return r>n?i=(0,t6.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,t6.Y)(t.min,t.max-r,e.min)),(0,tL.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),e3(e=>{if(!ic(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,ez.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;iu.set(this.visualElement,this);let t=eR(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();eN(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.Wi.read(e);let r=eM(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(e3(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function ic(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class id extends eb{constructor(t){super(t),this.removeGroupControls=R.Z,this.removeListeners=R.Z,this.controls=new ih(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ip=t=>(e,i)=>{t&&M.Wi.postRender(()=>t(e,i))};class im extends eb{constructor(){super(...arguments),this.removePointerDownListener=R.Z}onPointerDown(t){this.session=new ek(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:il(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ip(t),onStart:ip(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&M.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=eR(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var iv=i(85893),ig=i(67294),iy=i(240),ix=i(25364);let iw=(0,ig.createContext)({}),iP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ib(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let iT={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}let i=ib(t,e.target.x),n=ib(t,e.target.y);return`${i}% ${n}%`}},iS={},{schedule:iA,cancel:iE}=(0,i(89727).Z)(queueMicrotask,!1);class iC extends ig.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(iS,iM),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),iP.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||M.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iA.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function iV(t){let[e,i]=function(){let t=(0,ig.useContext)(iy.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,ig.useId)();(0,ig.useEffect)(()=>n(r),[]);let s=(0,ig.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,s]:[!0]}(),n=(0,ig.useContext)(ix.p);return(0,iv.jsx)(iC,{...t,layoutGroup:n,switchLayoutGroup:(0,ig.useContext)(iw),isPresent:e,safeToRemove:i})}let iM={borderRadius:{...iT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iT,borderTopRightRadius:iT,borderBottomLeftRadius:iT,borderBottomRightRadius:iT,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tc.P.parse(t);if(n.length>5)return t;let r=tc.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,ez.t)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var iR=i(21560);let iD=["TopLeft","TopRight","BottomLeft","BottomRight"],ik=iD.length,iL=t=>"string"==typeof t?parseFloat(t):t,ij=t=>"number"==typeof t||Z.px.test(t);function iF(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iB=iW(0,.5,I),iO=iW(.5,.95,R.Z);function iW(t,e,i){return n=>n<t?0:n>e?1:i((0,t6.Y)(t,e,n))}function i$(t,e){t.min=e.min,t.max=e.max}function iI(t,e){i$(t.x,e.x),i$(t.y,e.y)}function iU(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function iN(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function iz(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(Z.aQ.test(e)&&(e=parseFloat(e),e=(0,ez.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,ez.t)(s.min,s.max,n);t===s&&(a-=e),t.min=iN(t.min,e,i,a,r),t.max=iN(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let iX=["x","scaleX","originX"],iY=["y","scaleY","originY"];function iH(t,e,i,n){iz(t.x,e,iX,i?i.x:void 0,n?n.x:void 0),iz(t.y,e,iY,i?i.y:void 0,n?n.y:void 0)}function iK(t){return 0===t.translate&&1===t.scale}function iZ(t){return iK(t.x)&&iK(t.y)}function iq(t,e){return t.min===e.min&&t.max===e.max}function iG(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function i_(t,e){return iG(t.x,e.x)&&iG(t.y,e.y)}function iJ(t){return eX(t.x)/eX(t.y)}function iQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var i0=i(10010);class i1{constructor(){this.members=[]}add(t){(0,i0.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,i0.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let i2=(t,e)=>t.depth-e.depth;class i6{constructor(){this.children=[],this.isDirty=!1}add(t){(0,i0.y4)(this.children,t),this.isDirty=!0}remove(t){(0,i0.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i2),this.isDirty=!1,this.children.forEach(t)}}function i3(t){let e=ed(t)?t.get():t;return ea(e)?e.toValue():e}let i5={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},i9="undefined"!=typeof window&&void 0!==window.MotionDebug,i4=["","X","Y","Z"],i8={visibility:"hidden"},i7=0;function nt(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ne({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=i7++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,i9&&(i5.totalNodes=i5.resolvedTargetDeltas=i5.recalculatedProjection=0),this.nodes.forEach(nr),this.nodes.forEach(nc),this.nodes.forEach(nd),this.nodes.forEach(ns),i9&&window.MotionDebug.record(i5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new i6)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iR.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tV.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,M.Pn)(n),t(r-250))};return M.Wi.read(n,!0),()=>(0,M.Pn)(n)}(n,0),iP.hasAnimatedSinceResize&&(iP.hasAnimatedSinceResize=!1,this.nodes.forEach(nh))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ny,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!i_(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...P(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,M.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(np),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[ec];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",M.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(na);return}this.isUpdating||this.nodes.forEach(nl),this.isUpdating=!1,this.nodes.forEach(nu),this.nodes.forEach(ni),this.nodes.forEach(nn),this.clearAllSnapshots();let t=tV.X.now();M.frameData.delta=(0,tL.u)(0,1e3/60,t-M.frameData.timestamp),M.frameData.timestamp=t,M.frameData.isProcessing=!0,M.yL.update.process(M.frameData),M.yL.preRender.process(M.frameData),M.yL.render.process(M.frameData),M.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,iA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(no),this.sharedNodes.forEach(nf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=e6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!iZ(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||e8(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),nP((e=n).x),nP(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return e6();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(nT))){let{scroll:t}=this.root;t&&(ir(i.x,t.offset.x),ir(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=e6();if(iI(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&iI(i,t),ir(i.x,r.offset.x),ir(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=e6();iI(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&io(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),e8(n.latestValues)&&io(i,n.latestValues)}return e8(this.latestValues)&&io(i,this.latestValues),i}removeTransform(t){let e=e6();iI(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!e8(i.latestValues))continue;e4(i.latestValues)&&i.updateSnapshot();let n=e6();iI(n,i.measurePageBox()),iH(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return e8(this.latestValues)&&iH(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&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&&(a||l)){if(this.resolvedRelativeTargetAt=M.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=e6(),this.relativeTargetOrigin=e6(),eq(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),iI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=e6(),this.targetWithTransforms=e6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,eK(i.x,n.x,r.x),eK(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iI(this.target,this.layout.layoutBox),ii(this.target,this.targetDelta)):iI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=e6(),this.relativeTargetOrigin=e6(),eq(this.relativeTargetOrigin,this.target,t.target),iI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}i9&&i5.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||e4(this.parent.latestValues)||e7(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===M.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;iI(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&io(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ii(t,s)),n&&e8(r.latestValues)&&io(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=e6());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iU(this.prevProjectionDelta.x,this.projectionDelta.x),iU(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eH(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iQ(this.projectionDelta.x,this.prevProjectionDelta.x)&&iQ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),i9&&i5.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e1(),this.projectionDelta=e1(),this.projectionDeltaWithTransform=e1()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=e1();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=e6(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ng));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(nm(o.x,t.x,n),nm(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;eq(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,nv(p.x,f.x,a.x,n),nv(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,iq(u.x,d.x)&&iq(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=e6()),iI(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,ez.t)(0,void 0!==i.opacity?i.opacity:1,iB(n)),t.opacityExit=(0,ez.t)(void 0!==e.opacity?e.opacity:1,0,iO(n))):s&&(t.opacity=(0,ez.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<ik;r++){let s=`border${iD[r]}Radius`,o=iF(e,s),a=iF(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ij(o)===ij(a)?(t[s]=Math.max((0,ez.t)(iL(o),iL(a),n),0),(Z.aQ.test(a)||Z.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,ez.t)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Wi.update(()=>{iP.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=ed(0)?0:(0,eu.BX)(0);return n.start(eo("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&nb(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||e6();let e=eX(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=eX(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}iI(e,i),io(e,r),eH(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new i1),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nt("z",t,n,this.animationValues);for(let e=0;e<i4.length;e++)nt(`rotate${i4[e]}`,t,n,this.animationValues),nt(`skew${i4[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return i8;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=i3(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=i3(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!e8(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,iS){if(void 0===o[t])continue;let{correct:e,applyTo:i}=iS[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?i3(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{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 nn(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?e3(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=eX(n);n.min=e[t].min,n.max=n.min+r}):nb(r,i.layoutBox,e)&&e3(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=eX(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=e1();eH(o,e,i.layoutBox);let a=e1();s?eH(a,t.applyTransform(n,!0),i.measuredBox):eH(a,e,i.layoutBox);let l=!iZ(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=e6();eq(o,i.layoutBox,r.layoutBox);let a=e6();eq(a,e,s.layoutBox),i_(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nr(t){i9&&i5.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ns(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function no(t){t.clearSnapshot()}function na(t){t.clearMeasurements()}function nl(t){t.isLayoutDirty=!1}function nu(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nh(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nc(t){t.resolveTargetDelta()}function nd(t){t.calcProjection()}function np(t){t.resetSkewAndRotation()}function nf(t){t.removeLeadSnapshot()}function nm(t,e,i){t.translate=(0,ez.t)(e.translate,0,i),t.scale=(0,ez.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nv(t,e,i,n){t.min=(0,ez.t)(e.min,i.min,n),t.max=(0,ez.t)(e.max,i.max,n)}function ng(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ny={duration:.45,ease:[.4,0,.1,1]},nx=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nw=nx("applewebkit/")&&!nx("chrome/")?Math.round:R.Z;function nP(t){t.min=nw(t.min),t.max=nw(t.max)}function nb(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iJ(e)-iJ(i)))}function nT(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let nS=ne({attachResizeListener:(t,e)=>eM(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nA={current:void 0},nE=ne({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nA.current){let t=new nS({});t.mount(window),t.setOptions({layoutScroll:!0}),nA.current=t}return nA.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nC(t,e){let i=e?"onHoverStart":"onHoverEnd";return eR(t.current,e?"pointerenter":"pointerleave",(n,r)=>{if("touch"===n.pointerType||eU())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&M.Wi.postRender(()=>o(n,r))},{passive:!t.getProps()[i]})}class nV extends eb{mount(){this.unmount=(0,tG.z)(nC(this.node,!0),nC(this.node,!1))}unmount(){}}class nM extends eb{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tG.z)(eM(this.node.current,"focus",()=>this.onFocus()),eM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nR=(t,e)=>!!e&&(t===e||nR(t,e.parentElement));function nD(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,eC(i))}class nk extends eb{constructor(){super(...arguments),this.removeStartListeners=R.Z,this.removeEndListeners=R.Z,this.removeAccessibleListeners=R.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=eR(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||nR(this.node.current,t.target)?i:n;s&&M.Wi.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=eR(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tG.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=eM(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eM(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&nD("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&M.Wi.postRender(()=>i(t,e))})}),nD("down",(t,e)=>{this.startPress(t,e)}))}),e=eM(this.node.current,"blur",()=>{this.isPressing&&nD("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tG.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&M.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eU()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&M.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=eR(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=eM(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tG.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let nL=new WeakMap,nj=new WeakMap,nF=t=>{let e=nL.get(t.target);e&&e(t)},nB=t=>{t.forEach(nF)},nO={some:0,all:1};class nW extends eb{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:nO[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;nj.has(i)||nj.set(i,{});let n=nj.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(nB,{root:t,...e})),n[r]}(e);return nL.set(t,i),n.observe(t),()=>{nL.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var n$=i(16014);let nI=(0,ig.createContext)({});var nU=i(58868);let nN=(0,ig.createContext)({strict:!1});function nz(t){return n(t.animate)||c.some(e=>o(t[e]))}function nX(t){return!!(nz(t)||t.variants)}function nY(t){return Array.isArray(t)?t.join(" "):t}let nH={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nK={};for(let t in nH)nK[t]={isEnabled:e=>nH[t].some(t=>!!e[t])};var nZ=i(11741);let nq=Symbol.for("motionComponentSymbol"),nG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function n_(t){if("string"!=typeof t||t.includes("-"));else if(nG.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function nJ(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let nQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function n0(t,e,i,n){for(let i in nJ(t,e,void 0,n),e.attrs)t.setAttribute(nQ.has(i)?i:eh(i),e.attrs[i])}function n1(t,{layout:e,layoutId:i}){return p.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!iS[t]||"opacity"===t)}function n2(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(ed(r[o])||e.style&&ed(e.style[o])||n1(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return i&&r&&"string"==typeof r.willChange&&(i.applyWillChange=!1),s}function n6(t,e,i){let n=n2(t,e,i);for(let i in t)(ed(t[i])||ed(e[i]))&&(n[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}var n3=i(96681);let n5=t=>(e,i)=>{let r=(0,ig.useContext)(nI),s=(0,ig.useContext)(iy.O),o=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:r},s,o,a,l){let u={latestValues:function(t,e,i,r,s){var o;let a={},l=new Set,u=r&&(null===(o=t.style)||void 0===o?void 0:o.willChange)===void 0,h=s(t,{});for(let t in h)a[t]=i3(h[t]);let{initial:c,animate:d}=t,f=nz(t),m=nX(t);e&&m&&!f&&!1!==t.inherit&&(void 0===c&&(c=e.initial),void 0===d&&(d=e.animate));let v=!!i&&!1===i.initial,g=(v=v||!1===c)?d:c;return g&&"boolean"!=typeof g&&!n(g)&&n9(t,g,(t,e)=>{for(let e in t){let i=t[e];if(Array.isArray(i)){let t=v?i.length-1:0;i=i[t]}null!==i&&(a[e]=i)}for(let t in e)a[t]=e[t]}),u&&(d&&!1!==c&&!n(d)&&n9(t,d,t=>{for(let e in t){let t=p.has(e)?"transform":t2.has(e)?eh(e):void 0;t&&l.add(t)}}),l.size&&(a.willChange=Array.from(l).join(","))),a}(s,o,a,!l&&t,e),renderState:i()};return r&&(u.mount=t=>r(s,t,u)),u})(t,e,r,s,i);return i?o():(0,n3.h)(o)};function n9(t,e,i){let n=Array.isArray(e)?e:[e];for(let e=0;e<n.length;e++){let r=l(t,n[e]);if(r){let{transitionEnd:t,transition:e,...n}=r;i(n,t)}}}let n4=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),n8=()=>({...n4(),attrs:{}}),n7=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},re=d.length;function ri(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(p.has(t)){o=!0;continue}if((0,Y.f)(t)){r[t]=i;continue}{let e=n7(i,tP[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<re;s++){let o=d[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=n7(a,tP[o]);if(!l){r=!1;let e=rt[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}function rn(t,e,i){return"string"==typeof t?t:Z.px.transform(e+i*t)}let rr={offset:"stroke-dashoffset",array:"stroke-dasharray"},rs={offset:"strokeDashoffset",array:"strokeDasharray"};function ro(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(ri(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=rn(e,t.x,t.width),r=rn(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?rr:rs;t[s.offset]=Z.px.transform(-n);let o=Z.px.transform(e),a=Z.px.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let ra=t=>"string"==typeof t&&"svg"===t.toLowerCase(),rl={useVisualState:n5({scrapeMotionValuesFromProps:n6,createRenderState:n8,onMount:(t,e,{renderState:i,latestValues:n})=>{M.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),M.Wi.render(()=>{ro(i,n,ra(e.tagName),t.transformTemplate),n0(e,i)})}})},ru={useVisualState:n5({applyWillChange:!0,scrapeMotionValuesFromProps:n2,createRenderState:n4})};function rh(t,e,i){for(let n in e)ed(e[n])||n1(n,i)||(t[n]=e[n])}let rc=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 rd(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rc.has(t)}let rp=t=>!rd(t);try{(b=require("@emotion/is-prop-valid").default)&&(rp=t=>t.startsWith("on")?!rd(t):b(t))}catch(t){}let rf={current:null},rm={current:!1},rv=new WeakMap,rg=[...tn,tg.$,tc.P],ry=t=>rg.find(ti(t)),rx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rw{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=th,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tV.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,M.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;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=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=nz(e),this.isVariantNode=nX(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&ed(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rm.current||function(){if(rm.current=!0,nZ.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rf.current=t.matches;t.addListener(e),e()}else rf.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rf.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rv.delete(this.current),this.projection&&this.projection.unmount(),(0,M.Pn)(this.notifyUpdate),(0,M.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=p.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in nK){let e=nK[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):e6()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rx.length;e++){let i=rx[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(ed(r))t.addValue(n,r);else if(ed(s))t.addValue(n,(0,eu.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,eu.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,eu.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(X(n)||N(n))?n=parseFloat(n):!ry(n)&&tc.P.test(e)&&(n=tS(t,e)),this.setBaseTarget(t,ed(n)?n.get():n)),ed(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=l(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||ed(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new iR.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rP extends rw{constructor(){super(...arguments),this.KeyframeResolver=tE}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class rb extends rP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=nJ}readValueFromInstance(t,e){if(p.has(e)){let t=tT(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,Y.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ia(t,e)}build(t,e,i){ri(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return n2(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ed(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class rT extends rP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=e6}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(p.has(e)){let t=tT(e);return t&&t.default||0}return e=nQ.has(e)?e:eh(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return n6(t,e,i)}build(t,e,i){ro(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){n0(t,e,i,n)}mount(t){this.isSVGTag=ra(t.tagName),super.mount(t)}}let rS=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((T={animation:{Feature:eT},exit:{Feature:eA},inView:{Feature:nW},tap:{Feature:nk},focus:{Feature:nM},hover:{Feature:nV},pan:{Feature:im},drag:{Feature:id,ProjectionNode:nE,MeasureLayout:iV},layout:{ProjectionNode:nE,MeasureLayout:iV}},S=(t,e)=>n_(t)?new rT(e):new rb(e,{allowProjection:t!==ig.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){t&&function(t){for(let e in t)nK[e]={...nK[e],...t[e]}}(t);let s=(0,ig.forwardRef)(function(t,s){var a;let l;let u={...(0,ig.useContext)(n$._),...t,layoutId:function({layoutId:t}){let e=(0,ig.useContext)(ix.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(nz(t)){let{initial:e,animate:i}=t;return{initial:!1===e||o(e)?e:void 0,animate:o(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ig.useContext)(nI));return(0,ig.useMemo)(()=>({initial:e,animate:i}),[nY(e),nY(i)])}(t),d=n(t,h);if(!h&&nZ.j){(0,ig.useContext)(nN).strict;let t=function(t){let{drag:e,layout:i}=nK;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=t.MeasureLayout,c.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,ig.useContext)(nI),l=(0,ig.useContext)(nN),u=(0,ig.useContext)(iy.O),h=(0,ig.useContext)(n$._).reducedMotion,c=(0,ig.useRef)();n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,ig.useContext)(iw);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&eN(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,p),(0,ig.useInsertionEffect)(()=>{d&&d.update(i,u)});let f=i[ec],m=(0,ig.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,nU.L)(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),iA.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,ig.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),m.current=!1))}),d}(r,d,u,e,t.ProjectionNode)}return(0,iv.jsxs)(nI.Provider,{value:c,children:[l&&c.visualElement?(0,iv.jsx)(l,{visualElement:c.visualElement,...u}):null,i(r,t,(a=c.visualElement,(0,ig.useCallback)(t=>{t&&d.mount&&d.mount(t),a&&(t?a.mount(t):a.unmount()),s&&("function"==typeof s?s(t):eN(s)&&(s.current=t))},[a])),d,h,c.visualElement)]})});return s[nq]=r,s}({...n_(t)?rl:ru,preloadedFeatures:T,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(n_(e)?function(t,e,i,n){let r=(0,ig.useMemo)(()=>{let i=n8();return ro(i,e,ra(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rh(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return rh(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,ig.useMemo)(()=>{let i=n4();return ri(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(rp(r)||!0===i&&rd(r)||!e&&!rd(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==ig.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,ig.useMemo)(()=>ed(u)?u.get():u,[u]);return(0,ig.createElement)(e,{...l,children:h})}}(e),createVisualElement:S,Component:t})}))},63594:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=(0,i(4522).X)(()=>void 0!==window.ScrollTimeline)},57630:function(t,e,i){"use strict";i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},37301:function(t,e,i){"use strict";i.d(e,{I:function(){return r}});var n=i(45487);function r(t,e,i){var r;if("string"==typeof t){let s=document;e&&((0,n.k)(!!e.current,"Scope provided, but no element detected."),s=e.current),i?(null!==(r=i[t])&&void 0!==r||(i[t]=s.querySelectorAll(t)),t=i[t]):t=s.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}},22081:function(t,e,i){"use strict";i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},10010:function(t,e,i){"use strict";function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},24169:function(t,e,i){"use strict";i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},45487:function(t,e,i){"use strict";i.d(e,{K:function(){return r},k:function(){return s}});var n=i(81662);let r=n.Z,s=n.Z},71884:function(t,e,i){"use strict";i.d(e,{s:function(){return u}});var n=i(45487),r=i(24169),s=i(83624),o=i(23967),a=i(81662),l=i(79976);function u(t,e,{clamp:i=!0,ease:u,mixer:h}={}){let c=t.length;if((0,n.k)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&t[0]===t[1])return()=>e[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let d=function(t,e,i){let n=[],r=i||l.C,o=t.length-1;for(let i=0;i<o;i++){let o=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||a.Z:e;o=(0,s.z)(t,o)}n.push(o)}return n}(e,u,h),p=d.length,f=e=>{let i=0;if(p>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,o.Y)(t[i],t[i+1],e);return d[i](n)};return i?e=>f((0,r.u)(t[0],t[c-1],e)):f}},11741:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},4522:function(t,e,i){"use strict";function n(t){let e;return()=>(void 0===e&&(e=t()),e)}i.d(e,{X:function(){return n}})},79976:function(t,e,i){"use strict";i.d(e,{C:function(){return A}});var n=i(40179),r=i(45487);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(26382),a=i(40819),l=i(93184);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},c=[o.$,a.m,l.J],d=t=>c.find(e=>e.test(t));function p(t){let e=d(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let f=(t,e)=>{let i=p(t),r=p(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.t)(i.alpha,r.alpha,t),a.m.transform(s))};var m=i(83624),v=i(85385),g=i(56737),y=i(57630);let x=new Set(["none","hidden"]);function w(t,e){return i=>(0,n.t)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,y.t)(t)?u:v.$.test(t)?f:S:Array.isArray(t)?b:"object"==typeof t?v.$.test(t)?f:T:u}function b(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function T(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=P(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let i=g.P.createTransformer(e),n=(0,g.V)(t),s=(0,g.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?x.has(t)&&!s.values.length||x.has(e)&&!n.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,m.z)(b(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,s),s.values),i):((0,r.K)(!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.`),u(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,n.t)(t,e,i):P(t)(t,e)}},40179:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},81662:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let n=t=>t},30533:function(t,e,i){"use strict";i.d(e,{Y:function(){return s}});var n=i(40179),r=i(23967);function s(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,r.Y)(0,e,s);t.push((0,n.t)(i,1,o))}}(e,t.length-1),e}},83624:function(t,e,i){"use strict";i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},23967:function(t,e,i){"use strict";i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},21560:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(10010);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},96681:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(67294);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},16893:function(t,e,i){"use strict";i.d(e,{Y:function(){return o}});var n=i(67294),r=i(37301);let s={some:0,all:1};function o(t,{root:e,margin:i,amount:o,once:a=!1}={}){let[l,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!t.current||a&&l)return;let n={root:e&&e.current||void 0,margin:i,amount:o};return function(t,e,{root:i,margin:n,amount:o="some"}={}){let a=(0,r.I)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting){if(t.isIntersecting){let i=e(t);"function"==typeof i?l.set(t.target,i):u.unobserve(t.target)}else i&&(i(t),l.delete(t.target))}})},{root:i,rootMargin:n,threshold:"number"==typeof o?o:s[o]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(u(!0),a?void 0:()=>u(!1)),n)},[e,t,i,a,o]),l}},58868:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(67294);let r=i(11741).j?n.useLayoutEffect:n.useEffect},3038:function(t,e,i){"use strict";function n(t,e){return e?1e3/e*t:0}i.d(e,{R:function(){return n}})},33234:function(t,e,i){"use strict";i.d(e,{BX:function(){return h},S1:function(){return l}});var n=i(21560),r=i(3038),s=i(1117),o=i(26166);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=s.X.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},26382:function(t,e,i){"use strict";i.d(e,{$:function(){return r}});var n=i(40819);let r={test:(0,i(69940).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},93184:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(61649),r=i(96190),s=i(93609),o=i(69940);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},85385:function(t,e,i){"use strict";i.d(e,{$:function(){return o}});var n=i(26382),r=i(93184),s=i(40819);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},40819:function(t,e,i){"use strict";i.d(e,{m:function(){return u}});var n=i(24169),r=i(61649),s=i(93609),o=i(69940);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},69940:function(t,e,i){"use strict";i.d(e,{i:function(){return s},d:function(){return o}});var n=i(68054);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},56737:function(t,e,i){"use strict";i.d(e,{V:function(){return h},P:function(){return f}});var n=i(85385);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(68054),o=i(93609);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=n.$.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r))||void 0===i?void 0:i.length)||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},61649:function(t,e,i){"use strict";i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(24169);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},96190:function(t,e,i){"use strict";i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},68054:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},93609:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},65912:function(t,e,i){"use strict";let n,r;i.d(e,{v:function(){return U}});var s=i(33234),o=i(96681),a=i(67294),l=i(45487),u=i(37301);let h=new WeakMap;function c({target:t,contentRect:e,borderBoxSize:i}){var n;null===(n=h.get(t))||void 0===n||n.forEach(n=>{n({target:t,contentSize:e,get size(){return function(t,e){if(e){let{inlineSize:t,blockSize:i}=e[0];return{width:t,height:i}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,i)}})})}function d(t){t.forEach(c)}let p=new Set;var f=i(23967),m=i(3038);let v=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),g=()=>({time:0,x:v(),y:v()}),y={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function x(t,e,i,n){let r=i[e],{length:s,position:o}=y[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,f.Y)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,m.R)(r.current-a,u)}let w=[[0,0],[1,1]],P={start:0,center:.5,end:1};function b(t,e,i=0){let n=0;if(t in P&&(t=P[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let T=[0,0];var S=i(71884),A=i(30533);let E={x:0,y:0};var C=i(26166);let V=new WeakMap,M=new WeakMap,R=new WeakMap,D=t=>t===document.documentElement?window:t;function k(t,{container:e=document.documentElement,...i}={}){let s=R.get(e);s||(s=new Set,R.set(e,s));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{x(t,"x",i,e),x(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=w}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):E,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:T,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,P[t]?t:"0"]),b(r[0],i,n)-b(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=(0,S.s)(e[s].offset,(0,A.Y)(n)),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=e[s].interpolate(e[s].current)}(t,i,n)},notify:()=>e(i)}}(e,t,g(),i);if(s.add(o),!V.has(e)){let t=()=>{for(let t of s)t.measure()},i=()=>{for(let t of s)t.update(C.frameData.timestamp)},o=()=>{for(let t of s)t.notify()},a=()=>{C.Wi.read(t,!1,!0),C.Wi.read(i,!1,!0),C.Wi.update(o,!1,!0)};V.set(e,a);let l=D(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&M.set(e,"function"==typeof e?(p.add(e),r||(r=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};p.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{p.delete(e),!p.size&&r&&(r=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(d));let i=(0,u.I)(t);return i.forEach(t=>{let i=h.get(t);i||(i=new Set,h.set(t,i)),i.add(e),null==n||n.observe(t)}),()=>{i.forEach(t=>{let i=h.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=V.get(e);return C.Wi.read(a,!1,!0),()=>{var t;(0,C.Pn)(a);let i=R.get(e);if(!i||(i.delete(o),i.size))return;let n=V.get(e);V.delete(e),n&&(D(e).removeEventListener("scroll",n),null===(t=M.get(e))||void 0===t||t(),window.removeEventListener("resize",n))}}function L(t,e){let i;let n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return C.Wi.update(n,!0),()=>(0,C.Pn)(n)}var j=i(63594);let F=new Map;function B({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),F.has(e)||F.set(e,{});let n=F.get(e);return n[i]||(n[i]=(0,j.t)()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=k(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function O(t){return t&&(t.target||t.offset)}var W=i(58868);function $(t,e){(0,l.K)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let I=()=>({scrollX:(0,s.BX)(0),scrollY:(0,s.BX)(0),scrollXProgress:(0,s.BX)(0),scrollYProgress:(0,s.BX)(0)});function U({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=(0,o.h)(I);return(i?W.L:a.useEffect)(()=>($("target",e),$("container",t),function(t,{axis:e="y",...i}={}){let n={axis:e,...i};return"function"==typeof t?2===t.length||O(n)?k(e=>{t(e[n.axis].progress,e)},n):L(t,B(n)):function(t,e){if(O(e))return t.pause(),k(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=B(e);return t.attachTimeline(i,t=>(t.pause(),L(e=>{t.time=t.duration*e},i)))}}(t,n)}((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}},60056:function(t,e,i){"use strict";i.d(e,{H:function(){return p}});var n=i(71884);let r=t=>t&&"object"==typeof t&&t.mix,s=t=>r(t)?t.mix:void 0;var o=i(67294),a=i(33234),l=i(16014),u=i(96681),h=i(58868),c=i(26166);function d(t,e){let i=function(t){let e=(0,u.h)(()=>(0,a.BX)(t)),{isStatic:i}=(0,o.useContext)(l._);if(i){let[,i]=(0,o.useState)(t);(0,o.useEffect)(()=>e.on("change",i),[])}return e}(e()),n=()=>i.set(e());return n(),(0,h.L)(()=>{let e=()=>c.Wi.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,c.Pn)(n)}}),i}function p(t,e,i,r){if("function"==typeof t)return function(t){a.S1.current=[],t();let e=d(a.S1.current,t);return a.S1.current=void 0,e}(t);let o="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,r=t[0+i],o=t[1+i],a=t[2+i],l=t[3+i],u=(0,n.s)(o,a,{mixer:s(a[0]),...l});return e?u(r):u}(e,i,r);return Array.isArray(t)?f(t,o):f([t],([t])=>o(t))}function f(t,e){let i=(0,u.h)(()=>[]);return d(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}}}]);