text: function FastClick(t){"use strict";var e,r=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=t,!t||!t.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return FastClick.prototype.onClick.apply(r,arguments)},this.onMouse=function(){return FastClick.prototype.onMouse.apply(r,arguments)},this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(r,arguments)},this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(r,arguments)},this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(r,arguments)},this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(r,arguments)},FastClick.notNeeded(t)||(this.deviceIsAndroid&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,r,n){var i=Node.prototype.removeEventListener;"click"===e?i.call(t,e,r.hijacked||r,n):i.call(t,e,r,n)},t.addEventListener=function(e,r,n){var i=Node.prototype.addEventListener;"click"===e?i.call(t,e,r.hijacked||(r.hijacked=function(t){t.propagationStopped||r(t)}),n):i.call(t,e,r,n)}),"function"==typeof t.onclick&&(e=t.onclick,t.addEventListener("click",function(t){e(t)},!1),t.onclick=null))}(function(){"use strict";function t(){}function e(t,e){for(var r=t.length;r--;)if(t[r].listener===e)return r;return-1}function r(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,i=this,s=i.EventEmitter;n.getListeners=function(t){var e,r,n=this._getEvents();if(t instanceof RegExp){e={};for(r in n)n.hasOwnProperty(r)&&t.test(r)&&(e[r]=n[r])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,r=[];for(e=0;e<t.length;e+=1)r.push(t[e].listener);return r},n.getListenersAsObject=function(t){var e,r=this.getListeners(t);return r instanceof Array&&(e={},e[t]=r),e||r},n.addListener=function(t,r){var n,i=this.getListenersAsObject(t),s="object"==typeof r;for(n in i)i.hasOwnProperty(n)&&-1===e(i[n],r)&&i[n].push(s?r:{listener:r,once:!1});return this},n.on=r("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=r("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,r){var n,i,s=this.getListenersAsObject(t);for(i in s)s.hasOwnProperty(i)&&(n=e(s[i],r),-1!==n&&s[i].splice(n,1));return this},n.off=r("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,r){var n,i,s=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=r.length;n--;)s.call(this,e,r[n]);else for(n in e)e.hasOwnProperty(n)&&(i=e[n])&&("function"==typeof i?s.call(this,n,i):o.call(this,n,i));return this},n.removeEvent=function(t){var e,r=typeof t,n=this._getEvents();if("string"===r)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=r("removeEvent"),n.emitEvent=function(t,e){var r,n,i,s,o=this.getListenersAsObject(t);for(i in o)if(o.hasOwnProperty(i))for(n=o[i].length;n--;)r=o[i][n],r.once===!0&&this.removeListener(t,r.listener),s=r.listener.apply(this,e||[]),s===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=r("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=s,t},"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}).call(this),!function(t){"use strict";function e(e){var r=t.event;return r.target=r.target||r.srcElement||e,r}var r=document.documentElement,n=function(){};r.addEventListener?n=function(t,e,r){t.addEventListener(e,r,!1)}:r.attachEvent&&(n=function(t,r,n){t[r+n]=n.handleEvent?function(){var r=e(t);n.handleEvent.call(n,r)}:function(){var r=e(t);n.call(t,r)},t.attachEvent("on"+r,t[r+n])});var i=function(){};r.removeEventListener?i=function(t,e,r){t.removeEventListener(e,r,!1)}:r.detachEvent&&(i=function(t,e,r){t.detachEvent("on"+e,t[e+r]);try{delete t[e+r]}catch(n){t[e+r]=void 0}});var s={bind:n,unbind:i};"function"==typeof define&&define.amd?define(s):"object"==typeof exports?module.exports=s:t.eventie=s}(this),!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(r,n){return e(t,r,n)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,r){"use strict";function n(t,e){for(var r in e)t[r]=e[r];return t}function i(t){return"[object Array]"===p.call(t)}function s(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var r=0,n=t.length;n>r;r++)e.push(t[r]);else e.push(t);return e}function o(t,e,r){if(!(this instanceof o))return new o(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=s(t),this.options=n({},this.options),"function"==typeof e?r=e:n(this.options,e),r&&this.on("always",r),this.getImages(),u&&(this.jqDeferred=new u.Deferred);var i=this;setTimeout(function(){i.check()})}function a(t){this.img=t}function l(t){this.src=t,h[t]=this}var u=t.jQuery,c=t.console,f="undefined"!=typeof c,p=Object.prototype.toString;o.prototype=new e,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var r=this.elements[t];"IMG"===r.nodeName&&this.addImage(r);var n=r.nodeType;if(n&&(1===n||9===n||11===n))for(var i=r.querySelectorAll("img"),s=0,o=i.length;o>s;s++){var a=i[s];this.addImage(a)}}},o.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},o.prototype.check=function(){function t(t,i){return e.options.debug&&f&&c.log("confirm",t,i),e.progress(t),r++,r===n&&e.complete(),!0}var e=this,r=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var i=0;n>i;i++){var s=this.images[i];s.on("confirm",t),s.check()}},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var r=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[r](e)}})},u&&(u.fn.imagesLoaded=function(t,e){var r=new o(this,t,e);return r.jqDeferred.promise(u(this))}),a.prototype=new e,a.prototype.check=function(){var t=h[this.img.src]||new l(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,r){return e.confirm(t.isLoaded,r),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var h={};return l.prototype=new e,l.prototype.check=function(){if(!this.isChecked){var t=new Image;r.bind(t,"load",this),r.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},l.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.unbindProxyEvents=function(t){r.unbind(t.target,"load",this),r.unbind(t.target,"error",this)},o}),FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),FastClick.prototype.needsClick=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(this.deviceIsIOS&&"file"===t.type||t.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(t.className)},FastClick.prototype.needsFocus=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},FastClick.prototype.sendClick=function(t,e){"use strict";var r,n;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),n=e.changedTouches[0],r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.forwardedTouchEvent=!0,t.dispatchEvent(r)},FastClick.prototype.focus=function(t){"use strict";var e;this.deviceIsIOS&&t.setSelectionRange?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},FastClick.prototype.updateScrollParent=function(t){"use strict";var e,r;if(e=t.fastClickScrollParent,!e||!e.contains(t)){r=t;do{if(r.scrollHeight>r.offsetHeight){e=r,t.fastClickScrollParent=r;break}r=r.parentElement}while(r)}e&&(e.fastClickLastScrollTop=e.scrollTop)},FastClick.prototype.getTargetElementFromEventTarget=function(t){"use strict";return t.nodeType===Node.TEXT_NODE?t.parentNode:t},FastClick.prototype.onTouchStart=function(t){"use strict";var e,r,n;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),r=t.targetTouches[0],this.deviceIsIOS){if(n=window.getSelection(),n.rangeCount&&!n.isCollapsed)return!0;if(!this.deviceIsIOS4){if(r.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=r.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=r.pageX,this.touchStartY=r.pageY,t.timeStamp-this.lastClickTime<200&&t.preventDefault(),!0},FastClick.prototype.touchHasMoved=function(t){"use strict";var e=t.changedTouches[0],r=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>r||Math.abs(e.pageY-this.touchStartY)>r?!0:!1},FastClick.prototype.onTouchMove=function(t){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},FastClick.prototype.findControl=function(t){"use strict";return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},FastClick.prototype.onTouchEnd=function(t){"use strict";var e,r,n,i,s,o=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.lastClickTime=t.timeStamp,r=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(s=t.changedTouches[0],o=document.elementFromPoint(s.pageX-window.pageXOffset,s.pageY-window.pageYOffset)||o,o.fastClickScrollParent=this.targetElement.fastClickScrollParent),n=o.tagName.toLowerCase(),"label"===n){if(e=this.findControl(o)){if(this.focus(o),this.deviceIsAndroid)return!1;o=e}}else if(this.needsFocus(o))return t.timeStamp-r>100||this.deviceIsIOS&&window.top!==window&&"input"===n?(this.targetElement=null,!1):(this.focus(o),this.deviceIsIOS4&&"select"===n||(this.targetElement=null,t.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(i=o.fastClickScrollParent,i&&i.fastClickLastScrollTop!==i.scrollTop)?!0:(this.needsClick(o)||(t.preventDefault(),this.sendClick(o,t)),!1)},FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},FastClick.prototype.onMouse=function(t){"use strict";return this.targetElement?t.forwardedTouchEvent?!0:!t.cancelable||this.needsClick(this.targetElement)&&!this.cancelNextClick?!0:(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1):!0},FastClick.prototype.onClick=function(t){"use strict";var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail?!0:(e=this.onMouse(t),e||(this.targetElement=null),e)},FastClick.prototype.destroy=function(){"use strict";var t=this.layer;this.deviceIsAndroid&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},FastClick.notNeeded=function(t){"use strict";var e;if("undefined"==typeof window.ontouchstart)return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(!FastClick.prototype.deviceIsAndroid)return!0;if(e=document.querySelector("meta[name=viewport]"),e&&-1!==e.content.indexOf("user-scalable=no"))return!0}return"none"===t.style.msTouchAction?!0:!1},FastClick.attach=function(t){"use strict";return new FastClick(t)},"undefined"!=typeof define&&define.amd?define(function(){"use strict";return FastClick}):"undefined"!=typeof module&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick,function(){function t(t){function e(e,r,n,i,s,o){for(;s>=0&&o>s;s+=t){var a=i?i[s]:s;n=r(n,e[a],a,e)}return n}return function(r,n,i,s){n=y(n,s,4);var o=!S(r)&&v.keys(r),a=(o||r).length,l=t>0?0:a-1;return arguments.length<3&&(i=r[o?o[l]:l],l+=t),e(r,n,i,o,l,a)}}function e(t){return function(e,r,n){r=_(r,n);for(var i=null!=e&&e.length,s=t>0?0:i-1;s>=0&&i>s;s+=t)if(r(e[s],s,e))return s;return-1}}function r(t,e){var r=O.length,n=t.constructor,i=v.isFunction(n)&&n.prototype||o,s="constructor";for(v.has(t,s)&&!v.contains(e,s)&&e.push(s);r--;)s=O[r],s in t&&t[s]!==i[s]&&!v.contains(e,s)&&e.push(s)}var n=this,i=n._,s=Array.prototype,o=Object.prototype,a=Function.prototype,l=s.push,u=s.slice,c=o.toString,f=o.hasOwnProperty,p=Array.isArray,h=Object.keys,d=a.bind,g=Object.create,m=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):n._=v,v.VERSION="1.8.2";var y=function(t,e,r){if(void 0===e)return t;switch(null==r?3:r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,s){return t.call(e,r,n,i,s)}}return function(){return t.apply(e,arguments)}},_=function(t,e,r){return null==t?v.identity:v.isFunction(t)?y(t,e,r):v.isObject(t)?v.matcher(t):v.property(t)};v.iteratee=function(t,e){return _(t,e,1/0)};var x=function(t,e){return function(r){var n=arguments.length;if(2>n||null==r)return r;for(var i=1;n>i;i++)for(var s=arguments[i],o=t(s),a=o.length,l=0;a>l;l++){var u=o[l];e&&void 0!==r[u]||(r[u]=s[u])}return r}},b=function(t){if(!v.isObject(t))return{};if(g)return g(t);m.prototype=t;var e=new m;return m.prototype=null,e},w=Math.pow(2,53)-1,S=function(t){var e=t&&t.length;return"number"==typeof e&&e>=0&&w>=e};v.each=v.forEach=function(t,e,r){e=y(e,r);var n,i;if(S(t))for(n=0,i=t.length;i>n;n++)e(t[n],n,t);else{var s=v.keys(t);for(n=0,i=s.length;i>n;n++)e(t[s[n]],s[n],t)}return t},v.map=v.collect=function(t,e,r){e=_(e,r);for(var n=!S(t)&&v.keys(t),i=(n||t).length,s=Array(i),o=0;i>o;o++){var a=n?n[o]:o;s[o]=e(t[a],a,t)}return s},v.reduce=v.foldl=v.inject=t(1),v.reduceRight=v.foldr=t(-1),v.find=v.detect=function(t,e,r){var n;return n=S(t)?v.findIndex(t,e,r):v.findKey(t,e,r),void 0!==n&&-1!==n?t[n]:void 0},v.filter=v.select=function(t,e,r){var n=[];return e=_(e,r),v.each(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n},v.reject=function(t,e,r){return v.filter(t,v.negate(_(e)),r)},v.every=v.all=function(t,e,r){e=_(e,r);for(var n=!S(t)&&v.keys(t),i=(n||t).length,s=0;i>s;s++){var o=n?n[s]:s;if(!e(t[o],o,t))return!1}return!0},v.some=v.any=function(t,e,r){e=_(e,r);for(var n=!S(t)&&v.keys(t),i=(n||t).length,s=0;i>s;s++){var o=n?n[s]:s;if(e(t[o],o,t))return!0}return!1},v.contains=v.includes=v.include=function(t,e,r){return S(t)||(t=v.values(t)),v.indexOf(t,e,"number"==typeof r&&r)>=0},v.invoke=function(t,e){var r=u.call(arguments,2),n=v.isFunction(e);return v.map(t,function(t){var i=n?e:t[e];return null==i?i:i.apply(t,r)})},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,r){var n,i,s=-1/0,o=-1/0;if(null==e&&null!=t){t=S(t)?t:v.values(t);for(var a=0,l=t.length;l>a;a++)n=t[a],n>s&&(s=n)}else e=_(e,r),v.each(t,function(t,r,n){i=e(t,r,n),(i>o||i===-1/0&&s===-1/0)&&(s=t,o=i)});return s},v.min=function(t,e,r){var n,i,s=1/0,o=1/0;if(null==e&&null!=t){t=S(t)?t:v.values(t);for(var a=0,l=t.length;l>a;a++)n=t[a],s>n&&(s=n)}else e=_(e,r),v.each(t,function(t,r,n){i=e(t,r,n),(o>i||1/0===i&&1/0===s)&&(s=t,o=i)});return s},v.shuffle=function(t){for(var e,r=S(t)?t:v.values(t),n=r.length,i=Array(n),s=0;n>s;s++)e=v.random(0,s),e!==s&&(i[s]=i[e]),i[e]=r[s];return i},v.sample=function(t,e,r){return null==e||r?(S(t)||(t=v.values(t)),t[v.random(t.length-1)]):v.shuffle(t).slice(0,Math.max(0,e))},v.sortBy=function(t,e,r){return e=_(e,r),v.pluck(v.map(t,function(t,r,n){return{value:t,index:r,criteria:e(t,r,n)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(n>r||void 0===n)return-1}return t.index-e.index}),"value")};var T=function(t){return function(e,r,n){var i={};return r=_(r,n),v.each(e,function(n,s){var o=r(n,s,e);t(i,n,o)}),i}};v.groupBy=T(function(t,e,r){v.has(t,r)?t[r].push(e):t[r]=[e]}),v.indexBy=T(function(t,e,r){t[r]=e}),v.countBy=T(function(t,e,r){v.has(t,r)?t[r]++:t[r]=1}),v.toArray=function(t){return t?v.isArray(t)?u.call(t):S(t)?v.map(t,v.identity):v.values(t):[]},v.size=function(t){return null==t?0:S(t)?t.length:v.keys(t).length},v.partition=function(t,e,r){e=_(e,r);var n=[],i=[];return v.each(t,function(t,r,s){(e(t,r,s)?n:i).push(t)}),[n,i]},v.first=v.head=v.take=function(t,e,r){return null==t?void 0:null==e||r?t[0]:v.initial(t,t.length-e)},v.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},v.last=function(t,e,r){return null==t?void 0:null==e||r?t[t.length-1]:v.rest(t,Math.max(0,t.length-e))},v.rest=v.tail=v.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},v.compact=function(t){return v.filter(t,v.identity)};var k=function(t,e,r,n){for(var i=[],s=0,o=n||0,a=t&&t.length;a>o;o++){var l=t[o];if(S(l)&&(v.isArray(l)||v.isArguments(l))){e||(l=k(l,e,r));var u=0,c=l.length;for(i.length+=c;c>u;)i[s++]=l[u++]}else r||(i[s++]=l)}return i};v.flatten=function(t,e){return k(t,e,!1)},v.without=function(t){return v.difference(t,u.call(arguments,1))},v.uniq=v.unique=function(t,e,r,n){if(null==t)return[];v.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=_(r,n));for(var i=[],s=[],o=0,a=t.length;a>o;o++){var l=t[o],u=r?r(l,o,t):l;e?(o&&s===u||i.push(l),s=u):r?v.contains(s,u)||(s.push(u),i.push(l)):v.contains(i,l)||i.push(l)}return i},v.union=function(){return v.uniq(k(arguments,!0,!0))},v.intersection=function(t){if(null==t)return[];for(var e=[],r=arguments.length,n=0,i=t.length;i>n;n++){var s=t[n];if(!v.contains(e,s)){for(var o=1;r>o&&v.contains(arguments[o],s);o++);o===r&&e.push(s)}}return e},v.difference=function(t){var e=k(arguments,!0,!0,1);return v.filter(t,function(t){return!v.contains(e,t)})},v.zip=function(){return v.unzip(arguments)},v.unzip=function(t){for(var e=t&&v.max(t,"length").length||0,r=Array(e),n=0;e>n;n++)r[n]=v.pluck(t,n);return r},v.object=function(t,e){for(var r={},n=0,i=t&&t.length;i>n;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r},v.indexOf=function(t,e,r){var n=0,i=t&&t.length;if("number"==typeof r)n=0>r?Math.max(0,i+r):r;else if(r&&i)return n=v.sortedIndex(t,e),t[n]===e?n:-1;if(e!==e)return v.findIndex(u.call(t,n),v.isNaN);for(;i>n;n++)if(t[n]===e)return n;return-1},v.lastIndexOf=function(t,e,r){var n=t?t.length:0;if("number"==typeof r&&(n=0>r?n+r+1:Math.min(n,r+1)),e!==e)return v.findLastIndex(u.call(t,0,n),v.isNaN);for(;--n>=0;)if(t[n]===e)return n;return-1},v.findIndex=e(1),v.findLastIndex=e(-1),v.sortedIndex=function(t,e,r,n){r=_(r,n,1);for(var i=r(e),s=0,o=t.length;o>s;){var a=Math.floor((s+o)/2);r(t[a])<i?s=a+1:o=a}return s},v.range=function(t,e,r){arguments.length<=1&&(e=t||0,t=0),r=r||1;for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),s=0;n>s;s++,t+=r)i[s]=t;return i};var P=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var s=b(t.prototype),o=t.apply(s,i);return v.isObject(o)?o:s};v.bind=function(t,e){if(d&&t.bind===d)return d.apply(t,u.call(arguments,1));if(!v.isFunction(t))throw new TypeError("Bind must be called on a function");var r=u.call(arguments,2),n=function(){return P(t,n,e,this,r.concat(u.call(arguments)))};return n},v.partial=function(t){var e=u.call(arguments,1),r=function(){for(var n=0,i=e.length,s=Array(i),o=0;i>o;o++)s[o]=e[o]===v?arguments[n++]:e[o];for(;n<arguments.length;)s.push(arguments[n++]);return P(t,r,this,this,s)};return r},v.bindAll=function(t){var e,r,n=arguments.length;if(1>=n)throw new Error("bindAll must be passed function names");for(e=1;n>e;e++)r=arguments[e],t[r]=v.bind(t[r],t);return t},v.memoize=function(t,e){var r=function(n){var i=r.cache,s=""+(e?e.apply(this,arguments):n);return v.has(i,s)||(i[s]=t.apply(this,arguments)),i[s]};return r.cache={},r},v.delay=function(t,e){var r=u.call(arguments,2);return setTimeout(function(){return t.apply(null,r)},e)},v.defer=v.partial(v.delay,v,1),v.throttle=function(t,e,r){var n,i,s,o=null,a=0;r||(r={});var l=function(){a=r.leading===!1?0:v.now(),o=null,s=t.apply(n,i),o||(n=i=null)};return function(){var u=v.now();a||r.leading!==!1||(a=u);var c=e-(u-a);return n=this,i=arguments,0>=c||c>e?(o&&(clearTimeout(o),o=null),a=u,s=t.apply(n,i),o||(n=i=null)):o||r.trailing===!1||(o=setTimeout(l,c)),s}},v.debounce=function(t,e,r){var n,i,s,o,a,l=function(){var u=v.now()-o;e>u&&u>=0?n=setTimeout(l,e-u):(n=null,r||(a=t.apply(s,i),n||(s=i=null)))};return function(){s=this,i=arguments,o=v.now();var u=r&&!n;return n||(n=setTimeout(l,e)),u&&(a=t.apply(s,i),s=i=null),a}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var r=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);return n}},v.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},v.before=function(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),1>=t&&(e=null),r}},v.once=v.partial(v.before,2);var C=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];v.keys=function(t){if(!v.isObject(t))return[];if(h)return h(t);var e=[];for(var n in t)v.has(t,n)&&e.push(n);return C&&r(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return C&&r(t,e),e},v.values=function(t){for(var e=v.keys(t),r=e.length,n=Array(r),i=0;r>i;i++)n[i]=t[e[i]];return n},v.mapObject=function(t,e,r){e=_(e,r);for(var n,i=v.keys(t),s=i.length,o={},a=0;s>a;a++)n=i[a],o[n]=e(t[n],n,t);return o},v.pairs=function(t){for(var e=v.keys(t),r=e.length,n=Array(r),i=0;r>i;i++)n[i]=[e[i],t[e[i]]];return n},v.invert=function(t){for(var e={},r=v.keys(t),n=0,i=r.length;i>n;n++)e[t[r[n]]]=r[n];return e},v.functions=v.methods=function(t){var e=[];for(var r in t)v.isFunction(t[r])&&e.push(r);return e.sort()},v.extend=x(v.allKeys),v.extendOwn=v.assign=x(v.keys),v.findKey=function(t,e,r){e=_(e,r);for(var n,i=v.keys(t),s=0,o=i.length;o>s;s++)if(n=i[s],e(t[n],n,t))return n},v.pick=function(t,e,r){var n,i,s={},o=t;if(null==o)return s;v.isFunction(e)?(i=v.allKeys(o),n=y(e,r)):(i=k(arguments,!1,!1,1),n=function(t,e,r){return e in r},o=Object(o));for(var a=0,l=i.length;l>a;a++){var u=i[a],c=o[u];n(c,u,o)&&(s[u]=c)}return s},v.omit=function(t,e,r){if(v.isFunction(e))e=v.negate(e);else{var n=v.map(k(arguments,!1,!1,1),String);e=function(t,e){return!v.contains(n,e)}}return v.pick(t,e,r)},v.defaults=x(v.allKeys,!0),v.clone=function(t){return v.isObject(t)?v.isArray(t)?t.slice():v.extend({},t):t},v.tap=function(t,e){return e(t),t},v.isMatch=function(t,e){var r=v.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),s=0;n>s;s++){var o=r[s];if(e[o]!==i[o]||!(o in i))return!1}return!0};var A=function(t,e,r,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof v&&(t=t._wrapped),e instanceof v&&(e=e._wrapped);var i=c.call(t);if(i!==c.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var s="[object Array]"===i;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}r=r||[],n=n||[];for(var l=r.length;l--;)if(r[l]===t)return n[l]===e;if(r.push(t),n.push(e),s){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!A(t[l],e[l],r,n))return!1}else{var u,f=v.keys(t);if(l=f.length,v.keys(e).length!==l)return!1;for(;l--;)if(u=f[l],!v.has(e,u)||!A(t[u],e[u],r,n))return!1}return r.pop(),n.pop(),!0};v.isEqual=function(t,e){return A(t,e)},v.isEmpty=function(t){return null==t?!0:S(t)&&(v.isArray(t)||v.isString(t)||v.isArguments(t))?0===t.length:0===v.keys(t).length},v.isElement=function(t){return!(!t||1!==t.nodeType)},v.isArray=p||function(t){return"[object Array]"===c.call(t)},v.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){v["is"+t]=function(e){return c.call(e)==="[object "+t+"]"}}),v.isArguments(arguments)||(v.isArguments=function(t){return v.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(t){return"function"==typeof t||!1}),v.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},v.isNaN=function(t){return v.isNumber(t)&&t!==+t},v.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===c.call(t)},v.isNull=function(t){return null===t},v.isUndefined=function(t){return void 0===t},v.has=function(t,e){return null!=t&&f.call(t,e)},v.noConflict=function(){return n._=i,this},v.identity=function(t){return t},v.constant=function(t){return function(){return t}},v.noop=function(){},v.property=function(t){return function(e){return null==e?void 0:e[t]}},v.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(e){return v.isMatch(e,t)}},v.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;t>i;i++)n[i]=e(i);return n},v.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},v.now=Date.now||function(){return(new Date).getTime()};var E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},I=v.invert(E),L=function(t){var e=function(e){return t[e]},r="(?:"+v.keys(t).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,e):t}};v.escape=L(E),v.unescape=L(I),v.result=function(t,e,r){var n=null==t?void 0:t[e];return void 0===n&&(n=r),v.isFunction(n)?n.call(t):n};var F=0;v.uniqueId=function(t){var e=++F+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},M=/\\|'|\r|\n|\u2028|\u2029/g,V=function(t){return"\\"+j[t]};v.template=function(t,e,r){!e&&r&&(e=r),e=v.defaults({},e,v.templateSettings);var n=RegExp([(e.escape||R).source,(e.interpolate||R).source,(e.evaluate||R).source].join("|")+"|$","g"),i=0,s="__p+='";t.replace(n,function(e,r,n,o,a){return s+=t.slice(i,a).replace(M,V),i=a+e.length,r?s+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var l=function(t){return o.call(this,t,v)},u=e.variable||"obj";return l.source="function("+u+"){\n"+s+"}",l},v.chain=function(t){var e=v(t);return e._chain=!0,e};var N=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),function(e){var r=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),N(this,r.apply(v,t))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=s[t];v.prototype[t]=function(){var r=this._wrapped;return e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0],N(this,r)}}),v.each(["concat","join","slice"],function(t){var e=s[t];v.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}.call(this),!function(t){function e(t){var e=t.length,n=r.type(t);return"function"===n||r.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}if(!t.jQuery){var r=function(t,e){return new r.fn.init(t,e)};r.isWindow=function(t){return null!=t&&t==t.window},r.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t},r.isArray=Array.isArray||function(t){return"array"===r.type(t)},r.isPlainObject=function(t){var e;if(!t||"object"!==r.type(t)||t.nodeType||r.isWindow(t))return!1;try{if(t.constructor&&!s.call(t,"constructor")&&!s.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(e in t);return void 0===e||s.call(t,e)},r.each=function(t,r,n){var i,s=0,o=t.length,a=e(t);if(n){if(a)for(;o>s&&(i=r.apply(t[s],n),i!==!1);s++);else for(s in t)if(i=r.apply(t[s],n),i===!1)break}else if(a)for(;o>s&&(i=r.call(t[s],s,t[s]),i!==!1);s++);else for(s in t)if(i=r.call(t[s],s,t[s]),i===!1)break;return t},r.data=function(t,e,i){if(void 0===i){var s=t[r.expando],o=s&&n[s];if(void 0===e)return o;
  
  if(o&&e in o)return o[e]}else if(void 0!==e){var s=t[r.expando]||(t[r.expando]=++r.uuid);return n[s]=n[s]||{},n[s][e]=i,i}},r.removeData=function(t,e){var i=t[r.expando],s=i&&n[i];s&&r.each(e,function(t,e){delete s[e]})},r.extend=function(){var t,e,n,i,s,o,a=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==r.type(a)&&(a={}),l===u&&(a=this,l--);u>l;l++)if(null!=(s=arguments[l]))for(i in s)t=a[i],n=s[i],a!==n&&(c&&n&&(r.isPlainObject(n)||(e=r.isArray(n)))?(e?(e=!1,o=t&&r.isArray(t)?t:[]):o=t&&r.isPlainObject(t)?t:{},a[i]=r.extend(c,o,n)):void 0!==n&&(a[i]=n));return a},r.queue=function(t,n,i){function s(t,r){var n=r||[];return null!=t&&(e(Object(t))?!function(t,e){for(var r=+e.length,n=0,i=t.length;r>n;)t[i++]=e[n++];if(r!==r)for(;void 0!==e[n];)t[i++]=e[n++];return t.length=i,t}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}if(t){n=(n||"fx")+"queue";var o=r.data(t,n);return i?(!o||r.isArray(i)?o=r.data(t,n,s(i)):o.push(i),o):o||[]}},r.dequeue=function(t,e){r.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var i=r.queue(n,e),s=i.shift();"inprogress"===s&&(s=i.shift()),s&&("fx"===e&&i.unshift("inprogress"),s.call(n,function(){r.dequeue(n,e)}))})},r.fn=r.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),n=this.offset(),i=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:r(t).offset();return n.top-=parseFloat(e.style.marginTop)||0,n.left-=parseFloat(e.style.marginLeft)||0,t.style&&(i.top+=parseFloat(t.style.borderTopWidth)||0,i.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-i.top,left:n.left-i.left}}};var n={};r.expando="velocity"+(new Date).getTime(),r.uuid=0;for(var i={},s=i.hasOwnProperty,o=i.toString,a="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<a.length;l++)i["[object "+a[l]+"]"]=a[l].toLowerCase();r.fn.init.prototype=r.fn,t.Velocity={Utilities:r}}}(window),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):t()}(function(){return function(t,e,r,n){function i(t){for(var e=-1,r=t?t.length:0,n=[];++e<r;){var i=t[e];i&&n.push(i)}return n}function s(t){return g.isWrapped(t)?t=[].slice.call(t):g.isNode(t)&&(t=[t]),t}function o(t){var e=p.data(t,"velocity");return null===e?n:e}function a(t){return function(e){return Math.round(e*t)*(1/t)}}function l(t,r,n,i){function s(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function l(t,e,r){return((s(e,r)*t+o(e,r))*t+a(e))*t}function u(t,e,r){return 3*s(e,r)*t*t+2*o(e,r)*t+a(e)}function c(e,r){for(var i=0;g>i;++i){var s=u(r,t,n);if(0===s)return r;var o=l(r,t,n)-e;r-=o/s}return r}function f(){for(var e=0;_>e;++e)S[e]=l(e*x,t,n)}function p(e,r,i){var s,o,a=0;do o=r+(i-r)/2,s=l(o,t,n)-e,s>0?i=o:r=o;while(Math.abs(s)>v&&++a<y);return o}function h(e){for(var r=0,i=1,s=_-1;i!=s&&S[i]<=e;++i)r+=x;--i;var o=(e-S[i])/(S[i+1]-S[i]),a=r+o*x,l=u(a,t,n);return l>=m?c(e,a):0==l?a:p(e,r,r+x)}function d(){T=!0,(t!=r||n!=i)&&f()}var g=4,m=.001,v=1e-7,y=10,_=11,x=1/(_-1),b="Float32Array"in e;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var S=b?new Float32Array(_):new Array(_),T=!1,k=function(e){return T||d(),t===r&&n===i?e:0===e?0:1===e?1:l(h(e),r,i)};k.getControlPoints=function(){return[{x:t,y:r},{x:n,y:i}]};var P="generateBezier("+[t,r,n,i]+")";return k.toString=function(){return P},k}function u(t,e){var r=t;return g.isString(t)?_.Easings[t]||(r=!1):r=g.isArray(t)&&1===t.length?a.apply(null,t):g.isArray(t)&&2===t.length?x.apply(null,t.concat([e])):g.isArray(t)&&4===t.length?l.apply(null,t):!1,r===!1&&(r=_.Easings[_.defaults.easing]?_.defaults.easing:y),r}function c(t){if(t)for(var e=(new Date).getTime(),r=0,i=_.State.calls.length;i>r;r++)if(_.State.calls[r]){var s=_.State.calls[r],a=s[0],l=s[2],u=s[3],h=!!u;u||(u=_.State.calls[r][3]=e-16);for(var d=Math.min((e-u)/l.duration,1),m=0,v=a.length;v>m;m++){var y=a[m],x=y.element;if(o(x)){var w=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var T=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];p.each(T,function(t,e){b.setPropertyValue(x,"display",e)})}b.setPropertyValue(x,"display",l.display)}l.visibility!==n&&"hidden"!==l.visibility&&b.setPropertyValue(x,"visibility",l.visibility);for(var k in y)if("element"!==k){var P,C=y[k],O=g.isString(C.easing)?_.Easings[C.easing]:C.easing;if(1===d)P=C.endValue;else if(P=C.startValue+(C.endValue-C.startValue)*O(d),!h&&P===C.currentValue)continue;if(C.currentValue=P,b.Hooks.registered[k]){var A=b.Hooks.getRoot(k),E=o(x).rootPropertyValueCache[A];E&&(C.rootPropertyValue=E)}var I=b.setPropertyValue(x,k,C.currentValue+(0===parseFloat(P)?"":C.unitType),C.rootPropertyValue,C.scrollData);b.Hooks.registered[k]&&(o(x).rootPropertyValueCache[A]=b.Normalizations.registered[A]?b.Normalizations.registered[A]("extract",null,I[1]):I[1]),"transform"===I[0]&&(w=!0)}l.mobileHA&&o(x).transformCache.translate3d===n&&(o(x).transformCache.translate3d="(0px, 0px, 0px)",w=!0),w&&b.flushTransformCache(x)}}l.display!==n&&"none"!==l.display&&(_.State.calls[r][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(_.State.calls[r][2].visibility=!1),l.progress&&l.progress.call(s[1],s[1],d,Math.max(0,u+l.duration-e),u),1===d&&f(r)}_.State.isTicking&&S(c)}function f(t,e){if(!_.State.calls[t])return!1;for(var r=_.State.calls[t][0],i=_.State.calls[t][1],s=_.State.calls[t][2],a=_.State.calls[t][4],l=!1,u=0,c=r.length;c>u;u++){var f=r[u].element;if(e||s.loop||("none"===s.display&&b.setPropertyValue(f,"display",s.display),"hidden"===s.visibility&&b.setPropertyValue(f,"visibility",s.visibility)),s.loop!==!0&&(p.queue(f)[1]===n||!/\.velocityQueueEntryFlag/i.test(p.queue(f)[1]))&&o(f)){o(f).isAnimating=!1,o(f).rootPropertyValueCache={};var h=!1;p.each(b.Lists.transforms3D,function(t,e){var r=/^scale/.test(e)?1:0,i=o(f).transformCache[e];o(f).transformCache[e]!==n&&new RegExp("^\\("+r+"[^.]").test(i)&&(h=!0,delete o(f).transformCache[e])}),s.mobileHA&&(h=!0,delete o(f).transformCache.translate3d),h&&b.flushTransformCache(f),b.Values.removeClass(f,"velocity-animating")}if(!e&&s.complete&&!s.loop&&u===c-1)try{s.complete.call(i,i)}catch(d){setTimeout(function(){throw d},1)}a&&s.loop!==!0&&a(i),s.loop!==!0||e||(p.each(o(f).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360)}),_(f,"reverse",{loop:!0,delay:s.delay})),s.queue!==!1&&p.dequeue(f,s.queue)}_.State.calls[t]=!1;for(var g=0,m=_.State.calls.length;m>g;g++)if(_.State.calls[g]!==!1){l=!0;break}l===!1&&(_.State.isTicking=!1,delete _.State.calls,_.State.calls=[])}var p,h=function(){if(r.documentMode)return r.documentMode;for(var t=7;t>4;t--){var e=r.createElement("div");if(e.innerHTML="<!--[if IE "+t+"]><span></span><![endif]-->",e.getElementsByTagName("span").length)return e=null,t}return n}(),d=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var r,n=(new Date).getTime();return r=Math.max(0,16-(n-t)),t=n+r,setTimeout(function(){e(n+r)},r)}}(),g={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==n&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},m=!1;if(t.fn&&t.fn.jquery?(p=t,m=!0):p=e.Velocity.Utilities,8>=h&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=h)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",_={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:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:p,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:y,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){p.data(t,"velocity",{isSVG:g.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:1,patch:0},debug:!1};e.pageYOffset!==n?(_.State.scrollAnchor=e,_.State.scrollPropertyLeft="pageXOffset",_.State.scrollPropertyTop="pageYOffset"):(_.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,_.State.scrollPropertyLeft="scrollLeft",_.State.scrollPropertyTop="scrollTop");var x=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,r,n){var i={x:e.x+n.dx*r,v:e.v+n.dv*r,tension:e.tension,friction:e.friction};return{dx:i.v,dv:t(i)}}function r(r,n){var i={dx:r.v,dv:t(r)},s=e(r,.5*n,i),o=e(r,.5*n,s),a=e(r,n,o),l=1/6*(i.dx+2*(s.dx+o.dx)+a.dx),u=1/6*(i.dv+2*(s.dv+o.dv)+a.dv);return r.x=r.x+l*n,r.v=r.v+u*n,r}return function n(t,e,i){var s,o,a,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,f=1e-4,p=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,i=i||null,l.tension=t,l.friction=e,s=null!==i,s?(c=n(t,e),o=c/i*p):o=p;a=r(a||l,o),u.push(1+a.x),c+=16,Math.abs(a.x)>f&&Math.abs(a.v)>f;);return s?function(t){return u[t*(u.length-1)|0]}:c}}();_.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},p.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(t,e){_.Easings[e[0]]=l.apply(null,e[1])});var b=_.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 t=0;t<b.Lists.colors.length;t++){var e="color"===b.Lists.colors[t]?"0 0 0 1":"255 255 255 1";b.Hooks.templates[b.Lists.colors[t]]=["Red Green Blue Alpha",e]}var r,n,i;if(h)for(r in b.Hooks.templates){n=b.Hooks.templates[r],i=n[0].split(" ");var s=n[1].match(b.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),s.push(s.shift()),b.Hooks.templates[r]=[i.join(" "),s.join(" ")])}for(r in b.Hooks.templates){n=b.Hooks.templates[r],i=n[0].split(" ");for(var t in i){var o=r+i[t],a=t;b.Hooks.registered[o]=[r,a]}}},getRoot:function(t){var e=b.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return b.RegEx.valueUnwrap.test(e)&&(e=e.match(b.RegEx.valueUnwrap)[1]),b.Values.isCSSNullValue(e)&&(e=b.Hooks.templates[t][1]),e},extractValue:function(t,e){var r=b.Hooks.registered[t];if(r){var n=r[0],i=r[1];return e=b.Hooks.cleanRootPropertyValue(n,e),e.toString().match(b.RegEx.valueSplit)[i]}return e},injectValue:function(t,e,r){var n=b.Hooks.registered[t];if(n){var i,s,o=n[0],a=n[1];return r=b.Hooks.cleanRootPropertyValue(o,r),i=r.toString().match(b.RegEx.valueSplit),i[a]=e,s=i.join(" ")}return r}},Normalizations:{registered:{clip:function(t,e,r){switch(t){case"name":return"clip";case"extract":var n;return b.RegEx.wrappedValueAlreadyExtracted.test(r)?n=r:(n=r.toString().match(b.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):r),n;case"inject":return"rect("+r+")"}},blur:function(t,e,r){switch(t){case"name":return"-webkit-filter";case"extract":var n=parseFloat(r);if(!n&&0!==n){var i=r.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=i?i[1]:0}return n;case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(t,e,r){if(8>=h)switch(t){case"name":return"filter";case"extract":var n=r.toString().match(/alpha\(opacity=(.*)\)/i);return r=n?n[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(t){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){9>=h||_.State.isGingerbread||(b.Lists.transformsBase=b.Lists.transformsBase.concat(b.Lists.transforms3D));for(var t=0;t<b.Lists.transformsBase.length;t++)!function(){var e=b.Lists.transformsBase[t];b.Normalizations.registered[e]=function(t,r,i){switch(t){case"name":return"transform";case"extract":return o(r)===n||o(r).transformCache[e]===n?/^scale/i.test(e)?1:0:o(r).transformCache[e].replace(/[()]/g,"");case"inject":var s=!1;switch(e.substr(0,e.length-1)){case"translate":s=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":_.State.isAndroid&&o(r).transformCache[e]===n&&1>i&&(i=1),s=!/(\d)$/i.test(i);break;case"skew":s=!/(deg|\d)$/i.test(i);break;case"rotate":s=!/(deg|\d)$/i.test(i)}return s||(o(r).transformCache[e]="("+i+")"),o(r).transformCache[e]}}}();for(var t=0;t<b.Lists.colors.length;t++)!function(){var e=b.Lists.colors[t];b.Normalizations.registered[e]=function(t,r,i){switch(t){case"name":return e;case"extract":var s;if(b.RegEx.wrappedValueAlreadyExtracted.test(i))s=i;else{var o,a={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(i)?o=a[i]!==n?a[i]:a.black:b.RegEx.isHex.test(i)?o="rgb("+b.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(o=a.black),s=(o||i).toString().match(b.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=h||3!==s.split(" ").length||(s+=" 1"),s;case"inject":return 8>=h?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=h?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||_.State.isAndroid&&!_.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(_.State.prefixMatches[t])return[_.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],r=0,n=e.length;n>r;r++){var i;if(i=0===r?t:e[r]+t.replace(/^\w/,function(t){return t.toUpperCase()}),g.isString(_.State.prefixElement.style[i]))return _.State.prefixMatches[t]=i,[i,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(r,function(t,e,r,n){return e+e+r+r+n+n}),e=n.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.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(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,r,i,s){function a(t,r){function i(){u&&b.setPropertyValue(t,"display","none")}var l=0;if(8>=h)l=p.css(t,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===b.getPropertyValue(t,"display")&&(u=!0,b.setPropertyValue(t,"display",b.Values.getDisplayType(t))),!s){if("height"===r&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetHeight-(parseFloat(b.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(b.getPropertyValue(t,"paddingBottom"))||0);return i(),c}if("width"===r&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetWidth-(parseFloat(b.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(b.getPropertyValue(t,"paddingRight"))||0);return i(),f}}var d;d=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),(h||_.State.isFirefox)&&"borderColor"===r&&(r="borderTopColor"),l=9===h&&"filter"===r?d.getPropertyValue(r):d[r],(""===l||null===l)&&(l=t.style[r]),i()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(r)){var g=a(t,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(r))&&(l=p(t).position()[r]+"px")}return l}var l;if(b.Hooks.registered[r]){var u=r,c=b.Hooks.getRoot(u);i===n&&(i=b.getPropertyValue(t,b.Names.prefixCheck(c)[0])),b.Normalizations.registered[c]&&(i=b.Normalizations.registered[c]("extract",t,i)),l=b.Hooks.extractValue(u,i)}else if(b.Normalizations.registered[r]){var f,d;f=b.Normalizations.registered[r]("name",t),"transform"!==f&&(d=a(t,b.Names.prefixCheck(f)[0]),b.Values.isCSSNullValue(d)&&b.Hooks.templates[r]&&(d=b.Hooks.templates[r][1])),l=b.Normalizations.registered[r]("extract",t,d)}return/^[\d-]/.test(l)||(l=o(t)&&o(t).isSVG&&b.Names.SVGAttribute(r)?/^(height|width)$/i.test(r)?t.getBBox()[r]:t.getAttribute(r):a(t,b.Names.prefixCheck(r)[0])),b.Values.isCSSNullValue(l)&&(l=0),_.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(t,r,n,i,s){var a=r;if("scroll"===r)s.container?s.container["scroll"+s.direction]=n:"Left"===s.direction?e.scrollTo(n,s.alternateValue):e.scrollTo(s.alternateValue,n);else if(b.Normalizations.registered[r]&&"transform"===b.Normalizations.registered[r]("name",t))b.Normalizations.registered[r]("inject",t,n),a="transform",n=o(t).transformCache[r];else{if(b.Hooks.registered[r]){var l=r,u=b.Hooks.getRoot(r);i=i||b.getPropertyValue(t,u),n=b.Hooks.injectValue(l,n,i),r=u}if(b.Normalizations.registered[r]&&(n=b.Normalizations.registered[r]("inject",t,n),r=b.Normalizations.registered[r]("name",t)),a=b.Names.prefixCheck(r)[0],8>=h)try{t.style[a]=n}catch(c){_.debug&&console.log("Browser does not support ["+n+"] for ["+a+"]")}else o(t)&&o(t).isSVG&&b.Names.SVGAttribute(r)?t.setAttribute(r,n):t.style[a]=n;_.debug>=2&&console.log("Set "+r+" ("+a+"): "+n)}return[a,n]},flushTransformCache:function(t){function e(e){return parseFloat(b.getPropertyValue(t,e))}var r="";if((h||_.State.isAndroid&&!_.State.isChrome)&&o(t).isSVG){var n={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};p.each(o(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),n[t]&&(r+=t+"("+n[t].join(" ")+") ",delete n[t])})}else{var i,s;p.each(o(t).transformCache,function(e){return i=o(t).transformCache[e],"transformPerspective"===e?(s=i,!0):(9===h&&"rotateZ"===e&&(e="rotate"),void(r+=e+i+" "))}),s&&(r="perspective"+s+" "+r)}b.setPropertyValue(t,"transform",r)}};b.Hooks.register(),b.Normalizations.register(),_.hook=function(t,e,r){var i=n;return t=s(t),p.each(t,function(t,s){if(o(s)===n&&_.init(s),r===n)i===n&&(i=_.CSS.getPropertyValue(s,e));else{var a=_.CSS.setPropertyValue(s,e,r);"transform"===a[0]&&_.CSS.flushTransformCache(s),i=a}}),i};var w=function(){function t(){return l?O.promise||null:h}function a(){function t(){function t(t,e){var r=n,i=n,s=n;return g.isArray(t)?(r=t[0],!g.isArray(t[1])&&/^[\d-]/.test(t[1])||g.isFunction(t[1])||b.RegEx.isHex.test(t[1])?s=t[1]:(g.isString(t[1])&&!b.RegEx.isHex.test(t[1])||g.isArray(t[1]))&&(i=e?t[1]:u(t[1],l.duration),t[2]!==n&&(s=t[2]))):r=t,e||(i=i||l.easing),g.isFunction(r)&&(r=r.call(a,k,T)),g.isFunction(s)&&(s=s.call(a,k,T)),[r||0,i,s]}function h(t,e){var r,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return r=t,""}),r||(r=b.Values.getUnitType(t)),[n,r]}function d(){var t={myParent:a.parentNode||r.body,position:b.getPropertyValue(a,"position"),fontSize:b.getPropertyValue(a,"fontSize")},n=t.position===j.lastPosition&&t.myParent===j.lastParent,i=t.fontSize===j.lastFontSize;j.lastParent=t.myParent,j.lastPosition=t.position,j.lastFontSize=t.fontSize;var s=100,l={};if(i&&n)l.emToPx=j.lastEmToPx,l.percentToPxWidth=j.lastPercentToPxWidth,l.percentToPxHeight=j.lastPercentToPxHeight;else{var u=o(a).isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div");_.init(u),t.myParent.appendChild(u),p.each(["overflow","overflowX","overflowY"],function(t,e){_.CSS.setPropertyValue(u,e,"hidden")}),_.CSS.setPropertyValue(u,"position",t.position),_.CSS.setPropertyValue(u,"fontSize",t.fontSize),_.CSS.setPropertyValue(u,"boxSizing","content-box"),p.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){_.CSS.setPropertyValue(u,e,s+"%")}),_.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=j.lastPercentToPxWidth=(parseFloat(b.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=j.lastPercentToPxHeight=(parseFloat(b.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=j.lastEmToPx=(parseFloat(b.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===j.remToPx&&(j.remToPx=parseFloat(b.getPropertyValue(r.body,"fontSize"))||16),null===j.vwToPx&&(j.vwToPx=parseFloat(e.innerWidth)/100,j.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=j.remToPx,l.vwToPx=j.vwToPx,l.vhToPx=j.vhToPx,_.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(l.begin&&0===k)try{l.begin.call(m,m)}catch(v){setTimeout(function(){throw v},1)}if("scroll"===A){var w,S,P,C=/^x$/i.test(l.axis)?"Left":"Top",E=parseFloat(l.offset)||0;l.container?g.isWrapped(l.container)||g.isNode(l.container)?(l.container=l.container[0]||l.container,w=l.container["scroll"+C],P=w+p(a).position()[C.toLowerCase()]+E):l.container=null:(w=_.State.scrollAnchor[_.State["scrollProperty"+C]],S=_.State.scrollAnchor[_.State["scrollProperty"+("Left"===C?"Top":"Left")]],P=p(a).offset()[C.toLowerCase()]+E),f={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:P,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:C,alternateValue:S}},element:a},_.debug&&console.log("tweensContainer (scroll): ",f.scroll,a)}else if("reverse"===A){if(!o(a).tweensContainer)return void p.dequeue(a,l.queue);"none"===o(a).opts.display&&(o(a).opts.display="auto"),"hidden"===o(a).opts.visibility&&(o(a).opts.visibility="visible"),o(a).opts.loop=!1,o(a).opts.begin=null,o(a).opts.complete=null,x.easing||delete l.easing,x.duration||delete l.duration,l=p.extend({},o(a).opts,l);var I=p.extend(!0,{},o(a).tweensContainer);for(var L in I)if("element"!==L){var F=I[L].startValue;I[L].startValue=I[L].currentValue=I[L].endValue,I[L].endValue=F,g.isEmptyObject(x)||(I[L].easing=l.easing),_.debug&&console.log("reverse tweensContainer ("+L+"): "+JSON.stringify(I[L]),a)}f=I}else if("start"===A){var I;o(a).tweensContainer&&o(a).isAnimating===!0&&(I=o(a).tweensContainer),p.each(y,function(e,r){if(RegExp("^"+b.Lists.colors.join("$|^")+"$").test(e)){var i=t(r,!0),s=i[0],o=i[1],a=i[2];if(b.RegEx.isHex.test(s)){for(var l=["Red","Green","Blue"],u=b.Values.hexToRgb(s),c=a?b.Values.hexToRgb(a):n,f=0;f<l.length;f++){var p=[u[f]];o&&p.push(o),c!==n&&p.push(c[f]),y[e+l[f]]=p}delete y[e]}}});for(var R in y){var V=t(y[R]),N=V[0],z=V[1],H=V[2];R=b.Names.camelCase(R);var D=b.Hooks.getRoot(R),X=!1;if(o(a).isSVG||b.Names.prefixCheck(D)[1]!==!1||b.Normalizations.registered[D]!==n){(l.display!==n&&null!==l.display&&"none"!==l.display||l.visibility!==n&&"hidden"!==l.visibility)&&/opacity|filter/.test(R)&&!H&&0!==N&&(H=0),l._cacheValues&&I&&I[R]?(H===n&&(H=I[R].endValue+I[R].unitType),X=o(a).rootPropertyValueCache[D]):b.Hooks.registered[R]?H===n?(X=b.getPropertyValue(a,D),H=b.getPropertyValue(a,R,X)):X=b.Hooks.templates[D][1]:H===n&&(H=b.getPropertyValue(a,R));var q,B,U,Y=!1;if(q=h(R,H),H=q[0],U=q[1],q=h(R,N),N=q[0].replace(/^([+-\/*])=/,function(t,e){return Y=e,""}),B=q[1],H=parseFloat(H)||0,N=parseFloat(N)||0,"%"===B&&(/^(fontSize|lineHeight)$/.test(R)?(N/=100,B="em"):/^scale/.test(R)?(N/=100,B=""):/(Red|Green|Blue)$/i.test(R)&&(N=N/100*255,B="")),/[\/*]/.test(Y))B=U;else if(U!==B&&0!==H)if(0===N)B=U;else{s=s||d();var W=/margin|padding|left|right|width|text|word|letter/i.test(R)||/X$/.test(R)||"x"===R?"x":"y";switch(U){case"%":H*="x"===W?s.percentToPxWidth:s.percentToPxHeight;break;case"px":break;default:H*=s[U+"ToPx"]}switch(B){case"%":H*=1/("x"===W?s.percentToPxWidth:s.percentToPxHeight);break;case"px":break;default:H*=1/s[B+"ToPx"]}}switch(Y){case"+":N=H+N;break;case"-":N=H-N;break;case"*":N=H*N;break;case"/":N=H/N}f[R]={rootPropertyValue:X,startValue:H,currentValue:H,endValue:N,unitType:B,easing:z},_.debug&&console.log("tweensContainer ("+R+"): "+JSON.stringify(f[R]),a)}else _.debug&&console.log("Skipping ["+D+"] due to a lack of browser support.")}f.element=a}f.element&&(b.Values.addClass(a,"velocity-animating"),M.push(f),""===l.queue&&(o(a).tweensContainer=f,o(a).opts=l),o(a).isAnimating=!0,k===T-1?(_.State.calls.length>1e4&&(_.State.calls=i(_.State.calls)),_.State.calls.push([M,m,l,null,O.resolver]),_.State.isTicking===!1&&(_.State.isTicking=!0,c())):k++)}var s,a=this,l=p.extend({},_.defaults,x),f={};switch(o(a)===n&&_.init(a),parseFloat(l.delay)&&l.queue!==!1&&p.queue(a,l.queue,function(t){_.velocityQueueEntryFlag=!0,o(a).delayTimer={setTimeout:setTimeout(t,parseFloat(l.delay)),next:t}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=v;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}_.mock!==!1&&(_.mock===!0?l.duration=l.delay=1:(l.duration*=parseFloat(_.mock)||1,l.delay*=parseFloat(_.mock)||1)),l.easing=u(l.easing,l.duration),l.begin&&!g.isFunction(l.begin)&&(l.begin=null),l.progress&&!g.isFunction(l.progress)&&(l.progress=null),l.complete&&!g.isFunction(l.complete)&&(l.complete=null),l.display!==n&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=_.CSS.Values.getDisplayType(a))),l.visibility!==n&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&_.State.isMobile&&!_.State.isGingerbread,l.queue===!1?l.delay?setTimeout(t,l.delay):t():p.queue(a,l.queue,function(e,r){return r===!0?(O.promise&&O.resolver(m),!0):(_.velocityQueueEntryFlag=!0,void t(e))}),""!==l.queue&&"fx"!==l.queue||"inprogress"===p.queue(a)[0]||p.dequeue(a)}var l,h,d,m,y,x,S=arguments[0]&&(p.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||g.isString(arguments[0].properties));if(g.isWrapped(this)?(l=!1,d=0,m=this,h=this):(l=!0,d=1,m=S?arguments[0].elements:arguments[0]),m=s(m)){S?(y=arguments[0].properties,x=arguments[0].options):(y=arguments[d],x=arguments[d+1]);var T=m.length,k=0;if("stop"!==y&&!p.isPlainObject(x)){var P=d+1;x={};for(var C=P;C<arguments.length;C++)g.isArray(arguments[C])||!/^(fast|normal|slow)$/i.test(arguments[C])&&!/^\d/.test(arguments[C])?g.isString(arguments[C])||g.isArray(arguments[C])?x.easing=arguments[C]:g.isFunction(arguments[C])&&(x.complete=arguments[C]):x.duration=arguments[C]}var O={promise:null,resolver:null,rejecter:null};l&&_.Promise&&(O.promise=new _.Promise(function(t,e){O.resolver=t,O.rejecter=e}));var A;switch(y){case"scroll":A="scroll";break;case"reverse":A="reverse";break;case"stop":p.each(m,function(t,e){o(e)&&o(e).delayTimer&&(clearTimeout(o(e).delayTimer.setTimeout),o(e).delayTimer.next&&o(e).delayTimer.next(),delete o(e).delayTimer)});var E=[];return p.each(_.State.calls,function(t,e){e&&p.each(e[1],function(r,i){var s=g.isString(x)?x:"";return x!==n&&e[2].queue!==s?!0:void p.each(m,function(e,r){r===i&&(x!==n&&(p.each(p.queue(r,s),function(t,e){g.isFunction(e)&&e(null,!0)}),p.queue(r,s,[])),o(r)&&""===s&&p.each(o(r).tweensContainer,function(t,e){e.endValue=e.currentValue}),E.push(t))})})}),p.each(E,function(t,e){f(e,!0)}),O.promise&&O.resolver(m),t();default:if(!p.isPlainObject(y)||g.isEmptyObject(y)){if(g.isString(y)&&_.Redirects[y]){var I=p.extend({},x),L=I.duration,F=I.delay||0;return I.backwards===!0&&(m=p.extend(!0,[],m).reverse()),p.each(m,function(t,e){parseFloat(I.stagger)?I.delay=F+parseFloat(I.stagger)*t:g.isFunction(I.stagger)&&(I.delay=F+I.stagger.call(e,t,T)),I.drag&&(I.duration=parseFloat(L)||(/^(callout|transition)/.test(y)?1e3:v),I.duration=Math.max(I.duration*(I.backwards?1-t/T:(t+1)/T),.75*I.duration,200)),_.Redirects[y].call(e,e,I||{},t,T,m,O.promise?O:n)}),t()}var R="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return O.promise?O.rejecter(new Error(R)):console.log(R),t()}A="start"}var j={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},M=[];p.each(m,function(t,e){g.isNode(e)&&a.call(e)});var V,I=p.extend({},_.defaults,x);if(I.loop=parseInt(I.loop),V=2*I.loop-1,I.loop)for(var N=0;V>N;N++){var z={delay:I.delay,progress:I.progress};N===V-1&&(z.display=I.display,z.visibility=I.visibility,z.complete=I.complete),w(m,"reverse",z)}return t()}};_=p.extend(w,_),_.animate=w;var S=e.requestAnimationFrame||d;return _.State.isMobile||r.hidden===n||r.addEventListener("visibilitychange",function(){r.hidden?(S=function(t){return setTimeout(function(){t(!0)},16)},c()):S=e.requestAnimationFrame||d;
  
  }),t.Velocity=_,t!==e&&(t.fn.velocity=w,t.fn.velocity.defaults=_.defaults),p.each(["Down","Up"],function(t,e){_.Redirects["slide"+e]=function(t,r,i,s,o,a){var l=p.extend({},r),u=l.begin,c=l.complete,f={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},h={};l.display===n&&(l.display="Down"===e?"inline"===_.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(o,o);for(var r in f){h[r]=t.style[r];var n=_.CSS.getPropertyValue(t,r);f[r]="Down"===e?[n,0]:[0,n]}h.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in h)t.style[e]=h[e];c&&c.call(o,o),a&&a.resolver(o)},_(t,f,l)}}),p.each(["In","Out"],function(t,e){_.Redirects["fade"+e]=function(t,r,i,s,o,a){var l=p.extend({},r),u={opacity:"In"===e?1:0},c=l.complete;l.complete=i!==s-1?l.begin=null:function(){c&&c.call(o,o),a&&a.resolver(o)},l.display===n&&(l.display="In"===e?"auto":"none"),_(this,u,l)}}),_}(window.jQuery||window.Zepto||window,window,document)}),!function(t,e){"use strict";var r=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!r.TweenLite){var n,i,s,o,a,l=function(t){var e,n=t.split("."),i=r;for(e=0;e<n.length;e++)i[n[e]]=i=i[n[e]]||{};return i},u=l("com.greensock"),c=1e-10,f=function(t){var e,r=[],n=t.length;for(e=0;e!==n;r.push(t[e++]));return r},p=function(){},h=function(){var t=Object.prototype.toString,e=t.call([]);return function(r){return null!=r&&(r instanceof Array||"object"==typeof r&&!!r.push&&t.call(r)===e)}}(),d={},g=function(n,i,s,o){this.sc=d[n]?d[n].sc:[],d[n]=this,this.gsClass=null,this.func=s;var a=[];this.check=function(u){for(var c,f,p,h,m=i.length,v=m;--m>-1;)(c=d[i[m]]||new g(i[m],[])).gsClass?(a[m]=c.gsClass,v--):u&&c.sc.push(this);if(0===v&&s)for(f=("com.greensock."+n).split("."),p=f.pop(),h=l(f.join("."))[p]=this.gsClass=s.apply(s,a),o&&(r[p]=h,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return h}):n===e&&"undefined"!=typeof module&&module.exports&&(module.exports=h)),m=0;m<this.sc.length;m++)this.sc[m].check()},this.check(!0)},m=t._gsDefine=function(t,e,r,n){return new g(t,e,r,n)},v=u._class=function(t,e,r){return e=e||function(){},m(t,[],function(){return e},r),e};m.globals=r;var y=[0,0,1,1],_=[],x=v("easing.Ease",function(t,e,r,n){this._func=t,this._type=r||0,this._power=n||0,this._params=e?y.concat(e):y},!0),b=x.map={},w=x.register=function(t,e,r,n){for(var i,s,o,a,l=e.split(","),c=l.length,f=(r||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(s=l[c],i=n?v("easing."+s,null,!0):u.easing[s]||{},o=f.length;--o>-1;)a=f[o],b[s+"."+a]=b[a+s]=i[a]=t.getRatio?t:t[a]||new t};for(s=x.prototype,s._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,r=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===r?n*=n:2===r?n*=n*n:3===r?n*=n*n*n:4===r&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},n=["Linear","Quad","Cubic","Quart","Quint,Strong"],i=n.length;--i>-1;)s=n[i]+",Power"+i,w(new x(null,null,1,i),s,"easeOut",!0),w(new x(null,null,2,i),s,"easeIn"+(0===i?",easeNone":"")),w(new x(null,null,3,i),s,"easeInOut");b.linear=u.easing.Linear.easeIn,b.swing=u.easing.Quad.easeInOut;var S=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});s=S.prototype,s.addEventListener=function(t,e,r,n,i){i=i||0;var s,l,u=this._listeners[t],c=0;for(null==u&&(this._listeners[t]=u=[]),l=u.length;--l>-1;)s=u[l],s.c===e&&s.s===r?u.splice(l,1):0===c&&s.pr<i&&(c=l+1);u.splice(c,0,{c:e,s:r,up:n,pr:i}),this!==o||a||o.wake()},s.removeEventListener=function(t,e){var r,n=this._listeners[t];if(n)for(r=n.length;--r>-1;)if(n[r].c===e)return void n.splice(r,1)},s.dispatchEvent=function(t){var e,r,n,i=this._listeners[t];if(i)for(e=i.length,r=this._eventTarget;--e>-1;)n=i[e],n&&(n.up?n.c.call(n.s||r,{type:t,target:r}):n.c.call(n.s||r))};var T=t.requestAnimationFrame,k=t.cancelAnimationFrame,P=Date.now||function(){return(new Date).getTime()},C=P();for(n=["ms","moz","webkit","o"],i=n.length;--i>-1&&!T;)T=t[n[i]+"RequestAnimationFrame"],k=t[n[i]+"CancelAnimationFrame"]||t[n[i]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var r,n,i,s,l,u=this,f=P(),h=e!==!1&&T,d=500,g=33,m="tick",v=function(t){var e,o,a=P()-C;a>d&&(f+=a-g),C+=a,u.time=(C-f)/1e3,e=u.time-l,(!r||e>0||t===!0)&&(u.frame++,l+=e+(e>=s?.004:s-e),o=!0),t!==!0&&(i=n(v)),o&&u.dispatchEvent(m)};S.call(u),u.time=u.frame=0,u.tick=function(){v(!0)},u.lagSmoothing=function(t,e){d=t||1/c,g=Math.min(e,d,0)},u.sleep=function(){null!=i&&(h&&k?k(i):clearTimeout(i),n=p,i=null,u===o&&(a=!1))},u.wake=function(){null!==i?u.sleep():u.frame>10&&(C=P()-d+5),n=0===r?p:h&&T?T:function(t){return setTimeout(t,1e3*(l-u.time)+1|0)},u===o&&(a=!0),v(2)},u.fps=function(t){return arguments.length?(r=t,s=1/(r||60),l=this.time+s,void u.wake()):r},u.useRAF=function(t){return arguments.length?(u.sleep(),h=t,void u.fps(r)):h},u.fps(t),setTimeout(function(){h&&(!i||u.frame<5)&&u.useRAF(!1)},1500)}),s=u.Ticker.prototype=new u.events.EventDispatcher,s.constructor=u.Ticker;var O=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,q){a||o.wake();var r=this.vars.useFrames?X:q;r.add(this,r._time),this.vars.paused&&this.paused(!0)}});o=O.ticker=new u.Ticker,s=O.prototype,s._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var A=function(){a&&P()-C>2e3&&o.wake(),setTimeout(A,2e3)};A(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,r=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=r&&t<r+this.totalDuration()/this._timeScale},s._enabled=function(t,e){return a||o.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,r=t.concat();--e>-1;)"{self}"===t[e]&&(r[e]=this);return r},s.eventCallback=function(t,e,r,n){if("on"===(t||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[t];null==e?delete i[t]:(i[t]=e,i[t+"Params"]=h(r)&&-1!==r.join("").indexOf("{self}")?this._swapSelfInParams(r):r,i[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,r){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!r&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,i=this._timeline;if(t>n&&!r&&(t=n),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?n-t:t)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),R.length&&U())}return this},s.progress=s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,r=e||0===e?e:this._timeline.totalTime();this._startTime=r-(r-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;var e,r,n=this._timeline;return t!=this._paused&&n&&(a||t||o.wake(),e=n.rawTime(),r=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==r&&this._initted&&this.duration()&&this.render(n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,!0,!0)),this._gc&&!t&&this._enabled(!0,!1),this};var E=v("core.SimpleTimeline",function(t){O.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});s=E.prototype=new O,s.constructor=E,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e){var r,n;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(n=t._startTime;r&&r._startTime>n;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,r){var n,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;i;)n=i._next,(i._active||t>=i._startTime&&!i._paused)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,r):i.render((t-i._startTime)*i._timeScale,e,r)),i=n},s.rawTime=function(){return a||o.wake(),this._totalTime};var I=v("TweenLite",function(e,r,n){if(O.call(this,r,n),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var i,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?D[I.defaultOverwrite]:"number"==typeof l?l>>0:D[l],(a||e instanceof Array||e.push&&h(e))&&"number"!=typeof e[0])for(this._targets=o=f(e),this._propLookup=[],this._siblings=[],i=0;i<o.length;i++)s=o[i],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(i--,1),this._targets=o=o.concat(f(s))):(this._siblings[i]=Y(s,this,!1),1===l&&this._siblings[i].length>1&&$(s,this,null,1,this._siblings[i])):(s=o[i--]=I.selector(s),"string"==typeof s&&o.splice(i+1,1)):o.splice(i--,1);else this._propLookup={},this._siblings=Y(e,this,!1),1===l&&this._siblings.length>1&&$(e,this,null,1,this._siblings);(this.vars.immediateRender||0===r&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-c,this.render(-this._delay))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},F=function(t,e){var r,n={};for(r in t)H[r]||r in e&&"transform"!==r&&"x"!==r&&"y"!==r&&"width"!==r&&"height"!==r&&"className"!==r&&"border"!==r||!(!V[r]||V[r]&&V[r]._autoCSS)||(n[r]=t[r],delete t[r]);t.css=n};s=I.prototype=new O,s.constructor=I,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,I.version="1.16.0",I.defaultEase=s._ease=new x(null,null,1,1),I.defaultOverwrite="auto",I.ticker=o,I.autoSleep=120,I.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var r=t.$||t.jQuery;return r?(I.selector=r,r(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var R=[],j={},M=I._internals={isArray:h,isSelector:L,lazyTweens:R},V=I._plugins={},N=M.tweenLookup={},z=0,H=M.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},D={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},X=O._rootFramesTimeline=new E,q=O._rootTimeline=new E,B=30,U=M.lazyRender=function(){var t,e=R.length;for(j={};--e>-1;)t=R[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};q._startTime=o.time,X._startTime=o.frame,q._active=X._active=!0,setTimeout(U,1),O._updateRoot=I.render=function(){var t,e,r;if(R.length&&U(),q.render((o.time-q._startTime)*q._timeScale,!1,!1),X.render((o.frame-X._startTime)*X._timeScale,!1,!1),R.length&&U(),o.frame>=B){B=o.frame+(parseInt(I.autoSleep,10)||120);for(r in N){for(e=N[r].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete N[r]}if(r=q._first,(!r||r._paused)&&I.autoSleep&&!X._first&&1===o._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||o.sleep()}}},o.addEventListener("tick",O._updateRoot);var Y=function(t,e,r){var n,i,s=t._gsTweenID;if(N[s||(t._gsTweenID=s="t"+z++)]||(N[s]={target:t,tweens:[]}),e&&(n=N[s].tweens,n[i=n.length]=e,r))for(;--i>-1;)n[i]===e&&n.splice(i,1);return N[s].tweens},W=function(t,e,r,n){var i,s,o=t.vars.onOverwrite;return o&&(i=o(t,e,r,n)),o=I.onOverwrite,o&&(s=o(t,e,r,n)),i!==!1&&s!==!1},$=function(t,e,r,n,i){var s,o,a,l;if(1===n||n>=4){for(l=i.length,s=0;l>s;s++)if((a=i[s])!==e)a._gc||W(a,e)&&a._enabled(!1,!1)&&(o=!0);else if(5===n)break;return o}var u,f=e._startTime+c,p=[],h=0,d=0===e._duration;for(s=i.length;--s>-1;)(a=i[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(u=u||Q(e,0,d),0===Q(a,u,d)&&(p[h++]=a)):a._startTime<=f&&a._startTime+a.totalDuration()/a._timeScale>f&&((d||!a._initted)&&f-a._startTime<=2e-10||(p[h++]=a)));for(s=h;--s>-1;)if(a=p[s],2===n&&a._kill(r,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!W(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},Q=function(t,e,r){for(var n=t._timeline,i=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,i*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=i,s>e?s-e:r&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/i)>e+c?0:s-e-c};s._init=function(){var t,e,r,n,i,s=this.vars,o=this._overwrittenProps,a=this._duration,l=!!s.immediateRender,u=s.ease;if(s.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),i={};for(n in s.startAt)i[n]=s.startAt[n];if(i.overwrite=!1,i.immediateRender=!0,i.lazy=l&&s.lazy!==!1,i.startAt=i.delay=null,this._startAt=I.to(this.target,0,i),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(s.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),r={};for(n in s)H[n]&&"autoCSS"!==n||(r[n]=s[n]);if(r.overwrite=0,r.data="isFromStart",r.lazy=l&&s.lazy!==!1,r.immediateRender=l,this._startAt=I.to(this.target,0,r),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof x?u:"function"==typeof u?new x(u,s.easeParams):b[u]||I.defaultEase:I.defaultEase,s.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&I._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,r,n,i){var s,o,a,l,u,c;if(null==e)return!1;j[e._gsTweenID]&&U(),this.vars.css||e.style&&e!==t&&e.nodeType&&V.css&&this.vars.autoCSS!==!1&&F(this.vars,e);for(s in this.vars){if(c=this.vars[s],H[s])c&&(c instanceof Array||c.push&&h(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[s]=c=this._swapSelfInParams(c,this));else if(V[s]&&(l=new V[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:s,pg:!0,pr:l._priority},o=l._overwriteProps.length;--o>-1;)r[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=r[s]=u={_next:this._firstPT,t:e,p:s,f:"function"==typeof e[s],n:s,pg:!1,pr:0},u.s=u.f?e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(e[s]),u.c="string"==typeof c&&"="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*Number(c.substr(2)):Number(c)-u.s||0;u&&u._next&&(u._next._prev=u)}return i&&this._kill(i,e)?this._initProps(e,r,n,i):this._overwrite>1&&this._firstPT&&n.length>1&&$(e,this,r,this._overwrite,n)?(this._kill(r,e),this._initProps(e,r,n,i)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(j[e._gsTweenID]=!0),a)},s.render=function(t,e,r){var n,i,s,o,a=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,i="onComplete"),0===l&&(this._initted||!this.vars.lazy||r)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>u||u===c&&"isPause"!==this.data)&&u!==t&&(r=!0,u>c&&(i="onReverseComplete")),this._rawPrevTime=o=!e||t||u===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&u>0)&&(i="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||r)&&(u>=0&&(u!==c||"isPause"!==this.data)&&(r=!0),this._rawPrevTime=o=!e||t||u===t?t:c)),this._initted||(r=!0);else if(this._totalTime=this._time=t,this._easeType){var f=t/l,p=this._easeType,h=this._easePower;(1===p||3===p&&f>=.5)&&(f=1-f),3===p&&(f*=2),1===h?f*=f:2===h?f*=f*f:3===h?f*=f*f*f:4===h&&(f*=f*f*f*f),this.ratio=1===p?1-f:2===p?f:.5>t/l?f/2:1-f/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||r){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!r&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=u,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,r):i||(i="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,r),e||(this._time!==a||n)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_)),i&&(!this._gc||r)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,r),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||_),0===l&&this._rawPrevTime===c&&o!==c&&(this._rawPrevTime=0))}},s._kill=function(t,e,r){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var n,i,s,o,a,l,u,c,f;if((h(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n])&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,i=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(u=t||a,c=t!==i&&"all"!==i&&t!==a&&("object"!=typeof t||!t._tempKill),r&&(I.onOverwrite||this.vars.onOverwrite)){for(s in u)a[s]&&(f||(f=[]),f.push(s));if(!W(this,r,e,f))return!1}for(s in u)(o=a[s])&&(o.pg&&o.t._kill(u)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),c&&(i[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(-this._delay)),this},s._enabled=function(t,e){if(a||o.wake(),t&&this._gc){var r,n=this._targets;if(n)for(r=n.length;--r>-1;)this._siblings[r]=Y(n[r],this,!0);else this._siblings=Y(this.target,this,!0)}return O.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},I.to=function(t,e,r){return new I(t,e,r)},I.from=function(t,e,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new I(t,e,r)},I.fromTo=function(t,e,r,n){return n.startAt=r,n.immediateRender=0!=n.immediateRender&&0!=r.immediateRender,new I(t,e,n)},I.delayedCall=function(t,e,r,n,i){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:r,onCompleteScope:n,onReverseComplete:e,onReverseCompleteParams:r,onReverseCompleteScope:n,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var r,n,i,s;if((h(t)||L(t))&&"number"!=typeof t[0]){for(r=t.length,n=[];--r>-1;)n=n.concat(I.getTweensOf(t[r],e));for(r=n.length;--r>-1;)for(s=n[r],i=r;--i>-1;)s===n[i]&&n.splice(r,1)}else for(n=Y(t).concat(),r=n.length;--r>-1;)(n[r]._gc||e&&!n[r].isActive())&&n.splice(r,1);return n},I.killTweensOf=I.killDelayedCallsTo=function(t,e,r){"object"==typeof e&&(r=e,e=!1);for(var n=I.getTweensOf(t,e),i=n.length;--i>-1;)n[i]._kill(r,t)};var G=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=G.prototype},!0);if(s=G.prototype,G.version="1.10.1",G.API=2,s._firstPT=null,s._addTween=function(t,e,r,n,i,s){var o,a;return null!=n&&(o="number"==typeof n||"="!==n.charAt(1)?Number(n)-r:parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)))?(this._firstPT=a={_next:this._firstPT,t:t,p:e,s:r,c:o,f:"function"==typeof t[e],n:i||e,r:s},a._next&&(a._next._prev=a),a):void 0},s.setRatio=function(t){for(var e,r=this._firstPT,n=1e-6;r;)e=r.c*t+r.s,r.r?e=Math.round(e):n>e&&e>-n&&(e=0),r.f?r.t[r.p](e):r.t[r.p]=e,r=r._next},s._kill=function(t){var e,r=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=r.length;--e>-1;)null!=t[r[e]]&&r.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._roundProps=function(t,e){for(var r=this._firstPT;r;)(t[this._propName]||null!=r.n&&t[r.n.split(this._propName+"_").join("")])&&(r.r=e),r=r._next},I._onPluginEvent=function(t,e){var r,n,i,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=i;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:s)?a._prev._next=a:i=a,(a._next=n)?n._prev=a:s=a,a=o}a=e._firstPT=i}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(r=!0),a=a._next;return r},G.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===G.API&&(V[(new t[e])._propName]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,r=t.propName,n=t.priority||0,i=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=v("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){G.call(this,r,n),this._overwriteProps=i||[]},t.global===!0),a=o.prototype=new G(r);a.constructor=o,o.API=t.API;for(e in s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,G.activate([o]),o},n=t._gsQueue){for(i=0;i<n.length;i++)n[i]();for(s in d)d[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var r,n,i,s,o=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},u=o.prototype=new t("css");u.constructor=o,o.version="1.16.0",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",u="px",o.suffixMap={top:u,right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var c,f,p,h,d,g,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,y=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,_=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,b=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,T=/^(rgb|hsl)/,k=/([A-Z])/g,P=/-([a-z])/gi,C=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(t,e){return e.toUpperCase()},A=/(?:Left|Right|Width)/i,E=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,I=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,F=Math.PI/180,R=180/Math.PI,j={},M=document,V=function(t){return M.createElementNS?M.createElementNS("http://www.w3.org/1999/xhtml",t):M.createElement(t)},N=V("div"),z=V("img"),H=o._internals={_specialProps:l},D=navigator.userAgent,X=function(){var t=D.indexOf("Android"),e=V("a");return p=-1!==D.indexOf("Safari")&&-1===D.indexOf("Chrome")&&(-1===t||Number(D.substr(t+8,1))>3),d=p&&Number(D.substr(D.indexOf("Version/")+8,1))<6,h=-1!==D.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(D)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(D))&&(g=parseFloat(RegExp.$1)),e?(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),q=function(t){return b.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},B=function(t){window.console&&console.log(t)},U="",Y="",W=function(t,e){e=e||N;var r,n,i=e.style;if(void 0!==i[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),r=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===i[r[n]+t];);return n>=0?(Y=3===n?"ms":r[n],U="-"+Y.toLowerCase()+"-",Y+t):null},$=M.defaultView?M.defaultView.getComputedStyle:function(){},Q=o.getStyle=function(t,e,r,n,i){var s;return X||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(r=r||$(t))?s=r[e]||r.getPropertyValue(e)||r.getPropertyValue(e.replace(k,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==i||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:i):q(t)},G=H.convertToPixels=function(t,r,n,i,s){if("px"===i||!i)return n;if("auto"===i||!n)return 0;var a,l,u,c=A.test(r),f=t,p=N.style,h=0>n;if(h&&(n=-n),"%"===i&&-1!==r.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+Q(t,"position")+";line-height:0;","%"!==i&&f.appendChild)p[c?"borderLeftWidth":"borderTopWidth"]=n+i;else{if(f=t.parentNode||M.body,l=f._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;p[c?"width":"height"]=n+i}f.appendChild(N),a=parseFloat(N[c?"offsetWidth":"offsetHeight"]),f.removeChild(N),c&&"%"===i&&o.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=u,l.width=a/n*100),0!==a||s||(a=G(t,r,n,i,!0))}return h?-a:a},Z=H.calculateOffset=function(t,e,r){if("absolute"!==Q(t,"position",r))return 0;var n="left"===e?"Left":"Top",i=Q(t,"margin"+n,r);return t["offset"+n]-(G(t,e,parseFloat(i),i.replace(x,""))||0)},K=function(t,e){var r,n,i,s={};if(e=e||$(t,null))if(r=e.length)for(;--r>-1;)i=e[r],(-1===i.indexOf("-transform")||St===i)&&(s[i.replace(P,O)]=e.getPropertyValue(i));else for(r in e)(-1===r.indexOf("Transform")||wt===r)&&(s[r]=e[r]);else if(e=t.currentStyle||t.style)for(r in e)"string"==typeof r&&void 0===s[r]&&(s[r.replace(P,O)]=e[r]);return X||(s.opacity=q(t)),n=Lt(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,kt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},J=function(t,e,r,n,i){var s,o,a,l={},u=t.style;for(o in r)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=r[o])||i&&i[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(_,"")?s:0:Z(t,o),void 0!==u[o]&&(a=new ht(u,o,u[o],a)));if(n)for(o in n)"className"!==o&&(l[o]=n[o]);return{difs:l,firstMPT:a}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],rt=function(t,e,r){var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),i=tt[e],s=i.length;for(r=r||$(t,null);--s>-1;)n-=parseFloat(Q(t,"padding"+i[s],r,!0))||0,n-=parseFloat(Q(t,"border"+i[s]+"Width",r,!0))||0;return n},nt=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],i=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];return null==i?i="center"===n?"50%":"0":"center"===i&&(i="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==i.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===i.charAt(1),
  e.ox=parseFloat(n.replace(_,"")),e.oy=parseFloat(i.replace(_,""))),n+" "+i+(r.length>2?" "+r[2]:"")},it=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ot=function(t,e,r,n){var i,s,o,a,l,u=1e-6;return null==t?a=e:"number"==typeof t?a=t:(i=360,s=t.split("_"),l="="===t.charAt(1),o=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:R)-(l?0:e),s.length&&(n&&(n[r]=e+o),-1!==t.indexOf("short")&&(o%=i,o!==o%(i/2)&&(o=0>o?o+i:o-i)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*i)%i-(o/i|0)*i:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*i)%i-(o/i|0)*i)),a=e+o),u>a&&a>-u&&(a=0),a},at={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},lt=function(t,e,r){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(r-e)*t*6:.5>t?r:2>3*t?e+(r-e)*(2/3-t)*6:e)+.5|0},ut=o.parseColor=function(t){var e,r,n,i,s,o;return t&&""!==t?"number"==typeof t?[t>>16,t>>8&255,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),at[t]?at[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),r=t.charAt(2),n=t.charAt(3),t="#"+e+e+r+r+n+n),t=parseInt(t.substr(1),16),[t>>16,t>>8&255,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),i=Number(t[0])%360/360,s=Number(t[1])/100,o=Number(t[2])/100,r=.5>=o?o*(s+1):o+s-o*s,e=2*o-r,t.length>3&&(t[3]=Number(t[3])),t[0]=lt(i+1/3,e,r),t[1]=lt(i,e,r),t[2]=lt(i-1/3,e,r),t):(t=t.match(m)||at.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):at.black},ct="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(u in at)ct+="|"+u+"\\b";ct=new RegExp(ct+")","gi");var ft=function(t,e,r,n){if(null==t)return function(t){return t};var i,s=e?(t.match(ct)||[""])[0]:"",o=t.split(s).join("").match(y)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=o.length,f=c>0?o[0].replace(m,""):"";return c?i=e?function(t){var e,p,h,d;if("number"==typeof t)t+=f;else if(n&&L.test(t)){for(d=t.replace(L,"|").split("|"),h=0;h<d.length;h++)d[h]=i(d[h]);return d.join(",")}if(e=(t.match(ct)||[s])[0],p=t.split(e).join("").match(y)||[],h=p.length,c>h--)for(;++h<c;)p[h]=r?p[(h-1)/2|0]:o[h];return a+p.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,p;if("number"==typeof t)t+=f;else if(n&&L.test(t)){for(s=t.replace(L,"|").split("|"),p=0;p<s.length;p++)s[p]=i(s[p]);return s.join(",")}if(e=t.match(y)||[],p=e.length,c>p--)for(;++p<c;)e[p]=r?e[(p-1)/2|0]:o[p];return a+e.join(u)+l}:function(t){return t}},pt=function(t){return t=t.split(","),function(e,r,n,i,s,o,a){var l,u=(r+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return i.parse(e,a,s,o)}},ht=(H._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,r,n,i,s=this.data,o=s.proxy,a=s.firstMPT,l=1e-6;a;)e=o[a.v],a.r?e=Math.round(e):l>e&&e>-l&&(e=0),a.t[a.p]=e,a=a._next;if(s.autoRotate&&(s.autoRotate.rotation=o.rotation),1===t)for(a=s.firstMPT;a;){if(r=a.t,r.type){if(1===r.type){for(i=r.xs0+r.s+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.e=i}}else r.e=r.s+r.xs0;a=a._next}},function(t,e,r,n,i){this.t=t,this.p=e,this.v=r,this.r=i,n&&(n._prev=this,this._next=n)}),dt=(H._parseToProxy=function(t,e,r,n,i,s){var o,a,l,u,c,f=n,p={},h={},d=r._transform,g=j;for(r._transform=null,j=e,n=c=r.parse(t,e,n,i),j=g,s&&(r._transform=d,f&&(f._prev=null,f._prev&&(f._prev._next=null)));n&&n!==f;){if(n.type<=1&&(a=n.p,h[a]=n.s+n.c,p[a]=n.s,s||(u=new ht(n,"s",a,u,n.r),n.c=0),1===n.type))for(o=n.l;--o>0;)l="xn"+o,a=n.p+"_"+l,h[a]=n.data[l],p[a]=n[l],s||(u=new ht(n,l,a,u,n.rxp[l]));n=n._next}return{proxy:p,end:h,firstMPT:u,pt:c}},H.CSSPropTween=function(t,e,n,i,o,a,l,u,c,f,p){this.t=t,this.p=e,this.s=n,this.c=i,this.n=l||e,t instanceof dt||s.push(this.n),this.r=u,this.type=a||0,c&&(this.pr=c,r=!0),this.b=void 0===f?n:f,this.e=void 0===p?n+i:p,o&&(this._next=o,o._prev=this)}),gt=o.parseComplex=function(t,e,r,n,i,s,o,a,l,u){r=r||s||"",o=new dt(t,e,0,0,o,u?2:1,null,!1,a,r,n),n+="";var f,p,h,d,g,y,_,x,b,w,S,k,P=r.split(", ").join(",").split(" "),C=n.split(", ").join(",").split(" "),O=P.length,A=c!==!1;for((-1!==n.indexOf(",")||-1!==r.indexOf(","))&&(P=P.join(" ").replace(L,", ").split(" "),C=C.join(" ").replace(L,", ").split(" "),O=P.length),O!==C.length&&(P=(s||"").split(" "),O=P.length),o.plugin=l,o.setRatio=u,f=0;O>f;f++)if(d=P[f],g=C[f],x=parseFloat(d),x||0===x)o.appendXtra("",x,it(g,x),g.replace(v,""),A&&-1!==g.indexOf("px"),!0);else if(i&&("#"===d.charAt(0)||at[d]||T.test(d)))k=","===g.charAt(g.length-1)?"),":")",d=ut(d),g=ut(g),b=d.length+g.length>6,b&&!X&&0===g[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(C[f]).join("transparent")):(X||(b=!1),o.appendXtra(b?"rgba(":"rgb(",d[0],g[0]-d[0],",",!0,!0).appendXtra("",d[1],g[1]-d[1],",",!0).appendXtra("",d[2],g[2]-d[2],b?",":k,!0),b&&(d=d.length<4?1:d[3],o.appendXtra("",d,(g.length<4?1:g[3])-d,k,!1)));else if(y=d.match(m)){if(_=g.match(v),!_||_.length!==y.length)return o;for(h=0,p=0;p<y.length;p++)S=y[p],w=d.indexOf(S,h),o.appendXtra(d.substr(h,w-h),Number(S),it(_[p],S),"",A&&"px"===d.substr(w+S.length,2),0===p),h=w+S.length;o["xs"+o.l]+=d.substr(h)}else o["xs"+o.l]+=o.l?" "+d:d;if(-1!==n.indexOf("=")&&o.data){for(k=o.xs0+o.data.s,f=1;f<o.l;f++)k+=o["xs"+f]+o.data["xn"+f];o.e=k+o["xs"+f]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},mt=9;for(u=dt.prototype,u.l=u.pr=0;--mt>0;)u["xn"+mt]=0,u["xs"+mt]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,r,n,i,s){var o=this,a=o.l;return o["xs"+a]+=s&&a?" "+t:t||"",r||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",a>0?(o.data["xn"+a]=e+r,o.rxp["xn"+a]=i,o["xn"+a]=e,o.plugin||(o.xfirst=new dt(o,"xn"+a,e,r,o.xfirst||o,0,o.n,i,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+r},o.rxp={},o.s=e,o.c=r,o.r=i,o)):(o["xs"+a]+=e+(n||""),o)};var vt=function(t,e){e=e||{},this.p=e.prefix?W(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||ft(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},yt=H._registerComplexSpecialProp=function(t,e,r){"object"!=typeof e&&(e={parser:r});var n,i,s=t.split(","),o=e.defaultValue;for(r=r||[o],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=r[n]||o,i=new vt(s[n],e)},_t=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";yt(t,{parser:function(t,r,n,i,s,o,u){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,r,n,i,s,o,u)):(B("Error: "+e+" js file not loaded."),s)}})}};u=vt.prototype,u.parseComplex=function(t,e,r,n,i,s){var o,a,l,u,c,f,p=this.keyword;if(this.multi&&(L.test(r)||L.test(e)?(a=e.replace(L,"|").split("|"),l=r.replace(L,"|").split("|")):p&&(a=[e],l=[r])),l){for(u=l.length>a.length?l.length:a.length,o=0;u>o;o++)e=a[o]=a[o]||this.dflt,r=l[o]=l[o]||this.dflt,p&&(c=e.indexOf(p),f=r.indexOf(p),c!==f&&(-1===f?a[o]=a[o].split(p).join(""):-1===c&&(a[o]+=" "+p)));e=a.join(", "),r=l.join(", ")}return gt(t,this.p,e,r,this.clrs,this.dflt,n,this.pr,i,s)},u.parse=function(t,e,r,n,s,o){return this.parseComplex(t.style,this.format(Q(t,this.p,i,!1,this.dflt)),this.format(e),s,o)},o.registerSpecialProp=function(t,e,r){yt(t,{parser:function(t,n,i,s,o,a){var l=new dt(t,i,0,0,o,2,i,!1,r);return l.plugin=a,l.setRatio=e(t,n,s._tween,i),l},priority:r})},o.useSVGTransformAttr=p;var xt,bt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),wt=W("transform"),St=U+"transform",Tt=W("transformOrigin"),kt=null!==W("perspective"),Pt=H.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=o.defaultForce3D!==!1&&kt?o.defaultForce3D||"auto":!1},Ct=window.SVGElement,Ot=function(t,e,r){var n,i=M.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in r)i.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),r[n]);return e.appendChild(i),i},At=M.documentElement,Et=function(){var t,e,r,n=g||/Android/i.test(D)&&!window.chrome;return M.createElementNS&&!n&&(t=Ot("svg",At),e=Ot("rect",t,{width:100,height:50,x:100}),r=e.getBoundingClientRect().width,e.style[Tt]="50% 50%",e.style[wt]="scaleX(0.5)",n=r===e.getBoundingClientRect().width&&!(h&&kt),At.removeChild(t)),n}(),It=function(t,e,r,n){var i,s;n&&(s=n.split(" ")).length||(i=t.getBBox(),e=nt(e).split(" "),s=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*i.width:parseFloat(e[0]))+i.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*i.height:parseFloat(e[1]))+i.y]),r.xOrigin=parseFloat(s[0]),r.yOrigin=parseFloat(s[1]),t.setAttribute("data-svg-origin",s.join(" "))},Lt=H.getTransform=function(t,e,r,n){if(t._gsTransform&&r&&!n)return t._gsTransform;var s,a,l,u,c,f,p,h,d,g,m=r?t._gsTransform||new Pt:new Pt,v=m.scaleX<0,y=2e-5,_=1e5,x=kt?parseFloat(Q(t,Tt,e,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,b=parseFloat(o.defaultTransformPerspective)||0;if(wt?a=Q(t,St,e,!0):t.currentStyle&&(a=t.currentStyle.filter.match(E),a=a&&4===a.length?[a[0].substr(4),Number(a[2].substr(4)),Number(a[1].substr(4)),a[3].substr(4),m.x||0,m.y||0].join(","):""),s=!a||"none"===a||"matrix(1, 0, 0, 1, 0, 0)"===a,m.svg=!!(Ct&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM)),m.svg&&(s&&-1!==(t.style[wt]+"").indexOf("matrix")&&(a=t.style[wt],s=!1),It(t,Q(t,Tt,i,!1,"50% 50%")+"",m,t.getAttribute("data-svg-origin")),xt=o.useSVGTransformAttr||Et,l=t.getAttribute("transform"),s&&l&&-1!==l.indexOf("matrix")&&(a=l,s=0)),!s){for(l=(a||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],u=l.length;--u>-1;)c=Number(l[u]),l[u]=(f=c-(c|=0))?(f*_+(0>f?-.5:.5)|0)/_+c:c;if(16===l.length){var w,S,T,k,P,C=l[0],O=l[1],A=l[2],I=l[3],L=l[4],F=l[5],j=l[6],M=l[7],V=l[8],N=l[9],z=l[10],H=l[12],D=l[13],X=l[14],q=l[11],B=Math.atan2(j,z);m.zOrigin&&(X=-m.zOrigin,H=V*X-l[12],D=N*X-l[13],X=z*X+m.zOrigin-l[14]),m.rotationX=B*R,B&&(k=Math.cos(-B),P=Math.sin(-B),w=L*k+V*P,S=F*k+N*P,T=j*k+z*P,V=L*-P+V*k,N=F*-P+N*k,z=j*-P+z*k,q=M*-P+q*k,L=w,F=S,j=T),B=Math.atan2(V,z),m.rotationY=B*R,B&&(k=Math.cos(-B),P=Math.sin(-B),w=C*k-V*P,S=O*k-N*P,T=A*k-z*P,N=O*P+N*k,z=A*P+z*k,q=I*P+q*k,C=w,O=S,A=T),B=Math.atan2(O,C),m.rotation=B*R,B&&(k=Math.cos(-B),P=Math.sin(-B),C=C*k+L*P,S=O*k+F*P,F=O*-P+F*k,j=A*-P+j*k,O=S),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY+=180),m.scaleX=(Math.sqrt(C*C+O*O)*_+.5|0)/_,m.scaleY=(Math.sqrt(F*F+N*N)*_+.5|0)/_,m.scaleZ=(Math.sqrt(j*j+z*z)*_+.5|0)/_,m.skewX=0,m.perspective=q?1/(0>q?-q:q):0,m.x=H,m.y=D,m.z=X,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*C-m.yOrigin*L),m.y-=m.yOrigin-(m.yOrigin*O-m.xOrigin*F))}else if(!(kt&&!n&&l.length&&m.x===l[4]&&m.y===l[5]&&(m.rotationX||m.rotationY)||void 0!==m.x&&"none"===Q(t,"display",e))){var U=l.length>=6,Y=U?l[0]:1,W=l[1]||0,$=l[2]||0,G=U?l[3]:1;m.x=l[4]||0,m.y=l[5]||0,p=Math.sqrt(Y*Y+W*W),h=Math.sqrt(G*G+$*$),d=Y||W?Math.atan2(W,Y)*R:m.rotation||0,g=$||G?Math.atan2($,G)*R+d:m.skewX||0,Math.abs(g)>90&&Math.abs(g)<270&&(v?(p*=-1,g+=0>=d?180:-180,d+=0>=d?180:-180):(h*=-1,g+=0>=g?180:-180)),m.scaleX=p,m.scaleY=h,m.rotation=d,m.skewX=g,kt&&(m.rotationX=m.rotationY=m.z=0,m.perspective=b,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*Y-m.yOrigin*W),m.y-=m.yOrigin-(m.yOrigin*G-m.xOrigin*$))}m.zOrigin=x;for(u in m)m[u]<y&&m[u]>-y&&(m[u]=0)}return r&&(t._gsTransform=m,m.svg&&(xt&&t.style[wt]?Vt(t.style,wt):!xt&&t.getAttribute("transform")&&t.removeAttribute("transform"))),m},Ft=function(t){var e,r,n=this.data,i=-n.rotation*F,s=i+n.skewX*F,o=1e5,a=(Math.cos(i)*n.scaleX*o|0)/o,l=(Math.sin(i)*n.scaleX*o|0)/o,u=(Math.sin(s)*-n.scaleY*o|0)/o,c=(Math.cos(s)*n.scaleY*o|0)/o,f=this.t.style,p=this.t.currentStyle;if(p){r=l,l=-u,u=-r,e=p.filter,f.filter="";var h,d,m=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==p.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+u+", M22="+c,w=n.x+m*n.xPercent/100,S=n.y+v*n.yPercent/100;if(null!=n.ox&&(h=(n.oxp?m*n.ox*.01:n.ox)-m/2,d=(n.oyp?v*n.oy*.01:n.oy)-v/2,w+=h-(h*a+d*l),S+=d-(h*u+d*c)),y?(h=m/2,d=v/2,_+=", Dx="+(h-(h*a+d*l)+w)+", Dy="+(d-(h*u+d*c)+S)+")"):_+=", sizingMethod='auto expand')",f.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(I,_):_+" "+e,(0===t||1===t)&&1===a&&0===l&&0===u&&1===c&&(y&&-1===_.indexOf("Dx=0, Dy=0")||b.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&f.removeAttribute("filter")),!y){var T,k,P,C=8>g?1:-1;for(h=n.ieOffsetX||0,d=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((0>a?-a:a)*m+(0>l?-l:l)*v))/2+w),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>u?-u:u)*m))/2+S),mt=0;4>mt;mt++)k=et[mt],T=p[k],r=-1!==T.indexOf("px")?parseFloat(T):G(this.t,k,parseFloat(T),T.replace(x,""))||0,P=r!==n[k]?2>mt?-n.ieOffsetX:-n.ieOffsetY:2>mt?h-n.ieOffsetX:d-n.ieOffsetY,f[k]=(n[k]=Math.round(r-P*(0===mt||2===mt?1:C)))+"px"}}},Rt=H.set3DTransformRatio=function(t){var e,r,n,i,s,o,a,l,u,c,f,p,d,g,m,v,y,_,x,b,w,S=this.data,T=this.t.style,k=S.rotation*F,P=S.scaleX,C=S.scaleY,O=S.scaleZ,A=S.x,E=S.y,I=S.z,L=S.perspective;if(!(1!==t&&0!==t&&S.force3D||S.force3D===!0||S.rotationY||S.rotationX||1!==O||L||I||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime))return void jt.call(this,t);if(h&&(g=1e-4,g>P&&P>-g&&(P=O=2e-5),g>C&&C>-g&&(C=O=2e-5),!L||S.z||S.rotationX||S.rotationY||(L=0)),k||S.skewX)m=e=Math.cos(k),v=i=Math.sin(k),S.skewX&&(k-=S.skewX*F,m=Math.cos(k),v=Math.sin(k),"simple"===S.skewType&&(y=Math.tan(S.skewX*F),y=Math.sqrt(1+y*y),m*=y,v*=y)),r=-v,s=m;else{if(!(S.rotationY||S.rotationX||1!==O||L||S.svg))return void(T[wt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+A+"px,"+E+"px,"+I+"px)"+(1!==P||1!==C?" scale("+P+","+C+")":""));e=s=1,r=i=0}u=1,n=o=a=l=c=f=0,p=L?-1/L:0,d=S.zOrigin,g=1e-6,b=",",w="0",k=S.rotationY*F,k&&(m=Math.cos(k),v=Math.sin(k),a=-v,c=p*-v,n=e*v,o=i*v,u=m,p*=m,e*=m,i*=m),k=S.rotationX*F,k&&(m=Math.cos(k),v=Math.sin(k),y=r*m+n*v,_=s*m+o*v,l=u*v,f=p*v,n=r*-v+n*m,o=s*-v+o*m,u*=m,p*=m,r=y,s=_),1!==O&&(n*=O,o*=O,u*=O,p*=O),1!==C&&(r*=C,s*=C,l*=C,f*=C),1!==P&&(e*=P,i*=P,a*=P,c*=P),(d||S.svg)&&(d&&(A+=n*-d,E+=o*-d,I+=u*-d+d),S.svg&&(A+=S.xOrigin-(S.xOrigin*e+S.yOrigin*r),E+=S.yOrigin-(S.xOrigin*i+S.yOrigin*s)),g>A&&A>-g&&(A=w),g>E&&E>-g&&(E=w),g>I&&I>-g&&(I=0)),x=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",x+=(g>e&&e>-g?w:e)+b+(g>i&&i>-g?w:i)+b+(g>a&&a>-g?w:a),x+=b+(g>c&&c>-g?w:c)+b+(g>r&&r>-g?w:r)+b+(g>s&&s>-g?w:s),S.rotationX||S.rotationY?(x+=b+(g>l&&l>-g?w:l)+b+(g>f&&f>-g?w:f)+b+(g>n&&n>-g?w:n),x+=b+(g>o&&o>-g?w:o)+b+(g>u&&u>-g?w:u)+b+(g>p&&p>-g?w:p)+b):x+=",0,0,0,0,1,0,",x+=A+b+E+b+I+b+(L?1+-I/L:1)+")",T[wt]=x},jt=H.set2DTransformRatio=function(t){var e,r,n,i,s,o,a,l,u,c,f,p,h=this.data,d=this.t,g=d.style,m=h.x,v=h.y;return!(h.rotationX||h.rotationY||h.z||h.force3D===!0||"auto"===h.force3D&&1!==t&&0!==t)||h.svg&&xt||!kt?(i=h.scaleX,s=h.scaleY,void(h.rotation||h.skewX||h.svg?(e=h.rotation*F,r=h.skewX*F,n=1e5,o=Math.cos(e)*i,a=Math.sin(e)*i,l=Math.sin(e-r)*-s,u=Math.cos(e-r)*s,r&&"simple"===h.skewType&&(p=Math.tan(r),p=Math.sqrt(1+p*p),l*=p,u*=p),h.svg&&(m+=h.xOrigin-(h.xOrigin*o+h.yOrigin*l),v+=h.yOrigin-(h.xOrigin*a+h.yOrigin*u),f=1e-6,f>m&&m>-f&&(m=0),f>v&&v>-f&&(v=0)),c=(o*n|0)/n+","+(a*n|0)/n+","+(l*n|0)/n+","+(u*n|0)/n+","+m+","+v+")",h.svg&&xt?d.setAttribute("transform","matrix("+c):g[wt]=(h.xPercent||h.yPercent?"translate("+h.xPercent+"%,"+h.yPercent+"%) matrix(":"matrix(")+c):g[wt]=(h.xPercent||h.yPercent?"translate("+h.xPercent+"%,"+h.yPercent+"%) matrix(":"matrix(")+i+",0,0,"+s+","+m+","+v+")")):(this.setRatio=Rt,void Rt.call(this,t))};u=Pt.prototype,u.x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=0,u.scaleX=u.scaleY=u.scaleZ=1,yt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,r,n,s,a,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var u,c,f,p,h,d,g,m=n._transform=Lt(t,i,!0,l.parseTransform),v=t.style,y=1e-6,_=bt.length,x=l,b={};if("string"==typeof x.transform&&wt)f=N.style,f[wt]=x.transform,f.display="block",f.position="absolute",M.body.appendChild(N),u=Lt(N,null,!1),M.body.removeChild(N);else if("object"==typeof x){if(u={scaleX:st(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:st(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:st(x.scaleZ,m.scaleZ),x:st(x.x,m.x),y:st(x.y,m.y),z:st(x.z,m.z),xPercent:st(x.xPercent,m.xPercent),yPercent:st(x.yPercent,m.yPercent),perspective:st(x.transformPerspective,m.perspective)},g=x.directionalRotation,null!=g)if("object"==typeof g)for(f in g)x[f]=g[f];else x.rotation=g;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(u.x=0,u.xPercent=st(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(u.y=0,u.yPercent=st(x.y,m.yPercent)),u.rotation=ot("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",b),kt&&(u.rotationX=ot("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",b),u.rotationY=ot("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",b)),u.skewX=null==x.skewX?m.skewX:ot(x.skewX,m.skewX),u.skewY=null==x.skewY?m.skewY:ot(x.skewY,m.skewY),(c=u.skewY-m.skewY)&&(u.skewX+=c,u.rotation+=c)}for(kt&&null!=x.force3D&&(m.force3D=x.force3D,d=!0),m.skewType=x.skewType||m.skewType||o.defaultSkewType,h=m.force3D||m.z||m.rotationX||m.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,h||null==x.scale||(u.scaleZ=1);--_>-1;)r=bt[_],p=u[r]-m[r],(p>y||-y>p||null!=x[r]||null!=j[r])&&(d=!0,s=new dt(m,r,m[r],p,s),r in b&&(s.e=b[r]),s.xs0=0,s.plugin=a,n._overwriteProps.push(s.n));return p=x.transformOrigin,m.svg&&(p||x.svgOrigin)&&(It(t,nt(p),u,x.svgOrigin),s=new dt(m,"xOrigin",m.xOrigin,u.xOrigin-m.xOrigin,s,-1,"transformOrigin"),s.b=m.xOrigin,s.e=s.xs0=u.xOrigin,s=new dt(m,"yOrigin",m.yOrigin,u.yOrigin-m.yOrigin,s,-1,"transformOrigin"),s.b=m.yOrigin,s.e=s.xs0=u.yOrigin,p=xt?null:"0px 0px"),(p||kt&&h&&m.zOrigin)&&(wt?(d=!0,r=Tt,p=(p||Q(t,r,i,!1,"50% 50%"))+"",s=new dt(v,r,0,0,s,-1,"transformOrigin"),s.b=v[r],s.plugin=a,kt?(f=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,s.xs0=s.e=p[0]+" "+(p[1]||"50%")+" 0px",s=new dt(m,"zOrigin",0,0,s,-1,s.n),s.b=f,s.xs0=s.e=m.zOrigin):s.xs0=s.e=p):nt(p+"",m)),d&&(n._transformType=m.svg&&xt||!h&&3!==this._transformType?2:3),s},prefix:!0}),yt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),yt("borderRadius",{defaultValue:"0px",parser:function(t,e,r,s,o){e=this.format(e);var a,l,u,c,f,p,h,d,g,m,v,y,_,x,b,w,S=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=t.style;for(g=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),a=e.split(" "),l=0;l<S.length;l++)this.p.indexOf("border")&&(S[l]=W(S[l])),f=c=Q(t,S[l],i,!1,"0px"),-1!==f.indexOf(" ")&&(c=f.split(" "),f=c[0],c=c[1]),p=u=a[l],h=parseFloat(f),y=f.substr((h+"").length),_="="===p.charAt(1),_?(d=parseInt(p.charAt(0)+"1",10),p=p.substr(2),d*=parseFloat(p),v=p.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(p),v=p.substr((d+"").length)),""===v&&(v=n[r]||y),v!==y&&(x=G(t,"borderLeft",h,y),b=G(t,"borderTop",h,y),"%"===v?(f=x/g*100+"%",c=b/m*100+"%"):"em"===v?(w=G(t,"borderLeft",1,"em"),f=x/w+"em",c=b/w+"em"):(f=x+"px",c=b+"px"),_&&(p=parseFloat(f)+d+v,u=parseFloat(c)+d+v)),o=gt(T,S[l],f+" "+c,p+" "+u,!1,"0px",o);return o},prefix:!0,formatter:ft("0px 0px 0px 0px",!1,!0)}),yt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,r,n,s,o){var a,l,u,c,f,p,h="background-position",d=i||$(t,null),m=this.format((d?g?d.getPropertyValue(h+"-x")+" "+d.getPropertyValue(h+"-y"):d.getPropertyValue(h):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==m.indexOf("%")!=(-1!==v.indexOf("%"))&&(p=Q(t,"backgroundImage").replace(C,""),p&&"none"!==p)){for(a=m.split(" "),l=v.split(" "),z.setAttribute("src",p),u=2;--u>-1;)m=a[u],c=-1!==m.indexOf("%"),c!==(-1!==l[u].indexOf("%"))&&(f=0===u?t.offsetWidth-z.width:t.offsetHeight-z.height,a[u]=c?parseFloat(m)/100*f+"px":parseFloat(m)/f*100+"%");m=a.join(" ")}return this.parseComplex(t.style,m,v,s,o)},formatter:nt}),yt("backgroundSize",{defaultValue:"0 0",formatter:nt}),yt("perspective",{defaultValue:"0px",prefix:!0}),yt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),yt("transformStyle",{prefix:!0}),yt("backfaceVisibility",{prefix:!0}),yt("userSelect",{prefix:!0}),yt("margin",{parser:pt("marginTop,marginRight,marginBottom,marginLeft")}),yt("padding",{parser:pt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),yt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,r,n,s,o){var a,l,u;return 9>g?(l=t.currentStyle,u=8>g?" ":",",a="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(a=this.format(Q(t,this.p,i,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),yt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),yt("autoRound,strictUnits",{parser:function(t,e,r,n,i){return i}}),yt("border",{defaultValue:"0px solid #000",parser:function(t,e,r,n,s,o){return this.parseComplex(t.style,this.format(Q(t,"borderTopWidth",i,!1,"0px")+" "+Q(t,"borderTopStyle",i,!1,"solid")+" "+Q(t,"borderTopColor",i,!1,"#000")),this.format(e),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ct)||["#000"])[0]}}),yt("borderWidth",{parser:pt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),yt("float,cssFloat,styleFloat",{parser:function(t,e,r,n,i){var s=t.style,o="cssFloat"in s?"cssFloat":"styleFloat";return new dt(s,o,0,0,i,-1,r,!1,0,s[o],e)}});var Mt=function(t){var e,r=this.t,n=r.filter||Q(this.data,"filter")||"",i=this.s+this.c*t|0;100===i&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(r.removeAttribute("filter"),e=!Q(this.data,"filter")):(r.filter=n.replace(S,""),e=!0)),e||(this.xn1&&(r.filter=n=n||"alpha(opacity="+i+")"),-1===n.indexOf("pacity")?0===i&&this.xn1||(r.filter=n+" alpha(opacity="+i+")"):r.filter=n.replace(b,"opacity="+i))};yt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,r,n,s,o){var a=parseFloat(Q(t,"opacity",i,!1,"1")),l=t.style,u="autoAlpha"===r;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),u&&1===a&&"hidden"===Q(t,"visibility",i)&&0!==e&&(a=0),X?s=new dt(l,"opacity",a,e-a,s):(s=new dt(l,"opacity",100*a,100*(e-a),s),s.xn1=u?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=Mt),u&&(s=new dt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(r)),s}});var Vt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(k,"-$1").toLowerCase())):t.removeAttribute(e))},Nt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,r=this.t.style;e;)e.v?r[e.p]=e.v:Vt(r,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};yt("className",{parser:function(t,e,n,s,o,a,l){var u,c,f,p,h,d=t.getAttribute("class")||"",g=t.style.cssText;if(o=s._classNamePT=new dt(t,n,0,0,o,2),o.setRatio=Nt,o.pr=-11,r=!0,o.b=d,c=K(t,i),f=t._gsClassPT){for(p={},h=f.data;h;)p[h.p]=1,h=h._next;f.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:d.replace(new RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),s._tween._duration&&(t.setAttribute("class",o.e),u=J(t,c,K(t),l,p),t.setAttribute("class",d),o.data=u.firstMPT,t.style.cssText=g,o=o.xfirst=s.parse(t,u.difs,o,a)),o}});var zt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,r,n,i,s=this.t.style,o=l.transform.parse;if("all"===this.e)s.cssText="",i=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)r=e[n],l[r]&&(l[r].parse===o?i=!0:r="transformOrigin"===r?Tt:l[r].p),Vt(s,r);i&&(Vt(s,wt),this.t._gsTransform&&delete this.t._gsTransform)}};for(yt("clearProps",{parser:function(t,e,n,i,s){return s=new dt(t,n,0,0,s,2),s.setRatio=zt,s.e=e,s.pr=-10,s.data=i._tween,r=!0,s}}),u="bezier,throwProps,physicsProps,physics2D".split(","),mt=u.length;mt--;)_t(u[mt]);u=o.prototype,u._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,a){if(!t.nodeType)return!1;this._target=t,this._tween=a,this._vars=e,c=e.autoRound,r=!1,n=e.suffixMap||o.suffixMap,i=$(t,""),s=this._overwriteProps;var l,u,h,g,m,v,y,_,x,b=t.style;if(f&&""===b.zIndex&&(l=Q(t,"zIndex",i),("auto"===l||""===l)&&this._addLazySet(b,"zIndex",0)),"string"==typeof e&&(g=b.cssText,l=K(t,i),b.cssText=g+";"+e,l=J(t,l,K(t)).difs,!X&&w.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,b.cssText=g),this._firstPT=u=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,wt?p&&(f=!0,""===b.zIndex&&(y=Q(t,"zIndex",i),("auto"===y||""===y)&&this._addLazySet(b,"zIndex",0)),d&&this._addLazySet(b,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):b.zoom=1,h=u;h&&h._next;)h=h._next;_=new dt(t,"transform",0,0,null,2),this._linkCSSP(_,null,h),_.setRatio=x&&kt?Rt:wt?jt:Ft,_.data=this._transform||Lt(t,i,!0),_.tween=a,s.pop()}if(r){for(;u;){for(v=u._next,h=g;h&&h.pr>u.pr;)h=h._next;(u._prev=h?h._prev:m)?u._prev._next=u:g=u,(u._next=h)?h._prev=u:m=u,u=v}this._firstPT=g}return!0},u.parse=function(t,e,r,s){var o,a,u,f,p,h,d,g,m,v,y=t.style;for(o in e)h=e[o],a=l[o],a?r=a.parse(t,h,o,this,r,s,e):(p=Q(t,o,i)+"",m="string"==typeof h,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||m&&T.test(h)?(m||(h=ut(h),h=(h.length>3?"rgba(":"rgb(")+h.join(",")+")"),r=gt(y,o,p,h,!0,"transparent",r,0,s)):!m||-1===h.indexOf(" ")&&-1===h.indexOf(",")?(u=parseFloat(p),d=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===o||"height"===o?(u=rt(t,o,i),d="px"):"left"===o||"top"===o?(u=Z(t,o,i),d="px"):(u="opacity"!==o?0:1,d="")),v=m&&"="===h.charAt(1),v?(f=parseInt(h.charAt(0)+"1",10),h=h.substr(2),f*=parseFloat(h),g=h.replace(x,"")):(f=parseFloat(h),g=m?h.replace(x,""):""),""===g&&(g=o in n?n[o]:d),h=f||0===f?(v?f+u:f)+g:e[o],d!==g&&""!==g&&(f||0===f)&&u&&(u=G(t,o,u,d),"%"===g?(u/=G(t,o,100,"%")/100,e.strictUnits!==!0&&(p=u+"%")):"em"===g?u/=G(t,o,1,"em"):"px"!==g&&(f=G(t,o,f,g),g="px"),v&&(f||0===f)&&(h=f+u+g)),v&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==y[o]&&(h||h+""!="NaN"&&null!=h)?(r=new dt(y,o,f||u||0,0,r,-1,o,!1,0,p,h),r.xs0="none"!==h||"display"!==o&&-1===o.indexOf("Style")?h:p):B("invalid "+o+" tween value: "+e[o]):(r=new dt(y,o,u,f-u,r,0,o,c!==!1&&("px"===g||"zIndex"===o),0,p,h),r.xs0=g)):r=gt(y,o,p,h,!0,null,r,0,s)),s&&r&&!r.plugin&&(r.plugin=s);return r},u.setRatio=function(t){var e,r,n,i=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;i;){if(e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.type)if(1===i.type)if(n=i.l,2===n)i.t[i.p]=i.xs0+e+i.xs1+i.xn1+i.xs2;else if(3===n)i.t[i.p]=i.xs0+e+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3;else if(4===n)i.t[i.p]=i.xs0+e+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4;else if(5===n)i.t[i.p]=i.xs0+e+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4+i.xn4+i.xs5;else{for(r=i.xs0+e+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=r}else-1===i.type?i.t[i.p]=i.xs0:i.setRatio&&i.setRatio(t);else i.t[i.p]=e+i.xs0;i=i._next}else for(;i;)2!==i.type?i.t[i.p]=i.b:i.setRatio(t),i=i._next;else for(;i;)2!==i.type?i.t[i.p]=i.e:i.setRatio(t),i=i._next},u._enableTransforms=function(t){this._transform=this._transform||Lt(this._target,i,!0),this._transformType=this._transform.svg&&xt||!t&&3!==this._transformType?2:3};var Ht=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,r){var n=this._firstPT=new dt(t,e,0,0,this._firstPT,2);n.e=r,n.setRatio=Ht,n.data=this},u._linkCSSP=function(t,e,r,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),r?r._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=r),t},u._kill=function(e){var r,n,i,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(r=this._classNamePT)&&(i=r.xfirst,i&&i._prev?this._linkCSSP(i._prev,r._next,i._prev._prev):i===this._firstPT&&(this._firstPT=r._next),r._next&&this._linkCSSP(r._next,r._next._next,i._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Dt=function(t,e,r){var n,i,s,o;if(t.slice)for(i=t.length;--i>-1;)Dt(t[i],e,r);else for(n=t.childNodes,i=n.length;--i>-1;)s=n[i],o=s.type,s.style&&(e.push(K(s)),r&&r.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||Dt(s,e,r)};return o.cascadeTo=function(t,r,n){var i,s,o,a,l=e.to(t,r,n),u=[l],c=[],f=[],p=[],h=e._internals.reservedProps;for(t=l._targets||l.target,Dt(t,c,p),l.render(r,!0,!0),Dt(t,f),l.render(0,!0,!0),l._enabled(!0),i=p.length;--i>-1;)if(s=J(p[i],c[i],f[i]),s.firstMPT){s=s.difs;for(o in n)h[o]&&(s[o]=n[o]);a={};for(o in s)a[o]=c[i][o];u.push(e.fromTo(p[i],r,a,s))}return u},t.activate([o]),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin"),function(){var t,e,r,n,i,s,o,a,l,u,c,f,p,h,d,g,m,v,y,_,x,b,w,S,T,k,P,C,O,A,E,I,L,F,R,j,M,V,N,z,H,D,X,q,B,U,Y,W,$,Q=[].slice,G={}.hasOwnProperty,Z=function(t,e){function r(){this.constructor=t}for(var n in e)G.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},K=[].indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(e in this&&this[e]===t)return e;return-1};for(x={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},O=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,_=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==E&&(E=function(t){return setTimeout(t,50)},_=function(t){return clearTimeout(t)}),L=function(t){var e,r;return e=O(),(r=function(){var n;return n=O()-e,n>=33?(e=O(),t(n,function(){return E(r);
  
  })):setTimeout(r,33-n)})()},I=function(){var t,e,r;return r=arguments[0],e=arguments[1],t=3<=arguments.length?Q.call(arguments,2):[],"function"==typeof r[e]?r[e].apply(r,t):r[e]},b=function(){var t,e,r,n,i,s,o;for(e=arguments[0],n=2<=arguments.length?Q.call(arguments,1):[],s=0,o=n.length;o>s;s++)if(r=n[s])for(t in r)G.call(r,t)&&(i=r[t],null!=e[t]&&"object"==typeof e[t]&&null!=i&&"object"==typeof i?b(e[t],i):e[t]=i);return e},m=function(t){var e,r,n,i,s;for(r=e=0,i=0,s=t.length;s>i;i++)n=t[i],r+=Math.abs(n),e++;return r/e},S=function(t,e){var r,n,i;if(null==t&&(t="options"),null==e&&(e=!0),i=document.querySelector("[data-pace-"+t+"]")){if(r=i.getAttribute("data-pace-"+t),!e)return r;try{return JSON.parse(r)}catch(s){return n=s,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",n):void 0}}},o=function(){function t(){}return t.prototype.on=function(t,e,r,n){var i;return null==n&&(n=!1),null==this.bindings&&(this.bindings={}),null==(i=this.bindings)[t]&&(i[t]=[]),this.bindings[t].push({handler:e,ctx:r,once:n})},t.prototype.once=function(t,e,r){return this.on(t,e,r,!0)},t.prototype.off=function(t,e){var r,n,i;if(null!=(null!=(n=this.bindings)?n[t]:void 0)){if(null==e)return delete this.bindings[t];for(r=0,i=[];r<this.bindings[t].length;)i.push(this.bindings[t][r].handler===e?this.bindings[t].splice(r,1):r++);return i}},t.prototype.trigger=function(){var t,e,r,n,i,s,o,a,l;if(r=arguments[0],t=2<=arguments.length?Q.call(arguments,1):[],null!=(o=this.bindings)?o[r]:void 0){for(i=0,l=[];i<this.bindings[r].length;)a=this.bindings[r][i],n=a.handler,e=a.ctx,s=a.once,n.apply(null!=e?e:this,t),l.push(s?this.bindings[r].splice(i,1):i++);return l}},t}(),u=window.Pace||{},window.Pace=u,b(u,o.prototype),A=u.options=b({},x,window.paceOptions,S()),Y=["ajax","document","eventLag","elements"],X=0,B=Y.length;B>X;X++)M=Y[X],A[M]===!0&&(A[M]=x[M]);l=function(t){function e(){return W=e.__super__.constructor.apply(this,arguments)}return Z(e,t),e}(Error),e=function(){function t(){this.progress=0}return t.prototype.getElement=function(){var t;if(null==this.el){if(t=document.querySelector(A.target),!t)throw new l;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},t.prototype.finish=function(){var t;return t=this.getElement(),t.className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},t.prototype.update=function(t){return this.progress=t,this.render()},t.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){l=t}return this.el=void 0},t.prototype.render=function(){var t,e;return null==document.querySelector(A.target)?!1:(t=this.getElement(),t.children[0].style.width=""+this.progress+"%",(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",""+(0|this.progress)+"%"),this.progress>=100?e="99":(e=this.progress<10?"0":"",e+=0|this.progress),t.children[0].setAttribute("data-progress",""+e)),this.lastRenderedProgress=this.progress)},t.prototype.done=function(){return this.progress>=100},t}(),a=function(){function t(){this.bindings={}}return t.prototype.trigger=function(t,e){var r,n,i,s,o;if(null!=this.bindings[t]){for(s=this.bindings[t],o=[],n=0,i=s.length;i>n;n++)r=s[n],o.push(r.call(this,e));return o}},t.prototype.on=function(t,e){var r;return null==(r=this.bindings)[t]&&(r[t]=[]),this.bindings[t].push(e)},t}(),D=window.XMLHttpRequest,H=window.XDomainRequest,z=window.WebSocket,w=function(t,e){var r,n,i,s;s=[];for(n in e.prototype)try{i=e.prototype[n],s.push(null==t[n]&&"function"!=typeof i?t[n]=i:void 0)}catch(o){r=o}return s},P=[],u.ignore=function(){var t,e,r;return e=arguments[0],t=2<=arguments.length?Q.call(arguments,1):[],P.unshift("ignore"),r=e.apply(null,t),P.shift(),r},u.track=function(){var t,e,r;return e=arguments[0],t=2<=arguments.length?Q.call(arguments,1):[],P.unshift("track"),r=e.apply(null,t),P.shift(),r},j=function(t){var e;if(null==t&&(t="GET"),"track"===P[0])return"force";if(!P.length&&A.ajax){if("socket"===t&&A.ajax.trackWebSockets)return!0;if(e=t.toUpperCase(),K.call(A.ajax.trackMethods,e)>=0)return!0}return!1},c=function(t){function e(){var t,r=this;e.__super__.constructor.apply(this,arguments),t=function(t){var e;return e=t.open,t.open=function(n,i){return j(n)&&r.trigger("request",{type:n,url:i,request:t}),e.apply(t,arguments)}},window.XMLHttpRequest=function(e){var r;return r=new D(e),t(r),r};try{w(window.XMLHttpRequest,D)}catch(n){}if(null!=H){window.XDomainRequest=function(){var e;return e=new H,t(e),e};try{w(window.XDomainRequest,H)}catch(n){}}if(null!=z&&A.ajax.trackWebSockets){window.WebSocket=function(t,e){var n;return n=null!=e?new z(t,e):new z(t),j("socket")&&r.trigger("request",{type:"socket",url:t,protocols:e,request:n}),n};try{w(window.WebSocket,z)}catch(n){}}}return Z(e,t),e}(a),q=null,T=function(){return null==q&&(q=new c),q},R=function(t){var e,r,n,i;for(i=A.ajax.ignoreURLs,r=0,n=i.length;n>r;r++)if(e=i[r],"string"==typeof e){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},T().on("request",function(e){var r,n,i,s,o;return s=e.type,i=e.request,o=e.url,R(o)?void 0:u.running||A.restartOnRequestAfter===!1&&"force"!==j(s)?void 0:(n=arguments,r=A.restartOnRequestAfter||0,"boolean"==typeof r&&(r=0),setTimeout(function(){var e,r,o,a,l,c;if(e="socket"===s?i.readyState<2:0<(a=i.readyState)&&4>a){for(u.restart(),l=u.sources,c=[],r=0,o=l.length;o>r;r++){if(M=l[r],M instanceof t){M.watch.apply(M,n);break}c.push(void 0)}return c}},r))}),t=function(){function t(){var t=this;this.elements=[],T().on("request",function(){return t.watch.apply(t,arguments)})}return t.prototype.watch=function(t){var e,r,n,i;return n=t.type,e=t.request,i=t.url,R(i)?void 0:(r="socket"===n?new h(e):new d(e),this.elements.push(r))},t}(),d=function(){function t(t){var e,r,n,i,s,o,a=this;if(this.progress=0,null!=window.ProgressEvent)for(r=null,t.addEventListener("progress",function(t){return a.progress=t.lengthComputable?100*t.loaded/t.total:a.progress+(100-a.progress)/2},!1),o=["load","abort","timeout","error"],n=0,i=o.length;i>n;n++)e=o[n],t.addEventListener(e,function(){return a.progress=100},!1);else s=t.onreadystatechange,t.onreadystatechange=function(){var e;return 0===(e=t.readyState)||4===e?a.progress=100:3===t.readyState&&(a.progress=50),"function"==typeof s?s.apply(null,arguments):void 0}}return t}(),h=function(){function t(t){var e,r,n,i,s=this;for(this.progress=0,i=["error","open"],r=0,n=i.length;n>r;r++)e=i[r],t.addEventListener(e,function(){return s.progress=100},!1)}return t}(),n=function(){function t(t){var e,r,n,s;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),s=t.selectors,r=0,n=s.length;n>r;r++)e=s[r],this.elements.push(new i(e))}return t}(),i=function(){function t(t){this.selector=t,this.progress=0,this.check()}return t.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},A.elements.checkInterval)},t.prototype.done=function(){return this.progress=100},t}(),r=function(){function t(){var t,e,r=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=r.states[document.readyState]&&(r.progress=r.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}return t.prototype.states={loading:0,interactive:50,complete:100},t}(),s=function(){function t(){var t,e,r,n,i,s=this;this.progress=0,t=0,i=[],n=0,r=O(),e=setInterval(function(){var o;return o=O()-r-50,r=O(),i.push(o),i.length>A.eventLag.sampleCount&&i.shift(),t=m(i),++n>=A.eventLag.minSamples&&t<A.eventLag.lagThreshold?(s.progress=100,clearInterval(e)):s.progress=100*(3/(t+3))},50)}return t}(),p=function(){function t(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=A.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=I(this.source,"progress"))}return t.prototype.tick=function(t,e){var r;return null==e&&(e=I(this.source,"progress")),e>=100&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/A.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),r=1-Math.pow(this.progress/100,A.easeFactor),this.progress+=r*this.rate*t,this.progress=Math.min(this.lastProgress+A.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}(),V=null,F=null,v=null,N=null,g=null,y=null,u.running=!1,k=function(){return A.restartOnPushState?u.restart():void 0},null!=window.history.pushState&&(U=window.history.pushState,window.history.pushState=function(){return k(),U.apply(window.history,arguments)}),null!=window.history.replaceState&&($=window.history.replaceState,window.history.replaceState=function(){return k(),$.apply(window.history,arguments)}),f={ajax:t,elements:n,document:r,eventLag:s},(C=function(){var t,r,n,i,s,o,a,l;for(u.sources=V=[],o=["ajax","elements","document","eventLag"],r=0,i=o.length;i>r;r++)t=o[r],A[t]!==!1&&V.push(new f[t](A[t]));for(l=null!=(a=A.extraSources)?a:[],n=0,s=l.length;s>n;n++)M=l[n],V.push(new M(A));return u.bar=v=new e,F=[],N=new p})(),u.stop=function(){return u.trigger("stop"),u.running=!1,v.destroy(),y=!0,null!=g&&("function"==typeof _&&_(g),g=null),C()},u.restart=function(){return u.trigger("restart"),u.stop(),u.start()},u.go=function(){var t;return u.running=!0,v.render(),t=O(),y=!1,g=L(function(e,r){var n,i,s,o,a,l,c,f,h,d,g,m,_,x,b,w;for(f=100-v.progress,i=g=0,s=!0,l=m=0,x=V.length;x>m;l=++m)for(M=V[l],d=null!=F[l]?F[l]:F[l]=[],a=null!=(w=M.elements)?w:[M],c=_=0,b=a.length;b>_;c=++_)o=a[c],h=null!=d[c]?d[c]:d[c]=new p(o),s&=h.done,h.done||(i++,g+=h.tick(e));return n=g/i,v.update(N.tick(e,n)),v.done()||s||y?(v.update(100),u.trigger("done"),setTimeout(function(){return v.finish(),u.running=!1,u.trigger("hide")},Math.max(A.ghostTime,Math.max(A.minTime-(O()-t),0)))):r()})},u.start=function(t){b(A,t),u.running=!0;try{v.render()}catch(e){l=e}return document.querySelector(".pace")?(u.trigger("start"),u.go()):setTimeout(u.start,50)},"function"==typeof define&&define.amd?define(function(){return u}):"object"==typeof exports?module.exports=u:A.startOnPageLoad&&u.start()}.call(this),!function(t,e){"use strict";var r=t.History=t.History||{},n=t.jQuery;if("undefined"!=typeof r.Adapter)throw new Error("History.js Adapter has already been loaded...");r.Adapter={bind:function(t,e,r){n(t).bind(e,r)},trigger:function(t,e,r){n(t).trigger(e,r)},extractEventData:function(t,r,n){var i=r&&r.originalEvent&&r.originalEvent[t]||n&&n[t]||e;return i},onDomLoad:function(t){n(t)}},"undefined"!=typeof r.init&&r.init()}(window),function(t,e){"use strict";var r=t.console||e,n=t.document,i=t.navigator,s=t.sessionStorage||!1,o=t.setTimeout,a=t.clearTimeout,l=t.setInterval,u=t.clearInterval,c=t.JSON,f=t.alert,p=t.History=t.History||{},h=t.history;try{s.setItem("TEST","1"),s.removeItem("TEST")}catch(d){s=!1}if(c.stringify=c.stringify||c.encode,c.parse=c.parse||c.decode,"undefined"!=typeof p.init)throw new Error("History.js Core has already been loaded...");p.init=function(){return"undefined"==typeof p.Adapter?!1:("undefined"!=typeof p.initCore&&p.initCore(),"undefined"!=typeof p.initHtml4&&p.initHtml4(),!0)},p.initCore=function(){if("undefined"!=typeof p.initCore.initialized)return!1;if(p.initCore.initialized=!0,p.options=p.options||{},p.options.hashChangeInterval=p.options.hashChangeInterval||100,p.options.safariPollInterval=p.options.safariPollInterval||500,p.options.doubleCheckInterval=p.options.doubleCheckInterval||500,p.options.disableSuid=p.options.disableSuid||!1,p.options.storeInterval=p.options.storeInterval||1e3,p.options.busyDelay=p.options.busyDelay||250,p.options.debug=p.options.debug||!1,p.options.initialTitle=p.options.initialTitle||n.title,p.options.html4Mode=p.options.html4Mode||!1,p.options.delayInit=p.options.delayInit||!1,p.intervalList=[],p.clearAllIntervals=function(){var t,e=p.intervalList;if("undefined"!=typeof e&&null!==e){for(t=0;t<e.length;t++)u(e[t]);p.intervalList=null}},p.debug=function(){(p.options.debug||!1)&&p.log.apply(p,arguments)},p.log=function(){var t,e,i,s,o,a="undefined"!=typeof r&&"undefined"!=typeof r.log&&"undefined"!=typeof r.log.apply,l=n.getElementById("log");for(a?(s=Array.prototype.slice.call(arguments),t=s.shift(),"undefined"!=typeof r.debug?r.debug.apply(r,[t,s]):r.log.apply(r,[t,s])):t="\n"+arguments[0]+"\n",e=1,i=arguments.length;i>e;++e){if(o=arguments[e],"object"==typeof o&&"undefined"!=typeof c)try{o=c.stringify(o)}catch(u){}t+="\n"+o+"\n"}return l?(l.value+=t+"\n-----\n",l.scrollTop=l.scrollHeight-l.clientHeight):a||f(t),!0},p.getInternetExplorerMajorVersion=function(){var t=p.getInternetExplorerMajorVersion.cached="undefined"!=typeof p.getInternetExplorerMajorVersion.cached?p.getInternetExplorerMajorVersion.cached:function(){for(var t=3,e=n.createElement("div"),r=e.getElementsByTagName("i");(e.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->")&&r[0];);return t>4?t:!1}();return t},p.isInternetExplorer=function(){var t=p.isInternetExplorer.cached="undefined"!=typeof p.isInternetExplorer.cached?p.isInternetExplorer.cached:Boolean(p.getInternetExplorerMajorVersion());return t},p.emulated=p.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(t.history&&t.history.pushState&&t.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(i.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(i.userAgent)),hashChange:Boolean(!("onhashchange"in t||"onhashchange"in n)||p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<8)},p.enabled=!p.emulated.pushState,p.bugs={setHash:Boolean(!p.emulated.pushState&&"Apple Computer, Inc."===i.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),safariPoll:Boolean(!p.emulated.pushState&&"Apple Computer, Inc."===i.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),ieDoubleCheck:Boolean(p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(p.isInternetExplorer()&&p.getInternetExplorerMajorVersion()<7)},p.isEmptyObject=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},p.cloneObject=function(t){var e,r;return t?(e=c.stringify(t),r=c.parse(e)):r={},r},p.getRootUrl=function(){var t=n.location.protocol+"//"+(n.location.hostname||n.location.host);return n.location.port&&(t+=":"+n.location.port),t+="/"},p.getBaseHref=function(){var t=n.getElementsByTagName("base"),e=null,r="";return 1===t.length&&(e=t[0],r=e.href.replace(/[^\/]+$/,"")),r=r.replace(/\/+$/,""),r&&(r+="/"),r},p.getBaseUrl=function(){var t=p.getBaseHref()||p.getBasePageUrl()||p.getRootUrl();return t},p.getPageUrl=function(){var t,e=p.getState(!1,!1),r=(e||{}).url||p.getLocationHref();return t=r.replace(/\/+$/,"").replace(/[^\/]+$/,function(t){return/\./.test(t)?t:t+"/"})},p.getBasePageUrl=function(){var t=p.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(t){return/[^\/]$/.test(t)?"":t}).replace(/\/+$/,"")+"/";return t},p.getFullUrl=function(t,e){var r=t,n=t.substring(0,1);return e="undefined"==typeof e?!0:e,/[a-z]+\:\/\//.test(t)||(r="/"===n?p.getRootUrl()+t.replace(/^\/+/,""):"#"===n?p.getPageUrl().replace(/#.*/,"")+t:"?"===n?p.getPageUrl().replace(/[\?#].*/,"")+t:e?p.getBaseUrl()+t.replace(/^(\.\/)+/,""):p.getBasePageUrl()+t.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},p.getShortUrl=function(t){var e=t,r=p.getBaseUrl(),n=p.getRootUrl();return p.emulated.pushState&&(e=e.replace(r,"")),e=e.replace(n,"/"),p.isTraditionalAnchor(e)&&(e="./"+e),e=e.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},p.getLocationHref=function(t){return t=t||n,t.URL===t.location.href?t.location.href:t.location.href===decodeURIComponent(t.URL)?t.URL:t.location.hash&&decodeURIComponent(t.location.href.replace(/^[^#]+/,""))===t.location.hash?t.location.href:-1==t.URL.indexOf("#")&&-1!=t.location.href.indexOf("#")?t.location.href:t.URL||t.location.href},p.store={},p.idToState=p.idToState||{},p.stateToId=p.stateToId||{},p.urlToId=p.urlToId||{},p.storedStates=p.storedStates||[],p.savedStates=p.savedStates||[],p.normalizeStore=function(){p.store.idToState=p.store.idToState||{},p.store.urlToId=p.store.urlToId||{},p.store.stateToId=p.store.stateToId||{}},p.getState=function(t,e){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=!0);var r=p.getLastSavedState();return!r&&e&&(r=p.createStateObject()),t&&(r=p.cloneObject(r),r.url=r.cleanUrl||r.url),r},p.getIdByState=function(t){var e,r=p.extractId(t.url);if(!r)if(e=p.getStateString(t),"undefined"!=typeof p.stateToId[e])r=p.stateToId[e];else if("undefined"!=typeof p.store.stateToId[e])r=p.store.stateToId[e];else{for(;r=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),"undefined"!=typeof p.idToState[r]||"undefined"!=typeof p.store.idToState[r];);p.stateToId[e]=r,p.idToState[r]=t}return r},p.normalizeState=function(t){var e,r;return t&&"object"==typeof t||(t={}),"undefined"!=typeof t.normalized?t:(t.data&&"object"==typeof t.data||(t.data={}),e={},e.normalized=!0,e.title=t.title||"",e.url=p.getFullUrl(t.url?t.url:p.getLocationHref()),e.hash=p.getShortUrl(e.url),e.data=p.cloneObject(t.data),e.id=p.getIdByState(e),e.cleanUrl=e.url.replace(/\??\&_suid.*/,""),e.url=e.cleanUrl,r=!p.isEmptyObject(e.data),(e.title||r)&&p.options.disableSuid!==!0&&(e.hash=p.getShortUrl(e.url).replace(/\??\&_suid.*/,""),/\?/.test(e.hash)||(e.hash+="?"),e.hash+="&_suid="+e.id),e.hashedUrl=p.getFullUrl(e.hash),(p.emulated.pushState||p.bugs.safariPoll)&&p.hasUrlDuplicate(e)&&(e.url=e.hashedUrl),e)},p.createStateObject=function(t,e,r){var n={data:t,title:e,url:r};return n=p.normalizeState(n)},p.getStateById=function(t){t=String(t);var r=p.idToState[t]||p.store.idToState[t]||e;return r},p.getStateString=function(t){var e,r,n;return e=p.normalizeState(t),r={data:e.data,title:t.title,url:t.url},n=c.stringify(r)},p.getStateId=function(t){var e,r;return e=p.normalizeState(t),r=e.id},p.getHashByState=function(t){var e,r;return e=p.normalizeState(t),r=e.hash},p.extractId=function(t){var e,r,n,i;return i=-1!=t.indexOf("#")?t.split("#")[0]:t,r=/(.*)\&_suid=([0-9]+)$/.exec(i),n=r?r[1]||t:t,e=r?String(r[2]||""):"",e||!1},p.isTraditionalAnchor=function(t){var e=!/[\/\?\.]/.test(t);return e},p.extractState=function(t,e){var r,n,i=null;return e=e||!1,r=p.extractId(t),r&&(i=p.getStateById(r)),i||(n=p.getFullUrl(t),r=p.getIdByUrl(n)||!1,r&&(i=p.getStateById(r)),!i&&e&&!p.isTraditionalAnchor(t)&&(i=p.createStateObject(null,null,n))),i},p.getIdByUrl=function(t){var r=p.urlToId[t]||p.store.urlToId[t]||e;return r},p.getLastSavedState=function(){return p.savedStates[p.savedStates.length-1]||e},p.getLastStoredState=function(){return p.storedStates[p.storedStates.length-1]||e},p.hasUrlDuplicate=function(t){var e,r=!1;return e=p.extractState(t.url),r=e&&e.id!==t.id},p.storeState=function(t){return p.urlToId[t.url]=t.id,p.storedStates.push(p.cloneObject(t)),t},p.isLastSavedState=function(t){var e,r,n,i=!1;return p.savedStates.length&&(e=t.id,r=p.getLastSavedState(),n=r.id,i=e===n),i},p.saveState=function(t){return p.isLastSavedState(t)?!1:(p.savedStates.push(p.cloneObject(t)),!0)},p.getStateByIndex=function(t){var e=null;return e="undefined"==typeof t?p.savedStates[p.savedStates.length-1]:0>t?p.savedStates[p.savedStates.length+t]:p.savedStates[t]},p.getCurrentIndex=function(){var t=null;return t=p.savedStates.length<1?0:p.savedStates.length-1},p.getHash=function(t){var e,r=p.getLocationHref(t);return e=p.getHashByUrl(r)},p.unescapeHash=function(t){var e=p.normalizeHash(t);return e=decodeURIComponent(e)},p.normalizeHash=function(t){var e=t.replace(/[^#]*#/,"").replace(/#.*/,"");return e},p.setHash=function(t,e){var r,i;return e!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.setHash,args:arguments,queue:e}),!1):(p.busy(!0),r=p.extractState(t,!0),r&&!p.emulated.pushState?p.pushState(r.data,r.title,r.url,!1):p.getHash()!==t&&(p.bugs.setHash?(i=p.getPageUrl(),p.pushState(null,null,i+"#"+t,!1)):n.location.hash=t),p)},p.escapeHash=function(e){var r=p.normalizeHash(e);return r=t.encodeURIComponent(r),p.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},p.getHashByUrl=function(t){var e=String(t).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return e=p.unescapeHash(e)},p.setTitle=function(t){var e,r=t.title;r||(e=p.getStateByIndex(0),e&&e.url===t.url&&(r=e.title||p.options.initialTitle));try{n.getElementsByTagName("title")[0].innerHTML=r.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(i){}return n.title=r,p},p.queues=[],p.busy=function(t){if("undefined"!=typeof t?p.busy.flag=t:"undefined"==typeof p.busy.flag&&(p.busy.flag=!1),!p.busy.flag){a(p.busy.timeout);var e=function(){var t,r,n;if(!p.busy.flag)for(t=p.queues.length-1;t>=0;--t)r=p.queues[t],0!==r.length&&(n=r.shift(),p.fireQueueItem(n),p.busy.timeout=o(e,p.options.busyDelay))};p.busy.timeout=o(e,p.options.busyDelay)}return p.busy.flag},p.busy.flag=!1,p.fireQueueItem=function(t){return t.callback.apply(t.scope||p,t.args||[])},p.pushQueue=function(t){return p.queues[t.queue||0]=p.queues[t.queue||0]||[],p.queues[t.queue||0].push(t),p},p.queue=function(t,e){return"function"==typeof t&&(t={callback:t}),"undefined"!=typeof e&&(t.queue=e),p.busy()?p.pushQueue(t):p.fireQueueItem(t),p},p.clearQueue=function(){return p.busy.flag=!1,p.queues=[],p},p.stateChanged=!1,p.doubleChecker=!1,p.doubleCheckComplete=function(){return p.stateChanged=!0,p.doubleCheckClear(),p},p.doubleCheckClear=function(){return p.doubleChecker&&(a(p.doubleChecker),p.doubleChecker=!1),p},p.doubleCheck=function(t){return p.stateChanged=!1,p.doubleCheckClear(),p.bugs.ieDoubleCheck&&(p.doubleChecker=o(function(){return p.doubleCheckClear(),p.stateChanged||t(),!0},p.options.doubleCheckInterval)),p},p.safariStatePoll=function(){var e,r=p.extractState(p.getLocationHref());return p.isLastSavedState(r)?void 0:(e=r,e||(e=p.createStateObject()),p.Adapter.trigger(t,"popstate"),p)},p.back=function(t){return t!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.back,args:arguments,queue:t}),!1):(p.busy(!0),p.doubleCheck(function(){p.back(!1)}),h.go(-1),!0)},p.forward=function(t){return t!==!1&&p.busy()?(p.pushQueue({scope:p,callback:p.forward,args:arguments,queue:t}),!1):(p.busy(!0),p.doubleCheck(function(){p.forward(!1)}),h.go(1),!0)},p.go=function(t,e){var r;if(t>0)for(r=1;t>=r;++r)p.forward(e);else{if(!(0>t))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=t;--r)p.back(e)}return p},p.emulated.pushState){var d=function(){};p.pushState=p.pushState||d,p.replaceState=p.replaceState||d}else p.onPopState=function(e,r){var n,i,s=!1,o=!1;return p.doubleCheckComplete(),n=p.getHash(),n?(i=p.extractState(n||p.getLocationHref(),!0),i?p.replaceState(i.data,i.title,i.url,!1):(p.Adapter.trigger(t,"anchorchange"),p.busy(!1)),p.expectedStateId=!1,!1):(s=p.Adapter.extractEventData("state",e,r)||!1,o=s?p.getStateById(s):p.expectedStateId?p.getStateById(p.expectedStateId):p.extractState(p.getLocationHref()),o||(o=p.createStateObject(null,null,p.getLocationHref())),p.expectedStateId=!1,p.isLastSavedState(o)?(p.busy(!1),!1):(p.storeState(o),p.saveState(o),p.setTitle(o),p.Adapter.trigger(t,"statechange"),p.busy(!1),!0))},p.Adapter.bind(t,"popstate",p.onPopState),p.pushState=function(e,r,n,i){if(p.getHashByUrl(n)&&p.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&p.busy())return p.pushQueue({scope:p,callback:p.pushState,args:arguments,queue:i}),!1;p.busy(!0);var s=p.createStateObject(e,r,n);return p.isLastSavedState(s)?p.busy(!1):(p.storeState(s),p.expectedStateId=s.id,h.pushState(s.id,s.title,s.url),p.Adapter.trigger(t,"popstate")),!0},p.replaceState=function(e,r,n,i){if(p.getHashByUrl(n)&&p.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&p.busy())return p.pushQueue({scope:p,callback:p.replaceState,args:arguments,queue:i}),!1;p.busy(!0);var s=p.createStateObject(e,r,n);return p.isLastSavedState(s)?p.busy(!1):(p.storeState(s),p.expectedStateId=s.id,h.replaceState(s.id,s.title,s.url),p.Adapter.trigger(t,"popstate")),!0};if(s){try{p.store=c.parse(s.getItem("History.store"))||{}}catch(g){p.store={}}p.normalizeStore()}else p.store={},p.normalizeStore();p.Adapter.bind(t,"unload",p.clearAllIntervals),p.saveState(p.storeState(p.extractState(p.getLocationHref(),!0))),s&&(p.onUnload=function(){var t,e,r;try{t=c.parse(s.getItem("History.store"))||{}}catch(n){t={}}t.idToState=t.idToState||{},t.urlToId=t.urlToId||{},t.stateToId=t.stateToId||{};for(e in p.idToState)p.idToState.hasOwnProperty(e)&&(t.idToState[e]=p.idToState[e]);for(e in p.urlToId)p.urlToId.hasOwnProperty(e)&&(t.urlToId[e]=p.urlToId[e]);for(e in p.stateToId)p.stateToId.hasOwnProperty(e)&&(t.stateToId[e]=p.stateToId[e]);p.store=t,p.normalizeStore(),r=c.stringify(t);try{s.setItem("History.store",r)}catch(i){if(i.code!==DOMException.QUOTA_EXCEEDED_ERR)throw i;s.length&&(s.removeItem("History.store"),s.setItem("History.store",r))}},p.intervalList.push(l(p.onUnload,p.options.storeInterval)),p.Adapter.bind(t,"beforeunload",p.onUnload),p.Adapter.bind(t,"unload",p.onUnload)),p.emulated.pushState||(p.bugs.safariPoll&&p.intervalList.push(l(p.safariStatePoll,p.options.safariPollInterval)),("Apple Computer, Inc."===i.vendor||"Mozilla"===(i.appCodeName||""))&&(p.Adapter.bind(t,"hashchange",function(){p.Adapter.trigger(t,"popstate")}),p.getHash()&&p.Adapter.onDomLoad(function(){p.Adapter.trigger(t,"hashchange")})))},(!p.options||!p.options.delayInit)&&p.init()}(window);
  var Site=Site||{},$window=$window||$(window),$body=$body||$("body");!function(e){Site.Menu={isOpen:!1,init:function(){e("#header-trigger").off().on("click",Site.Menu.open),e("#header-closer").off().on("click",Site.Menu.close)},open:function(e){e&&e.preventDefault(),Site.Menu.isOpen?Site.Menu.close():(Site.Menu.savePosition(),$body.addClass("is-menu-open"),Site.Menu.isOpen=!0)},close:function(e){e&&e.preventDefault(),Site.Menu.savePosition(),$body.removeClass("is-menu-open"),setTimeout(Site.Menu.restorePosition,1e3),Site.Menu.isOpen=!1},savePosition:function(){if(Site.Scrolling.testResult){var t=null,i=0,o=window.scrollY,n=0,s=e(".js-sticky-col"),l=e(".hero");s&&s.each(function(){t=e(this),i=t.parent().offset().top,parentHeight=t.height(),height=t.height(),maxO=i+parentHeight-height,n=Math.min(maxO,Math.max(0,o-i+120)),"absolute"!==this.style.position&&(this.style.top=n+"px",this.style.position="absolute")}),l&&l.each(function(){t=e(this),n=t.offset().top,t.find(".hero-inner").css({position:"absolute",top:Math.max(0,o-n)})})}},restorePosition:function(){console.log("restoring positon"),e(".js-sticky-col").removeAttr("style"),e(".hero-inner").removeAttr("style"),Site.Scrolling.isScrolling=!0,Site.Scrolling.render()},onUnLoad:function(){Site.Menu.close()}}}(jQuery);
  var Site=Site||{};Array.prototype.reduce||(Array.prototype.reduce=function(t){"use strict";if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,e=Object(this),s=e.length>>>0,n=0;if(2==arguments.length)r=arguments[1];else{for(;s>n&&!n in e;)n++;if(n>=s)throw new TypeError("Reduce of empty array with no initial value");r=e[n++]}for(;s>n;n++)n in e&&(r=t(r,e[n],n,e));return r}),function(t){Site.Polyfills={init:function(){FastClick.attach(document.body)},onLoad:function(){Site.Polyfills.svg()},svg:function(){if(!Modernizr.svg){var r;t("img[src$='.svg']").each(function(){r=t(this).attr("src"),t(this).attr("src",r.replace(".svg",".png"))})}},addClass:function(t,r){t.classList?t.classList.add(r):t.className+=" "+r},removeClass:function(t,r){t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")},transform:function(t,r){t.style.webkitTransform=r,t.style.MozTransform=r,t.style.msTransform=r,t.style.transform=r}}}(jQuery);
  window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||!1}();var Site=Site||{};Site.Scrolling=function(t){var e,o="[data-scroll]",i=null,l="",r="",s="",a=0,n=!0,c=null,h=!1,d=function(){return window.matchMedia("(max-width: 1024px)").matches?!1:!0},g=function(){s=document.getElementById("header-top-title"),window.requestAnimFrame?($window.off(".scrolling").on("scroll.scrolling",f),function t(){requestAnimFrame(t),w()}()):$window.off(".scrolling").on("scroll.scrolling",w)},y=function(){h=d(),e=t(o),M(),t("img").each(function(){t(this).imagesLoaded(function(){M(),clearTimeout(c),c=setTimeout(M,250)})})},m=function(){i=[]},u=!1,p=null,f=function(){u=!0,clearTimeout(p),p=setTimeout(function(){u=!1},250)},w=function(){return h?void(u&&i&&v()):void(a>0&&(t(".js-scroll-styled").removeAttr("style").removeClass("js-scroll-styled"),a=0))},b=function(){if(console.log("force render called"),u&&i){var t=window.scrollY||$window.scrollTop();v(t)}},k=null,v=function(){var t,e=window.scrollY?window.scrollY:$window.scrollTop(),o=i.length,s=!1,a=function(t){t&&(Site.PushStates.changePath(t.path),Site.PushStates.setTitle(t.title||Site.title))};for(l="",n&&e>1?($body.addClass("is-scrolled"),n=!1):!n&&1>=e&&($body.removeClass("is-scrolled"),n=!0),t=1;o>t;t++)i[t].top<e?Site.Polyfills.addClass(i[t].el,"is-past-fold"):Site.Polyfills.removeClass(i[t].el,"is-past-fold"),i[t].top<e+i[0].height&&i[t].top+i[t].height>=e?(Site.Polyfills.addClass(i[t].el,"is-in-view"),Site.Polyfills.removeClass(i[t].el,"is-not-in-view"),i[t].path&&s===!1&&(s=!0,window.location.pathname!==i[t].path&&(clearTimeout(k),k=setTimeout(function(t){return function(){a(t)}}(i[t]),500))),i[t].role in C&&C[i[t].role](i[t],e)):(Site.Polyfills.removeClass(i[t].el,"is-in-view"),Site.Polyfills.addClass(i[t].el,"is-not-in-view")),i[t].top===e?Site.Polyfills.addClass(i[t].el,"is-aligned"):Site.Polyfills.removeClass(i[t].el,"is-aligned"),i[t].top+i[t].height<=i[0].height+e?Site.Polyfills.addClass(i[t].el,"is-past-bottom"):Site.Polyfills.removeClass(i[t].el,"is-past-bottom");l!=r&&(r=l)},C={hero:function(e,o){if(!Modernizr.touch&&h){var l=135;heroOpacity=1-Math.min(Math.max(0,4*((o-e.top)/(e.height-l)-.75)),1),color=Math.round(255*heroOpacity),titleColor=110+Math.round(145*heroOpacity),rgb="",rgbTitle="",r=0,s=Math.min(1,(o+1.25*i[0].height-e.top)/e.height),n="",d=Math.max(0,d),d=Math.min(1,d),s=-(1-s)*e.height*.2,n="translate3d(0,"+s+"px,0)",e.image=e.image||e.$el.find(".hero-image").get(0),e.t!=s&&TweenLite.to(e.el,.3,{overwrite:!0,y:s,z:0}),e.t=s,e.header=e.header||document.getElementById("header"),e.bars=e.bars||[t("#header-trigger").children().eq(0).get(0),t("#header-trigger").children().eq(1).get(0),t("#header-trigger").children().eq(2).get(0)],e.logo=e.logo||t(".logo").find("svg").get(0),Modernizr.rgba&&(o>e.height+e.top||o<e.top-80?(header.style.backgroundColor="#ffffff",header.style.borderColor="#cccccc",color=0):o<e.top?(heroOpacity=1-(e.top-o)/80,color=Math.round(255*heroOpacity),header.style.backgroundColor="rgba(255,255,255,"+(1-heroOpacity)+")",header.style.borderColor="rgba(204,204,204,"+(1-heroOpacity)+")"):(header.style.backgroundColor="rgba(255,255,255,"+(1-heroOpacity)+")",header.style.borderColor="rgba(204,204,204,"+(1-heroOpacity)+")"),rgb="rgb("+color+","+color+","+color+")",e.logo.style.fill=rgb,e.bars[0].style.backgroundColor=rgb,e.bars[1].style.backgroundColor=rgb,e.bars[2].style.backgroundColor=rgb);var r,s,n,c,d=(o-e.top)/e.height;d=Math.max(0,d),d=Math.min(1,d),s=d*(1-d),r=Math.round(s*e.height),c=1-d*d*2,e.child=e.child||e.$el.find(".hero-content").get(0),e.child.style.opacity=c,Site.Polyfills.addClass(e.child,"js-scroll-styled"),a++}},home:function(t,e){if(!Modernizr.touch&&Modernizr.csstransforms3d&&h){var o=(e+i[0].height-t.top)/(.333*i[0].height),l=Math.min(1,(e+i[0].height-t.top)/t.height),r="";o=Math.max(0,o),o=Math.min(1,o),l=-(1-l)*t.height*.2,r="translate3d(0,"+l+"px,0)",o*=o,TweenLite.to(t.el,.3,{overwrite:!0,opacity:o}),t.image=t.image||t.$el.find(".home-image").children().get(0),TweenLite.to(t.image,.3,{overwrite:!0,y:l,z:0}),t.p=o}},module:function(t,e){if(!Modernizr.touch&&Modernizr.csstransforms3d&&h){var o=(e+i[0].height-t.top)/(.333*i[0].height);o=Math.max(0,o),o=Math.min(1,o),o*=o,o!=t.p&&TweenLite.to(t.el,.3,{overwrite:!0,opacity:o}),t.p=o}},project:function(e,o){var i=120;if(e.sticky=e.sticky||e.$el.find(".js-sticky-col").get(0),e.maxWidth=e.maxWidth||.4166667*t(".grid").eq(0).width()||637,e.sticky){if(!h)return e.sticky.style.position="relative",e.sticky.style.top=0,void(e.sticky.style.bottom="auto");e.stickyHeight=e.stickyHeight||e.sticky.offsetHeight,e.stickyHeight<e.height&&o+120>=e.top&&o+120+e.stickyHeight<e.top+e.height?(e.sticky.style.position="fixed",e.sticky.style.top=i+"px",e.sticky.style.bottom="auto",e.sticky.style.maxWidth=e.maxWidth+"px"):o+120<e.top?(e.sticky.style.position="relative",e.sticky.style.top=0,e.sticky.style.bottom="auto"):e.stickyHeight<e.height&&o+120+e.stickyHeight>=e.top+e.height?(e.sticky.style.position="absolute",e.sticky.style.top="auto",e.sticky.style.bottom=0):(e.sticky.style.position="relative",e.sticky.style.top=0,e.sticky.style.bottom="auto")}},claim:function(t,e){var o=(t.$el.closest(".home-row").height(),Math.max(0,(e-t.top+120)/t.height)),i=1-o*o;t.el.style.opacity=i},title:function(t,e){}},M=function(){if(e){var o=[],l=null;o.push({height:$window.height(),width:$window.width()}),i=i||[],e.each(function(e,r){_$el=t(r),l=_$el.data(),o.push({$el:_$el,el:r,height:_$el.outerHeight(),top:_$el.offset().top,role:l.scroll,path:l.path||!1,title:l.title||!1,callbackComplete:i[e]?i[e].callbackComplete:!1})}),i=o,v()}},S=null,$=function(){clearTimeout(S),S=setTimeout(M,100),h=d()},T=function(e,o){var i,l,r,s=t("[data-path='"+e+"']");s.length&&(i=s.offset().top-108,l=window.scrollY?window.scrollY:$window.scrollTop(),r=Math.abs(l-i)/1e4,o&&(scrollTo in window?window.scrollTo(0,i):$window.scrollTop(i)),r=Math.max(r,1.2),r=Math.min(r,2.2),Site.NiceScroll.scroll({y:i,speed:r,callback:function(){$body.removeClass("is-menu-open")}}))};return{init:g,onLoad:y,onResize:$,saveCache:M,forceRender:b,onUnLoad:m,scrollToPath:T,render:v}}(jQuery);
  var Site=Site||{},$window=$window||jQuery(window),$body=$body||jQuery("body"),console=console||{log:function(){return!0}};!function(i){var e={callAll:function(i,e){var n,t,o=[],l=0;for(n in Site)"object"==typeof Site[n]&&null!==Site[n]&&i in Site[n]&&("que"in Site[n]?o.push(Site[n]):Site[n][i](e));for(l=o.length,t=0;l>t;t++)o[t][i](e)},onLoad:function(){Site.callAll("onLoadFirst"),Site.callAll("onLoad"),Site.enque(),Site.callAll("onLoadLast")},onUnLoad:function(){Site.callAll("onUnLoad")},onResize:function(){Site.isMobile=i(".header-bar").height()<60,Site.callAll("onResize")},init:function(){Site.lang=i("html").attr("lang"),Site.callAll("init"),Site.onLoad(),$window.on("resize",Site.onResize),Site.onResize()},enque:function(){var e,n,t,o=i("[data-script]"),l=[];if(o.length&&(i.each(o,function(e,n){l=l.concat(i(n).data("script").split(" "))}),l))for(t=l.reduce(function(i,e){return i.indexOf(e)<0&&i.push(e),i},[]),n=t.length,e=0;n>e;e++)t[e]in Site&&"initialize"in Site[t[e]]&&Site[t[e]].initialize()},lang:""};i.extend(Site,e),Site.lang=i("html").attr("lang"),$window=i(window),$body=i("body"),Site.title="Praesens",Site.init()}(jQuery);