!function(n){"use strict";function o(n){var i=n.length,r=t.type(n);return"function"!==r&&!t.isWindow(n)&&(!(1!==n.nodeType||!i)||"array"===r||0===i||"number"==typeof i&&i>0&&i-1 in n)}var t,i;if(!n.jQuery){t=function(n,i){return new t.fn.init(n,i)};t.isWindow=function(n){return n&&n===n.window};t.type=function(n){return n?"object"==typeof n||"function"==typeof n?r[s.call(n)]||"object":typeof n:n+""};t.isArray=Array.isArray||function(n){return"array"===t.type(n)};t.isPlainObject=function(n){var i;if(!n||"object"!==t.type(n)||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!f.call(n,"constructor")&&!f.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(i in n);return void 0===i||f.call(n,i)};t.each=function(n,t,i){var u,r=0,f=n.length,e=o(n);if(i){if(e)for(;r<f&&(u=t.apply(n[r],i),u!==!1);r++);else for(r in n)if(n.hasOwnProperty(r)&&(u=t.apply(n[r],i),u===!1))break}else if(e)for(;r<f&&(u=t.call(n[r],r,n[r]),u!==!1);r++);else for(r in n)if(n.hasOwnProperty(r)&&(u=t.call(n[r],r,n[r]),u===!1))break;return n};t.data=function(n,r,u){var o,f,e;if(void 0===u){if(o=n[t.expando],f=o&&i[o],void 0===r)return f;if(f&&r in f)return f[r]}else if(void 0!==r)return e=n[t.expando]||(n[t.expando]=++t.uuid),i[e]=i[e]||{},i[e][r]=u,u};t.removeData=function(n,r){var u=n[t.expando],f=u&&i[u];f&&(r?t.each(r,function(n,t){delete f[t]}):delete i[u])};t.extend=function(){var r,o,i,f,e,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"!=typeof n&&"function"!==t.type(n)&&(n={}),u===c&&(n=this,u--);u<c;u++)if(e=arguments[u])for(f in e)e.hasOwnProperty(f)&&(r=n[f],i=e[f],n!==i&&(h&&i&&(t.isPlainObject(i)||(o=t.isArray(i)))?(o?(o=!1,s=r&&t.isArray(r)?r:[]):s=r&&t.isPlainObject(r)?r:{},n[f]=t.extend(h,s,i)):void 0!==i&&(n[f]=i)));return n};t.queue=function(n,i,r){function f(n,t){var i=t||[];return n&&(o(Object(n))?!function(n,t){for(var r=+t.length,i=0,u=n.length;i<r;)n[u++]=t[i++];if(r!==r)for(;void 0!==t[i];)n[u++]=t[i++];return n.length=u,n}(i,"string"==typeof n?[n]:n):[].push.call(i,n)),i}if(n){i=(i||"fx")+"queue";var u=t.data(n,i);return r?(!u||t.isArray(r)?u=t.data(n,i,f(r)):u.push(r),u):u||[]}};t.dequeue=function(n,i){t.each(n.nodeType?[n]:n,function(n,r){i=i||"fx";var f=t.queue(r,i),u=f.shift();"inprogress"===u&&(u=f.shift());u&&("fx"===i&&f.unshift("inprogress"),u.call(r,function(){t.dequeue(r,i)}))})};t.fn=t.prototype={init:function(n){if(n.nodeType)return this[0]=n,this;throw new Error("Not a DOM node.");},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function f(n){for(var t=n.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position;)t=t.offsetParent;return t||document}var u=this[0],n=f(u),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return i.top-=parseFloat(u.style.marginTop)||0,i.left-=parseFloat(u.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};i={};t.expando="velocity"+(new Date).getTime();t.uuid=0;for(var r={},f=r.hasOwnProperty,s=r.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<e.length;u++)r["[object "+e[u]+"]"]=e[u].toLowerCase();t.fn.init.prototype=t.fn;n.Velocity={Utilities:t}}}(window),function(n){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):n()}(function(){"use strict";return function(n,t,i,r){function ut(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r}function p(n){return o.isWrapped(n)?n=ot.call(n):o.isNode(n)&&(n=[n]),n}function s(n){var t=e.data(n,"velocity");return null===t?r:t}function w(n,t){var i=s(n);i&&i.delayTimer&&!i.delayPaused&&(i.delayRemaining=i.delay-t+i.delayBegin,i.delayPaused=!0,clearTimeout(i.delayTimer.setTimeout))}function b(n){var t=s(n);t&&t.delayTimer&&t.delayPaused&&(t.delayPaused=!1,t.delayTimer.setTimeout=setTimeout(t.delayTimer.next,t.delayRemaining))}function ft(n){return function(t){return Math.round(t*n)*(1/n)}}function k(n,i,r,u){function l(n,t){return 1-3*t+3*n}function a(n,t){return 3*t-6*n}function v(n){return 3*n}function s(n,t,i){return((l(t,i)*n+a(t,i))*n+v(t))*n}function y(n,t,i){return 3*l(t,i)*n*n+2*a(t,i)*n+v(t)}function b(t,i){for(var f,e,u=0;u<tt;++u){if(f=y(i,n,r),0===f)return i;e=s(i,n,r)-t;i-=e/f}return i}function k(){for(var t=0;t<e;++t)o[t]=s(t*h,n,r)}function d(t,i,u){var e,f,o=0;do f=i+(u-i)/2,e=s(f,n,r)-t,e>0?u=f:i=f;while(Math.abs(e)>rt&&++o<ut);return f}function g(t){for(var u=0,i=1,c=e-1;i!==c&&o[i]<=t;++i)u+=h;--i;var l=(t-o[i])/(o[i+1]-o[i]),f=u+l*h,s=y(f,n,r);return s>=it?b(t,f):0===s?f:d(t,u,u+h)}function nt(){p=!0;n===i&&r===u||k()}var tt=4,it=.001,rt=1e-7,ut=10,e=11,h=1/(e-1),ft="Float32Array"in t,f,w;if(4!==arguments.length)return!1;for(f=0;f<4;++f)if("number"!=typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;n=Math.min(n,1);r=Math.min(r,1);n=Math.max(n,0);r=Math.max(r,0);var o=ft?new Float32Array(e):new Array(e),p=!1,c=function(t){return p||nt(),n===i&&r===u?t:0===t?0:1===t?1:s(g(t),i,u)};return c.getControlPoints=function(){return[{x:n,y:i},{x:r,y:u}]},w="generateBezier("+[n,i,r,u]+")",c.toString=function(){return w},c}function d(n,t){var i=n;return o.isString(n)?f.Easings[n]||(i=!1):i=o.isArray(n)&&1===n.length?ft.apply(null,n):o.isArray(n)&&2===n.length?rt.apply(null,n.concat([t])):!(!o.isArray(n)||4!==n.length)&&k.apply(null,n),i===!1&&(i=f.Easings[f.defaults.easing]?f.defaults.easing:it),i}function a(n){var d,it,y,nt,c,rt,pt,p,b,t,ht,wt,ct,tt,lt,ft;if(n)for(d=f.timestamp&&n!==!0?n:et.now(),it=f.State.calls.length,it>1e4&&(f.State.calls=ut(f.State.calls),it=f.State.calls.length),y=0;y<it;y++)if(f.State.calls[y]){var v=f.State.calls[y],at=v[0],i=v[2],w=v[3],bt=!!w,vt=null,yt=v[5],ot=v[6];if(w||(w=f.State.calls[y][3]=d-16),yt){if(yt.resume!==!0)continue;w=v[3]=Math.round(d-ot-16);v[5]=null}ot=v[6]=d-w;for(var k=Math.min(ot/i.duration,1),st=0,kt=at.length;st<kt;st++)if(nt=at[st],c=nt.element,s(c)){rt=!1;i.display!==r&&null!==i.display&&"none"!==i.display&&("flex"===i.display&&(pt=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],e.each(pt,function(n,t){u.setPropertyValue(c,"display",t)})),u.setPropertyValue(c,"display",i.display));i.visibility!==r&&"hidden"!==i.visibility&&u.setPropertyValue(c,"visibility",i.visibility);for(p in nt)if(nt.hasOwnProperty(p)&&"element"!==p){if(t=nt[p],ht=o.isString(t.easing)?f.Easings[t.easing]:t.easing,o.isString(t.pattern)?(wt=1===k?function(n,i,r){var u=t.endValue[i];return r?Math.round(u):u}:function(n,r,u){var f=t.startValue[r],e=t.endValue[r]-f,o=f+e*ht(k,i,e);return u?Math.round(o):o},b=t.pattern.replace(/{(\d+)(!)?}/g,wt)):1===k?b=t.endValue:(ct=t.endValue-t.startValue,b=t.startValue+ct*ht(k,i,ct)),!bt&&b===t.currentValue)continue;(t.currentValue=b,"tween"===p)?vt=b:(u.Hooks.registered[p]&&(tt=u.Hooks.getRoot(p),lt=s(c).rootPropertyValueCache[tt],lt&&(t.rootPropertyValue=lt)),ft=u.setPropertyValue(c,p,t.currentValue+(h<9&&0===parseFloat(b)?"":t.unitType),t.rootPropertyValue,t.scrollData),u.Hooks.registered[p]&&(s(c).rootPropertyValueCache[tt]=u.Normalizations.registered[tt]?u.Normalizations.registered[tt]("extract",null,ft[1]):ft[1]),"transform"===ft[0]&&(rt=!0))}i.mobileHA&&s(c).transformCache.translate3d===r&&(s(c).transformCache.translate3d="(0px, 0px, 0px)",rt=!0);rt&&u.flushTransformCache(c)}i.display!==r&&"none"!==i.display&&(f.State.calls[y][2].display=!1);i.visibility!==r&&"hidden"!==i.visibility&&(f.State.calls[y][2].visibility=!1);i.progress&&i.progress.call(v[1],v[1],k,Math.max(0,w+i.duration-d),w,vt);1===k&&g(y)}f.State.isTicking&&l(a)}function g(n,t){var o,h,l,a,k;if(!f.State.calls[n])return!1;for(var y=f.State.calls[n][0],v=f.State.calls[n][1],i=f.State.calls[n][2],p=f.State.calls[n][4],w=!1,c=0,b=y.length;c<b;c++){if(o=y[c].element,t||i.loop||("none"===i.display&&u.setPropertyValue(o,"display",i.display),"hidden"===i.visibility&&u.setPropertyValue(o,"visibility",i.visibility)),h=s(o),i.loop!==!0&&(e.queue(o)[1]===r||!/\.velocityQueueEntryFlag/i.test(e.queue(o)[1]))&&h&&(h.isAnimating=!1,h.rootPropertyValueCache={},l=!1,e.each(u.Lists.transforms3D,function(n,t){var i=/^scale/.test(t)?1:0,u=h.transformCache[t];h.transformCache[t]!==r&&new RegExp("^\\("+i+"[^.]").test(u)&&(l=!0,delete h.transformCache[t])}),i.mobileHA&&(l=!0,delete h.transformCache.translate3d),l&&u.flushTransformCache(o),u.Values.removeClass(o,"velocity-animating")),!t&&i.complete&&!i.loop&&c===b-1)try{i.complete.call(v,v)}catch(d){setTimeout(function(){throw d;},1)}p&&i.loop!==!0&&p(v);h&&i.loop===!0&&!t&&(e.each(h.tweensContainer,function(n,t){if(/^rotate/.test(n)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var i=t.startValue;t.startValue=t.endValue;t.endValue=i}/^backgroundPosition/.test(n)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),f(o,"reverse",{loop:!0,delay:i.delay}));i.queue!==!1&&e.dequeue(o,i.queue)}for(f.State.calls[n]=!1,a=0,k=f.State.calls.length;a<k;a++)if(f.State.calls[a]!==!1){w=!0;break}w===!1&&(f.State.isTicking=!1,delete f.State.calls,f.State.calls=[])}var e,h=function(){var n,t;if(i.documentMode)return i.documentMode;for(n=7;n>4;n--)if(t=i.createElement("div"),t.innerHTML="<!--[if IE "+n+"]><span><\/span><![endif]-->",t.getElementsByTagName("span").length)return t=null,n;return r}(),nt=function(){var n=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,r=(new Date).getTime();return i=Math.max(0,16-(r-n)),n=r+i,setTimeout(function(){t(r+i)},i)}}(),et=function(){var n=t.performance||{},i;return Object.prototype.hasOwnProperty.call(n,"now")||(i=n.timing&&n.timing.domComplete?n.timing.domComplete:(new Date).getTime(),n.now=function(){return(new Date).getTime()-i}),n}(),ot=function(){var n=Array.prototype.slice;try{n.call(i.documentElement)}catch(t){n=function(){for(var n=this.length,t=[];--n>0;)t[n]=this[n];return t}}return n}(),o={isNumber:function(n){return"number"==typeof n},isString:function(n){return"string"==typeof n},isArray:Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},isFunction:function(n){return"[object Function]"===Object.prototype.toString.call(n)},isNode:function(n){return n&&n.nodeType},isWrapped:function(n){return n&&o.isNumber(n.length)&&!o.isString(n)&&!o.isFunction(n)&&!o.isNode(n)&&(0===n.length||o.isNode(n[0]))},isSVG:function(n){return t.SVGElement&&n instanceof t.SVGElement},isEmptyObject:function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}},tt=!1,rt,u,c,l,y;if(n.fn&&n.fn.jquery?(e=n,tt=!0):e=t.Velocity.Utilities,h<=8&&!tt)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(h<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,it="swing",f={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:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:e,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:it,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(n){e.data(n,"velocity",{isSVG:o.isSVG(n),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:4,patch:2},debug:!1,timestamp:!0,pauseAll:function(n){var t=(new Date).getTime();e.each(f.State.calls,function(t,i){if(i){if(n!==r&&(i[2].queue!==n||i[2].queue===!1))return!0;i[5]={resume:!1}}});e.each(f.State.delayedElements,function(n,i){i&&w(i,t)})},resumeAll:function(n){var t=(new Date).getTime();e.each(f.State.calls,function(t,i){if(i){if(n!==r&&(i[2].queue!==n||i[2].queue===!1))return!0;i[5]&&(i[5].resume=!0)}});e.each(f.State.delayedElements,function(n,i){i&&b(i,t)})}};return t.pageYOffset!==r?(f.State.scrollAnchor=t,f.State.scrollPropertyLeft="pageXOffset",f.State.scrollPropertyTop="pageYOffset"):(f.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,f.State.scrollPropertyLeft="scrollLeft",f.State.scrollPropertyTop="scrollTop"),rt=function(){function t(n){return-n.tension*n.x-n.friction*n.v}function n(n,i,r){var u={x:n.x+r.dx*i,v:n.v+r.dv*i,tension:n.tension,friction:n.friction};return{dx:u.v,dv:t(u)}}function i(i,r){var u={dx:i.v,dv:t(i)},f=n(i,.5*r,u),e=n(i,.5*r,f),o=n(i,r,e),s=1/6*(u.dx+2*(f.dx+e.dx)+o.dx),h=1/6*(u.dv+2*(f.dv+e.dv)+o.dv);return i.x=i.x+s*r,i.v=i.v+h*r,i}return function r(n,t,u){var o,s,f,h={x:-1,v:0,tension:null,friction:null},c=[0],e=0,l=.0001,a=.016;for(n=parseFloat(n)||500,t=parseFloat(t)||20,u=u||null,h.tension=n,h.friction=t,o=null!==u,o?(e=r(n,t),s=e/u*a):s=a;;)if(f=i(f||h,s),c.push(1+f.x),e+=16,!(Math.abs(f.x)>l&&Math.abs(f.v)>l))break;return o?function(n){return c[n*(c.length-1)|0]}:e}}(),f.Easings={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},spring:function(n){return 1-Math.cos(4.5*n*Math.PI)*Math.exp(6*-n)}},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(n,t){f.Easings[t[0]]=k.apply(null,t[1])}),u=f.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"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},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 o,n,r,t,f,e,s,c,i=0;i<u.Lists.colors.length;i++)o="color"===u.Lists.colors[i]?"0 0 0 1":"255 255 255 1",u.Hooks.templates[u.Lists.colors[i]]=["Red Green Blue Alpha",o];if(h)for(n in u.Hooks.templates)u.Hooks.templates.hasOwnProperty(n)&&(r=u.Hooks.templates[n],t=r[0].split(" "),f=r[1].match(u.RegEx.valueSplit),"Color"===t[0]&&(t.push(t.shift()),f.push(f.shift()),u.Hooks.templates[n]=[t.join(" "),f.join(" ")]));for(n in u.Hooks.templates)if(u.Hooks.templates.hasOwnProperty(n)){r=u.Hooks.templates[n];t=r[0].split(" ");for(e in t)t.hasOwnProperty(e)&&(s=n+t[e],c=e,u.Hooks.registered[s]=[n,c])}},getRoot:function(n){var t=u.Hooks.registered[n];return t?t[0]:n},getUnit:function(n,t){var i=(n.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return i&&u.Lists.units.indexOf(i)>=0?i:""},fixColors:function(n){return n.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(n,t,i){return u.Lists.colorNames.hasOwnProperty(i)?(t?t:"rgba(")+u.Lists.colorNames[i]+(t?"":",1)"):t+i})},cleanRootPropertyValue:function(n,t){return u.RegEx.valueUnwrap.test(t)&&(t=t.match(u.RegEx.valueUnwrap)[1]),u.Values.isCSSNullValue(t)&&(t=u.Hooks.templates[n][1]),t},extractValue:function(n,t){var i=u.Hooks.registered[n],r,f;return i?(r=i[0],f=i[1],t=u.Hooks.cleanRootPropertyValue(r,t),t.toString().match(u.RegEx.valueSplit)[f]):t},injectValue:function(n,t,i){var r=u.Hooks.registered[n],f,s,e,o;return r?(e=r[0],o=r[1],i=u.Hooks.cleanRootPropertyValue(e,i),f=i.toString().match(u.RegEx.valueSplit),f[o]=t,s=f.join(" ")):i}},Normalizations:{registered:{clip:function(n,t,i){switch(n){case"name":return"clip";case"extract":var r;return u.RegEx.wrappedValueAlreadyExtracted.test(i)?r=i:(r=i.toString().match(u.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):i),r;case"inject":return"rect("+i+")"}},blur:function(n,t,i){var r,u;switch(n){case"name":return f.State.isFirefox?"filter":"-webkit-filter";case"extract":return r=parseFloat(i),r||0===r||(u=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i),r=u?u[1]:0),r;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(n,t,i){if(h<=8)switch(n){case"name":return"filter";case"extract":var r=i.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(n){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){function e(n,t,i){var h="border-box"===u.getPropertyValue(t,"boxSizing").toString().toLowerCase();if(h===(i||!1)){for(var e,o=0,f="width"===n?["Left","Right"]:["Top","Bottom"],s=["padding"+f[0],"padding"+f[1],"border"+f[0]+"Width","border"+f[1]+"Width"],r=0;r<s.length;r++)e=parseFloat(u.getPropertyValue(t,s[r])),isNaN(e)||(o+=e);return i?-o:o}return 0}function n(n,t){return function(i,r,u){switch(i){case"name":return n;case"extract":return parseFloat(u)+e(n,r,t);case"inject":return parseFloat(u)-e(n,r,t)+"px"}}}var t,i;for((!h||h>9)&&!f.State.isGingerbread&&(u.Lists.transformsBase=u.Lists.transformsBase.concat(u.Lists.transforms3D)),t=0;t<u.Lists.transformsBase.length;t++)!function(){var n=u.Lists.transformsBase[t];u.Normalizations.registered[n]=function(t,i,u){switch(t){case"name":return"transform";case"extract":return s(i)===r||s(i).transformCache[n]===r?/^scale/i.test(n)?1:0:s(i).transformCache[n].replace(/[()]/g,"");case"inject":var e=!1;switch(n.substr(0,n.length-1)){case"translate":e=!/(%|px|em|rem|vw|vh|\d)$/i.test(u);break;case"scal":case"scale":f.State.isAndroid&&s(i).transformCache[n]===r&&u<1&&(u=1);e=!/(\d)$/i.test(u);break;case"skew":e=!/(deg|\d)$/i.test(u);break;case"rotate":e=!/(deg|\d)$/i.test(u)}return e||(s(i).transformCache[n]="("+u+")"),s(i).transformCache[n]}}}();for(i=0;i<u.Lists.colors.length;i++)!function(){var n=u.Lists.colors[i];u.Normalizations.registered[n]=function(t,i,f){var e,s,o;switch(t){case"name":return n;case"extract":return u.RegEx.wrappedValueAlreadyExtracted.test(f)?e=f:(o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(f)?s=o[f]!==r?o[f]:o.black:u.RegEx.isHex.test(f)?s="rgb("+u.Values.hexToRgb(f).join(" ")+")":/^rgba?\(/i.test(f)||(s=o.black),e=(s||f).toString().match(u.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),(!h||h>8)&&3===e.split(" ").length&&(e+=" 1"),e;case"inject":return/^rgb/.test(f)?f:(h<=8?4===f.split(" ").length&&(f=f.split(/\s+/).slice(0,3).join(" ")):3===f.split(" ").length&&(f+=" 1"),(h<=8?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();u.Normalizations.registered.innerWidth=n("width",!0);u.Normalizations.registered.innerHeight=n("height",!0);u.Normalizations.registered.outerWidth=n("width");u.Normalizations.registered.outerHeight=n("height")}},Names:{camelCase:function(n){return n.replace(/-(\w)/g,function(n,t){return t.toUpperCase()})},SVGAttribute:function(n){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||f.State.isAndroid&&!f.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(n)},prefixCheck:function(n){var i;if(f.State.prefixMatches[n])return[f.State.prefixMatches[n],!0];for(var r=["","Webkit","Moz","ms","O"],t=0,u=r.length;t<u;t++)if(i=0===t?n:r[t]+n.replace(/^\w/,function(n){return n.toUpperCase()}),o.isString(f.State.prefixElement.style[i]))return f.State.prefixMatches[n]=i,[i,!0];return[n,!1]}},Values:{hexToRgb:function(n){var t;return n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,i,r){return t+t+i+i+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(n){return!n||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(n)},getUnitType:function(n){return/^(rotate|skew)/i.test(n)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(n)?"":"px"},getDisplayType:function(n){var t=n&&n.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":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(n,t){if(n)if(n.classList)n.classList.add(t);else if(o.isString(n.className))n.className+=(n.className.length?" ":"")+t;else{var i=n.getAttribute(h<=7?"className":"class")||"";n.setAttribute("class",i+(i?" ":"")+t)}},removeClass:function(n,t){if(n)if(n.classList)n.classList.remove(t);else if(o.isString(n.className))n.className=n.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var i=n.getAttribute(h<=7?"className":"class")||"";n.setAttribute("class",i.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(n,i,o,c){function y(n,i){var f=0,l,o,p,w,a,v;if(h<=8)f=e.css(n,i);else{if(l=!1,/^(width|height)$/.test(i)&&0===u.getPropertyValue(n,"display")&&(l=!0,u.setPropertyValue(n,"display",u.Values.getDisplayType(n))),o=function(){l&&u.setPropertyValue(n,"display","none")},!c){if("height"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return p=n.offsetHeight-(parseFloat(u.getPropertyValue(n,"borderTopWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderBottomWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingTop"))||0)-(parseFloat(u.getPropertyValue(n,"paddingBottom"))||0),o(),p;if("width"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return w=n.offsetWidth-(parseFloat(u.getPropertyValue(n,"borderLeftWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderRightWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingLeft"))||0)-(parseFloat(u.getPropertyValue(n,"paddingRight"))||0),o(),w}a=s(n)===r?t.getComputedStyle(n,null):s(n).computedStyle?s(n).computedStyle:s(n).computedStyle=t.getComputedStyle(n,null);"borderColor"===i&&(i="borderTopColor");f=9===h&&"filter"===i?a.getPropertyValue(i):a[i];""!==f&&null!==f||(f=n.style[i]);o()}return"auto"===f&&/^(top|right|bottom|left)$/i.test(i)&&(v=y(n,"position"),("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(f=e(n).position()[i]+"px")),f}var l,p,a,w,v,b;if(u.Hooks.registered[i]?(p=i,a=u.Hooks.getRoot(p),o===r&&(o=u.getPropertyValue(n,u.Names.prefixCheck(a)[0])),u.Normalizations.registered[a]&&(o=u.Normalizations.registered[a]("extract",n,o)),l=u.Hooks.extractValue(p,o)):u.Normalizations.registered[i]&&(w=u.Normalizations.registered[i]("name",n),"transform"!==w&&(v=y(n,u.Names.prefixCheck(w)[0]),u.Values.isCSSNullValue(v)&&u.Hooks.templates[i]&&(v=u.Hooks.templates[i][1])),l=u.Normalizations.registered[i]("extract",n,v)),!/^[\d-]/.test(l))if(b=s(n),b&&b.isSVG&&u.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=n.getBBox()[i]}catch(k){l=0}else l=n.getAttribute(i);else l=y(n,u.Names.prefixCheck(i)[0]);return u.Values.isCSSNullValue(l)&&(l=0),f.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(n,i,r,e,o){var c=i,v,l,a;if("scroll"===i)o.container?o.container["scroll"+o.direction]=r:"Left"===o.direction?t.scrollTo(r,o.alternateValue):t.scrollTo(o.alternateValue,r);else if(u.Normalizations.registered[i]&&"transform"===u.Normalizations.registered[i]("name",n))u.Normalizations.registered[i]("inject",n,r),c="transform",r=s(n).transformCache[i];else{if(u.Hooks.registered[i]&&(v=i,l=u.Hooks.getRoot(i),e=e||u.getPropertyValue(n,l),r=u.Hooks.injectValue(v,r,e),i=l),u.Normalizations.registered[i]&&(r=u.Normalizations.registered[i]("inject",n,r),i=u.Normalizations.registered[i]("name",n)),c=u.Names.prefixCheck(i)[0],h<=8)try{n.style[c]=r}catch(y){f.debug&&console.log("Browser does not support ["+r+"] for ["+c+"]")}else a=s(n),a&&a.isSVG&&u.Names.SVGAttribute(i)?n.setAttribute(i,r):n.style[c]=r;f.debug>=2&&console.log("Set "+i+" ("+c+"): "+r)}return[c,r]},flushTransformCache:function(n){var i="",l=s(n),t,r,o,c;(h||f.State.isAndroid&&!f.State.isChrome)&&l&&l.isSVG?(t=function(t){return parseFloat(u.getPropertyValue(n,t))},r={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]},e.each(s(n).transformCache,function(n){/^translate/i.test(n)?n="translate":/^scale/i.test(n)?n="scale":/^rotate/i.test(n)&&(n="rotate");r[n]&&(i+=n+"("+r[n].join(" ")+") ",delete r[n])})):(e.each(s(n).transformCache,function(t){return o=s(n).transformCache[t],"transformPerspective"===t?(c=o,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(i+=t+o+" "))}),c&&(i="perspective"+c+" "+i));u.setPropertyValue(n,"transform",i)}},u.Hooks.register(),u.Normalizations.register(),f.hook=function(n,t,i){var o;return n=p(n),e.each(n,function(n,e){if(s(e)===r&&f.init(e),i===r)o===r&&(o=u.getPropertyValue(e,t));else{var h=u.setPropertyValue(e,t,i);"transform"===h[0]&&f.CSS.flushTransformCache(e);o=h}}),o},c=function(){function rt(){return ot?nt.promise||null:wt}function gt(h,c){function g(){var v,g,ft,wt,at,rt,vt,tt,bt,kt,pt,ht,ct,et,lt;if(p.begin&&0===st)try{p.begin.call(l,l)}catch(ri){setTimeout(function(){throw ri;},1)}if("scroll"===ut)rt=/^x$/i.test(p.axis)?"Left":"Top",vt=parseFloat(p.offset)||0,p.container?o.isWrapped(p.container)||o.isNode(p.container)?(p.container=p.container[0]||p.container,ft=p.container["scroll"+rt],at=ft+e(h).position()[rt.toLowerCase()]+vt):p.container=null:(ft=f.State.scrollAnchor[f.State["scrollProperty"+rt]],wt=f.State.scrollAnchor[f.State["scrollProperty"+("Left"===rt?"Top":"Left")]],at=e(h).offset()[rt.toLowerCase()]+vt),w={scroll:{rootPropertyValue:!1,startValue:ft,currentValue:ft,endValue:at,unitType:"",easing:p.easing,scrollData:{container:p.container,direction:rt,alternateValue:wt}},element:h},f.debug&&console.log("tweensContainer (scroll): ",w.scroll,h);else if("reverse"===ut){if(v=s(h),!v)return;if(!v.tweensContainer)return void e.dequeue(h,p.queue);"none"===v.opts.display&&(v.opts.display="auto");"hidden"===v.opts.visibility&&(v.opts.visibility="visible");v.opts.loop=!1;v.opts.begin=null;v.opts.complete=null;n.easing||delete p.easing;n.duration||delete p.duration;p=e.extend({},v.opts,p);g=e.extend(!0,{},v?v.tweensContainer:null);for(tt in g)g.hasOwnProperty(tt)&&"element"!==tt&&(bt=g[tt].startValue,g[tt].startValue=g[tt].currentValue=g[tt].endValue,g[tt].endValue=bt,o.isEmptyObject(n)||(g[tt].easing=p.easing),f.debug&&console.log("reverse tweensContainer ("+tt+"): "+JSON.stringify(g[tt]),h));w=g}else if("start"===ut){v=s(h);v&&v.tweensContainer&&v.isAnimating===!0&&(g=v.tweensContainer);kt=function(n,t){var r,e,i;return o.isFunction(n)&&(n=n.call(h,c,it)),o.isArray(n)?(r=n[0],!o.isArray(n[1])&&/^[\d-]/.test(n[1])||o.isFunction(n[1])||u.RegEx.isHex.test(n[1])?i=n[1]:o.isString(n[1])&&!u.RegEx.isHex.test(n[1])&&f.Easings[n[1]]||o.isArray(n[1])?(e=t?n[1]:d(n[1],p.duration),i=n[2]):i=n[1]||n[2]):r=n,t||(e=e||p.easing),o.isFunction(r)&&(r=r.call(h,c,it)),o.isFunction(i)&&(i=i.call(h,c,it)),[r||0,e,i]};pt=function(n,s){var nt,ot=u.Hooks.getRoot(n),lt=!1,l=s[0],ri=s[1],c=s[2],ht,tt,st,pt,dt,a,et,ct,bt,yt,kt,ii,gt;if(!(v&&v.isSVG||"tween"===ot||u.Names.prefixCheck(ot)[1]!==!1||u.Normalizations.registered[ot]!==r))return void(f.debug&&console.log("Skipping ["+ot+"] due to a lack of browser support."));if((p.display!==r&&null!==p.display&&"none"!==p.display||p.visibility!==r&&"hidden"!==p.visibility)&&/opacity|filter/.test(n)&&!c&&0!==l&&(c=0),p._cacheValues&&g&&g[n]?(c===r&&(c=g[n].endValue+g[n].unitType),lt=v.rootPropertyValueCache[ot]):u.Hooks.registered[n]?c===r?(lt=u.getPropertyValue(h,ot),c=u.getPropertyValue(h,n,lt)):lt=u.Hooks.templates[ot][1]:c===r&&(c=u.getPropertyValue(h,n)),pt=!1,dt=function(n,t){var i,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(n){return i=n,""}),i||(i=u.Values.getUnitType(n)),[r,i]},c!==l&&o.isString(c)&&o.isString(l)){nt="";var ut=0,ft=0,it=[],at=[],d=0,k=0,rt=0;for(c=u.Hooks.fixColors(c),l=u.Hooks.fixColors(l);ut<c.length&&ft<l.length;)if(a=c[ut],et=l[ft],/[\d\.-]/.test(a)&&/[\d\.-]/.test(et)){for(var vt=a,wt=et,ni=".",ti=".";++ut<c.length;){if(a=c[ut],a===ni)ni="..";else if(!/\d/.test(a))break;vt+=a}for(;++ft<l.length;){if(et=l[ft],et===ti)ti="..";else if(!/\d/.test(et))break;wt+=et}ct=u.Hooks.getUnit(c,ut);bt=u.Hooks.getUnit(l,ft);(ut+=ct.length,ft+=bt.length,ct===bt)?vt===wt?nt+=vt+ct:(nt+="{"+it.length+(k?"!":"")+"}"+ct,it.push(parseFloat(vt)),at.push(parseFloat(wt))):(yt=parseFloat(vt),kt=parseFloat(wt),nt+=(d<5?"calc":"")+"("+(yt?"{"+it.length+(k?"!":"")+"}":"0")+ct+" + "+(kt?"{"+(it.length+(yt?1:0))+(k?"!":"")+"}":"0")+bt+")",yt&&(it.push(yt),at.push(0)),kt&&(it.push(0),at.push(kt)))}else{if(a!==et){d=0;break}nt+=a;ut++;ft++;0===d&&"c"===a||1===d&&"a"===a||2===d&&"l"===a||3===d&&"c"===a||d>=4&&"("===a?d++:(d&&d<5||d>=4&&")"===a&&--d<5)&&(d=0);0===k&&"r"===a||1===k&&"g"===a||2===k&&"b"===a||3===k&&"a"===a||k>=3&&"("===a?(3===k&&"a"===a&&(rt=1),k++):rt&&","===a?++rt>3&&(k=rt=0):(rt&&k<(rt?5:4)||k>=(rt?4:3)&&")"===a&&--k<(rt?5:4))&&(k=rt=0)}ut===c.length&&ft===l.length||(f.debug&&console.error('Trying to pattern match mis-matched strings ["'+l+'", "'+c+'"]'),nt=r);nt&&(it.length?(f.debug&&console.log('Pattern found "'+nt+'" -> ',it,at,"["+c+","+l+"]"),c=it,l=at,tt=st=""):nt=r)}if(nt||(ht=dt(n,c),c=ht[0],st=ht[1],ht=dt(n,l),l=ht[0].replace(/^([+-\/*])=/,function(n,t){return pt=t,""}),tt=ht[1],c=parseFloat(c)||0,l=parseFloat(l)||0,"%"===tt&&(/^(fontSize|lineHeight)$/.test(n)?(l/=100,tt="em"):/^scale/.test(n)?(l/=100,tt=""):/(Red|Green|Blue)$/i.test(n)&&(l=l/100*255,tt=""))),ii=function(){var o={myParent:h.parentNode||i.body,position:u.getPropertyValue(h,"position"),fontSize:u.getPropertyValue(h,"fontSize")},c=o.position===y.lastPosition&&o.myParent===y.lastParent,l=o.fontSize===y.lastFontSize,s,r,n;return y.lastParent=o.myParent,y.lastPosition=o.position,y.lastFontSize=o.fontSize,s=100,r={},l&&c?(r.emToPx=y.lastEmToPx,r.percentToPxWidth=y.lastPercentToPxWidth,r.percentToPxHeight=y.lastPercentToPxHeight):(n=v&&v.isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div"),f.init(n),o.myParent.appendChild(n),e.each(["overflow","overflowX","overflowY"],function(t,i){f.CSS.setPropertyValue(n,i,"hidden")}),f.CSS.setPropertyValue(n,"position",o.position),f.CSS.setPropertyValue(n,"fontSize",o.fontSize),f.CSS.setPropertyValue(n,"boxSizing","content-box"),e.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,i){f.CSS.setPropertyValue(n,i,s+"%")}),f.CSS.setPropertyValue(n,"paddingLeft",s+"em"),r.percentToPxWidth=y.lastPercentToPxWidth=(parseFloat(u.getPropertyValue(n,"width",null,!0))||1)/s,r.percentToPxHeight=y.lastPercentToPxHeight=(parseFloat(u.getPropertyValue(n,"height",null,!0))||1)/s,r.emToPx=y.lastEmToPx=(parseFloat(u.getPropertyValue(n,"paddingLeft"))||1)/s,o.myParent.removeChild(n)),null===y.remToPx&&(y.remToPx=parseFloat(u.getPropertyValue(i.body,"fontSize"))||16),null===y.vwToPx&&(y.vwToPx=parseFloat(t.innerWidth)/100,y.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=y.remToPx,r.vwToPx=y.vwToPx,r.vhToPx=y.vhToPx,f.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),h),r},/[\/*]/.test(pt))tt=st;else if(st!==tt&&0!==c)if(0===l)tt=st;else{b=b||ii();gt=/margin|padding|left|right|width|text|word|letter/i.test(n)||/X$/.test(n)||"x"===n?"x":"y";switch(st){case"%":c*="x"===gt?b.percentToPxWidth:b.percentToPxHeight;break;case"px":break;default:c*=b[st+"ToPx"]}switch(tt){case"%":c*=1/("x"===gt?b.percentToPxWidth:b.percentToPxHeight);break;case"px":break;default:c*=1/b[tt+"ToPx"]}}switch(pt){case"+":l=c+l;break;case"-":l=c-l;break;case"*":l*=c;break;case"/":l=c/l}w[n]={rootPropertyValue:lt,startValue:c,currentValue:c,endValue:l,unitType:tt,easing:ri};nt&&(w[n].pattern=nt);f.debug&&console.log("tweensContainer ("+n+"): "+JSON.stringify(w[n]),h)};for(ht in k)if(k.hasOwnProperty(ht)){if(ct=u.Names.camelCase(ht),et=kt(k[ht]),u.Lists.colors.indexOf(ct)>=0){var dt=et[0],gt=et[1],ni=et[2];if(u.RegEx.isHex.test(dt)){for(var ti=["Red","Green","Blue"],ui=u.Values.hexToRgb(dt),ii=ni?u.Values.hexToRgb(ni):r,ot=0;ot<ti.length;ot++)lt=[ui[ot]],gt&&lt.push(gt),ii!==r&&lt.push(ii[ot]),pt(ct+ti[ot],lt);continue}}pt(ct,et)}w.element=h}w.element&&(u.Values.addClass(h,"velocity-animating"),yt.push(w),v=s(h),v&&(""===p.queue&&(v.tweensContainer=w,v.opts=p),v.isAnimating=!0),st===it-1?(f.State.calls.push([yt,l,p,null,nt.resolver,null,0]),f.State.isTicking===!1&&(f.State.isTicking=!0,a())):st++)}var b,p=e.extend({},f.defaults,n),w={},tt,rt;switch(s(h)===r&&f.init(h),parseFloat(p.delay)&&p.queue!==!1&&e.queue(h,p.queue,function(n){var t,i;f.velocityQueueEntryFlag=!0;t=f.State.delayedElements.count++;f.State.delayedElements[t]=h;i=function(t){return function(){f.State.delayedElements[t]=!1;n()}}(t);s(h).delayBegin=(new Date).getTime();s(h).delay=parseFloat(p.delay);s(h).delayTimer={setTimeout:setTimeout(n,parseFloat(p.delay)),next:i}}),p.duration.toString().toLowerCase()){case"fast":p.duration=200;break;case"normal":p.duration=v;break;case"slow":p.duration=600;break;default:p.duration=parseFloat(p.duration)||1}(f.mock!==!1&&(f.mock===!0?p.duration=p.delay=1:(p.duration*=parseFloat(f.mock)||1,p.delay*=parseFloat(f.mock)||1)),p.easing=d(p.easing,p.duration),p.begin&&!o.isFunction(p.begin)&&(p.begin=null),p.progress&&!o.isFunction(p.progress)&&(p.progress=null),p.complete&&!o.isFunction(p.complete)&&(p.complete=null),p.display!==r&&null!==p.display&&(p.display=p.display.toString().toLowerCase(),"auto"===p.display&&(p.display=f.CSS.Values.getDisplayType(h))),p.visibility!==r&&null!==p.visibility&&(p.visibility=p.visibility.toString().toLowerCase()),p.mobileHA=p.mobileHA&&f.State.isMobile&&!f.State.isGingerbread,p.queue===!1)?p.delay?(tt=f.State.delayedElements.count++,f.State.delayedElements[tt]=h,rt=function(n){return function(){f.State.delayedElements[n]=!1;g()}}(tt),s(h).delayBegin=(new Date).getTime(),s(h).delay=parseFloat(p.delay),s(h).delayTimer={setTimeout:setTimeout(g,parseFloat(p.delay)),next:rt}):g():e.queue(h,p.queue,function(n,t){return t===!0?(nt.promise&&nt.resolver(l),!0):(f.velocityQueueEntryFlag=!0,void g(n))});""!==p.queue&&"fx"!==p.queue||"inprogress"===e.queue(h)[0]||e.dequeue(h)}var h,ot,wt,ft,l,k,n,bt=arguments[0]&&(arguments[0].p||e.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||o.isString(arguments[0].properties)),nt,it,st,kt,tt,ut,ct,lt,dt,at,vt,y,yt,pt,ht,et;if(o.isWrapped(this)?(ot=!1,ft=0,l=this,wt=this):(ot=!0,ft=1,l=bt?arguments[0].elements||arguments[0].e:arguments[0]),nt={promise:null,resolver:null,rejecter:null},ot&&f.Promise&&(nt.promise=new f.Promise(function(n,t){nt.resolver=n;nt.rejecter=t})),bt?(k=arguments[0].properties||arguments[0].p,n=arguments[0].options||arguments[0].o):(k=arguments[ft],n=arguments[ft+1]),l=p(l),!l)return void(nt.promise&&(k&&n&&n.promiseRejectEmpty===!1?nt.resolver():nt.rejecter()));if(it=l.length,st=0,!/^(stop|finish|finishAll|pause|resume)$/i.test(k)&&!e.isPlainObject(n))for(kt=ft+1,n={},tt=kt;tt<arguments.length;tt++)o.isArray(arguments[tt])||!/^(fast|normal|slow)$/i.test(arguments[tt])&&!/^\d/.test(arguments[tt])?o.isString(arguments[tt])||o.isArray(arguments[tt])?n.easing=arguments[tt]:o.isFunction(arguments[tt])&&(n.complete=arguments[tt]):n.duration=arguments[tt];switch(k){case"scroll":ut="scroll";break;case"reverse":ut="reverse";break;case"pause":return ct=(new Date).getTime(),e.each(l,function(n,t){w(t,ct)}),e.each(f.State.calls,function(t,i){var u=!1;i&&e.each(i[1],function(t,f){var o=n===r?"":n;return o!==!0&&i[2].queue!==o&&(n!==r||i[2].queue!==!1)||(e.each(l,function(n,t){if(t===f)return i[5]={resume:!1},u=!0,!1}),!u&&void 0)})}),rt();case"resume":return e.each(l,function(n,t){b(t,ct)}),e.each(f.State.calls,function(t,i){var u=!1;i&&e.each(i[1],function(t,f){var o=n===r?"":n;return o!==!0&&i[2].queue!==o&&(n!==r||i[2].queue!==!1)||!i[5]||(e.each(l,function(n,t){if(t===f)return i[5].resume=!0,u=!0,!1}),!u&&void 0)})}),rt();case"finish":case"finishAll":case"stop":return e.each(l,function(t,i){s(i)&&s(i).delayTimer&&(clearTimeout(s(i).delayTimer.setTimeout),s(i).delayTimer.next&&s(i).delayTimer.next(),delete s(i).delayTimer);"finishAll"===k&&(n===!0||o.isString(n))&&(e.each(e.queue(i,o.isString(n)?n:""),function(n,t){o.isFunction(t)&&t()}),e.queue(i,o.isString(n)?n:"",[]))}),lt=[],e.each(f.State.calls,function(t,i){i&&e.each(i[1],function(u,f){var h=n===r?"":n;return h!==!0&&i[2].queue!==h&&(n!==r||i[2].queue!==!1)||void e.each(l,function(r,u){if(u===f)if((n===!0||o.isString(n))&&(e.each(e.queue(u,o.isString(n)?n:""),function(n,t){o.isFunction(t)&&t(null,!0)}),e.queue(u,o.isString(n)?n:"",[])),"stop"===k){var c=s(u);c&&c.tweensContainer&&h!==!1&&e.each(c.tweensContainer,function(n,t){t.endValue=t.currentValue});lt.push(t)}else"finish"!==k&&"finishAll"!==k||(i[2].duration=1)})})}),"stop"===k&&(e.each(lt,function(n,t){g(t,!0)}),nt.promise&&nt.resolver(l)),rt();default:if(!e.isPlainObject(k)||o.isEmptyObject(k))return o.isString(k)&&f.Redirects[k]?(h=e.extend({},n),dt=h.duration,at=h.delay||0,h.backwards===!0&&(l=e.extend(!0,[],l).reverse()),e.each(l,function(n,t){parseFloat(h.stagger)?h.delay=at+parseFloat(h.stagger)*n:o.isFunction(h.stagger)&&(h.delay=at+h.stagger.call(t,n,it));h.drag&&(h.duration=parseFloat(dt)||(/^(callout|transition)/.test(k)?1e3:v),h.duration=Math.max(h.duration*(h.backwards?1-n/it:(n+1)/it),.75*h.duration,200));f.Redirects[k].call(t,t,h||{},n,it,l,nt.promise?nt:r)}),rt()):(vt="Velocity: First argument ("+k+") was not a property map, a known action, or a registered redirect. Aborting.",nt.promise?nt.rejecter(new Error(vt)):console.log(vt),rt());ut="start"}if(y={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},yt=[],e.each(l,function(n,t){o.isNode(t)&&gt(t,n)}),h=e.extend({},f.defaults,n),h.loop=parseInt(h.loop,10),pt=2*h.loop-1,h.loop)for(ht=0;ht<pt;ht++)et={delay:h.delay,progress:h.progress},ht===pt-1&&(et.display=h.display,et.visibility=h.visibility,et.complete=h.complete),c(l,"reverse",et);return rt()},f=e.extend(c,f),f.animate=c,l=t.requestAnimationFrame||nt,f.State.isMobile||i.hidden===r||(y=function(){i.hidden?(l=function(n){return setTimeout(function(){n(!0)},16)},a()):l=t.requestAnimationFrame||nt},y(),i.addEventListener("visibilitychange",y)),n.Velocity=f,n!==t&&(n.fn.velocity=c,n.fn.velocity.defaults=f.defaults),e.each(["Down","Up"],function(n,t){f.Redirects["slide"+t]=function(n,i,o,s,h,c){var l=e.extend({},i),y=l.begin,p=l.complete,a={},v={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===r&&(l.display="Down"===t?"inline"===f.CSS.Values.getDisplayType(n)?"inline-block":"block":"none");l.begin=function(){var i,r;0===o&&y&&y.call(h,h);for(i in v)v.hasOwnProperty(i)&&(a[i]=n.style[i],r=u.getPropertyValue(n,i),v[i]="Down"===t?[r,0]:[0,r]);a.overflow=n.style.overflow;n.style.overflow="hidden"};l.complete=function(){for(var t in a)a.hasOwnProperty(t)&&(n.style[t]=a[t]);o===s-1&&(p&&p.call(h,h),c&&c.resolver(h))};f(n,v,l)}}),e.each(["In","Out"],function(n,t){f.Redirects["fade"+t]=function(n,i,u,o,s,h){var c=e.extend({},i),l=c.complete,a={opacity:"In"===t?1:0};0!==u&&(c.begin=null);c.complete=u!==o-1?null:function(){l&&l.call(s,s);h&&h.resolver(s)};c.display===r&&(c.display="In"===t?"auto":"none");f(this,a,c)}}),f}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)});jQuery(document).ready(function(n){"use strict";function s(t){var i=n("body"),r=n(t.target).attr("href");n(r).addClass("active");console.log(r);i.css("overflow","hidden");i.addClass("offcanvas-open");t.preventDefault()}function h(){var t=n("body");t.removeClass("offcanvas-open");setTimeout(function(){t.css("overflow","visible");n(".offcanvas-container").removeClass("active")},450)}function c(t){var r=t.item.index,i=n(".owl-item").eq(r).find("[data-hash]").attr("data-hash");n(".product-thumbnails li").removeClass("active");n('[href="#'+i+'"]').parent().addClass("active");n(".gallery-wrapper .gallery-item").removeClass("active");n('[data-hash="'+i+'"]').parent().addClass("active")}var u,f,t,e,o,i,r;if(function(){var t,n,i;if("number"==typeof innerWidth)return window.innerWidth>document.documentElement.clientWidth;n=document.documentElement||document.body;void 0!==n.currentStyle&&(t=n.currentStyle.overflow);t=t||window.getComputedStyle(n,"").overflow;void 0!==n.currentStyle&&(i=n.currentStyle.overflowY);i=i||window.getComputedStyle(n,"").overflowY;var r=n.scrollHeight>n.clientHeight,u=/^(visible|auto)$/.test(t)||/^(visible|auto)$/.test(i),f="scroll"===t||"scroll"===i;return r&&u||f}()&&n("body").addClass("hasScrollbar"),n('a[href="#"]').on("click",function(n){n.preventDefault()}),function(){var i=n("body"),t=n(".navbar-sticky"),r=n(".topbar").outerHeight(),u=t.outerHeight();t.length&&n(window).on("scroll",function(){n(this).scrollTop()>r?(t.addClass("navbar-stuck"),t.hasClass("navbar-ghost")||i.css("padding-top",u)):(t.removeClass("navbar-stuck"),i.css("padding-top",0))})}(),function(t,i,r,u){n(t).on("click",function(){n(u).addClass("search-visible");setTimeout(function(){n(u+" > input").focus()},200)});n(i).on("click",function(){n(u).removeClass("search-visible")});n(r).on("click",function(){n(u+" > input").val("");setTimeout(function(){n(u+" > input").focus()},200)})}(".toolbar .tools .search",".close-search",".clear-search",".site-search"),n(".lang-currency-switcher").on("click",function(){n(this).parent().addClass("show");n(this).parent().find(".dropdown-menu").addClass("show")}),n(document).on("click",function(t){n(t.target).closest(".lang-currency-switcher-wrap").length||(n(".lang-currency-switcher-wrap").removeClass("show"),n(".lang-currency-switcher-wrap .dropdown-menu").removeClass("show"))}),n('[data-toggle="offcanvas"]').on("click",s),n(".site-backdrop").on("click",h),u=n(".offcanvas-menu .menu").height(),n(".offcanvas-menu .offcanvas-submenu").each(function(){n(this).prepend('<li class="back-btn"><a href="#">Back<\/a><\/li>')}),f=n(".has-children .sub-menu-toggle"),n(".offcanvas-menu .offcanvas-submenu .back-btn").on("click",function(t){var i=this,e=n(i).parent(),r=n(i).parent().parent().siblings().parent(),f=n(i).parents(".menu");e.removeClass("in-view");r.removeClass("off-view");"menu"===r.attr("class")?f.css("height",u):f.css("height",r.height());t.preventDefault()}),f.on("click",function(t){var i=this,r=n(i).parent().parent().parent(),u=n(i).parents(".menu");return r.addClass("off-view"),n(i).parent().parent().find("> .offcanvas-submenu").addClass("in-view"),u.css("height",n(i).parent().parent().find("> .offcanvas-submenu").height()),t.preventDefault(),!1}),t=n(".scroll-to-top-btn"),(t.length>0&&(n(window).on("scroll",function(){n(this).scrollTop()>600?t.addClass("visible"):t.removeClass("visible")}),t.on("click",function(t){t.preventDefault();n("html").velocity("scroll",{offset:0,duration:1200,easing:"easeOutExpo",mobileHA:!1})})),n(document).on("click",".scroll-to",function(t){var r=n(this).attr("href"),i,u;if("#"===r)return!1;i=n(r);i.length>0&&(u=i.data("offset-top")||70,n("html").velocity("scroll",{offset:n(this.hash).offset().top-u,duration:1e3,easing:"easeOutExpo",mobileHA:!1}));t.preventDefault()}),function(t){t.each(function(){var t=n(this),u=t.data("filter-list"),r=t.find("input[type=text]"),f=t.find("input[type=radio]"),i=n(u).find(".list-group-item");r.keyup(function(){var t=r.val();i.each(function(){0==n(this).text().toLowerCase().indexOf(t.toLowerCase())?n(this).show():n(this).hide()})});f.on("click",function(){var t=n(this).val();"all"!==t?(i.hide(),n("[data-filter-item="+t+"]").show()):i.show()})})}(n("[data-filter-list]")),function(t,i){t.each(function(){var t=n(this),r=n(this).data("date-time");(i||t).downCount({date:r,offset:10})})}(n(".countdown")),n("[data-toast]").on("click",function(){var e=n(this),i=e.data("toast-type"),r=e.data("toast-icon"),o=e.data("toast-position"),u=e.data("toast-title"),f=e.data("toast-message"),t="";switch(o){case"topRight":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"topRight",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInLeft",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;case"bottomRight":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"bottomRight",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInLeft",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;case"topLeft":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"topLeft",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInRight",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;case"bottomLeft":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"bottomLeft",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInRight",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;case"topCenter":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"topCenter",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInDown",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;case"bottomCenter":t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"bottomCenter",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInUp",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"};break;default:t={"class":"iziToast-"+i||"",title:u||"Title",message:f||"toast message",animateInside:!1,position:"topRight",progressBar:!1,icon:r,timeout:3200,transitionIn:"fadeInLeft",transitionOut:"fadeOut",transitionInMobile:"fadeIn",transitionOutMobile:"fadeOut"}}iziToast.show(t)}),n(".isotope-grid").length)&&(e=n(".isotope-grid").imagesLoaded(function(){e.isotope({itemSelector:".grid-item",transitionDuration:"0.7s",masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"}})})),n(".filter-grid").length>0){o=n(".filter-grid");n(".nav-pills").on("click","a",function(t){t.preventDefault();n(".nav-pills a").removeClass("active");n(this).addClass("active");var i=n(this).attr("data-filter");o.isotope({filter:i})})}i=n(".interactive-credit-card");(i.length&&i.card({form:".interactive-credit-card",container:".card-wrapper"}),n(".gallery-wrapper").length)&&!function(t){function e(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")>-1}for(var r,o=function(t){for(var r,i,f,u,o=n(t).find(".gallery-item:not(.isotope-hidden)").get(),h=o.length,s=[],e=0;e<h;e++)r=o[e],1===r.nodeType&&(i=r.children[0],"video"==n(i).data("type")?u={html:n(i).data("video")}:(f=i.getAttribute("data-size").split("x"),u={src:i.getAttribute("href"),w:parseInt(f[0],10),h:parseInt(f[1],10)}),r.children.length>1&&(u.title=n(r).find(".caption").html()),i.children.length>0&&(u.msrc=i.children[0].getAttribute("src")),u.el=r,s.push(u));return s},s=function n(t,i){return t&&(i(t)?t:n(t.parentNode,i))},h=function(t){var h,i;if(t=t||window.event,t.preventDefault?t.preventDefault():t.returnValue=!1,h=t.target||t.srcElement,i=s(h,function(n){return e(n,"gallery-item")}),i){for(var u,l=i.closest(".gallery-wrapper"),o=n(i.closest(".gallery-wrapper")).find(".gallery-item:not(.isotope-hidden)").get(),a=o.length,c=0,r=0;r<a;r++)if(1===o[r].nodeType){if(o[r]===i){u=c;break}c++}return u>=0&&f(u,l),!1}},f=function(t,i,r,u){var e,f,s,c=document.querySelectorAll(".pswp")[0],h;if(s=o(i),f={closeOnScroll:!1,galleryUID:i.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(t){var r=s[t].el.getElementsByTagName("img")[0],u,i;if(n(r).length>0)return u=window.pageYOffset||document.documentElement.scrollTop,i=r.getBoundingClientRect(),{x:i.left,y:i.top+u,w:i.width}}},u)if(f.galleryPIDs){for(h=0;h<s.length;h++)if(s[h].pid==t){f.index=h;break}}else f.index=parseInt(t,10)-1;else f.index=parseInt(t,10);isNaN(f.index)||(r&&(f.showAnimationDuration=0),e=new PhotoSwipe(c,PhotoSwipeUI_Default,s,f),e.init(),e.listen("beforeChange",function(){var t=n(e.currItem.container);n(".pswp__video").removeClass("active");t.find(".pswp__video").addClass("active");n(".pswp__video").each(function(){n(this).hasClass("active")||n(this).attr("src",n(this).attr("src"))})}),e.listen("close",function(){n(".pswp__video").each(function(){n(this).attr("src",n(this).attr("src"))})}))},u=document.querySelectorAll(t),i=0,c=u.length;i<c;i++)u[i].setAttribute("data-pswp-uid",i+1),u[i].onclick=h;r=function(){var u=window.location.hash.substring(1),n={},i,t,r;if(u.length<5)return n;for(i=u.split("&"),t=0;t<i.length;t++)i[t]&&(r=i[t].split("="),r.length<2||(n[r[0]]=r[1]));return n.gid&&(n.gid=parseInt(n.gid,10)),n}();r.pid&&r.gid&&f(r.pid,u[r.gid-1],!0,!0)}(".gallery-wrapper");r=n(".product-carousel");r.length&&r.owlCarousel({items:1,loop:!1,dots:!1,URLhashListener:!0,startPosition:"URLHash",onTranslate:c})})