Socket
Socket
Sign inDemoInstall

framer-motion

Package Overview
Dependencies
Maintainers
20
Versions
1147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

framer-motion - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

4

dist/framer-motion.cjs.js

@@ -341,4 +341,4 @@ 'use strict';

MotionValue.prototype.destroy = function () {
this.updateSubscribers.clear();
this.renderSubscribers.clear();
this.updateSubscribers && this.updateSubscribers.clear();
this.renderSubscribers && this.renderSubscribers.clear();
this.cancelSubscriber.forEach(function (cancel) { return cancel(); });

@@ -345,0 +345,0 @@ this.cancelSubscriber.clear();

@@ -333,4 +333,4 @@ import sync, { getFrameData, cancelSync } from 'framesync';

MotionValue.prototype.destroy = function () {
this.updateSubscribers.clear();
this.renderSubscribers.clear();
this.updateSubscribers && this.updateSubscribers.clear();
this.renderSubscribers && this.renderSubscribers.clear();
this.cancelSubscriber.forEach(function (cancel) { return cancel(); });

@@ -337,0 +337,0 @@ this.cancelSubscriber.clear();

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,Z){"use strict";var e=["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","tr","track","u","ul","var","video","wbr","webview"],n=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],r=e.concat(n),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function z(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var u,a,s=0,c="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-s));s=e+n,setTimeout(function(){return t(s)},n)};(a=u||(u={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var f=1/60*1e3,l=!0,d=!1,p=!1,h={delta:0,timestamp:0},v=[u.Read,u.Update,u.Render,u.PostRender],m=function(t){return d=t},g=v.reduce(function(t,e){var r,i,u,a,s,o,c,f,l,p=(r=m,i=[],s=!(u=[]),o=a=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=u.indexOf(t);c.add(t),-1!==e&&u.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[u,i])[0],(u=e[1]).length=0,a=i.length)for(o=0;o<a;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:u;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(a=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),d||P(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),y=g.steps,D=g.sync,F=g.cancelSync,b=function(t){return y[t].process(h)},w=function(t){d=!1,h.delta=l?f:Math.max(Math.min(t-h.timestamp,40),1),l||(f=h.delta),h.timestamp=t,p=!0,v.forEach(b),p=!1,d&&(l=!1,c(w))},P=function(){l=d=!0,p||c(w)},M=function(){return h},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},E=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},C={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},k=O({},C,{transform:x(0,1)}),A=O({},C,{default:1}),R=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}}},T=R("deg"),L=R("%"),Y=R("px"),X=R("vh"),j=R("vw"),V=x(0,255),U=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,I=function(t){return void 0!==t.red},W=function(t){return void 0!==t.hue},B=function(u){var a=u.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<a;i++)r[u[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},q=O({},C,{transform:function(t){return Math.round(V(t))}}),N=E("rgb"),G={test:function(t){return"string"==typeof t?N(t):I(t)},parse:B(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,u=t.red,a=t.green,s=t.blue,c=t.alpha;return e={red:q.transform(u),green:q.transform(a),blue:q.transform(s),alpha:S(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},H=E("hsl"),$={test:function(t){return"string"==typeof t?H(t):W(t)},parse:B(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,u=t.hue,a=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(u),saturation:L.transform(S(a)),lightness:L.transform(S(s)),alpha:S(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},K=O({},G,{test:E("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(t){return"string"==typeof t&&U.test(t)||G.test(t)||$.test(t)||K.test(t)},parse:function(t){return G.test(t)?G.parse(t):$.test(t)?$.parse(t):K.test(t)?K.parse(t):t},transform:function(t){return I(t)?G.transform(t):W(t)?$.transform(t):t}},Q=/(-)?(\d[\d\.]*)/g,tt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,et="${c}",nt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(Q),r=t.match(tt);return n&&(e+=n.length),r&&(e+=r.length),0<e},rt=function(t){var e=t,n=[],r=e.match(tt);r&&(e=e.replace(tt,et),n.push.apply(n,r.map(J.parse)));var o=e.match(Q);return o&&n.push.apply(n,o.map(C.parse)),n},ot=function(t){var r=t,o=0,e=t.match(tt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],et),o++;var u=r.match(Q),a=u?u.length:0;if(u)for(n=0;n<a;n++)r=r.replace(u[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?et:"${n}",n<i?J.transform(t[n]):S(t[n]));return e}},it=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},at=function(e){return function(t){return t*t*((e+1)*t-e)}},st=function(t){var e=at(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ct=function(t){return t},ft=function(e){return function(t){return Math.pow(t,e)}}(2),lt=it(ft),pt=ut(ft),dt=function(t){return 1-Math.sin(Math.acos(t))},ht=it(dt),vt=ut(ht),mt=at(1.525),gt=it(mt),yt=ut(mt),bt=st(1.525),wt="undefined"!=typeof Float32Array,Pt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},xt=function(t,e,n){return 3*Pt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Et=function(t,e,n){return((Pt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function St(u,e,a,n){var s=wt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=xt(n=o+.1*e,u,a))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=xt(e,u,a)))return e;e-=(Et(e,u,a)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Et(o=e+(n-e)/2,u,a)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Et(.1*t,u,a)}();return function(t){return u===e&&a===n?t:0===t?0:1===t?1:Et(r(t),e,n)}}var Ct=function(t){return"number"==typeof t},kt=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},At=kt(function(t,e,n){return Math.min(Math.max(n,t),e)}),Rt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Tt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Yt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Xt=[K,G,$],jt=function(e){return Xt.find(function(t){return t.test(e)})},Dt=function(t,e){var n=jt(t),r=jt(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Lt({},o),a=n===$?Tt:Yt;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Tt(o.alpha,i.alpha,t),n.transform(u)}},Ft=function(e,n){return function(t){return n(e(t))}},Vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Ft)},Ut=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return Ct(e)?function(t){return Tt(e,n,t)}:J.test(e)?Dt(e,n):It(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},It=function(t,e){var n=ot(t);return n(t),ot(e)(t),Vt(Ut(rt(t),rt(e)),n)},Wt=(kt(Tt),function(t){return t}),Bt=function(i){return void 0===i&&(i=Wt),kt(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},qt=(Bt(),Bt(Math.sqrt),function(t,e){return Ct(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0};kt(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),At(0,1);var _t=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(_({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Vt.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),zt=function(){return function(t,e){var n=t.middleware,r=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Nt=function(t,e,n){var r=e.middleware;return new zt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=z(r,["init"]),u=o(Nt(t,i,function(){e=!0,n.stop()}));return n=u?_({},n,u):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(_t),Ht=function(t){return new Gt({init:t})},$t=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return Ht(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),u=p(),a=function(){return e(u)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&D.update(r))},error:o,update:function(t){h(u,e,t),D.update(a,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Kt=$t({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Jt=$t({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Qt=[Y,L,T,X,j],te=function(e){return Qt.find(function(t){return t.test(e)})},ee=function(t,e){return t(e)},ne=function(o,i,u){var t=u[0],e=i[t].map(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return se(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jt(t)}.apply(void 0,e)},re=function(o,i,u){var a=u[0],t=Object.keys(i[a]).reduce(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return t[e]=se(i[a][e])(o,r),t},{});return Kt(t)},oe=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=te(n)||te(r),u=i.transform,a=i.parse;return t(_({},o,{from:"string"==typeof n?a(n):n,to:"string"==typeof r?a(r):r})).pipe(u)},ie=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]);return t(_({},o,{from:0,to:1})).pipe(Dt(n,r),J.transform)},ue=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=ot(n);return i(n),ot(r)(n),t(_({},o,{from:0,to:1})).pipe(Ut(rt(n),rt(r)),i)},ae=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),u=e.testVectorProps,a=e.getVectorKeys;return function(t){if(!u(t))return r(t);var e=a(t),n=t[e[0]];return se(n)(r,t,e)}},se=function(t){var e=ee;return"number"==typeof t?e=ee:Array.isArray(t)?e=ne:Boolean(te(t))?e=oe:J.test(t)?e=ie:nt(t)?e=ue:"object"==typeof t&&(e=re),e},ce=ae(function(b){return void 0===b&&(b={}),Ht(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,u=void 0===r?0:r,a=b.power,s=void 0===a?.8:a,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(u+v),g=void 0===d?m:d(m),y=D.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(F.update(y),o())},!0);return{stop:function(){return F.update(y)}}})},{from:C.test,modifyTarget:function(t){return"function"==typeof t},velocity:C.test}),fe=ae(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,u=void 0===i?ct:i;return Ht(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(u,function(t){return Tt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:C.test,to:C.test}),le=At(0,1),pe=function(j){return void 0===j&&(j={}),Ht(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,u=j.ease,a=void 0===u?lt:u,s=j.flip,c=void 0===s?0:s,f=j.loop,l=void 0===f?0:f,p=j.yoyo,d=void 0===p?0:p,h=j.from,v=void 0===h?0:h,m=j.to,g=void 0===m?1:m,y=j.elapsed,b=void 0===y?0:y,w=j.playDirection,P=void 0===w?1:w,M=j.flipCount,O=void 0===M?0:M,x=j.yoyoCount,E=void 0===x?0:x,S=j.loopCount,C=void 0===S?0:S,k=fe({from:v,to:g,ease:a}).start(r),A=0,R=!1,T=function(){return P*=-1},L=function(){A=le(Rt(0,i,b)),k.seek(A)},Y=function(){R=!0,n=D.update(function(t){var e=t.delta;b+=e*P,L(),function(){var t,e=1===P?R&&i<=b:R&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&C<l?(C++,n=!(b=0)):c&&O<c?(b=i-b,k=fe({from:v=(t=[g,v])[0],to:g=t[1],ease:a}).start(r),O++,n=!0):d&&E<d&&(T(),E++,n=!0),!n}()&&o&&(F.update(n),D.update(o,!1,!0))},!0)},X=function(){R=!1,n&&F.update(n)};return Y(),{isActive:function(){return R},getElapsed:function(){return At(0,i,b)},getProgress:function(){return A},stop:function(){X()},pause:function(){return X(),this},resume:function(){return R||Y(),this},seek:function(t){return b=Tt(0,i,t),D.update(L,!1,!0),this},reverse:function(){return T(),this}}})},de=At(0,1),he=ae(function(m){return void 0===m&&(m={}),Ht(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,u=void 0===n?0:n,a=m.velocity,s=void 0===a?0:a,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=D.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=qt(i,n)),u&&(s*=Math.pow(1-u,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*qt(c,n));h+=qt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(F.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return u=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return F.update(v)}}})},{acceleration:C.test,friction:C.test,velocity:C.test,from:C.test,to:C.test,springStrength:C.test}),ve=ae(function(E){return void 0===E&&(E={}),Ht(function(t){var s=t.update,c=t.complete,e=E.velocity,f=void 0===e?0:e,n=E.from,r=void 0===n?0:n,o=E.to,l=void 0===o?0:o,i=E.stiffness,p=void 0===i?100:i,u=E.damping,d=void 0===u?10:u,a=E.mass,h=void 0===a?1:a,v=E.restSpeed,m=void 0===v?.01:v,g=E.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,M=r,O=M,x=D.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(O=M,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);M=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);M=l-o*(P+(b+r*P)*w)}f=Zt(M-O,e);var u=Math.abs(f)<=m,a=Math.abs(l-M)<=y;u&&a?(s(M=l),F.update(x),c()):s(M)},!0);return{stop:function(){return F.update(x)}}})},{from:C.test,to:C.test,stiffness:C.test,damping:C.test,mass:C.test,velocity:C.test}),me=function(r,o,i){return Ht(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},ge=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},ye=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},be=[ge()];if("undefined"!=typeof document){me(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=be.length=0;r<n;r++){var o=e[r];be.push(ye(o))}})}var we=ge();if("undefined"!=typeof document){me(document,"mousedown mousemove",!0).start(function(t){ye(t,we)})}var Pe,Me=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Oe=Me(function(t,e,n){return Math.min(Math.max(n,t),e)}),xe=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Ee=function(t,e,n){return-n*t+n*e+t},Se=function(){return(Se=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Ce=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},ke=[K,G,$],Ae=function(e){return ke.find(function(t){return t.test(e)})},Re=function(t,e){var n=Ae(t),r=Ae(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Se({},o),a=n===$?Ee:Ce;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Ee(o.alpha,i.alpha,t),n.transform(u)}},Te=function(e,n){return function(t){return n(e(t))}},Le=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Te)},Ye=function(t,e){var n,r,o,i,u,a=ot(t);return a(t),ot(e)(t),Le((n=rt(t),r=rt(e),o=n.slice(),i=o.length,u=n.map(function(e,t){var n=r[t];return"number"==typeof e?function(t){return Ee(e,n,t)}:J.test(e)?Re(e,n):Ye(e,n)}),function(t){for(var e=0;e<i;e++)o[e]=u[e](t);return o}),a)},Xe=Me(Ee),je=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Xe:J.test(t)?Re:Ye)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Le(r,n)}return n});var t},De=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,u=r.ease,a=t.length;e.length,!u||!Array.isArray(u)||(u.length,t.length),t[0]>t[a-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=je(e,u),y=2===a?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(xe(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=xe(s[e],s[e+1],t);return c[e](o)});return i?Le(Oe(t[0],t[a-1]),y):y},Fe=(Oe(0,1),function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,u=this;this.timeDelta=0,this.lastUpdated=0,this.cancelSubscriber=new Set,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(u.current)},this.scheduleVelocityCheck=function(){return D.postRender(u.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==u.lastUpdated&&(u.prev=u.current)},this.setChild=function(t){return t.set(u.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,_({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.addUpdateSubscription=function(t){var e=this;this.updateSubscribers||(this.updateSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.update(n,!1,!0)};return this.updateSubscribers.add(r),this.cancelSubscriber.add(function(){return F.update(n)}),function(){return e.updateSubscribers.delete(r)}},n.prototype.addRenderSubscription=function(t){var e=this;this.renderSubscribers||(this.renderSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.render(n)};return this.renderSubscribers.add(r),r(),this.cancelSubscriber.add(function(){return F.render(n)}),function(){return e.renderSubscribers.delete(r)}},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.timeDelta=r,this.lastUpdated=o,D.postRender(this.scheduleVelocityCheck)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?(t=parseFloat(this.prev)-parseFloat(this.current),(e=this.timeDelta)?t*(1e3/e):0):0;var t,e},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=z(e,["delay"]);this.stop();var u,a=t(_({from:this.get(),velocity:this.getVelocity()},i));return n&&(a=a.pipe(n)),o&&(a=function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return Ht(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=u[o].start({complete:function(){++o>=u.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((u=o,Ht(function(t){var e=t.complete,n=setTimeout(e,u);return{stop:function(){return clearTimeout(n)}}})),a)),new Promise(function(t){r.controller=a.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.cancelSubscriber.forEach(function(t){return t()}),this.cancelSubscriber.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}()),Ve=function(t,e){return new Fe(t,e)},Ue=function(t){var e,n=t instanceof Fe?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))},Ie=function(t){return[t.join(",")]},We=Z.createContext({dragging:!1}),Be=function(){return(Be=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},qe=function(t){var s=t.onRead,e=t.onRender,n=t.aliasMap,c=void 0===n?{}:n,r=t.uncachedValues,f=void 0===r?new Set:r,o=t.useCache,l=void 0===o||o;return function(n){var o={},i=[],u=!1,r=function(t,e){var n=c[t]||t,r=o[n];o[n]=e,o[n]!==r&&(-1===i.indexOf(n)&&i.push(n),u||(u=!0,D.render(a)))};function a(t){return void 0===t&&(t=!1),(!0===t||u)&&(e(o,n,i),u=!1,i.length=0),this}return{get:function(t){var e=c[t]||t;return e?l&&!f.has(e)&&void 0!==o[e]?o[e]:s(e,n):o},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return r(e,t)};r(e,t)}else for(var n in e)e.hasOwnProperty(n)&&r(n,e[n]);return this},render:a}}},Ze=/([a-z])([A-Z])/g,_e=function(t){return t.replace(Ze,"$1-$2").toLowerCase()},ze=new Map,Ne=new Map,Ge=["Webkit","Moz","O","ms",""],He=Ge.length,$e="undefined"!=typeof document,Ke=function(t,e){return Ne.set(t,_e(e))},Je=function(t,e){void 0===e&&(e=!1);var n,r=e?Ne:ze;return r.has(t)||($e?function(t){Pe=Pe||document.createElement("div");for(var e=0;e<He;e++){var n=Ge[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Pe.style||r)&&(ze.set(t,o),Ke(t,(r?"":"-")+_e(o)))}}(t):Ke(n=t,n)),r.get(t)||t},Qe=["","X","Y","Z"],tn=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return Qe.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),en=tn.reduce(function(t,e){return t[e]=!0,t},{}),nn=function(t){return!0===en[t]},rn=function(t,e){return tn.indexOf(t)-tn.indexOf(e)},on={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:T,skewX:T,skewY:T,distance:Y,translateX:Y,translateY:Y,translateZ:Y,perspective:Y,opacity:k,transformOriginX:L,transformOriginY:L,transformOriginZ:Y},un=function(t){return on[t]},an="scrollLeft",sn="scrollTop",cn=new Set([an,sn]),fn={x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ",scrollX:an,scrollY:sn},ln=function(t,e,n,r,o,i){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]);var u,a=!0,s=!1;for(var c in t){var f=fn[c]?fn[c]:c,l=t[c],p=un(f),d="number"==typeof l&&p?p.transform(l):l;nn(f)?(r[f]=d,i.push(f),a&&(p.default&&l!==p.default||!p.default&&0!==l)&&(a=!1)):"transformOriginX"===(u=f)||"transformOriginY"===u?(o[f]=d,s=!0):cn.has(f)||(n[f]=d)}if(a)n.transform="none";else{var h="",v=!1;i.sort(rn);for(var m=i.length,g=0;g<m;g++){h+=(f=i[g])+"("+r[f]+") ",v="z"===f||v}!v&&e&&(h+="translateZ(0)"),n.transform=h}return s&&(n.transformOrigin=(o.transformOriginX||0)+" "+(o.transformOriginY||0)+" "+(o.transformOriginZ||0)),n},pn=qe({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=un(t);if(nn(t))return o&&o.default||0;if(cn.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(Je(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;r.style.cssText+=o(t),-1!==n.indexOf(an)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(sn)&&(r.scrollTop=t.scrollTop)},aliasMap:fn,uncachedValues:cn}),dn=function(t,e){return pn(Be({element:t,buildStyles:function(u){void 0===u&&(u=!0);var a={},s={},c={},f={},l=[];return function(t){var e,n,r="";for(var o in l.length=0,a=ln(t,u,a,c,f,l)){var i=a[o];i!==s[o]&&(r+=(n=i,";"+Je(o,!0)+":"+n))}return a=(e=[s,a])[0],s=e[1],r}}(),preparseOutput:!0},e))},hn=function(t,e){return t/100*e+"px"},vn={fill:J,stroke:J,scale:A,scaleX:A,scaleY:A,opacity:k,fillOpacity:k,strokeOpacity:k},mn=qe({onRead:function(t,e){var n=e.element;if(nn(t)){var r=vn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e,n){var r=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,u={},a=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];nn(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?u["stroke-dashoffset"]=hn(-y,r):u[_e(g)]=y:(i=!0,a[g]=hn(y,r))}if(i&&(u["stroke-dasharray"]=a.pathLength+" "+a.pathSpacing),o)for(var g in u.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";u.transform+=m[g].replace(/undefined/g,b)}return u}(t,r,e.isPath,e.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),gn=qe({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),yn=new WeakMap,bn=function(t,e){var n,r,o,i;return t instanceof HTMLElement?n=dn(t,e):t instanceof SVGElement?(o=(r=t).getBBox(),i={element:r,dimensions:{x:o.x,y:o.y,width:o.width,height:o.height},isPath:!1},"path"===r.tagName&&(i.isPath=!0,i.pathLength=r.getTotalLength()),n=mn(i)):t===window&&(n=gn(t)),yn.set(t,n),n};function wn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,yn.has(n)?yn.get(n):bn(n,r)}var Pn,Mn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new Fe(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=wn(t),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),On=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},xn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},En=function(){return{ease:"linear",duration:250}},Sn={x:On,y:On,z:On,rotate:On,rotateX:On,rotateY:On,rotateZ:On,scaleX:xn,scaleY:xn,scale:xn,opacity:En,backgroundColor:En,color:En,default:xn},Cn={tween:pe,spring:ve,keyframes:function(t){var e,n,r,o,i=t.easings,u=t.ease,a=void 0===u?ct:u,s=t.times,c=t.values,f=z(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||lt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return fe({from:c[e],to:c[e+1],ease:t})});return pe(_({},f,{ease:a})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,u=(i=o-1)-1,a=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&a[0].seek(0),t>=r[i]&&a[u].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Rt(r[e-1],r[e],t);a[e-1].seek(de(n))};var r,e,n,o,i,u,a})},decay:ce,physics:he,just:function(t){var r=t.to;return Ht(function(t){var e=t.update,n=t.complete;e(r),n()})}},kn={linear:ct,easeIn:ft,easeOut:lt,easeInOut:pt,circIn:dt,circOut:ht,circInOut:vt,backIn:mt,backOut:gt,backInOut:yt,anticipate:bt},An={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=St(n,r,o,i)}else"string"==typeof e&&(t.ease=kn[e]);return t},keyframes:function(t){t.from,t.to;return z(t,["from","to"])}},Rn=function(t,e,n){if(void 0===n)return _({},(Sn[t]||Sn.default)(r=e),{to:r});var r,o=n.delay,i=void 0===o?0:o,u=n[t]||n.default||n;return!1===u.type?{type:"just",delay:i,to:e}:_({delay:i,to:e},u)},Tn=function(t,e,n){var r,o,i=Rn(t,e,n),u=i.type,a=void 0===u?"tween":u,s=z(i,["type"]);return[Cn[a],(o=s,An[r=a]?An[r](o):o)]},Ln=function(n,r,o){return void 0===o&&(o=new Set),Object.keys(n).forEach(function(t){if(!o.has(t))if(o.add(t),r.has(t)){var e=r.get(t);e&&e.set(n[t])}else r.set(t,Ve(n[t]))})},Yn=function(t,e){return void 0===e&&(e={}),t?("function"==typeof t&&(t=t(e)),Array.isArray(t)?t:[t]):[]},Xn=function(){function t(t){this.poses={},this.isAnimating=new Set,this.values=t}return t.prototype.setProps=function(t){this.props=t},t.prototype.setPoses=function(t){this.poses=t},t.prototype.start=function(t,e){return this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateMultiplePoses(t):"string"==typeof t?this.animatePose(t):this.animate([t,e]);var n},t.prototype.set=function(t){var i=this,u=new Set;t.slice().reverse().forEach(function(t){var e=Yn(i.poses[t],i.props),n=e[0],r=e[1];if(r){var o=r.applyOnEnd;o&&Ln(o,i.values,u)}n&&Ln(n,i.values,u)})},t.prototype.animate=function(t,s){var c=this;void 0===s&&(s=0);var e=Yn(t),f=e[0],n=e[1],l=void 0===n?{}:n;if(!f)return Promise.resolve();var r=Object.keys(f).reduce(function(t,e){if(c.isAnimating.has(e))return t;c.values.has(e)||c.values.set(e,Ve(0));var n=c.values.get(e);if(!n)return t;var r,o=f[e];if("number"==typeof(r=o)||nt(r)){var i=Tn(e,o,_({delay:s},l)),u=i[0],a=i[1];t.push(n.control(u,a))}else n.set(o);return c.isAnimating.add(e),t},[]);return Promise.all(r).then(function(){if(l&&l.applyOnEnd){var t=l.applyOnEnd;Ln(t,c.values)}})},t.prototype.animateMultiplePoses=function(t){var e=this,n=t.slice().reverse().map(function(t){return e.animatePose(t)});return Promise.all(n)},t.prototype.animatePose=function(t,e){var n=this;void 0===e&&(e=0);var r=!1,o=!1,i=0,u=0,a=1,s=this.poses[t],c=s?function(){return n.animate(s,e)}:function(){return Promise.resolve()},f=this.children?function(){return n.animateChildren(t,i,u,a)}:function(){return Promise.resolve()};if(s&&this.children){var l=Yn(s)[1];l&&(r=l.beforeChildren||r,o=l.afterChildren||o,i=l.delayChildren||i,u=l.staggerChildren||u,a=l.staggerDirection||a)}if(r||o){var p=r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},t.prototype.animateChildren=function(r,o,e,t){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),!this.children)return Promise.resolve();var i=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animatePose(r,o+u(e));i.push(n)}),Promise.all(i)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),jn=(Pn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Pn(t)}),n}),Dn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set,this.poses={}}return t.prototype.setPoses=function(e){this.poses=e,this.subscribers.forEach(function(t){return t.setPoses(e)})},t.prototype.subscribe=function(t){var e=this;return this.subscribers.add(t),this.poses&&t.setPoses(this.poses),function(){return e.subscribers.delete(t)}},t.prototype.start=function(n,r){if(this.hasMounted){var o=[];return this.subscribers.forEach(function(t){var e=t.start(n,r);o.push(e)}),Promise.all(o)}return this.pendingAnimations.push([n,r]),Promise.resolve()},t.prototype.stop=function(){this.subscribers.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var e=t[0],n=t[1];return r.start(e,n)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}();function Fn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var Vn,Un=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},In=function(o,i,u,a){var t=void 0;return i&&!Fn(i)||!u||(t=Un(i,o,u,a)),Z.useEffect(function(){var t=i;if(u&&i&&!Fn(i)&&t.current){var e=Un(t.current,o,u,a),n=e[0],r=e[1];return n(),r}},[o,i,u,a]),t},Wn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var u=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:u*(t.pageY-r.top-e.clientTop+e.scrollTop)}},Bn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Wn(n,r),devicePoint:Wn(n,document.body)}),o(t,e)}}},qn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Zn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,u=t.onPointerCancel,a=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:u}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:a,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,M,O,x,E,S,C,k,A,R,T,L,Y,X,j,D,F,V,U,I,W,B,q,Z,_,z,N,G,H,$,K,J,Q,tt,et,nt,rt,ot,it,ut,at=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,M=h.onPointerOut,O=h.onPointerEnter,x=h.onPointerLeave,E=In("pointerdown",v,Bn(g),m),S=In("pointermove",v,Bn(y),m),C=In("pointerup",v,Bn(b),m),k=In("pointercancel",v,Bn(w),m),A=In("pointerover",v,Bn(P),m),R=In("pointerout",v,Bn(M),m),T=In("pointerenter",v,Bn(O),m),L=In("pointerleave",v,Bn(x),m),qn(E,S,C,k,A,R,T,L)),st=(X=e,j=n,D=(Y=p).onTouchStart,F=Y.onTouchMove,V=Y.onTouchEnd,U=Y.onTouchCancel,I=In("touchstart",X,Bn(D),j),W=In("touchmove",X,Bn(F),j),B=In("touchend",X,Bn(V),j),q=In("touchcancel",X,Bn(U),j),qn(I,W,B,q)),ct=(_=e,z=n,N=(Z=l).onMouseDown,G=Z.onMouseMove,H=Z.onMouseUp,$=Z.onMouseOver,K=Z.onMouseOut,J=Z.onMouseEnter,Q=Z.onMouseLeave,tt=In("mousedown",_,Bn(N),z),et=In("mousemove",_,Bn(G),z),nt=In("mouseup",_,Bn(H),z),rt=In("mouseover",_,Bn($),z),ot=In("mouseout",_,Bn(K),z),it=In("mouseenter",_,Bn(J),z),ut=In("mouseleave",_,Bn(Q),z),qn(tt,et,nt,rt,ot,it,ut));return qn(at,st,ct)},_n=function(t,e,n){var r,o,i=Z.useRef(null);return o=e?(r=e,t):(r=i,{}),Zn(o,r,n),e?void 0:t};(Vn||(Vn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var zn=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function Nn(t,e){var u=t.onPan,a=t.onPanStart,s=t.onPanEnd,c=null,f=Z.useRef(null),n=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);f.current.x.set(n.x),f.current.y.set(n.y),(0<Math.abs(o.x)||0<Math.abs(o.y))&&(c.startEvent?u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}):(a&&a(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c.startEvent=t)),c.lastDevicePoint=r}else console.error("Pointer move without started session")}},[u,a]),r=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);h(),l(),s&&s(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c=null}else console.error("Pointer end without started session")}},[s,n]),o=Zn({onPointerUp:r},window),i=o[0],l=o[1],p=Zn({onPointerMove:n},window,{capture:!0}),d=p[0],h=p[1],v=Z.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;f.current={x:Ve(r.x),y:Ve(r.y)},c={target:t.target,lastDevicePoint:n,startDevicePoint:n},d(),i()}},[r,n]);Z.useEffect(function(){return function(){h(),l()}},[]);var m={onPointerDown:v};return u||a||s||(m={}),_n(m,e)}function Gn(t,o){var i=t.onTap,u=null,e=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;u&&o&&t.target===o.current&&(i&&i({point:n,devicePoint:r},t),u=null)}},[i]),n=Zn({onPointerUp:e},window),r=n[0],a=n[1];return Z.useEffect(function(){return function(){a()}},[o&&o.current,e]),_n({onPointerDown:function(t){r(),o&&t.target===o.current&&(u={target:t.target})}},o)}var Hn=function(t,e){Nn(t,e),Gn(t,e)};function $n(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Kn=function(t){var e={dragEnabled:!1,dragLocksDirection:!1,dragPropagation:!1};return Object.assign(e,t),void 0===t.dragEnabled&&(t.dragLocksDirection||t.dragPropagation)&&(e.dragEnabled=!0),e};function Jn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function Qn(t,e,n){var r,o,i,u=(r=t,"function"==typeof(o=Kn)?i=o(r):(i=o,Object.assign(i,r)),i),a=u.dragEnabled,s=u.dragPropagation,c=u.dragLocksDirection,f={},l=null;Jn("x",a,l)&&(f.x=n.get("x",0)),Jn("y",a,l)&&(f.y=n.get("y",0));var p=Z.useContext(We),d=!1,h=Z.useMemo(function(){return function(){(s||(d=function(t){var e=!1;if("y"===t)e=er();else if("x"===t)e=tr();else{var n=tr(),r=er();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(a)))&&(l=null,p.dragging=!0)}},[a,s,p]),v=Z.useMemo(function(){return function(t,e){var n=e.delta,r=e.offset;if(s||d)if(c&&null===l)l=function(t){var e=null;10<Math.abs(t.y)?e="y":10<Math.abs(t.x)&&(e="x");return e}(r);else{var o=f.x,i=f.y;Jn("x",a,l)&&o&&o.set(o.get()+n.x),Jn("y",a,l)&&i&&i.set(i.get()+n.y)}}},[d,a,f]),m=Z.useMemo(function(){return function(){!s&&d&&d(),p.dragging=!1}},[d,p,a]),g={};a&&(g={onPanStart:h,onPan:v,onPanEnd:m}),Nn(g,e)}var tr=$n("dragHorizontal"),er=$n("dragVertical");var nr=["dragEnabled","onPan","onPanStart","onPanEnd","onTap"],rr=function(t){return t instanceof Dn},or=function(e){return function(t){return e(t),null}},ir=or(function(t){return e=t.animate,n=t.controls,r=Z.useMemo(function(){return e.subscribe(n)},[e]),void Z.useEffect(function(){return function(){return r&&r()}},[r]);var e,n,r}),ur=or(function(t){var e,n,r,o,i,u,a,s,c,f=t.animate,l=t.inherit,p=t.controls,d=t.onPoseComplete,h=t.pose,v=t.initialPose;return e=f,n=l,r=p,o=d,i=h,u=v,a=Z.useContext(We).pose,s=Ue(n?a:i),c=Z.useRef(!1),r.setPoses(e),Z.useMemo(function(){var t=u?Ue(u):s;r.set(t)},[]),void Z.useEffect(function(){n||((c.current||u)&&r.start(s).then(function(){o&&o()}),c.current=!0)},Ie(s))}),ar=or(function(t){var e=t.innerRef,n=z(t,["innerRef"]);return Hn(n,e)}),sr=or(function(t){var e=t.innerRef,n=t.values;return Qn(z(t,["innerRef","values"]),e,n)}),cr=function(t){var e,n,r=t.base,o=t.remainingProps,i=t.innerRef,u=t.style,a=t.values;return Z.createElement(r,_({},o,{ref:i,style:(e=a,n=u,_({},n,ln(jn(e))))}))},fr=function(q){return Z.memo(Z.forwardRef(function(t,e){var n,r,o,i,u,a,s,c,f,l,p,d,h,v,m,g,y,b,w=t,P=w.animate,M=w.pose,O=void 0===M?"default":M,x=w.style,E=w.onPoseComplete,S=w.inherit,C=void 0!==S&&S,k=w.initialPose,A=w.dragEnabled,R=w.dragLocksDirection,T=w.dragPropagation,L=z(w,["animate","pose","style","onPoseComplete","inherit","initialPose","dragEnabled","dragLocksDirection","dragPropagation"]),Y=(r=(n=e)&&"function"!=typeof n?n:Z.useRef(null),Z.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),X=(o=Y,i=Z.useMemo(function(){return new Mn},[]),Z.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),j=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Fe?t.has(r)||t.set(r,o):n[r]=o}return n}(X,x),D=(u=X,a=C,s=L,c=Z.useContext(We).controls,(f=Z.useMemo(function(){return new Xn(u)},[])).resetChildren(),a&&c&&c.addChild(f),Z.useEffect(function(){return function(){return c&&c.removeChild(f)}},[]),f.setProps(s),f),F=(l=D,p=C,d=k||O,h=Z.useContext(We),v=h.pose,m=h.dragging,(g=Z.useMemo(function(){return{controls:l,dragging:m}},Ie(Ue(d)))).pose=p?v:d,g),V=rr(P)&&Z.createElement(ir,{animate:P,controls:D}),U=void 0!==(y=P)&&!rr(y)&&Z.createElement(ur,{animate:P,inherit:C,controls:D,onPoseComplete:E,pose:O,initialPose:k}),I=(b=t,nr.some(function(t){return b.hasOwnProperty(t)})&&Z.createElement(ar,_({},t,{innerRef:Y}))),W=!!t.dragEnabled&&Z.createElement(sr,{dragEnabled:A,dragLocksDirection:R,dragPropagation:T,innerRef:Y,values:X}),B=Z.createElement(cr,{base:q,remainingProps:L,innerRef:Y,style:j,values:X});return Z.createElement(We.Provider,{value:F},V,U,I,W,B)}))},lr=r.reduce(function(t,e){return t[e]=fr(e),t},{custom:fr}),pr=Ve(0),dr=Ve(0),hr=Ve(0),vr=Ve(0),mr=0,gr=0,yr=0,br=0,wr=!1,Pr={scrollX:pr,scrollY:dr,scrollXProgress:hr,scrollYProgress:vr};t.motion=lr,t.useMotionValue=function(t){return Z.useMemo(function(){return Ve(t)},[])},t.useTransformedValue=function(e,n,r){var o=Z.useRef(null);return Z.useMemo(function(){o.current&&o.current.destroy();var t=De(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return wr||function(){if(wr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;pr.set(t),dr.set(e),hr.set(mr-t-yr),vr.set(gr-e-br)},e=function(){mr=document.body.clientWidth,gr=document.body.clientHeight,yr=window.innerWidth,br=window.innerHeight};e(),t(),window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0})}}(),Pr},t.useAnimation=function(t){var e=Z.useMemo(function(){return new Dn},[]);return t&&e.setPoses(t),Z.useEffect(function(){return e.mount(),function(){return e.unmount()}},[]),e},t.useTapGesture=Gn,t.usePanGesture=Nn,t.useGestures=Hn,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,Z){"use strict";var e=["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","tr","track","u","ul","var","video","wbr","webview"],n=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],r=e.concat(n),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function z(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var u,a,s=0,c="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-s));s=e+n,setTimeout(function(){return t(s)},n)};(a=u||(u={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var f=1/60*1e3,l=!0,d=!1,p=!1,h={delta:0,timestamp:0},v=[u.Read,u.Update,u.Render,u.PostRender],m=function(t){return d=t},g=v.reduce(function(t,e){var r,i,u,a,s,o,c,f,l,p=(r=m,i=[],s=!(u=[]),o=a=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=u.indexOf(t);c.add(t),-1!==e&&u.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[u,i])[0],(u=e[1]).length=0,a=i.length)for(o=0;o<a;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:u;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(a=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),d||P(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),y=g.steps,D=g.sync,F=g.cancelSync,b=function(t){return y[t].process(h)},w=function(t){d=!1,h.delta=l?f:Math.max(Math.min(t-h.timestamp,40),1),l||(f=h.delta),h.timestamp=t,p=!0,v.forEach(b),p=!1,d&&(l=!1,c(w))},P=function(){l=d=!0,p||c(w)},M=function(){return h},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},E=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},C={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},k=O({},C,{transform:x(0,1)}),A=O({},C,{default:1}),R=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}}},T=R("deg"),L=R("%"),Y=R("px"),X=R("vh"),j=R("vw"),V=x(0,255),U=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,I=function(t){return void 0!==t.red},W=function(t){return void 0!==t.hue},B=function(u){var a=u.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<a;i++)r[u[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},q=O({},C,{transform:function(t){return Math.round(V(t))}}),N=E("rgb"),G={test:function(t){return"string"==typeof t?N(t):I(t)},parse:B(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,u=t.red,a=t.green,s=t.blue,c=t.alpha;return e={red:q.transform(u),green:q.transform(a),blue:q.transform(s),alpha:S(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},H=E("hsl"),$={test:function(t){return"string"==typeof t?H(t):W(t)},parse:B(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,u=t.hue,a=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(u),saturation:L.transform(S(a)),lightness:L.transform(S(s)),alpha:S(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},K=O({},G,{test:E("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(t){return"string"==typeof t&&U.test(t)||G.test(t)||$.test(t)||K.test(t)},parse:function(t){return G.test(t)?G.parse(t):$.test(t)?$.parse(t):K.test(t)?K.parse(t):t},transform:function(t){return I(t)?G.transform(t):W(t)?$.transform(t):t}},Q=/(-)?(\d[\d\.]*)/g,tt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,et="${c}",nt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(Q),r=t.match(tt);return n&&(e+=n.length),r&&(e+=r.length),0<e},rt=function(t){var e=t,n=[],r=e.match(tt);r&&(e=e.replace(tt,et),n.push.apply(n,r.map(J.parse)));var o=e.match(Q);return o&&n.push.apply(n,o.map(C.parse)),n},ot=function(t){var r=t,o=0,e=t.match(tt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],et),o++;var u=r.match(Q),a=u?u.length:0;if(u)for(n=0;n<a;n++)r=r.replace(u[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?et:"${n}",n<i?J.transform(t[n]):S(t[n]));return e}},it=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},at=function(e){return function(t){return t*t*((e+1)*t-e)}},st=function(t){var e=at(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ct=function(t){return t},ft=function(e){return function(t){return Math.pow(t,e)}}(2),lt=it(ft),pt=ut(ft),dt=function(t){return 1-Math.sin(Math.acos(t))},ht=it(dt),vt=ut(ht),mt=at(1.525),gt=it(mt),yt=ut(mt),bt=st(1.525),wt="undefined"!=typeof Float32Array,Pt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},xt=function(t,e,n){return 3*Pt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Et=function(t,e,n){return((Pt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function St(u,e,a,n){var s=wt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=xt(n=o+.1*e,u,a))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=xt(e,u,a)))return e;e-=(Et(e,u,a)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Et(o=e+(n-e)/2,u,a)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Et(.1*t,u,a)}();return function(t){return u===e&&a===n?t:0===t?0:1===t?1:Et(r(t),e,n)}}var Ct=function(t){return"number"==typeof t},kt=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},At=kt(function(t,e,n){return Math.min(Math.max(n,t),e)}),Rt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Tt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Yt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Xt=[K,G,$],jt=function(e){return Xt.find(function(t){return t.test(e)})},Dt=function(t,e){var n=jt(t),r=jt(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Lt({},o),a=n===$?Tt:Yt;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Tt(o.alpha,i.alpha,t),n.transform(u)}},Ft=function(e,n){return function(t){return n(e(t))}},Vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Ft)},Ut=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return Ct(e)?function(t){return Tt(e,n,t)}:J.test(e)?Dt(e,n):It(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},It=function(t,e){var n=ot(t);return n(t),ot(e)(t),Vt(Ut(rt(t),rt(e)),n)},Wt=(kt(Tt),function(t){return t}),Bt=function(i){return void 0===i&&(i=Wt),kt(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},qt=(Bt(),Bt(Math.sqrt),function(t,e){return Ct(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0};kt(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),At(0,1);var _t=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(_({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Vt.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),zt=function(){return function(t,e){var n=t.middleware,r=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Nt=function(t,e,n){var r=e.middleware;return new zt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=z(r,["init"]),u=o(Nt(t,i,function(){e=!0,n.stop()}));return n=u?_({},n,u):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(_t),Ht=function(t){return new Gt({init:t})},$t=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return Ht(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),u=p(),a=function(){return e(u)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&D.update(r))},error:o,update:function(t){h(u,e,t),D.update(a,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Kt=$t({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Jt=$t({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Qt=[Y,L,T,X,j],te=function(e){return Qt.find(function(t){return t.test(e)})},ee=function(t,e){return t(e)},ne=function(o,i,u){var t=u[0],e=i[t].map(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return se(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jt(t)}.apply(void 0,e)},re=function(o,i,u){var a=u[0],t=Object.keys(i[a]).reduce(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return t[e]=se(i[a][e])(o,r),t},{});return Kt(t)},oe=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=te(n)||te(r),u=i.transform,a=i.parse;return t(_({},o,{from:"string"==typeof n?a(n):n,to:"string"==typeof r?a(r):r})).pipe(u)},ie=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]);return t(_({},o,{from:0,to:1})).pipe(Dt(n,r),J.transform)},ue=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=ot(n);return i(n),ot(r)(n),t(_({},o,{from:0,to:1})).pipe(Ut(rt(n),rt(r)),i)},ae=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),u=e.testVectorProps,a=e.getVectorKeys;return function(t){if(!u(t))return r(t);var e=a(t),n=t[e[0]];return se(n)(r,t,e)}},se=function(t){var e=ee;return"number"==typeof t?e=ee:Array.isArray(t)?e=ne:Boolean(te(t))?e=oe:J.test(t)?e=ie:nt(t)?e=ue:"object"==typeof t&&(e=re),e},ce=ae(function(b){return void 0===b&&(b={}),Ht(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,u=void 0===r?0:r,a=b.power,s=void 0===a?.8:a,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(u+v),g=void 0===d?m:d(m),y=D.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(F.update(y),o())},!0);return{stop:function(){return F.update(y)}}})},{from:C.test,modifyTarget:function(t){return"function"==typeof t},velocity:C.test}),fe=ae(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,u=void 0===i?ct:i;return Ht(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(u,function(t){return Tt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:C.test,to:C.test}),le=At(0,1),pe=function(j){return void 0===j&&(j={}),Ht(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,u=j.ease,a=void 0===u?lt:u,s=j.flip,c=void 0===s?0:s,f=j.loop,l=void 0===f?0:f,p=j.yoyo,d=void 0===p?0:p,h=j.from,v=void 0===h?0:h,m=j.to,g=void 0===m?1:m,y=j.elapsed,b=void 0===y?0:y,w=j.playDirection,P=void 0===w?1:w,M=j.flipCount,O=void 0===M?0:M,x=j.yoyoCount,E=void 0===x?0:x,S=j.loopCount,C=void 0===S?0:S,k=fe({from:v,to:g,ease:a}).start(r),A=0,R=!1,T=function(){return P*=-1},L=function(){A=le(Rt(0,i,b)),k.seek(A)},Y=function(){R=!0,n=D.update(function(t){var e=t.delta;b+=e*P,L(),function(){var t,e=1===P?R&&i<=b:R&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&C<l?(C++,n=!(b=0)):c&&O<c?(b=i-b,k=fe({from:v=(t=[g,v])[0],to:g=t[1],ease:a}).start(r),O++,n=!0):d&&E<d&&(T(),E++,n=!0),!n}()&&o&&(F.update(n),D.update(o,!1,!0))},!0)},X=function(){R=!1,n&&F.update(n)};return Y(),{isActive:function(){return R},getElapsed:function(){return At(0,i,b)},getProgress:function(){return A},stop:function(){X()},pause:function(){return X(),this},resume:function(){return R||Y(),this},seek:function(t){return b=Tt(0,i,t),D.update(L,!1,!0),this},reverse:function(){return T(),this}}})},de=At(0,1),he=ae(function(m){return void 0===m&&(m={}),Ht(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,u=void 0===n?0:n,a=m.velocity,s=void 0===a?0:a,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=D.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=qt(i,n)),u&&(s*=Math.pow(1-u,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*qt(c,n));h+=qt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(F.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return u=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return F.update(v)}}})},{acceleration:C.test,friction:C.test,velocity:C.test,from:C.test,to:C.test,springStrength:C.test}),ve=ae(function(E){return void 0===E&&(E={}),Ht(function(t){var s=t.update,c=t.complete,e=E.velocity,f=void 0===e?0:e,n=E.from,r=void 0===n?0:n,o=E.to,l=void 0===o?0:o,i=E.stiffness,p=void 0===i?100:i,u=E.damping,d=void 0===u?10:u,a=E.mass,h=void 0===a?1:a,v=E.restSpeed,m=void 0===v?.01:v,g=E.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,M=r,O=M,x=D.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(O=M,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);M=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);M=l-o*(P+(b+r*P)*w)}f=Zt(M-O,e);var u=Math.abs(f)<=m,a=Math.abs(l-M)<=y;u&&a?(s(M=l),F.update(x),c()):s(M)},!0);return{stop:function(){return F.update(x)}}})},{from:C.test,to:C.test,stiffness:C.test,damping:C.test,mass:C.test,velocity:C.test}),me=function(r,o,i){return Ht(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},ge=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},ye=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},be=[ge()];if("undefined"!=typeof document){me(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=be.length=0;r<n;r++){var o=e[r];be.push(ye(o))}})}var we=ge();if("undefined"!=typeof document){me(document,"mousedown mousemove",!0).start(function(t){ye(t,we)})}var Pe,Me=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Oe=Me(function(t,e,n){return Math.min(Math.max(n,t),e)}),xe=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Ee=function(t,e,n){return-n*t+n*e+t},Se=function(){return(Se=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Ce=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},ke=[K,G,$],Ae=function(e){return ke.find(function(t){return t.test(e)})},Re=function(t,e){var n=Ae(t),r=Ae(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Se({},o),a=n===$?Ee:Ce;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Ee(o.alpha,i.alpha,t),n.transform(u)}},Te=function(e,n){return function(t){return n(e(t))}},Le=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Te)},Ye=function(t,e){var n,r,o,i,u,a=ot(t);return a(t),ot(e)(t),Le((n=rt(t),r=rt(e),o=n.slice(),i=o.length,u=n.map(function(e,t){var n=r[t];return"number"==typeof e?function(t){return Ee(e,n,t)}:J.test(e)?Re(e,n):Ye(e,n)}),function(t){for(var e=0;e<i;e++)o[e]=u[e](t);return o}),a)},Xe=Me(Ee),je=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Xe:J.test(t)?Re:Ye)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Le(r,n)}return n});var t},De=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,u=r.ease,a=t.length;e.length,!u||!Array.isArray(u)||(u.length,t.length),t[0]>t[a-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=je(e,u),y=2===a?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(xe(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=xe(s[e],s[e+1],t);return c[e](o)});return i?Le(Oe(t[0],t[a-1]),y):y},Fe=(Oe(0,1),function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,u=this;this.timeDelta=0,this.lastUpdated=0,this.cancelSubscriber=new Set,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(u.current)},this.scheduleVelocityCheck=function(){return D.postRender(u.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==u.lastUpdated&&(u.prev=u.current)},this.setChild=function(t){return t.set(u.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,_({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.addUpdateSubscription=function(t){var e=this;this.updateSubscribers||(this.updateSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.update(n,!1,!0)};return this.updateSubscribers.add(r),this.cancelSubscriber.add(function(){return F.update(n)}),function(){return e.updateSubscribers.delete(r)}},n.prototype.addRenderSubscription=function(t){var e=this;this.renderSubscribers||(this.renderSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.render(n)};return this.renderSubscribers.add(r),r(),this.cancelSubscriber.add(function(){return F.render(n)}),function(){return e.renderSubscribers.delete(r)}},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.timeDelta=r,this.lastUpdated=o,D.postRender(this.scheduleVelocityCheck)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?(t=parseFloat(this.prev)-parseFloat(this.current),(e=this.timeDelta)?t*(1e3/e):0):0;var t,e},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=z(e,["delay"]);this.stop();var u,a=t(_({from:this.get(),velocity:this.getVelocity()},i));return n&&(a=a.pipe(n)),o&&(a=function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return Ht(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=u[o].start({complete:function(){++o>=u.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((u=o,Ht(function(t){var e=t.complete,n=setTimeout(e,u);return{stop:function(){return clearTimeout(n)}}})),a)),new Promise(function(t){r.controller=a.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.cancelSubscriber.forEach(function(t){return t()}),this.cancelSubscriber.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}()),Ve=function(t,e){return new Fe(t,e)},Ue=function(t){var e,n=t instanceof Fe?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))},Ie=function(t){return[t.join(",")]},We=Z.createContext({dragging:!1}),Be=function(){return(Be=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},qe=function(t){var s=t.onRead,e=t.onRender,n=t.aliasMap,c=void 0===n?{}:n,r=t.uncachedValues,f=void 0===r?new Set:r,o=t.useCache,l=void 0===o||o;return function(n){var o={},i=[],u=!1,r=function(t,e){var n=c[t]||t,r=o[n];o[n]=e,o[n]!==r&&(-1===i.indexOf(n)&&i.push(n),u||(u=!0,D.render(a)))};function a(t){return void 0===t&&(t=!1),(!0===t||u)&&(e(o,n,i),u=!1,i.length=0),this}return{get:function(t){var e=c[t]||t;return e?l&&!f.has(e)&&void 0!==o[e]?o[e]:s(e,n):o},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return r(e,t)};r(e,t)}else for(var n in e)e.hasOwnProperty(n)&&r(n,e[n]);return this},render:a}}},Ze=/([a-z])([A-Z])/g,_e=function(t){return t.replace(Ze,"$1-$2").toLowerCase()},ze=new Map,Ne=new Map,Ge=["Webkit","Moz","O","ms",""],He=Ge.length,$e="undefined"!=typeof document,Ke=function(t,e){return Ne.set(t,_e(e))},Je=function(t,e){void 0===e&&(e=!1);var n,r=e?Ne:ze;return r.has(t)||($e?function(t){Pe=Pe||document.createElement("div");for(var e=0;e<He;e++){var n=Ge[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Pe.style||r)&&(ze.set(t,o),Ke(t,(r?"":"-")+_e(o)))}}(t):Ke(n=t,n)),r.get(t)||t},Qe=["","X","Y","Z"],tn=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return Qe.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),en=tn.reduce(function(t,e){return t[e]=!0,t},{}),nn=function(t){return!0===en[t]},rn=function(t,e){return tn.indexOf(t)-tn.indexOf(e)},on={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:T,skewX:T,skewY:T,distance:Y,translateX:Y,translateY:Y,translateZ:Y,perspective:Y,opacity:k,transformOriginX:L,transformOriginY:L,transformOriginZ:Y},un=function(t){return on[t]},an="scrollLeft",sn="scrollTop",cn=new Set([an,sn]),fn={x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ",scrollX:an,scrollY:sn},ln=function(t,e,n,r,o,i){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]);var u,a=!0,s=!1;for(var c in t){var f=fn[c]?fn[c]:c,l=t[c],p=un(f),d="number"==typeof l&&p?p.transform(l):l;nn(f)?(r[f]=d,i.push(f),a&&(p.default&&l!==p.default||!p.default&&0!==l)&&(a=!1)):"transformOriginX"===(u=f)||"transformOriginY"===u?(o[f]=d,s=!0):cn.has(f)||(n[f]=d)}if(a)n.transform="none";else{var h="",v=!1;i.sort(rn);for(var m=i.length,g=0;g<m;g++){h+=(f=i[g])+"("+r[f]+") ",v="z"===f||v}!v&&e&&(h+="translateZ(0)"),n.transform=h}return s&&(n.transformOrigin=(o.transformOriginX||0)+" "+(o.transformOriginY||0)+" "+(o.transformOriginZ||0)),n},pn=qe({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=un(t);if(nn(t))return o&&o.default||0;if(cn.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(Je(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;r.style.cssText+=o(t),-1!==n.indexOf(an)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(sn)&&(r.scrollTop=t.scrollTop)},aliasMap:fn,uncachedValues:cn}),dn=function(t,e){return pn(Be({element:t,buildStyles:function(u){void 0===u&&(u=!0);var a={},s={},c={},f={},l=[];return function(t){var e,n,r="";for(var o in l.length=0,a=ln(t,u,a,c,f,l)){var i=a[o];i!==s[o]&&(r+=(n=i,";"+Je(o,!0)+":"+n))}return a=(e=[s,a])[0],s=e[1],r}}(),preparseOutput:!0},e))},hn=function(t,e){return t/100*e+"px"},vn={fill:J,stroke:J,scale:A,scaleX:A,scaleY:A,opacity:k,fillOpacity:k,strokeOpacity:k},mn=qe({onRead:function(t,e){var n=e.element;if(nn(t)){var r=vn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e,n){var r=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,u={},a=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];nn(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?u["stroke-dashoffset"]=hn(-y,r):u[_e(g)]=y:(i=!0,a[g]=hn(y,r))}if(i&&(u["stroke-dasharray"]=a.pathLength+" "+a.pathSpacing),o)for(var g in u.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";u.transform+=m[g].replace(/undefined/g,b)}return u}(t,r,e.isPath,e.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),gn=qe({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),yn=new WeakMap,bn=function(t,e){var n,r,o,i;return t instanceof HTMLElement?n=dn(t,e):t instanceof SVGElement?(o=(r=t).getBBox(),i={element:r,dimensions:{x:o.x,y:o.y,width:o.width,height:o.height},isPath:!1},"path"===r.tagName&&(i.isPath=!0,i.pathLength=r.getTotalLength()),n=mn(i)):t===window&&(n=gn(t)),yn.set(t,n),n};function wn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,yn.has(n)?yn.get(n):bn(n,r)}var Pn,Mn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new Fe(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=wn(t),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),On=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},xn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},En=function(){return{ease:"linear",duration:250}},Sn={x:On,y:On,z:On,rotate:On,rotateX:On,rotateY:On,rotateZ:On,scaleX:xn,scaleY:xn,scale:xn,opacity:En,backgroundColor:En,color:En,default:xn},Cn={tween:pe,spring:ve,keyframes:function(t){var e,n,r,o,i=t.easings,u=t.ease,a=void 0===u?ct:u,s=t.times,c=t.values,f=z(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||lt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return fe({from:c[e],to:c[e+1],ease:t})});return pe(_({},f,{ease:a})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,u=(i=o-1)-1,a=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&a[0].seek(0),t>=r[i]&&a[u].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Rt(r[e-1],r[e],t);a[e-1].seek(de(n))};var r,e,n,o,i,u,a})},decay:ce,physics:he,just:function(t){var r=t.to;return Ht(function(t){var e=t.update,n=t.complete;e(r),n()})}},kn={linear:ct,easeIn:ft,easeOut:lt,easeInOut:pt,circIn:dt,circOut:ht,circInOut:vt,backIn:mt,backOut:gt,backInOut:yt,anticipate:bt},An={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=St(n,r,o,i)}else"string"==typeof e&&(t.ease=kn[e]);return t},keyframes:function(t){t.from,t.to;return z(t,["from","to"])}},Rn=function(t,e,n){if(void 0===n)return _({},(Sn[t]||Sn.default)(r=e),{to:r});var r,o=n.delay,i=void 0===o?0:o,u=n[t]||n.default||n;return!1===u.type?{type:"just",delay:i,to:e}:_({delay:i,to:e},u)},Tn=function(t,e,n){var r,o,i=Rn(t,e,n),u=i.type,a=void 0===u?"tween":u,s=z(i,["type"]);return[Cn[a],(o=s,An[r=a]?An[r](o):o)]},Ln=function(n,r,o){return void 0===o&&(o=new Set),Object.keys(n).forEach(function(t){if(!o.has(t))if(o.add(t),r.has(t)){var e=r.get(t);e&&e.set(n[t])}else r.set(t,Ve(n[t]))})},Yn=function(t,e){return void 0===e&&(e={}),t?("function"==typeof t&&(t=t(e)),Array.isArray(t)?t:[t]):[]},Xn=function(){function t(t){this.poses={},this.isAnimating=new Set,this.values=t}return t.prototype.setProps=function(t){this.props=t},t.prototype.setPoses=function(t){this.poses=t},t.prototype.start=function(t,e){return this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateMultiplePoses(t):"string"==typeof t?this.animatePose(t):this.animate([t,e]);var n},t.prototype.set=function(t){var i=this,u=new Set;t.slice().reverse().forEach(function(t){var e=Yn(i.poses[t],i.props),n=e[0],r=e[1];if(r){var o=r.applyOnEnd;o&&Ln(o,i.values,u)}n&&Ln(n,i.values,u)})},t.prototype.animate=function(t,s){var c=this;void 0===s&&(s=0);var e=Yn(t),f=e[0],n=e[1],l=void 0===n?{}:n;if(!f)return Promise.resolve();var r=Object.keys(f).reduce(function(t,e){if(c.isAnimating.has(e))return t;c.values.has(e)||c.values.set(e,Ve(0));var n=c.values.get(e);if(!n)return t;var r,o=f[e];if("number"==typeof(r=o)||nt(r)){var i=Tn(e,o,_({delay:s},l)),u=i[0],a=i[1];t.push(n.control(u,a))}else n.set(o);return c.isAnimating.add(e),t},[]);return Promise.all(r).then(function(){if(l&&l.applyOnEnd){var t=l.applyOnEnd;Ln(t,c.values)}})},t.prototype.animateMultiplePoses=function(t){var e=this,n=t.slice().reverse().map(function(t){return e.animatePose(t)});return Promise.all(n)},t.prototype.animatePose=function(t,e){var n=this;void 0===e&&(e=0);var r=!1,o=!1,i=0,u=0,a=1,s=this.poses[t],c=s?function(){return n.animate(s,e)}:function(){return Promise.resolve()},f=this.children?function(){return n.animateChildren(t,i,u,a)}:function(){return Promise.resolve()};if(s&&this.children){var l=Yn(s)[1];l&&(r=l.beforeChildren||r,o=l.afterChildren||o,i=l.delayChildren||i,u=l.staggerChildren||u,a=l.staggerDirection||a)}if(r||o){var p=r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},t.prototype.animateChildren=function(r,o,e,t){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),!this.children)return Promise.resolve();var i=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animatePose(r,o+u(e));i.push(n)}),Promise.all(i)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),jn=(Pn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Pn(t)}),n}),Dn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set,this.poses={}}return t.prototype.setPoses=function(e){this.poses=e,this.subscribers.forEach(function(t){return t.setPoses(e)})},t.prototype.subscribe=function(t){var e=this;return this.subscribers.add(t),this.poses&&t.setPoses(this.poses),function(){return e.subscribers.delete(t)}},t.prototype.start=function(n,r){if(this.hasMounted){var o=[];return this.subscribers.forEach(function(t){var e=t.start(n,r);o.push(e)}),Promise.all(o)}return this.pendingAnimations.push([n,r]),Promise.resolve()},t.prototype.stop=function(){this.subscribers.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var e=t[0],n=t[1];return r.start(e,n)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}();function Fn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var Vn,Un=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},In=function(o,i,u,a){var t=void 0;return i&&!Fn(i)||!u||(t=Un(i,o,u,a)),Z.useEffect(function(){var t=i;if(u&&i&&!Fn(i)&&t.current){var e=Un(t.current,o,u,a),n=e[0],r=e[1];return n(),r}},[o,i,u,a]),t},Wn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var u=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:u*(t.pageY-r.top-e.clientTop+e.scrollTop)}},Bn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Wn(n,r),devicePoint:Wn(n,document.body)}),o(t,e)}}},qn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Zn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,u=t.onPointerCancel,a=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:u}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:a,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,M,O,x,E,S,C,k,A,R,T,L,Y,X,j,D,F,V,U,I,W,B,q,Z,_,z,N,G,H,$,K,J,Q,tt,et,nt,rt,ot,it,ut,at=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,M=h.onPointerOut,O=h.onPointerEnter,x=h.onPointerLeave,E=In("pointerdown",v,Bn(g),m),S=In("pointermove",v,Bn(y),m),C=In("pointerup",v,Bn(b),m),k=In("pointercancel",v,Bn(w),m),A=In("pointerover",v,Bn(P),m),R=In("pointerout",v,Bn(M),m),T=In("pointerenter",v,Bn(O),m),L=In("pointerleave",v,Bn(x),m),qn(E,S,C,k,A,R,T,L)),st=(X=e,j=n,D=(Y=p).onTouchStart,F=Y.onTouchMove,V=Y.onTouchEnd,U=Y.onTouchCancel,I=In("touchstart",X,Bn(D),j),W=In("touchmove",X,Bn(F),j),B=In("touchend",X,Bn(V),j),q=In("touchcancel",X,Bn(U),j),qn(I,W,B,q)),ct=(_=e,z=n,N=(Z=l).onMouseDown,G=Z.onMouseMove,H=Z.onMouseUp,$=Z.onMouseOver,K=Z.onMouseOut,J=Z.onMouseEnter,Q=Z.onMouseLeave,tt=In("mousedown",_,Bn(N),z),et=In("mousemove",_,Bn(G),z),nt=In("mouseup",_,Bn(H),z),rt=In("mouseover",_,Bn($),z),ot=In("mouseout",_,Bn(K),z),it=In("mouseenter",_,Bn(J),z),ut=In("mouseleave",_,Bn(Q),z),qn(tt,et,nt,rt,ot,it,ut));return qn(at,st,ct)},_n=function(t,e,n){var r,o,i=Z.useRef(null);return o=e?(r=e,t):(r=i,{}),Zn(o,r,n),e?void 0:t};(Vn||(Vn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var zn=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function Nn(t,e){var u=t.onPan,a=t.onPanStart,s=t.onPanEnd,c=null,f=Z.useRef(null),n=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);f.current.x.set(n.x),f.current.y.set(n.y),(0<Math.abs(o.x)||0<Math.abs(o.y))&&(c.startEvent?u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}):(a&&a(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c.startEvent=t)),c.lastDevicePoint=r}else console.error("Pointer move without started session")}},[u,a]),r=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);h(),l(),s&&s(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c=null}else console.error("Pointer end without started session")}},[s,n]),o=Zn({onPointerUp:r},window),i=o[0],l=o[1],p=Zn({onPointerMove:n},window,{capture:!0}),d=p[0],h=p[1],v=Z.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;f.current={x:Ve(r.x),y:Ve(r.y)},c={target:t.target,lastDevicePoint:n,startDevicePoint:n},d(),i()}},[r,n]);Z.useEffect(function(){return function(){h(),l()}},[]);var m={onPointerDown:v};return u||a||s||(m={}),_n(m,e)}function Gn(t,o){var i=t.onTap,u=null,e=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;u&&o&&t.target===o.current&&(i&&i({point:n,devicePoint:r},t),u=null)}},[i]),n=Zn({onPointerUp:e},window),r=n[0],a=n[1];return Z.useEffect(function(){return function(){a()}},[o&&o.current,e]),_n({onPointerDown:function(t){r(),o&&t.target===o.current&&(u={target:t.target})}},o)}var Hn=function(t,e){Nn(t,e),Gn(t,e)};function $n(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Kn=function(t){var e={dragEnabled:!1,dragLocksDirection:!1,dragPropagation:!1};return Object.assign(e,t),void 0===t.dragEnabled&&(t.dragLocksDirection||t.dragPropagation)&&(e.dragEnabled=!0),e};function Jn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function Qn(t,e,n){var r,o,i,u=(r=t,"function"==typeof(o=Kn)?i=o(r):(i=o,Object.assign(i,r)),i),a=u.dragEnabled,s=u.dragPropagation,c=u.dragLocksDirection,f={},l=null;Jn("x",a,l)&&(f.x=n.get("x",0)),Jn("y",a,l)&&(f.y=n.get("y",0));var p=Z.useContext(We),d=!1,h=Z.useMemo(function(){return function(){(s||(d=function(t){var e=!1;if("y"===t)e=er();else if("x"===t)e=tr();else{var n=tr(),r=er();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(a)))&&(l=null,p.dragging=!0)}},[a,s,p]),v=Z.useMemo(function(){return function(t,e){var n=e.delta,r=e.offset;if(s||d)if(c&&null===l)l=function(t){var e=null;10<Math.abs(t.y)?e="y":10<Math.abs(t.x)&&(e="x");return e}(r);else{var o=f.x,i=f.y;Jn("x",a,l)&&o&&o.set(o.get()+n.x),Jn("y",a,l)&&i&&i.set(i.get()+n.y)}}},[d,a,f]),m=Z.useMemo(function(){return function(){!s&&d&&d(),p.dragging=!1}},[d,p,a]),g={};a&&(g={onPanStart:h,onPan:v,onPanEnd:m}),Nn(g,e)}var tr=$n("dragHorizontal"),er=$n("dragVertical");var nr=["dragEnabled","onPan","onPanStart","onPanEnd","onTap"],rr=function(t){return t instanceof Dn},or=function(e){return function(t){return e(t),null}},ir=or(function(t){return e=t.animate,n=t.controls,r=Z.useMemo(function(){return e.subscribe(n)},[e]),void Z.useEffect(function(){return function(){return r&&r()}},[r]);var e,n,r}),ur=or(function(t){var e,n,r,o,i,u,a,s,c,f=t.animate,l=t.inherit,p=t.controls,d=t.onPoseComplete,h=t.pose,v=t.initialPose;return e=f,n=l,r=p,o=d,i=h,u=v,a=Z.useContext(We).pose,s=Ue(n?a:i),c=Z.useRef(!1),r.setPoses(e),Z.useMemo(function(){var t=u?Ue(u):s;r.set(t)},[]),void Z.useEffect(function(){n||((c.current||u)&&r.start(s).then(function(){o&&o()}),c.current=!0)},Ie(s))}),ar=or(function(t){var e=t.innerRef,n=z(t,["innerRef"]);return Hn(n,e)}),sr=or(function(t){var e=t.innerRef,n=t.values;return Qn(z(t,["innerRef","values"]),e,n)}),cr=function(t){var e,n,r=t.base,o=t.remainingProps,i=t.innerRef,u=t.style,a=t.values;return Z.createElement(r,_({},o,{ref:i,style:(e=a,n=u,_({},n,ln(jn(e))))}))},fr=function(q){return Z.memo(Z.forwardRef(function(t,e){var n,r,o,i,u,a,s,c,f,l,p,d,h,v,m,g,y,b,w=t,P=w.animate,M=w.pose,O=void 0===M?"default":M,x=w.style,E=w.onPoseComplete,S=w.inherit,C=void 0!==S&&S,k=w.initialPose,A=w.dragEnabled,R=w.dragLocksDirection,T=w.dragPropagation,L=z(w,["animate","pose","style","onPoseComplete","inherit","initialPose","dragEnabled","dragLocksDirection","dragPropagation"]),Y=(r=(n=e)&&"function"!=typeof n?n:Z.useRef(null),Z.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),X=(o=Y,i=Z.useMemo(function(){return new Mn},[]),Z.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),j=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Fe?t.has(r)||t.set(r,o):n[r]=o}return n}(X,x),D=(u=X,a=C,s=L,c=Z.useContext(We).controls,(f=Z.useMemo(function(){return new Xn(u)},[])).resetChildren(),a&&c&&c.addChild(f),Z.useEffect(function(){return function(){return c&&c.removeChild(f)}},[]),f.setProps(s),f),F=(l=D,p=C,d=k||O,h=Z.useContext(We),v=h.pose,m=h.dragging,(g=Z.useMemo(function(){return{controls:l,dragging:m}},Ie(Ue(d)))).pose=p?v:d,g),V=rr(P)&&Z.createElement(ir,{animate:P,controls:D}),U=void 0!==(y=P)&&!rr(y)&&Z.createElement(ur,{animate:P,inherit:C,controls:D,onPoseComplete:E,pose:O,initialPose:k}),I=(b=t,nr.some(function(t){return b.hasOwnProperty(t)})&&Z.createElement(ar,_({},t,{innerRef:Y}))),W=!!t.dragEnabled&&Z.createElement(sr,{dragEnabled:A,dragLocksDirection:R,dragPropagation:T,innerRef:Y,values:X}),B=Z.createElement(cr,{base:q,remainingProps:L,innerRef:Y,style:j,values:X});return Z.createElement(We.Provider,{value:F},V,U,I,W,B)}))},lr=r.reduce(function(t,e){return t[e]=fr(e),t},{custom:fr}),pr=Ve(0),dr=Ve(0),hr=Ve(0),vr=Ve(0),mr=0,gr=0,yr=0,br=0,wr=!1,Pr={scrollX:pr,scrollY:dr,scrollXProgress:hr,scrollYProgress:vr};t.motion=lr,t.useMotionValue=function(t){return Z.useMemo(function(){return Ve(t)},[])},t.useTransformedValue=function(e,n,r){var o=Z.useRef(null);return Z.useMemo(function(){o.current&&o.current.destroy();var t=De(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return wr||function(){if(wr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;pr.set(t),dr.set(e),hr.set(mr-t-yr),vr.set(gr-e-br)},e=function(){mr=document.body.clientWidth,gr=document.body.clientHeight,yr=window.innerWidth,br=window.innerHeight};e(),t(),window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0})}}(),Pr},t.useAnimation=function(t){var e=Z.useMemo(function(){return new Dn},[]);return t&&e.setPoses(t),Z.useEffect(function(){return e.mount(),function(){return e.unmount()}},[]),e},t.useTapGesture=Gn,t.usePanGesture=Nn,t.useGestures=Hn,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -18,4 +18,4 @@ import { FrameData } from "framesync";

private parent?;
private updateSubscribers;
private renderSubscribers;
private updateSubscribers?;
private renderSubscribers?;
private cancelSubscriber;

@@ -22,0 +22,0 @@ private transformer?;

{
"name": "framer-motion",
"version": "0.0.9",
"version": "0.0.10",
"main": "dist/framer-motion.cjs.js",

@@ -14,2 +14,3 @@ "module": "dist/framer-motion.es.js",

"build": "rollup -c && yarn measure",
"prepublishOnly": "yarn test && yarn build",
"measure": "gzip -c dist/framer-motion.js | wc -c"

@@ -16,0 +17,0 @@ },

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc