framer-motion 11.0.3 → 11.0.4
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/dom-entry.js +1 -1
- package/dist/cjs/{index-legacy-18f65389.js → index-legacy-21d7701e.js} +2 -3
- package/dist/cjs/index.js +2 -1
- package/dist/dom.js +1 -0
- package/dist/es/animation/animators/waapi/create-accelerated-animation.mjs +0 -1
- package/dist/es/projection/node/create-projection-node.mjs +1 -0
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +3 -3
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +3 -3
- package/package.json +2 -2
- package/dist/cjs/index-legacy-777cef1e.js +0 -5719
package/dist/cjs/dom-entry.js
CHANGED
|
@@ -2131,7 +2131,6 @@ const acceleratedValues = new Set([
|
|
|
2131
2131
|
"clipPath",
|
|
2132
2132
|
"filter",
|
|
2133
2133
|
"transform",
|
|
2134
|
-
"backgroundColor",
|
|
2135
2134
|
]);
|
|
2136
2135
|
/**
|
|
2137
2136
|
* 10ms is chosen here as it strikes a balance between smooth
|
|
@@ -2750,7 +2749,7 @@ class MotionValue {
|
|
|
2750
2749
|
* This will be replaced by the build step with the latest version number.
|
|
2751
2750
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
2752
2751
|
*/
|
|
2753
|
-
this.version = "11.0.
|
|
2752
|
+
this.version = "11.0.4";
|
|
2754
2753
|
/**
|
|
2755
2754
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
2756
2755
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -3978,7 +3977,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
3978
3977
|
* and warn against mismatches.
|
|
3979
3978
|
*/
|
|
3980
3979
|
if (process.env.NODE_ENV === "development") {
|
|
3981
|
-
warnOnce(nextValue.version === "11.0.
|
|
3980
|
+
warnOnce(nextValue.version === "11.0.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 11.0.4 may not work as expected.`);
|
|
3982
3981
|
}
|
|
3983
3982
|
}
|
|
3984
3983
|
else if (isMotionValue(prevValue)) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var indexLegacy = require('./index-legacy-
|
|
6
|
+
var indexLegacy = require('./index-legacy-21d7701e.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -4254,6 +4254,7 @@ const defaultLayoutTransition = {
|
|
|
4254
4254
|
ease: [0.4, 0, 0.1, 1],
|
|
4255
4255
|
};
|
|
4256
4256
|
const userAgentContains = (string) => typeof navigator !== "undefined" &&
|
|
4257
|
+
navigator.userAgent &&
|
|
4257
4258
|
navigator.userAgent.toLowerCase().includes(string);
|
|
4258
4259
|
/**
|
|
4259
4260
|
* Measured bounding boxes must be rounded in Safari and
|
package/dist/dom.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={})}(this,(function(t){"use strict";const e=t=>t,n=!1,r=!1;class s{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const o=["prepare","read","update","preRender","render","postRender"];const{schedule:i,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new s,n=new s,r=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(t,s=!1,i=!1)=>{const l=i&&o,u=l?e:n;return s&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:s=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(l.schedule(r),t()),r(s)}o=!1,i&&(i=!1,l.process(s))}}};return l}(()=>n=!0),t),{}),l=t=>{a[t].process(i)},u=()=>{const s=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,o.forEach(l),i.isProcessing=!1,n&&e&&(r=!1,t(u))};return{schedule:o.reduce((e,s)=>{const o=a[s];return e[s]=(e,s=!1,a=!1)=>(n||(n=!0,r=!0,i.isProcessing||t(u)),o.schedule(e,s,a)),e},{}),cancel:t=>o.forEach(e=>a[e].cancel(t)),state:i,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:e,!0);function c(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class h{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>c(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}}function d(t,e){return e?t*(1e3/e):0}let f;function p(){f=void 0}const m={now:()=>(void 0===f&&m.set(l.isProcessing||r?l.timestamp:performance.now()),f),set:t=>{f=t,queueMicrotask(p)}};class g{constructor(t,e={}){var n;this.version="11.0.4",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=m.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=m.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new h);const n=this.events[t].add(e);return"change"===t?()=>{n(),i.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=m.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return d(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function y(t,e){return new g(t,e)}let v=e,w=e;function b(t,e,n){var r;if("string"==typeof t){let s=document;e&&(w(Boolean(e.current)),s=e.current),n?(null!==(r=n[t])&&void 0!==r||(n[t]=s.querySelectorAll(t)),t=n[t]):t=s.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}const x=new WeakMap;function V(t,e){let n;const r=()=>{const{currentTime:r}=e,s=(null===r?0:r.value)/100;n!==s&&t(s),n=s};return i.update(r,!0),()=>a(r)}function A(t){let e;return()=>(void 0===e&&(e=t()),e)}const M=A(()=>void 0!==window.ScrollTimeline);class S{constructor(t){this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(e=>{if(!M()||!e.attachTimeline)return e.pause(),V(t=>{e.time=e.duration*t},t);e.attachTimeline(t)});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}stop(){this.runAll("stop")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],C=new Set(k),T=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),E="data-"+T("framerAppearId"),P=t=>1e3*t,O=t=>t/1e3,F=!1,B=t=>Array.isArray(t)&&"number"==typeof t[0];function I(t){return Boolean(!t||"string"==typeof t&&W[t]||B(t)||Array.isArray(t)&&t.every(I))}const L=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,W={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:L([0,.65,.55,1]),circOut:L([.55,0,1,.45]),backIn:L([.31,.01,.66,-.59]),backOut:L([.33,1.53,.69,.99])};function R(t){if(t)return B(t)?L(t):Array.isArray(t)?t.map(R):W[t]}const N=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function j(t,n,r,s){if(t===n&&r===s)return e;const o=e=>function(t,e,n,r,s){let o,i,a=0;do{i=e+(n-e)/2,o=N(i,r,s)-t,o>0?n=i:e=i}while(Math.abs(o)>1e-7&&++a<12);return i}(e,0,1,t,r);return t=>0===t||1===t?t:N(o(t),n,s)}const D=j(.42,0,1,1),z=j(0,0,.58,1),H=j(.42,0,.58,1),$=t=>Array.isArray(t)&&"number"!=typeof t[0],U=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,q=t=>e=>1-t(1-e),Y=t=>1-Math.sin(Math.acos(t)),X=q(Y),Z=U(Y),G=j(.33,1.53,.69,.99),K=q(G),_=U(K),J=t=>(t*=2)<1?.5*K(t):.5*(2-Math.pow(2,-10*(t-1))),Q={linear:e,easeIn:D,easeInOut:H,easeOut:z,circIn:Y,circInOut:Z,circOut:X,backIn:K,backInOut:_,backOut:G,anticipate:J},tt=t=>{if(Array.isArray(t)){w(4===t.length);const[e,n,r,s]=t;return j(e,n,r,s)}return"string"==typeof t?Q[t]:t},et=t=>Math.round(1e5*t)/1e5,nt=/(-)?([\d]*\.?[\d])+/g,rt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,st=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ot(t){return"string"==typeof t}const it=(t,e,n)=>Math.min(Math.max(n,t),e),at={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},lt={...at,transform:t=>it(0,1,t)},ut={...at,default:1},ct=(t,e)=>n=>Boolean(ot(n)&&st.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ht=(t,e,n)=>r=>{if(!ot(r))return r;const[s,o,i,a]=r.match(nt);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},dt={...at,transform:t=>Math.round((t=>it(0,255,t))(t))},ft={test:ct("rgb","red"),parse:ht("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+dt.transform(t)+", "+dt.transform(e)+", "+dt.transform(n)+", "+et(lt.transform(r))+")"};const pt={test:ct("#"),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:ft.transform},mt=t=>({test:e=>ot(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),gt=mt("deg"),yt=mt("%"),vt=mt("px"),wt=mt("vh"),bt=mt("vw"),xt={...yt,parse:t=>yt.parse(t)/100,transform:t=>yt.transform(100*t)},Vt={test:ct("hsl","hue"),parse:ht("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+yt.transform(et(e))+", "+yt.transform(et(n))+", "+et(lt.transform(r))+")"},At={test:t=>ft.test(t)||pt.test(t)||Vt.test(t),parse:t=>ft.test(t)?ft.parse(t):Vt.test(t)?Vt.parse(t):pt.parse(t),transform:t=>ot(t)?t:t.hasOwnProperty("red")?ft.transform(t):Vt.transform(t)},Mt=(t,e,n)=>-n*t+n*e+t;function St(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}const kt=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},Ct=[pt,ft,Vt];function Tt(t){const e=(n=t,Ct.find(t=>t.test(n)));var n;let r=e.parse(t);return e===Vt&&(r=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=St(a,r,t+1/3),o=St(a,r,t),i=St(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}}(r)),r}const Et=(t,e)=>{const n=Tt(t),r=Tt(e),s={...n};return t=>(s.red=kt(n.red,r.red,t),s.green=kt(n.green,r.green,t),s.blue=kt(n.blue,r.blue,t),s.alpha=Mt(n.alpha,r.alpha,t),ft.transform(s))},Pt=(t,e)=>n=>e(t(n)),Ot=(...t)=>t.reduce(Pt),Ft=t=>e=>"string"==typeof e&&e.startsWith(t),Bt=Ft("--"),It=Ft("var(--");const Lt={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:e},Wt={regex:rt,countKey:"Colors",token:"${c}",parse:At.parse},Rt={regex:nt,countKey:"Numbers",token:"${n}",parse:at.parse};function Nt(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function jt(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Nt(n,Lt),Nt(n,Wt),Nt(n,Rt),n}function Dt(t){return jt(t).values}function zt(t){const{values:e,numColors:n,numVars:r,tokenised:s}=jt(t),o=e.length;return t=>{let e=s;for(let s=0;s<o;s++)e=s<r?e.replace(Lt.token,t[s]):s<r+n?e.replace(Wt.token,At.transform(t[s])):e.replace(Rt.token,et(t[s]));return e}}const Ht=t=>"number"==typeof t?0:t;const $t={test:function(t){var e,n;return isNaN(t)&&ot(t)&&((null===(e=t.match(nt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(rt))||void 0===n?void 0:n.length)||0)>0},parse:Dt,createTransformer:zt,getAnimatableNone:function(t){const e=Dt(t);return zt(t)(e.map(Ht))}},Ut=(t,e)=>n=>""+(n>0?e:t);function qt(t,e){return"number"==typeof t?n=>Mt(t,e,n):At.test(t)?Et(t,e):t.startsWith("var(")?Ut(t,e):Zt(t,e)}const Yt=(t,e)=>{const n=[...t],r=n.length,s=t.map((t,n)=>qt(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=s[e](t);return n}},Xt=(t,e)=>{const n={...t,...e},r={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(r[s]=qt(t[s],e[s]));return t=>{for(const e in r)n[e]=r[e](t);return n}},Zt=(t,e)=>{const n=$t.createTransformer(e),r=jt(t),s=jt(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Ot(Yt(r.values,s.values),n):Ut(t,e)},Gt=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Kt=(t,e)=>n=>Mt(t,e,n);function _t(t,n,r){const s=[],o=r||("number"==typeof(i=t[0])?Kt:"string"==typeof i?At.test(i)?Et:Zt:Array.isArray(i)?Yt:"object"==typeof i?Xt:Kt);var i;const a=t.length-1;for(let r=0;r<a;r++){let i=o(t[r],t[r+1]);if(n){const t=Array.isArray(n)?n[r]||e:n;i=Ot(t,i)}s.push(i)}return s}function Jt(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(w(o===e.length),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=_t(e,r,s),a=i.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=Gt(t[n],t[n+1],e);return i[n](r)};return n?e=>l(it(t[0],t[o-1],e)):l}function Qt(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=Gt(0,e,r);t.push(Mt(n,1,s))}}function te(t){const e=[0];return Qt(e,t.length-1),e}function ee({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=$(r)?r.map(tt):tt(r),o={done:!1,value:e[0]},i=Jt(function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:te(e),t),e,{ease:Array.isArray(s)?s:(a=e,l=s,a.map(()=>l||H).splice(0,a.length-1))});var a,l;return{calculatedDuration:t,next:e=>(o.value=i(e),o.done=e>=t,o)}}function ne(t,e,n){const r=Math.max(e-5,0);return d(n-t(r),e-r)}function re({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;v(t<=P(10));let i=1-e;i=it(.05,1,i),t=it(.01,10,O(t)),i<1?(s=e=>{const r=e*i,s=r*t;return.001-(r-n)/se(e,i)*Math.exp(-s)},o=e=>{const r=e*i*t,o=r*n+n,a=Math.pow(i,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=se(Math.pow(e,2),i);return(.001-s(e)>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,o,5/t);if(t=P(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*i*Math.sqrt(r*e),duration:t}}}function se(t,e){return t*Math.sqrt(1-e*e)}const oe=["duration","bounce"],ie=["stiffness","damping","mass"];function ae(t,e){return e.some(e=>void 0!==t[e])}function le({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ae(t,ie)&&ae(t,oe)){const n=re(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-O(r.velocity||0)}),f=h||0,p=l/(2*Math.sqrt(a*u)),m=o-s,g=O(Math.sqrt(a/u)),y=Math.abs(m)<5;let v;if(n||(n=y?.01:2),e||(e=y?.005:.5),p<1){const t=se(g,p);v=e=>{const n=Math.exp(-p*g*e);return o-n*((f+p*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===p)v=t=>o-Math.exp(-g*t)*(m+(f+g*m)*t);else{const t=g*Math.sqrt(p*p-1);v=e=>{const n=Math.exp(-p*g*e),r=Math.min(t*e,300);return o-n*((f+p*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:d&&c||null,next:t=>{const r=v(t);if(d)i.done=t>=c;else{let s=f;0!==t&&(s=p<1?ne(v,t,r):0);const a=Math.abs(s)<=n,l=Math.abs(o-r)<=e;i.done=a&&l}return i.value=i.done?o:r,i}}}function ue({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},f=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let p=n*e;const m=h+p,g=void 0===i?m:i(m);g!==m&&(p=g-h);const y=t=>-p*Math.exp(-t/r),v=t=>g+y(t),w=t=>{const e=y(t),n=v(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let b,x;const V=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,x=le({keyframes:[d.value,f(d.value)],velocity:ne(v,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,w(t),V(t)),void 0!==b&&t>b?x.next(t-b):(!e&&w(t),d)}}}const ce=t=>{const e=({timestamp:e})=>t(e);return{start:()=>i.update(e,!0),stop:()=>a(e),now:()=>l.isProcessing?l.timestamp:m.now()}};function he(t){let e=0;let n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}const de={decay:ue,inertia:ue,tween:ee,keyframes:ee,spring:le};function fe({autoplay:t=!0,delay:e=0,driver:n=ce,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:h,...d}){let f,p,m=1,g=!1;const y=()=>{p=new Promise(t=>{f=t})};let v;y();const w=de[s]||ee;let b;w!==ee&&"number"!=typeof r[0]&&(b=Jt([0,100],r,{clamp:!1}),r=[0,100]);const x=w({...d,keyframes:r});let V;"mirror"===a&&(V=w({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let A="idle",M=null,S=null,k=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=he(x));const{calculatedDuration:C}=x;let T=1/0,E=1/0;null!==C&&(T=C+i,E=T*(o+1)-i);let F=0;const B=t=>{if(null===S)return;m>0&&(S=Math.min(S,t)),m<0&&(S=Math.min(t-E/m,S)),F=null!==M?M:Math.round(t-S)*m;const n=F-e*(m>=0?1:-1),s=m>=0?n<0:n>E;F=Math.max(n,0),"finished"===A&&null===M&&(F=E);let l=F,u=x;if(o){const t=Math.min(F,E)/T;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,o+1);Boolean(e%2)&&("reverse"===a?(n=1-n,i&&(n-=i/T)):"mirror"===a&&(u=V)),l=it(0,1,n)*T}const c=s?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:d}=c;s||null===C||(d=m>=0?F>=E:F<=0);const f=null===M&&("finished"===A||"running"===A&&d);return h&&h(c.value),f&&W(),c},I=()=>{v&&v.stop(),v=void 0},L=()=>{A="idle",I(),f(),y(),S=k=null},W=()=>{A="finished",c&&c(),I(),f()},R=()=>{if(g)return;v||(v=n(B));const t=v.now();l&&l(),null!==M?S=t-M:S&&"finished"!==A||(S=t),"finished"===A&&y(),k=S,M=null,A="running",v.start()};t&&R();const N={then:(t,e)=>p.then(t,e),get time(){return O(F)},set time(t){t=P(t),F=t,null===M&&v&&0!==m?S=v.now()-t/m:M=t},get duration(){const t=null===x.calculatedDuration?he(x):x.calculatedDuration;return O(t)},get speed(){return m},set speed(t){t!==m&&v&&(m=t,N.time=O(F))},get state(){return A},play:R,pause:()=>{A="paused",M=F},stop:()=>{g=!0,"idle"!==A&&(A="idle",u&&u(),L())},cancel:()=>{null!==k&&B(k),L()},complete:()=>{A="finished"},sample:t=>(S=0,B(t))};return N}const pe=A(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),me=new Set(["opacity","clipPath","filter","transform"]);function ge(t,n,{onUpdate:r,onComplete:s,...o}){if(!(pe()&&me.has(n)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let l,u,c=!1,h=!1;const d=()=>{u=new Promise(t=>{l=t})};d();let{keyframes:f,duration:p=300,ease:m,times:g}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!I(e.ease))(n,o)){const t=fe({...o,repeat:0,delay:0});let e={done:!1,value:f[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;g=void 0,f=n,p=r-10,m="linear"}const y=function(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=R(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,n,f,{...o,duration:p,ease:m,times:g}),v=()=>{h=!1,y.cancel()},w=()=>{h=!0,i.update(v),l(),d()};y.onfinish=()=>{h||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(f,o)),s&&s(),w())};return{then:(t,e)=>u.then(t,e),attachTimeline:t=>(y.timeline=t,y.onfinish=null,e),get time(){return O(y.currentTime||0)},set time(t){y.currentTime=P(t)},get speed(){return y.playbackRate},set speed(t){y.playbackRate=t},get duration(){return O(p)},play:()=>{c||(y.play(),a(v))},pause:()=>y.pause(),stop:()=>{if(c=!0,"idle"===y.playState)return;const{currentTime:e}=y;if(e){const n=fe({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}w()},complete:()=>{h||y.finish()},cancel:w}}const ye={type:"spring",stiffness:500,damping:25,restSpeed:10},ve={type:"keyframes",duration:.8},we={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},be=(t,{keyframes:e})=>e.length>2?ve:C.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ye:we,xe=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!$t.test(e)&&"0"!==e||e.startsWith("url("))),Ve=new Set(["brightness","contrast","saturate","opacity"]);function Ae(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(nt)||[];if(!r)return t;const s=n.replace(r,"");let o=Ve.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const Me=/([a-z-]*)\(.*?\)/g,Se={...$t,getAnimatableNone:t=>{const e=t.match(Me);return e?e.map(Ae).join(" "):t}},ke={...at,transform:Math.round},Ce={borderWidth:vt,borderTopWidth:vt,borderRightWidth:vt,borderBottomWidth:vt,borderLeftWidth:vt,borderRadius:vt,radius:vt,borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomRightRadius:vt,borderBottomLeftRadius:vt,width:vt,maxWidth:vt,height:vt,maxHeight:vt,size:vt,top:vt,right:vt,bottom:vt,left:vt,padding:vt,paddingTop:vt,paddingRight:vt,paddingBottom:vt,paddingLeft:vt,margin:vt,marginTop:vt,marginRight:vt,marginBottom:vt,marginLeft:vt,rotate:gt,rotateX:gt,rotateY:gt,rotateZ:gt,scale:ut,scaleX:ut,scaleY:ut,scaleZ:ut,skew:gt,skewX:gt,skewY:gt,distance:vt,translateX:vt,translateY:vt,translateZ:vt,x:vt,y:vt,z:vt,perspective:vt,transformPerspective:vt,opacity:lt,originX:xt,originY:xt,originZ:vt,zIndex:ke,fillOpacity:lt,strokeOpacity:lt,numOctaves:ke},Te={...Ce,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:Se,WebkitFilter:Se},Ee=t=>Te[t];function Pe(t,e){let n=Ee(t);return n!==Se&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Oe=t=>/^0[^.\s]+$/.test(t);function Fe(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Oe(t):void 0}function Be(t,e){return t[e]||t.default||t}const Ie=(t,r,s,o={})=>i=>{const a=Be(o,t)||{},l=a.delay||o.delay||0;let{elapsed:u=0}=o;u-=P(l);const c=function(t,e,n,r){const s=xe(e,n);let o;o=Array.isArray(n)?[...n]:[null,n];const i=void 0!==r.from?r.from:t.get();let a=void 0;const l=[];for(let t=0;t<o.length;t++)null===o[t]&&(o[t]=0===t?i:o[t-1]),Fe(o[t])&&l.push(t),"string"==typeof o[t]&&"none"!==o[t]&&"0"!==o[t]&&(a=o[t]);if(s&&l.length&&a)for(let t=0;t<l.length;t++){o[l[t]]=Pe(e,a)}return o}(r,t,s,a),h=c[0],d=c[c.length-1],f=xe(t,h),p=xe(t,d);let m={keyframes:c,velocity:r.getVelocity(),ease:"easeOut",...a,delay:-u,onUpdate:t=>{r.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)||(m={...m,...be(t,m)}),m.duration&&(m.duration=P(m.duration)),m.repeatDelay&&(m.repeatDelay=P(m.repeatDelay)),!f||!p||F||!1===a.type||n)return function({keyframes:t,delay:n,onUpdate:r,onComplete:s}){const o=()=>(r&&r(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:e,pause:e,stop:e,then:t=>(t(),Promise.resolve()),cancel:e,complete:e});return n?fe({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(F?{...m,delay:0}:m);if(!o.isHandoff&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate){const e=ge(r,t,m);if(e)return e}return fe(m)},Le=t=>Boolean(t&&t.getVelocity);function We(t){return Boolean(Le(t)&&t.add)}const Re=t=>/^\-?\d*\.?\d+$/.test(t),Ne=t=>Array.isArray(t),je=t=>e=>e.test(t),De=[at,vt,yt,gt,bt,wt,{test:t=>"auto"===t,parse:t=>t}],ze=t=>De.find(je(t)),He=[...De,At,$t];function $e(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 Ue(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,y(n))}function qe(t,e){const n=function(t,e,n){const r=t.getProps();return $e(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))}(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const e in o){Ue(t,e,(i=o[e],Ne(i)?i[i.length-1]||0:i))}var i}function Ye(t,e){if(!e)return;return(e[t]||e.default||e).from}function Xe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function Ze(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function Ge(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(o=r);const c=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const e in l){const r=t.getValue(e),s=l[e];if(!r||void 0===s||h&&Xe(h,e))continue;const a={delay:n,elapsed:0,...Be(o||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[E];if(n){const t=window.HandoffAppearAnimations(n,e,r,i);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!Ze(r,s);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(Ie(e,r,s,t.shouldReduceMotion&&C.has(e)?{type:!1}:a));const f=r.animation;We(u)&&(u.add(e),f.then(()=>u.remove(e))),c.push(f)}return a&&Promise.all(c).then(()=>{a&&qe(t,a)}),c}const Ke={};function _e(t,{layout:e,layoutId:n}){return C.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ke[t]||"opacity"===t)}function Je(t,e){const{style:n}=t,r={};for(const s in n)(Le(n[s])||e.style&&Le(e.style[s])||_e(s,t))&&(r[s]=n[s]);return r}const Qe=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tn(t,e,n=1){const[r,s]=function(t){const e=Qe.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const t=o.trim();return Re(t)?parseFloat(t):t}return It(s)?tn(s,e,n+1):s}const en="undefined"!=typeof document,nn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rn=t=>nn.has(t),sn=t=>t===at||t===vt,on=(t,e)=>parseFloat(t.split(", ")[e]),an=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return on(s[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?on(e[1],t):0}},ln=new Set(["x","y","z"]),un=k.filter(t=>!ln.has(t));const cn={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:an(4,13),y:an(5,14)};cn.translateX=cn.x,cn.translateY=cn.y;const hn=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(rn);let o=[],i=!1;const a=[];if(s.forEach(s=>{const l=t.getValue(s);if(!t.hasValue(s))return;let u=n[s],c=ze(u);const h=e[s];let d;if(Ne(h)){const t=h.length,e=null===h[0]?1:0;u=h[e],c=ze(u);for(let n=e;n<t&&null!==h[n];n++)d?w(ze(h[n])===d):d=ze(h[n])}else d=ze(h);if(c!==d)if(sn(c)&&sn(d)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof h?e[s]=parseFloat(h):Array.isArray(h)&&d===vt&&(e[s]=h.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==d?void 0:d.transform)&&(0===u||0===h)?0===u?l.set(d.transform(u)):e[s]=c.transform(h):(i||(o=function(t){const e=[];return un.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),i=!0),a.push(s),r[s]=void 0!==r[s]?r[s]:e[s],l.jump(h))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,s=((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]=cn[t](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=cn[n](l,o)}),t})(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),en&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}return{target:e,transitionEnd:r}};function dn(t,e,n,r){return(t=>Object.keys(t).some(rn))(e)?hn(t,e,n,r):{target:e,transitionEnd:r}}const fn=(t,e,n,r)=>{const s=function(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(!It(e))return;const n=tn(e,r);n&&t.set(n)});for(const t in e){const s=e[t];if(!It(s))continue;const o=tn(s,r);o&&(e[t]=o,n||(n={}),void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}(t,e,r);return dn(t,e=s.target,n,r=s.transitionEnd)};const pn={current:null},mn={current:!1};function gn(t){return"string"==typeof t||Array.isArray(t)}const yn=["initial","animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"];function vn(t){return null!==(e=t.animate)&&"object"==typeof e&&"function"==typeof e.start||yn.some(e=>gn(t[e]));var e}const wn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},bn={};for(const t in wn)bn[t]={isEnabled:e=>wn[t].some(t=>!!e[t])};const xn=Object.keys(bn),Vn=xn.length,An=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Mn=yn.length;class Sn 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=()=>i.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=vn(e),this.isVariantNode=function(t){return Boolean(vn(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{});for(const t in c){const e=c[t];void 0!==a[t]&&Le(e)&&(e.set(a[t],!1),We(u)&&u.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,x.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),mn.current||function(){if(mn.current=!0,en)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>pn.current=t.matches;t.addListener(e),e()}else pn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||pn.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){x.delete(this.current),this.projection&&this.projection.unmount(),a(this.notifyUpdate),a(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=C.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&i.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){let o,i;for(let t=0;t<Vn;t++){const n=xn[t],{isEnabled:r,Feature:s,ProjectionNode:a,MeasureLayout:l}=bn[n];a&&(o=a),r(e)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),l&&(i=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:i,layoutScroll:l,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||i&&(a=i,a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}var a;return i}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(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):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<An.length;e++){const n=An[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],i=n[s];if(Le(o))t.addValue(s,o),We(r)&&r.add(s);else if(Le(i))t.addValue(s,y(o,{owner:t})),We(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,y(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<Mn;t++){const n=yn[t],r=this.props[n];(gn(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&&(n=y(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e: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===(e=$e(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||Le(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 h),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},r){const s=function(t,e,n){const r={};for(const s in t){const t=Ye(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){!function(t,e,n){var r,s;const o=Object.keys(e).filter(e=>!t.hasValue(e)),i=o.length;var a;if(i)for(let l=0;l<i;l++){const i=o[l],u=e[i];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(s=null!==(r=n[i])&&void 0!==r?r:t.readValue(i))&&void 0!==s?s:e[i]),null!=c&&("string"==typeof c&&(Re(c)||Oe(c))?c=parseFloat(c):(a=c,!He.find(je(a))&&$t.test(u)&&(c=Pe(i,u))),t.addValue(i,y(c,{owner:t})),void 0===n[i]&&(n[i]=c),null!==c&&t.setBaseTarget(i,c))}}(this,n,s);const t=fn(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}const kn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cn=k.length;const Tn=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function En(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(Bt(t)){o[t]=n;continue}const r=Ce[t],h=Tn(n,r);if(C.has(t)){if(l=!0,i[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=h):s[t]=h}if(e.transform||(l||r?s.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let e=0;e<Cn;e++){const n=k[e];if(void 0!==t[n]){o+=`${kn[n]||n}(${t[n]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):s.transform&&(s.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;s.transformOrigin=`${t} ${e} ${n}`}}function Pn(t,e,n){return"string"==typeof t?t:vt.transform(e+n*t)}const On={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fn={offset:"strokeDashoffset",array:"strokeDasharray"};function Bn(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...u},c,h,d){if(En(t,u,c,d),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Pn(e,t.x,t.width)} ${Pn(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==i&&function(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?On:Fn;t[o.offset]=vt.transform(-r);const i=vt.transform(e),a=vt.transform(n);t[o.array]=`${i} ${a}`}(f,i,a,l,!1)}const In=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ln(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])}class Wn extends Sn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(C.has(e)){const t=Ee(e);return t&&t.default||0}return e=In.has(e)?e:T(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=Je(t,e);for(const r in t)if(Le(t[r])||Le(e[r])){n[-1!==k.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}(t,e)}build(t,e,n,r){Bn(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){!function(t,e,n,r){Ln(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(In.has(n)?n:T(n),e.attrs[n])}(t,e,0,r)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}class Rn extends Sn{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(C.has(e)){const t=Ee(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),s=(Bt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}(function(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}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n,r){En(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Je(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=""+t)}))}renderInstance(t,e,n,r){Ln(t,e,n,r)}}function Nn(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=function(t){return t instanceof SVGElement&&"svg"!==t.tagName}(t)?new Wn(e,{enableHardwareAcceleration:!1}):new Rn(e,{enableHardwareAcceleration:!0});n.mount(t),x.set(t,n)}function jn(t,e,n){const r=Le(t)?t:y(t);return r.start(Ie("",r,e,n)),r.animation}function Dn(t,e=100){const n=le({keyframes:[0,e],...t}),r=Math.min(he(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:O(r)}}function zn(t,e,n,r){var s;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(s=r.get(e))&&void 0!==s?s:t}const Hn=(t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t};function $n(t,e){return $(t)?t[Hn(0,t.length,e)]:t}function Un(t,e,n,r,s,o){!function(t,e,n){for(let r=0;r<t.length;r++){const s=t[r];s.at>e&&s.at<n&&(c(t,s),r--)}}(t,s,o);for(let i=0;i<e.length;i++)t.push({value:e[i],at:Mt(s,o,r[i]),easing:$n(n,i)})}function qn(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function Yn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Xn(t,e){return e[t]||(e[t]=[]),e[t]}function Zn(t){return Array.isArray(t)?t:[t]}function Gn(t,e){return t[e]?{...t,...t[e]}:{...t}}const Kn=t=>"number"==typeof t,_n=t=>t.every(Kn);function Jn(t,e,n,r){const s=b(t,r),o=s.length,i=[];for(let t=0;t<o;t++){const r=s[t];x.has(r)||Nn(r);const a=x.get(r),l={...n};"function"==typeof l.delay&&(l.delay=l.delay(t,o)),i.push(...Ge(a,{...e,transition:l},{}))}return new S(i)}function Qn(t,e,n){const r=[];return function(t,{defaultTransition:e={},...n}={},r){const s=e.duration||.3,o=new Map,i=new Map,a={},l=new Map;let u=0,c=0,h=0;for(let n=0;n<t.length;n++){const o=t[n];if("string"==typeof o){l.set(o,c);continue}if(!Array.isArray(o)){l.set(o.name,zn(c,o.at,u,l));continue}let[d,f,p={}]=o;void 0!==p.at&&(c=zn(c,p.at,u,l));let m=0;const g=(t,n,r,o=0,i=0)=>{const a=Zn(t),{delay:l=0,times:u=te(a),type:d="keyframes",...f}=n;let{ease:p=e.ease||"easeOut",duration:g}=n;const y="function"==typeof l?l(o,i):l,v=a.length;if(v<=2&&"spring"===d){let t=100;if(2===v&&_n(a)){const e=a[1]-a[0];t=Math.abs(e)}const e={...f};void 0!==g&&(e.duration=P(g));const n=Dn(e,t);p=n.ease,g=n.duration}null!=g||(g=s);const w=c+y,b=w+g;1===u.length&&0===u[0]&&(u[1]=1);const x=u.length-a.length;x>0&&Qt(u,x),1===a.length&&a.unshift(null),Un(r,a,p,u,w,b),m=Math.max(y+g,m),h=Math.max(b,h)};if(Le(d)){g(f,p,Xn("default",Yn(d,i)))}else{const t=b(d,r,a),e=t.length;for(let n=0;n<e;n++){f=f,p=p;const r=Yn(t[n],i);for(const t in f)g(f[t],Gn(p,t),Xn(t,r),n,e)}}u=c,c+=m}return i.forEach((t,r)=>{for(const s in t){const i=t[s];i.sort(qn);const a=[],l=[],u=[];for(let t=0;t<i.length;t++){const{at:e,value:n,easing:r}=i[t];a.push(n),l.push(Gt(0,h,e)),u.push(r||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});const c=o.get(r);c.keyframes[s]=a,c.transition[s]={...e,duration:h,ease:u,times:l,...n}}}),o}(t,e,n).forEach(({keyframes:t,transition:e},n)=>{let s;s=Le(n)?jn(n,t.default,e.default):Jn(n,t,e),r.push(s)}),new S(r)}const tr=t=>function(e,n,r){let s;var o;return o=e,s=Array.isArray(o)&&Array.isArray(o[0])?Qn(e,n,t):function(t){return"object"==typeof t&&!Array.isArray(t)}(n)?Jn(e,n,r,t):jn(e,n,r),t&&t.animations.push(s),s},er=tr(),nr=new WeakMap;let rr;function sr({target:t,contentRect:e,borderBoxSize:n}){var r;null===(r=nr.get(t))||void 0===r||r.forEach(r=>{r({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})})}function or(t){t.forEach(sr)}function ir(t,e){rr||"undefined"!=typeof ResizeObserver&&(rr=new ResizeObserver(or));const n=b(t);return n.forEach(t=>{let n=nr.get(t);n||(n=new Set,nr.set(t,n)),n.add(e),null==rr||rr.observe(t)}),()=>{n.forEach(t=>{const n=nr.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==rr||rr.unobserve(t)})}}const ar=new Set;let lr;function ur(t){return ar.add(t),lr||(lr=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};ar.forEach(t=>t(e))},window.addEventListener("resize",lr)),()=>{ar.delete(t),!ar.size&&lr&&(lr=void 0)}}const cr={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function hr(t,e,n,r){const s=n[e],{length:o,position:i}=cr[e],a=s.current,l=n.time;s.current=t["scroll"+i],s.scrollLength=t["scroll"+o]-t["client"+o],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=Gt(0,s.scrollLength,s.current);const u=r-l;s.velocity=u>50?0:d(s.current-a,u)}const dr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},fr={start:0,center:.5,end:1};function pr(t,e,n=0){let r=0;if(void 0!==fr[t]&&(t=fr[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?r=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?r=e/100*document.documentElement.clientWidth:t.endsWith("vh")?r=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(r=e*t),n+r}const mr=[0,0];function gr(t,e,n,r){let s=Array.isArray(t)?t:mr,o=0,i=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,fr[t]?t:"0"]),o=pr(s[0],n,r),i=pr(s[1],e),o-i}const yr={x:0,y:0};function vr(t,e,n){let{offset:r=dr.All}=n;const{target:s=t,axis:o="y"}=n,i="y"===o?"height":"width",a=s!==t?function(t,e){const n={x:0,y:0};let r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){const t=r.getBoundingClientRect();r=r.parentElement;const e=r.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(r instanceof SVGGraphicsElement))break;{const{x:t,y:e}=r.getBBox();n.x+=t,n.y+=e;let s=null,o=r.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=r.parentNode;r=s}}return n}(s,t):yr,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=r.length;for(let t=0;t<h;t++){const n=gr(r[t],u[i],l[i],a[o]);c||n===e[o].interpolatorOffsets[t]||(c=!0),e[o].offset[t]=n}c&&(e[o].interpolate=Jt(e[o].offset,te(r)),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=e[o].interpolate(e[o].current)}function wr(t,e,n,r={}){return{measure:()=>function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let r=e;for(;r&&r!==t;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,r.target,n),update:e=>{!function(t,e,n){hr(t,"x",e,n),hr(t,"y",e,n),e.time=n}(t,n,e),(r.offset||r.target)&&vr(t,n,r)},notify:()=>e(n)}}const br=new WeakMap,xr=new WeakMap,Vr=new WeakMap,Ar=t=>t===document.documentElement?window:t;function Mr(t,{container:e=document.documentElement,...n}={}){let r=Vr.get(e);r||(r=new Set,Vr.set(e,r));const s=wr(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},n);if(r.add(s),!br.has(e)){const t=()=>{for(const t of r)t.measure()},n=()=>{for(const t of r)t.update(l.timestamp)},s=()=>{for(const t of r)t.notify()},a=()=>{i.read(t,!1,!0),i.read(n,!1,!0),i.update(s,!1,!0)};br.set(e,a);const c=Ar(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&xr.set(e,(u=a,"function"==typeof(o=e)?ur(o):ir(o,u))),c.addEventListener("scroll",a,{passive:!0})}var o,u;const c=br.get(e);return i.read(c,!1,!0),()=>{var t;a(c);const n=Vr.get(e);if(!n)return;if(n.delete(s),n.size)return;const r=br.get(e);br.delete(e),r&&(Ar(e).removeEventListener("scroll",r),null===(t=xr.get(e))||void 0===t||t(),window.removeEventListener("resize",r))}}const Sr=new Map;function kr({source:t=document.documentElement,axis:e="y"}={}){Sr.has(t)||Sr.set(t,{});const n=Sr.get(t);return n[e]||(n[e]=M()?new ScrollTimeline({source:t,axis:e}):function({source:t,axis:e="y"}){const n={value:0},r=Mr(t=>{n.value=100*t[e].progress},{container:t,axis:e});return{currentTime:n,cancel:r}}({source:t,axis:e})),n[e]}const Cr={some:0,all:1};const Tr=(t,e)=>Math.abs(t-e);const Er=i,Pr=o.reduce((t,e)=>(t[e]=t=>a(t),t),{});t.MotionValue=g,t.animate=er,t.anticipate=J,t.backIn=K,t.backInOut=_,t.backOut=G,t.cancelFrame=a,t.cancelSync=Pr,t.circIn=Y,t.circInOut=Z,t.circOut=X,t.clamp=it,t.createScopedAnimate=tr,t.cubicBezier=j,t.delay=function(t,e){const n=m.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(a(r),t(o-e))};return i.read(r,!0),()=>a(r)},t.distance=Tr,t.distance2D=function(t,e){const n=Tr(t.x,e.x),r=Tr(t.y,e.y);return Math.sqrt(n**2+r**2)},t.easeIn=D,t.easeInOut=H,t.easeOut=z,t.frame=i,t.frameData=l,t.inView=function(t,e,{root:n,margin:r,amount:s="some"}={}){const o=b(t),i=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{const n=i.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t);"function"==typeof n?i.set(t.target,n):a.unobserve(t.target)}else n&&(n(t),i.delete(t.target))})},{root:n,rootMargin:r,threshold:"number"==typeof s?s:Cr[s]});return o.forEach(t=>a.observe(t)),()=>a.disconnect()},t.interpolate=Jt,t.invariant=w,t.mirrorEasing=U,t.mix=Mt,t.motionValue=y,t.pipe=Ot,t.progress=Gt,t.reverseEasing=q,t.scroll=function(t,e){const n=kr(e);return"function"==typeof t?V(t,n):t.attachTimeline(n)},t.scrollInfo=Mr,t.stagger=function(t=.1,{startDelay:e=0,from:n=0,ease:r}={}){return(s,o)=>{const i="number"==typeof n?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,o),a=Math.abs(i-s);let l=t*a;if(r){const e=o*t;l=tt(r)(l/e)*e}return e+l}},t.steps=u,t.sync=Er,t.transform=function(...t){const e=!Array.isArray(t[0]),n=e?0:-1,r=t[0+n],s=t[1+n],o=t[2+n],i=t[3+n],a=Jt(s,o,{mixer:(l=o[0],(t=>t&&"object"==typeof t&&t.mix)(l)?l.mix:void 0),...i});var l;return e?a(r):a},t.warning=v,t.wrap=Hn,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
@@ -1472,6 +1472,7 @@ const defaultLayoutTransition = {
|
|
|
1472
1472
|
ease: [0.4, 0, 0.1, 1],
|
|
1473
1473
|
};
|
|
1474
1474
|
const userAgentContains = (string) => typeof navigator !== "undefined" &&
|
|
1475
|
+
navigator.userAgent &&
|
|
1475
1476
|
navigator.userAgent.toLowerCase().includes(string);
|
|
1476
1477
|
/**
|
|
1477
1478
|
* Measured bounding boxes must be rounded in Safari and
|
|
@@ -22,7 +22,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
22
22
|
* and warn against mismatches.
|
|
23
23
|
*/
|
|
24
24
|
if (process.env.NODE_ENV === "development") {
|
|
25
|
-
warnOnce(nextValue.version === "11.0.
|
|
25
|
+
warnOnce(nextValue.version === "11.0.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 11.0.4 may not work as expected.`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
else if (isMotionValue(prevValue)) {
|
package/dist/es/value/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ class MotionValue {
|
|
|
34
34
|
* This will be replaced by the build step with the latest version number.
|
|
35
35
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
36
36
|
*/
|
|
37
|
-
this.version = "11.0.
|
|
37
|
+
this.version = "11.0.4";
|
|
38
38
|
/**
|
|
39
39
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
40
40
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -3277,7 +3277,6 @@
|
|
|
3277
3277
|
"clipPath",
|
|
3278
3278
|
"filter",
|
|
3279
3279
|
"transform",
|
|
3280
|
-
"backgroundColor",
|
|
3281
3280
|
]);
|
|
3282
3281
|
/**
|
|
3283
3282
|
* 10ms is chosen here as it strikes a balance between smooth
|
|
@@ -3896,7 +3895,7 @@
|
|
|
3896
3895
|
* This will be replaced by the build step with the latest version number.
|
|
3897
3896
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
3898
3897
|
*/
|
|
3899
|
-
this.version = "11.0.
|
|
3898
|
+
this.version = "11.0.4";
|
|
3900
3899
|
/**
|
|
3901
3900
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
3902
3901
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -6785,7 +6784,7 @@
|
|
|
6785
6784
|
* and warn against mismatches.
|
|
6786
6785
|
*/
|
|
6787
6786
|
{
|
|
6788
|
-
warnOnce(nextValue.version === "11.0.
|
|
6787
|
+
warnOnce(nextValue.version === "11.0.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 11.0.4 may not work as expected.`);
|
|
6789
6788
|
}
|
|
6790
6789
|
}
|
|
6791
6790
|
else if (isMotionValue(prevValue)) {
|
|
@@ -9856,6 +9855,7 @@
|
|
|
9856
9855
|
ease: [0.4, 0, 0.1, 1],
|
|
9857
9856
|
};
|
|
9858
9857
|
const userAgentContains = (string) => typeof navigator !== "undefined" &&
|
|
9858
|
+
navigator.userAgent &&
|
|
9859
9859
|
navigator.userAgent.toLowerCase().includes(string);
|
|
9860
9860
|
/**
|
|
9861
9861
|
* Measured bounding boxes must be rounded in Safari and
|