framer-motion 9.0.2 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3344 -3260
- package/dist/es/animation/hooks/use-animated-state.mjs +3 -3
- package/dist/es/animation/index.mjs +3 -5
- package/dist/es/animation/legacy-popmotion/index.mjs +6 -2
- package/dist/es/animation/legacy-popmotion/inertia.mjs +4 -5
- package/dist/es/components/AnimatePresence/use-presence.mjs +0 -1
- package/dist/es/events/add-dom-event.mjs +6 -0
- package/dist/es/events/add-pointer-event.mjs +8 -0
- package/dist/es/events/use-dom-event.mjs +2 -5
- package/dist/es/gestures/drag/VisualElementDragControls.mjs +31 -30
- package/dist/es/gestures/drag/index.mjs +27 -0
- package/dist/es/gestures/focus.mjs +42 -0
- package/dist/es/gestures/hover.mjs +32 -0
- package/dist/es/gestures/{PanSession.mjs → pan/PanSession.mjs} +8 -8
- package/dist/es/gestures/pan/index.mjs +38 -0
- package/dist/es/gestures/press.mjs +109 -0
- package/dist/es/index.mjs +1 -1
- package/dist/es/motion/features/Feature.mjs +9 -0
- package/dist/es/motion/features/animation/exit.mjs +32 -0
- package/dist/es/motion/features/animation/index.mjs +38 -0
- package/dist/es/motion/features/animations.mjs +8 -37
- package/dist/es/motion/features/definitions.mjs +17 -23
- package/dist/es/motion/features/drag.mjs +12 -5
- package/dist/es/motion/features/gestures.mjs +16 -9
- package/dist/es/motion/features/layout/MeasureLayout.mjs +5 -5
- package/dist/es/motion/features/layout.mjs +11 -0
- package/dist/es/motion/features/load-features.mjs +4 -6
- package/dist/es/motion/features/viewport/index.mjs +96 -0
- package/dist/es/motion/index.mjs +12 -13
- package/dist/es/motion/utils/use-visual-element.mjs +8 -2
- package/dist/es/projection/geometry/delta-apply.mjs +9 -2
- package/dist/es/projection/geometry/delta-calc.mjs +2 -2
- package/dist/es/projection/geometry/delta-remove.mjs +2 -2
- package/dist/es/projection/node/DocumentProjectionNode.mjs +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +65 -57
- package/dist/es/projection/node/group.mjs +5 -3
- package/dist/es/projection/shared/stack.mjs +7 -5
- package/dist/es/render/VisualElement.mjs +68 -47
- package/dist/es/render/dom/DOMVisualElement.mjs +1 -2
- package/dist/es/render/dom/features-max.mjs +2 -4
- package/dist/es/render/dom/motion.mjs +5 -6
- package/dist/es/render/dom/utils/create-config.mjs +1 -2
- package/dist/es/render/dom/value-types/animatable-none.mjs +3 -2
- package/dist/es/render/svg/SVGVisualElement.mjs +2 -2
- package/dist/es/render/utils/animation-state.mjs +6 -2
- package/dist/es/render/utils/animation.mjs +4 -4
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/render/utils/setters.mjs +14 -9
- package/dist/es/value/index.mjs +1 -1
- package/dist/es/value/utils/is-motion-value.mjs +1 -1
- package/dist/framer-motion.dev.js +3341 -3257
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +85 -77
- package/dist/projection.dev.js +217 -177
- package/dist/size-rollup-dom-animation-assets.js +1 -1
- package/dist/size-rollup-dom-animation-m.js +1 -1
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/size-webpack-m.js +1 -1
- package/dist/three-entry.d.ts +74 -38
- package/package.json +8 -8
- package/dist/es/events/use-pointer-event.mjs +0 -11
- package/dist/es/gestures/drag/use-drag.mjs +0 -20
- package/dist/es/gestures/use-focus-gesture.mjs +0 -37
- package/dist/es/gestures/use-hover-gesture.mjs +0 -32
- package/dist/es/gestures/use-pan-gesture.mjs +0 -46
- package/dist/es/gestures/use-tap-gesture.mjs +0 -115
- package/dist/es/motion/features/layout/index.mjs +0 -7
- package/dist/es/motion/features/viewport/use-viewport.mjs +0 -97
- package/dist/es/motion/utils/VisualElementHandler.mjs +0 -19
- package/dist/es/motion/utils/make-renderless-component.mjs +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),o=n(1818);const s=!1;var i=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),p=(0,a.o)(u);var d=n(2890),h=n(9043),f=n(5430);function m(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const w=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},b=[v.$,g.m,y.J];function x(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,r.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===y.J&&(o=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,s=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;o=m(a,r,t+1/3),s=m(a,r,t),i=m(a,r,t-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(o)),o}const V=(t,e)=>{const n=x(t),r=x(e),o={...n};return t=>(o.red=w(n.red,r.red,t),o.green=w(n.green,r.green,t),o.blue=w(n.blue,r.blue,t),o.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(o))};var A=n(9820),C=n(26);function T(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):d.$.test(t)?V(t,e):k(t,e)}const P=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>T(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},S=(t,e)=>{const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=T(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}},k=(t,e)=>{const n=C.P.createTransformer(e),o=(0,C.V)(t),s=(0,C.V)(e);return o.numColors===s.numColors&&o.numNumbers>=s.numNumbers?(0,A.z)(P(o.values,s.values),n):((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.`),n=>`${n>0?e:t}`)};var M=n(918);const E=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?E:"string"==typeof s?d.$.test(s)?V:k:Array.isArray(s)?P:"object"==typeof s?S:E);var s;const i=t.length-1;for(let n=0;n<i;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,A.z)(t,s)}r.push(s)}return r}function O(t,e,{clamp:n=!0,ease:o,mixer:s}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!o||!Array.isArray(o)||o.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=F(e,o,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,M.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,h.u)(t[0],t[i-1],e)):u}var R=n(2634);const $=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,r){if(t===e&&n===r)return R.Z;const o=e=>function(t,e,n,r,o){let s,i,a=0;do{i=e+(n-e)/2,s=$(i,r,o)-t,s>0?n=i:e=i}while(Math.abs(s)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:$(o(t),e,r)}var B=n(7110);const D=I(.33,1.53,.69,.99),N=(0,l.M)(D),j=(0,a.o)(N),Z={linear:R.Z,easeIn:u,easeInOut:p,easeOut:c,circIn:B.Z7,circInOut:B.X7,circOut:B.Bn,backIn:N,backInOut:j,backOut:D,anticipate:t=>(t*=2)<1?.5*N(t):.5*(2-Math.pow(2,-10*(t-1)))},L=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,s]=t;return I(e,n,o,s)}return"string"==typeof t?((0,r.k)(void 0!==Z[t],`Invalid easing type '${t}'`),Z[t]):t};function W({keyframes:t,ease:e=p,times:n,duration:r=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(L):L(e),s={done:!1,value:t[0]},i=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),r);function a(){return O(i,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||p)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=r,s),flipTarget:()=>{t.reverse(),l=a()}}}const Y=.001;function H({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let s,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,h.u)(.05,1,a),t=(0,h.u)(.01,10,t/1e3),a<1?(s=e=>{const r=e*a,o=r*t,s=r-n,i=q(e,a),l=Math.exp(-o);return Y-s/i*l},i=e=>{const r=e*a*t,o=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=q(Math.pow(e,2),a);return(-s(e)+Y>0?-1:1)*((o-i)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,i,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function q(t,e){return t*Math.sqrt(1-e*e)}var z=n(432);const U=["duration","bounce"],K=["stiffness","damping","mass"];function X(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restDelta:e,restSpeed:n,...r}){let o=t[0],s=t[t.length-1];const i={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!X(t,K)&&X(t,U)){const n=H(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let h=J,f=c?-c/1e3:0;const m=l/(2*Math.sqrt(a*u));function v(){const t=s-o,r=Math.sqrt(a/u)/1e3,i=Math.abs(t)<5;if(n||(n=i?.01:2),e||(e=i?.005:.5),m<1){const e=q(r,m);h=n=>{const o=Math.exp(-m*r*n);return s-o*((f+m*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)h=e=>s-Math.exp(-r*e)*(t+(f+r*t)*e);else{const e=r*Math.sqrt(m*m-1);h=n=>{const o=Math.exp(-m*r*n),i=Math.min(e*n,300);return s-o*((f+m*r*t)*Math.sinh(i)+e*t*Math.cosh(i))/e}}}return v(),{next:t=>{const r=h(t);if(d)i.done=t>=p;else{let o=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);o=(0,z.R)(r-h(e),t-e)}else o=0;const a=Math.abs(o)<=n,l=Math.abs(s-r)<=e;i.done=a&&l}return i.value=i.done?s:r,i},flipTarget:()=>{f=-f,[o,s]=[s,o],v()}}}_.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const J=t=>0;const G={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const i=t[0],a={done:!1,value:i};let l=n*e;const u=i+l,c=void 0===s?u:s(u);return c!==u&&(l=c-i),{next:t=>{const e=-l*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:W,tween:W,spring:_};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>i.Z_.update(e,!0),stop:()=>i.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:s=0,keyframes:i,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:p,onUpdate:d,type:h="keyframes",...f}){var m,v;const g=n;let y,w,b=0,x=t,V=!1,A=!0;const C=G[i.length>2?"keyframes":h]||W,T=i[0],P=i[i.length-1];let S={done:!1,value:T};(null===(v=(m=C).needsInterpolation)||void 0===v?void 0:v.call(m,T,P))&&(w=O([0,100],[T,P],{clamp:!1}),i=[0,100]);const k=C({...f,duration:t,keyframes:i});function M(){b++,"reverse"===o?(A=b%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,x,s,A)):(n=Q(n,x,s),"mirror"===o&&k.flipTarget()),V=!1,p&&p()}function E(t){A||(t=-t),n+=t,V||(S=k.next(Math.max(0,n)),w&&(S.value=w(S.value)),V=A?S.done:n<=0),d&&d(S.value),V&&(0===b&&(x=void 0!==x?x:n),b<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,x,s,A)&&M():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(E),y.start()),{stop:()=>{u&&u(),y&&y.stop()},set currentTime(t){n=g,E(t)},sample:e=>{n=g;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(E(0);o<=e;){const t=e-o;E(Math.min(t,r)),o+=r}return S}}}const nt=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,rt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function ot(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const st={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in st)at[t]=()=>(void 0===it[t]&&(it[t]=st[t]()),it[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...o}){if(!(at.waapi()&<.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:a=300,elapsed:l=0,ease:u}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&rt[c])){if(o.repeat===1/0)return;const t=et({...o,elapsed:0});let e={done:!1,value:s[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;s=n,a=r-10,u="linear"}var c;const p=function(t,e,n,{delay:r=0,duration:o,repeat:s=0,repeatType:i="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:r,duration:o,easing:ot(a),fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-l,duration:a,ease:u});return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),i.Z_.update((()=>p.cancel())),r&&r()},{get currentTime(){return p.currentTime||0},set currentTime(t){p.currentTime=t},stop:()=>{const{currentTime:e}=p;if(e){const n=et({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>p.cancel()))}}}var ct=n(2866);function pt({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const o=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:(0,ct.g)(o,-e)}:o()}var dt=n(5951);const ht=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ft=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mt=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:ht,y:ht,z:ht,rotate:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scaleX:ft,scaleY:ft,scale:ft,opacity:mt,backgroundColor:mt,color:mt,default:ft},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},wt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!C.P.test(e)||e.startsWith("url(")));var bt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const l=(0,xt.ev)(i,t)||{},u=l.delay||i.delay||0;let{elapsed:c=0}=i;c-=(0,o.w)(u);const p=function(t,e,n,r){const o=wt(e,n);let s=void 0!==r.from?r.from:t.get();return"none"===s&&o&&"string"==typeof n?s=(0,bt.T)(e,n):(0,xt.Fr)(s)&&"string"==typeof n?s=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof s&&(n=(0,xt.GZ)(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,l),d=p[0],h=p[p.length-1],f=wt(t,d),m=wt(t,h);(0,r.K)(f===m,`You are trying to animate ${t} from "${d}" to "${h}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${h} via the \`style\` property.`);let v={keyframes:p,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!f||!m||s||!1===l.type)return pt(v);if("inertia"===l.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:d,onStop:h}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==m||m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:h})}function w(t){y({type:"spring",stiffness:i,damping:a,restDelta:l,...t})}if(v(f))w({velocity:e,keyframes:[f,g(f)]});else{let t=o*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,c;const p=t=>{a=c,c=t,e=(0,z.R)(t-a,dt.w.delta),(1===i&&t>r||-1===i&&t<r)&&w({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:v(t)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(v);(0,xt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,o.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,o.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}return et(v)}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>s,GZ:()=>i,ev:()=>a,rw:()=>o});var r=n(6914);function o({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function s(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function i(t){return"number"==typeof t?0:(0,r.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var r=n(8370),o=n(7866);function s(){const t=(0,r.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,r.useId)();(0,r.useEffect)((()=>s(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(8370);const o=(0,r.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>s});var r=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),i=(0,o.M)(s),a=(0,r.o)(i)},5222:(t,e,n)=>{n.d(e,{o:()=>r});const r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>r});const r=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Q:()=>o,s:()=>s});var r=n(2426);function o(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const s=t=>e=>(0,r.D)(e)&&t(e,o(e))},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var r=n(8370);function o(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,r.useEffect)((()=>{const r=t.current;if(n&&r)return o(r,e,n,s)}),[t,e,n,s])}},7815:(t,e,n)=>{n.d(e,{a:()=>s,m:()=>i});var r=n(1876),o=n(409);function s(t,e,n,s){return(0,r.E)(t,e,(0,o.s)(n),s)}function i(t,e,n,s){return(0,r.p)(t,e,n&&(0,o.s)(n),s)}},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>r});const r={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>h,Z_:()=>d});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);var i=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],p=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,s=!1;const i=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),i.has(r)&&(a.schedule(r),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(l||v(),n.schedule(t,e,r)),t}),{}),h=c.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),f=(c.reduce(((t,e)=>(t[e]=()=>p[e].process(i.w),t)),{}),t=>p[t].process(i.w)),m=t=>{l=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,s(m))},v=()=>{l=!0,a=!0,u||s(m)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const o=r("dragHorizontal"),s=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>r});const r=t=>e=>(t(e),null)},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>o});var r=n(483);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?i(l,e,n+1):l}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=i(s,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(26),o=n(8673),s=n(7557);function i(t,e){var n;let i=(0,s.A)(t);return i!==o.h&&(i=r.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),o=n(8673);const s={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:o.h,WebkitFilter:o.h},i=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),o=n(5713),s=n(6442);const i={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,radius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,size:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,rotate:o.RW,rotateX:o.RW,rotateY:o.RW,rotateZ:o.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:o.RW,skewX:o.RW,skewY:o.RW,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.Fq,originX:o.$C,originY:o.$C,originZ:o.px,zIndex:s.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:s.e}},6442:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},9043:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var r=n(8313);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const i=s-n;i>=e&&(r.qY.read(o),t(i-e))};return r.Z_.read(o,!0),()=>r.qY.read(o)}},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},5430:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>r});const r=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},918:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7048:(t,e,n)=>{n.d(e,{Y:()=>o});var r=n(2819);const o=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var r=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var r=n(8370);function o(t){return(0,r.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var r=n(5951),o=n(8313),s=n(1065),i=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=r.w;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,o.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),o.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const 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,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(6077);const o={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),o=n(5713),s=n(6933),i=n(8810);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),o=n(4775),s=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):s.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var r=n(9043),o=n(8366),s=n(6933),i=n(8810);const a={...o.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},l={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,s.Nw)(o.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var r=n(6933);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[s,i,a,l]=o.match(r.KP);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var r=n(26),o=n(6933);const s=new Set(["brightness","contrast","saturate","opacity"]);function i(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=s.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,l={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var r=n(2890),o=n(8366),s=n(6933);const i="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,i),e.push(...u.map(r.$.parse)));const c=t.match(s.KP);return c&&(l=c.length,t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?i:a,o<n?r.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,s.HD)(t)&&((null===(e=t.match(s.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(p))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>i});var r=n(9043);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...o,transform:t=>(0,r.u)(0,1,t)},i={...o,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>i,px:()=>a,vh:()=>l,vw:()=>u});var r=n(6933);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),i=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>o,Nw:()=>r,dA:()=>s,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,o=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370);function e(t){return"object"==typeof t&&"function"==typeof t.start}var r=n(1930),o=n(7866),s=n(2819);function i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const a=t=>/^0[^.\s]+$/.test(t);var l=n(7048),u=n(1421),c=n(26),p=n(6914),d=n(2890),h=n(8366),f=n(5713);const m=t=>e=>e.test(t),v=[h.Rx,f.px,f.aQ,f.RW,f.vw,f.vh,{test:t=>"auto"===t,parse:t=>t}],g=t=>v.find(m(t)),y=[...v,d.$,c.P],w=t=>y.find(m(t));function b(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}function x(t,e,n){const r=t.getProps();return b(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.B)(n))}function A(t,e){const n=x(t,e);let{transitionEnd:r={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const e in s){V(t,e,(0,l.Y)(s[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}const T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(T);var S=n(7846);function k(t){return Boolean((0,S.i)(t)&&t.add)}const M=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),E="data-"+M("framerAppearId");var F=n(6405),O=n(8313);function R(t,e,n={}){var r;const o=x(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>$(t,o,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,o=1,s){const i=[],a=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(I).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(R(t,e,{...s,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function $(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(i=r);const c=[],p=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const r=t.getValue(e),o=l[e];if(!r||void 0===o||p&&B(p,e))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[E];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,r,O.Z_))}let a=r.start((0,F.Z)(e,r,o,t.shouldReduceMotion&&P.has(e)?{type:!1}:s));k(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&A(t,a)}))}function I(t,e){return t.sortNodePosition(e)}function B({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function D(t){return"string"==typeof t||Array.isArray(t)}var N=n(7921);const j=[N.r.Animate,N.r.InView,N.r.Focus,N.r.Hover,N.r.Tap,N.r.Drag,N.r.Exit],Z=[...j].reverse(),L=j.length;function W(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>R(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=R(t,e,n);else{const o="function"==typeof e?x(t,e,n.custom):e;r=$(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Y(t){let n=W(t);const r={[N.r.Animate]:q(!0),[N.r.InView]:q(),[N.r.Hover]:q(),[N.r.Tap]:q(),[N.r.Drag]:q(),[N.r.Focus]:q(),[N.r.Exit]:q()};let o=!0;const a=(e,n)=>{const r=x(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function l(l,u){const c=t.getProps(),p=t.getVariantContext(!0)||{},d=[],h=new Set;let f={},m=1/0;for(let n=0;n<L;n++){const v=Z[n],g=r[v],y=void 0!==c[v]?c[v]:p[v],w=D(y),b=v===u?g.isActive:null;!1===b&&(m=n);let x=y===p[v]&&y!==c[v]&&w;if(x&&o&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===b||!y&&!g.prevProp||e(y)||"boolean"==typeof y)continue;const V=H(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&w||n>m&&w;const C=Array.isArray(y)?y:[y];let T=C.reduce(a,{});!1===b&&(T={});const{prevResolvedValues:P={}}=g,S={...P,...T},k=t=>{A=!0,h.delete(t),g.needsAnimating[t]=!0};for(const t in S){const e=T[t],n=P[t];f.hasOwnProperty(t)||(e!==n?(0,s.C)(e)&&(0,s.C)(n)?!i(e,n)||V?k(t):g.protectedKeys[t]=!0:void 0!==e?k(t):h.add(t):void 0!==e&&h.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(f={...f,...T}),o&&t.blockInitialAnimation&&(A=!1),A&&!x&&d.push(...C.map((t=>({animation:t,options:{type:v,...l}}))))}if(h.size){const e={};h.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),d.push({animation:e})}let v=Boolean(d.length);return o&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),o=!1,v?n(d):Promise.resolve()}return{animateChanges:l,setActive:function(e,n,o){var s;if(r[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n;const i=l(o,e);for(const t in r)r[t].protectedKeys={};return i},setAnimateFunction:function(e){n=e(t)},getState:()=>r}}function H(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!i(e,t)}function q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var z=n(6295);const U={animation:(0,z.x)((({visualElement:n,animate:r})=>{n.animationState||(n.animationState=Y(n)),e(r)&&(0,t.useEffect)((()=>r.subscribe(n)),[r])})),exit:(0,z.x)((e=>{const{custom:n,visualElement:s}=e,[i,a]=(0,r.oO)(),l=(0,t.useContext)(o.O);(0,t.useEffect)((()=>{s.isPresent=i;const t=s.animationState&&s.animationState.setActive(N.r.Exit,!i,{custom:l&&l.custom||n});t&&!i&&t.then(a)}),[i])}))};var K=n(1876);var X=n(7815),_=n(5856);function J(t,e,n,r){return(o,s)=>{"touch"===o.type||(0,_.gD)()||(n&&t.animationState&&t.animationState.setActive(N.r.Hover,e),r&&r(o,s))}}const G=(t,e)=>!!e&&(t===e||G(t,e.parentElement));var Q=n(9531),tt=n(9820),et=n(409);function nt(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,et.Q)(n))}const rt=new WeakMap,ot=new WeakMap,st=t=>{const e=rt.get(t.target);e&&e(t)},it=t=>{t.forEach(st)};function at(t,e,n){const r=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const r=ot.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(it,{root:t,...e})),r[o]}(e);return rt.set(t,n),r.observe(t),()=>{rt.delete(t),r.unobserve(t)}}const lt={some:0,all:1};function ut(e,n,r,{root:o,margin:s,amount:i="some",once:a}){(0,t.useEffect)((()=>{if(!e||!r.current)return;const t={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof i?i:lt[i]};return at(r.current,t,(t=>{const{isIntersecting:e}=t;if(n.isInView===e)return;if(n.isInView=e,a&&!e&&n.hasEnteredView)return;e&&(n.hasEnteredView=!0),r.animationState&&r.animationState.setActive(N.r.InView,e);const o=r.getProps(),s=e?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[e,o,s,i])}function ct(e,n,r,{fallback:o=!0}){(0,t.useEffect)((()=>{e&&o&&requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(N.r.InView,!0)}))}),[e])}const pt={inView:(0,z.x)((function({visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:o,viewport:s={}}){const i=(0,t.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(n||r||o);s.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ct:ut)(a,i.current,e,s)})),tap:(0,z.x)((function({onTap:e,onTapStart:n,onTapCancel:r,whileTap:o,visualElement:s,...i}){const a=e||n||r||o,l=(0,t.useRef)(!1),u=(0,t.useRef)(null),c={passive:!(n||e||r||i.onPointerDown)};function p(){u.current&&u.current(),u.current=null}function d(){p(),l.current=!1;return s.getProps().whileTap&&s.animationState&&s.animationState.setActive(N.r.Tap,!1),!(0,_.gD)()}function h(t,e){var n,r,o,i;d()&&(G(s.current,t.target)?null===(i=(o=s.getProps()).onTap)||void 0===i||i.call(o,t,e):null===(r=(n=s.getProps()).onTapCancel)||void 0===r||r.call(n,t,e))}function f(t,e){var n,r;d()&&(null===(r=(n=s.getProps()).onTapCancel)||void 0===r||r.call(n,t,e))}function m(t,e){var n;const r=s.getProps();r.whileTap&&s.animationState&&s.animationState.setActive(N.r.Tap,!0),null===(n=r.onTapStart)||void 0===n||n.call(r,t,e)}const v=[Boolean(n),Boolean(e),Boolean(o),s],g=(0,t.useCallback)(((t,e)=>{p(),l.current||(l.current=!0,u.current=(0,tt.z)((0,X.a)(window,"pointerup",h,c),(0,X.a)(window,"pointercancel",f,c)),m(t,e))}),v);(0,X.m)(s,"pointerdown",a?g:void 0,c);const y=(0,t.useCallback)((()=>{const t=(0,K.E)(s.current,"keydown",(t=>{"Enter"!==t.key||l.current||(l.current=!0,u.current=(0,K.E)(s.current,"keyup",(()=>{"Enter"===t.key&&d()&&nt("up",s.getProps().onTap)}),c),nt("down",m))})),e=(0,K.E)(s.current,"blur",(()=>{t(),e(),l.current&&nt("cancel",f)}))}),v);(0,K.p)(s,"focus",a?y:void 0),(0,Q.z)(p)})),focus:(0,z.x)((function({whileFocus:e,visualElement:n}){const r=(0,t.useRef)(!1),{animationState:o}=n,s=(0,t.useCallback)((()=>{let t=!1;try{t=n.current.matches(":focus-visible")}catch(e){t=!0}t&&o&&(o.setActive(N.r.Focus,!0),r.current=!0)}),[o]),i=(0,t.useCallback)((()=>{r.current&&o&&(o.setActive(N.r.Focus,!1),r.current=!1)}),[o]);(0,K.p)(n,"focus",e?s:void 0),(0,K.p)(n,"blur",e?i:void 0)})),hover:(0,z.x)((function({onHoverStart:e,onHoverEnd:n,whileHover:r,visualElement:o}){(0,X.m)(o,"pointerenter",(0,t.useMemo)((()=>e||r?J(o,!0,Boolean(r),e):void 0),[e,Boolean(r),o]),{passive:!e}),(0,X.m)(o,"pointerleave",(0,t.useMemo)((()=>n||r?J(o,!1,Boolean(r),n):void 0),[e,Boolean(r),o]),{passive:!n})}))},dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ht=(t,e)=>T.indexOf(t)-T.indexOf(e);function ft(t){return t.startsWith("--")}const mt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var vt=n(4923);function gt(t,e,n,r){const{style:o,vars:s,transform:i,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,p=!0;for(const t in e){const n=e[t];if(ft(t)){s[t]=n;continue}const r=vt.j[t],u=mt(n,r);if(P.has(t)){if(!0,i[t]=u,a.push(t),!p)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,l[t]=u):o[t]=u}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,s){let i="";e.sort(ht);for(const n of e)`${dt[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),s?s(t,o?"":i):r&&o&&"none",i}(t,n,p,r):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var yt=n(798);function wt(t,{layout:e,layoutId:n}){return P.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!yt.P[t]||"opacity"===t)}function bt(t,e){const{style:n}=t,r={};for(const o in n)((0,S.i)(n[o])||e.style&&(0,S.i)(e.style[o])||wt(o,t))&&(r[o]=n[o]);return r}function xt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Vt=n(7557),At=n(8834),Ct=n(6978),Tt=n(9340);const Pt="undefined"!=typeof document,St=new Set(["width","height","top","left","right","bottom","x","y"]),kt=t=>St.has(t),Mt=t=>t===h.Rx||t===f.px;var Et;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Et||(Et={}));const Ft=(t,e)=>parseFloat(t.split(", ")[e]),Ot=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ft(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Ft(e[1],t):0}},Rt=new Set(["x","y","z"]),$t=T.filter((t=>!Rt.has(t)));const It={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Ot(4,13),y:Ot(5,14)},Bt=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(kt);let i=[],a=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],p=g(c);const d=e[o];let h;if((0,s.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],p=g(c);for(let n=e;n<t;n++)h?(0,Tt.k)(g(d[n])===h,"All keyframes must be of the same type"):(h=g(d[n]),(0,Tt.k)(h===p||Mt(p)&&Mt(h),"Keyframes must be of the same dimension as the current value"))}else h=g(d);if(p!==h)if(Mt(p)&&Mt(h)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&h===f.px&&(e[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==h?void 0:h.transform)&&(0===c||0===d)?0===c?u.set(h.transform(c)):e[o]=p.transform(d):(a||(i=function(t){const e=[];return $t.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(o),r[o]=void 0!==r[o]?r[o]:e[o],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:i}=s,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=It[t](r,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=It[n](l,s)})),t})(e,t,l);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Pt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Dt(t,e,n,r){return(t=>Object.keys(t).some(kt))(e)?Bt(t,e,n,r):{target:e,transitionEnd:r}}const Nt=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),jt={measureLayout:Nt(["layout","layoutId","drag"]),animation:Nt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Nt(["exit"]),drag:Nt(["drag","dragControls"]),focus:Nt(["whileFocus"]),hover:Nt(["whileHover","onHoverStart","onHoverEnd"]),tap:Nt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Nt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Nt(["whileInView","onViewportEnter","onViewportLeave"])};var Zt=n(1397),Lt=n(3491);const Wt={current:null},Yt={current:!1};var Ht=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function zt(t){return e(t.animate)||qt.some((e=>D(t[e])))}const Ut=Object.keys(jt),Kt=Ut.length,Xt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const _t=["initial",...j],Jt=_t.length;class Gt extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>O.Z_.render(this.render,!1,!0);const{latestValues:s,renderState:i}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=i,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=zt(e),this.isVariantNode=function(t){return Boolean(zt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&(0,S.i)(e)&&(e.set(s[t],!1),k(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===this.parent||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Yt.current||function(){if(Yt.current=!0,Pt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===this.projection||void 0===t||t.unmount(),O.qY.update(this.notifyUpdate),O.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===this.removeFromVariantTree||void 0===e||e.call(this),null===this.parent||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=P.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&O.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:e,...n},r,o,s,i,a){const l=[];for(let e=0;e<Kt;e++){const r=Ut[e],{isEnabled:o,Component:s}=jt[r];o(n)&&s&&l.push((0,t.createElement)(s,{key:r,...n,visualElement:this}))}if(!this.projection&&i){this.projection=new i(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:e,drag:r,dragConstraints:o,layoutScroll:l,layoutRoot:u}=n;this.projection.setOptions({layoutId:t,layout:e,alwaysMeasureLayout:Boolean(r)||o&&(0,Lt.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof e?e:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:u})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Zt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Xt.length;e++){const n=Xt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const s=e[o],i=n[o];if((0,S.i)(s))t.addValue(o,s),k(r)&&r.add(o);else if((0,S.i)(i))t.addValue(o,(0,u.B)(s,{owner:t})),k(r)&&r.remove(o);else if(i!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,u.B)(void 0!==e?e:s,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===this.props.variants||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===this.parent||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===this.parent||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===this.parent||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<Jt;t++){const e=_t[t],n=this.props[e];(D(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===n.variantChildren||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===this.valueSubscriptions.get(t)||void 0===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 n=this.values.get(t);return void 0===n&&void 0!==e&&((0,u.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===b(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,S.i)(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Ht.L),this.events[t].add(e)}notify(t,...e){var n;null===this.events[t]||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===t.style||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let s=function(t,e,n){var r;const o={};for(const s in t){const t=C(s,e);o[s]=void 0!==t?t:null===n.getValue(s)||void 0===r?void 0:r.get()}return o}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),s&&r(s)),o){!function(t,e,n){var r,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),i=s.length;if(i)for(let l=0;l<i;l++){const i=s[l],d=e[i];let h=null;Array.isArray(d)&&d[0],null===h&&(null!==(null!==n[i]&&void 0!==r?r:t.readValue(i))&&void 0!==o?o:e[i]),null!=h&&("string"==typeof h&&(/^\-?\d*\.?\d+$/.test(h)||a(h))?parseFloat(h):!w(h)&&c.P.test(d)&&(0,p.T)(i,d),t.addValue(i,(0,u.B)(h,{owner:t})),void 0===n[i]&&(n[i]=h),null!==h&&t.setBaseTarget(i,h))}}(this,n,s);const t=((t,e,n,r)=>{const o=(0,Ct.mH)(t,e,r);return Dt(t,o.target,n,o.transitionEnd)})(this,n,s,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class Qt extends Gt{readValueFromInstance(t,e){if(P.has(e)){const t=(0,Vt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),o=(ft(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,At.J)(t,e)}build(t,e,n,r){gt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return bt(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,S.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){xt(t,e,n,r)}}function te(t,e,n){return"string"==typeof t?t:f.px.transform(e+n*t)}const ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},ne={offset:"strokeDashoffset",array:"strokeDasharray"};function re(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:a=0,...l},u,c,p){if(gt(t,l,u,p),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:m}=t;d.transform&&(m&&(h.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==o||h.transform)&&(h.transformOrigin=function(t,e,n){return`${te(e,t.x,t.width)} ${te(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const s=o?ee:ne;t[s.offset]=f.px.transform(-r);const i=f.px.transform(e),a=f.px.transform(n);t[s.array]=`${i} ${a}`}(d,s,i,a,!1)}const oe=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"]);class se extends Gt{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return P.has(e)?(null===(0,Vt.A)(e)||void 0===n?void 0:n.default)||0:(oe.has(e)?e:M(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Zt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=bt(t,e);for(const r in t)((0,S.i)(t[r])||(0,S.i)(e[r]))&&(n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]);return n}(t,e)}build(t,e,n,r){re(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){xt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(oe.has(n)?n:M(n),e.attrs[n])}(t,e,0,r)}mount(t){var e;this.isSVGTag="string"==typeof t.tagName&&"svg"===e.toLowerCase(),super.mount(t)}}const ie=["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"]})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>s});var r=function(){},s=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Vt});var r=n(9340),s=n(1818);const o=!1;var i=n(8313),a=n(5222),c=n(9273);const u=t=>t*t,l=(0,c.M)(u),h=(0,a.o)(u);var p=n(2890),d=n(9043),f=n(5430);function m(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var v=n(4775),g=n(6077),y=n(5193);const b=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},w=[v.$,g.m,y.J];function x(t){const e=(n=t,w.find((t=>t.test(n))));var n;(0,r.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let s=e.parse(t);return e===y.J&&(s=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let s=0,o=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;s=m(a,r,t+1/3),o=m(a,r,t),i=m(a,r,t-1/3)}else s=o=i=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(s)),s}const V=(t,e)=>{const n=x(t),r=x(e),s={...n};return t=>(s.red=b(n.red,r.red,t),s.green=b(n.green,r.green,t),s.blue=b(n.blue,r.blue,t),s.alpha=(0,f.C)(n.alpha,r.alpha,t),g.m.transform(s))};var A=n(9820),P=n(26);function C(t,e){return"number"==typeof t?n=>(0,f.C)(t,e,n):p.$.test(t)?V(t,e):k(t,e)}const S=(t,e)=>{const n=[...t],r=n.length,s=t.map(((t,n)=>C(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=s[e](t);return n}},T=(t,e)=>{const n={...t,...e},r={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(r[s]=C(t[s],e[s]));return t=>{for(const e in r)n[e]=r[e](t);return n}},k=(t,e)=>{const n=P.P.createTransformer(e),s=(0,P.V)(t),o=(0,P.V)(e);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,A.z)(S(s.values,o.values),n):((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.`),n=>`${n>0?e:t}`)};var M=n(918);const E=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const r=[],s=n||("number"==typeof(o=t[0])?E:"string"==typeof o?p.$.test(o)?V:k:Array.isArray(o)?S:"object"==typeof o?T:E);var o;const i=t.length-1;for(let n=0;n<i;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,A.z)(t,o)}r.push(o)}return r}function O(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const i=t.length;(0,r.k)(i===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!s||!Array.isArray(s)||s.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=F(e,s,o),c=a.length,u=e=>{let n=0;if(c>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=(0,M.Y)(t[n],t[n+1],e);return a[n](r)};return n?e=>u((0,d.u)(t[0],t[i-1],e)):u}var $=n(2634);const R=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,r){if(t===e&&n===r)return $.Z;const s=e=>function(t,e,n,r,s){let o,i,a=0;do{i=e+(n-e)/2,o=R(i,r,s)-t,o>0?n=i:e=i}while(Math.abs(o)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:R(s(t),e,r)}var L=n(7110);const B=I(.33,1.53,.69,.99),D=(0,c.M)(B),N=(0,a.o)(D),j={linear:$.Z,easeIn:u,easeInOut:h,easeOut:l,circIn:L.Z7,circInOut:L.X7,circOut:L.Bn,backIn:D,backInOut:N,backOut:B,anticipate:t=>(t*=2)<1?.5*D(t):.5*(2-Math.pow(2,-10*(t-1)))},Z=t=>{if(Array.isArray(t)){(0,r.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,o]=t;return I(e,n,s,o)}return"string"==typeof t?((0,r.k)(void 0!==j[t],`Invalid easing type '${t}'`),j[t]):t};function W({keyframes:t,ease:e=h,times:n,duration:r=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(Z):Z(e),o={done:!1,value:t[0]},i=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),r);function a(){return O(i,t,{ease:Array.isArray(s)?s:(e=t,n=s,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let c=a();return{next:t=>(o.value=c(t),o.done=t>=r,o),flipTarget:()=>{t.reverse(),c=a()}}}const z=.001;function Y({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,i;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,d.u)(.05,1,a),t=(0,d.u)(.01,10,t/1e3),a<1?(o=e=>{const r=e*a,s=r*t,o=r-n,i=q(e,a),c=Math.exp(-s);return z-o/i*c},i=e=>{const r=e*a*t,s=r*n+n,i=Math.pow(a,2)*Math.pow(e,2)*t,c=Math.exp(-r),u=q(Math.pow(e,2),a);return(-o(e)+z>0?-1:1)*((s-i)*c)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const c=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(c,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function q(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const U=["duration","bounce"],K=["stiffness","damping","mass"];function X(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restDelta:e,restSpeed:n,...r}){let s=t[0],o=t[t.length-1];const i={done:!1,value:s},{stiffness:a,damping:c,mass:u,velocity:l,duration:h,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!X(t,K)&&X(t,U)){const n=Y(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let d=J,f=l?-l/1e3:0;const m=c/(2*Math.sqrt(a*u));function v(){const t=o-s,r=Math.sqrt(a/u)/1e3,i=Math.abs(t)<5;if(n||(n=i?.01:2),e||(e=i?.005:.5),m<1){const e=q(r,m);d=n=>{const s=Math.exp(-m*r*n);return o-s*((f+m*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)d=e=>o-Math.exp(-r*e)*(t+(f+r*t)*e);else{const e=r*Math.sqrt(m*m-1);d=n=>{const s=Math.exp(-m*r*n),i=Math.min(e*n,300);return o-s*((f+m*r*t)*Math.sinh(i)+e*t*Math.cosh(i))/e}}}return v(),{next:t=>{const r=d(t);if(p)i.done=t>=h;else{let s=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);s=(0,H.R)(r-d(e),t-e)}else s=0;const a=Math.abs(s)<=n,c=Math.abs(o-r)<=e;i.done=a&&c}return i.value=i.done?o:r,i},flipTarget:()=>{f=-f,[s,o]=[o,s],v()}}}_.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const J=t=>0;const G={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:s=.5,modifyTarget:o}){const i=t[0],a={done:!1,value:i};let c=n*e;const u=i+c,l=void 0===o?u:o(u);return l!==u&&(c=l-i),{next:t=>{const e=-c*Math.exp(-t/r);return a.done=!(e>s||e<-s),a.value=a.done?l:l+e,a},flipTarget:()=>{}}},keyframes:W,tween:W,spring:_};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>i.Z_.update(e,!0),stop:()=>i.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:r=0,repeatType:s="loop",repeatDelay:o=0,keyframes:i,autoplay:a=!0,onPlay:c,onStop:u,onComplete:l,onRepeat:h,onUpdate:p,type:d="keyframes",...f}){const m=n;let v,g,y=0,b=t,w=!1,x=!0;const V=G[i.length>2?"keyframes":d]||W,A=i[0],P=i[i.length-1];let C={done:!1,value:A};const{needsInterpolation:S}=V;S&&S(A,P)&&(g=O([0,100],[A,P],{clamp:!1}),i=[0,100]);const T=V({...f,duration:t,keyframes:i});function k(){y++,"reverse"===s?(x=y%2==0,n=function(t,e=0,n=0,r=!0){return r?Q(e+-t,e,n):e-(t-e)+n}(n,b,o,x)):(n=Q(n,b,o),"mirror"===s&&T.flipTarget()),w=!1,h&&h()}function M(t){x||(t=-t),n+=t,w||(C=T.next(Math.max(0,n)),g&&(C.value=g(C.value)),w=x?C.done:n<=0),p&&p(C.value),w&&(0===y&&(b=void 0!==b?b:n),y<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,b,o,x)&&k():(v&&v.stop(),l&&l()))}return a&&(c&&c(),v=e(M),v.start()),{stop:()=>{u&&u(),v&&v.stop()},set currentTime(t){n=m,M(t)},sample:e=>{n=m;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(M(0);s<=e;){const t=e-s;M(Math.min(t,r)),s+=r}return C}}}const nt=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,rt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function st(t){if(t)return Array.isArray(t)?nt(t):rt[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},it={},at={};for(const t in ot)at[t]=()=>(void 0===it[t]&&(it[t]=ot[t]()),it[t]);const ct=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:r,...s}){if(!(at.waapi()&&ct.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:u}=s;if("spring"===s.type||!(!(l=s.ease)||Array.isArray(l)||"string"==typeof l&&rt[l])){if(s.repeat===1/0)return;const t=et({...s,elapsed:0});let e={done:!1,value:o[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;o=n,a=r-10,u="linear"}var l;const h=function(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:c}={}){return t.animate({[e]:n,offset:c},{delay:r,duration:s,easing:st(a),fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),i.Z_.update((()=>h.cancel())),r&&r()},{get currentTime(){return h.currentTime||0},set currentTime(t){h.currentTime=t},stop:()=>{const{currentTime:e}=h;if(e){const n=et({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}i.Z_.update((()=>h.cancel()))}}}var lt=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const s=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:(0,lt.g)(s,-e)}:s()}var pt=n(5951);const dt=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ft=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mt=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:dt,y:dt,z:dt,rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scaleX:ft,scaleY:ft,scale:ft,opacity:mt,backgroundColor:mt,color:mt,default:ft},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},bt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var wt=n(6914),xt=n(7101);const Vt=(t,e,n,i={})=>a=>{const c=(0,xt.ev)(i,t)||{},u=c.delay||i.delay||0;let{elapsed:l=0}=i;l-=(0,s.w)(u);const h=function(t,e,n,r){const s=bt(e,n);let o=void 0!==r.from?r.from:t.get();return"none"===o&&s&&"string"==typeof n?o=(0,wt.T)(e,n):(0,xt.Fr)(o)&&"string"==typeof n?o=(0,xt.GZ)(n):!Array.isArray(n)&&(0,xt.Fr)(n)&&"string"==typeof o&&(n=(0,xt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,c),p=h[0],d=h[h.length-1],f=bt(t,p),m=bt(t,d);(0,r.K)(f===m,`You are trying to animate ${t} from "${p}" to "${d}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${d} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...c,elapsed:l,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{a(),c.onComplete&&c.onComplete()}};if(!f||!m||o||!1===c.type)return ht(v);if("inertia"===c.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:h,onComplete:p,onStop:d}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){m&&m.stop(),m=et({keyframes:[0,1],velocity:0,...t,driver:l,onUpdate:e=>{h&&h(e),t.onUpdate&&t.onUpdate(e)},onComplete:p,onStop:d})}function b(t){y({type:"spring",stiffness:i,damping:a,restDelta:c,...t})}if(v(f))b({velocity:e,keyframes:[f,g(f)]});else{let t=s*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,l;const h=t=>{a=l,l=t,e=(0,H.R)(t-a,pt.w.delta),(1===i&&t>r||-1===i&&t<r)&&b({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:o,power:s,restDelta:c,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>m&&m.stop()}}(v);if((0,xt.rw)(c)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,s.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,s.w)(v.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=ut(e,t,v);if(n)return n}return et(v)}},2819:(t,e,n)=>{n.d(e,{C:()=>r});const r=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>i,ev:()=>a,rw:()=>s});var r=n(6914);function s({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}function o(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function i(t){return"number"==typeof t?0:(0,r.T)("",t)}function a(t,e){return t[e]||t.default||t}},7110:(t,e,n)=>{n.d(e,{Bn:()=>i,X7:()=>a,Z7:()=>o});var r=n(5222),s=n(9273);const o=t=>1-Math.sin(Math.acos(t)),i=(0,s.M)(o),a=(0,r.o)(i)},5222:(t,e,n)=>{n.d(e,{o:()=>r});const r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>r});const r=t=>e=>1-t(1-e)},6949:(t,e,n)=>{function r(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}n.d(e,{E:()=>r})},6477:(t,e,n)=>{n.d(e,{a:()=>o});var r=n(6949),s=n(409);function o(t,e,n,o){return(0,r.E)(t,e,(0,s.s)(n),o)}},409:(t,e,n)=>{n.d(e,{Q:()=>s,s:()=>o});var r=n(2426);function s(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,r.D)(e)&&t(e,s(e))},2426:(t,e,n)=>{n.d(e,{D:()=>r});const r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>r});const r={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>d,Z_:()=>p});const r=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(s())),r);var i=n(5951);let a=!0,c=!1,u=!1;const l=["read","update","preRender","render","postRender"],h=l.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const c=a&&s,u=c?e:n;return o&&i.add(t),-1===u.indexOf(t)&&(u.push(t),c&&s&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:c=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),i.has(r)&&(a.schedule(r),t())}s=!1,o&&(o=!1,a.process(c))}}};return a}((()=>c=!0)),t)),{}),p=l.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,r=!1)=>(c||v(),n.schedule(t,e,r)),t}),{}),d=l.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),f=(l.reduce(((t,e)=>(t[e]=()=>h[e].process(i.w),t)),{}),t=>h[t].process(i.w)),m=t=>{c=!1,i.w.delta=a?r:Math.max(Math.min(t-i.w.timestamp,40),1),i.w.timestamp=t,u=!0,l.forEach(f),u=!1,c&&(a=!1,o(m))},v=()=>{c=!0,a=!0,u||o(m)}},5856:(t,e,n)=>{function r(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{gD:()=>i});const s=r("dragHorizontal"),o=r("dragVertical");function i(){const t=function(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=s();else{const t=s(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}},3609:(t,e,n)=>{n.d(e,{L:()=>r});class r{constructor(t){this.isMounted=!1,this.node=t}update(){}}},483:(t,e,n)=>{function r({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function s(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>s,i8:()=>r})},1397:(t,e,n)=>{n.d(e,{dO:()=>r});const r=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{P:()=>r});const r={}},8834:(t,e,n)=>{n.d(e,{J:()=>s});var r=n(483);function s(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}},6978:(t,e,n)=>{n.d(e,{mH:()=>a});var r=n(9340);function s(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i(t,e,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,c]=function(t){const e=o.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():s(c)?i(c,e,n+1):c}function a(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!s(e))return;const n=i(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!s(o))continue;const a=i(o,r);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(26),s=n(8673),o=n(7557);function i(t,e){let n=(0,o.A)(t);return n!==s.h&&(n=r.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},7557:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2890),s=n(8673);const o={...n(4923).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:s.h,WebkitFilter:s.h},i=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>i});var r=n(8366),s=n(5713),o=n(6442);const i={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o.e,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:o.e}},6442:(t,e,n)=>{n.d(e,{e:()=>r});const r={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>s,y4:()=>r})},9043:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>s});var r=n(8313);function s(t,e){const n=performance.now(),s=({timestamp:o})=>{const i=o-n;i>=e&&(r.qY.read(s),t(i-e))};return r.Z_.read(s,!0),()=>r.qY.read(s)}},3491:(t,e,n)=>{function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>r})},5430:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>r});const r=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>s});const r=(t,e)=>n=>e(t(n)),s=(...t)=>t.reduce(r)},918:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7048:(t,e,n)=>{n.d(e,{Y:()=>s});var r=n(2819);const s=t=>(0,r.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>s});var r=n(1180);class s{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let s=0;s<r;s++){const r=this.subscriptions[s];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>r});const r=t=>1e3*t},432:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},1421:(t,e,n)=>{n.d(e,{B:()=>c});var r=n(5951),s=n(8313),o=n(1065),i=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=r.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),s.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const 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,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>s});var r=n(6077);const s={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:r.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(8366),s=n(5713),o=n(6933),i=n(8810);const a={test:(0,i.i)("hsl","hue"),parse:(0,i.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+s.aQ.transform((0,o.Nw)(e))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var r=n(6933),s=n(4775),o=n(5193),i=n(6077);const a={test:t=>i.m.test(t)||s.$.test(t)||o.J.test(t),parse:t=>i.m.test(t)?i.m.parse(t):o.J.test(t)?o.J.parse(t):s.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?i.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>c});var r=n(9043),s=n(8366),o=n(6933),i=n(8810);const a={...s.Rx,transform:t=>Math.round((t=>(0,r.u)(0,255,t))(t))},c={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(s.Fq.transform(r))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>s});var r=n(6933);const s=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,r.HD)(s))return s;const[o,i,a,c]=s.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==c?parseFloat(c):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>c});var r=n(26),s=n(6933);const o=new Set(["brightness","contrast","saturate","opacity"]);function i(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(s.KP)||[];if(!r)return t;const i=n.replace(r,"");let a=o.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const a=/([a-z-]*)\(.*?\)/g,c={...r.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(i).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>p,V:()=>c});var r=n(2890),s=n(8366),o=n(6933);const i="${c}",a="${n}";function c(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,c=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,i),e.push(...u.map(r.$.parse)));const l=t.match(o.KP);return l&&(c=l.length,t=t.replace(o.KP,a),e.push(...l.map(s.Rx.parse))),{values:e,numColors:n,numNumbers:c,tokenised:t}}function u(t){return c(t).values}function l(t){const{values:e,numColors:n,tokenised:s}=c(t),u=e.length;return t=>{let e=s;for(let s=0;s<u;s++)e=e.replace(s<n?i:a,s<n?r.$.transform(t[s]):(0,o.Nw)(t[s]));return e}}const h=t=>"number"==typeof t?0:t;const p={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:l,getAnimatableNone:function(t){const e=u(t);return l(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>s,bA:()=>i});var r=n(9043);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,r.u)(0,1,t)},i={...s,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>l,RW:()=>o,aQ:()=>i,px:()=>a,vh:()=>c,vw:()=>u});var r=n(6933);const s=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),i=s("%"),a=s("px"),c=s("vh"),u=s("vw"),l={...i,parse:t=>i.parse(t)/100,transform:t=>i.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>s,Nw:()=>r,dA:()=>o,mj:()=>i});const r=t=>Math.round(1e5*t)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>r});const r=t=>Boolean(t&&t.getVelocity)}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{function t(t){return"object"==typeof t&&"function"==typeof t.start}var e=n(2819);function r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const s=t=>/^0[^.\s]+$/.test(t);var o=n(7048),i=n(1421),a=n(26),c=n(6914),u=n(2890),l=n(8366),h=n(5713);const p=t=>e=>e.test(t),d=[l.Rx,h.px,h.aQ,h.RW,h.vw,h.vh,{test:t=>"auto"===t,parse:t=>t}],f=t=>d.find(p(t)),m=[...d,u.$,a.P],v=t=>m.find(p(t));function g(t,e,n,r={},s={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,s)),e}function y(t,e,n){const r=t.getProps();return g(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function b(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,i.B)(n))}function w(t,e){const n=y(t,e);let{transitionEnd:r={},transition:s={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i){b(t,e,(0,o.Y)(i[e]))}}function x(t,e){if(!e)return;return(e[t]||e.default||e).from}const V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(V);var P=n(7846);function C(t){return Boolean((0,P.i)(t)&&t.add)}const S=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),T="data-"+S("framerAppearId");var k=n(6405),M=n(8313);function E(t,e,n={}){const r=y(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>F(t,r,n):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,c=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(O).forEach(((t,r)=>{t.notify("AnimationStart",e),i.push(E(t,e,{...o,delay:n+c(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(i)}(t,e,o+r,i,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,i]:[i,o];return t().then(e)}return Promise.all([o(),i(n.delay)])}function F(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const u=[],l=s&&t.animationState&&t.animationState.getState()[s];for(const e in a){const r=t.getValue(e),s=a[e];if(!r||void 0===s||l&&$(l,e))continue;const i={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[T];n&&(i.elapsed=window.HandoffAppearAnimations(n,e,r,M.Z_))}let h=r.start((0,k.Z)(e,r,s,t.shouldReduceMotion&&A.has(e)?{type:!1}:i));C(c)&&(c.add(e),h=h.then((()=>c.remove(e)))),u.push(h)}return Promise.all(u).then((()=>{i&&w(t,i)}))}function O(t,e){return t.sortNodePosition(e)}function $({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function R(t){return"string"==typeof t||Array.isArray(t)}var I=n(7921);const L=[I.r.Animate,I.r.InView,I.r.Focus,I.r.Hover,I.r.Tap,I.r.Drag,I.r.Exit],B=[...L].reverse(),D=L.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>E(t,e,n)));r=Promise.all(s)}else if("string"==typeof e)r=E(t,e,n);else{const s="function"==typeof e?y(t,e,n.custom):e;r=F(t,s,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function j(n){let s=N(n);const o={[I.r.Animate]:W(!0),[I.r.InView]:W(),[I.r.Hover]:W(),[I.r.Tap]:W(),[I.r.Drag]:W(),[I.r.Focus]:W(),[I.r.Exit]:W()};let i=!0;const a=(t,e)=>{const r=y(n,e);if(r){const{transition:e,transitionEnd:n,...s}=r;t={...t,...s,...n}}return t};function c(c,u){const l=n.getProps(),h=n.getVariantContext(!0)||{},p=[],d=new Set;let f={},m=1/0;for(let s=0;s<D;s++){const v=B[s],g=o[v],y=void 0!==l[v]?l[v]:h[v],b=R(y),w=v===u?g.isActive:null;!1===w&&(m=s);let x=y===h[v]&&y!==l[v]&&b;if(x&&i&&n.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...f},!g.isActive&&null===w||!y&&!g.prevProp||t(y)||"boolean"==typeof y)continue;const V=Z(g.prevProp,y);let A=V||v===u&&g.isActive&&!x&&b||s>m&&b;const P=Array.isArray(y)?y:[y];let C=P.reduce(a,{});!1===w&&(C={});const{prevResolvedValues:S={}}=g,T={...S,...C},k=t=>{A=!0,d.delete(t),g.needsAnimating[t]=!0};for(const t in T){const n=C[t],s=S[t];f.hasOwnProperty(t)||(n!==s?(0,e.C)(n)&&(0,e.C)(s)?!r(n,s)||V?k(t):g.protectedKeys[t]=!0:void 0!==n?k(t):d.add(t):void 0!==n&&d.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(f={...f,...C}),i&&n.blockInitialAnimation&&(A=!1),A&&!x&&p.push(...P.map((t=>({animation:t,options:{type:v,...c}}))))}if(d.size){const t={};d.forEach((e=>{const r=n.getBaseTarget(e);void 0!==r&&(t[e]=r)})),p.push({animation:t})}let v=Boolean(p.length);return i&&!1===l.initial&&!n.manuallyAnimateOnMount&&(v=!1),i=!1,v?s(p):Promise.resolve()}return{animateChanges:c,setActive:function(t,e,r){if(o[t].isActive===e)return Promise.resolve();n.variantChildren&&n.variantChildren.forEach((n=>{n.animationState&&n.animationState.setActive(t,e)})),o[t].isActive=e;const s=c(r,t);for(const t in o)o[t].protectedKeys={};return s},setAnimateFunction:function(t){s=t(n)},getState:()=>o}}function Z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var z=n(3609);class Y extends z.L{constructor(t){super(t),t.animationState||(t.animationState=j(t))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let q=0;class H extends z.L{constructor(){super(...arguments),this.id=q++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive(I.r.Exit,!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const U={animation:{Feature:Y},exit:{Feature:H}};var K=n(6477),X=n(9820),_=n(5856);function J(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return(0,K.a)(t.current,n,((n,s)=>{if("touch"===n.type||(0,_.gD)())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive(I.r.Hover,e),o[r]&&o[r](n,s)}),{passive:!t.getProps()[r]})}class G extends z.L{mount(){this.unmount=(0,X.z)(J(this.node,!0),J(this.node,!1))}unmount(){}}var Q=n(6949);class tt extends z.L{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(I.r.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(I.r.Focus,!1),this.isActive=!1)}mount(){this.unmount=(0,X.z)((0,Q.E)(this.node.current,"focus",(()=>this.onFocus())),(0,Q.E)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}var et=n(409);const nt=(t,e)=>!!e&&(t===e||nt(t,e.parentElement));var rt=n(2634);function st(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,et.Q)(n))}class ot extends z.L{constructor(){super(...arguments),this.removeStartListeners=rt.Z,this.removeEndListeners=rt.Z,this.removeAccessibleListeners=rt.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=(0,K.a)(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();nt(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),s=(0,K.a)(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,X.z)(r,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=(0,Q.E)(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,Q.E)(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&st("up",this.node.getProps().onTap)})),st("down",((t,e)=>{this.startPress(t,e)}))})),e=(0,Q.E)(this.node.current,"blur",(()=>{this.isPressing&&st("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=(0,X.z)(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(I.r.Tap,!1),!(0,_.gD)()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=(0,K.a)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=(0,Q.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,X.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const it=new WeakMap,at=new WeakMap,ct=t=>{const e=it.get(t.target);e&&e(t)},ut=t=>{t.forEach(ct)};function lt(t,e,n){const r=function({root:t,...e}){const n=t||document;at.has(n)||at.set(n,{});const r=at.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(ut,{root:t,...e})),r[s]}(e);return it.set(t,n),r.observe(t),()=>{it.delete(t),r.unobserve(t)}}const ht={some:0,all:1};class pt extends z.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive(I.r.InView,!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:s,fallback:o=!0}=t;if("undefined"==typeof IntersectionObserver)return void(o&&this.viewportFallback());const i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ht[r]};return lt(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(I.r.InView,e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}const dt={inView:{Feature:pt},tap:{Feature:ot},focus:{Feature:tt},hover:{Feature:G}},ft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mt=(t,e)=>V.indexOf(t)-V.indexOf(e);function vt(t){return t.startsWith("--")}const gt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var yt=n(4923);function bt(t,e,n,r){const{style:s,vars:o,transform:i,transformKeys:a,transformOrigin:c}=t;a.length=0;let u=!1,l=!1,h=!0;for(const t in e){const n=e[t];if(vt(t)){o[t]=n;continue}const r=yt.j[t],u=gt(n,r);if(A.has(t)){if(!0,i[t]=u,a.push(t),!h)continue;n!==(r.default||0)&&!1}else t.startsWith("origin")?(!0,c[t]=u):s[t]=u}if(e.transform||(u||r?s.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},s,o){let i="";e.sort(mt);for(const n of e)`${ft[n]||n}(${t[n]}) `;return n&&!t.z&&"translateZ(0)",i.trim(),o?o(t,s?"":i):r&&s&&"none",i}(t,n,h,r):s.transform&&(s.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;s.transformOrigin=`${t} ${e} ${n}`}}var wt=n(798);function xt(t,{layout:e,layoutId:n}){return A.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!wt.P[t]||"opacity"===t)}function Vt(t,e){const{style:n}=t,r={};for(const s in n)((0,P.i)(n[s])||e.style&&(0,P.i)(e.style[s])||xt(s,t))&&(r[s]=n[s]);return r}function At(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}var Pt=n(7557),Ct=n(8834),St=n(6978),Tt=n(9340);const kt="undefined"!=typeof document,Mt=new Set(["width","height","top","left","right","bottom","x","y"]),Et=t=>Mt.has(t),Ft=t=>t===l.Rx||t===h.px;var Ot;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Ot||(Ot={}));const $t=(t,e)=>parseFloat(t.split(", ")[e]),Rt=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return $t(s[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?$t(e[1],t):0}},It=new Set(["x","y","z"]),Lt=V.filter((t=>!It.has(t)));const Bt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Rt(4,13),y:Rt(5,14)},Dt=(t,n,r={},s={})=>{n={...n},s={...s};const o=Object.keys(n).filter(Et);let i=[],a=!1;const c=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let l=r[o],p=f(l);const d=n[o];let m;if((0,e.C)(d)){const t=d.length,e=null===d[0]?1:0;l=d[e],p=f(l);for(let n=e;n<t;n++)m?(0,Tt.k)(f(d[n])===m,"All keyframes must be of the same type"):(m=f(d[n]),(0,Tt.k)(m===p||Ft(p)&&Ft(m),"Keyframes must be of the same dimension as the current value"))}else m=f(d);if(p!==m)if(Ft(p)&&Ft(m)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?n[o]=parseFloat(d):Array.isArray(d)&&m===h.px&&(n[o]=d.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==m?void 0:m.transform)&&(0===l||0===d)?0===l?u.set(m.transform(l)):n[o]=p.transform(d):(a||(i=function(t){const e=[];return Lt.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),c.push(o),s[o]=void 0!==s[o]?s[o]:n[o],u.jump(d))})),c.length){const e=c.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Bt[t](r,o)})),e.render();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Bt[n](c,o)})),t})(n,t,c);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),kt&&null!==e&&window.scrollTo({top:e}),{target:r,transitionEnd:s}}return{target:n,transitionEnd:s}};function Nt(t,e,n,r){return(t=>Object.keys(t).some(Et))(e)?Dt(t,e,n,r):{target:e,transitionEnd:r}}var jt=n(1397),Zt=n(3491);const Wt={current:null},zt={current:!1};var Yt=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ht(e){return t(e.animate)||qt.some((t=>R(e[t])))}const Ut={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],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"]},Kt={};for(const t in Ut)Kt[t]={isEnabled:e=>Ut[t].some((t=>!!e[t]))};const Xt=Object.keys(Kt),_t=Xt.length,Jt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Gt=["initial",...L],Qt=Gt.length;class te extends class{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>M.Z_.render(this.render,!1,!0);const{latestValues:i,renderState:a}=s;this.latestValues=i,this.baseTarget={...i},this.initialValues=e.initial?{...i}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ht(e),this.isVariantNode=function(t){return Boolean(Ht(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==i[t]&&(0,P.i)(e)&&(e.set(i[t],!1),C(c)&&c.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&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))),zt.current||function(){if(zt.current=!0,kt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),M.qY.update(this.notifyUpdate),M.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=A.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,s,o){let i,a;for(let t=0;t<_t;t++){const n=Xt[t],{isEnabled:r,Feature:s,ProjectionNode:o,MeasureLayout:i}=Kt[n];o&&o,r(e)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),i&&i)}if(!this.projection&&i){this.projection=new i(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,Zt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:u})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,jt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Jt.length;e++){const n=Jt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],a=n[s];if((0,P.i)(o))t.addValue(s,o),C(r)&&r.add(s);else if((0,P.i)(a))t.addValue(s,(0,i.B)(o,{owner:t})),C(r)&&r.remove(s);else if(a!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,(0,i.B)(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Qt;t++){const n=Gt[t],r=this.props[n];(R(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&((0,i.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===g(this.props,n)||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,P.i)(s)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Yt.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{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:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let u=function(t,e,n){const r={};for(const s in t){const t=x(s,e);if(void 0!==t)r[s]=t;else{const t=n.getValue(s);t&&(r[s]=t.get())}}return r}(n,t||{},this);if(r&&(e&&r(e),n&&r(n),u&&r(u)),o){!function(t,e,n){var r,o;const u=Object.keys(e).filter((e=>!t.hasValue(e))),l=u.length;if(l)for(let h=0;h<l;h++){const l=u[h],p=e[l];let d=null;Array.isArray(p)&&p[0],null===d&&(null!==(null!==n[l]&&void 0!==r?r:t.readValue(l))&&void 0!==o?o:e[l]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||s(d))?parseFloat(d):!v(d)&&a.P.test(p)&&(0,c.T)(l,p),t.addValue(l,(0,i.B)(d,{owner:t})),void 0===n[l]&&(n[l]=d),null!==d&&t.setBaseTarget(l,d))}}(this,n,u);const t=((t,e,n,r)=>{const s=(0,St.mH)(t,e,r);return Nt(t,s.target,n,s.transitionEnd)})(this,n,u,e);t.transitionEnd,t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}{const r=(t,window.getComputedStyle(n)),s=(vt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Ct.J)(t,e)}build(t,e,n,r){bt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Vt(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,P.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){At(t,e,n,r)}}function ne(t,e,n){return"string"==typeof t?t:h.px.transform(e+n*t)}const re={offset:"stroke-dashoffset",array:"stroke-dasharray"},se={offset:"strokeDashoffset",array:"strokeDasharray"};function oe(t,{attrX:e,attrY:n,originX:r,originY:s,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...c},u,l,p){if(bt(t,c,u,p),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?re:se;t[o.offset]=h.px.transform(-r);const i=h.px.transform(e),a=h.px.transform(n);t[o.array]=`${i} ${a}`}(d,o,i,a,!1)}const ie=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"]);class ae extends te{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(A.has(e)){const t=(0,Pt.A)(e);return t&&t.default||0}return ie.has(e)?e:S(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,jt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=Vt(t,e);for(const r in t)((0,P.i)(t[r])||(0,P.i)(e[r]))&&(n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]);return n}(t,e)}build(t,e,n,r){oe(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){At(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(ie.has(n)?n:S(n),e.attrs[n])}(t,e,0,r)}mount(t){var e;this.isSVGTag="string"==typeof t.tagName&&"svg"===e.toLowerCase(),super.mount(t)}}const ce=["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"]})()})();
|