forked from julianshapiro/velocity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
velocity.min.js
2 lines (2 loc) · 43.7 KB
/
velocity.min.js
1
2
/*! velocity-animate v2.0.2 (Sunday 4th March 2018, 4:10:40 PM) */
!function(e,t){"function"==typeof define&&define.amd?define("velocity-animate",[],t):"object"==typeof module&&module.exports?module.exports=t():e.Velocity=t()}(this,function(){var e=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t=["version","RegisterEffect","style","patch","timestamp"],n=400,i=/[\d\.-]/,r={fast:200,normal:400,slow:600};function a(e){return!0===e||!1===e}function o(e){return"number"==typeof e}function s(e){return!isNaN(+e)}function l(e){return"string"==typeof e}function u(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return!(!e||!e.nodeType)}function f(e){return e&&o(e.length)&&u(e.velocity)}function g(e){return e&&e!==window&&o(e.length)&&!l(e)&&!u(e)&&!c(e)&&(0===e.length||c(e[0]))}function d(e){if(!e||"object"!=typeof e||e.nodeType||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return!t||t.hasOwnProperty("constructor")&&t.constructor===Object}function p(){return Object.create(null)}function m(e,t,n){e&&Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})}var v,h,y,b,S,w,E,x,C,N,k,_,O,A,P,T,M,q,z,I,L,R,V,j,F,B,H,W,D,$,U,G,Q,J,Z,K,Y,X,ee,te,ne,ie,re,ae=Date.now?Date.now:function(){return(new Date).getTime()};function oe(e,t){for(var n=0;n<e.length;)if(e[n++]===t)return!0;return!1}function se(e){for(var t=0,n=arguments;t<n.length;t++){var i=n[t];if(void 0!==i&&i==i)return i}}function le(e,t){e instanceof Element&&(e.classList?e.classList.remove(t):e.className=(""+e.className).replace(RegExp("(^|\\s)"+t+"(\\s|$)","gi")," "))}function ue(e){var t=e.velocityData;if(t)return t;for(var n=0,i=0,r=re.constructors;i<r.length;i++)e instanceof r[i]&&(n|=1<<i);var a={types:n,count:0,computedStyle:null,cache:p(),queueList:p(),lastAnimationList:p(),lastFinishList:p()};return Object.defineProperty(e,"velocityData",{value:a}),a}function ce(e,t){return o(e)?e:l(e)?r[e.toLowerCase()]||parseFloat(e.replace("ms","").replace("s","000")):null==t?void 0:ce(t)}function fe(e){if(a(e))return e}function ge(e){if(u(e))return e}function de(e,t){if(u(e))return e}function pe(e){var t=ce(e);if(!isNaN(t))return t}function me(e,t){var n=ce(e);if(!isNaN(n)&&n>=0)return n}function ve(e,t,n){var i=re.Easing;if(l(e))return i.Easings[e];if(u(e))return e;if(Array.isArray(e)){if(1===e.length)return i.generateStep(e[0]);if(2===e.length)return i.generateSpringRK4(e[0],e[1],t);if(4===e.length)return i.generateBezier.apply(null,e)||!1}}function he(e){if(!1===e)return 0;var t=parseInt(e,10);return!isNaN(t)&&t>=0?Math.min(t,60):void 0}function ye(e){if(!1===e)return 0;if(!0===e)return!0;var t=parseInt(e,10);return!isNaN(t)&&t>=0?t:void 0}function be(e,t){if(!1===e||l(e))return e}function Se(e){if(!1===e)return 0;if(!0===e)return!0;var t=parseInt(e,10);return!isNaN(t)&&t>=0?t:void 0}function we(e){if(o(e))return e}function Ee(e){if(a(e))return e}function xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,i,r,o,s,v,h,y=re.defaults,b=arguments,S=b[0],w=d(S)&&(S.p||d(S.properties)&&!S.properties.names||l(S.properties)),E=0;c(this)?n=[this]:g(this)?(n=Object.assign([],this),f(this)&&(o=this.velocity.animations)):w?(n=Object.assign([],S.elements||S.e),E++):c(S)?(n=Object.assign([],[S]),E++):g(S)&&(n=Object.assign([],S),E++),n&&(m(n,"velocity",xe.bind(n)),o&&m(n.velocity,"animations",o));var x="reverse"===(i=w?se(S.properties,S.p):b[E++]),C=!x&&l(i),N=w?se(S.options,S.o):b[E];d(N)&&(r=N),Promise&&se(r&&r.promise,y.promise)&&(s=new Promise(function(e,t){h=t,v=function(t){if(f(t)){var n=t&&t.then;n&&(t.then=void 0),e(t),n&&(t.then=n)}else e(t)}}),n&&(m(n,"then",s.then.bind(s)),m(n,"catch",s.catch.bind(s)),s.finally&&m(n,"finally",s.finally.bind(s))));var k=se(r&&r.promiseRejectEmpty,y.promiseRejectEmpty);if(s&&(n||C?i||(k?h("Velocity: No properties supplied, if that is deliberate then pass `promiseRejectEmpty:false` as an option. Aborting."):v()):k?h("Velocity: No elements supplied, if that is deliberate then pass `promiseRejectEmpty:false` as an option. Aborting."):v()),!n&&!C||!i)return s;if(C){for(var _=[],O=s&&{_promise:s,_resolver:v,_rejecter:h};E<b.length;)_.push(b[E++]);var A=i.replace(/\..*$/,""),P=re.Actions[A]||re.Actions.default;if(P){var T=P(_,n,O,i);if(void 0!==T)return T}}else if(d(i)||x){var M={},q=y.sync;if(s&&(m(M,"_promise",s),m(M,"_rejecter",h),m(M,"_resolver",v)),m(M,"_ready",0),m(M,"_started",0),m(M,"_completed",0),m(M,"_total",0),d(r)){M.duration=se(me(r.duration),y.duration),M.delay=se(pe(r.delay),y.delay),M.easing=ve(se(r.easing,y.easing),M.duration)||ve(y.easing,M.duration),M.loop=se(ye(r.loop),y.loop),M.repeat=M.repeatAgain=se(Se(r.repeat),y.repeat),null!=r.speed&&(M.speed=se(we(r.speed),1)),a(r.promise)&&(M.promise=r.promise),M.queue=se(be(r.queue),y.queue),r.mobileHA&&!re.State.isGingerbread&&(M.mobileHA=!0),x||(null!=r.display&&(i.display=r.display),null!=r.visibility&&(i.visibility=r.visibility));var z=ge(r.begin),I=de(r.complete),L=function(e){if(u(e))return e}(r.progress),R=Ee(r.sync);null!=z&&(M.begin=z),null!=I&&(M.complete=I),null!=L&&(M.progress=L),null!=R&&(q=R)}else if(!w){var V=me(b[E]),j=0;if(void 0!==V&&(j++,M.duration=V),!u(b[E+j])){var F=ve(b[E+j],se(M&&me(M.duration),y.duration));void 0!==F&&(j++,M.easing=F)}var B=de(b[E+j]);void 0!==B&&(M.complete=B),M.loop=y.loop,M.repeat=M.repeatAgain=y.repeat}if(x&&!1===M.queue)throw Error("VelocityJS: Cannot reverse a queue:false animation.");var H={_prev:void 0,_next:void 0,_flags:q?32:0,options:M,percentComplete:0,elements:n,ellapsedTime:0,timeStart:0};o=[];for(var W=0;W<n.length;W++){var D=n[W],$=0;if(c(D)){if(x){var U=ue(D).lastAnimationList[M.queue];if(!(i=U&&U.tweens))continue;$|=64&~(64&U._flags)}var G=p(),Q=Object.assign({element:D,tweens:G},H);M._total++,Q._flags|=$,o.push(Q),x?Q.tweens=i:re.expandProperties(Q,i),re.queue(D,Q,M.queue)}}!1===re.State.isTicking&&re.tick(),o&&m(n.velocity,"animations",o)}return n||s}if(function(e){function t(t,n){var i=t[0],r=t[1];l(i)&&u(r)&&(e.Actions[i]&&!Object.prototype.propertyIsEnumerable.call(e.Actions,i)||(!0===n?m(e.Actions,i,r):e.Actions[i]=r))}e.Actions=p(),e.registerAction=t,t(["registerAction",t],!0)}(re||(re={})),function(t){t.registerAction(["default",function(i,r,a,o){if(l(o)&&t.Redirects[o]){var s=d(i[0])?i[0]:{},c=e({},s),f=parseFloat(s.duration),g=parseFloat(s.delay)||0;!0===c.backwards&&(r=r.reverse()),r.forEach(function(e,i){parseFloat(c.stagger)?c.delay=g+parseFloat(c.stagger)*i:u(c.stagger)&&(c.delay=g+c.stagger.call(e,i,r.length)),c.drag&&(c.duration=f||(/^(callout|transition)/.test(o)?1e3:n),c.duration=Math.max(c.duration*(c.backwards?1-i/r.length:(i+1)/r.length),.75*c.duration,200)),t.Redirects[o].call(e,e,c,i,r.length,r,a&&a._resolver)})}else{var p="Velocity: First argument ("+o+") was not a property map, a known action, or a registered redirect. Aborting.";a?a._rejecter(Error(p)):window}}],!0)}(re||(re={})),function(e){function t(t,n,i){if(e.validateTweens(t),void 0===n||n===se(t.queue,t.options.queue,i)){if(!(4&t._flags)){var r=t.options;0==r._started++&&(r._first=t,r.begin&&(e.callBegin(t),r.begin=void 0)),t._flags|=4}for(var a in t.tweens){var o=t.tweens[a],s=o.pattern,l="",u=0;if(s)for(;u<s.length;u++){var c=o.end[u];l+=null==c?s[u]:c}e.CSS.setPropertyValue(t.element,a,l,o.fn)}e.completeCall(t)}}e.registerAction(["finish",function(n,i,r){var a=be(n[0],!0),o=e.defaults.queue,s=!0===n[void 0===a?0:1];if(f(i)&&i.velocity.animations)for(var l=0,u=i.velocity.animations;l<u.length;l++)t(u[l],a,o);else{for(var c=e.State.first,g=void 0;c=e.State.firstNew;)e.validateTweens(c);for(c=e.State.first;c&&(s||c!==e.State.firstNew);c=g||e.State.firstNew)g=c._next,i&&!oe(i,c.element)||t(c,a,o)}r&&(f(i)&&i.velocity.animations&&i.then?i.then(r._resolver):r._resolver(i))}],!0)}(re||(re={})),function(e){var t={isExpanded:1,isReady:2,isStarted:4,isStopped:8,isPaused:16,isSync:32,isReverse:64};e.registerAction(["option",function(n,i,r,a){var o,s,l=n[0],u=a.indexOf(".")>=0?a.replace(/^.*\./,""):void 0,c="false"!==u&&be(u,!0),g=n[1];if(!l)return null;if(f(i)&&i.velocity.animations)o=i.velocity.animations;else{o=[];for(var d=e.State.first;d;d=d._next)i.indexOf(d.element)>=0&&se(d.queue,d.options.queue)===c&&o.push(d);if(i.length>1&&o.length>1){for(var p=1,m=o[0].options;p<o.length;)if(o[p++].options!==m){m=null;break}m&&(o=[o[0]])}}if(void 0===g){var v=[],h=t[l];for(p=0;p<o.length;p++)v.push(void 0===h?se(o[p][l],o[p].options[l]):0==(o[p]._flags&h));return 1===i.length&&1===o.length?v[0]:v}switch(l){case"cache":g=fe(g);break;case"begin":g=ge(g);break;case"complete":g=de(g);break;case"delay":g=pe(g);break;case"duration":g=me(g);break;case"fpsLimit":g=he(g);break;case"loop":g=ye(g);break;case"percentComplete":s=!0,g=parseFloat(g);break;case"repeat":case"repeatAgain":g=Se(g);break;default:if("_"!==l[0]){var y=parseFloat(g);g==y&&(g=y);break}case"queue":case"promise":case"promiseRejectEmpty":case"easing":case"started":return}if(void 0===g||g!=g)return null;for(p=0;p<o.length;p++){var b=o[p];s?b.timeStart=e.lastTick-se(b.duration,b.options.duration,e.defaults.duration)*g:b[l]=g}r&&(f(i)&&i.velocity.animations&&i.then?i.then(r._resolver):r._resolver(i))}],!0)}(re||(re={})),function(e){function t(e,t,n,i){void 0!==t&&t!==se(e.queue,e.options.queue,n)||(i?e._flags|=16:e._flags&=-17)}function n(n,i,r,a){var o=0===a.indexOf("pause"),s="false"!==(a.indexOf(".")>=0?a.replace(/^.*\./,""):void 0)&&be(n[0]),l=e.defaults.queue;if(f(i)&&i.velocity.animations)for(var u=0,c=i.velocity.animations;u<c.length;u++)t(c[u],s,l,o);else for(var g=e.State.first;g;)i&&!oe(i,g.element)||t(g,s,l,o),g=g._next;r&&(f(i)&&i.velocity.animations&&i.then?i.then(r._resolver):r._resolver(i))}e.registerAction(["pause",n],!0),e.registerAction(["resume",n],!0)}(re||(re={})),(re||(re={})).registerAction(["reverse",function(e,t,n,i){throw new SyntaxError("VelocityJS: The 'reverse' action is private.")}],!0),function(e){function t(t,n,i){e.validateTweens(t),void 0!==n&&n!==se(t.queue,t.options.queue,i)||(t._flags|=8,e.completeCall(t))}e.registerAction(["stop",function(n,i,r,a){var o=be(n[0],!0),s=e.defaults.queue,l=!0===n[void 0===o?0:1];if(f(i)&&i.velocity.animations)for(var u=0,c=i.velocity.animations;u<c.length;u++)t(c[u],o,s);else{for(var g=e.State.first,d=void 0;g=e.State.firstNew;)e.validateTweens(g);for(g=e.State.first;g&&(l||g!==e.State.firstNew);g=d||e.State.firstNew)d=g._next,i&&!oe(i,g.element)||t(g,o,s)}r&&(f(i)&&i.velocity.animations&&i.then?i.then(r._resolver):r._resolver(i))}],!0)}(re||(re={})),function(e){function t(t,n,i,r){var a,s=t[0],u=t[1];if(!s)return null;if(void 0===u&&!d(s)){if(1===n.length)return e.CSS.fixColors(e.CSS.getPropertyValue(n[0],s));for(var c=[],g=0;g<n.length;g++)c.push(e.CSS.fixColors(e.CSS.getPropertyValue(n[g],s)));return c}if(d(s))for(var p in s)for(g=0;g<n.length;g++){var m=s[p];l(m)||o(m)?e.CSS.setPropertyValue(n[g],p,s[p]):a=(a?a+", ":"")+"Cannot set a property '"+p+"' to an unknown type: "+typeof m}else if(l(u)||o(u))for(g=0;g<n.length;g++)e.CSS.setPropertyValue(n[g],s,u+"");else a="Cannot set a property '"+s+"' to an unknown type: "+typeof u;i&&(a?i._rejecter(a):f(n)&&n.velocity.animations&&n.then?n.then(i._resolver):i._resolver(n))}e.style=function(e,n,i){return t([n,i],e)},e.registerAction(["style",t],!0)}(re||(re={})),function(e){function t(t,n,i,r){var a;if(n){if(1!==n.length)throw Error("VelocityJS: Cannot tween more than one element!")}else{if(!t.length)return null;n=[document.body],a=!0}var s,u=t[0],c={elements:n,element:n[0],queue:!1,options:{duration:1e3},tweens:null},f={},g=t[1],p=t[2],m=0;if(l(t[1])?(s=!0,(h={})[t[1]]=t[2],g=h,p=t[3]):Array.isArray(t[1])&&(s=!0,g={tween:t[1]},p=t[2]),!o(u)||u<0||u>1)throw Error("VelocityJS: Must tween a percentage from 0 to 1!");if(!d(g))throw Error("VelocityJS: Cannot tween an invalid property!");if(a)for(var v in g)if(g.hasOwnProperty(v)&&(!Array.isArray(g[v])||g[v].length<2))throw Error("VelocityJS: When not supplying an element you must force-feed values: "+v);var h,y=ve(se(p,e.defaults.easing),1e3);for(var v in e.expandProperties(c,g),c.tweens){var b=c.tweens[v],S=b.easing||y,w=b.pattern,E="";if(m++,w)for(var x=0;x<w.length;x++){var C=b.start[x];if(null==C)E+=w[x];else{var N=S(u,C,b.end[x],v);E+=!0===w[x]?Math.round(N):N}}f[v]=E}if(s&&1===m)for(var v in f)if(f.hasOwnProperty(v))return f[v];return f}e.tween=function(e,n,i,r,a){return t(arguments,e)},e.registerAction(["tween",t],!0)}(re||(re={})),v=re||(re={}),(h=v.State||(v.State={})).isClient=window&&window===window.window,h.isMobile=h.isClient&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),h.isAndroid=h.isClient&&/Android/i.test(navigator.userAgent),h.isGingerbread=h.isClient&&/Android 2\.3\.[3-7]/i.test(navigator.userAgent),h.isChrome=h.isClient&&window.chrome,h.isFirefox=h.isClient&&/Firefox/i.test(navigator.userAgent),h.prefixElement=h.isClient&&document.createElement("div"),h.windowScrollAnchor=h.isClient&&void 0!==window.pageYOffset,h.scrollAnchor=h.windowScrollAnchor?window:!h.isClient||document.documentElement||document.body.parentNode||document.body,h.scrollPropertyLeft=h.windowScrollAnchor?"pageXOffset":"scrollLeft",h.scrollPropertyTop=h.windowScrollAnchor?"pageYOffset":"scrollTop",h.className="velocity-animating",h.isTicking=!1,S=re||(re={}),y=S.CSS||(S.CSS={}),b=p(),y.camelCase=function(e){var t=b[e];return t||(b[e]=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}))},function(e){function t(e,t,n,i){return"rgba("+parseInt(t,16)+","+parseInt(n,16)+","+parseInt(i,16)+",1)"}e.ColorNames=p();var n=/#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})/gi,i=/#([a-f\d])([a-f\d])([a-f\d])/gi,r=/(rgba?\(\s*)?(\b[a-z]+\b)/g,a=/rgb(a?)\(([^\)]+)\)/gi,o=/\s+/g;e.fixColors=function(s){return s.replace(n,t).replace(i,function(e,n,i,r){return t(0,n+n,i+i,r+r)}).replace(r,function(t,n,i){return e.ColorNames[i]?(n||"rgba(")+e.ColorNames[i]+(n?"":",1)"):t}).replace(a,function(e,t,n){return"rgba("+n.replace(o,"")+(t?"":",1")+")"})}}((w=re||(re={})).CSS||(w.CSS={})),function(e){var t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e.ColorNames[n]=Math.floor(i/65536)+","+Math.floor(i/256%256)+","+i%256}}((E=re||(re={})).CSS||(E.CSS={})),function(e){function t(e,t,n,i){var r,a=ue(e);return x.NoCacheNormalizations.has(t)&&(i=!0),!i&&a&&null!=a.cache[t]?r=a.cache[t]:(n=n||x.getNormalization(e,t))&&(r=n(e),a&&(a.cache[t]=r)),r}e.computePropertyValue=function(n,i){var r=ue(n),a=r&&r.computedStyle?r.computedStyle:window.getComputedStyle(n,null),o=0;if(r&&!r.computedStyle&&(r.computedStyle=a),"width"===i||"height"===i){var s="none"===t(n,"display");return s&&e.setPropertyValue(n,"display","auto"),o=x.augmentDimension(n,i,!0),s&&e.setPropertyValue(n,"display","none"),o+""}if((o=a[i])||(o=n.style[i]),"auto"===o)switch(i){case"top":case"left":var l=!0;case"right":case"bottom":var u=t(n,"position");if("fixed"===u||l&&"absolute"===u){o=n.getBoundingClientRect[i]+"px";break}default:o="0px"}return o?o+"":""},e.getPropertyValue=t}((x=re||(re={})).CSS||(x.CSS={})),k=re||(re={}),C=k.CSS||(k.CSS={}),N=["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],C.getUnit=function(e,t){if(e[t=t||0]&&" "!==e[t])for(var n=0,i=N;n<i.length;n++){var r=i[n],a=0;do{if(a>=r.length)return r;if(r[a]!==e[t+a])break}while(++a)}return""},((_=re||(re={})).CSS||(_.CSS={})).setPropertyValue=function(e,t,n,i){var r=ue(e);l(n)&&"c"===n[0]&&"a"===n[1]&&"l"===n[2]&&"c"===n[3]&&"("===n[4]&&"0"===n[5]&&" "===n[5]&&(n=n.replace(/^calc\(0[^\d]* \+ ([^\(\)]+)\)$/,"$1")),r&&r.cache[t]!==n&&(r.cache[t]=n||void 0,(i=i||_.getNormalization(e,t))&&i(e,n))},function(e){function t(t){var n=t[0],i=t[1];l(n)&&u(i)&&(e.Easings[n]||(e.Easings[n]=i))}e.Easings=p(),e.registerEasing=t,O.registerAction(["registerEasing",t],!0),t(["linear",function(e,t,n){return t+e*(n-t)}]),t(["swing",function(e,t,n){return t+(.5-Math.cos(e*Math.PI)/2)*(n-t)}]),t(["spring",function(e,t,n){return t+(1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e))*(n-t)}])}((O=re||(re={})).Easing||(O.Easing={})),function(e){function t(t,n){e.registerEasing([t,function(e,t,i){return 0===e?t:1===e?i:Math.pow(e,2)*((n+1)*e-n)*(i-t)}])}function n(t,n){e.registerEasing([t,function(e,t,i){return 0===e?t:1===e?i:(Math.pow(--e,2)*((n+1)*e+n)+1)*(i-t)}])}function i(t,n){n*=1.525,e.registerEasing([t,function(e,t,i){return 0===e?t:1===e?i:.5*((e*=2)<1?Math.pow(e,2)*((n+1)*e-n):Math.pow(e-=2,2)*((n+1)*e+n)+2)*(i-t)}])}e.registerBackIn=t,e.registerBackOut=n,e.registerBackInOut=i,t("easeInBack",1.7),n("easeOutBack",1.7),i("easeInOutBack",1.7)}((A=re||(re={})).Easing||(A.Easing={})),function(e){function t(e){return Math.min(Math.max(e,0),1)}function n(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function r(e){return 3*e}function a(e,t,a){return((n(t,a)*e+i(t,a))*e+r(t))*e}function o(e,t,a){return 3*n(t,a)*e*e+2*i(t,a)*e+r(t)}function s(e,n,i,r){var s=4,l=.001,u=1e-7,c=10,f=11,g=1/(f-1),d="Float32Array"in window;if(4===arguments.length){for(var p=0;p<4;++p)if("number"!=typeof arguments[p]||isNaN(arguments[p])||!isFinite(arguments[p]))return;e=t(e),i=t(i);var m=d?new Float32Array(f):Array(f),v=!1,h=function(t,o,s,l){return v||S(),0===t?o:1===t?s:e===n&&i===r?o+t*(s-o):o+a(b(t),n,r)*(s-o)};h.getControlPoints=function(){return[{x:e,y:n},{x:i,y:r}]};var y="generateBezier("+[e,n,i,r]+")";return h.toString=function(){return y},h}function b(t){for(var n=0,r=1,d=f-1;r!==d&&m[r]<=t;++r)n+=g;var p=n+(t-m[--r])/(m[r+1]-m[r])*g,v=o(p,e,i);return v>=l?function(t,n){for(var r=0;r<s;++r){var l=o(n,e,i);if(0===l)return n;n-=(a(n,e,i)-t)/l}return n}(t,p):0===v?p:function(t,n,r){var o,s,l=0;do{(o=a(s=n+(r-n)/2,e,i)-t)>0?r=s:n=s}while(Math.abs(o)>u&&++l<c);return s}(t,n,n+g)}function S(){v=!0,e===n&&i===r||function(){for(var t=0;t<f;++t)m[t]=a(t*g,e,i)}()}}e.generateBezier=s;var l=s(.42,0,1,1),u=s(0,0,.58,1),c=s(.42,0,.58,1);e.registerEasing(["ease",s(.25,.1,.25,1)]),e.registerEasing(["easeIn",l]),e.registerEasing(["ease-in",l]),e.registerEasing(["easeOut",u]),e.registerEasing(["ease-out",u]),e.registerEasing(["easeInOut",c]),e.registerEasing(["ease-in-out",c]),e.registerEasing(["easeInSine",s(.47,0,.745,.715)]),e.registerEasing(["easeOutSine",s(.39,.575,.565,1)]),e.registerEasing(["easeInOutSine",s(.445,.05,.55,.95)]),e.registerEasing(["easeInQuad",s(.55,.085,.68,.53)]),e.registerEasing(["easeOutQuad",s(.25,.46,.45,.94)]),e.registerEasing(["easeInOutQuad",s(.455,.03,.515,.955)]),e.registerEasing(["easeInCubic",s(.55,.055,.675,.19)]),e.registerEasing(["easeOutCubic",s(.215,.61,.355,1)]),e.registerEasing(["easeInOutCubic",s(.645,.045,.355,1)]),e.registerEasing(["easeInQuart",s(.895,.03,.685,.22)]),e.registerEasing(["easeOutQuart",s(.165,.84,.44,1)]),e.registerEasing(["easeInOutQuart",s(.77,0,.175,1)]),e.registerEasing(["easeInQuint",s(.755,.05,.855,.06)]),e.registerEasing(["easeOutQuint",s(.23,1,.32,1)]),e.registerEasing(["easeInOutQuint",s(.86,0,.07,1)]),e.registerEasing(["easeInExpo",s(.95,.05,.795,.035)]),e.registerEasing(["easeOutExpo",s(.19,1,.22,1)]),e.registerEasing(["easeInOutExpo",s(1,0,0,1)]),e.registerEasing(["easeInCirc",s(.6,.04,.98,.335)]),e.registerEasing(["easeOutCirc",s(.075,.82,.165,1)]),e.registerEasing(["easeInOutCirc",s(.785,.135,.15,.86)])}((P=re||(re={})).Easing||(P.Easing={})),function(e){function t(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function n(e){return 1-t(1-e)}e.registerEasing(["easeInBounce",function(e,t,i){return 0===e?t:1===e?i:n(e)*(i-t)}]),e.registerEasing(["easeOutBounce",function(e,n,i){return 0===e?n:1===e?i:t(e)*(i-n)}]),e.registerEasing(["easeInOutBounce",function(e,i,r){return 0===e?i:1===e?r:(e<.5?.5*n(2*e):.5*t(2*e-1)+.5)*(r-i)}])}((T=re||(re={})).Easing||(T.Easing={})),function(e){var t=2*Math.PI;function n(n,i,r){e.registerEasing([n,function(e,n,a){return 0===e?n:1===e?a:-i*Math.pow(2,10*(e-=1))*Math.sin((e-r/t*Math.asin(1/i))*t/r)*(a-n)}])}function i(n,i,r){e.registerEasing([n,function(e,n,a){return 0===e?n:1===e?a:(i*Math.pow(2,-10*e)*Math.sin((e-r/t*Math.asin(1/i))*t/r)+1)*(a-n)}])}function r(n,i,r){e.registerEasing([n,function(e,n,a){if(0===e)return n;if(1===e)return a;var o=r/t*Math.asin(1/i);return((e=2*e-1)<0?i*Math.pow(2,10*e)*Math.sin((e-o)*t/r)*-.5:i*Math.pow(2,-10*e)*Math.sin((e-o)*t/r)*.5+1)*(a-n)}])}e.registerElasticIn=n,e.registerElasticOut=i,e.registerElasticInOut=r,n("easeInElastic",1,.3),i("easeOutElastic",1,.3),r("easeInOutElastic",1,.3*1.5)}((M=re||(re={})).Easing||(M.Easing={})),q=re||(re={}),function(e){function t(e){return-e.tension*e.x-e.friction*e.v}function n(e,n,i){var r={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}(q.Easing||(q.Easing={})).generateSpringRK4=function e(i,r,a){var o,s,l,u,c,f,g,d,p,m={x:-1,v:0,tension:parseFloat(i)||500,friction:parseFloat(r)||20},v=[0],h=0,y=null!=a;for(o=y?(h=e(m.tension,m.friction))/a*.016:.016;u=o,c={dx:(l=s||m).v,dv:t(l)},f=n(l,.5*u,c),g=n(l,.5*u,f),d=n(l,u,g),p=1/6*(c.dv+2*(f.dv+g.dv)+d.dv),l.x=l.x+1/6*(c.dx+2*(f.dx+g.dx)+d.dx)*u,l.v=l.v+p*u,v.push(1+(s=l).x),h+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return y?function(e,t,n){return 0===e?t:1===e?n:t+v[e*(v.length-1)|0]*(n-t)}:h}}(),L=re||(re={}),z=L.Easing||(L.Easing={}),I={},z.generateStep=function(e){var t=I[e];return t||(I[e]=function(t,n,i){return 0===t?n:1===t?i:n+Math.round(t*e)*(1/e)*(i-n)})},R=re||(re={}),(V=R.Easing||(R.Easing={})).registerEasing(["at-start",function(e,t,n){return 0===e?t:n}]),V.registerEasing(["during",function(e,t,n){return 0===e||1===e?t:n}]),V.registerEasing(["at-end",function(e,t,n){return 1===e?n:t}]),function(e){function t(t){var n=t[0],i=t[1],r=t[2];if(!l(n)&&n instanceof Object)if(l(i))if(u(r)){var a=e.constructors.indexOf(n),o=3;if(a<0&&(e.MaxType=a=e.constructors.push(n)-1,e.Normalizations[a]=p()),e.Normalizations[a][i]=r,l(t[o])){var s=t[o++],c=e.NormalizationUnits[s];c||(c=e.NormalizationUnits[s]=[]),c.push(r)}!1===t[o]&&e.NoCacheNormalizations.add(i)}else;else;else;}function n(t){var n=t[1],i=e.constructors.indexOf(t[0]);return!!e.Normalizations[i][n]}e.MaxType=-1,e.Normalizations=[],e.NormalizationUnits=p(),e.NoCacheNormalizations=new Set,e.constructors=[],e.registerNormalization=t,e.hasNormalization=n,e.getNormalizationUnit=function(t){for(var n in e.NormalizationUnits)if(oe(e.NormalizationUnits[n],t))return n;return""},e.getNormalization=function(t,n){for(var i,r=ue(t),a=e.MaxType,o=r.types;!i&&a>=0;a--)o&1<<a&&(i=e.Normalizations[a][n]);return i},e.registerAction(["registerNormalization",t]),e.registerAction(["hasNormalization",n])}(re||(re={})),function(e){function t(e){return function(t,n){if(void 0===n)return t.getAttribute(e);t.setAttribute(e,n)}}var n=document.createElement("div"),i=/^SVG(.*)Element$/,r=/Element$/;Object.getOwnPropertyNames(window).forEach(function(e){var a=i.exec(e);if(a&&"SVG"!==a[1])try{var o=a[1]?document.createElementNS("http://www.w3.org/2000/svg",(a[1]||"svg").toLowerCase()):document.createElement("svg"),s=o.constructor;for(var c in o){var f=o[c];!l(c)||"o"===c[0]&&"n"===c[1]||c===c.toUpperCase()||r.test(c)||c in n||u(f)||j.registerNormalization([s,c,t(c)])}}catch(e){}})}((j=re||(re={})).CSS||(j.CSS={})),function(e){function t(e){return function(t,n){if(void 0===n)try{return t.getBBox()[e]+"px"}catch(e){return"0px"}t.setAttribute(e,n)}}F.registerNormalization([SVGElement,"width",t("width")]),F.registerNormalization([SVGElement,"height",t("height")])}((F=re||(re={})).CSS||(F.CSS={})),function(e){function t(t,n,i){if("border-box"===(""+e.CSS.getPropertyValue(t,"boxSizing")).toLowerCase()===i){var r="width"===n?["Left","Right"]:["Top","Bottom"],a=["padding"+r[0],"padding"+r[1],"border"+r[0]+"Width","border"+r[1]+"Width"],o=void 0,s=void 0,l=0;for(o=0;o<a.length;o++)s=parseFloat(e.CSS.getPropertyValue(t,a[o])),isNaN(s)||(l+=s);return i?-l:l}return 0}function n(n,i){return function(r,a){if(void 0===a)return t(r,n,i)+"px";e.CSS.setPropertyValue(r,n,parseFloat(a)-t(r,n,i)+"px")}}e.augmentDimension=t,e.registerNormalization([Element,"innerWidth",n("width",!0)]),e.registerNormalization([Element,"innerHeight",n("height",!0)]),e.registerNormalization([Element,"outerWidth",n("width",!1)]),e.registerNormalization([Element,"outerHeight",n("height",!1)])}(re||(re={})),function(e){e.inlineRx=/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|let|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i,e.listItemRx=/^(li)$/i,e.tableRowRx=/^(tr)$/i,e.tableRx=/^(table)$/i,e.tableRowGroupRx=/^(tbody)$/i,e.registerNormalization([Element,"display",function(t,n){var i=t.style;if(void 0===n)return e.CSS.computePropertyValue(t,"display");if("auto"===n){var r=t&&t.nodeName,a=ue(t);n=e.inlineRx.test(r)?"inline":e.listItemRx.test(r)?"list-item":e.tableRowRx.test(r)?"table-row":e.tableRx.test(r)?"table":e.tableRowGroupRx.test(r)?"table-row-group":"block",a.cache.display=n}i.display=n}])}(re||(re={})),function(e){function t(t,n){return function(i,r){if(null==r)return e.CSS.getPropertyValue(i,"client"+t,null,!0),e.CSS.getPropertyValue(i,"scroll"+t,null,!0),e.CSS.getPropertyValue(i,"scroll"+n,null,!0),i["scroll"+n]+"px";var a=parseFloat(r);switch(r.replace(a+"","")){case"":case"px":i["scroll"+n]=a;break;case"%":var o=parseFloat(e.CSS.getPropertyValue(i,"client"+t)),s=parseFloat(e.CSS.getPropertyValue(i,"scroll"+t));i["scroll"+n]=Math.max(0,s-o)*a/100}}}e.registerNormalization([HTMLElement,"scroll",t("Height","Top"),!1]),e.registerNormalization([HTMLElement,"scrollTop",t("Height","Top"),!1]),e.registerNormalization([HTMLElement,"scrollLeft",t("Width","Left"),!1]),e.registerNormalization([HTMLElement,"scrollWidth",function(e,t){if(null==t)return e.scrollWidth+"px"}]),e.registerNormalization([HTMLElement,"clientWidth",function(e,t){if(null==t)return e.clientWidth+"px"}]),e.registerNormalization([HTMLElement,"scrollHeight",function(e,t){if(null==t)return e.scrollHeight+"px"}]),e.registerNormalization([HTMLElement,"clientHeight",function(e,t){if(null==t)return e.clientHeight+"px"}])}(re||(re={})),function(e){var t=/^(b(lockSize|o(rder(Bottom(LeftRadius|RightRadius|Width)|Image(Outset|Width)|LeftWidth|R(adius|ightWidth)|Spacing|Top(LeftRadius|RightRadius|Width)|Width)|ttom))|column(Gap|RuleWidth|Width)|f(lexBasis|ontSize)|grid(ColumnGap|Gap|RowGap)|height|inlineSize|le(ft|tterSpacing)|m(a(rgin(Bottom|Left|Right|Top)|x(BlockSize|Height|InlineSize|Width))|in(BlockSize|Height|InlineSize|Width))|o(bjectPosition|utline(Offset|Width))|p(adding(Bottom|Left|Right|Top)|erspective)|right|s(hapeMargin|troke(Dashoffset|Width))|t(extIndent|op|ransformOrigin)|w(idth|ordSpacing))$/;function n(t,n){return function(i,r){if(void 0===r)return e.CSS.computePropertyValue(i,t)||e.CSS.computePropertyValue(i,n);i.style[t]=i.style[n]=r}}function i(t){return function(n,i){if(void 0===i)return e.CSS.computePropertyValue(n,t);n.style[t]=i}}var r=/^(webkit|moz|ms|o)[A-Z]/,a=e.State.prefixElement;for(var o in a.style)if(r.test(o)){var s=o.replace(/^[a-z]+([A-Z])/,function(e,t){return t.toLowerCase()}),l=t.test(s)?"px":void 0;e.registerNormalization([Element,s,n(o,s),l])}else if(!e.hasNormalization([Element,o])){l=t.test(o)?"px":void 0;e.registerNormalization([Element,o,i(o),l])}}(re||(re={})),function(e){(re||(re={})).registerNormalization([Element,"tween",function(e,t){if(void 0===t)return""}])}(),function(e){e.completeCall=function(t){var n=t.options,i=se(t.queue,n.queue),r=se(t.loop,n.loop,e.defaults.loop),a=se(t.repeat,n.repeat,e.defaults.repeat),o=8&t._flags;if(o||!r&&!a){var s=t.element,l=ue(s);if(--l.count||o||le(s,e.State.className),n&&++n._completed===n._total){!o&&n.complete&&(function(e){try{var t=e.elements;e.options.complete.call(t,t,e)}catch(e){setTimeout(function(){throw e},1)}}(t),n.complete=null);var u=n._resolver;u&&(u(t.elements),delete n._resolver)}!1!==i&&(o||(l.lastFinishList[i]=t.timeStart+se(t.duration,n.duration,e.defaults.duration)),e.dequeue(s,i)),e.freeAnimationCall(t)}else a&&!0!==a?t.repeat=a-1:r&&!0!==r&&(t.loop=r-1,t.repeat=se(t.repeatAgain,n.repeatAgain,e.defaults.repeatAgain)),r&&(t._flags^=64),!1!==i&&(ue(t.element).lastFinishList[i]=t.timeStart+se(t.duration,n.duration,e.defaults.duration)),t.timeStart=t.ellapsedTime=t.percentComplete=0,t._flags&=-5}}(re||(re={})),(re||(re={})).debug=!1,(B=re||(re={})).defaults={mobileHA:!0},Object.defineProperties(B.defaults,{reset:{enumerable:!0,value:function(){H=!0,W=void 0,D=void 0,$=0,U=n,G=ve("swing",n),Q=60,J=0,Z=980/60,K=!0,Y=!0,X="",ee=0,te=1,ne=!0}},cache:{enumerable:!0,get:function(){return H},set:function(e){void 0!==(e=fe(e))&&(H=e)}},begin:{enumerable:!0,get:function(){return W},set:function(e){void 0!==(e=ge(e))&&(W=e)}},complete:{enumerable:!0,get:function(){return D},set:function(e){void 0!==(e=de(e))&&(D=e)}},delay:{enumerable:!0,get:function(){return $},set:function(e){void 0!==(e=pe(e))&&($=e)}},duration:{enumerable:!0,get:function(){return U},set:function(e){void 0!==(e=me(e))&&(U=e)}},easing:{enumerable:!0,get:function(){return G},set:function(e){void 0!==(e=ve(e,U))&&(G=e)}},fpsLimit:{enumerable:!0,get:function(){return Q},set:function(e){void 0!==(e=he(e))&&(Q=e,Z=980/e)}},loop:{enumerable:!0,get:function(){return J},set:function(e){void 0!==(e=ye(e))&&(J=e)}},minFrameTime:{enumerable:!0,get:function(){return Z}},promise:{enumerable:!0,get:function(){return K},set:function(e){void 0!==(e=function(e){if(a(e))return e}(e))&&(K=e)}},promiseRejectEmpty:{enumerable:!0,get:function(){return Y},set:function(e){void 0!==(e=function(e){if(a(e))return e}(e))&&(Y=e)}},queue:{enumerable:!0,get:function(){return X},set:function(e){void 0!==(e=be(e))&&(X=e)}},repeat:{enumerable:!0,get:function(){return ee},set:function(e){void 0!==(e=Se(e))&&(ee=e)}},speed:{enumerable:!0,get:function(){return te},set:function(e){void 0!==(e=we(e))&&(te=e)}},sync:{enumerable:!0,get:function(){return ne},set:function(e){void 0!==(e=Ee(e))&&(ne=e)}}}),B.defaults.reset(),(re||(re={})).mock=!1,function(e){(re||(re={})).patch=function(e,t){try{m(e,(t?"V":"v")+"elocity",xe)}catch(e){}}}(),function(e){function t(t){var n=e.State.last;t._prev=n,t._next=void 0,n?n._next=t:e.State.first=t,e.State.last=t,e.State.firstNew||(e.State.firstNew=t);var i,r,a=t.element;ue(a).count++||(r=e.State.className,(i=a)instanceof Element&&(i.classList?i.classList.add(r):(le(i,r),i.className+=(i.className.length?" ":"")+r)))}e.queue=function(e,n,i){var r=ue(e);if(!1!==i&&(r.lastAnimationList[i]=n),!1===i)t(n);else{l(i)||(i="");var a=r.queueList[i];if(a){for(;a._next;)a=a._next;a._next=n,n._prev=a}else null===a?r.queueList[i]=n:(r.queueList[i]=null,t(n))}},e.dequeue=function(e,n,i){if(!1!==n){l(n)||(n="");var r=ue(e),a=r.queueList[n];return a?(r.queueList[n]=a._next||null,i||t(a)):null===a&&delete r.queueList[n],a}},e.freeAnimationCall=function(t){var n=t._next,i=t._prev,r=null==t.queue?t.options.queue:t.queue;e.State.firstNew===t&&(e.State.firstNew=n),e.State.first===t?e.State.first=n:i&&(i._next=n),e.State.last===t?e.State.last=i:n&&(n._prev=i),r&&ue(t.element)&&(t._next=t._prev=void 0)}}(re||(re={})),(ie=re||(re={})).Redirects={},["Down","Up"].forEach(function(t){ie.Redirects["slide"+t]=function(n,i,r,a,o,s){var l=e({},i),u=l.begin,c=l.complete,f={},g={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};if(void 0===l.display){var d=ie.inlineRx.test(n.nodeName.toLowerCase());l.display="Down"===t?d?"inline-block":"block":"none"}l.begin=function(){for(var e in 0===r&&u&&u.call(o,o),g)if(g.hasOwnProperty(e)){f[e]=n.style[e];var i=ie.CSS.getPropertyValue(n,e);g[e]="Down"===t?[i,0]:[0,i]}f.overflow=n.style.overflow,n.style.overflow="hidden"},l.complete=function(){for(var e in f)f.hasOwnProperty(e)&&(n.style[e]=f[e]);r===a-1&&(c&&c.call(o,o),s&&s(o))},xe(n,g,l)}}),["In","Out"].forEach(function(t){ie.Redirects["fade"+t]=function(n,i,r,a,o,s){var l=e({},i),u=l.complete,c={opacity:"In"===t?1:0};0!==r&&(l.begin=null),l.complete=r!==a-1?null:function(){u&&u.call(o,o),s&&s.resolver(o)},void 0===l.display&&(l.display="In"===t?"auto":"none"),xe(this,c,l)}}),function(e){e.RegisterEffect=function(t,n){return e.Redirects[t]=function(i,r,a,o,s,l,u){var c=a===o-1,f=0;u=u||n.loop,n.defaultDuration="function"==typeof n.defaultDuration?n.defaultDuration.call(s,s):parseFloat(n.defaultDuration);for(var g=0;g<n.calls.length;g++){var d=n.calls[g][1];"number"==typeof d&&(f+=d)}var p=f>=1?0:n.calls.length?(1-f)/n.calls.length:1,m=function(f){var g=n.calls[f],d=g[0],m=1e3,v=g[1],h=g[2]||{},y={};if(void 0!==r.duration?m=r.duration:void 0!==n.defaultDuration&&(m=n.defaultDuration),y.duration=m*("number"==typeof v?v:p),y.queue=r.queue||"",y.easing=h.easing||"ease",y.delay=parseFloat(h.delay)||0,y.loop=!n.loop&&h.loop,y.cache=h.cache||!0,0===f&&(y.delay+=parseFloat(r.delay)||0,0===a&&(y.begin=function(){r.begin&&r.begin.call(s,s);var n,i,a,o,l,u,c=t.match(/(In|Out)$/);c&&"In"===c[0]&&void 0!==d.opacity&&(s.nodeType?[s]:s).forEach(function(t){e.CSS.setPropertyValue(t,"opacity",0)}),r.animateParentHeight&&c&&(i=c[0],a=m+y.delay,o=r.stagger,u=0,((n=s).nodeType?[n]:n).forEach(function(t,n){o&&(a+=n*o),l=t.parentNode;var i=["height","paddingTop","paddingBottom","marginTop","marginBottom"];"border-box"===(""+e.CSS.getPropertyValue(t,"boxSizing")).toLowerCase()&&(i=["height"]),i.forEach(function(n){u+=parseFloat(e.CSS.getPropertyValue(t,n))})}),xe(l,{height:("In"===i?"+":"-")+"="+u},{queue:!1,easing:"ease-in-out",duration:a*("In"===i?.6:1)}))}),r.visibility&&"hidden"!==r.visibility&&(y.visibility=r.visibility)),f===n.calls.length-1){var b=function(){void 0!==r.display&&"none"!==r.display||!/Out$/.test(t)||(s.nodeType?[s]:s).forEach(function(t){e.CSS.setPropertyValue(t,"display","none")}),r.complete&&r.complete.call(s,s),l&&l(s||i)};y.complete=function(){if(u&&e.Redirects[t](i,r,a,o,s,l,!0===u||Math.max(0,u-1)),n.reset){for(var f in n.reset)n.reset.hasOwnProperty(f);var g={duration:0,queue:!1};c&&(g.complete=b),xe(i,n.reset,g)}else c&&b()},"hidden"===r.visibility&&(y.visibility=r.visibility)}xe(i,d,y)};for(g=0;g<n.calls.length;g++)m(g)},xe}}(re||(re={})),function(t){(re||(re={})).RunSequence=function(t){var n=function e(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r,a=Object(t),o=Object.prototype.hasOwnProperty;r=n.shift();)if(null!=r)for(var s in r)if(o.call(r,s)){var l=r[s];Array.isArray(l)?e(a[s]=[],l):d(l)?e(a[s]={},l):a[s]=l}return a}([],t);n.length>1&&(n.reverse().forEach(function(t,i){var r=n[i+1];if(r){var a=t.o||t.options,o=r.o||r.options,s=a&&!1===a.sequenceQueue?"begin":"complete",l=o&&o[s],u={};u[s]=function(){var e=r.e||r.elements,n=e.nodeType?[e]:e;l&&l.call(n,n),xe(t)},r.o?r.o=e({},o,u):r.options=e({},o,u)}}),n.reverse()),xe(n[0])}}(),function(e){function t(e){try{var t=e.elements;e.options.begin.call(t,t,e)}catch(e){setTimeout(function(){throw e},1)}}function n(t,n){try{var i=t.elements,r=t.percentComplete,a=t.options,o=t.tween;t.options.progress.call(i,i,r,Math.max(0,t.timeStart+(null!=t.duration?t.duration:null!=a.duration?a.duration:e.defaults.duration)-n),void 0!==o?o:100*r+"",t)}catch(e){setTimeout(function(){throw e},1)}}var i,r;function a(){var t,a;for(t=i;t;t=a)a=t._nextProgress,n(t,e.lastTick);for(t=r;t;t=a)a=t._nextComplete,e.completeCall(t)}e.callBegin=t;var o,s=1e3/60,l=function(){var e=window.performance||{};if("function"!=typeof e.now){var t=e.timing&&e.timing.navigationStart?e.timing.navigationStart:ae();e.now=function(){return ae()-t}}return e}(),u=function(t){return setTimeout(function(){t(l.now())},Math.max(0,s-(l.now()-e.lastTick)))},c=window.requestAnimationFrame||u,f=document.hidden?u:c;function g(n){if(!o){if(o=!0,n){var u=n&&!0!==n?n:l.now(),c=e.lastTick?u-e.lastTick:s,d=e.defaults.speed,p=e.defaults.easing,m=e.defaults.duration,v=void 0,h=void 0,y=void 0,b=void 0;if(i=null,r=null,c>=e.defaults.minFrameTime||!e.lastTick){for(e.lastTick=u;v=e.State.firstNew;)e.validateTweens(v);for(v=e.State.first;v&&v!==e.State.firstNew;v=v._next){var S=v.element,w=void 0;if(S.parentNode&&(w=ue(S))){var E=v.options,x=v._flags;if(!(k=v.timeStart)){var C=null!=v.queue?v.queue:E.queue;k=u-c,!1!==C&&(k=Math.max(k,w.lastFinishList[C]||0)),v.timeStart=k}16&x?v.timeStart+=c:2&x||(v._flags|=2,E._ready++)}else e.freeAnimationCall(v)}for(v=e.State.first;v&&v!==e.State.firstNew;v=h){if(h=v._next,2&(x=v._flags)&&!(16&x)){E=v.options;if(32&x&&E._ready<E._total)v.timeStart+=c;else{var N=null!=v.speed?v.speed:null!=E.speed?E.speed:d,k=v.timeStart;if(!(4&x)){var _=null!=v.delay?v.delay:E.delay;if(_){if(k+_/N>u)continue;v.timeStart=k+=_/(_>0?N:1)}v._flags|=4,0==E._started++&&(E._first=v,E.begin&&(t(v),E.begin=void 0))}if(1!==N)v.timeStart=k+=Math.min(c,u-k)*(1-N);E._first===v&&E.progress&&(v._nextProgress=void 0,y?y._nextProgress=y=v:i=y=v);var O=null!=v.easing?v.easing:null!=E.easing?E.easing:p,A=v.ellapsedTime=u-k,P=v.percentComplete=e.mock?1:Math.min(A/(null!=v.duration?v.duration:null!=E.duration?E.duration:m),1),T=v.tweens,M=64&x;for(var q in 1===P&&(v._nextComplete=void 0,b?b._nextComplete=b=v:r=b=v),T){var z=T[q],I=z.easing||O,L=z.pattern,R="",V=0;if(L){for(;V<L.length;V++){var j=z.start[V];if(null==j)R+=L[V];else{var F=I(M?1-P:P,j,z.end[V],q);R+=!0===L[V]?Math.round(F):F}}"tween"!==q?e.CSS.setPropertyValue(v.element,q,R,z.fn):v.tween=R}else delete T[q]}}}}(i||r)&&setTimeout(a,1)}}e.State.first?(e.State.isTicking=!0,f(g)):(e.State.isTicking=!1,e.lastTick=0),o=!1}}e.lastTick=0,e.State.isMobile||void 0===document.hidden||document.addEventListener("visibilitychange",function(e){var t=document.hidden;f=t?u:c,e&&setTimeout(g,2e3),g()}),e.tick=g}(re||(re={})),(re||(re={})).timestamp=!0,function(e){var t=/^#([A-f\d]{3}){1,2}$/i,n=new Map;function r(t,n,r,a){var o=n.end,u=n.start;if(l(o)&&l(u)){var c=!1;do{c=!1;for(var f=n.start=[null],g=n.end=[null],d=n.pattern=[""],p=n.easing,m=0,v=0,h=0,y=0,b=0,S=void 0,w=function(){var t=u[m],n=o[v];if(i.test(t)&&i.test(n)){for(var r=t,p=n,w=".",E=".";++m<u.length;){if((t=u[m])===w)w="..";else if(!s(t))break;r+=t}for(;++v<o.length;){if((n=o[v])===E)E="..";else if(!s(n))break;p+=n}var x=e.CSS.getUnit(u,m),C=e.CSS.getUnit(o,v);m+=x.length,v+=C.length,0===C.length?C=x:0===x.length&&(x=C),x===C?r===p?d[d.length-1]+=r+x:(d.push(!!y,x),f.push(parseFloat(r),null),g.push(parseFloat(p),null)):(d[d.length-1]+=h?"+ (":"calc(",d.push(!1,x+" + ",!1,C+")"),f.push(parseFloat(r)||0,null,0,null),g.push(0,null,parseFloat(p)||0,null))}else if(t===n)d[d.length-1]+=t,m++,v++,0===h&&"c"===t||1===h&&"a"===t||2===h&&"l"===t||3===h&&"c"===t||h>=4&&"("===t?h++:(h&&h<5||h>=4&&")"===t&&--h<5)&&(h=0),0===y&&"r"===t||1===y&&"g"===t||2===y&&"b"===t||3===y&&"a"===t||y>=3&&"("===t?(3===y&&"a"===t&&(b=1),y++):b&&","===t?++b>3&&(y=b=0):(b&&y<(b?5:4)||y>=(b?4:3)&&")"===t&&--y<(b?5:4))&&(y=b=0);else if(t||n){for(S=!0,l(f[f.length-1])||(1!==d.length||d[0]?(d.push(""),f.push(""),g.push("")):f[0]=g[0]="");m<u.length&&" "!==(t=u[m++])&&!i.test(t);)f[f.length-1]+=t;for(;v<o.length&&" "!==(n=o[v++])&&!i.test(n);)g[g.length-1]+=n}if(!a&&m===u.length!=(v===o.length)){var N=u.match(/\d\.?\d*/g)||["0"],k=N.length,_=0;return u=o.replace(/\d+\.?\d*/g,function(){return N[_++%k]}),c=a=!0,"break"}};m<u.length&&v<o.length;){if("break"===w())break}c||(""===d[0]&&null==g[0]&&(d.shift(),f.shift(),g.shift()),""===d[d.length]&&null==g[g.length]&&(d.pop(),f.pop(),g.pop()),"display"===t?/^(at-start|at-end|during)$/.test(p)||(p="none"===o?"at-end":"at-start"):"visibility"===t?/^(at-start|at-end|during)$/.test(p)||(p="hidden"===o?"at-end":"at-start"):S&&"at-start"!==p&&"during"!==p&&"at-end"!==p&&p!==e.Easing.Easings["at-Start"]&&p!==e.Easing.Easings.during&&p!==e.Easing.Easings["at-end"]&&(p="at-start"),n.easing=ve(p,r))}while(c)}}n.set("function",function(e,t,n,i,r,a){return e.call(t,i,n.length)}),n.set("number",function(t,n,i,r,a,o){return t+e.getNormalizationUnit(o.fn)}),n.set("string",function(t,n,i,r,a,o){return e.CSS.fixColors(t)}),n.set("undefined",function(t,n,i,r,a,o){return e.CSS.fixColors(e.CSS.getPropertyValue(n,a,o.fn)||"")}),e.expandProperties=function(i,a){var s=i.tweens=p(),c=i.elements,f=i.element,g=c.indexOf(f),d=ue(f),m=se(i.queue,i.options.queue),v=se(i.options.duration,e.defaults.duration);for(var h in a){var y=e.CSS.camelCase(h),b=a[h],S=e.getNormalization(f,y);if((S||"tween"===y)&&null!=b){var w=s[y]=p(),E=void 0,x=void 0;if(w.fn=S,u(b)&&(b=b.call(f,g,c.length,c)),Array.isArray(b)){var C=b[1],N=b[2];E=b[0],l(C)&&(/^[\d-]/.test(C)||t.test(C))||u(C)||o(C)?x=C:l(C)&&e.Easing.Easings[C]||Array.isArray(C)?(w.easing=C,x=N):x=C||N}else E=b;w.end=n.get(typeof E)(E,f,c,g,y,w),null==x&&!1!==m&&void 0!==d.queueList[m]||(w.start=n.get(typeof x)(x,f,c,g,y,w)),r(y,w,v,!!x)}}},e.validateTweens=function(t){if(e.State.firstNew===t&&(e.State.firstNew=t._next),!(1&t._flags)){var n=t.tweens,i=se(t.options.duration,e.defaults.duration);for(var a in n){var o=n[a];if(null==o.start){var s=e.CSS.getPropertyValue(t.element,a);l(s)&&(o.start=e.CSS.fixColors(s),r(a,o,i))}}t._flags|=1}}}(re||(re={})),(re||(re={})).version="2.0.2",function(){if(document.documentMode)return document.documentMode;for(var e=7;e>4;e--){var t=document.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}}()<=8)throw Error("VelocityJS cannot run on Internet Explorer 8 or earlier");if(window===this){var Ce=re.patch,Ne=window.jQuery,ke=window.Zepto;Ce(window,!0),Ce(Element&&Element.prototype),Ce(NodeList&&NodeList.prototype),Ce(HTMLCollection&&HTMLCollection.prototype),Ce(Ne,!0),Ce(Ne&&Ne.fn),Ce(ke,!0),Ce(ke&&ke.fn)}var _e=function(e){var n=re[e];l(n)||o(n)||a(n)?Object.defineProperty(xe,e,{enumerable:t.indexOf(e)>=0,get:function(){return re[e]},set:function(t){re[e]=t}}):Object.defineProperty(xe,e,{enumerable:t.indexOf(e)>=0,get:function(){return re[e]}})};for(var Oe in re)_e(Oe);return xe});