framer-motion
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -16,3 +16,3 @@ import { RefObject } from "react"; | ||
dragConstraints?: Constraints; | ||
overdrag?: Overdrag; | ||
dragElastic?: Overdrag; | ||
dragMomentum?: boolean; | ||
@@ -23,3 +23,3 @@ onDragStart?: (e: MouseEvent | TouchEvent) => void; | ||
} | ||
export declare function useDraggable(props: DraggableProps, ref: RefObject<Element | null>, values: MotionValuesMap, controls: AnimationControls): void; | ||
export declare function useDraggable({ drag, dragPropagation, dragConstraints, dragElastic, dragMomentum, onDragStart, onDragEnd, onDirectionLock, }: DraggableProps, ref: RefObject<Element | null>, values: MotionValuesMap, controls: AnimationControls): void; | ||
export {}; |
@@ -18,3 +18,3 @@ import { EventHandler, TargetOrRef, TargetBasedReturnType } from "./types"; | ||
} | ||
export declare const useTouchEvents: <Target extends TargetOrRef>({ onTouchStart, onTouchMove, onTouchEnd, onTouchCancel }: Partial<TouchEventHandlers>, ref: Target, options?: AddEventListenerOptions | undefined) => TargetBasedReturnType<Target>; | ||
export declare const useTouchEvents: <Target extends TargetOrRef>({ onTouchStart, onTouchMove, onTouchEnd, onTouchCancel, }: Partial<TouchEventHandlers>, ref: Target, options?: AddEventListenerOptions | undefined) => TargetBasedReturnType<Target>; | ||
export declare const useNativePointerEvents: <Target extends TargetOrRef>({ onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onPointerOver, onPointerOut, onPointerEnter, onPointerLeave, }: Partial<PointerEventHandlers>, ref: Target, options?: AddEventListenerOptions | undefined) => TargetBasedReturnType<Target>; | ||
@@ -21,0 +21,0 @@ export interface PointerEventHandlers { |
@@ -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,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"],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=U.createContext({dragging:!1}),I=function(e,n){var r=U.useContext(B),t=U.useMemo(function(){return{controls:e,initial:(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 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],g=function(t){return h=t},y=m.reduce(function(t,e){var r,i,a,u,s,o,c,f,l,p=(r=g,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||x(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),b=y.steps,F=y.sync,X=y.cancelSync,w=function(t){return b[t].process(v)},P=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(P))},x=function(){f=h=!0,l||s(P)},M=function(){return v},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},k=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=O({},A,{transform:k(0,1)}),E=O({},A,{default:1}),V=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}}},R=V("deg"),L=V("%"),D=V("px"),j=V("vh"),Y=V("vw"),z=k(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=O({},A,{transform:function(t){return Math.round(z(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=O({},$,{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),gt=st(mt),yt=ct(1.525),bt=ut(yt),wt=st(yt),Pt=ft(1.525),xt="undefined"!=typeof Float32Array,Mt=function(t,e){return 1-3*e+3*t},Ot=function(t,e){return 3*e-6*t},kt=function(t){return 3*t},Ct=function(t,e,n){return 3*Mt(e,n)*t*t+2*Ot(e,n)*t+kt(e)},St=function(t,e,n){return((Mt(e,n)*t+Ot(e,n))*t+kt(e))*t};function At(a,e,u,n){var s=xt?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)}}},Vt=Et(function(t,e,n){return Math.min(Math.max(n,t),e)}),Rt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},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],Xt=function(e){return Ft.find(function(t){return t.test(e)})},Yt=function(t,e){var n=Xt(t),r=Xt(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)}},Ut=function(e,n){return function(t){return n(e(t))}},Bt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Ut)},It=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)?Yt(e,n):Ht(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},Ht=function(t,e){var n=at(t);return n(t),at(e)(t),Bt(It(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)?Yt:Ht)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Bt(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,g=Wt(e,a),y=2===u?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(Rt(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=Rt(s[e],s[e+1],t);return c[e](o)});return i?Bt(Vt(t[0],t[u-1]),y):y},_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=(Vt(0,1),function(){return(Kt=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 Jt,Qt=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}}},te=/([a-z])([A-Z])/g,ee=function(t){return t.replace(te,"$1-$2").toLowerCase()},ne=new Map,re=new Map,oe=["Webkit","Moz","O","ms",""],ie=oe.length,ae="undefined"!=typeof document,ue=function(t,e){return re.set(t,ee(e))},se=function(t,e){void 0===e&&(e=!1);var n,r=e?re:ne;return r.has(t)||(ae?function(t){Jt=Jt||document.createElement("div");for(var e=0;e<ie;e++){var n=oe[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Jt.style||r)&&(ne.set(t,o),ue(t,(r?"":"-")+ee(o)))}}(t):ue(n=t,n)),r.get(t)||t},ce=["","X","Y","Z"],fe=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return ce.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),le=fe.reduce(function(t,e){return t[e]=!0,t},{}),pe=function(t){return!0===le[t]},de=function(t,e){return fe.indexOf(t)-fe.indexOf(e)},he={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:R,rotateX:R,rotateY:R,rotateZ:R,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:R,skewX:R,skewY:R,distance:D,x:D,y:D,z:D,perspective:D,opacity:T,originX:L,originY:L,originZ:D},ve=function(t){return he[t]},me="scrollLeft",ge="scrollTop",ye=new Set([me,ge]),be=new Set([me,ge,"transform"]),we={x:"translateX",y:"translateY",z:"translateZ"},Pe=function(t){return"function"==typeof t},xe=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=ve(l),h="number"==typeof p&&d?d.transform(p):p;pe(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):be.has(l)&&Pe(h)||(n[se(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(Pe(t.transform))v=t.transform(r);else{var m=!1;i.sort(de);for(var g=i.length,y=0;y<g;y++){l=i[y];v+=(we[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},Me=Qt({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=ve(t);if(pe(t))return o&&o.default||0;if(ye.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(se(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(me)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(ge)&&(r.scrollTop=t.scrollTop)},uncachedValues:ye}),Oe=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 Me(Kt({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,xe(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},ke=function(t,e){return t/100*e+"px"},Ce={fill:tt,stroke:tt,scale:E,scaleX:E,scaleY:E,opacity:T,fillOpacity:T,strokeOpacity:T},Se=Qt({onRead:function(t,e){var n=e.element;if(pe(t)){var r=Ce[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 g in t)if(t.hasOwnProperty(g)){var y=t[g];pe(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?a["stroke-dashoffset"]=ke(-y,r):a[ee(g)]=y:(i=!0,u[g]=ke(y,r))}if(i&&(a["stroke-dasharray"]=u.pathLength+" "+u.pathSpacing),o)for(var g in a.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";a.transform+=m[g].replace(/undefined/g,b)}return a}(t,n,e.isPath,e.pathLength))}}),Ae=Qt({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)}}),Te=new WeakMap,Ee=function(t,e){var n,r,o;return t instanceof HTMLElement?n=Oe(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=Se(o)):t===window&&(n=Ae(t)),Te.set(t,n),n};function Ve(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,Te.has(n)?Te.get(n):Ee(n,r)}var Re=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]:Bt.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}(),Le=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)})}}(),De=function(t,e,n){var r=e.middleware;return new Le({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},je=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(De(t,i,function(){e=!0,n.stop()}));return n=a?H({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Re),Fe=function(t){return new je({init:t})},Xe=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=De(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}(Re),Ye=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=M(),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}(Xe),Ue=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 Fe(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},{})})}},Be=Ue({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},{})}}),Ie=Ue({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)})}}),He=[D,L,R,j,Y],ze=function(e){return He.find(function(t){return t.test(e)})},We=function(t,e){return t(e)},qe=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 Ke(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ie(t)}.apply(void 0,e)},_e=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]=Ke(i[u][e])(o,r),t},{});return Be(t)},Ne=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=ze(n)||ze(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)},Ge=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]);return t(H({},o,{from:0,to:1})).pipe(Yt(n,r),tt.transform)},Ze=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(H({},o,{from:0,to:1})).pipe(It(it(n),it(r)),i)},$e=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 Ke(n)(r,t,e)}},Ke=function(t){var e=We;return"number"==typeof t?e=We:Array.isArray(t)?e=qe:Boolean(ze(t))?e=Ne:tt.test(t)?e=Ge:ot(t)?e=Ze:"object"==typeof t&&(e=_e),e},Je=$e(function(b){return void 0===b&&(b={}),Fe(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),g=void 0===d?m:d(m),y=F.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(X.update(y),o())},!0);return{stop:function(){return X.update(y)}}})},{from:A.test,modifyTarget:function(t){return"function"==typeof t},velocity:A.test}),Qe=$e(function(k){return void 0===k&&(k={}),Fe(function(t){var s=t.update,c=t.complete,e=k.velocity,f=void 0===e?0:e,n=k.from,r=void 0===n?0:n,o=k.to,l=void 0===o?0:o,i=k.stiffness,p=void 0===i?100:i,a=k.damping,d=void 0===a?10:a,u=k.mass,h=void 0===u?1:u,v=k.restSpeed,m=void 0===v?.01:v,g=k.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,x=r,M=x,O=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(M=x,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);x=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);x=l-o*(P+(b+r*P)*w)}f=Zt(x-M,e);var a=Math.abs(f)<=m,u=Math.abs(l-x)<=y;a&&u?(s(x=l),X.update(O),c()):s(x)},!0);return{stop:function(){return X.update(O)}}})},{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),tn=$e(function(t){var e=t.from,h=void 0===e?0:e,n=t.velocity,v=void 0===n?0:n,m=t.min,g=t.max,r=t.damping,y=void 0===r?10:r,o=t.stiffness,b=void 0===o?500:o,w=t.modifyTarget;return Fe(function(t){var e,n,r=t.update,o=t.complete,i=new Ye({value:h,initialSubscription:e}),a=!1,u=function(t){return void 0!==m&&t<=m},s=function(t){return void 0!==g&&g<=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(Qe(H({},t,{to:u(t.from)?m:g,stiffness:b,damping:y})))};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=Je({from:h,velocity:v,timeConstant:700,restDelta:c(h)?20:1,modifyTarget:w});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}}),en=$e(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 Fe(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}),nn=Vt(0,1),rn=function(j){return void 0===j&&(j={}),Fe(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,g=void 0===m?1:m,y=j.elapsed,b=void 0===y?0:y,w=j.playDirection,P=void 0===w?1:w,x=j.flipCount,M=void 0===x?0:x,O=j.yoyoCount,k=void 0===O?0:O,C=j.loopCount,S=void 0===C?0:C,A=en({from:v,to:g,ease:u}).start(r),T=0,E=!1,V=function(){return P*=-1},R=function(){T=nn(Rt(0,i,b)),A.seek(T)},L=function(){E=!0,n=F.update(function(t){var e=t.delta;b+=e*P,R(),function(){var t,e=1===P?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&&M<c?(b=i-b,A=en({from:v=(t=[g,v])[0],to:g=t[1],ease:u}).start(r),M++,n=!0):d&&k<d&&(V(),k++,n=!0),!n}()&&o&&(X.update(n),F.update(o,!1,!0))},!0)},D=function(){E=!1,n&&X.update(n)};return L(),{isActive:function(){return E},getElapsed:function(){return Vt(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(R,!1,!0),this},reverse:function(){return V(),this}}})},on=Vt(0,1),an=$e(function(m){return void 0===m&&(m={}),Fe(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)&&(X.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 X.update(v)}}})},{acceleration:A.test,friction:A.test,velocity:A.test,from:A.test,to:A.test,springStrength:A.test}),un=function(r,o,i){return Fe(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)})}}})},sn=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},cn=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},fn=[sn()];if("undefined"!=typeof document){un(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=fn.length=0;r<n;r++){var o=e[r];fn.push(cn(o))}})}var ln=sn();if("undefined"!=typeof document){un(document,"mousedown mousemove",!0).start(function(t){cn(t,ln)})}var pn,dn,hn=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=M(),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(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 Fe(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,Fe(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}(),vn=function(t,e){return new hn(t,e)},mn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new hn(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=Ve(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}(),gn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},yn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},bn=function(){return{ease:"linear",duration:250}},wn={x:gn,y:gn,z:gn,rotate:gn,rotateX:gn,rotateY:gn,rotateZ:gn,scaleX:yn,scaleY:yn,scale:yn,opacity:bn,backgroundColor:bn,color:bn,default:yn},Pn={tween:rn,spring:Qe,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 en({from:c[e],to:c[e+1],ease:t})});return rn(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=Rt(r[e-1],r[e],t);u[e-1].seek(on(n))};var r,e,n,o,i,a,u})},decay:Je,physics:an,inertia:tn,just:function(t){var r=t.to;return Fe(function(t){var e=t.update,n=t.complete;e(r),n()})}},xn={linear:lt,easeIn:pt,easeOut:dt,easeInOut:ht,circIn:vt,circOut:mt,circInOut:gt,backIn:yt,backOut:bt,backInOut:wt,anticipate:Pt},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=At(n,r,o,i)}else"string"==typeof e&&(t.ease=xn[e]);return t},keyframes:function(t){t.from,t.to;return d(t,["from","to"])}},On=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 H({delay:o},H({},(wn[t]||wn.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)},kn=function(t,e,n){var r,o,i=On(t,e,n),a=i.type,u=void 0===a?"tween":a,s=d(i,["type"]);return[Pn[u],(o=s,Mn[r=u]?Mn[r](o):o)]},Cn=[A,R,L,D,Y,j,{test:function(t){return"auto"===t},parse:function(t){return t}}],Sn=function(t){return Cn.find((e=t,function(t){return t.test(e)}));var e},An=new Set(["width","height","top","left","right","bottom","x","y"]),Tn=function(t){return An.has(t)},En=function(t,e){t.set(e,!1),t.set(e)};(dn=pn||(pn={})).width="width",dn.height="height",dn.left="left",dn.right="right",dn.top="top",dn.bottom="bottom";var Vn,Rn=function(t,e){return parseFloat(t.split(", ")[e])},Ln=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 Rn(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return Rn(o[1],i)}},Dn={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:Ln(4,13),y:Ln(5,14)},jn=function(i,t,a,u){void 0===u&&(u={}),u=H({},u);var e=Object.keys(a).filter(Tn).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return Sn(r)!==Sn(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],En(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=Ve(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);En(e,Dn[t](a,s)),n[t]=Dn[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},Fn=function(t,e,n,r){return o=n,Object.keys(o).some(Tn)?jn(t,e,n,r):{target:n,transitionEnd:r};var o},Xn=function(){function t(t,e){this.variants={},this.baseTarget={},this.overrides=[],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,vn(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=Ve(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,vn(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){if(this.overrides[t]){this.overrides[t]=void 0;var e=this.getHighestPriority();if(this.resetIsAnimating(),!(t<e)){var n=this.overrides[e];n&&this.start(n,{priority:e}),this.animate(this.baseTarget)}}},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();this.checkForNewValues(l);var u=Fn(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=kn(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}(),Yn=(Vn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Vn(t)}),n}),Un=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}(),Bn=function(t){var e,n=t instanceof hn?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function In(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var Hn,zn=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},Wn=function(o,i,a,u){var t=void 0;return i&&!In(i)||!a||(t=zn(i,o,a,u)),U.useEffect(function(){var t=i;if(a&&i&&!In(i)&&t.current){var e=zn(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},qn=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)}},_n=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:qn(n,r),devicePoint:qn(n,document.body)}),o(t,e)}}},Nn=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]()}}]}},Gn=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,g,y,b,w,P,x,M,O,k,C,S,A,T,E,V,R,L,D,j,F,X,Y,U,B,I,H,z,W,q,_,N,G,Z,$,K,J,Q,tt,et,nt,rt,ot,it,at,ut=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,x=h.onPointerOut,M=h.onPointerEnter,O=h.onPointerLeave,k=Wn("pointerdown",v,_n(g),m),C=Wn("pointermove",v,_n(y),m),S=Wn("pointerup",v,_n(b),m),A=Wn("pointercancel",v,_n(w),m),T=Wn("pointerover",v,_n(P),m),E=Wn("pointerout",v,_n(x),m),V=Wn("pointerenter",v,_n(M),m),R=Wn("pointerleave",v,_n(O),m),Nn(k,C,S,A,T,E,V,R)),st=(D=e,j=n,F=(L=p).onTouchStart,X=L.onTouchMove,Y=L.onTouchEnd,U=L.onTouchCancel,B=Wn("touchstart",D,_n(F),j),I=Wn("touchmove",D,_n(X),j),H=Wn("touchend",D,_n(Y),j),z=Wn("touchcancel",D,_n(U),j),Nn(B,I,H,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=Wn("mousedown",q,_n(N),_),et=Wn("mousemove",q,_n(G),_),nt=Wn("mouseup",q,_n(Z),_),rt=Wn("mouseover",q,_n($),_),ot=Wn("mouseout",q,_n(K),_),it=Wn("mouseenter",q,_n(J),_),at=Wn("mouseleave",q,_n(Q),_),Nn(tt,et,nt,rt,ot,it,at));return Nn(ut,st,ct)},Zn=function(t,e,n){var r,o,i=U.useRef(null);return o=e?(r=e,t):(r=i,{}),Gn(o,r,n),e?void 0:t};(Hn||(Hn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var $n=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function Kn(t,e){var a=t.onPan,u=t.onPanStart,s=t.onPanEnd,c=null,f=U.useRef(null),l=U.useRef(null),p=U.useRef(null),d=U.useMemo(function(){return function(){if(c&&null!==f.current&&null!==p.current&&null!==l.current){var t=p.current,e=t.point,n=t.devicePoint,r=Hn.subtract(n,c.lastDevicePoint),o=Hn.subtract(n,c.startDevicePoint);if(f.current.x.set(n.x),f.current.y.set(n.y),0<Math.abs(r.x)||0<Math.abs(r.y)){var i={point:e,devicePoint:n,delta:r,offset:o,velocity:$n(f.current)};c.startEvent?a&&a(l.current,i):(u&&u(l.current,i),c.startEvent=l.current)}c.lastDevicePoint=n,r.x=0,r.y=0}else console.error("Pointer move without started session")}},[a,u]),n=U.useMemo(function(){return function(t,e){l.current=t,p.current=e,F.update(d)}},[a,u]),r=U.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){X.update(d);var o=Hn.subtract(r,c.lastDevicePoint),i=Hn.subtract(r,c.startDevicePoint);g(),h(),s&&s(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:$n(f.current)}),c=null}else console.error("Pointer end without started session")}},[s,n]),o=Gn({onPointerUp:r},window),i=o[0],h=o[1],v=Gn({onPointerMove:n},window,{capture:!0}),m=v[0],g=v[1],y=U.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;f.current={x:vn(r.x),y:vn(r.y)},c={target:t.target,lastDevicePoint:n,startDevicePoint:n},m(),i()}},[r,n]);U.useEffect(function(){return function(){g(),h()}},[]);var b={onPointerDown:y};return a||u||s||(b={}),Zn(b,e)}var Jn=["hover","tap","drag"],Qn=function(t){return Jn.indexOf(t)+1};function tr(t,o){var i=t.onTap,a=t.onTapStart,u=t.onTapCancel,s=t.tapActive,c=t.controls,f=null,e=U.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;f&&(c&&s&&c.clearOverride(Qn("tap")),o&&t.target===o.current?(i&&i({point:n,devicePoint:r},t),f=null):u&&u({point:n,devicePoint:r},t))}},[i]),n=U.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;l(),o&&t.target===o.current&&(f={target:t.target},a&&a({point:n,devicePoint:r},t),c&&s&&c.start(s,{priority:Qn("tap")}))}},[e]),r=Gn({onPointerUp:e},window),l=r[0],p=r[1];return U.useEffect(function(){return function(){p()}},[o&&o.current,e]),Zn({onPointerDown:n},o)}var er=function(t,e){Kn(t,e),tr(t,e)};function nr(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function rr(t,e,n){return!(!0!==e&&"lockDirection"!==e&&e!==t||null!==n&&n!==t)}var or=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}},ir=function(t,e,n){return Lt(t,e,"number"==typeof n?n:.5)};function ar(t,e,n,o){var r=t.drag,u=void 0!==r&&r,i=t.dragPropagation,a=void 0!==i&&i,s=t.dragConstraints,c=t.overdrag,f=void 0===c||c,l=t.dragMomentum,p=void 0===l||l,d=t.onDragStart,h=t.onDragEnd,v=t.onDirectionLock,m={},g=U.useRef({x:0,y:0}).current,y=null;rr("x",u,y)&&(m.x=n.get("x",0)),rr("y",u,y)&&(m.y=n.get("y",0));var b=function(t,e){var n=m[t];if(rr(t,u,y)&&n){var r=g[t]+e[t];if(s){var o=or(t,s),i=o.min,a=o.max;void 0!==i&&r<i?r=f?ir(i,r,f):Math.max(i,r):void 0!==a&&a<r&&(r=f?ir(a,r,f):Math.min(a,r))}n.set(r)}},w=U.useContext(B),P=U.useRef(null),x=U.useMemo(function(){return function(t){m.x&&(g.x=m.x.get(),m.x.stop()),m.y&&(g.y=m.y.get(),m.y.stop()),(a||(P.current=function(t){var e=!1;if("y"===t)e=sr();else if("x"===t)e=ur();else{var n=ur(),r=sr();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(u),P.current))&&(y=null,w.dragging=!0,d&&d(t))}},[u,a,w]),M=U.useMemo(function(){return function(t,e){var n=e.offset;(a||P.current)&&("lockDirection"!==u||null!==y?(b("x",n),b("y",n)):null!==(r=n,o=null,10<Math.abs(r.y)?o="y":10<Math.abs(r.x)&&(o="x"),y=o)&&v&&v(y));var r,o}},[P.current,u,m]),O=U.useMemo(function(){return function(t,e){var r=e.velocity;if(!a&&P.current&&P.current(),p){var n=function(t){var e;if(rr(t,u,y)){var n=s?or(t,s):{};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")}w.dragging=!1,h&&h(t)}},[P.current,w,u]),k={};u&&(k={onPanStart:x,onPan:M,onPanEnd:O}),Kn(k,e)}var ur=nr("dragHorizontal"),sr=nr("dragVertical");var cr,fr;function lr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pr(t,e){return t(e={exports:{}},e.exports),e.exports}(fr=cr||(cr={})).Target="Target",fr.VariantLabel="VariantLabel",fr.AnimationSubscription="AnimationSubscription";var dr=pr(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]}}});lr(dr),lr(pr(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 hr,vr,mr=pr(function(t){t.exports=dr}),gr=/^((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)-.*))$/,yr=mr(function(t){return gr.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),br=function(e){return function(t){return e(t),null}},wr=((hr={})[cr.Target]=br(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])}),hr[cr.VariantLabel]=br(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=Bn(e),u=U.useRef(!1),void U.useEffect(function(){var t,e;n||((u.current||(t=Bn(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),hr[cr.AnimationSubscription]=br(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])}),hr),Pr=function(t){return t.animate instanceof Un},xr=((vr={})[cr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||Pr(t));var e},vr[cr.VariantLabel]=function(t){return void 0!==t.variants},vr[cr.AnimationSubscription]=Pr,vr),Mr=["drag","onPan","onPanStart","onPanEnd","onTap","onPressStart","onPressEnd","hoverActive","pressActive"],Or=br(function(t){var e=t.innerRef,n=d(t,["innerRef"]);return er(n,e)}),kr=br(function(t){var e=t.innerRef,n=t.values,r=t.controls;return ar(d(t,["innerRef","values","controls"]),e,n,r)}),Cr=new Set(["onTap","onAnimationComplete"]),Sr=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)yr(n)&&!Cr.has(n)&&(e[n]=t[n]);return e}(o):o;return U.createElement(r,H({},l,u,{ref:i,style:f?a:(e=s,n=a,H({},n,xe(Yn(e))))}))},Ar=new Set([cr.AnimationSubscription,cr.VariantLabel]),Tr=Qn("hover"),Er=function(Y){return U.forwardRef(function(t,e){var n,r,o,i,a,u,s,c,f,l,p,d,h,v,m,g,y,b,w,P,x,M,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,i=U.useMemo(function(){return new mn},[]),U.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),S=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof hn?t.set(r,o):pe(r)?t.has(r)||t.set(r,vn(o)):n[r]=o}return n}(C,t.style),A=function(t){for(var e in cr)if(xr[e](t))return e}(t),T=(u=A,s=(a=t).animate,!(void 0!==(c=a.inherit)&&!c||!(void 0===s||s instanceof Un)||!u||!Ar.has(u))),E=(f=C,p=k,d=T,h=(l=t).variants,v=l.transition,m=U.useContext(B).controls,(g=U.useMemo(function(){return new Xn(f,p)},[])).resetChildren(),d&&m&&m.addChild(g),U.useEffect(function(){return function(){return m&&m.removeChild(g)}},[]),g.setProps(l),g.setVariants(h),g.setDefaultTransition(v),g),V=I(E,t.initial),R=(y=A)?wr[y]:void 0,L=R&&U.createElement(R,H({},t,{inherit:T,innerRef:k,values:C,controls:E})),D=(b=t,Mr.some(function(t){return b.hasOwnProperty(t)})&&U.createElement(Or,H({},t,{values:C,controls:E,innerRef:k}))),j=!!t.drag&&U.createElement(kr,H({},t,{innerRef:k,controls:E,values:C})),F=(P=E,x=(w=t).hoverActive,M=w.onMouseEnter,O=w.onMouseLeave,U.useMemo(function(){return x?{onMouseEnter:function(t){M&&M(t),x&&P.start(x,{priority:Tr})},onMouseLeave:function(t){O&&O(t),x&&P.clearOverride(Tr)}}:{}},[x,M,O])),X=U.createElement(Sr,{base:Y,props:t,handlers:F,innerRef:k,style:S,values:C});return U.createElement(B.Provider,{value:V},L,D,j,X)})},Vr=n.reduce(function(t,e){return t[e]=Er(e),t},{custom:Er}),Rr=vn(0),Lr=vn(0),Dr=vn(0),jr=vn(0),Fr=!1,Xr={scrollX:Rr,scrollY:Lr,scrollXProgress:Dr,scrollYProgress:jr};t.motion=Vr,t.useMotionValue=function(t){return U.useMemo(function(){return vn(t)},[])},t.useTransformedValue=function(e,n,r){var o=U.useRef(null);return U.useMemo(function(){o.current&&o.current.destroy();var t=qt(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return Fr||function(){if(Fr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Rr.set(t),Lr.set(e);var n=document.body.clientWidth-window.innerWidth;Dr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;jr.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),Xr},t.useAnimation=function(t,e){var n=U.useMemo(function(){return new Un},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),U.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=tr,t.usePanGesture=Kn,t.useGestures=er,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})}); | ||
!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:(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},M=function(){return(M=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)},k=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=M({},A,{transform:k(0,1)}),E=M({},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("%"),j=R("px"),D=R("vh"),X=R("vw"),Y=k(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=M({},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=M({},$,{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},Mt=function(t,e){return 3*e-6*t},kt=function(t){return 3*t},Ct=function(t,e,n){return 3*Ot(e,n)*t*t+2*Mt(e,n)*t+kt(e)},St=function(t,e,n){return((Ot(e,n)*t+Mt(e,n))*t+kt(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},jt=function(){return(jt=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)},Dt=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=jt({},o),u=n===J?Lt:Dt;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(){return(Kt=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 Jt,Qt=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}}},te=/([a-z])([A-Z])/g,ee=function(t){return t.replace(te,"$1-$2").toLowerCase()},ne=new Map,re=new Map,oe=["Webkit","Moz","O","ms",""],ie=oe.length,ae="undefined"!=typeof document,ue=function(t,e){return re.set(t,ee(e))},se=function(t,e){void 0===e&&(e=!1);var n,r=e?re:ne;return r.has(t)||(ae?function(t){Jt=Jt||document.createElement("div");for(var e=0;e<ie;e++){var n=oe[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Jt.style||r)&&(ne.set(t,o),ue(t,(r?"":"-")+ee(o)))}}(t):ue(n=t,n)),r.get(t)||t},ce=["","X","Y","Z"],fe=["scale","rotate","skew","transformPerspective"].reduce(function(t,n){return ce.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),le=fe.reduce(function(t,e){return t[e]=!0,t},{}),pe=function(t){return!0===le[t]},de=function(t,e){return fe.indexOf(t)-fe.indexOf(e)},he={color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scale:E,scaleX:E,scaleY:E,scaleZ:E,skew:V,skewX:V,skewY:V,distance:j,x:j,y:j,z:j,perspective:j,opacity:T,originX:L,originY:L,originZ:j},ve=function(t){return he[t]},me="scrollLeft",ye="scrollTop",ge=new Set([me,ye]),be=new Set([me,ye,"transform"]),we={x:"translateX",y:"translateY",z:"translateZ"},xe=function(t){return"function"==typeof t},Pe=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=ve(l),h="number"==typeof p&&d?d.transform(p):p;pe(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):be.has(l)&&xe(h)||(n[se(l,a)]=h)}if(s)c&&(n.transform="none");else{var v="";if(xe(t.transform))v=t.transform(r);else{var m=!1;i.sort(de);for(var y=i.length,g=0;g<y;g++){l=i[g];v+=(we[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},Oe=Qt({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=ve(t);if(pe(t))return o&&o.default||0;if(ge.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(se(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(me)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(ye)&&(r.scrollTop=t.scrollTop)},uncachedValues:ge}),Me=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 Oe(Kt({element:t,buildStyles:function(e){void 0===e&&(e=!0);var n={},r={},o={},i=[];return function(t){return i.length=0,Pe(t,e,n,r,o,i,!0),n}}(n),preparseOutput:!0},r))},ke=function(t,e){return t/100*e+"px"},Ce={fill:tt,stroke:tt,scale:E,scaleX:E,scaleY:E,opacity:T,fillOpacity:T,strokeOpacity:T},Se=Qt({onRead:function(t,e){var n=e.element;if(pe(t)){var r=Ce[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];pe(y)?o=!0:!n||"pathLength"!==y&&"pathSpacing"!==y||"number"!=typeof g?n&&"pathOffset"===y?a["stroke-dashoffset"]=ke(-g,r):a[ee(y)]=g:(i=!0,u[y]=ke(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))}}),Ae=Qt({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)}}),Te=new WeakMap,Ee=function(t,e){var n,r,o;return t instanceof HTMLElement?n=Me(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=Se(o)):t===window&&(n=Ae(t)),Te.set(t,n),n};function Re(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,Te.has(n)?Te.get(n):Ee(n,r)}var Ve=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}(),Le=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)})}}(),je=function(t,e,n){var r=e.middleware;return new Le({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},De=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(je(t,i,function(){e=!0,n.stop()}));return n=a?z({},n,a):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(Ve),Fe=function(t){return new De({init:t})},Ue=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=je(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}(Ve),Xe=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}(Ue),Ye=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 Fe(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},{})})}},He=Ye({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},{})}}),Be=Ye({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)})}}),Ie=[j,L,V,D,X],ze=function(e){return Ie.find(function(t){return t.test(e)})},We=function(t,e){return t(e)},qe=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 Ke(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Be(t)}.apply(void 0,e)},_e=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]=Ke(i[u][e])(o,r),t},{});return He(t)},Ne=function(t,e){var n=e.from,r=e.to,o=d(e,["from","to"]),i=ze(n)||ze(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)},Ge=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)},Ze=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)},$e=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 Ke(n)(r,t,e)}},Ke=function(t){var e=We;return"number"==typeof t?e=We:Array.isArray(t)?e=qe:Boolean(ze(t))?e=Ne:tt.test(t)?e=Ge:ot(t)?e=Ze:"object"==typeof t&&(e=_e),e},Je=$e(function(b){return void 0===b&&(b={}),Fe(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}),Qe=$e(function(k){return void 0===k&&(k={}),Fe(function(t){var s=t.update,c=t.complete,e=k.velocity,f=void 0===e?0:e,n=k.from,r=void 0===n?0:n,o=k.to,l=void 0===o?0:o,i=k.stiffness,p=void 0===i?100:i,a=k.damping,d=void 0===a?10:a,u=k.mass,h=void 0===u?1:u,v=k.restSpeed,m=void 0===v?.01:v,y=k.restDelta,g=void 0===y?.01:y,b=f?-f/1e3:0,w=0,x=l-r,P=r,O=P,M=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(M),c()):s(P)},!0);return{stop:function(){return U.update(M)}}})},{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),tn=$e(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.damping,g=void 0===r?10:r,o=t.stiffness,b=void 0===o?500:o,w=t.modifyTarget;return Fe(function(t){var e,n,r=t.update,o=t.complete,i=new Xe({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(Qe(z({},t,{to:u(t.from)?m:y,stiffness:b,damping:g})))};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=Je({from:h,velocity:v,timeConstant:700,restDelta:c(h)?20:1,modifyTarget:w});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}}),en=$e(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 Fe(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}),nn=Rt(0,1),rn=function(D){return void 0===D&&(D={}),Fe(function(t){var n,r=t.update,o=t.complete,e=D.duration,i=void 0===e?300:e,a=D.ease,u=void 0===a?dt:a,s=D.flip,c=void 0===s?0:s,f=D.loop,l=void 0===f?0:f,p=D.yoyo,d=void 0===p?0:p,h=D.from,v=void 0===h?0:h,m=D.to,y=void 0===m?1:m,g=D.elapsed,b=void 0===g?0:g,w=D.playDirection,x=void 0===w?1:w,P=D.flipCount,O=void 0===P?0:P,M=D.yoyoCount,k=void 0===M?0:M,C=D.loopCount,S=void 0===C?0:C,A=en({from:v,to:y,ease:u}).start(r),T=0,E=!1,R=function(){return x*=-1},V=function(){T=nn(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=en({from:v=(t=[y,v])[0],to:y=t[1],ease:u}).start(r),O++,n=!0):d&&k<d&&(R(),k++,n=!0),!n}()&&o&&(U.update(n),F.update(o,!1,!0))},!0)},j=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(){j()},pause:function(){return j(),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}}})},on=Rt(0,1),an=$e(function(m){return void 0===m&&(m={}),Fe(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}),un=function(r,o,i){return Fe(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)})}}})},sn=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},cn=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},fn=[sn()];if("undefined"!=typeof document){un(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=fn.length=0;r<n;r++){var o=e[r];fn.push(cn(o))}})}var ln=sn();if("undefined"!=typeof document){un(document,"mousedown mousemove",!0).start(function(t){cn(t,ln)})}var pn,dn,hn=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 Fe(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,Fe(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}(),vn=function(t,e){return new hn(t,e)},mn=Qt({onRead:function(){return null},onRender:function(t,e){return(0,e.onUpdate)(t)}}),yn=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 hn(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=mn({onUpdate:t}))},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=Re(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}(),gn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},bn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},wn=function(){return{ease:"linear",duration:250}},xn={x:gn,y:gn,z:gn,rotate:gn,rotateX:gn,rotateY:gn,rotateZ:gn,scaleX:bn,scaleY:bn,scale:bn,opacity:wn,backgroundColor:wn,color:wn,default:bn},Pn={tween:rn,spring:Qe,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 en({from:c[e],to:c[e+1],ease:t})});return rn(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(on(n))};var r,e,n,o,i,a,u})},decay:Je,physics:an,inertia:tn,just:function(t){var r=t.to;return Fe(function(t){var e=t.update,n=t.complete;e(r),n()})}},On={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=At(n,r,o,i)}else"string"==typeof e&&(t.ease=On[e]);return t},keyframes:function(t){t.from,t.to;return d(t,["from","to"])}},kn=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({},(xn[t]||xn.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)},Cn=function(t,e,n){var r,o,i=kn(t,e,n),a=i.type,u=void 0===a?"tween":a,s=d(i,["type"]);return[Pn[u],(o=s,Mn[r=u]?Mn[r](o):o)]},Sn=[A,V,L,j,X,D,{test:function(t){return"auto"===t},parse:function(t){return t}}],An=function(t){return Sn.find((e=t,function(t){return t.test(e)}));var e},Tn=new Set(["width","height","top","left","right","bottom","x","y"]),En=function(t){return Tn.has(t)},Rn=function(t,e){t.set(e,!1),t.set(e)};(dn=pn||(pn={})).width="width",dn.height="height",dn.left="left",dn.right="right",dn.top="top",dn.bottom="bottom";var Vn,Ln=function(t,e){return parseFloat(t.split(", ")[e])},jn=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 Ln(r[1],a);var o=n.match(/^matrix\((.+)\)$/);return Ln(o[1],i)}},Dn={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:jn(4,13),y:jn(5,14)},Fn=function(i,t,a,u){void 0===u&&(u={}),u=z({},u);var e=Object.keys(a).filter(En).reduce(function(t,e){var n=i.get(e),r=n.get(),o=a[e];return An(r)!==An(o)&&(t.push(e),u[e]=void 0!==u[e]?u[e]:a[e],Rn(n,o)),t},[]);return e.length?{target:function(n,r,t,e){var o=t.current,i=Re(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);Rn(e,Dn[t](a,s)),n[t]=Dn[t](c,u)}),i.render(),n}(a,i,t,e),transitionEnd:u}:{target:a,transitionEnd:u}},Un=function(t,e,n,r){return o=n,Object.keys(o).some(En)?Fn(t,e,n,r):{target:n,transitionEnd:r};var o},Xn=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,vn(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=Re(this.ref.current);e.forEach(function(t){var e=r.get(t);n.values.set(t,vn(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=Un(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=Cn(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}(),Yn=(Vn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Vn(t)}),n}),Hn=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}(),Bn=function(t){var e,n=t instanceof hn?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};function In(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var zn,Wn=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},qn=function(o,i,a,u){var t=void 0;return i&&!In(i)||!a||(t=Wn(i,o,a,u)),H.useEffect(function(){var t=i;if(a&&i&&!In(i)&&t.current){var e=Wn(t.current,o,a,u),n=e[0],r=e[1];return n(),r}},[o,i,a,u]),t},_n=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)}},Nn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:_n(n,r),devicePoint:_n(n,document.body)}),o(t,e)}}},Gn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Zn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,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,M,k,C,S,A,T,E,R,V,L,j,D,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,M=h.onPointerLeave,k=qn("pointerdown",v,Nn(y),m),C=qn("pointermove",v,Nn(g),m),S=qn("pointerup",v,Nn(b),m),A=qn("pointercancel",v,Nn(w),m),T=qn("pointerover",v,Nn(x),m),E=qn("pointerout",v,Nn(P),m),R=qn("pointerenter",v,Nn(O),m),V=qn("pointerleave",v,Nn(M),m),Gn(k,C,S,A,T,E,R,V)),st=(j=e,D=n,F=(L=p).onTouchStart,U=L.onTouchMove,X=L.onTouchEnd,Y=L.onTouchCancel,H=qn("touchstart",j,Nn(F),D),B=qn("touchmove",j,Nn(U),D),I=qn("touchend",j,Nn(X),D),z=qn("touchcancel",j,Nn(Y),D),Gn(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=qn("mousedown",q,Nn(N),_),et=qn("mousemove",q,Nn(G),_),nt=qn("mouseup",q,Nn(Z),_),rt=qn("mouseover",q,Nn($),_),ot=qn("mouseout",q,Nn(K),_),it=qn("mouseenter",q,Nn(J),_),at=qn("mouseleave",q,Nn(Q),_),Gn(tt,et,nt,rt,ot,it,at));return Gn(ut,st,ct)},$n=function(t,e,n){var r,o,i=H.useRef(null);return o=e?(r=e,t):(r=i,{}),Zn(o,r,n),e?void 0:t};function Kn(t){return t.pointHistory[0]}function Jn(t){return t.pointHistory[t.pointHistory.length-1]}function Qn(t,e){var n=t.pointHistory;if(n.length<2)return{x:0,y:0};for(var r=n.length-1,o=null,i=Jn(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 tr(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=zn.subtract(n,Jn(f)),o=zn.subtract(n,Kn(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:Qn(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=zn.subtract(r,Jn(f)),i=zn.subtract(r,Kn(f)),a=Qn(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=Zn({onPointerUp:r},window),i=o[0],v=o[1],a=Zn({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:vn(r.x),y:vn(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={}),$n(b,e)}(zn||(zn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var er=["hover","tap","drag"],nr=function(t){return er.indexOf(t)+1};function rr(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(nr("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:nr("tap")}))}}},[void 0===e,void 0===n,void 0===r]),f=Zn({onPointerUp:c.onPointerUp},window),l=f[0],p=f[1];return H.useEffect(function(){return function(){p()}},[c.onPointerUp]),$n({onPointerDown:c.onPointerDown},o)}var or=function(t,e){tr(t,e),rr(t,e)};function ir(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}function ar(t,e,n){return!(!0!==e&&"lockDirection"!==e&&e!==t||null!==n&&n!==t)}var ur=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}},sr=function(t,e,n){return Lt(t,e,"number"==typeof n?n:.5)};function cr(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);tr(H.useMemo(function(){if(!s)return{};var u=null,i=null;ar("x",s,u)&&(m.x=n.get("x",0)),ar("y",s,u)&&(m.y=n.get("y",0));var a=function(t,e){var n=m[t];if(ar(t,s,u)&&n){var r=y[t]+e[t];if(f){var o=ur(t,f),i=o.min,a=o.max;void 0!==i&&r<i?r=l?sr(i,r,l):Math.max(i,r):void 0!==a&&a<r&&(r=l?sr(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=lr();else if("x"===t)e=fr();else{var n=fr(),r=lr();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(ar(t,s,u)){var n=f?ur(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 fr=ir("dragHorizontal"),lr=ir("dragVertical");var pr,dr;function hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vr(t,e){return t(e={exports:{}},e.exports),e.exports}(dr=pr||(pr={})).Target="Target",dr.VariantLabel="VariantLabel",dr.AnimationSubscription="AnimationSubscription";var mr=vr(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]}}});hr(mr),hr(vr(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 yr,gr,br=vr(function(t){t.exports=mr}),wr=/^((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)-.*))$/,xr=br(function(t){return wr.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),Pr=function(e){return function(t){return e(t),null}},Or=((yr={})[pr.Target]=Pr(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])}),yr[pr.VariantLabel]=Pr(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=Bn(e),u=H.useRef(!1),void H.useEffect(function(){var t,e;n||((u.current||(t=Bn(o),e=a,t.join(",")!==e.join(",")))&&r.start(a).then(function(){i&&i()}),u.current=!0)},[a.join(",")])}),yr[pr.AnimationSubscription]=Pr(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])}),yr),Mr=function(t){return t.animate instanceof Hn},kr=((gr={})[pr.Target]=function(t){return!(void 0===t.animate||(e=t.animate,Array.isArray(e)||"string"==typeof e)||Mr(t));var e},gr[pr.VariantLabel]=function(t){return void 0!==t.variants},gr[pr.AnimationSubscription]=Mr,gr),Cr=["drag","onPan","onPanStart","onPanEnd","onTap","onPressStart","onPressEnd","hoverActive","pressActive"],Sr=Pr(function(t){var e=t.innerRef,n=d(t,["innerRef"]);return or(n,e)}),Ar=Pr(function(t){var e=t.innerRef,n=t.values,r=t.controls;return cr(d(t,["innerRef","values","controls"]),e,n,r)}),Tr=new Set(["onTap","onAnimationComplete","onUpdate"]),Er=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)xr(n)&&!Tr.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,Pe(Yn(e))))}))},Rr=new Set([pr.AnimationSubscription,pr.VariantLabel]),Vr=nr("hover"),Lr=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,M,k,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 yn},[])).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 hn?t.set(r,o):pe(r)?t.has(r)||t.set(r,vn(o)):n[r]=o}return n}(S,t.style),T=function(t){for(var e in pr)if(kr[e](t))return e}(t),E=(s=T,c=(u=t).animate,!(void 0!==(f=u.inherit)&&!f||!(void 0===c||c instanceof Hn)||!s||!Rr.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 Xn(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)?Or[b]:void 0,j=L&&H.createElement(L,z({},t,{inherit:E,innerRef:C,values:S,controls:R})),D=(w=t,Cr.some(function(t){return w.hasOwnProperty(t)})&&H.createElement(Sr,z({},t,{values:S,controls:R,innerRef:C}))),F=!!t.drag&&H.createElement(Ar,z({},t,{innerRef:C,controls:R,values:S})),U=(P=R,O=(x=t).hoverActive,M=x.onMouseEnter,k=x.onMouseLeave,H.useMemo(function(){return O?{onMouseEnter:function(t){M&&M(t),O&&P.start(O,{priority:Vr})},onMouseLeave:function(t){k&&k(t),O&&P.clearOverride(Vr)}}:{}},[O,M,k])),X=H.createElement(Er,{base:Y,props:t,handlers:U,innerRef:C,style:A,values:S});return H.createElement(B.Provider,{value:V},j,D,F,X)})},jr=n.reduce(function(t,e){return t[e]=Lr(e),t},{custom:Lr}),Dr=function(){return function(t){return t}};var Fr=vn(0),Ur=vn(0),Xr=vn(0),Yr=vn(0),Hr=!1,Br={scrollX:Fr,scrollY:Ur,scrollXProgress:Xr,scrollYProgress:Yr};t.motion=jr,t.useMotionValue=function(t){return H.useMemo(function(){return vn(t)},[])},t.useTransformedValue=function(t,e,n,r){var o,i,a,u,s=[t],c=Dr;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 Hr||function(){if(Hr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;Fr.set(t),Ur.set(e);var n=document.body.clientWidth-window.innerWidth;Xr.set(0===t?0:t/n);var r=document.body.clientHeight-window.innerHeight;Yr.set(0===e?0:e/r)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),Br},t.useAnimation=function(t,e){var n=H.useMemo(function(){return new Hn},[]);return t&&n.setVariants(t),e&&n.setDefaultTransition(e),H.useEffect(function(){return n.mount(),function(){return n.unmount()}},[]),n},t.useTapGesture=rr,t.usePanGesture=tr,t.useGestures=or,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})}); |
@@ -34,2 +34,3 @@ import { Ref, CSSProperties } from "react"; | ||
export declare type MotionStyle = MakeMotion<CSSProperties> & MotionStyleProperties; | ||
export declare type OnUpdate = (v: Target) => void; | ||
export interface MotionProps extends GestureHandlers, DraggableProps, HoverProps { | ||
@@ -43,2 +44,3 @@ ref?: Ref<Element>; | ||
inherit?: boolean; | ||
onUpdate?: OnUpdate; | ||
onAnimationComplete?: () => void; | ||
@@ -45,0 +47,0 @@ [key: string]: any; |
@@ -17,2 +17,3 @@ import { RefObject } from "react"; | ||
private overrides; | ||
private resolvedOverrides; | ||
private defaultTransition?; | ||
@@ -19,0 +20,0 @@ private children?; |
import { RefObject } from "react"; | ||
import { MotionValue } from "../../value"; | ||
import { OnUpdate } from "motion/types"; | ||
export declare class MotionValuesMap { | ||
private hasMounted; | ||
private styler; | ||
private onUpdate?; | ||
private values; | ||
@@ -14,5 +16,6 @@ private unsubscribers; | ||
bindValueToStyler(key: string, value: MotionValue): void; | ||
setOnUpdate(onUpdate?: OnUpdate): void; | ||
mount(element: Element): void; | ||
unmount(): void; | ||
} | ||
export declare const useMotionValues: (ref: RefObject<Element>) => MotionValuesMap; | ||
export declare const useMotionValues: (ref: RefObject<Element>, onUpdate?: OnUpdate | undefined) => MotionValuesMap; |
@@ -1,2 +0,8 @@ | ||
import { MotionValue } from "./"; | ||
export declare const useTransformedValue: <To extends string[] | number[]>(value: MotionValue<number>, from: number[], to: To) => MotionValue<To[number]>; | ||
import { MotionValue } from "value"; | ||
declare type TransformerOptions = { | ||
clamp: true; | ||
}; | ||
declare type Transformer = (v: any) => any; | ||
export declare function useTransformedValue(value: MotionValue, transform: Transformer): MotionValue; | ||
export declare function useTransformedValue(value: MotionValue<number>, from: number[], to: any[], options?: TransformerOptions): MotionValue; | ||
export {}; |
{ | ||
"name": "framer-motion", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"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
444870
72
9588