/*! velocityjs.org (1.0.0). (c) 2014 julian shapiro. mit @license: en.wikipedia.org/wiki/mit_license */ /*! velocityjs.org jquery shim (1.0.0-rc1). (c) 2014 the jquery foundation. mit @license: en.wikipedia.org/wiki/mit_license. */ !function(e){function t(e){var t=e.length,r=$.type(e);return"function"===r||$.iswindow(e)?!1:1===e.nodetype&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jquery){var $=function(e,t){return new $.fn.init(e,t)};$.iswindow=function(e){return null!=e&&e==e.window},$.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?a[o.call(e)]||"object":typeof e},$.isarray=array.isarray||function(e){return"array"===$.type(e)},$.isplainobject=function(e){var t;if(!e||"object"!==$.type(e)||e.nodetype||$.iswindow(e))return!1;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isprototypeof"))return!1}catch(r){return!1}for(t in e);return void 0===t||n.call(e,t)},$.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},$.data=function(e,t,a){if(void 0===a){var n=e[$.expando],o=n&&r[n];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var n=e[$.expando]||(e[$.expando]=++$.uuid);return r[n]=r[n]||{},r[n][t]=a,a}},$.removedata=function(e,t){var a=e[$.expando],n=a&&r[a];n&&$.each(t,function(e,t){delete n[t]})},$.extend=function(){var e,t,r,a,n,o,i=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[s]||{},s++),"object"!=typeof i&&"function"!==$.type(i)&&(i={}),s===l&&(i=this,s--);l>s;s++)if(null!=(n=arguments[s]))for(a in n)e=i[a],r=n[a],i!==r&&(u&&r&&($.isplainobject(r)||(t=$.isarray(r)))?(t?(t=!1,o=e&&$.isarray(e)?e:[]):o=e&&$.isplainobject(e)?e:{},i[a]=$.extend(u,o,r)):void 0!==r&&(i[a]=r));return i},$.queue=function(e,r,a){function n(e,r){var a=r||[];return null!=e&&(t(object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,"string"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){r=(r||"fx")+"queue";var o=$.data(e,r);return a?(!o||$.isarray(a)?o=$.data(e,r,n(a)):o.push(a),o):o||[]}},$.dequeue=function(e,t){$.each(e.nodetype?[e]:e,function(e,r){t=t||"fx";var a=$.queue(r,t),n=a.shift();"inprogress"===n&&(n=a.shift()),n&&("fx"===t&&a.unshift("inprogress"),n.call(r,function(){$.dequeue(r,t)}))})},$.fn=$.prototype={init:function(e){if(e.nodetype)return this[0]=e,this;throw new error("not a dom node.")},offset:function(){var t=this[0].getboundingclientrect();return{top:t.top+(e.pageyoffset||document.scrolltop||0)-(document.clienttop||0),left:t.left+(e.pagexoffset||document.scrollleft||0)-(document.clientleft||0)}},position:function(){function e(){for(var e=this.offsetparent||document;e&&"html"===!e.nodetype.tolowercase&&"static"===e.style.position;)e=e.offsetparent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),a=/^(?:body|html)$/i.test(e.nodename)?{top:0,left:0}:$(e).offset();return r.top-=parsefloat(t.style.margintop)||0,r.left-=parsefloat(t.style.marginleft)||0,e.style&&(a.top+=parsefloat(e.style.bordertopwidth)||0,a.left+=parsefloat(e.style.borderleftwidth)||0),{top:r.top-a.top,left:r.left-a.left}}};var r={};$.expando="velocity"+(new date).gettime(),$.uuid=0;for(var a={},n=a.hasownproperty,o=a.tostring,i="boolean number string function array date regexp object error".split(" "),s=0;sn;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(math.abs(o)>h&&++s=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){v=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),s="float32array"in t;if(4!==arguments.length)return!1;for(var p=0;4>p;++p)if("number"!=typeof arguments[p]||isnan(arguments[p])||!isfinite(arguments[p]))return!1;e=math.min(e,1),a=math.min(a,1),e=math.max(e,0),a=math.max(a,0);var w=s?new float32array(b):new array(b),v=!1,c=function(t){return v||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};c.getcontrolpoints=function(){return[{x:e,y:r},{x:a,y:n}]};var t="generatebezier("+[e,r,a,n]+")";return c.tostring=function(){return t},c}function u(e,t){var r=e;return g.isstring(e)?v.easings[e]||(r=!1):r=g.isarray(e)&&1===e.length?s.apply(null,e):g.isarray(e)&&2===e.length?b.apply(null,e.concat([t])):g.isarray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=v.easings[v.defaults.easing]?v.defaults.easing:h),r}function c(e){if(e)for(var t=(new date).gettime(),r=0,n=v.state.calls.length;n>r;r++)if(v.state.calls[r]){var o=v.state.calls[r],s=o[0],l=o[2],u=o[3];u||(u=v.state.calls[r][3]=t-16);for(var f=math.min((t-u)/l.duration,1),d=0,m=s.length;m>d;d++){var y=s[d],h=y.element;if(i(h)){var b=!1;if(l.display!==a&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var s=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(s,function(e,t){x.setpropertyvalue(h,"display",t)})}x.setpropertyvalue(h,"display",l.display)}l.visibility&&"hidden"!==l.visibility&&x.setpropertyvalue(h,"visibility",l.visibility);for(var w in y)if("element"!==w){var v=y[w],c,t=g.isstring(v.easing)?v.easings[v.easing]:v.easing;if(c=1===f?v.endvalue:v.startvalue+(v.endvalue-v.startvalue)*t(f),v.currentvalue=c,x.hooks.registered[w]){var k=x.hooks.getroot(w),a=i(h).rootpropertyvaluecache[k];a&&(v.rootpropertyvalue=a)}var f=x.setpropertyvalue(h,w,v.currentvalue+(0===parsefloat(c)?"":v.unittype),v.rootpropertyvalue,v.scrolldata);x.hooks.registered[w]&&(i(h).rootpropertyvaluecache[k]=x.normalizations.registered[k]?x.normalizations.registered[k]("extract",null,f[1]):f[1]),"transform"===f[0]&&(b=!0)}l.mobileha&&i(h).transformcache.translate3d===a&&(i(h).transformcache.translate3d="(0px, 0px, 0px)",b=!0),b&&x.flushtransformcache(h)}}l.display!==a&&"none"!==l.display&&(v.state.calls[r][2].display=!1),l.visibility&&"hidden"!==l.visibility&&(v.state.calls[r][2].visibility=!1),l.progress&&l.progress.call(o[1],o[1],f,math.max(0,u+l.duration-t),u),1===f&&p(r)}v.state.isticking&&p(c)}function p(e,t){if(!v.state.calls[e])return!1;for(var r=v.state.calls[e][0],n=v.state.calls[e][1],o=v.state.calls[e][2],s=v.state.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||("none"===o.display&&x.setpropertyvalue(p,"display",o.display),"hidden"===o.visibility&&x.setpropertyvalue(p,"visibility",o.visibility)),($.queue(p)[1]===a||!/\.velocityqueueentryflag/i.test($.queue(p)[1]))&&i(p)){i(p).isanimating=!1,i(p).rootpropertyvaluecache={};var f=!1;$.each(x.lists.transforms3d,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformcache[t];i(p).transformcache[t]!==a&&new regexp("^\\("+r+"[^.]").test(n)&&(f=!0,delete i(p).transformcache[t])}),o.mobileha&&(f=!0,delete i(p).transformcache.translate3d),f&&x.flushtransformcache(p),x.values.removeclass(p,"velocity-animating")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(d){settimeout(function(){throw d},1)}s&&o.loop!==!0&&s(n),o.loop!==!0||t||($.each(i(p).tweenscontainer,function(e,t){/^rotate/.test(e)&&360===parsefloat(t.endvalue)&&(t.endvalue=0,t.startvalue=360)}),v(p,"reverse",{loop:!0,delay:o.delay})),o.queue!==!1&&$.dequeue(p,o.queue)}v.state.calls[e]=!1;for(var g=0,m=v.state.calls.length;m>g;g++)if(v.state.calls[g]!==!1){l=!0;break}l===!1&&(v.state.isticking=!1,delete v.state.calls,v.state.calls=[])}var f=function(){if(r.documentmode)return r.documentmode;for(var e=7;e>4;e--){var t=r.createelement("div");if(t.innerhtml="",t.getelementsbytagname("span").length)return t=null,e}return a}(),d=function(){var e=0;return t.webkitrequestanimationframe||t.mozrequestanimationframe||function(t){var r=(new date).gettime(),a;return a=math.max(0,16-(r-e)),e=r+a,settimeout(function(){t(r+a)},a)}}(),g={isstring:function(e){return"string"==typeof e},isarray:array.isarray||function(e){return"[object array]"===object.prototype.tostring.call(e)},isfunction:function(e){return"[object function]"===object.prototype.tostring.call(e)},isnode:function(e){return e&&e.nodetype},isnodelist:function(e){return"object"==typeof e&&/^\[object (htmlcollection|nodelist|object)\]$/.test(object.prototype.tostring.call(e))&&e.length!==a&&(0===e.length||"object"==typeof e[0]&&e[0].nodetype>0)},iswrapped:function(e){return e&&(e.jquery||t.zepto&&t.zepto.zepto.isz(e))},issvg:function(e){return t.svgelement&&e instanceof svgelement},isemptyobject:function(e){var t;for(t in e)return!1;return!0}},$,m=!1;if(e.fn&&e.fn.jquery?($=e,m=!0):$=t.velocity.utilities,8>=f&&!m)throw new error("velocity: ie8 and below require jquery to be loaded before velocity.");if(7>=f)return void(jquery.fn.velocity=jquery.fn.animate);var y=400,h="swing",v={state:{ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),isandroid:/android/i.test(navigator.useragent),isgingerbread:/android 2\.3\.[3-7]/i.test(navigator.useragent),ischrome:t.chrome,isfirefox:/firefox/i.test(navigator.useragent),prefixelement:r.createelement("div"),prefixmatches:{},scrollanchor:null,scrollpropertyleft:null,scrollpropertytop:null,isticking:!1,calls:[]},css:{},utilities:$,sequences:{},easings:{},promise:t.promise,defaults:{queue:"",duration:y,easing:h,begin:null,complete:null,progress:null,display:a,loop:!1,delay:!1,mobileha:!0,_cachevalues:!0},init:function(e){$.data(e,"velocity",{issvg:g.issvg(e),isanimating:!1,computedstyle:null,tweenscontainer:null,rootpropertyvaluecache:{},transformcache:{}})},animate:null,hook:null,mock:!1,version:{major:1,minor:0,patch:0},debug:!1};t.pageyoffset!==a?(v.state.scrollanchor=t,v.state.scrollpropertyleft="pagexoffset",v.state.scrollpropertytop="pageyoffset"):(v.state.scrollanchor=r.documentelement||r.body.parentnode||r.body,v.state.scrollpropertyleft="scrollleft",v.state.scrollpropertytop="scrolltop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o={x:-1,v:0,tension:null,friction:null},i=[0],s=0,l=1e-4,u=.016,c,p,f;for(e=parsefloat(e)||500,t=parsefloat(t)||20,n=n||null,o.tension=e,o.friction=t,c=null!==n,c?(s=a(e,t),p=s/n*u):p=u;;)if(f=r(f||o,p),i.push(1+f.x),s+=16,!(math.abs(f.x)>l&&math.abs(f.v)>l))break;return c?function(e){return i[e*(i.length-1)|0]}:s}}();v.easings={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2},spring:function(e){return 1-math.cos(4.5*e*math.pi)*math.exp(6*-e)}},$.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeinsine",[.47,0,.745,.715]],["easeoutsine",[.39,.575,.565,1]],["easeinoutsine",[.445,.05,.55,.95]],["easeinquad",[.55,.085,.68,.53]],["easeoutquad",[.25,.46,.45,.94]],["easeinoutquad",[.455,.03,.515,.955]],["easeincubic",[.55,.055,.675,.19]],["easeoutcubic",[.215,.61,.355,1]],["easeinoutcubic",[.645,.045,.355,1]],["easeinquart",[.895,.03,.685,.22]],["easeoutquart",[.165,.84,.44,1]],["easeinoutquart",[.77,0,.175,1]],["easeinquint",[.755,.05,.855,.06]],["easeoutquint",[.23,1,.32,1]],["easeinoutquint",[.86,0,.07,1]],["easeinexpo",[.95,.05,.795,.035]],["easeoutexpo",[.19,1,.22,1]],["easeinoutexpo",[1,0,0,1]],["easeincirc",[.6,.04,.98,.335]],["easeoutcirc",[.075,.82,.165,1]],["easeinoutcirc",[.785,.135,.15,.86]]],function(e,t){v.easings[t[0]]=l.apply(null,t[1])});var x=v.css={regex:{ishex:/^#([a-f\d]{3}){1,2}$/i,valueunwrap:/^[a-z]+\((.*)\)$/i,wrappedvaluealreadyextracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valuesplit:/([a-z]+\(.+\))|(([a-z0-9#-.]+?)(?=\s|$))/gi},lists:{colors:["fill","stroke","stopcolor","color","backgroundcolor","bordercolor","bordertopcolor","borderrightcolor","borderbottomcolor","borderleftcolor","outlinecolor"],transformsbase:["translatex","translatey","scale","scalex","scaley","skewx","skewy","rotatez"],transforms3d:["transformperspective","translatez","scalez","rotatex","rotatey"]},hooks:{templates:{textshadow:["color x y blur","black 0px 0px 0px"],boxshadow:["color x y blur spread","black 0px 0px 0px 0px"],clip:["top right bottom left","0px 0px 0px 0px"],backgroundposition:["x y","0% 0%"],transformorigin:["x y z","50% 50% 0px"],perspectiveorigin:["x y","50% 50%"]},registered:{},register:function(){for(var e=0;e=f)switch(e){case"name":return"filter";case"extract":var a=r.tostring().match(/alpha\(opacity=(.*)\)/i);return r=a?a[1]/100:1;case"inject":return t.style.zoom=1,parsefloat(r)>=1?"":"alpha(opacity="+parseint(100*parsefloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){9>=f||v.state.isgingerbread||(x.lists.transformsbase=x.lists.transformsbase.concat(x.lists.transforms3d));for(var e=0;en&&(n=1),o=!/(\d)$/i.test(n);break;case"skew":o=!/(deg|\d)$/i.test(n);break;case"rotate":o=!/(deg|\d)$/i.test(n)}return o||(i(r).transformcache[t]="("+n+")"),i(r).transformcache[t]}}}();for(var e=0;e=f||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=f?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(8>=f?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},names:{camelcase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.touppercase()})},svgattribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||v.state.isandroid&&!v.state.ischrome)&&(t+="|transform"),new regexp("^("+t+")$","i").test(e)},prefixcheck:function(e){if(v.state.prefixmatches[e])return[v.state.prefixmatches[e],!0];for(var t=["","webkit","moz","ms","o"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.touppercase()}),g.isstring(v.state.prefixelement.style[n]))return v.state.prefixmatches[e]=n,[n,!0]}return[e,!1]}},values:{hextorgb:function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,a;return e=e.replace(t,function(e,t,r,a){return t+t+r+r+a+a}),a=r.exec(e),a?[parseint(a[1],16),parseint(a[2],16),parseint(a[3],16)]:[0,0,0]},iscssnullvalue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getunittype:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scalex|scaley|scalez|alpha|flexgrow|flexheight|zindex|fontweight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getdisplaytype:function(e){var t=e.tagname.tostring().tolowercase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":"block"},addclass:function(e,t){e.classlist?e.classlist.add(t):e.classname+=(e.classname.length?" ":"")+t},removeclass:function(e,t){e.classlist?e.classlist.remove(t):e.classname=e.classname.tostring().replace(new regexp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getpropertyvalue:function(e,r,n,o){function s(e,r){function n(){u&&x.setpropertyvalue(e,"display","none")}var l=0;if(8>=f)l=$.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===x.getpropertyvalue(e,"display")&&(u=!0,x.setpropertyvalue(e,"display",x.values.getdisplaytype(e))),!o){if("height"===r&&"border-box"!==x.getpropertyvalue(e,"boxsizing").tostring().tolowercase()){var c=e.offsetheight-(parsefloat(x.getpropertyvalue(e,"bordertopwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"borderbottomwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingtop"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingbottom"))||0);return n(),c}if("width"===r&&"border-box"!==x.getpropertyvalue(e,"boxsizing").tostring().tolowercase()){var p=e.offsetwidth-(parsefloat(x.getpropertyvalue(e,"borderleftwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"borderrightwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingleft"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingright"))||0);return n(),p}}var d;d=i(e)===a?t.getcomputedstyle(e,null):i(e).computedstyle?i(e).computedstyle:i(e).computedstyle=t.getcomputedstyle(e,null),(f||v.state.isfirefox)&&"bordercolor"===r&&(r="bordertopcolor"),l=9===f&&"filter"===r?d.getpropertyvalue(r):d[r],(""===l||null===l)&&(l=e.style[r]),n()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(r)){var g=s(e,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(r))&&(l=$(e).position()[r]+"px")}return l}var l;if(x.hooks.registered[r]){var u=r,c=x.hooks.getroot(u);n===a&&(n=x.getpropertyvalue(e,x.names.prefixcheck(c)[0])),x.normalizations.registered[c]&&(n=x.normalizations.registered[c]("extract",e,n)),l=x.hooks.extractvalue(u,n)}else if(x.normalizations.registered[r]){var p,d;p=x.normalizations.registered[r]("name",e),"transform"!==p&&(d=s(e,x.names.prefixcheck(p)[0]),x.values.iscssnullvalue(d)&&x.hooks.templates[r]&&(d=x.hooks.templates[r][1])),l=x.normalizations.registered[r]("extract",e,d)}return/^[\d-]/.test(l)||(l=i(e)&&i(e).issvg&&x.names.svgattribute(r)?/^(height|width)$/i.test(r)?e.getbbox()[r]:e.getattribute(r):s(e,x.names.prefixcheck(r)[0])),x.values.iscssnullvalue(l)&&(l=0),v.debug>=2&&console.log("get "+r+": "+l),l},setpropertyvalue:function(e,r,a,n,o){var s=r;if("scroll"===r)o.container?o.container["scroll"+o.direction]=a:"left"===o.direction?t.scrollto(a,o.alternatevalue):t.scrollto(o.alternatevalue,a);else if(x.normalizations.registered[r]&&"transform"===x.normalizations.registered[r]("name",e))x.normalizations.registered[r]("inject",e,a),s="transform",a=i(e).transformcache[r];else{if(x.hooks.registered[r]){var l=r,u=x.hooks.getroot(r);n=n||x.getpropertyvalue(e,u),a=x.hooks.injectvalue(l,a,n),r=u}if(x.normalizations.registered[r]&&(a=x.normalizations.registered[r]("inject",e,a),r=x.normalizations.registered[r]("name",e)),s=x.names.prefixcheck(r)[0],8>=f)try{e.style[s]=a}catch(c){v.debug&&console.log("browser does not support ["+a+"] for ["+s+"]")}else i(e)&&i(e).issvg&&x.names.svgattribute(r)?e.setattribute(r,a):e.style[s]=a;v.debug>=2&&console.log("set "+r+" ("+s+"): "+a)}return[s,a]},flushtransformcache:function(e){function t(t){return parsefloat(x.getpropertyvalue(e,t))}var r="";if((f||v.state.isandroid&&!v.state.ischrome)&&i(e).issvg){var a={translate:[t("translatex"),t("translatey")],skewx:[t("skewx")],skewy:[t("skewy")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scalex"),t("scaley")],rotate:[t("rotatez"),0,0]};$.each(i(e).transformcache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(r+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var n,o;$.each(i(e).transformcache,function(t){return n=i(e).transformcache[t],"transformperspective"===t?(o=n,!0):(9===f&&"rotatez"===t&&(t="rotate"),void(r+=t+n+" "))}),o&&(r="perspective"+o+" "+r)}x.setpropertyvalue(e,"transform",r)}};x.hooks.register(),x.normalizations.register(),v.hook=function(e,t,r){var n=a;return e=o(e),$.each(e,function(e,o){if(i(o)===a&&v.init(o),r===a)n===a&&(n=v.css.getpropertyvalue(o,t));else{var s=v.css.setpropertyvalue(o,t,r);"transform"===s[0]&&v.css.flushtransformcache(o),n=s}}),n};var s=function(){function e(){return f?k.promise||null:d}function s(){function e(e){function f(e,t){var r=a,n=a,i=a;return g.isarray(e)?(r=e[0],!g.isarray(e[1])&&/^[\d-]/.test(e[1])||g.isfunction(e[1])||x.regex.ishex.test(e[1])?i=e[1]:(g.isstring(e[1])&&!x.regex.ishex.test(e[1])||g.isarray(e[1]))&&(n=t?e[1]:u(e[1],s.duration),e[2]!==a&&(i=e[2]))):r=e,t||(n=n||s.easing),g.isfunction(r)&&(r=r.call(o,v,w)),g.isfunction(i)&&(i=i.call(o,v,w)),[r||0,n,i]}function d(e,t){var r,a;return a=(t||0).tostring().tolowercase().replace(/[%a-z]+$/,function(e){return r=e,""}),r||(r=x.values.getunittype(e)),[a,r]}function m(){var e={myparent:o.parentnode||r.body,position:x.getpropertyvalue(o,"position"),fontsize:x.getpropertyvalue(o,"fontsize")},a=e.position===l.lastposition&&e.myparent===l.lastparent,n=e.fontsize===l.lastfontsize;l.lastparent=e.myparent,l.lastposition=e.position,l.lastfontsize=e.fontsize;var s=100,l={};if(n&&a)l.emtopx=l.lastemtopx,l.percenttopxwidth=l.lastpercenttopxwidth,l.percenttopxheight=l.lastpercenttopxheight;else{var u=i(o).issvg?r.createelementns("http://www.w3.org/2000/svg","rect"):r.createelement("div");v.init(u),e.myparent.appendchild(u),$.each(["overflow","overflowx","overflowy"],function(e,t){v.css.setpropertyvalue(u,t,"hidden")}),v.css.setpropertyvalue(u,"position",e.position),v.css.setpropertyvalue(u,"fontsize",e.fontsize),v.css.setpropertyvalue(u,"boxsizing","content-box"),$.each(["minwidth","maxwidth","width","minheight","maxheight","height"],function(e,t){v.css.setpropertyvalue(u,t,s+"%")}),v.css.setpropertyvalue(u,"paddingleft",s+"em"),l.percenttopxwidth=l.lastpercenttopxwidth=(parsefloat(x.getpropertyvalue(u,"width",null,!0))||1)/s,l.percenttopxheight=l.lastpercenttopxheight=(parsefloat(x.getpropertyvalue(u,"height",null,!0))||1)/s,l.emtopx=l.lastemtopx=(parsefloat(x.getpropertyvalue(u,"paddingleft"))||1)/s,e.myparent.removechild(u)}return null===l.remtopx&&(l.remtopx=parsefloat(x.getpropertyvalue(r.body,"fontsize"))||16),null===l.vwtopx&&(l.vwtopx=parsefloat(t.innerwidth)/100,l.vhtopx=parsefloat(t.innerheight)/100),l.remtopx=l.remtopx,l.vwtopx=l.vwtopx,l.vhtopx=l.vhtopx,v.debug>=1&&console.log("unit ratios: "+json.stringify(l),o),l}if(s.begin&&0===v)try{s.begin.call(h,h)}catch(y){settimeout(function(){throw y},1)}if("scroll"===a){var s=/^x$/i.test(s.axis)?"left":"top",c=parsefloat(s.offset)||0,t,f,e;s.container?g.iswrapped(s.container)||g.isnode(s.container)?(s.container=s.container[0]||s.container,t=s.container["scroll"+s],e=t+$(o).position()[s.tolowercase()]+c):s.container=null:(t=v.state.scrollanchor[v.state["scrollproperty"+s]],f=v.state.scrollanchor[v.state["scrollproperty"+("left"===s?"top":"left")]],e=$(o).offset()[s.tolowercase()]+c),l={scroll:{rootpropertyvalue:!1,startvalue:t,currentvalue:t,endvalue:e,unittype:"",easing:s.easing,scrolldata:{container:s.container,direction:s,alternatevalue:f}},element:o},v.debug&&console.log("tweenscontainer (scroll): ",l.scroll,o)}else if("reverse"===a){if(!i(o).tweenscontainer)return void $.dequeue(o,s.queue);"none"===i(o).opts.display&&(i(o).opts.display="auto"),"hidden"===i(o).opts.visibility&&(i(o).opts.visibility="visible"),i(o).opts.loop=!1,i(o).opts.begin=null,i(o).opts.complete=null,p.easing||delete s.easing,p.duration||delete s.duration,s=$.extend({},i(o).opts,s);var j=$.extend(!0,{},i(o).tweenscontainer);for(var h in j)if("element"!==h){var n=j[h].startvalue;j[h].startvalue=j[h].currentvalue=j[h].endvalue,j[h].endvalue=n,g.isemptyobject(p)||(j[h].easing=s.easing),v.debug&&console.log("reverse tweenscontainer ("+h+"): "+json.stringify(j[h]),o)}l=j}else if("start"===a){var j;i(o).tweenscontainer&&i(o).isanimating===!0&&(j=i(o).tweenscontainer),$.each(b,function(e,t){if(regexp("^"+x.lists.colors.join("$|^")+"$").test(e)){var r=f(t,!0),n=r[0],o=r[1],i=r[2];if(x.regex.ishex.test(n)){for(var s=["red","green","blue"],l=x.values.hextorgb(n),u=i?x.values.hextorgb(i):a,c=0;c1e4&&(v.state.calls=n(v.state.calls)),v.state.calls.push([o,h,s,null,k.resolver]),v.state.isticking===!1&&(v.state.isticking=!0,c())):v++)}var o=this,s=$.extend({},v.defaults,p),l={},p;if(i(o)===a&&v.init(o),parsefloat(s.delay)&&s.queue!==!1&&$.queue(o,s.queue,function(e){v.velocityqueueentryflag=!0,i(o).delaytimer={settimeout:settimeout(e,parsefloat(s.delay)),next:e}}),v.mock===!0)s.duration=1;else switch(s.duration.tostring().tolowercase()){case"fast":s.duration=200;break;case"normal":s.duration=y;break;case"slow":s.duration=600;break;default:s.duration=parsefloat(s.duration)||1}s.easing=u(s.easing,s.duration),s.begin&&!g.isfunction(s.begin)&&(s.begin=null),s.progress&&!g.isfunction(s.progress)&&(s.progress=null),s.complete&&!g.isfunction(s.complete)&&(s.complete=null),s.display!==a&&null!==s.display&&(s.display=s.display.tostring().tolowercase(),"auto"===s.display&&(s.display=v.css.values.getdisplaytype(o))),s.visibility&&(s.visibility=s.visibility.tostring().tolowercase()),s.mobileha=s.mobileha&&v.state.ismobile&&!v.state.isgingerbread,s.queue===!1?s.delay?settimeout(e,s.delay):e():$.queue(o,s.queue,function(t,r){return r===!0?(k.promise&&k.resolver(h),!0):(v.velocityqueueentryflag=!0,void e(t))}),""!==s.queue&&"fx"!==s.queue||"inprogress"===$.queue(o)[0]||$.dequeue(o)}var l=arguments[0]&&($.isplainobject(arguments[0].properties)&&!arguments[0].properties.names||g.isstring(arguments[0].properties)),f,d,m,h,b,p;if(g.iswrapped(this)?(f=!1,m=0,h=this,d=this):(f=!0,m=1,h=l?arguments[0].elements:arguments[0]),h=o(h)){l?(b=arguments[0].properties,p=arguments[0].options):(b=arguments[m],p=arguments[m+1]);var w=h.length,v=0;if("stop"!==b&&!$.isplainobject(p)){var c=m+1;p={};for(var t=c;tq;q++){var r={delay:e.delay};q===z-1&&(r.display=e.display,r.visibility=e.visibility,r.complete=e.complete),s(h,"reverse",r)}return e()}};v=$.extend(s,v),v.animate=s;var p=t.requestanimationframe||d;return v.state.ismobile||r.hidden===a||r.addeventlistener("visibilitychange",function(){r.hidden?(p=function(e){return settimeout(function(){e(!0)},16)},c()):p=t.requestanimationframe||d}),e.velocity=v,e!==t&&(e.fn.velocity=s,e.fn.velocity.defaults=v.defaults),$.each(["down","up"],function(e,t){v.sequences["slide"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u=l.begin,c=l.complete,p={height:"",margintop:"",marginbottom:"",paddingtop:"",paddingbottom:""},f={};l.display===a&&(l.display="down"===t?"inline"===v.css.values.getdisplaytype(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(i,i),f.overflow=e.style.overflow,e.style.overflow="hidden";for(var r in p){f[r]=e.style[r];var a=v.css.getpropertyvalue(e,r);p[r]="down"===t?[a,0]:[0,a]}},l.complete=function(){for(var t in f)e.style[t]=f[t];c&&c.call(i,i),s&&s.resolver(i)},v(e,p,l)}}),$.each(["in","out"],function(e,t){v.sequences["fade"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u={opacity:"in"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display="in"===t?"auto":"none"),v(this,u,l)}}),v}(window.jquery||window.zepto||window,window,document)});