framer-motion
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -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,H){"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"],p=["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"],n=e.concat(p),B=H.createContext({dragging:!1}),I=function(e,n){var r=H.useContext(B),t=H.useMemo(function(){return{controls:e,initial:n&&(t=n,void 0===t||"string"==typeof t||Array.isArray(t))?n:r.initial};var t},[]);return t.dragging=r.dragging,H.useMemo(function(){var t=n||r.initial;t&&e.apply(t)},[]),t},r=function(t,e){return(r=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 o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var z=function(){return(z=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 d(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 i,a,u=0,s="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-u));u=e+n,setTimeout(function(){return t(u)},n)};(a=i||(i={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var c=1/60*1e3,f=!0,h=!1,l=!1,v={delta:0,timestamp:0},m=[i.Read,i.Update,i.Render,i.PostRender],y=function(t){return h=t},g=m.reduce(function(t,e){var r,i,a,u,s,o,c,f,l,p=(r=y,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=a.indexOf(t);c.add(t),-1!==e&&a.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[a,i])[0],(a=e[1]).length=0,u=i.length)for(o=0;o<u;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:a;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),h||P(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),b=g.steps,F=g.sync,U=g.cancelSync,w=function(t){return b[t].process(v)},x=function(t){h=!1,v.delta=f?c:Math.max(Math.min(t-v.timestamp,40),1),f||(c=v.delta),v.timestamp=t,l=!0,m.forEach(w),l=!1,h&&(f=!1,s(x))},P=function(){f=h=!0,l||s(x)},O=function(){return v},k=function(){return(k=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)},M=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},C=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},A={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},T=k({},A,{transform:M(0,1)}),E=k({},A,{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}}},V=R("deg"),L=R("%"),D=R("px"),j=R("vh"),X=R("vw"),Y=M(0,255),W=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,q=function(t){return void 0!==t.red},_=function(t){return void 0!==t.hue},N=function(a){var u=a.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<u;i++)r[a[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},G=k({},A,{transform:function(t){return Math.round(Y(t))}}),Z=C("rgb"),$={test:function(t){return"string"==typeof t?Z(t):q(t)},parse:N(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha;return e={red:G.transform(a),green:G.transform(u),blue:G.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)+")"}},K=C("hsl"),J={test:function(t){return"string"==typeof t?K(t):_(t)},parse:N(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(a),saturation:L.transform(S(u)),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)+")"}},Q=k({},$,{test:C("#"),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}}}),tt={test:function(t){return"string"==typeof t&&W.test(t)||$.test(t)||J.test(t)||Q.test(t)},parse:function(t){return $.test(t)?$.parse(t):J.test(t)?J.parse(t):Q.test(t)?Q.parse(t):t},transform:function(t){return q(t)?$.transform(t):_(t)?J.transform(t):t}},et=/(-)?(\d[\d\.]*)/g,nt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,rt="${c}",ot=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(et),r=t.match(nt);return n&&(e+=n.length),r&&(e+=r.length),0<e},it=function(t){var e=t,n=[],r=e.match(nt);r&&(e=e.replace(nt,rt),n.push.apply(n,r.map(tt.parse)));var o=e.match(et);return o&&n.push.apply(n,o.map(A.parse)),n},at=function(t){var r=t,o=0,e=t.match(nt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],rt),o++;var a=r.match(et),u=a?a.length:0;if(a)for(n=0;n<u;n++)r=r.replace(a[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?rt:"${n}",n<i?tt.transform(t[n]):S(t[n]));return e}},ut=function(e){return function(t){return 1-e(1-t)}},st=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ct=function(e){return function(t){return t*t*((e+1)*t-e)}},ft=function(t){var e=ct(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},lt=function(t){return t},pt=function(e){return function(t){return Math.pow(t,e)}}(2),dt=ut(pt),ht=st(pt),vt=function(t){return 1-Math.sin(Math.acos(t))},mt=ut(vt),yt=st(mt),gt=ct(1.525),bt=ut(gt),wt=st(gt),xt=ft(1.525),Pt="undefined"!=typeof Float32Array,Ot=function(t,e){return 1-3*e+3*t},kt=function(t,e){return 3*e-6*t},Mt=function(t){return 3*t},Ct=function(t,e,n){return 3*Ot(e,n)*t*t+2*kt(e,n)*t+Mt(e)},St=function(t,e,n){return((Ot(e,n)*t+kt(e,n))*t+Mt(e))*t};function At(a,e,u,n){var s=Pt?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=Ct(n=o+.1*e,a,u))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=Ct(e,a,u)))return e;e-=(St(e,a,u)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=St(o=e+(n-e)/2,a,u)-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]=St(.1*t,a,u)}();return function(t){return a===e&&u===n?t:0===t?0:1===t?1:St(r(t),e,n)}}var Tt=function(t){return"number"==typeof t},Et=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Rt=Et(function(t,e,n){return Math.min(Math.max(n,t),e)}),Vt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Lt=function(t,e,n){return-n*t+n*e+t},Dt=function(){return(Dt=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)},jt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Ft=[Q,$,J],Ut=function(e){return Ft.find(function(t){return t.test(e)})},Xt=function(t,e){var n=Ut(t),r=Ut(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),a=Dt({},o),u=n===J?Lt:jt;return function(t){for(var e in a)"alpha"!==e&&(a[e]=u(o[e],i[e],t));return a.alpha=Lt(o.alpha,i.alpha,t),n.transform(a)}},Yt=function(e,n){return function(t){return n(e(t))}},Ht=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Yt)},Bt=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return Tt(e)?function(t){return Lt(e,n,t)}:tt.test(e)?Xt(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=at(t);return n(t),at(e)(t),Ht(Bt(it(t),it(e)),n)},zt=Et(Lt),Wt=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?zt:tt.test(t)?Xt:It)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Ht(r,n)}return n});var t},qt=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,u=t.length;e.length,!a||!Array.isArray(a)||(a.length,t.length),t[0]>t[u-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,y=Wt(e,a),g=2===u?(d=y,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(Vt(h,v,t))}):(c=y,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=Vt(s[e],s[e+1],t);return c[e](o)});return i?Ht(Rt(t[0],t[u-1]),g):g},_t=function(t){return t},Nt=function(i){return void 0===i&&(i=_t),Et(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},Gt=(Nt(),Nt(Math.sqrt),function(t,e){return Tt(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0},$t=Et(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),Kt=(Rt(0,1),function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(z({},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]:Ht.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}()),Jt=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)})}}(),Qt=function(t,e,n){var r=e.middleware;return new Jt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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=d(r,["init"]),a=o(Qt(t,i,function(){e=!0,n.stop()}));return n=a?z({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Kt),ee=function(t){return new te({init:t})},ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subscribers=[],t}return o(t,e),t.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},t.prototype.error=function(e){this.subscribers.forEach(function(t){return t.error(e)})},t.prototype.update=function(t){for(var e=0;e<this.subscribers.length;e++)this.subscribers[e].update(t)},t.prototype.subscribe=function(t){var e=this,n=Qt(t,this.props);return this.subscribers.push(n),{unsubscribe:function(){var t=e.subscribers.indexOf(n);-1!==t&&e.subscribers.splice(t,1)}}},t.prototype.stop=function(){this.parent&&this.parent.stop()},t.prototype.registerParent=function(t){this.stop(),this.parent=t},t}(Kt),re=function(i){function e(t){var e,n,r,o=i.call(this,t)||this;return o.scheduleVelocityCheck=function(){return F.postRender(o.velocityCheck)},o.velocityCheck=function(t){t.timestamp!==o.lastUpdated&&(o.prev=o.current)},o.prev=o.current=t.value||0,n=o.current,"string"===(r=typeof n)||"number"===r?(o.updateCurrent=function(t){return o.current=t},o.getVelocityOfCurrent=function(){return o.getSingleVelocity(o.current,o.prev)}):(e=o.current,Array.isArray(e)?(o.updateCurrent=function(t){return o.current=t.slice()},o.getVelocityOfCurrent=function(){return o.getListVelocity()}):(o.updateCurrent=function(t){for(var e in o.current={},t)t.hasOwnProperty(e)&&(o.current[e]=t[e])},o.getVelocityOfCurrent=function(){return o.getMapVelocity()})),t.initialSubscription&&o.subscribe(t.initialSubscription),o}return o(e,i),e.prototype.create=function(t){return new e(t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},e.prototype.update=function(t){i.prototype.update.call(this,t),this.prev=this.current,this.updateCurrent(t);var e=O(),n=e.delta,r=e.timestamp;this.timeDelta=n,this.lastUpdated=r,F.postRender(this.scheduleVelocityCheck)},e.prototype.subscribe=function(t){var e=i.prototype.subscribe.call(this,t);return this.subscribers[this.subscribers.length-1].update(this.current),e},e.prototype.getSingleVelocity=function(t,e){return"number"==typeof t&&"number"==typeof e?Zt(t-e,this.timeDelta):Zt(parseFloat(t)-parseFloat(e),this.timeDelta)||0},e.prototype.getListVelocity=function(){var n=this;return this.current.map(function(t,e){return n.getSingleVelocity(t,n.prev[e])})},e.prototype.getMapVelocity=function(){var t={};for(var e in this.current)this.current.hasOwnProperty(e)&&(t[e]=this.getSingleVelocity(this.current[e],this.prev[e]));return t},e}(ne),oe=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 ee(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),a=p(),u=function(){return e(a)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&F.update(r))},error:o,update:function(t){h(a,e,t),F.update(u,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},ie=oe({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},{})}}),ae=oe({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)})}}),ue=[D,L,V,j,X],se=function(e){return ue.find(function(t){return t.test(e)})},ce=function(t,e){return t(e)},fe=function(o,i,a){var t=a[0],e=i[t].map(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),z({},i));return me(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ae(t)}.apply(void 0,e)},le=function(o,i,a){var u=a[0],t=Object.keys(i[u]).reduce(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),z({},i));return t[e]=me(i[u][e])(o,r),t},{});return ie(t)},pe=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=se(n)||se(r),a=i.transform,u=i.parse;return t(z({},o,{from:"string"==typeof n?u(n):n,to:"string"==typeof r?u(r):r})).pipe(a)},de=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]);return t(z({},o,{from:0,to:1})).pipe(Xt(n,r),tt.transform)},he=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=at(n);return i(n),at(r)(n),t(z({},o,{from:0,to:1})).pipe(Bt(it(n),it(r)),i)},ve=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)})}}),a=e.testVectorProps,u=e.getVectorKeys;return function(t){if(!a(t))return r(t);var e=u(t),n=t[e[0]];return me(n)(r,t,e)}},me=function(t){var e=ce;return"number"==typeof t?e=ce:Array.isArray(t)?e=fe:Boolean(se(t))?e=pe:tt.test(t)?e=de:ot(t)?e=he:"object"==typeof t&&(e=le),e},ye=ve(function(b){return void 0===b&&(b={}),ee(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,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(a+v),y=void 0===d?m:d(m),g=F.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?y+n:y),r||(U.update(g),o())},!0);return{stop:function(){return U.update(g)}}})},{from:A.test,modifyTarget:function(t){return"function"==typeof t},velocity:A.test}),ge=ve(function(M){return void 0===M&&(M={}),ee(function(t){var s=t.update,c=t.complete,e=M.velocity,f=void 0===e?0:e,n=M.from,r=void 0===n?0:n,o=M.to,l=void 0===o?0:o,i=M.stiffness,p=void 0===i?100:i,a=M.damping,d=void 0===a?10:a,u=M.mass,h=void 0===u?1:u,v=M.restSpeed,m=void 0===v?.01:v,y=M.restDelta,g=void 0===y?.01:y,b=f?-f/1e3:0,w=0,x=l-r,P=r,O=P,k=F.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=P,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);P=l-o*((b+n*r*x)/i*Math.sin(i*w)+x*Math.cos(i*w))}else{o=Math.exp(-r*w);P=l-o*(x+(b+r*x)*w)}f=Zt(P-O,e);var a=Math.abs(f)<=m,u=Math.abs(l-P)<=g;a&&u?(s(P=l),U.update(k),c()):s(P)},!0);return{stop:function(){return U.update(k)}}})},{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),be=ve(function(t){var e=t.from,h=void 0===e?0:e,n=t.velocity,v=void 0===n?0:n,m=t.min,y=t.max,r=t.power,g=void 0===r?.8:r,o=t.timeConstant,b=void 0===o?700:o,i=t.bounceStiffness,w=void 0===i?500:i,a=t.bounceDamping,x=void 0===a?10:a,u=t.restDelta,P=void 0===u?1:u,O=t.modifyTarget;return ee(function(t){var e,n,r=t.update,o=t.complete,i=new re({value:h,initialSubscription:e}),a=!1,u=function(t){return void 0!==m&&t<=m},s=function(t){return void 0!==y&&y<=t},c=function(t){return u(t)||s(t)},f=function(t,e){return u(t)&&e<0||s(t)&&0<e},l=function(t,e){n&&n.stop(),n=t.start({update:function(t){return i.update(t)},complete:function(){o(),e&&e()}})},p=function(t){a=!0,l(ge(z({},t,{to:u(t.from)?m:y,stiffness:w,damping:x,restDelta:P})))};if(i.subscribe(function(t){r(t);var e=i.getVelocity();n&&!a&&f(t,e)&&p({from:t,velocity:e})}),c(h)&&0===v||f(h,v))p({from:h,velocity:v});else{var d=ye({from:h,velocity:v,timeConstant:b,power:g,restDelta:c(h)?20:P,modifyTarget:O});l(d,function(){var t=i.get();c(t)&&p({from:t,velocity:i.getVelocity()})})}return{stop:function(){return n&&n.stop()}}})},{from:A.test,velocity:A.test,min:A.test,max:A.test,damping:A.test,stiffness:A.test,modifyTarget:function(t){return"function"==typeof t}}),we=ve(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?lt:i;return ee(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(a,function(t){return Lt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:A.test,to:A.test}),xe=Rt(0,1),Pe=function(j){return void 0===j&&(j={}),ee(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,a=j.ease,u=void 0===a?dt:a,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,y=void 0===m?1:m,g=j.elapsed,b=void 0===g?0:g,w=j.playDirection,x=void 0===w?1:w,P=j.flipCount,O=void 0===P?0:P,k=j.yoyoCount,M=void 0===k?0:k,C=j.loopCount,S=void 0===C?0:C,A=we({from:v,to:y,ease:u}).start(r),T=0,E=!1,R=function(){return x*=-1},V=function(){T=xe(Vt(0,i,b)),A.seek(T)},L=function(){E=!0,n=F.update(function(t){var e=t.delta;b+=e*x,V(),function(){var t,e=1===x?E&&i<=b:E&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&S<l?(S++,n=!(b=0)):c&&O<c?(b=i-b,A=we({from:v=(t=[y,v])[0],to:y=t[1],ease:u}).start(r),O++,n=!0):d&&M<d&&(R(),M++,n=!0),!n}()&&o&&(U.update(n),F.update(o,!1,!0))},!0)},D=function(){E=!1,n&&U.update(n)};return L(),{isActive:function(){return E},getElapsed:function(){return Rt(0,i,b)},getProgress:function(){return T},stop:function(){D()},pause:function(){return D(),this},resume:function(){return E||L(),this},seek:function(t){return b=Lt(0,i,t),F.update(V,!1,!0),this},reverse:function(){return R(),this}}})},Oe=Rt(0,1),ke=ve(function(m){return void 0===m&&(m={}),ee(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,a=void 0===n?0:n,u=m.velocity,s=void 0===u?0:u,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=F.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=Gt(i,n)),a&&(s*=Math.pow(1-a,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*Gt(c,n));h+=Gt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(U.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=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 U.update(v)}}})},{acceleration:A.test,friction:A.test,velocity:A.test,from:A.test,to:A.test,springStrength:A.test}),Me=function(r,o,i){return ee(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)})}}})},Ce=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},Se=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},Ae=[Ce()];if("undefined"!=typeof document){Me(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=Ae.length=0;r<n;r++){var o=e[r];Ae.push(Se(o))}})}var Te=Ce();if("undefined"!=typeof document){Me(document,"mousedown mousemove",!0).start(function(t){Se(t,Te)})}var Ee=function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,a=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(a.current)},this.scheduleVelocityCheck=function(){return F.postRender(a.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==a.lastUpdated&&(a.prev=a.current)},this.setChild=function(t){return t.set(a.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,z({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.subscribeTo=function(t,e){var n=this,r=function(){return e(n.current)};return t.add(r),function(){return t.delete(r)}},n.prototype.addUpdateSubscription=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},n.prototype.addRenderSubscription=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.subscribeTo(this.renderSubscribers,t)},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=O(),r=n.delta,o=n.timestamp;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,F.postRender(this.scheduleVelocityCheck))},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?Zt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=d(e,["delay"]);this.stop();var a,u=t(z({from:this.get(),velocity:this.getVelocity()},i));return n&&(u=u.pipe(n)),o&&(u=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return ee(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=a[o].start({complete:function(){++o>=a.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((a=o,ee(function(t){var e=t.complete,n=setTimeout(e,a);return{stop:function(){return clearTimeout(n)}}})),u)),new Promise(function(t){r.controller=u.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.parent&&this.parent.removeChild(this),this.stop()},n}(),Re=function(t,e){return new Ee(t,e)},Ve=function(){return(Ve=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)};var Le,De=function(t){var n=t.onRead,s=t.onRender,e=t.uncachedValues,c=void 0===e?new Set:e,r=t.useCache,f=void 0===r||r;return function(e){var r={},o=[],i=!1,a=function(t,e){var n=r[t];r[t]=e,r[t]!==n&&(-1===o.indexOf(t)&&o.push(t),i||(i=!0,F.render(u)))};function u(t){return void 0===t&&(t=!1),(!0===t||i)&&(s(r,e,o),i=!1,o.length=0),this}return{get:function(t){return t?f&&!c.has(t)&&void 0!==r[t]?r[t]:n(t,e):r},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return a(e,t)};a(e,t)}else for(var n in e)e.hasOwnProperty(n)&&a(n,e[n]);return this},render:u}}},je=/([a-z])([A-Z])/g,Fe=function(t){return t.replace(je,"$1-$2").toLowerCase()},Ue=new Map,Xe=new Map,Ye=["Webkit","Moz","O","ms",""],He=Ye.length,Be="undefined"!=typeof document,Ie=function(t,e){return Xe.set(t,Fe(e))},ze=function(t,e){void 0===e&&(e=!1);var n,r=e?Xe:Ue;return r.has(t)||(Be?function(t){Le=Le||document.createElement("div");for(var e=0;e<He;e++){var n=Ye[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Le.style||r)&&(Ue.set(t,o),Ie(t,(r?"":"-")+Fe(o)))}}(t):Ie(n=t,n)),r.get(t)||t},We=["","X","Y","Z"],qe=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return We.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),_e=qe.reduce(function(t,e){return t[e]=!0,t},{}),Ne=function(t){return!0===_e[t]},Ge=function(t,e){return qe.indexOf(t)-qe.indexOf(e)},Ze={color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:V,skewX:V,skewY:V,distance:D,x:D,y:D,z:D,perspective:D,opacity:T,originX:L,originY:L,originZ:D},$e=function(t){return Ze[t]},Ke="scrollLeft",Je="scrollTop",Qe=new Set([Ke,Je]),tn=new Set([Ke,Je,"transform"]),en={x:"translateX",y:"translateY",z:"translateZ"},nn=function(t){return"function"==typeof t},rn=function(t,e,n,r,o,i,a){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=$e(l),h="number"==typeof p&&d?d.transform(p):p;Ne(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):"originX"===(u=l)||"originY"===u?(o[l]=h,f=!0):tn.has(l)&&nn(h)||(n[ze(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(nn(t.transform))v=t.transform(r);else{var m=!1;i.sort(Ge);for(var y=i.length,g=0;g<y;g++){l=i[g];v+=(en[l]||l)+"("+r[l]+") ",m="z"===l||m}!m&&e?v+="translateZ(0)":v=v.trim()}n.transform=v}return f&&(n.transformOrigin=(o.originX||0)+" "+(o.originY||0)+" "+(o.originZ||0)),n},on=De({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=$e(t);if(Ne(t))return o&&o.default||0;if(Qe.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(ze(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;Object.assign(r.style,o(t)),-1!==n.indexOf(Ke)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(Je)&&(r.scrollTop=t.scrollTop)},uncachedValues:Qe}),an=function(t,e){void 0===e&&(e={});var n=e.enableHardwareAcceleration,r=function(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}(e,["enableHardwareAcceleration"]);return on(Ve({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,rn(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},un=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),sn=function(t,e){return t/100*e+"px"},cn=Ve({},A,{transform:Math.round}),fn={fill:tt,stroke:tt,scale:E,scaleX:E,scaleY:E,opacity:T,fillOpacity:T,strokeOpacity:T,numOctaves:cn},ln=De({onRead:function(t,e){var n=e.element;if(Ne(t)){var r=fn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e){var n=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,a={},u=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.x+", "+t.y+") ",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 y in t)if(t.hasOwnProperty(y)){var g=t[y];Ne(y)?o=!0:!n||"pathLength"!==y&&"pathSpacing"!==y||"number"!=typeof g?n&&"pathOffset"===y?a["stroke-dashoffset"]=sn(-g,r):a[un.has(y)?y:Fe(y)]=g:(i=!0,u[y]=sn(g,r))}if(i&&(a["stroke-dasharray"]=u.pathLength+" "+u.pathSpacing),o)for(var y in a.transform="",m)if(m.hasOwnProperty(y)){var b="scale"===y?"1":"0";a.transform+=m[y].replace(/undefined/g,b)}return a}(t,n,e.isPath,e.pathLength))}}),pn=De({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)}}),dn=new WeakMap,hn=function(t,e){var n,r,o;return t instanceof HTMLElement?n=an(t,e):t instanceof SVGElement?(o={element:r=t,dimensions:function(t){try{return"function"==typeof(e=t).getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var e}(r),isPath:!1},"path"===r.tagName&&(o.isPath=!0,o.pathLength=r.getTotalLength()),n=ln(o)):t===window&&(n=pn(t)),dn.set(t,n),n};function vn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,dn.has(n)?dn.get(n):hn(n,r)}var mn,yn,gn=De({onRead:function(){return null},onRender:function(t,e){return(0,e.onUpdate)(t)}}),bn=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 Ee(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){n.styler.set(e,t),n.onUpdate&&n.onUpdate.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.setOnUpdate=function(t){this.onUpdate=void 0,t&&(this.onUpdate=gn({onUpdate:t}))},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=vn(t,{preparseOutput:!1}),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}(),wn=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}},Pn=function(){return{ease:"linear",duration:250}},On={x:wn,y:wn,z:wn,rotate:wn,rotateX:wn,rotateY:wn,rotateZ:wn,scaleX:xn,scaleY:xn,scale:xn,opacity:Pn,backgroundColor:Pn,color:Pn,default:xn},kn={tween:Pe,spring:ge,keyframes:function(t){var e,n,r,o,i=t.easings,a=t.ease,u=void 0===a?lt:a,s=t.times,c=t.values,f=d(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||dt}).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 we({from:c[e],to:c[e+1],ease:t})});return Pe(z({},f,{ease:u})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,a=(i=o-1)-1,u=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Vt(r[e-1],r[e],t);u[e-1].seek(Oe(n))};var r,e,n,o,i,a,u})},decay:ye,physics:ke,inertia:be,just:function(t){var r=t.to;return ee(function(t){var e=t.update,n=t.complete;e(r),n()})}},Mn={linear:lt,easeIn:pt,easeOut:dt,easeInOut:ht,circIn:vt,circOut:mt,circInOut:yt,backIn:gt,backOut:bt,backInOut:wt,anticipate:xt},Cn={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=At(n,r,o,i)}else"string"==typeof e&&(t.ease=Mn[e]);return t},keyframes:function(t){t.from,t.to;return d(t,["from","to"])}},Sn=function(t,e,n){var r,o=n?n.delay:0;if(void 0===n||!function(t){t.beforeChildren,t.afterChildren,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var e=d(t,["beforeChildren","afterChildren","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(e).length}(n))return z({delay:o},z({},(On[t]||On.default)(r=e),{to:r}));var i=n[t]||n.default||n;return!1===i.type?{type:"just",delay:o,to:e}:z({delay:o,to:e},i)},An=function(t,e,n){var r,o,i=Sn(t,e,n),a=i.type,u=void 0===a?"tween":a,s=d(i,["type"]);return[kn[u],(o=s,Cn[r=u]?Cn[r](o):o)]},Tn=[A,V,L,D,X,j,{test:function(t){return"auto"===t},parse:function(t){return t}}],En=function(t){return Tn.find((e=t,function(t){return t.test(e)}));var e},Rn=new Set(["width","height","top","left","right","bottom","x","y"]),Vn=function(t){return Rn.has(t)},Ln=function(t,e){t.set(e,!1),t.set(e)};(yn=mn||(mn={})).width="width",yn.height="height",yn.left="left",yn.right="right",yn.top="top",yn.bottom="bottom";var Dn,jn=function(t,e){return parseFloat(t.split(", ")[e])},Fn=function(i,a){return function(t,e){var n=e.transform;if("none"===n||!n)return 0;var r=n.match(/^matrix3d\((.+)\)$/);if(r)return jn(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return jn(o[1],i)}},Un={width:function(t){return t.width},height:function(t){return t.height},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.height,r=e.top;return parseFloat(r)+n},right:function(t,e){var n=t.width,r=e.left;return parseFloat(r)+n},x:Fn(4,13),y:Fn(5,14)},Xn=function(i,t,a,u){void 0===u&&(u={}),u=z({},u);var e=Object.keys(a).filter(Vn).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return En(r)!==En(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],Ln(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=vn(o),a=o.getBoundingClientRect(),u=getComputedStyle(o),s={top:u.top,left:u.left,bottom:u.bottom,right:u.right,transform:u.transform};i.render();var c=o.getBoundingClientRect();return e.forEach(function(t){var e=r.get(t);Ln(e,Un[t](a,s)),n[t]=Un[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},Yn=function(t,e,n,r){return o=n,Object.keys(o).some(Vn)?Xn(t,e,n,r):{target:n,transitionEnd:r};var o},Hn=function(){function t(t,e){this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.isAnimating=new Set,this.values=t,this.ref=e}return t.prototype.setProps=function(t){this.props=t},t.prototype.setVariants=function(t){t&&(this.variants=t)},t.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},t.prototype.setValues=function(n,r){var o=this;return void 0===r&&(r=new Set),Object.keys(n).forEach(function(t){if(!r.has(t)){if(r.add(t),o.values.has(t)){var e=o.values.get(t);e&&e.set(n[t])}else o.values.set(t,Re(n[t]));o.baseTarget[t]=n[t]}})},t.prototype.checkForNewValues=function(t){var n=this,e=Object.keys(t).filter(function(t){return!n.values.has(t)});if(e.length){var r=vn(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,Re(e)),n.baseTarget[t]=e})}},t.prototype.resolveVariant=function(t){return t?("function"==typeof t&&(t=t(this.props,(r=this.values,o={},r.forEach(function(t,e){return o[e]=t.get()}),o),(e=this.values,n={},e.forEach(function(t,e){return n[e]=t.getVelocity()}),n))),{transition:t.transition,transitionEnd:t.transitionEnd,target:d(t,["transition","transitionEnd"])}):{target:void 0,transition:void 0,transitionEnd:void 0};var e,n,r,o},t.prototype.getHighestPriority=function(){var t=0,e=this.overrides.length;if(!e)return t;for(var n=0;n<e;n++)void 0!==this.overrides[n]&&(t=n);return t},t.prototype.clearOverride=function(t){var n=this;if(this.overrides[t]){this.overrides[t]=void 0;var e=this.getHighestPriority();if(this.resetIsAnimating(),t<=e){var r=this.overrides[e];r&&this.start(r,{priority:e})}var o=this.resolvedOverrides[t];if(o){var i=Object.keys(this.baseTarget).reduce(function(t,e){return void 0!==o[e]&&(t[e]=n.baseTarget[e]),t},{});this.animate(i)}}},t.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},t.prototype.applyVariantLabels=function(t){var o=this,i=new Set;t.slice().reverse().forEach(function(t){var e=o.resolveVariant(o.variants[t]),n=e.target,r=e.transitionEnd;r&&o.setValues(r,i),n&&o.setValues(n,i)})},t.prototype.start=function(t,e){return void 0===e&&(e={}),this.setPriorityAnimation(t,e.priority||0),void 0===e.priority||this.isHighestPriority(e.priority)?(this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateVariantLabels(t,e):"string"==typeof t?this.animateVariant(t,e):this.animate(t,e)):Promise.resolve();var n},t.prototype.setPriorityAnimation=function(t,e){this.overrides[e]=t},t.prototype.isHighestPriority=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++)if(void 0!==this.overrides[n])return!1;return!0},t.prototype.animate=function(t,e){var s=this,n=void 0===e?{}:e,r=n.delay,c=void 0===r?0:r,o=n.priority,f=void 0===o?0:o,i=this.resolveVariant(t),l=i.target,p=i.transition,a=i.transitionEnd;if(!l)return Promise.resolve();f&&(this.resolvedOverrides[f]=l),this.checkForNewValues(l);var u=Yn(this.values,this.ref,l,a);l=u.target,a=u.transitionEnd,!p&&this.defaultTransition&&(p=this.defaultTransition);var d=Object.keys(l).reduce(function(t,e){var n=s.values.get(e);if(s.isAnimating.has(e)||!l||!n||void 0===l[e])return t;var r,o=l[e];if(f||(s.baseTarget[e]=o),"number"==typeof(r=o)||ot(r)){var i=An(e,o,z({delay:c},p)),a=i[0],u=i[1];t.push(n.control(a,u))}else n.set(o);return s.isAnimating.add(e),t},[]);return Promise.all(d).then(function(){a&&s.setValues(a)})},t.prototype.animateVariantLabels=function(t,e){var n=this,r=t.slice().reverse().map(function(t){return n.animateVariant(t,e)});return Promise.all(r)},t.prototype.animateVariant=function(t,e){var n=this,r=!1,o=!1,i=0,a=0,u=1,s=e&&e.priority||0,c=this.variants[t],f=c?function(){return n.animate(c,e)}:function(){return Promise.resolve()},l=this.children?function(){return n.animateChildren(t,i,a,u,s)}:function(){return Promise.resolve()};if(c&&this.children){var p=this.resolveVariant(c).transition;p&&(r=p.beforeChildren||r,o=p.afterChildren||o,i=p.delayChildren||i,a=p.staggerChildren||a,u=p.staggerDirection||u)}if(r||o){var d=r?[f,l]:[l,f],h=d[1];return(0,d[0])().then(h)}return Promise.all([f(),l()])},t.prototype.animateChildren=function(r,o,e,t,i){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],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.animateVariant(r,{priority:i,delay:o+u(e)});a.push(n)}),Promise.all(a)},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}(),Bn=(Dn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Dn(t)}),n}),In=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set,this.variants={}}return t.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach(function(t){return t.setVariants(e)})},t.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach(function(t){return t.setDefaultTransition(e)})},t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return e.componentControls.delete(t)}},t.prototype.start=function(n){if(this.hasMounted){var r=[];return this.componentControls.forEach(function(t){var e=t.start(n);r.push(e)}),Promise.all(r)}return this.pendingAnimations.push(n),Promise.resolve()},t.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){return e.start(t)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),zn=function(t){var e,n=t instanceof Ee?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function Wn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var qn,_n=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},Nn=function(o,i,a,u){var t=void 0;return i&&!Wn(i)||!a||(t=_n(i,o,a,u)),H.useEffect(function(){var t=i;if(a&&i&&!Wn(i)&&t.current){var e=_n(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},Gn=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 a=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:a*(t.pageY-r.top-e.clientTop+e.scrollTop)}},Zn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Gn(n,r),devicePoint:Gn(n,document.body)}),o(t,e)}}},$n=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]()}}]}},Kn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,a=t.onPointerCancel,u=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:a}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:u,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,y,g,b,w,x,P,O,k,M,C,S,A,T,E,R,V,L,D,j,F,U,X,Y,H,B,I,z,W,q,_,N,G,Z,$,K,J,Q,tt,et,nt,rt,ot,it,at,ut=(v=e,m=n,y=(h=d).onPointerDown,g=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,x=h.onPointerOver,P=h.onPointerOut,O=h.onPointerEnter,k=h.onPointerLeave,M=Nn("pointerdown",v,Zn(y),m),C=Nn("pointermove",v,Zn(g),m),S=Nn("pointerup",v,Zn(b),m),A=Nn("pointercancel",v,Zn(w),m),T=Nn("pointerover",v,Zn(x),m),E=Nn("pointerout",v,Zn(P),m),R=Nn("pointerenter",v,Zn(O),m),V=Nn("pointerleave",v,Zn(k),m),$n(M,C,S,A,T,E,R,V)),st=(D=e,j=n,F=(L=p).onTouchStart,U=L.onTouchMove,X=L.onTouchEnd,Y=L.onTouchCancel,H=Nn("touchstart",D,Zn(F),j),B=Nn("touchmove",D,Zn(U),j),I=Nn("touchend",D,Zn(X),j),z=Nn("touchcancel",D,Zn(Y),j),$n(H,B,I,z)),ct=(q=e,_=n,N=(W=l).onMouseDown,G=W.onMouseMove,Z=W.onMouseUp,$=W.onMouseOver,K=W.onMouseOut,J=W.onMouseEnter,Q=W.onMouseLeave,tt=Nn("mousedown",q,Zn(N),_),et=Nn("mousemove",q,Zn(G),_),nt=Nn("mouseup",q,Zn(Z),_),rt=Nn("mouseover",q,Zn($),_),ot=Nn("mouseout",q,Zn(K),_),it=Nn("mouseenter",q,Zn(J),_),at=Nn("mouseleave",q,Zn(Q),_),$n(tt,et,nt,rt,ot,it,at));return $n(ut,st,ct)},Jn=function(t,e,n){var r,o,i=H.useRef(null);return o=e?(r=e,t):(r=i,{}),Kn(o,r,n),e?void 0:t};function Qn(t){return t.pointHistory[0]}function tr(t){return t.pointHistory[t.pointHistory.length-1]}function er(t,e){var n=t.pointHistory;if(n.length<2)return{x:0,y:0};for(var r=n.length-1,o=null,i=tr(t);0<=r&&(o=n[r],!(i.timestamp-o.timestamp>1e3*e));)r--;if(!o)return{x:0,y:0};var a=(i.timestamp-o.timestamp)/1e3;if(0===a)return{x:0,y:0};var u={x:(i.x-o.x)/a,y:(i.y-o.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function nr(t,e){var u=t.onPan,s=t.onPanStart,c=t.onPanEnd,f=null,l=H.useRef(null),p=H.useRef(null),d=H.useRef(null),h=H.useMemo(function(){return function(){if(f&&null!==l.current&&null!==d.current&&null!==p.current){var t=d.current,e=t.point,n=t.devicePoint,r=qn.subtract(n,tr(f)),o=qn.subtract(n,Qn(f)),i=O().timestamp;if(f.pointHistory.push(z({},n,{timestamp:i})),l.current.x.set(n.x),l.current.y.set(n.y),0<Math.abs(r.x)||0<Math.abs(r.y)){var a={point:e,devicePoint:n,delta:r,offset:o,velocity:er(f,.1)};f.startEvent?u&&u(p.current,a):(s&&s(p.current,a),f.startEvent=p.current)}r.x=0,r.y=0}else console.error("Pointer move without started session")}},[u,s]),n=H.useMemo(function(){return function(t,e){p.current=t,d.current=e,F.update(h)}},[u,s]),r=H.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(f&&null!==l.current){U.update(h);var o=qn.subtract(r,tr(f)),i=qn.subtract(r,Qn(f)),a=er(f,.1);y(),v(),c&&c(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:a}),f=null}else console.error("Pointer end without started session")}},[c,n]),o=Kn({onPointerUp:r},window),i=o[0],v=o[1],a=Kn({onPointerMove:n},window,{capture:!0}),m=a[0],y=a[1],g=H.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;l.current={x:Re(r.x),y:Re(r.y)};var o=O().timestamp;f={target:t.target,pointHistory:[z({},n,{timestamp:o})]},m(),i()}},[r,n]);H.useEffect(function(){return function(){y(),v()}},[]);var b={onPointerDown:g};return u||s||c||(b={}),Jn(b,e)}(qn||(qn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var rr=["hover","tap","drag"],or=function(t){return rr.indexOf(t)+1};function ir(t,o){var i=null,e=t.onTap,n=t.onTapStart,r=t.onTapCancel,a=t.tapActive,u=t.controls,s=function(t){var e=H.useRef(t);for(var n in t)e.current[n]=t[n];return e.current}(t),c=H.useMemo(function(){if(!(e||n||r||a))return{onPointerUp:function(){},onPointerDown:function(){}};return{onPointerUp:function(t,e){var n=e.point,r=e.devicePoint;i&&(u&&s.tapActive&&u.clearOverride(or("tap")),o&&t.target===o.current?(s.onTap&&s.onTap({point:n,devicePoint:r},t),i=null):s.onTapCancel&&s.onTapCancel({point:n,devicePoint:r},t))},onPointerDown:function(t,e){var n=e.point,r=e.devicePoint;l(),o&&t.target===o.current&&(i={target:t.target},s.onTapStart&&s.onTapStart({point:n,devicePoint:r},t),u&&s.tapActive&&u.start(s.tapActive,{priority:or("tap")}))}}},[void 0===e,void 0===n,void 0===r]),f=Kn({onPointerUp:c.onPointerUp},window),l=f[0],p=f[1];return H.useEffect(function(){return function(){p()}},[c.onPointerUp]),Jn({onPointerDown:c.onPointerDown},o)}var ar=function(t,e){nr(t,e),ir(t,e)};function ur(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function sr(t,e,n){return!(!0!==e&&"lockDirection"!==e&&e!==t||null!==n&&n!==t)}var cr=function(t,e){var n=e.top,r=e.right,o=e.bottom,i=e.left;return"x"===t?{min:i,max:r}:{min:n,max:o}},fr=function(t,e,n){return Lt(t,e,"number"==typeof n?n:.5)};function lr(t,e,n,o){var r=t.drag,s=void 0!==r&&r,i=t.dragPropagation,c=void 0!==i&&i,f=t.dragConstraints,a=t.dragElastic,l=void 0===a||a,u=t.dragMomentum,p=void 0===u||u,d=t.onDragStart,h=t.onDragEnd,v=t.onDirectionLock,m=H.useRef({}).current,y=H.useRef({x:0,y:0}).current,g=H.useContext(B);nr(H.useMemo(function(){if(!s)return{};var u=null,i=null;sr("x",s,u)&&(m.x=n.get("x",0)),sr("y",s,u)&&(m.y=n.get("y",0));var a=function(t,e){var n=m[t];if(sr(t,s,u)&&n){var r=y[t]+e[t];if(f){var o=cr(t,f),i=o.min,a=o.max;void 0!==i&&r<i?r=l?fr(i,r,l):Math.max(i,r):void 0!==a&&a<r&&(r=l?fr(a,r,l):Math.min(a,r))}n.set(r)}};return{onPanStart:function(t){m.x&&(y.x=m.x.get(),m.x.stop()),m.y&&(y.y=m.y.get(),m.y.stop()),(c||(i=function(t){var e=!1;if("y"===t)e=dr();else if("x"===t)e=pr();else{var n=pr(),r=dr();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(s)))&&(u=null,g.dragging=!0,d&&d(t))},onPan:function(t,e){var n=e.offset;(c||i)&&("lockDirection"!==s||null!==u?(a("x",n),a("y",n)):null!==(r=n,o=null,10<Math.abs(r.y)?o="y":10<Math.abs(r.x)&&(o="x"),u=o)&&v&&v(u));var r,o},onPanEnd:function(t,e){var r=e.velocity;if(!c&&i&&i(),p){var n=function(t){var e;if(sr(t,s,u)){var n=f?cr(t,f):{};o.start(((e={})[t]=0,e.transition=z({type:"inertia",velocity:r[t],bounceStiffness:200,bounceDamping:40,timeConstant:325,restDelta:1},n),e))}};n("x"),n("y")}g.dragging=!1,h&&h(t)}}},[s,g.dragging]),e)}var pr=ur("dragHorizontal"),dr=ur("dragVertical");var hr,vr;function mr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yr(t,e){return t(e={exports:{}},e.exports),e.exports}(vr=hr||(hr={})).Target="Target",vr.VariantLabel="VariantLabel",vr.AnimationSubscription="AnimationSubscription";var gr=yr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}});mr(gr),mr(yr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}}));var br,wr,xr=yr(function(t){t.exports=gr}),Pr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Or=xr(function(t){return Pr.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),kr=function(e){return function(t){return e(t),null}},Mr=((br={})[hr.Target]=kr(function(t){var o,e,i,n,r,a,u,s=t.animate,c=t.controls,f=t.values,l=t.transition,p=t.onAnimationComplete;return o=s,e=c,i=f,n=l,r=p,a=H.useRef(!0),u=H.useRef(o),void H.useEffect(function(){var t=Object.keys(u.current).reduce(function(t,e){var n=void 0!==o[e]&&u.current[e]!==o[e],r=a.current&&(!i.has(e)||i.has(e)&&i.get(e).get()!==o[e]);return(n||r)&&(t[e]=o[e]),t},{});a.current=!1,u.current=z({},u.current,o),Object.keys(t).length&&e.start(t,n).then(r)},[o])}),br[hr.VariantLabel]=kr(function(t){var n,r,o,i,a,u,e=t.animate,s=t.inherit,c=void 0===s||s,f=t.controls,l=t.onAnimationComplete,p=t.initial;return n=c,r=f,o=p,i=l,a=zn(e),u=H.useRef(!1),void H.useEffect(function(){var t,e;n||((u.current||(t=zn(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),br[hr.AnimationSubscription]=kr(function(t){var e,n,r,o=t.animate,i=t.controls;return e=o,n=i,r=H.useMemo(function(){return e.subscribe(n)},[e]),void H.useEffect(function(){return function(){return r&&r()}},[r])}),br),Cr=function(t){return t.animate instanceof In},Sr=((wr={})[hr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||Cr(t));var e},wr[hr.VariantLabel]=function(t){return void 0!==t.variants},wr[hr.AnimationSubscription]=Cr,wr),Ar=["drag","onPan","onPanStart","onPanEnd","onTap","onPressStart","onPressEnd","hoverActive","pressActive"],Tr=kr(function(t){var e=t.innerRef,n=d(t,["innerRef"]);return ar(n,e)}),Er=kr(function(t){var e=t.innerRef,n=t.values,r=t.controls;return lr(d(t,["innerRef","values","controls"]),e,n,r)}),Rr=new Set(["onTap","onAnimationComplete","onUpdate"]),Vr=function(t){var e,n,r=t.base,o=t.props,i=t.innerRef,a=t.style,u=t.handlers,s=t.values,c="string"==typeof r,f=c&&-1!==p.indexOf(r),l=c?function(t){var e={};for(var n in t)Or(n)&&!Rr.has(n)&&(e[n]=t[n]);return e}(o):o;return H.createElement(r,z({},l,u,{ref:i,style:f?a:(e=s,n=a,z({},n,rn(Bn(e))))}))},Lr=new Set([hr.AnimationSubscription,hr.VariantLabel]),Dr=or("hover"),jr=function(Y){return H.forwardRef(function(t,e){var n,r,o,i,a,u,s,c,f,l,p,d,h,v,m,y,g,b,w,x,P,O,k,M,C=(r=(n=e)&&"function"!=typeof n?n:H.useRef(null),H.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),S=(o=C,i=t.onUpdate,(a=H.useMemo(function(){return new bn},[])).setOnUpdate(i),H.useEffect(function(){return o.current,Element,a.mount(o.current),function(){return a.unmount()}}),a),A=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Ee?t.set(r,o):Ne(r)?t.has(r)||t.set(r,Re(o)):n[r]=o}return n}(S,t.style),T=function(t){for(var e in hr)if(Sr[e](t))return e}(t),E=(s=T,c=(u=t).animate,!(void 0!==(f=u.inherit)&&!f||!(void 0===c||c instanceof In)||!s||!Lr.has(s))),R=(l=S,d=C,h=E,v=(p=t).variants,m=p.transition,y=H.useContext(B).controls,(g=H.useMemo(function(){return new Hn(l,d)},[])).resetChildren(),h&&y&&y.addChild(g),H.useEffect(function(){return function(){return y&&y.removeChild(g)}},[]),g.setProps(p),g.setVariants(v),g.setDefaultTransition(m),g),V=I(R,t.initial),L=(b=T)?Mr[b]:void 0,D=L&&H.createElement(L,z({},t,{inherit:E,innerRef:C,values:S,controls:R})),j=(w=t,Ar.some(function(t){return w.hasOwnProperty(t)})&&H.createElement(Tr,z({},t,{values:S,controls:R,innerRef:C}))),F=!!t.drag&&H.createElement(Er,z({},t,{innerRef:C,controls:R,values:S})),U=(P=R,O=(x=t).hoverActive,k=x.onMouseEnter,M=x.onMouseLeave,H.useMemo(function(){return O?{onMouseEnter:function(t){k&&k(t),O&&P.start(O,{priority:Dr})},onMouseLeave:function(t){M&&M(t),O&&P.clearOverride(Dr)}}:{}},[O,k,M])),X=H.createElement(Vr,{base:Y,props:t,handlers:U,innerRef:C,style:A,values:S});return H.createElement(B.Provider,{value:V},D,j,F,X)})},Fr=n.reduce(function(t,e){return t[e]=jr(e),t},{custom:jr}),Ur=function(){return function(t){return t}};var Xr=Re(0),Yr=Re(0),Hr=Re(0),Br=Re(0),Ir=!1,zr={scrollX:Xr,scrollY:Yr,scrollXProgress:Hr,scrollYProgress:Br};t.motion=Fr,t.useMotionValue=function(t){return H.useMemo(function(){return Re(t)},[])},t.useTransformedValue=function(t,e,n,r){var o,i,a,u,s=[t],c=Ur;if("function"==typeof e)c=function(){return e};else if(Array.isArray(n)){var f=e;c=function(){return qt(f,n,r)},s=[t,f.join(","),n.join(",")]}return o=t,i=c,a=s,u=H.useRef(null),H.useMemo(function(){return u.current&&u.current.destroy(),u.current=o.addChild({transformer:i()}),u.current},a)},t.useViewportScrollValues=function(){return Ir||function(){if(Ir=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Xr.set(t),Yr.set(e);var n=document.body.clientWidth-window.innerWidth;Hr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;Br.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),zr},t.useAnimation=function(t,e){var n=H.useMemo(function(){return new In},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),H.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=ir,t.usePanGesture=nr,t.useGestures=ar,t.useCycle=function(t,e){void 0===e&&(e=0);var n=t.length,r=H.useState(e),o=r[0],i=r[1];return[t[o],function(t){var e="number"!=typeof t?$t(0,n,o+1):t;i(e)}]},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,U){"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"],l=["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"],n=e.concat(l),X=U.createContext({dragging:!1}),Y=function(e,n){var r=U.useContext(X),t=U.useMemo(function(){return{controls:e,initial:n&&(t=n,void 0===t||"string"==typeof t||Array.isArray(t))?n:r.initial};var t},[]);return t.dragging=r.dragging,U.useMemo(function(){var t=n||r.initial;t&&e.apply(t)},[]),t},r=function(t,e){return(r=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 o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var H=function(){return(H=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 p(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 i,a,u=0,s="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-u));u=e+n,setTimeout(function(){return t(u)},n)};(a=i||(i={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var c=1/60*1e3,f=!0,d=!1,h=!1,v={delta:0,timestamp:0},m=[i.Read,i.Update,i.Render,i.PostRender],y=function(t){return d=t},g=m.reduce(function(t,e){var r,i,a,u,s,o,c,f,l,p=(r=y,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=a.indexOf(t);c.add(t),-1!==e&&a.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[a,i])[0],(a=e[1]).length=0,u=i.length)for(o=0;o<u;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:a;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=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:{}}),b=g.steps,F=g.sync,B=g.cancelSync,w=function(t){return b[t].process(v)},x=function(t){d=!1,v.delta=f?c:Math.max(Math.min(t-v.timestamp,40),1),f||(c=v.delta),v.timestamp=t,h=!0,m.forEach(w),h=!1,d&&(f=!1,s(x))},P=function(){f=d=!0,h||s(x)},O=function(){return v},k=function(){return(k=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)},C=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},M=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},T={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},A=k({},T,{transform:C(0,1)}),E=k({},T,{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}}},V=R("deg"),L=R("%"),D=R("px"),j=R("vh"),I=R("vw"),z=C(0,255),W=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,q=function(t){return void 0!==t.red},_=function(t){return void 0!==t.hue},N=function(a){var u=a.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<u;i++)r[a[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},G=k({},T,{transform:function(t){return Math.round(z(t))}}),Z=M("rgb"),$={test:function(t){return"string"==typeof t?Z(t):q(t)},parse:N(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha;return e={red:G.transform(a),green:G.transform(u),blue:G.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)+")"}},K=M("hsl"),J={test:function(t){return"string"==typeof t?K(t):_(t)},parse:N(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(a),saturation:L.transform(S(u)),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)+")"}},Q=k({},$,{test:M("#"),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}}}),tt={test:function(t){return"string"==typeof t&&W.test(t)||$.test(t)||J.test(t)||Q.test(t)},parse:function(t){return $.test(t)?$.parse(t):J.test(t)?J.parse(t):Q.test(t)?Q.parse(t):t},transform:function(t){return q(t)?$.transform(t):_(t)?J.transform(t):t}},et=/(-)?(\d[\d\.]*)/g,nt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,rt="${c}",ot=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(et),r=t.match(nt);return n&&(e+=n.length),r&&(e+=r.length),0<e},it=function(t){var e=t,n=[],r=e.match(nt);r&&(e=e.replace(nt,rt),n.push.apply(n,r.map(tt.parse)));var o=e.match(et);return o&&n.push.apply(n,o.map(T.parse)),n},at=function(t){var r=t,o=0,e=t.match(nt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],rt),o++;var a=r.match(et),u=a?a.length:0;if(a)for(n=0;n<u;n++)r=r.replace(a[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?rt:"${n}",n<i?tt.transform(t[n]):S(t[n]));return e}},ut=function(e){return function(t){return 1-e(1-t)}},st=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ct=function(e){return function(t){return t*t*((e+1)*t-e)}},ft=function(t){var e=ct(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},lt=function(t){return t},pt=function(e){return function(t){return Math.pow(t,e)}}(2),dt=ut(pt),ht=st(pt),vt=function(t){return 1-Math.sin(Math.acos(t))},mt=ut(vt),yt=st(mt),gt=ct(1.525),bt=ut(gt),wt=st(gt),xt=ft(1.525),Pt="undefined"!=typeof Float32Array,Ot=function(t,e){return 1-3*e+3*t},kt=function(t,e){return 3*e-6*t},Ct=function(t){return 3*t},Mt=function(t,e,n){return 3*Ot(e,n)*t*t+2*kt(e,n)*t+Ct(e)},St=function(t,e,n){return((Ot(e,n)*t+kt(e,n))*t+Ct(e))*t};function Tt(a,e,u,n){var s=Pt?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=Mt(n=o+.1*e,a,u))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=Mt(e,a,u)))return e;e-=(St(e,a,u)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=St(o=e+(n-e)/2,a,u)-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]=St(.1*t,a,u)}();return function(t){return a===e&&u===n?t:0===t?0:1===t?1:St(r(t),e,n)}}var At=function(t){return"number"==typeof t},Et=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Rt=Et(function(t,e,n){return Math.min(Math.max(n,t),e)}),Vt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Lt=function(t,e,n){return-n*t+n*e+t},Dt=function(){return(Dt=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)},jt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Ft=[Q,$,J],Ut=function(e){return Ft.find(function(t){return t.test(e)})},Xt=function(t,e){var n=Ut(t),r=Ut(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),a=Dt({},o),u=n===J?Lt:jt;return function(t){for(var e in a)"alpha"!==e&&(a[e]=u(o[e],i[e],t));return a.alpha=Lt(o.alpha,i.alpha,t),n.transform(a)}},Yt=function(e,n){return function(t){return n(e(t))}},Ht=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Yt)},Bt=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return At(e)?function(t){return Lt(e,n,t)}:tt.test(e)?Xt(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=at(t);return n(t),at(e)(t),Ht(Bt(it(t),it(e)),n)},zt=Et(Lt),Wt=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?zt:tt.test(t)?Xt:It)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Ht(r,n)}return n});var t},qt=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,u=t.length;e.length,!a||!Array.isArray(a)||(a.length,t.length),t[0]>t[u-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,y=Wt(e,a),g=2===u?(d=y,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(Vt(h,v,t))}):(c=y,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=Vt(s[e],s[e+1],t);return c[e](o)});return i?Ht(Rt(t[0],t[u-1]),g):g},_t=function(t){return t},Nt=function(i){return void 0===i&&(i=_t),Et(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},Gt=(Nt(),Nt(Math.sqrt),function(t,e){return At(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0},$t=Et(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),Kt=(Rt(0,1),function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(H({},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]:Ht.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}()),Jt=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)})}}(),Qt=function(t,e,n){var r=e.middleware;return new Jt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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=p(r,["init"]),a=o(Qt(t,i,function(){e=!0,n.stop()}));return n=a?H({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Kt),ee=function(t){return new te({init:t})},ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subscribers=[],t}return o(t,e),t.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},t.prototype.error=function(e){this.subscribers.forEach(function(t){return t.error(e)})},t.prototype.update=function(t){for(var e=0;e<this.subscribers.length;e++)this.subscribers[e].update(t)},t.prototype.subscribe=function(t){var e=this,n=Qt(t,this.props);return this.subscribers.push(n),{unsubscribe:function(){var t=e.subscribers.indexOf(n);-1!==t&&e.subscribers.splice(t,1)}}},t.prototype.stop=function(){this.parent&&this.parent.stop()},t.prototype.registerParent=function(t){this.stop(),this.parent=t},t}(Kt),re=function(i){function e(t){var e,n,r,o=i.call(this,t)||this;return o.scheduleVelocityCheck=function(){return F.postRender(o.velocityCheck)},o.velocityCheck=function(t){t.timestamp!==o.lastUpdated&&(o.prev=o.current)},o.prev=o.current=t.value||0,n=o.current,"string"===(r=typeof n)||"number"===r?(o.updateCurrent=function(t){return o.current=t},o.getVelocityOfCurrent=function(){return o.getSingleVelocity(o.current,o.prev)}):(e=o.current,Array.isArray(e)?(o.updateCurrent=function(t){return o.current=t.slice()},o.getVelocityOfCurrent=function(){return o.getListVelocity()}):(o.updateCurrent=function(t){for(var e in o.current={},t)t.hasOwnProperty(e)&&(o.current[e]=t[e])},o.getVelocityOfCurrent=function(){return o.getMapVelocity()})),t.initialSubscription&&o.subscribe(t.initialSubscription),o}return o(e,i),e.prototype.create=function(t){return new e(t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},e.prototype.update=function(t){i.prototype.update.call(this,t),this.prev=this.current,this.updateCurrent(t);var e=O(),n=e.delta,r=e.timestamp;this.timeDelta=n,this.lastUpdated=r,F.postRender(this.scheduleVelocityCheck)},e.prototype.subscribe=function(t){var e=i.prototype.subscribe.call(this,t);return this.subscribers[this.subscribers.length-1].update(this.current),e},e.prototype.getSingleVelocity=function(t,e){return"number"==typeof t&&"number"==typeof e?Zt(t-e,this.timeDelta):Zt(parseFloat(t)-parseFloat(e),this.timeDelta)||0},e.prototype.getListVelocity=function(){var n=this;return this.current.map(function(t,e){return n.getSingleVelocity(t,n.prev[e])})},e.prototype.getMapVelocity=function(){var t={};for(var e in this.current)this.current.hasOwnProperty(e)&&(t[e]=this.getSingleVelocity(this.current[e],this.prev[e]));return t},e}(ne),oe=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 ee(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),a=p(),u=function(){return e(a)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&F.update(r))},error:o,update:function(t){h(a,e,t),F.update(u,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},ie=oe({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},{})}}),ae=oe({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)})}}),ue=[D,L,V,j,I],se=function(e){return ue.find(function(t){return t.test(e)})},ce=function(t,e){return t(e)},fe=function(o,i,a){var t=a[0],e=i[t].map(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),H({},i));return me(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ae(t)}.apply(void 0,e)},le=function(o,i,a){var u=a[0],t=Object.keys(i[u]).reduce(function(t,e){var n,r=a.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),H({},i));return t[e]=me(i[u][e])(o,r),t},{});return ie(t)},pe=function(t,e){var n=e.from,r=e.to,o=p(e,["from","to"]),i=se(n)||se(r),a=i.transform,u=i.parse;return t(H({},o,{from:"string"==typeof n?u(n):n,to:"string"==typeof r?u(r):r})).pipe(a)},de=function(t,e){var n=e.from,r=e.to,o=p(e,["from","to"]);return t(H({},o,{from:0,to:1})).pipe(Xt(n,r),tt.transform)},he=function(t,e){var n=e.from,r=e.to,o=p(e,["from","to"]),i=at(n);return i(n),at(r)(n),t(H({},o,{from:0,to:1})).pipe(Bt(it(n),it(r)),i)},ve=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)})}}),a=e.testVectorProps,u=e.getVectorKeys;return function(t){if(!a(t))return r(t);var e=u(t),n=t[e[0]];return me(n)(r,t,e)}},me=function(t){var e=ce;return"number"==typeof t?e=ce:Array.isArray(t)?e=fe:Boolean(se(t))?e=pe:tt.test(t)?e=de:ot(t)?e=he:"object"==typeof t&&(e=le),e},ye=ve(function(b){return void 0===b&&(b={}),ee(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,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(a+v),y=void 0===d?m:d(m),g=F.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?y+n:y),r||(B.update(g),o())},!0);return{stop:function(){return B.update(g)}}})},{from:T.test,modifyTarget:function(t){return"function"==typeof t},velocity:T.test}),ge=ve(function(C){return void 0===C&&(C={}),ee(function(t){var s=t.update,c=t.complete,e=C.velocity,f=void 0===e?0:e,n=C.from,r=void 0===n?0:n,o=C.to,l=void 0===o?0:o,i=C.stiffness,p=void 0===i?100:i,a=C.damping,d=void 0===a?10:a,u=C.mass,h=void 0===u?1:u,v=C.restSpeed,m=void 0===v?.01:v,y=C.restDelta,g=void 0===y?.01:y,b=f?-f/1e3:0,w=0,x=l-r,P=r,O=P,k=F.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=P,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);P=l-o*((b+n*r*x)/i*Math.sin(i*w)+x*Math.cos(i*w))}else{o=Math.exp(-r*w);P=l-o*(x+(b+r*x)*w)}f=Zt(P-O,e);var a=Math.abs(f)<=m,u=Math.abs(l-P)<=g;a&&u?(s(P=l),B.update(k),c()):s(P)},!0);return{stop:function(){return B.update(k)}}})},{from:T.test,to:T.test,stiffness:T.test,damping:T.test,mass:T.test,velocity:T.test}),be=ve(function(t){var e=t.from,h=void 0===e?0:e,n=t.velocity,v=void 0===n?0:n,m=t.min,y=t.max,r=t.power,g=void 0===r?.8:r,o=t.timeConstant,b=void 0===o?700:o,i=t.bounceStiffness,w=void 0===i?500:i,a=t.bounceDamping,x=void 0===a?10:a,u=t.restDelta,P=void 0===u?1:u,O=t.modifyTarget;return ee(function(t){var e,n,r=t.update,o=t.complete,i=new re({value:h,initialSubscription:e}),a=!1,u=function(t){return void 0!==m&&t<=m},s=function(t){return void 0!==y&&y<=t},c=function(t){return u(t)||s(t)},f=function(t,e){return u(t)&&e<0||s(t)&&0<e},l=function(t,e){n&&n.stop(),n=t.start({update:function(t){return i.update(t)},complete:function(){o(),e&&e()}})},p=function(t){a=!0,l(ge(H({},t,{to:u(t.from)?m:y,stiffness:w,damping:x,restDelta:P})))};if(i.subscribe(function(t){r(t);var e=i.getVelocity();n&&!a&&f(t,e)&&p({from:t,velocity:e})}),c(h)&&0===v||f(h,v))p({from:h,velocity:v});else{var d=ye({from:h,velocity:v,timeConstant:b,power:g,restDelta:c(h)?20:P,modifyTarget:O});l(d,function(){var t=i.get();c(t)&&p({from:t,velocity:i.getVelocity()})})}return{stop:function(){return n&&n.stop()}}})},{from:T.test,velocity:T.test,min:T.test,max:T.test,damping:T.test,stiffness:T.test,modifyTarget:function(t){return"function"==typeof t}}),we=ve(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?lt:i;return ee(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(a,function(t){return Lt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:T.test,to:T.test}),xe=Rt(0,1),Pe=function(j){return void 0===j&&(j={}),ee(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,a=j.ease,u=void 0===a?dt:a,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,y=void 0===m?1:m,g=j.elapsed,b=void 0===g?0:g,w=j.playDirection,x=void 0===w?1:w,P=j.flipCount,O=void 0===P?0:P,k=j.yoyoCount,C=void 0===k?0:k,M=j.loopCount,S=void 0===M?0:M,T=we({from:v,to:y,ease:u}).start(r),A=0,E=!1,R=function(){return x*=-1},V=function(){A=xe(Vt(0,i,b)),T.seek(A)},L=function(){E=!0,n=F.update(function(t){var e=t.delta;b+=e*x,V(),function(){var t,e=1===x?E&&i<=b:E&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&S<l?(S++,n=!(b=0)):c&&O<c?(b=i-b,T=we({from:v=(t=[y,v])[0],to:y=t[1],ease:u}).start(r),O++,n=!0):d&&C<d&&(R(),C++,n=!0),!n}()&&o&&(B.update(n),F.update(o,!1,!0))},!0)},D=function(){E=!1,n&&B.update(n)};return L(),{isActive:function(){return E},getElapsed:function(){return Rt(0,i,b)},getProgress:function(){return A},stop:function(){D()},pause:function(){return D(),this},resume:function(){return E||L(),this},seek:function(t){return b=Lt(0,i,t),F.update(V,!1,!0),this},reverse:function(){return R(),this}}})},Oe=Rt(0,1),ke=ve(function(m){return void 0===m&&(m={}),ee(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,a=void 0===n?0:n,u=m.velocity,s=void 0===u?0:u,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=F.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=Gt(i,n)),a&&(s*=Math.pow(1-a,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*Gt(c,n));h+=Gt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(B.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=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 B.update(v)}}})},{acceleration:T.test,friction:T.test,velocity:T.test,from:T.test,to:T.test,springStrength:T.test}),Ce=function(r,o,i){return ee(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)})}}})},Me=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},Se=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},Te=[Me()];if("undefined"!=typeof document){Ce(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=Te.length=0;r<n;r++){var o=e[r];Te.push(Se(o))}})}var Ae=Me();if("undefined"!=typeof document){Ce(document,"mousedown mousemove",!0).start(function(t){Se(t,Ae)})}var Ee=function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,a=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(a.current)},this.scheduleVelocityCheck=function(){return F.postRender(a.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==a.lastUpdated&&(a.prev=a.current)},this.setChild=function(t){return t.set(a.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,H({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.subscribeTo=function(t,e){var n=this,r=function(){return e(n.current)};return t.add(r),function(){return t.delete(r)}},n.prototype.addUpdateSubscription=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},n.prototype.addRenderSubscription=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.subscribeTo(this.renderSubscribers,t)},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=O(),r=n.delta,o=n.timestamp;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,F.postRender(this.scheduleVelocityCheck))},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?Zt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=p(e,["delay"]);this.stop();var a,u=t(H({from:this.get(),velocity:this.getVelocity()},i));return n&&(u=u.pipe(n)),o&&(u=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return ee(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=a[o].start({complete:function(){++o>=a.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((a=o,ee(function(t){var e=t.complete,n=setTimeout(e,a);return{stop:function(){return clearTimeout(n)}}})),u)),new Promise(function(t){r.controller=u.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.parent&&this.parent.removeChild(this),this.stop()},n}(),Re=function(t,e){return new Ee(t,e)},Ve=function(){return(Ve=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)};var Le,De=function(t){var n=t.onRead,s=t.onRender,e=t.uncachedValues,c=void 0===e?new Set:e,r=t.useCache,f=void 0===r||r;return function(e){var r={},o=[],i=!1,a=function(t,e){var n=r[t];r[t]=e,r[t]!==n&&(-1===o.indexOf(t)&&o.push(t),i||(i=!0,F.render(u)))};function u(t){return void 0===t&&(t=!1),(!0===t||i)&&(s(r,e,o),i=!1,o.length=0),this}return{get:function(t){return t?f&&!c.has(t)&&void 0!==r[t]?r[t]:n(t,e):r},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return a(e,t)};a(e,t)}else for(var n in e)e.hasOwnProperty(n)&&a(n,e[n]);return this},render:u}}},je=/([a-z])([A-Z])/g,Fe=function(t){return t.replace(je,"$1-$2").toLowerCase()},Ue=new Map,Xe=new Map,Ye=["Webkit","Moz","O","ms",""],He=Ye.length,Be="undefined"!=typeof document,Ie=function(t,e){return Xe.set(t,Fe(e))},ze=function(t,e){void 0===e&&(e=!1);var n,r=e?Xe:Ue;return r.has(t)||(Be?function(t){Le=Le||document.createElement("div");for(var e=0;e<He;e++){var n=Ye[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Le.style||r)&&(Ue.set(t,o),Ie(t,(r?"":"-")+Fe(o)))}}(t):Ie(n=t,n)),r.get(t)||t},We=["","X","Y","Z"],qe=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return We.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),_e=qe.reduce(function(t,e){return t[e]=!0,t},{}),Ne=function(t){return!0===_e[t]},Ge=function(t,e){return qe.indexOf(t)-qe.indexOf(e)},Ze={color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:V,skewX:V,skewY:V,distance:D,x:D,y:D,z:D,perspective:D,opacity:A,originX:L,originY:L,originZ:D},$e=function(t){return Ze[t]},Ke="scrollLeft",Je="scrollTop",Qe=new Set([Ke,Je]),tn=new Set([Ke,Je,"transform"]),en={x:"translateX",y:"translateY",z:"translateZ"},nn=function(t){return"function"==typeof t},rn=function(t,e,n,r,o,i,a){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=$e(l),h="number"==typeof p&&d?d.transform(p):p;Ne(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):"originX"===(u=l)||"originY"===u?(o[l]=h,f=!0):tn.has(l)&&nn(h)||(n[ze(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(nn(t.transform))v=t.transform(r);else{var m=!1;i.sort(Ge);for(var y=i.length,g=0;g<y;g++){l=i[g];v+=(en[l]||l)+"("+r[l]+") ",m="z"===l||m}!m&&e?v+="translateZ(0)":v=v.trim()}n.transform=v}return f&&(n.transformOrigin=(o.originX||0)+" "+(o.originY||0)+" "+(o.originZ||0)),n},on=De({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=$e(t);if(Ne(t))return o&&o.default||0;if(Qe.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(ze(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;Object.assign(r.style,o(t)),-1!==n.indexOf(Ke)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(Je)&&(r.scrollTop=t.scrollTop)},uncachedValues:Qe}),an=function(t,e){void 0===e&&(e={});var n=e.enableHardwareAcceleration,r=function(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}(e,["enableHardwareAcceleration"]);return on(Ve({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,rn(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},un=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),sn=function(t,e){return t/100*e+"px"},cn=Ve({},T,{transform:Math.round}),fn={fill:tt,stroke:tt,scale:E,scaleX:E,scaleY:E,opacity:A,fillOpacity:A,strokeOpacity:A,numOctaves:cn},ln=De({onRead:function(t,e){var n=e.element;if(Ne(t)){var r=fn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e){var n=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,a={},u=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.x+", "+t.y+") ",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 y in t)if(t.hasOwnProperty(y)){var g=t[y];Ne(y)?o=!0:!n||"pathLength"!==y&&"pathSpacing"!==y||"number"!=typeof g?n&&"pathOffset"===y?a["stroke-dashoffset"]=sn(-g,r):a[un.has(y)?y:Fe(y)]=g:(i=!0,u[y]=sn(g,r))}if(i&&(a["stroke-dasharray"]=u.pathLength+" "+u.pathSpacing),o)for(var y in a.transform="",m)if(m.hasOwnProperty(y)){var b="scale"===y?"1":"0";a.transform+=m[y].replace(/undefined/g,b)}return a}(t,n,e.isPath,e.pathLength))}}),pn=De({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)}}),dn=new WeakMap,hn=function(t,e){var n,r,o;return t instanceof HTMLElement?n=an(t,e):t instanceof SVGElement?(o={element:r=t,dimensions:function(t){try{return"function"==typeof(e=t).getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var e}(r),isPath:!1},"path"===r.tagName&&(o.isPath=!0,o.pathLength=r.getTotalLength()),n=ln(o)):t===window&&(n=pn(t)),dn.set(t,n),n};function vn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,dn.has(n)?dn.get(n):hn(n,r)}var mn,yn,gn=De({onRead:function(){return null},onRender:function(t,e){return(0,e.onUpdate)(t)}}),bn=function(){function t(){this.hasMounted=!1,this.shouldRender=!0,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 Ee(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){n.shouldRender&&n.styler.set(e,t),n.onUpdate&&n.onUpdate.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.setOnUpdate=function(t){this.onUpdate=void 0,t&&(this.onUpdate=gn({onUpdate:t}))},t.prototype.setShouldRender=function(t){this.shouldRender=t},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=vn(t,{preparseOutput:!1}),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}(),wn=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}},Pn=function(){return{ease:"linear",duration:250}},On={x:wn,y:wn,z:wn,rotate:wn,rotateX:wn,rotateY:wn,rotateZ:wn,scaleX:xn,scaleY:xn,scale:xn,opacity:Pn,backgroundColor:Pn,color:Pn,default:xn},kn={tween:Pe,spring:ge,keyframes:function(t){var e,n,r,o,i=t.easings,a=t.ease,u=void 0===a?lt:a,s=t.times,c=t.values,f=p(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||dt}).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 we({from:c[e],to:c[e+1],ease:t})});return Pe(H({},f,{ease:u})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,a=(i=o-1)-1,u=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Vt(r[e-1],r[e],t);u[e-1].seek(Oe(n))};var r,e,n,o,i,a,u})},decay:ye,physics:ke,inertia:be,just:function(t){var r=t.to;return ee(function(t){var e=t.update,n=t.complete;e(r),n()})}},Cn={linear:lt,easeIn:pt,easeOut:dt,easeInOut:ht,circIn:vt,circOut:mt,circInOut:yt,backIn:gt,backOut:bt,backInOut:wt,anticipate:xt},Mn={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=Tt(n,r,o,i)}else"string"==typeof e&&(t.ease=Cn[e]);return t},keyframes:function(t){t.from,t.to;return p(t,["from","to"])}},Sn=function(t,e,n){var r,o=n?n.delay:0;if(void 0===n||!function(t){t.beforeChildren,t.afterChildren,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var e=p(t,["beforeChildren","afterChildren","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(e).length}(n))return H({delay:o},H({},(On[t]||On.default)(r=e),{to:r}));var i=n[t]||n.default||n;return!1===i.type?{type:"just",delay:o,to:e}:H({delay:o,to:e},i)},Tn=function(t,e,n){var r,o,i=Sn(t,e,n),a=i.type,u=void 0===a?"tween":a,s=p(i,["type"]);return[kn[u],(o=s,Mn[r=u]?Mn[r](o):o)]},An=[T,V,L,D,I,j,{test:function(t){return"auto"===t},parse:function(t){return t}}],En=function(t){return An.find((e=t,function(t){return t.test(e)}));var e},Rn=new Set(["width","height","top","left","right","bottom","x","y"]),Vn=function(t){return Rn.has(t)},Ln=function(t,e){t.set(e,!1),t.set(e)};(yn=mn||(mn={})).width="width",yn.height="height",yn.left="left",yn.right="right",yn.top="top",yn.bottom="bottom";var Dn,jn=function(t,e){return parseFloat(t.split(", ")[e])},Fn=function(i,a){return function(t,e){var n=e.transform;if("none"===n||!n)return 0;var r=n.match(/^matrix3d\((.+)\)$/);if(r)return jn(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return jn(o[1],i)}},Un={width:function(t){return t.width},height:function(t){return t.height},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.height,r=e.top;return parseFloat(r)+n},right:function(t,e){var n=t.width,r=e.left;return parseFloat(r)+n},x:Fn(4,13),y:Fn(5,14)},Xn=function(i,t,a,u){void 0===u&&(u={}),u=H({},u);var e=Object.keys(a).filter(Vn).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return En(r)!==En(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],Ln(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=vn(o),a=o.getBoundingClientRect(),u=getComputedStyle(o),s={top:u.top,left:u.left,bottom:u.bottom,right:u.right,transform:u.transform};i.render();var c=o.getBoundingClientRect();return e.forEach(function(t){var e=r.get(t);Ln(e,Un[t](a,s)),n[t]=Un[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},Yn=function(t,e,n,r){return o=n,Object.keys(o).some(Vn)?Xn(t,e,n,r):{target:n,transitionEnd:r};var o},Hn=function(){function t(t,e){this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.isAnimating=new Set,this.values=t,this.ref=e}return t.prototype.setProps=function(t){this.props=t},t.prototype.setVariants=function(t){t&&(this.variants=t)},t.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},t.prototype.setValues=function(n,r){var o=this;return void 0===r&&(r=new Set),Object.keys(n).forEach(function(t){if(!r.has(t)){if(r.add(t),o.values.has(t)){var e=o.values.get(t);e&&e.set(n[t])}else o.values.set(t,Re(n[t]));o.baseTarget[t]=n[t]}})},t.prototype.checkForNewValues=function(t){var n=this,e=Object.keys(t).filter(function(t){return!n.values.has(t)});if(e.length){var r=vn(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,Re(e)),n.baseTarget[t]=e})}},t.prototype.resolveVariant=function(t){return t?("function"==typeof t&&(t=t(this.props,(r=this.values,o={},r.forEach(function(t,e){return o[e]=t.get()}),o),(e=this.values,n={},e.forEach(function(t,e){return n[e]=t.getVelocity()}),n))),{transition:t.transition,transitionEnd:t.transitionEnd,target:p(t,["transition","transitionEnd"])}):{target:void 0,transition:void 0,transitionEnd:void 0};var e,n,r,o},t.prototype.getHighestPriority=function(){var t=0,e=this.overrides.length;if(!e)return t;for(var n=0;n<e;n++)void 0!==this.overrides[n]&&(t=n);return t},t.prototype.clearOverride=function(t){var n=this;if(this.overrides[t]){this.overrides[t]=void 0;var e=this.getHighestPriority();if(this.resetIsAnimating(),t<=e){var r=this.overrides[e];r&&this.start(r,{priority:e})}var o=this.resolvedOverrides[t];if(o){var i=Object.keys(this.baseTarget).reduce(function(t,e){return void 0!==o[e]&&(t[e]=n.baseTarget[e]),t},{});this.animate(i)}}},t.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},t.prototype.applyVariantLabels=function(t){var o=this,i=new Set;t.slice().reverse().forEach(function(t){var e=o.resolveVariant(o.variants[t]),n=e.target,r=e.transitionEnd;r&&o.setValues(r,i),n&&o.setValues(n,i)})},t.prototype.start=function(t,e){return void 0===e&&(e={}),this.setPriorityAnimation(t,e.priority||0),void 0===e.priority||this.isHighestPriority(e.priority)?(this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateVariantLabels(t,e):"string"==typeof t?this.animateVariant(t,e):this.animate(t,e)):Promise.resolve();var n},t.prototype.setPriorityAnimation=function(t,e){this.overrides[e]=t},t.prototype.isHighestPriority=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++)if(void 0!==this.overrides[n])return!1;return!0},t.prototype.animate=function(t,e){var s=this,n=void 0===e?{}:e,r=n.delay,c=void 0===r?0:r,o=n.priority,f=void 0===o?0:o,i=this.resolveVariant(t),l=i.target,p=i.transition,a=i.transitionEnd;if(!l)return Promise.resolve();f&&(this.resolvedOverrides[f]=l),this.checkForNewValues(l);var u=Yn(this.values,this.ref,l,a);l=u.target,a=u.transitionEnd,!p&&this.defaultTransition&&(p=this.defaultTransition);var d=Object.keys(l).reduce(function(t,e){var n=s.values.get(e);if(s.isAnimating.has(e)||!l||!n||void 0===l[e])return t;var r,o=l[e];if(f||(s.baseTarget[e]=o),"number"==typeof(r=o)||ot(r)){var i=Tn(e,o,H({delay:c},p)),a=i[0],u=i[1];t.push(n.control(a,u))}else n.set(o);return s.isAnimating.add(e),t},[]);return Promise.all(d).then(function(){a&&s.setValues(a)})},t.prototype.animateVariantLabels=function(t,e){var n=this,r=t.slice().reverse().map(function(t){return n.animateVariant(t,e)});return Promise.all(r)},t.prototype.animateVariant=function(t,e){var n=this,r=!1,o=!1,i=0,a=0,u=1,s=e&&e.priority||0,c=this.variants[t],f=c?function(){return n.animate(c,e)}:function(){return Promise.resolve()},l=this.children?function(){return n.animateChildren(t,i,a,u,s)}:function(){return Promise.resolve()};if(c&&this.children){var p=this.resolveVariant(c).transition;p&&(r=p.beforeChildren||r,o=p.afterChildren||o,i=p.delayChildren||i,a=p.staggerChildren||a,u=p.staggerDirection||u)}if(r||o){var d=r?[f,l]:[l,f],h=d[1];return(0,d[0])().then(h)}return Promise.all([f(),l()])},t.prototype.animateChildren=function(r,o,e,t,i){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],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.animateVariant(r,{priority:i,delay:o+u(e)});a.push(n)}),Promise.all(a)},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}(),Bn=(Dn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Dn(t)}),n}),In=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set,this.variants={}}return t.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach(function(t){return t.setVariants(e)})},t.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach(function(t){return t.setDefaultTransition(e)})},t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return e.componentControls.delete(t)}},t.prototype.start=function(n){if(this.hasMounted){var r=[];return this.componentControls.forEach(function(t){var e=t.start(n);r.push(e)}),Promise.all(r)}return this.pendingAnimations.push(n),Promise.resolve()},t.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){return e.start(t)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),zn=function(t){var e,n=t instanceof Ee?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function Wn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var qn,_n=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},Nn=function(o,i,a,u){var t=void 0;return i&&!Wn(i)||!a||(t=_n(i,o,a,u)),U.useEffect(function(){var t=i;if(a&&i&&!Wn(i)&&t.current){var e=_n(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},Gn=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 a=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:a*(t.pageY-r.top-e.clientTop+e.scrollTop)}},Zn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Gn(n,r),devicePoint:Gn(n,document.body)}),o(t,e)}}},$n=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]()}}]}},Kn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,a=t.onPointerCancel,u=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:a}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:u,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,y,g,b,w,x,P,O,k,C,M,S,T,A,E,R,V,L,D,j,F,U,X,Y,H,B,I,z,W,q,_,N,G,Z,$,K,J,Q,tt,et,nt,rt,ot,it,at,ut=(v=e,m=n,y=(h=d).onPointerDown,g=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,x=h.onPointerOver,P=h.onPointerOut,O=h.onPointerEnter,k=h.onPointerLeave,C=Nn("pointerdown",v,Zn(y),m),M=Nn("pointermove",v,Zn(g),m),S=Nn("pointerup",v,Zn(b),m),T=Nn("pointercancel",v,Zn(w),m),A=Nn("pointerover",v,Zn(x),m),E=Nn("pointerout",v,Zn(P),m),R=Nn("pointerenter",v,Zn(O),m),V=Nn("pointerleave",v,Zn(k),m),$n(C,M,S,T,A,E,R,V)),st=(D=e,j=n,F=(L=p).onTouchStart,U=L.onTouchMove,X=L.onTouchEnd,Y=L.onTouchCancel,H=Nn("touchstart",D,Zn(F),j),B=Nn("touchmove",D,Zn(U),j),I=Nn("touchend",D,Zn(X),j),z=Nn("touchcancel",D,Zn(Y),j),$n(H,B,I,z)),ct=(q=e,_=n,N=(W=l).onMouseDown,G=W.onMouseMove,Z=W.onMouseUp,$=W.onMouseOver,K=W.onMouseOut,J=W.onMouseEnter,Q=W.onMouseLeave,tt=Nn("mousedown",q,Zn(N),_),et=Nn("mousemove",q,Zn(G),_),nt=Nn("mouseup",q,Zn(Z),_),rt=Nn("mouseover",q,Zn($),_),ot=Nn("mouseout",q,Zn(K),_),it=Nn("mouseenter",q,Zn(J),_),at=Nn("mouseleave",q,Zn(Q),_),$n(tt,et,nt,rt,ot,it,at));return $n(ut,st,ct)},Jn=function(t,e,n){var r,o,i=U.useRef(null);return o=e?(r=e,t):(r=i,{}),Kn(o,r,n),e?void 0:t};function Qn(t){return t.pointHistory[0]}function tr(t){return t.pointHistory[t.pointHistory.length-1]}function er(t,e){var n=t.pointHistory;if(n.length<2)return{x:0,y:0};for(var r=n.length-1,o=null,i=tr(t);0<=r&&(o=n[r],!(i.timestamp-o.timestamp>1e3*e));)r--;if(!o)return{x:0,y:0};var a=(i.timestamp-o.timestamp)/1e3;if(0===a)return{x:0,y:0};var u={x:(i.x-o.x)/a,y:(i.y-o.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function nr(t,e){var u=t.onPan,s=t.onPanStart,c=t.onPanEnd,f=null,l=U.useRef(null),p=U.useRef(null),d=U.useRef(null),h=U.useMemo(function(){return function(){if(f&&null!==l.current&&null!==d.current&&null!==p.current){var t=d.current,e=t.point,n=t.devicePoint,r=qn.subtract(n,tr(f)),o=qn.subtract(n,Qn(f)),i=O().timestamp;if(f.pointHistory.push(H({},n,{timestamp:i})),l.current.x.set(n.x),l.current.y.set(n.y),0<Math.abs(r.x)||0<Math.abs(r.y)){var a={point:e,devicePoint:n,delta:r,offset:o,velocity:er(f,.1)};f.startEvent?u&&u(p.current,a):(s&&s(p.current,a),f.startEvent=p.current)}r.x=0,r.y=0}else console.error("Pointer move without started session")}},[u,s]),n=U.useMemo(function(){return function(t,e){p.current=t,d.current=e,F.update(h)}},[u,s]),r=U.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(f&&null!==l.current){B.update(h);var o=qn.subtract(r,tr(f)),i=qn.subtract(r,Qn(f)),a=er(f,.1);y(),v(),c&&c(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:a}),f=null}else console.error("Pointer end without started session")}},[c,n]),o=Kn({onPointerUp:r},window),i=o[0],v=o[1],a=Kn({onPointerMove:n},window,{capture:!0}),m=a[0],y=a[1],g=U.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;l.current={x:Re(r.x),y:Re(r.y)};var o=O().timestamp;f={target:t.target,pointHistory:[H({},n,{timestamp:o})]},m(),i()}},[r,n]);U.useEffect(function(){return function(){y(),v()}},[]);var b={onPointerDown:g};return u||s||c||(b={}),Jn(b,e)}(qn||(qn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var rr=["hover","tap","drag"],or=function(t){return rr.indexOf(t)+1};function ir(t,o){var i=null,e=t.onTap,n=t.onTapStart,r=t.onTapCancel,a=t.tapActive,u=t.controls,s=function(t){var e=U.useRef(t);for(var n in t)e.current[n]=t[n];return e.current}(t),c=U.useMemo(function(){if(!(e||n||r||a))return{onPointerUp:function(){},onPointerDown:function(){}};return{onPointerUp:function(t,e){var n=e.point,r=e.devicePoint;i&&(u&&s.tapActive&&u.clearOverride(or("tap")),o&&t.target===o.current?(s.onTap&&s.onTap({point:n,devicePoint:r},t),i=null):s.onTapCancel&&s.onTapCancel({point:n,devicePoint:r},t))},onPointerDown:function(t,e){var n=e.point,r=e.devicePoint;l(),o&&t.target===o.current&&(i={target:t.target},s.onTapStart&&s.onTapStart({point:n,devicePoint:r},t),u&&s.tapActive&&u.start(s.tapActive,{priority:or("tap")}))}}},[void 0===e,void 0===n,void 0===r]),f=Kn({onPointerUp:c.onPointerUp},window),l=f[0],p=f[1];return U.useEffect(function(){return function(){p()}},[c.onPointerUp]),Jn({onPointerDown:c.onPointerDown},o)}var ar=or("hover"),ur=function(t,e){var n,r,o,i,a,u,s,c;nr(t,e),ir(t,e),r=e,o=(n=t).hoverActive,i=n.onHoverStart,a=n.onHoverEnd,u=n.controls,s=U.useMemo(function(){return function(t){i&&i(t),o&&u&&u.start(o,{priority:ar})}},[o,i,u]),c=U.useMemo(function(){return function(t){a&&a(t),o&&u&&u.clearOverride(ar)}},[o,a,u]),Jn({onPointerEnter:s,onPointerLeave:c},r)};function sr(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function cr(t,e,n){return!(!0!==e&&"lockDirection"!==e&&e!==t||null!==n&&n!==t)}var fr=function(t,e){var n=e.top,r=e.right,o=e.bottom,i=e.left;return"x"===t?{min:i,max:r}:{min:n,max:o}},lr=function(t,e,n){return Lt(t,e,"number"==typeof n?n:.5)};function pr(t,e,n,o){var r=t.drag,s=void 0!==r&&r,i=t.dragPropagation,c=void 0!==i&&i,f=t.dragConstraints,a=t.dragElastic,l=void 0===a||a,u=t.dragMomentum,p=void 0===u||u,d=t.onDragStart,h=t.onDragEnd,v=t.onDirectionLock,m=U.useRef({}).current,y=U.useRef({x:0,y:0}).current,g=U.useContext(X);nr(U.useMemo(function(){if(!s)return{};var u=null,i=null;cr("x",s,u)&&(m.x=n.get("x",0)),cr("y",s,u)&&(m.y=n.get("y",0));var a=function(t,e){var n=m[t];if(cr(t,s,u)&&n){var r=y[t]+e[t];if(f){var o=fr(t,f),i=o.min,a=o.max;void 0!==i&&r<i?r=l?lr(i,r,l):Math.max(i,r):void 0!==a&&a<r&&(r=l?lr(a,r,l):Math.min(a,r))}n.set(r)}};return{onPanStart:function(t){m.x&&(y.x=m.x.get(),m.x.stop()),m.y&&(y.y=m.y.get(),m.y.stop()),(c||(i=function(t){var e=!1;if("y"===t)e=hr();else if("x"===t)e=dr();else{var n=dr(),r=hr();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(s)))&&(u=null,g.dragging=!0,d&&d(t))},onPan:function(t,e){var n=e.offset;(c||i)&&("lockDirection"!==s||null!==u?(a("x",n),a("y",n)):null!==(r=n,o=null,10<Math.abs(r.y)?o="y":10<Math.abs(r.x)&&(o="x"),u=o)&&v&&v(u));var r,o},onPanEnd:function(t,e){var r=e.velocity;if(!c&&i&&i(),p){var n=function(t){var e;if(cr(t,s,u)){var n=f?fr(t,f):{};o.start(((e={})[t]=0,e.transition=H({type:"inertia",velocity:r[t],bounceStiffness:200,bounceDamping:40,timeConstant:325,restDelta:1},n),e))}};n("x"),n("y")}g.dragging=!1,h&&h(t)}}},[s,g.dragging]),e)}var dr=sr("dragHorizontal"),hr=sr("dragVertical");var vr,mr;function yr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gr(t,e){return t(e={exports:{}},e.exports),e.exports}(mr=vr||(vr={})).Target="Target",mr.VariantLabel="VariantLabel",mr.AnimationSubscription="AnimationSubscription";var br=gr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}});yr(br),yr(gr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}}));var wr,xr,Pr=gr(function(t){t.exports=br}),Or=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kr=Pr(function(t){return Or.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),Cr=function(e){return function(t){return e(t),null}},Mr=((wr={})[vr.Target]=Cr(function(t){var o,e,i,n,r,a,u,s=t.animate,c=t.controls,f=t.values,l=t.transition,p=t.onAnimationComplete;return o=s,e=c,i=f,n=l,r=p,a=U.useRef(!0),u=U.useRef(o),void U.useEffect(function(){var t=Object.keys(u.current).reduce(function(t,e){var n=void 0!==o[e]&&u.current[e]!==o[e],r=a.current&&(!i.has(e)||i.has(e)&&i.get(e).get()!==o[e]);return(n||r)&&(t[e]=o[e]),t},{});a.current=!1,u.current=H({},u.current,o),Object.keys(t).length&&e.start(t,n).then(r)},[o])}),wr[vr.VariantLabel]=Cr(function(t){var n,r,o,i,a,u,e=t.animate,s=t.inherit,c=void 0===s||s,f=t.controls,l=t.onAnimationComplete,p=t.initial;return n=c,r=f,o=p,i=l,a=zn(e),u=U.useRef(!1),void U.useEffect(function(){var t,e;n||((u.current||(t=zn(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),wr[vr.AnimationSubscription]=Cr(function(t){var e,n,r,o=t.animate,i=t.controls;return e=o,n=i,r=U.useMemo(function(){return e.subscribe(n)},[e]),void U.useEffect(function(){return function(){return r&&r()}},[r])}),wr),Sr=function(t){return t.animate instanceof In},Tr=((xr={})[vr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||Sr(t));var e},xr[vr.VariantLabel]=function(t){return void 0!==t.variants},xr[vr.AnimationSubscription]=Sr,xr),Ar=["drag","onPan","onPanStart","onPanEnd","onTap","onTapStart","onTapCancel","tapActive","onPressStart","onPressEnd","hoverActive","onHoverStart","onHoverEnd"],Er=Cr(function(t){var e=t.innerRef,n=p(t,["innerRef"]);return ur(n,e)}),Rr=Cr(function(t){var e=t.innerRef,n=t.values,r=t.controls;return pr(p(t,["innerRef","values","controls"]),e,n,r)}),Vr=new Set(["onTap","onAnimationComplete","onUpdate"]),Lr=function(t){var e,n,r=t.base,o=t.props,i=t.innerRef,a=t.style,u=t.values,s="string"==typeof r,c=s&&-1!==l.indexOf(r),f=s?function(t){var e={};for(var n in t)kr(n)&&!Vr.has(n)&&(e[n]=t[n]);return e}(o):o;return U.createElement(r,H({},f,{ref:i,style:c?a:(e=u,n=a,H({},n,rn(Bn(e))))}))},Dr=new Set([vr.AnimationSubscription,vr.VariantLabel]),jr=function(F){return U.forwardRef(function(t,e){var n,r,o,i,a,u,s,c,f,l,p,d,h,v,m,y,g,b,w,x,P,O,k=(r=(n=e)&&"function"!=typeof n?n:U.useRef(null),U.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),C=(o=k,a=(i=t).onUpdate,u=i.render,s=void 0===u||u,(c=U.useMemo(function(){return new bn},[])).setOnUpdate(a),c.setShouldRender(s),U.useEffect(function(){return o.current,Element,c.mount(o.current),function(){return c.unmount()}}),c),M=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Ee?t.set(r,o):Ne(r)?t.has(r)||t.set(r,Re(o)):n[r]=o}return n}(C,t.style),S=function(t){for(var e in vr)if(Tr[e](t))return e}(t),T=(l=S,p=(f=t).animate,!(void 0!==(d=f.inherit)&&!d||!(void 0===p||p instanceof In)||!l||!Dr.has(l))),A=(h=C,m=k,y=T,g=(v=t).variants,b=v.transition,w=U.useContext(X).controls,(x=U.useMemo(function(){return new Hn(h,m)},[])).resetChildren(),y&&w&&w.addChild(x),U.useEffect(function(){return function(){return w&&w.removeChild(x)}},[]),x.setProps(v),x.setVariants(g),x.setDefaultTransition(b),x),E=Y(A,t.initial),R=(P=S)?Mr[P]:void 0,V=R&&U.createElement(R,H({},t,{inherit:T,innerRef:k,values:C,controls:A})),L=(O=t,Ar.some(function(t){return O.hasOwnProperty(t)})&&U.createElement(Er,H({},t,{values:C,controls:A,innerRef:k}))),D=!!t.drag&&U.createElement(Rr,H({},t,{innerRef:k,controls:A,values:C})),j=U.createElement(Lr,{base:F,props:t,innerRef:k,style:M,values:C});return U.createElement(X.Provider,{value:E},V,L,D,j)})},Fr=n.reduce(function(t,e){return t[e]=jr(e),t},{custom:jr}),Ur=function(){return function(t){return t}};var Xr=Re(0),Yr=Re(0),Hr=Re(0),Br=Re(0),Ir=!1,zr={scrollX:Xr,scrollY:Yr,scrollXProgress:Hr,scrollYProgress:Br};t.motion=Fr,t.useMotionValue=function(t){return U.useMemo(function(){return Re(t)},[])},t.useTransformedValue=function(t,e,n,r){var o,i,a,u,s=[t],c=Ur;if("function"==typeof e)c=function(){return e};else if(Array.isArray(n)){var f=e;c=function(){return qt(f,n,r)},s=[t,f.join(","),n.join(",")]}return o=t,i=c,a=s,u=U.useRef(null),U.useMemo(function(){return u.current&&u.current.destroy(),u.current=o.addChild({transformer:i()}),u.current},a)},t.useViewportScrollValues=function(){return Ir||function(){if(Ir=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Xr.set(t),Yr.set(e);var n=document.body.clientWidth-window.innerWidth;Hr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;Br.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),zr},t.useAnimation=function(t,e){var n=U.useMemo(function(){return new In},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),U.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=ir,t.usePanGesture=nr,t.useGestures=ur,t.useCycle=function(t,e){void 0===e&&(e=0);var n=t.length,r=U.useState(e),o=r[0],i=r[1];return[t[o],function(t){var e="number"!=typeof t?$t(0,n,o+1):t;i(e)}]},Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -1,3 +0,4 @@ | ||
export { usePanGesture, PanHandlers, PanHandler, PanInfo } from "./use-pan-gesture"; | ||
export { usePanGesture, PanHandlers, PanHandler, PanInfo, } from "./use-pan-gesture"; | ||
export { useTapGesture, TapHandlers } from "./use-tap-gesture"; | ||
export { useHoverGesture, HoverHandlers } from "./use-hover-gesture"; | ||
export { useGestures, GestureHandlers } from "./use-gestures"; |
import { RefObject } from "react"; | ||
import { PanHandlers } from "./use-pan-gesture"; | ||
import { TapHandlers } from "./use-tap-gesture"; | ||
export declare type GestureHandlers = PanHandlers & TapHandlers; | ||
import { HoverHandlers } from "./use-hover-gesture"; | ||
export declare type GestureHandlers = PanHandlers & TapHandlers & HoverHandlers; | ||
export declare const useGestures: <P extends GestureHandlers>(props: P, ref: RefObject<Element>) => void; |
@@ -1,15 +0,14 @@ | ||
import { SyntheticEvent } from "react"; | ||
import { AnimationControls } from "../motion"; | ||
import { RefObject } from "react"; | ||
import { TargetAndTransition } from "../types"; | ||
export declare type HoverProps = { | ||
hoverActive?: TargetAndTransition; | ||
onMouseEnter?: (e: SyntheticEvent) => void; | ||
onMouseLeave?: (e: SyntheticEvent) => void; | ||
}; | ||
export declare const useHover: ({ hoverActive, onMouseEnter, onMouseLeave }: HoverProps, controls: AnimationControls<{}>) => { | ||
onMouseEnter?: undefined; | ||
onMouseLeave?: undefined; | ||
} | { | ||
onMouseEnter: (e: SyntheticEvent<Element>) => void; | ||
onMouseLeave: (e: SyntheticEvent<Element>) => void; | ||
}; | ||
import { ControlsProp } from "./types"; | ||
declare type HoverHandler = (event: Event) => void; | ||
export interface HoverHandlers { | ||
hoverActive?: string | TargetAndTransition; | ||
onHoverStart?: HoverHandler; | ||
onHoverEnd?: HoverHandler; | ||
} | ||
export declare const useHoverGesture: ({ hoverActive, onHoverStart, onHoverEnd, controls, }: HoverHandlers & ControlsProp, ref?: RefObject<Element> | undefined) => { | ||
onPointerEnter: (event: Event) => void; | ||
onPointerLeave: (event: Event) => void; | ||
} | undefined; | ||
export {}; |
import { RefObject } from "react"; | ||
import { Point, EventHandler } from "../events"; | ||
import { AnimationManager } from "../animation"; | ||
import { VariantLabels } from "../motion/types"; | ||
import { Target, TargetAndTransition } from "../types"; | ||
import { AnimationControls } from "../motion"; | ||
import { TargetAndTransition } from "../types"; | ||
import { ControlsProp } from "./types"; | ||
interface TapInfo { | ||
@@ -18,11 +16,6 @@ point: Point; | ||
} | ||
export interface Animation { | ||
controls?: AnimationControls; | ||
animate?: AnimationManager | VariantLabels | Target; | ||
initial?: VariantLabels | Target; | ||
} | ||
export declare function useTapGesture(handlers: TapHandlers & Animation): { | ||
export declare function useTapGesture(handlers: TapHandlers & ControlsProp): { | ||
onPointerDown: EventHandler; | ||
}; | ||
export declare function useTapGesture(handlers: TapHandlers & Animation, ref: RefObject<Element>): undefined; | ||
export declare function useTapGesture(handlers: TapHandlers & ControlsProp, ref: RefObject<Element>): undefined; | ||
export {}; |
@@ -6,3 +6,2 @@ import { Ref, CSSProperties } from "react"; | ||
import { GestureHandlers } from "../gestures"; | ||
import { HoverProps } from "../gestures/use-hover-gesture"; | ||
import { DraggableProps } from "../behaviours"; | ||
@@ -36,3 +35,3 @@ export declare type MotionStyleProp = string | number | MotionValue; | ||
export declare type OnUpdate = (v: Target) => void; | ||
export interface MotionProps extends GestureHandlers, DraggableProps, HoverProps { | ||
export interface MotionProps extends GestureHandlers, DraggableProps { | ||
ref?: Ref<Element>; | ||
@@ -46,2 +45,3 @@ style?: MotionStyle; | ||
onUpdate?: OnUpdate; | ||
render?: boolean; | ||
onAnimationComplete?: () => void; | ||
@@ -48,0 +48,0 @@ [key: string]: any; |
import { MotionProps } from "motion/types"; | ||
import { ComponentType, RefObject, CSSProperties, EventHandler, SyntheticEvent } from "react"; | ||
import { ComponentType, RefObject, CSSProperties } from "react"; | ||
import { MotionValuesMap } from "./use-motion-values"; | ||
@@ -26,11 +26,7 @@ import { AnimatePropType } from "../types"; | ||
innerRef: RefObject<Element | null>; | ||
handlers?: { | ||
onMouseEnter?: EventHandler<SyntheticEvent>; | ||
onMouseLeave?: EventHandler<SyntheticEvent>; | ||
}; | ||
style: CSSProperties; | ||
values: MotionValuesMap; | ||
}; | ||
export declare const RenderComponent: <P>({ base, props, innerRef, style, handlers, values, }: RenderProps<P>) => import("react").ReactElement<any>; | ||
export declare const RenderComponent: <P>({ base, props, innerRef, style, values, }: RenderProps<P>) => import("react").ReactElement<any>; | ||
export declare const checkShouldInheritVariant: ({ animate, inherit }: MotionProps, animatePropType?: AnimatePropType | undefined) => boolean; | ||
export {}; |
import { RefObject } from "react"; | ||
import { MotionValue } from "../../value"; | ||
import { OnUpdate } from "motion/types"; | ||
import { OnUpdate, MotionProps } from "motion/types"; | ||
export declare class MotionValuesMap { | ||
@@ -8,2 +8,3 @@ private hasMounted; | ||
private onUpdate?; | ||
private shouldRender; | ||
private values; | ||
@@ -18,5 +19,6 @@ private unsubscribers; | ||
setOnUpdate(onUpdate?: OnUpdate): void; | ||
setShouldRender(render: boolean): void; | ||
mount(element: Element): void; | ||
unmount(): void; | ||
} | ||
export declare const useMotionValues: (ref: RefObject<Element>, onUpdate?: OnUpdate | undefined) => MotionValuesMap; | ||
export declare const useMotionValues: (ref: RefObject<Element>, { onUpdate, render }: MotionProps) => MotionValuesMap; |
{ | ||
"name": "framer-motion", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "dist/framer-motion.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/framer-motion.es.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454454
52
9701