UNPKG

framer

Version:

The Framer library is the code that drives Framer projects and components. It helps you build from simple interactive components to whole apps.

1 lines 777 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Framer=t(require("react")):e.Framer=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=370)}([function(e,t,n){"use strict";n.r(t),n.d(t,"number",function(){return c}),n.d(t,"scale",function(){return f}),n.d(t,"alpha",function(){return l}),n.d(t,"degrees",function(){return d}),n.d(t,"percent",function(){return h}),n.d(t,"progressPercentage",function(){return y}),n.d(t,"px",function(){return m}),n.d(t,"vw",function(){return v}),n.d(t,"vh",function(){return g}),n.d(t,"rgba",function(){return C}),n.d(t,"rgbUnit",function(){return x}),n.d(t,"hsla",function(){return O}),n.d(t,"hex",function(){return E}),n.d(t,"color",function(){return T}),n.d(t,"complex",function(){return M});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},o=function(e){return e%1?Number(e.toFixed(5)):e},a=/(-)?(\d[\d\.]*)/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,u=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,c={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},l=r({},c,{transform:i(0,1)}),f=r({},c,{default:1}),p=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},d=p("deg"),h=p("%"),m=p("px"),g=p("vh"),v=p("vw"),y=r({},h,{parse:function(e){return h.parse(e)/100},transform:function(e){return h.transform(100*e)}}),b=i(0,255),_=function(e){return void 0!==e.red},S=function(e){return void 0!==e.hue},w=function(e){return function(t){if("string"!=typeof t)return t;for(var n,r={},i=(n=t,n.substring(n.indexOf("(")+1,n.lastIndexOf(")"))).split(/,\s*/),o=0;o<4;o++)r[e[o]]=void 0!==i[o]?parseFloat(i[o]):1;return r}},x=r({},c,{transform:function(e){return Math.round(b(e))}});function k(e,t){return e.startsWith(t)&&u.test(e)}var C={test:function(e){return"string"==typeof e?k(e,"rgb"):_(e)},parse:w(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha;return function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({red:x.transform(t),green:x.transform(n),blue:x.transform(r),alpha:o(i)})}},O={test:function(e){return"string"==typeof e?k(e,"hsl"):S(e)},parse:w(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({hue:Math.round(t),saturation:h.transform(o(n)),lightness:h.transform(o(r)),alpha:o(i)})}},E=r({},C,{test:function(e){return"string"==typeof e&&k(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),T={test:function(e){return"string"==typeof e&&u.test(e)||_(e)||S(e)},parse:function(e){return C.test(e)?C.parse(e):O.test(e)?O.parse(e):E.test(e)?E.parse(e):e},transform:function(e){return _(e)?C.transform(e):S(e)?O.transform(e):e}},P=function(e){return"number"==typeof e?0:e},M={test:function(e){if("string"!=typeof e||!isNaN(e))return!1;var t=0,n=e.match(a),r=e.match(s);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(s);r&&(t=t.replace(s,"${c}"),n.push.apply(n,r.map(T.parse)));var i=t.match(a);return i&&n.push.apply(n,i.map(c.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(s),i=r?r.length:0;if(r)for(var u=0;u<i;u++)t=t.replace(r[u],"${c}"),n++;var c=t.match(a),l=c?c.length:0;if(c)for(u=0;u<l;u++)t=t.replace(c[u],"${n}"),n++;return function(e){for(var r=t,a=0;a<n;a++)r=r.replace(a<i?"${c}":"${n}",a<i?T.transform(e[a]):o(e[a]));return r}},getAnimatableNone:function(e){var t=M.parse(e);return M.createTransformer(e)(t.map(P))}}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"g",function(){return L}),n.d(t,"h",function(){return m}),n.d(t,"i",function(){return g}),n.d(t,"j",function(){return _}),n.d(t,"k",function(){return M}),n.d(t,"l",function(){return O}),n.d(t,"m",function(){return I}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return j}),n.d(t,"p",function(){return b}),n.d(t,"q",function(){return u}),n.d(t,"r",function(){return N}),n.d(t,"s",function(){return z}),n.d(t,"t",function(){return B}),n.d(t,"u",function(){return H}),n.d(t,"v",function(){return V}),n.d(t,"w",function(){return W}),n.d(t,"x",function(){return K}),n.d(t,"y",function(){return $}),n.d(t,"z",function(){return q});var r=n(0),i=n(11),o=n(3),a=(n(4),{x:0,y:0,z:0}),s=function(e){return"number"==typeof e},u=function(e){return 180*e/Math.PI},c=function(e,t){return void 0===t&&(t=a),u(Math.atan2(t.y-e.y,t.x-e.x))},l=function(e,t){var n=!0;return void 0===t&&(t=e,n=!1),function(r){return n?r-e+t:(e=r,n=!0,t)}},f=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},p=f(function(e,t,n){return Math.min(Math.max(n,e),t)}),d=function(e,t){return function(n){return e(n)?t(n):n}},h=function(e){return e*Math.PI/180},m=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},g=function(e){return m(e)&&e.hasOwnProperty("z")},v=function(e,t){return Math.abs(e-t)},y=function(e,t){if(void 0===t&&(t=a),s(e)&&s(t))return v(e,t);if(m(e)&&m(t)){var n=v(e.x,t.x),r=v(e.y,t.y),i=g(e)&&g(t)?v(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}return 0},b=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},_=function(e,t,n){return-n*e+n*t+e},S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},w=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},x=[r.hex,r.rgba,r.hsla],k=function(e){return x.find(function(t){return t.test(e)})},C=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},O=function(e,t){var n=k(e),o=k(t);Object(i.invariant)(!!n,C(e)),Object(i.invariant)(!!o,C(t)),Object(i.invariant)(n.transform===o.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var a=n.parse(e),s=o.parse(t),u=S({},a),c=n===r.hsla?_:w;return function(e){for(var t in u)"alpha"!==t&&(u[t]=c(a[t],s[t],e));return u.alpha=_(a.alpha,s.alpha,e),n.transform(u)}},E=function(e,t){return function(n){return t(e(n))}},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(E)};function P(e,t){return s(e)?function(n){return _(e,t,n)}:r.color.test(e)?O(e,t):I(e,t)}var M=function(e,t){var n=e.slice(),r=n.length,i=e.map(function(e,n){return P(e,t[n])});return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},F=function(e,t){var n=S({},e,t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=P(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function D(e){for(var t=r.complex.parse(e),n=t.length,i=0,o=0,a=0,s=0;s<n;s++)i||"number"==typeof t[s]?i++:void 0!==t[s].hue?a++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:a}}var I=function(e,t){var n=r.complex.createTransformer(t),o=D(e),a=D(t);return Object(i.invariant)(o.numHSL===a.numHSL&&o.numRGB===a.numRGB&&o.numNumbers>=a.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),T(M(o.parsed,a.parsed),n)},R=function(e,t){return function(n){return _(e,t,n)}};function A(e,t,n){for(var i,o=[],a=n||("number"==typeof(i=e[0])?R:"string"==typeof i?r.color.test(i)?O:I:Array.isArray(i)?M:"object"==typeof i?F:void 0),s=e.length-1,u=0;u<s;u++){var c=a(e[u],e[u+1]);if(t){var l=Array.isArray(t)?t[u]:t;c=T(l,c)}o.push(c)}return o}function L(e,t,n){var r=void 0===n?{}:n,o=r.clamp,a=void 0===o||o,s=r.ease,u=r.mixer,c=e.length;Object(i.invariant)(c===t.length,"Both input and output ranges must be the same length"),Object(i.invariant)(!s||!Array.isArray(s)||s.length===c-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=A(t,s,u),f=2===c?function(e,t){var n=e[0],r=e[1],i=t[0];return function(e){return i(b(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(i){var o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>i||s===r);s++);o=s-1}var u=b(e[o],e[o+1],i);return t[o](u)}}(e,l);return a?T(p(e[0],e[c-1]),f):f}var j=function(e,t,n){return t=h(t),{x:n*Math.cos(t)+e.x,y:n*Math.sin(t)+e.y}},z=function(e,t,n,r){return void 0===r&&(r=0),i=e+n*(t-e)/Math.max(r,n),void 0===o&&(o=2),o=Math.pow(10,o),Math.round(i*o)/o;var i,o},N=function(e){void 0===e&&(e=50);var t=0,n=0;return function(r){var i=Object(o.c)().timestamp,a=i!==n?i-n:0,s=a?z(t,r,a,e):t;return n=i,t=s,s}},B=function(e){if("number"==typeof e)return function(t){return Math.round(t/e)*e};var t=0,n=e.length;return function(r){var i=Math.abs(e[0]-r);for(t=1;t<n;t++){var o=e[t],a=Math.abs(o-r);if(0===a)return o;if(a>i)return e[t-1];if(t===n-1)return o;i=a}}},U=function(e){return e},H=function(e){return void 0===e&&(e=U),f(function(t,n,r){var i=n-r,o=-(0-t+1)*(0-e(Math.abs(i)));return i<=0?n+o:n-o})},W=H(),V=H(Math.sqrt),K=function(e,t){return s(e)?e/(1e3/t):0},$=function(e,t){return t?e*(1e3/t):0},q=f(function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e});p(0,1)},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"c",function(){return _});var r,i=0,o="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-i));i=t+n,setTimeout(function(){return e(i)},n)};!function(e){e.Read="read",e.Update="update",e.Render="render",e.PostRender="postRender",e.FixedUpdate="fixedUpdate"}(r||(r={}));var a=1/60*1e3,s=!0,u=!1,c=!1,l={delta:0,timestamp:0},f=[r.Read,r.Update,r.Render,r.PostRender],p=function(e){return u=e},d=f.reduce(function(e,t){var n,r,i,o,a,s,c,l,f,d=(n=p,r=[],i=[],o=0,a=!1,s=0,c=new WeakSet,l=new WeakSet,f={cancel:function(e){var t=i.indexOf(e);c.add(e),-1!==t&&i.splice(t,1)},process:function(e){var t,u;if(a=!0,r=(t=[i,r])[0],(i=t[1]).length=0,o=r.length)for(s=0;s<o;s++)(u=r[s])(e),!0!==l.has(u)||c.has(u)||(f.schedule(u),n(!0));a=!1},schedule:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=n&&a,u=s?r:i;c.delete(e),t&&l.add(e),-1===u.indexOf(e)&&(u.push(e),s&&(o=r.length))}});return e.sync[t]=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),u||b(),d.schedule(e,t,n),e},e.cancelSync[t]=function(e){return d.cancel(e)},e.steps[t]=d,e},{steps:{},sync:{},cancelSync:{}}),h=d.steps,m=d.sync,g=d.cancelSync,v=function(e){return h[e].process(l)},y=function(e){u=!1,l.delta=s?a:Math.max(Math.min(e-l.timestamp,40),1),s||(a=l.delta),l.timestamp=e,c=!0,f.forEach(v),c=!1,u&&(s=!1,o(y))},b=function(){u=!0,s=!0,c||o(y)},_=function(){return l};t.b=m},function(e,t,n){"use strict";n.r(t),n.d(t,"reversed",function(){return r}),n.d(t,"mirrored",function(){return i}),n.d(t,"createReversedEasing",function(){return o}),n.d(t,"createMirroredEasing",function(){return a}),n.d(t,"createExpoIn",function(){return s}),n.d(t,"createBackIn",function(){return u}),n.d(t,"createAnticipateEasing",function(){return c}),n.d(t,"linear",function(){return l}),n.d(t,"easeIn",function(){return f}),n.d(t,"easeOut",function(){return p}),n.d(t,"easeInOut",function(){return d}),n.d(t,"circIn",function(){return h}),n.d(t,"circOut",function(){return m}),n.d(t,"circInOut",function(){return g}),n.d(t,"backIn",function(){return v}),n.d(t,"backOut",function(){return y}),n.d(t,"backInOut",function(){return b}),n.d(t,"anticipate",function(){return _}),n.d(t,"bounceOut",function(){return S}),n.d(t,"bounceIn",function(){return w}),n.d(t,"bounceInOut",function(){return x}),n.d(t,"cubicBezier",function(){return L});var r=function(e){return function(t){return 1-e(1-t)}},i=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},o=r,a=i,s=function(e){return function(t){return Math.pow(t,e)}},u=function(e){return function(t){return t*t*((e+1)*t-e)}},c=function(e){var t=u(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}},l=function(e){return e},f=s(2),p=r(f),d=i(f),h=function(e){return 1-Math.sin(Math.acos(e))},m=r(h),g=i(m),v=u(1.525),y=r(v),b=i(v),_=c(1.525),S=function(e){var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},w=function(e){return 1-S(1-e)},x=function(e){return e<.5?.5*(1-S(1-2*e)):.5*S(2*e-1)+.5},k=8,C=.001,O=1e-7,E=10,T=11,P=1/(T-1),M="undefined"!=typeof Float32Array,F=function(e,t){return 1-3*t+3*e},D=function(e,t){return 3*t-6*e},I=function(e){return 3*e},R=function(e,t,n){return 3*F(t,n)*e*e+2*D(t,n)*e+I(t)},A=function(e,t,n){return((F(t,n)*e+D(t,n))*e+I(t))*e};function L(e,t,n,r){var i=M?new Float32Array(T):new Array(T),o=function(t){for(var r,o,a,s=0,u=1,c=T-1;u!==c&&i[u]<=t;++u)s+=P;return r=(t-i[--u])/(i[u+1]-i[u]),(a=R(o=s+r*P,e,n))>=C?function(t,r){for(var i=0,o=0;i<k;++i){if(0===(o=R(r,e,n)))return r;r-=(A(r,e,n)-t)/o}return r}(t,o):0===a?o:function(t,r,i){var o,a,s=0;do{(o=A(a=r+(i-r)/2,e,n)-t)>0?i=a:r=a}while(Math.abs(o)>O&&++s<E);return a}(t,s,s+P)};!function(){for(var t=0;t<T;++t)i[t]=A(t*P,e,n)}();return function(i){return e===t&&n===r?i:0===i?0:1===i?1:A(o(i),t,r)}}},function(e,t,n){"use strict";n.r(t);var r=n(24),i=n(4);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),s=n(3),u=n(0),c=n(11),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function f(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}var p,d=function(e){var t=e.onRead,n=e.onRender,r=e.uncachedValues,i=void 0===r?new Set:r,o=e.useCache,a=void 0===o||o;return function(e){void 0===e&&(e={});var r=f(e,[]),o={},u=[],c=!1;function l(e,t){e.startsWith("--")&&(r.hasCSSVariable=!0);var n=o[e];o[e]=t,o[e]!==n&&(-1===u.indexOf(e)&&u.push(e),c||(c=!0,s.b.render(p.render)))}var p={get:function(e,n){return void 0===n&&(n=!1),!n&&a&&!i.has(e)&&void 0!==o[e]?o[e]:t(e,r)},set:function(e,t){if("string"==typeof e)l(e,t);else for(var n in e)l(n,e[n]);return this},render:function(e){return void 0===e&&(e=!1),(c||!0===e)&&(n(o,r,u),c=!1,u.length=0),this}};return p}},h=/([a-z])([A-Z])/g,m=function(e){return e.replace(h,"$1-$2").toLowerCase()},g=new Map,v=new Map,y=["Webkit","Moz","O","ms",""],b=y.length,_="undefined"!=typeof document,S=function(e,t){return v.set(e,m(t))},w=function(e,t){void 0===t&&(t=!1);var n=t?v:g;return n.has(e)||(_?function(e){p=p||document.createElement("div");for(var t=0;t<b;t++){var n=y[t],r=""===n,i=r?e:n+e.charAt(0).toUpperCase()+e.slice(1);(i in p.style||r)&&(g.set(e,i),S(e,(r?"":"-")+m(i)))}}(e):function(e){S(e,e)}(e)),n.get(e)||e},x=["","X","Y","Z"],k=["scale","rotate","skew","transformPerspective"].reduce(function(e,t){return x.reduce(function(e,n){return e.push(t+n),e},e)},["x","y","z"]),C=k.reduce(function(e,t){return e[t]=!0,e},{});function O(e){return!0===C[e]}function E(e,t){return k.indexOf(e)-k.indexOf(t)}var T=new Set(["originX","originY","originZ"]);function P(e){return T.has(e)}var M=l({},u.number,{transform:Math.round}),F={color:u.color,backgroundColor:u.color,outlineColor:u.color,fill:u.color,stroke:u.color,borderColor:u.color,borderTopColor:u.color,borderRightColor:u.color,borderBottomColor:u.color,borderLeftColor:u.color,borderWidth:u.px,borderTopWidth:u.px,borderRightWidth:u.px,borderBottomWidth:u.px,borderLeftWidth:u.px,borderRadius:u.px,radius:u.px,borderTopLeftRadius:u.px,borderTopRightRadius:u.px,borderBottomRightRadius:u.px,borderBottomLeftRadius:u.px,width:u.px,maxWidth:u.px,height:u.px,maxHeight:u.px,size:u.px,top:u.px,right:u.px,bottom:u.px,left:u.px,padding:u.px,paddingTop:u.px,paddingRight:u.px,paddingBottom:u.px,paddingLeft:u.px,margin:u.px,marginTop:u.px,marginRight:u.px,marginBottom:u.px,marginLeft:u.px,rotate:u.degrees,rotateX:u.degrees,rotateY:u.degrees,rotateZ:u.degrees,scale:u.scale,scaleX:u.scale,scaleY:u.scale,scaleZ:u.scale,skew:u.degrees,skewX:u.degrees,skewY:u.degrees,distance:u.px,x:u.px,y:u.px,z:u.px,perspective:u.px,opacity:u.alpha,originX:u.progressPercentage,originY:u.progressPercentage,originZ:u.px,zIndex:M},D=function(e){return F[e]},I=function(e,t){return t&&"number"==typeof e?t.transform(e):e},R="scrollLeft",A="scrollTop",L=new Set([R,A]),j=new Set([R,A,"transform"]),z={x:"translateX",y:"translateY",z:"translateZ"};function N(e){return"function"==typeof e}function B(e,t,n,r,i,o,a){void 0===t&&(t=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=[]),void 0===a&&(a=!1);var s=!0,u=!1,c=!1;for(var l in e){var f=e[l],p=D(l),d=I(f,p);O(l)?(u=!0,r[l]=d,o.push(l),s&&(p.default&&f!==p.default||!p.default&&0!==f)&&(s=!1)):P(l)?(i[l]=d,c=!0):j.has(l)&&N(d)||(n[w(l,a)]=d)}return(u||"function"==typeof e.transform)&&(n.transform=function(e,t,n,r,i){var o="",a=!1;n.sort(E);for(var s=n.length,u=0;u<s;u++){var c=n[u];o+=(z[c]||c)+"("+t[c]+") ",a="z"===c||a}return!a&&i?o+="translateZ(0)":o=o.trim(),N(e.transform)?o=e.transform(t,o):r&&(o="none"),o}(e,r,o,s,t)),c&&(n.transformOrigin=(i.originX||"50%")+" "+(i.originY||"50%")+" "+(i.originZ||0)),n}var U=d({onRead:function(e,t){var n=t.element,r=t.preparseOutput,i=D(e);if(O(e))return i&&i.default||0;if(L.has(e))return n[e];var o=window.getComputedStyle(n,null).getPropertyValue(w(e,!0))||0;return r&&i&&i.test(o)&&i.parse?i.parse(o):o},onRender:function(e,t,n){var r=t.element,i=t.buildStyles,o=t.hasCSSVariable;if(Object.assign(r.style,i(e)),o)for(var a=n.length,s=0;s<a;s++){var u=n[s];u.startsWith("--")&&r.style.setProperty(u,e[u])}-1!==n.indexOf(R)&&(r[R]=e[R]),-1!==n.indexOf(A)&&(r[A]=e[A])},uncachedValues:L});function H(e,t){void 0===t&&(t={});var n=t.enableHardwareAcceleration,r=f(t,["enableHardwareAcceleration"]);return U(l({element:e,buildStyles:function(e){void 0===e&&(e=!0);var t={},n={},r={},i=[];return function(o){return i.length=0,B(o,e,t,n,r,i,!0),t}}(n),preparseOutput:!0},r))}var W=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),V=function(e,t){return e*t+"px"},K=l({},u.number,{transform:Math.round}),$={fill:u.color,stroke:u.color,scale:u.scale,scaleX:u.scale,scaleY:u.scale,opacity:u.alpha,fillOpacity:u.alpha,strokeOpacity:u.alpha,numOctaves:K},q=d({onRead:function(e,t){var n=t.element;if(O(e)){var r=function(e){return $[e]}(e);return r?r.default:0}return n.getAttribute(e)},onRender:function(e,t){var n=t.dimensions;!function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}(t.element,function(e,t,n,r){var i=!1,o=!1,a={},s=n?{pathLength:"0",pathSpacing:""+r}:void 0,u=void 0!==e.scale?e.scale||1e-7:e.scaleX||1,c=void 0!==e.scaleY?e.scaleY||1e-7:u||1,l=t.width*(e.originX||50)+t.x,f=t.height*(e.originY||50)+t.y,p=1*u*-l,d=1*c*-f,h=l/u,g=f/c,v={translate:"translate("+e.x+", "+e.y+") ",scale:"translate("+p+", "+d+") scale("+u+", "+c+") translate("+h+", "+g+") ",rotate:"rotate("+e.rotate+", "+l+", "+f+") ",skewX:"skewX("+e.skewX+") ",skewY:"skewY("+e.skewY+") "};for(var y in e)if(e.hasOwnProperty(y)){var b=e[y];O(y)?i=!0:!n||"pathLength"!==y&&"pathSpacing"!==y||"number"!=typeof b?n&&"pathOffset"===y?a["stroke-dashoffset"]=V(-b,r):a[W.has(y)?y:m(y)]=b:(o=!0,s[y]=V(b,r))}if(o&&(a["stroke-dasharray"]=s.pathLength+" "+s.pathSpacing),i)for(var y in a.transform="",v)if(v.hasOwnProperty(y)){var _="scale"===y?"1":"0";a.transform+=v[y].replace(/undefined/g,_)}return a}(e,n,t.isPath,t.pathLength))}}),G=d({useCache:!1,onRead:function(e){return"scrollTop"===e?window.pageYOffset:window.pageXOffset},onRender:function(e){var t=e.scrollTop,n=void 0===t?0:t,r=e.scrollLeft,i=void 0===r?0:r;return window.scrollTo(i,n)}}),X=new WeakMap,Y=function(e,t){var n;return e instanceof HTMLElement?n=H(e,t):e instanceof SVGElement?n=function(e){var t={element:e,dimensions:function(e){try{return function(e){return"function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}(e)}catch(e){return{x:0,y:0,width:0,height:0}}}(e),isPath:!1};return"path"===e.tagName&&(t.isPath=!0,t.pathLength=e.getTotalLength()),q(t)}(e):e===window&&(n=G(e)),Object(c.invariant)(void 0!==n,"No valid node provided. Node must be HTMLElement, SVGElement or window."),X.set(e,n),n},Z=function(e,t){return X.has(e)?X.get(e):Y(e,t)};var J=function(e,t){var n="string"==typeof e?document.querySelector(e):e;return Z(n,t)},Q=n(1),ee=n(2);n.d(t,"motion",function(){return kn}),n.d(t,"useExternalRef",function(){return oe}),n.d(t,"createMotionComponent",function(){return lt}),n.d(t,"useMotionValue",function(){return Cn}),n.d(t,"MotionValue",function(){return se}),n.d(t,"motionValue",function(){return ue}),n.d(t,"unwrapMotionValue",function(){return On}),n.d(t,"useTransform",function(){return Fn}),n.d(t,"useViewportScroll",function(){return Bn}),n.d(t,"AnimationControls",function(){return We}),n.d(t,"animationControls",function(){return Ve}),n.d(t,"useAnimation",function(){return Un}),n.d(t,"useAnimatedState",function(){return Hn}),n.d(t,"useTapGesture",function(){return Bt}),n.d(t,"usePanGesture",function(){return Mt}),n.d(t,"useGestures",function(){return Ht}),n.d(t,"useCycle",function(){return Wn}),n.d(t,"transform",function(){return Tn}),n.d(t,"MotionPlugins",function(){return Ct}),n.d(t,"MotionPluginContext",function(){return kt}),n.d(t,"MotionContext",function(){return Ke}),n.d(t,"Point",function(){return ht}),n.d(t,"safeWindow",function(){return yt});var te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ne(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function re(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function ie(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function oe(e){var t=e&&"function"!=typeof e?e:Object(Q.useRef)(null);return Object(Q.useEffect)(function(){if(e&&"function"==typeof e)return e(t.current),function(){return e(null)}},[]),t}var ae=function(e){return!isNaN(parseFloat(e))},se=function(){function e(e,t){var n=void 0===t?{}:t,r=n.transformer,i=n.parent,o=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(e){e(o.current)},this.scheduleVelocityCheck=function(){return s.b.postRender(o.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==o.lastUpdated&&(o.prev=o.current)},this.setChild=function(e){return e.set(o.current)},this.parent=i,this.transformer=r,this.set(e,!1),this.canTrackVelocity=ae(this.current)}return e.prototype.addChild=function(t){var n=new e(this.current,te({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.subscribeTo=function(e,t){var n=this,r=function(){return t(n.current)};return e.add(r),function(){return e.delete(r)}},e.prototype.onChange=function(e){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,e)},e.prototype.onRenderRequest=function(e){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(e),this.subscribeTo(this.renderSubscribers,e)},e.prototype.set=function(e,t){void 0===t&&(t=!0),this.prev=this.current,this.current=this.transformer?this.transformer(e):e,this.updateSubscribers&&this.prev!==this.current&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),t&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=Object(s.c)(),r=n.delta,i=n.timestamp;this.lastUpdated!==i&&(this.timeDelta=r,this.lastUpdated=i,s.b.postRender(this.scheduleVelocityCheck))},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.canTrackVelocity?Object(ee.y)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},e}();function ue(e,t){return new se(e,t)}function ce(e){var t=Object(Q.useRef)(null);return null===t.current&&(t.current=e()),t.current}var le,fe=d({onRead:function(){return null},onRender:function(e,t){return(0,t.onUpdate)(e)}}),pe=function(){function e(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return e.prototype.has=function(e){return this.values.has(e)},e.prototype.set=function(e,t){this.values.set(e,t),this.hasMounted&&this.bindValueToOutput(e,t)},e.prototype.get=function(e,t){var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=new se(t),this.set(e,n)),n},e.prototype.forEach=function(e){return this.values.forEach(e)},e.prototype.bindValueToOutput=function(e,t){var n=this,r=t.onRenderRequest(function(t){return n.output&&n.output(e,t)}),i=t.onChange(function(t){n.onUpdate&&n.onUpdate.set(e,t)});this.unsubscribers.set(e,function(){r(),i()})},e.prototype.setOnUpdate=function(e){this.onUpdate=void 0,e&&(this.onUpdate=fe({onUpdate:e}))},e.prototype.setTransformTemplate=function(e){this.transformTemplate!==e&&(this.transformTemplate=e,this.updateTransformTemplate())},e.prototype.getTransformTemplate=function(){return this.transformTemplate},e.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},e.prototype.mount=function(e){var t=this;this.hasMounted=!0,e&&(this.output=e),this.values.forEach(function(e,n){return t.bindValueToOutput(n,e)}),this.updateTransformTemplate()},e.prototype.unmount=function(){var e=this;this.values.forEach(function(t,n){var r=e.unsubscribers.get(n);r&&r()})},e}(),de=function(e){var t=e.onUpdate,n=e.transformTemplate,r=ce(function(){return new pe});return r.setOnUpdate(t),r.setTransformTemplate(n),r},he=Object(Q.memo)(Object(Q.forwardRef)(function(e,t){var n=e.values,r=e.isStatic;return Object(Q.useEffect)(function(){Object(c.invariant)(t.current instanceof Element,"No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");var e=J(t.current,{preparseOutput:!1,enableHardwareAcceleration:!r});return n.mount(function(t,n){return e.set(t,n)}),function(){return n.unmount()}},[]),null})),me=(le=function(e){return e.get()},function(e){var t={};return e.forEach(function(e,n){return t[n]=le(e)}),t}),ge=new Set(["originX","originY"]),ve=function(e){return ge.has(e)},ye=function(e){return e instanceof se},be=function(e,t,n){var r=me(e),i=e.getTransformTemplate();return i&&(r.transform=t.transform?i({},t.transform):i),te({},t,B(r,!n))},_e=function(e,t,n){void 0===t&&(t={});var r=Object(Q.useRef)({}).current,i=Object(Q.useRef)({}).current,o=new Set(Object.keys(r));for(var a in t){o.delete(a);var s=t[a];if(ye(s))e.set(a,s);else if(O(a)||ve(a)){if(e.has(a)){if(s!==i[a])e.get(a).set(s)}else e.set(a,ue(s));i[a]=s}else r[a]=s}return o.forEach(function(e){return delete r[e]}),n?n(r):r},Se=function(e){return Array.isArray(e)},we=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},xe=function(e){return Se(e)?e[e.length-1]||0:e},ke=[u.number,u.px,u.percent,u.degrees,u.vw,u.vh,{test:function(e){return"auto"===e},parse:function(e){return e}}],Ce=ke.concat([u.color,u.complex]),Oe=function(e){return function(t){return t.test(e)}},Ee=function(e){return ke.find(Oe(e))},Te=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Pe=function(e){return{type:"spring",stiffness:700,damping:0===e?100:35}},Me=function(){return{ease:"linear",duration:.3}},Fe=function(e){return{type:"keyframes",duration:.8,values:e}},De={x:Te,y:Te,z:Te,rotate:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scaleX:Pe,scaleY:Pe,scale:Pe,opacity:Me,backgroundColor:Me,color:Me,default:Pe},Ie=function(e){var t=e.to;return Object(r.action)(function(e){var n=e.update,r=e.complete;n(t),r()})},Re=function(e){if(Array.isArray(e)){Object(c.invariant)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=e[0],n=e[1],r=e[2],o=e[3];return Object(i.cubicBezier)(t,n,r,o)}return"string"==typeof e?(Object(c.invariant)(void 0!==i[e],"Invalid easing type '"+e+"'"),i[e]):e},Ae=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Le=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!u.complex.test(t)||t.startsWith("url(")))},je=function(e){return 1e3*e},ze={tween:r.tween,spring:r.spring,keyframes:r.keyframes,inertia:r.inertia,just:Ie},Ne={tween:function(e){if(e.ease){var t=Ae(e.ease)?e.ease[0]:e.ease;e.ease=Re(t)}return e},keyframes:function(e){var t=e.from,n=(e.to,e.velocity,ne(e,["from","to","velocity"]));if(n.values&&null===n.values[0]){var r=n.values.slice();r[0]=t,n.values=r}return n.ease&&(n.easings=Ae(n.ease)?n.ease.map(Re):Re(n.ease)),n.ease=i.linear,n}},Be=function(e,t,n){var r=n?n.delay:0;if(void 0===n||!function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection;var t=ne(e,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(t).length}(n))return te({delay:r},function(e,t){var n;return n=Se(t)?Fe:De[e]||De.default,te({to:t},n(t))}(e,t));var i=n[e]||n.default||n;return!1===i.type?{type:"just",delay:r,to:Se(t)?t[t.length-1]:t}:Se(t)?te({values:t,duration:.8,delay:r,ease:"linear"},i,{type:"keyframes"}):te({type:"tween",to:t,delay:r},i)},Ue=function(e,t,n,r){var i=t.get(),o=Le(e,i),a=Le(e,n);Object(c.warning)(o===a,"You are trying to animate "+e+' from "'+i+'" to '+n+'. "'+i+'" is not an animatable value - to enable this animation set '+i+" to a value animatable to "+n+" via the `style` property.");var s=Be(e,n,r),u=s.type,l=void 0===u?"tween":u,f=ne(s,["type"]),p=o&&a?ze[l]:Ie,d=function(e,t){return Ne[e]?Ne[e](t):t}(l,te({from:i,velocity:t.getVelocity()},f));return d.hasOwnProperty("duration")&&d.duration&&(d.duration=je(d.duration)),p(d)};var He=function(){function e(e){var t=e.values,n=e.readValueFromSource,r=e.makeTargetAnimatable,i=this;this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.values=t,this.readValueFromSource=n,this.makeTargetAnimatable=r,this.values.forEach(function(e,t){return i.baseTarget[t]=e.get()})}return e.prototype.setProps=function(e){this.props=e},e.prototype.setVariants=function(e){e&&(this.variants=e)},e.prototype.setDefaultTransition=function(e){e&&(this.defaultTransition=e)},e.prototype.setValues=function(e,t){var n=this;return void 0===t&&(t=new Set),e=this.transformValues(e),Object.keys(e).forEach(function(r){if(!t.has(r)){t.add(r);var i=xe(e[r]);if(n.values.has(r)){var o=n.values.get(r);o&&o.set(i)}else n.values.set(r,ue(i));n.baseTarget[r]=i}})},e.prototype.transformValues=function(e){var t=this.props.transformValues;return t?t(e):e},e.prototype.checkForNewValues=function(e){var t=this,n=Object.keys(e).filter(function(e){return!t.values.has(e)});n.length&&n.forEach(function(n){var r=t.readValueFromSource(n);"string"==typeof r&&/^\d*\.?\d+$/.test(r)?r=parseFloat(r):!function(e){return Ce.find(Oe(e))}(r)&&u.complex.test(e[n])&&(r=u.complex.getAnimatableNone(e[n])),t.values.set(n,ue(r)),t.baseTarget[n]=r})},e.prototype.resolveVariant=function(e){if(!e)return{target:void 0,transition:void 0,transitionEnd:void 0};var t,n;"function"==typeof e&&(e=e(this.props.custom,(t=this.values,n={},t.forEach(function(e,t){return n[t]=e.get()}),n),function(e){var t={};return e.forEach(function(e,n){return t[n]=e.getVelocity()}),t}(this.values)));var r=e.transition;return{transition:void 0===r?this.defaultTransition:r,transitionEnd:e.transitionEnd,target:ne(e,["transition","transitionEnd"])}},e.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},e.prototype.setOverride=function(e,t){this.overrides[t]=e,this.children&&this.children.forEach(function(n){return n.setOverride(e,t)})},e.prototype.startOverride=function(e){var t=this.overrides[e];if(t)return this.start(t,{priority:e})},e.prototype.clearOverride=function(e){if(this.children&&this.children.forEach(function(t){return t.clearOverride(e)}),this.overrides[e]){this.activeOverrides.delete(e);var t=this.getHighestPriority();if(this.resetIsAnimating(),t)this.overrides[t]&&this.startOverride(t);var n=this.resolvedOverrides[e];if(n){var r={};for(var i in this.baseTarget)void 0!==n[i]&&(r[i]=this.baseTarget[i]);this.animate(r)}}},e.prototype.apply=function(e){return Array.isArray(e)?this.applyVariantLabels(e):"string"==typeof e?this.applyVariantLabels([e]):void this.setValues(e)},e.prototype.applyVariantLabels=function(e){var t=this,n=new Set;e.slice().reverse().forEach(function(r){var i=t.resolveVariant(t.variants[r]),o=i.target,a=i.transitionEnd;a&&t.setValues(a,n),o&&t.setValues(o,n),t.children&&t.children.size&&t.children.forEach(function(t){return t.applyVariantLabels(e)})})},e.prototype.start=function(e,t){return void 0===t&&(t={}),re(this,void 0,void 0,function(){var n=this;return ie(this,function(r){var i;return t.priority&&this.activeOverrides.add(t.priority),this.resetIsAnimating(t.priority),i=e,[2,(Array.isArray(i)?this.animateVariantLabels(e,t):"string"==typeof e?this.animateVariant(e,t):this.animate(e,t)).then(function(){var e=n.props.onAnimationComplete;e&&e()})]})})},e.prototype.animate=function(e,t){var n=void 0===t?{}:t,i=n.delay,o=void 0===i?0:i,a=n.priority,s=void 0===a?0:a,u=n.transitionOverride;return re(this,void 0,void 0,function(){var t,n,i,a,c,l,f=this;return ie(this,function(p){return t=this.resolveVariant(e),n=t.target,i=t.transition,a=t.transitionEnd,u&&(i=u),n?(n=this.transformValues(n),a&&(a=this.transformValues(a)),this.makeTargetAnimatable&&(c=this.makeTargetAnimatable(n,a),n=c.target,a=c.transitionEnd),s&&(this.resolvedOverrides[s]=n),this.checkForNewValues(n),l=Object.keys(n).reduce(function(e,t){var a=f.values.get(t);if(!a||!n||void 0===n[t])return e;var u=n[t];return s||(f.baseTarget[t]=xe(u)),f.isAnimating.has(t)?e:(e.push(function(e,t,n,i){var o=i.delay,a=void 0===o?0:o,s=ne(i,["delay"]);return t.start(function(i){var o,u=function(){var r=Ue(e,t,n,s);o=r.start({update:function(e){return t.set(e)},complete:i})};return a?o=Object(r.delay)(je(a)).start({complete:u}):u(),function(){o&&o.stop()}})}(t,a,u,te({delay:o},i))),f.isAnimating.add(t),e)},[]),[2,Promise.all(l).then(function(){a&&f.setValues(a)})]):[2,Promise.resolve()]})})},e.prototype.animateVariantLabels=function(e,t){var n=this,r=e.slice().reverse().map(function(e){return n.animateVariant(e,t)});return Promise.all(r)},e.prototype.animateVariant=function(e,t){return re(this,void 0,void 0,function(){var n,r,i,o,a,s,u,c,l,f,p,d,h=this;return ie(this,function(m){return n=!1,r=0,i=0,o=1,a=t&&t.priority||0,s=this.variants[e],u=s?function(){return h.animate(s,t)}:function(){return Promise.resolve()},c=this.children?function(){return h.animateChildren(e,r,i,o,a)}:function(){return Promise.resolve()},s&&this.children&&(l=this.resolveVariant(s).transition)&&(n=l.when||n,r=l.delayChildren||r,i=l.staggerChildren||i,o=l.staggerDirection||o),n?(p=(f="beforeChildren"===n?[u,c]:[c,u])[0],d=f[1],[2,p().then(d)]):[2,Promise.all([u(),c()])]})})},e.prototype.animateChildren=function(e,t,n,r,i){if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var o=[],a=(this.children.size-1)*n,s=1===r?function(e){return e*n}:function(e){return a-e*n};return Array.from(this.children).forEach(function(n,r){var a=n.animateVariant(e,{priority:i,delay:t+s(r)});o.push(a)}),Promise.all(o)},e.prototype.checkOverrideIsAnimating=function(e){for(var t=this.overrides.length,n=e+1;n<t;n++){var r=this.resolvedOverrides[n];if(r)for(var i in r)this.isAnimating.add(i)}},e.prototype.resetIsAnimating=function(e){void 0===e&&(e=0),this.isAnimating.clear(),e<this.getHighestPriority()&&this.checkOverrideIsAnimating(e),this.children&&this.children.forEach(function(t){return t.resetIsAnimating(e)})},e.prototype.stop=function(){this.values.forEach(function(e){return e.stop()})},e.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach(function(t,n){t&&e.setOverride(t,n)})},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.resetChildren=function(){this.children&&this.children.clear()},e}();var We=function(){function e(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return e.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach(function(t){return t.setVariants(e)})},e.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach(function(t){return t.setDefaultTransition(e)})},e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),this.variants&&e.setVariants(this.variants),this.defaultTransition&&e.setDefaultTransition(this.defaultTransition),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){var n=this;if(this.hasMounted){var r=[];return this.componentControls.forEach(function(n){var i=n.start(e,{transitionOverride:t});r.push(i)}),Promise.all(r)}return new Promise(function(r){n.pendingAnimations.push({animation:[e,t],resolve:r})})},e.prototype.set=function(e){return Object(c.invariant)(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.componentControls.forEach(function(t){return t.apply(e)})},e.prototype.stop=function(){this.componentControls.forEach(function(e){return e.stop()})},e.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var n=t.animation,r=t.resolve;return e.start.apply(e,n).then(r)})},e.prototype.unmount=function(){this.hasMounted=!1,this.stop()},e}(),Ve=function(){return new We},Ke=Object(Q.createContext)({static:!1}),$e=function(e){return"string"==typeof e||Array.isArray(e)},qe=function(e,t,n,r){void 0===n&&(n=!1);var i,o=r.initial,a=r.animate,s=r.variants,u=r.whileTap,c=r.whileHover;!1!==o||a instanceof We?"boolean"!=typeof o&&(i=o):i=a;var l,f,p=s||$e(a)||$e(u)||$e(c),d=$e(i)?i:e.initial,h=n?d:null,m=$e(a)?a:null,g=Object(Q.useMemo)(function(){return{controls:p?t:e.controls,initial:d}},[h,m]);return g.static=n,l=function(){var n=i||e.initial;n&&t.apply(n)},void 0===(f=n?1/0:1)&&(f=1),Object(Q.useRef)(0).current++<f&&l(),g};function Ge(e,t,n){var r=t.variants,i=t.transition,o=Object(Q.useContext)(Ke).controls,a=ce(function(){return new He(e)});return a.resetChildren(),n&&o&&o.addChild(a),Object(Q.useEffect)(function(){return function(){return o&&o.removeChild(a)}},[]),a.setProps(t),a.setVariants(r),a.setDefaultTransition(i),a}var Xe,Ye=function(e){var t=e.animate,n=e.variants,r=e.inherit;return(void 0===r||r)&&!!n&&(!t||t instanceof We)};!function(e){e.Target="Target",e.VariantLabel="VariantLabel",e.AnimationSubscription="AnimationSubscription"}(Xe||(Xe={}));var Ze=function(e){return function(t){return e(t),null}};var Je=function(e,t){return void 0!==t&&(Array.isArray(e)&&Array.isArray(t)?!function(e,t){if(null===t)return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(t,e):e!==t)};function Qe(e){e.transition,e.transitionEnd;return ne(e,["transition","transitionEnd"])}var et,tt,nt=function(e){var t,n=e instanceof se?e.get():e;return Array.from(new Set((t=n)?Array.isArray(t)?t:[t]:[]))},rt=function(e){return[e.join(",")]},it=function(e,t){return e.join(",")!==t.join(",")};var ot=((et={})[Xe.Target]=Ze(function(e){return function(e,t,n,r){var i=Object(Q.useRef)(!0),o=Object(Q.useRef)(null);o.current||(o.current=Qe(e)),Object(Q.useEffect)(function(){var a={},s=Qe(e);for(var u in o.current){var c=i.current&&(!n.has(u)||n.get(u)!==s[u]);(Je(o.current[u],s[u])||c)&&(a[u]=s[u])}i.current=!1,o.current=te({},o.current,s),Object.keys(a).length&&t.start(te({},a,{transition:e.transition||r,transitionEnd:e.transitionEnd}))},[e])}(e.animate,e.controls,e.values,e.transition)}),et[Xe.VariantLabel]=Ze(function(e){var t=e.animate,n=e.inherit;return function(e,t,n,r){var i=nt(e),o=Object(Q.useRef)(!1);Object(Q.useEffect)(function(){t||((o.current||it(nt(r),i))&&n.start(i),o.current=!0)},rt(i))}(t,void 0===n||n,e.controls,e.initial)}),et[Xe.AnimationSubscription]=Ze(function(e){return function(e,t){var n=Object(Q.useMemo)(function(){return e.subscribe(t)},[e]);Object(Q.useEffect)(function(){return function(){return n&&n()}},[n])}(e.animate,e.controls)}),et),at=function(e){return e.animate instanceof We},st=["initial","animate","whileTap","whileHover"],ut=((tt={})[Xe.Target]=function(e){return!(void 0===e.animate||(t=e.animate,Array.isArray(t)||"string"==typeof t)||at(e));var t},tt[Xe.VariantLabel]=function(e){return void 0!==e.variants||st.some(function(t){return"string"==typeof e[t]})},tt[Xe.AnimationSubscription]=at,tt),ct=function(e,t){void 0===t&&(t=!1);var n=void 0;for(var r in Xe)ut[r](e)&&(n=r);return!t&&n?ot[n]:void 0},lt=function(e){var t=e.useFunctionalityComponents,n=e.getValueControlsConfig;return Object(Q.forwardRef)(function(e,r){var i=oe(r),o=Object(Q.useContext)(Ke),a=o.static||e.static||!1,s=de(e),u=_e(s,e.style,e.transformValues),c=Ye(e),l=Ge(ce(function(){return n(i,s)}),e,c),f=qe(o,l,a,e),p=ct(e,f.static),d=p&&Object(Q.createElement)(p,te({},e,{inherit:c,innerRef:i,values:s,controls:l})),h=t(e,s,l,i,u,f.static);return Object(Q.createElement)(Ke.Provider,{value:f},Object(Q.createElement)(he,{ref:i,values:s,isStatic:a}),d,h)})},ft=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","