(function(){var n,f,t,i,r,u=function(n,t){return function(){return n.apply(t,arguments)}},e=[].indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(t in this&&this[t]===n)return t;return-1};f=function(){function n(){}return n.prototype.extend=function(n,t){var i,r;for(i in t)r=t[i],null==n[i]&&(n[i]=r);return n},n.prototype.isMobile=function(n){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)},n.prototype.addEvent=function(n,t,i){return null!=n.addEventListener?n.addEventListener(t,i,!1):null!=n.attachEvent?n.attachEvent("on"+t,i):n[t]=i},n.prototype.removeEvent=function(n,t,i){return null!=n.removeEventListener?n.removeEventListener(t,i,!1):null!=n.detachEvent?n.detachEvent("on"+t,i):delete n[t]},n.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},n}();t=this.WeakMap||this.MozWeakMap||(t=function(){function n(){this.keys=[];this.values=[]}return n.prototype.get=function(n){var t,u,i,f,r;for(r=this.keys,t=i=0,f=r.length;f>i;t=++i)if(u=r[t],u===n)return this.values[t]},n.prototype.set=function(n,t){var i,f,r,e,u;for(u=this.keys,i=r=0,e=u.length;e>r;i=++r)if(f=u[i],f===n)return void(this.values[i]=t);return this.keys.push(n),this.values.push(t)},n}());n=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(n=function(){function n(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser.");"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return n.notSupported=!0,n.prototype.observe=function(){},n}());i=this.getComputedStyle||function(n){return this.getPropertyValue=function(t){var i;return"float"===t&&(t="styleFloat"),r.test(t)&&t.replace(r,function(n,t){return t.toUpperCase()}),(null!=(i=n.currentStyle)?i[t]:void 0)||null},this};r=/(\-([a-z]){1})/g;this.WOW=function(){function r(n){null==n&&(n={});this.scrollCallback=u(this.scrollCallback,this);this.scrollHandler=u(this.scrollHandler,this);this.start=u(this.start,this);this.scrolled=!0;this.config=this.util().extend(n,this.defaults);this.animationNameCache=new t}return r.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},r.prototype.init=function(){var n;return this.element=window.document.documentElement,"interactive"===(n=document.readyState)||"complete"===n?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},r.prototype.start=function(){var t,i,u,r;if(this.stopped=!1,this.boxes=function(){var n,u,i,r;for(i=this.element.querySelectorAll("."+this.config.boxClass),r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.all=function(){var n,u,i,r;for(i=this.boxes,r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(r=this.boxes,i=0,u=r.length;u>i;i++)t=r[i],this.applyStyle(t,!0);this.util().addEvent(window,"scroll",this.scrollHandler);this.util().addEvent(window,"resize",this.scrollHandler);this.interval=setInterval(this.scrollCallback,50)}if(this.config.live)return new n(function(n){return function(t){var u,f,i,e,r;for(r=[],i=0,e=t.length;e>i;i++)f=t[i],r.push(function(){var n,r,t,i;for(t=f.addedNodes||[],i=[],n=0,r=t.length;r>n;n++)u=t[n],i.push(this.doSync(u));return i}.call(n));return r}}(this)).observe(document.body,{childList:!0,subtree:!0})},r.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},r.prototype.sync=function(){if(n.notSupported)return this.doSync(this.element)},r.prototype.doSync=function(n){var t,i,f,u,r;if(!this.stopped){if(null==n&&(n=this.element),1!==n.nodeType)return;for(n=n.parentNode||n,u=n.querySelectorAll("."+this.config.boxClass),r=[],i=0,f=u.length;f>i;i++)t=u[i],e.call(this.all,t)<0?(this.applyStyle(t,!0),this.boxes.push(t),this.all.push(t),r.push(this.scrolled=!0)):r.push(void 0);return r}},r.prototype.show=function(n){return this.applyStyle(n),n.className=""+n.className+" "+this.config.animateClass},r.prototype.applyStyle=function(n,t){var i,r,u;return r=n.getAttribute("data-wow-duration"),i=n.getAttribute("data-wow-delay"),u=n.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(n,t,r,i,u)}}(this))},r.prototype.animate=function(){return"requestAnimationFrame"in window?function(n){return window.requestAnimationFrame(n)}:function(n){return n()}}(),r.prototype.resetStyle=function(){var r,n,u,t,i;for(t=this.boxes,i=[],n=0,u=t.length;u>n;n++)r=t[n],i.push(r.setAttribute("style","visibility: visible;"));return i},r.prototype.customStyle=function(n,t,i,r,u){return t&&this.cacheAnimationName(n),n.style.visibility=t?"hidden":"visible",i&&this.vendorSet(n.style,{animationDuration:i}),r&&this.vendorSet(n.style,{animationDelay:r}),u&&this.vendorSet(n.style,{animationIterationCount:u}),this.vendorSet(n.style,{animationName:t?"none":this.cachedAnimationName(n)}),n},r.prototype.vendors=["moz","webkit"],r.prototype.vendorSet=function(n,t){var i,r,u,f=[];for(i in t)r=t[i],n[""+i]=r,f.push(function(){var t,o,f,e;for(f=this.vendors,e=[],t=0,o=f.length;o>t;t++)u=f[t],e.push(n[""+u+i.charAt(0).toUpperCase()+i.substr(1)]=r);return e}.call(this));return f},r.prototype.vendorCSS=function(n,t){var r,f,o,u,s,e;for(f=i(n),r=f.getPropertyCSSValue(t),e=this.vendors,u=0,s=e.length;s>u;u++)o=e[u],r=r||f.getPropertyCSSValue("-"+o+"-"+t);return r},r.prototype.animationName=function(n){var t;try{t=this.vendorCSS(n,"animation-name").cssText}catch(r){t=i(n).getPropertyValue("animation-name")}return"none"===t?"":t},r.prototype.cacheAnimationName=function(n){return this.animationNameCache.set(n,this.animationName(n))},r.prototype.cachedAnimationName=function(n){return this.animationNameCache.get(n)},r.prototype.scrollHandler=function(){return this.scrolled=!0},r.prototype.scrollCallback=function(){var n;if(this.scrolled&&!(this.scrolled=!1,this.boxes=function(){var t,u,i,r;for(i=this.boxes,r=[],t=0,u=i.length;u>t;t++)n=i[t],n&&(this.isVisible(n)?this.show(n):r.push(n));return r}.call(this),this.boxes.length||this.config.live))return this.stop()},r.prototype.offsetTop=function(n){for(var t;void 0===n.offsetTop;)n=n.parentNode;for(t=n.offsetTop;n=n.offsetParent;)t+=n.offsetTop;return t},r.prototype.isVisible=function(n){var r,u,t,f,i;return u=n.getAttribute("data-wow-offset")||this.config.offset,i=window.pageYOffset,f=i+Math.min(this.element.clientHeight,this.util().innerHeight())-u,t=this.offsetTop(n),r=t+n.clientHeight,f>=t&&r>=i},r.prototype.util=function(){return null!=this._util?this._util:this._util=new f},r.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},r}()}).call(this),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self,n.PerfectScrollbar=t())}(this,function(){"use strict";function r(n){return getComputedStyle(n)}function i(n,t){var r,i;for(r in t)i=t[r],"number"==typeof i&&(i+="px"),n.style[r]=i;return n}function v(n){var t=document.createElement("div");return t.className=n,t}function f(n,t){if(!nt)throw new Error("No element matching method supported");return nt.call(n,t)}function h(n){n.remove?n.remove():n.parentNode&&n.parentNode.removeChild(n)}function w(n,t){return Array.prototype.filter.call(n.children,function(n){return f(n,t)})}function b(n,i){var r=n.element.classList,u=t.state.scrolling(i);r.contains(u)?clearTimeout(tt[i]):r.add(u)}function k(n,i){tt[i]=setTimeout(function(){return n.isAlive&&n.element.classList.remove(t.state.scrolling(i))},n.settings.scrollingThreshold)}function rt(n,t){b(n,t);k(n,t)}function y(n){if("function"==typeof CustomEvent)return new CustomEvent(n);var t=document.createEvent("CustomEvent");return t.initCustomEvent(n,!1,!1,void 0),t}function p(n,t,i,r,u){void 0===r&&(r=!0);void 0===u&&(u=!1);var f;if("top"===t)f=["contentHeight","containerHeight","scrollTop","y","up","down"];else if("left"===t)f=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");ut(n,i,f,r,u)}function ut(n,t,i,r,u){var s=i[0],h=i[1],o=i[2],f=i[3],c=i[4],l=i[5],e;void 0===r&&(r=!0);void 0===u&&(u=!1);e=n.element;n.reach[f]=null;1>e[o]&&(n.reach[f]="start");e[o]>n[s]-n[h]-1&&(n.reach[f]="end");t&&(e.dispatchEvent(y("ps-scroll-"+f)),0>t?e.dispatchEvent(y("ps-scroll-"+c)):0=i.railXWidth-i.scrollbarXWidth&&(i.scrollbarXLeft=i.railXWidth-i.scrollbarXWidth);i.scrollbarYTop>=i.railYHeight-i.scrollbarYHeight&&(i.scrollbarYTop=i.railYHeight-i.scrollbarYHeight);ot(r,i);i.scrollbarXActive?r.classList.add(t.state.active("x")):(r.classList.remove(t.state.active("x")),i.scrollbarXWidth=0,i.scrollbarXLeft=0,r.scrollLeft=!0===i.isRtl?i.contentWidth:0);i.scrollbarYActive?r.classList.add(t.state.active("y")):(r.classList.remove(t.state.active("y")),i.scrollbarYHeight=0,i.scrollbarYTop=0,r.scrollTop=0)}function d(n,t){var i=Math.min,r=Math.max;return n.settings.minScrollbarLength&&(t=r(t,n.settings.minScrollbarLength)),n.settings.maxScrollbarLength&&(t=i(t,n.settings.maxScrollbarLength)),t}function ot(n,t){var r={width:t.railXWidth},f=e(n.scrollTop),u;r.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+t.containerWidth-t.contentWidth:n.scrollLeft;t.isScrollbarXUsingBottom?r.bottom=t.scrollbarXBottom-f:r.top=t.scrollbarXTop+f;i(t.scrollbarXRail,r);u={top:f,height:t.railYHeight};t.isScrollbarYUsingRight?u.right=t.isRtl?t.contentWidth-(t.negativeScrollAdjustment+n.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:t.scrollbarYRight-n.scrollLeft:u.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:t.scrollbarYLeft+n.scrollLeft;i(t.scrollbarYRail,u);i(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth});i(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function g(n,i){function f(t){t.touches&&t.touches[0]&&(t[r]=t.touches[0].pageY);l[s]=a+y*(t[r]-v);b(n,h);u(n);t.stopPropagation();t.type.startsWith("touch")&&1n.scrollbarYTop?1:-1;n.element.scrollTop+=r*n.containerHeight;u(n);t.stopPropagation()});n.event.bind(n.scrollbarX,"mousedown",function(n){return n.stopPropagation()});n.event.bind(n.scrollbarXRail,"mousedown",function(t){var i=t.pageX-window.pageXOffset-n.scrollbarXRail.getBoundingClientRect().left,r=i>n.scrollbarXLeft?1:-1;n.element.scrollLeft+=r*n.containerWidth;u(n);t.stopPropagation()})},"drag-thumb":function(n){g(n,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]);g(n,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(n){function i(i,r){var f=e(t.scrollTop),u;if(0===i){if(!n.scrollbarYActive)return!1;if(0===f&&0=n.contentHeight-n.containerHeight&&0>r)return!n.settings.wheelPropagation}if(u=t.scrollLeft,0===r){if(!n.scrollbarXActive)return!1;if(0===u&&0>i||u>=n.contentWidth-n.containerWidth&&0s(t)?o||h:c||l,!u||!n.settings.wheelPropagation}function h(n){var t=n.deltaX,i=-1*n.deltaY;return("undefined"==typeof t||"undefined"==typeof i)&&(t=n.wheelDeltaX/-6,i=n.wheelDeltaY/6),n.deltaMode&&1===n.deltaMode&&(t*=10,i*=10),t!==t&&i!==i&&(t=0,i=n.wheelDelta),n.shiftKey?[-i,-t]:[t,i]}function l(n,u,f){var e,o,s,h;if(!c.isWebKit&&i.querySelector("select:focus"))return!0;if(!i.contains(n))return!1;for(e=n;e&&e!==i;){if(e.classList.contains(t.element.consuming)||(o=r(e),f&&o.overflowY.match(/(scroll|auto)/)&&(s=e.scrollHeight-e.clientHeight,0f||e.scrollTopu||e.scrollLefto){if(0>r&&u===n.contentHeight-n.containerHeight||0h&&(0>t&&f===n.contentWidth-n.containerWidth||0f||e.scrollTopu||e.scrollLefts(f.x)&&.01>s(f.y)?void clearInterval(o):n.element?void(p(30*f.x,30*f.y),f.x*=.8,f.y*=.8):void clearInterval(o):void clearInterval(o)},10))}if(c.supportsTouch||c.supportsIePointer){var i=n.element,h={},y=0,f={},o=null;c.supportsTouch?(n.event.bind(i,"touchstart",l),n.event.bind(i,"touchmove",a),n.event.bind(i,"touchend",v)):c.supportsIePointer&&(window.PointerEvent?(n.event.bind(i,"pointerdown",l),n.event.bind(i,"pointermove",a),n.event.bind(i,"pointerup",v)):window.MSPointerEvent&&(n.event.bind(i,"MSPointerDown",l),n.event.bind(i,"MSPointerMove",a),n.event.bind(i,"MSPointerUp",v)))}}},a=function(f,s){var p=this,l,a,y,h,c;if(void 0===s&&(s={}),"string"==typeof f&&(f=document.querySelector(f)),!f||!f.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(l in this.element=f,f.classList.add(t.main),this.settings=st(),s)this.settings[l]=s[l];this.containerWidth=null;this.containerHeight=null;this.contentWidth=null;this.contentHeight=null;a=function(){return f.classList.add(t.state.focus)};y=function(){return f.classList.remove(t.state.focus)};this.isRtl="rtl"===r(f).direction;!0===this.isRtl&&f.classList.add(t.rtl);this.isNegativeScroll=function(){var t=f.scrollLeft,n=null;return f.scrollLeft=-1,n=0>f.scrollLeft,f.scrollLeft=t,n}();this.negativeScrollAdjustment=this.isNegativeScroll?f.scrollWidth-f.clientWidth:0;this.event=new o;this.ownerDocument=f.ownerDocument||document;this.scrollbarXRail=v(t.element.rail("x"));f.appendChild(this.scrollbarXRail);this.scrollbarX=v(t.element.thumb("x"));this.scrollbarXRail.appendChild(this.scrollbarX);this.scrollbarX.setAttribute("tabindex",0);this.event.bind(this.scrollbarX,"focus",a);this.event.bind(this.scrollbarX,"blur",y);this.scrollbarXActive=null;this.scrollbarXWidth=null;this.scrollbarXLeft=null;h=r(this.scrollbarXRail);this.scrollbarXBottom=parseInt(h.bottom,10);isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=n(h.top)):this.isScrollbarXUsingBottom=!0;this.railBorderXWidth=n(h.borderLeftWidth)+n(h.borderRightWidth);i(this.scrollbarXRail,{display:"block"});this.railXMarginWidth=n(h.marginLeft)+n(h.marginRight);i(this.scrollbarXRail,{display:""});this.railXWidth=null;this.railXRatio=null;this.scrollbarYRail=v(t.element.rail("y"));f.appendChild(this.scrollbarYRail);this.scrollbarY=v(t.element.thumb("y"));this.scrollbarYRail.appendChild(this.scrollbarY);this.scrollbarY.setAttribute("tabindex",0);this.event.bind(this.scrollbarY,"focus",a);this.event.bind(this.scrollbarY,"blur",y);this.scrollbarYActive=null;this.scrollbarYHeight=null;this.scrollbarYTop=null;c=r(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10);isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=n(c.left)):this.isScrollbarYUsingRight=!0;this.scrollbarYOuterWidth=this.isRtl?et(this.scrollbarY):null;this.railBorderYWidth=n(c.borderTopWidth)+n(c.borderBottomWidth);i(this.scrollbarYRail,{display:"block"});this.railYMarginHeight=n(c.marginTop)+n(c.marginBottom);i(this.scrollbarYRail,{display:""});this.railYHeight=null;this.railYRatio=null;this.reach={x:0>=f.scrollLeft?"start":f.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=f.scrollTop?"start":f.scrollTop>=this.contentHeight-this.containerHeight?"end":null};this.isAlive=!0;this.settings.handlers.forEach(function(n){return ht[n](p)});this.lastScrollTop=e(f.scrollTop);this.lastScrollLeft=f.scrollLeft;this.event.bind(this.element,"scroll",function(n){return p.onScroll(n)});u(this)};return a.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=n(r(this.scrollbarXRail).marginLeft)+n(r(this.scrollbarXRail).marginRight),this.railYMarginHeight=n(r(this.scrollbarYRail).marginTop)+n(r(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),u(this),p(this,"top",0,!1,!0),p(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},a.prototype.onScroll=function(){this.isAlive&&(u(this),p(this,"top",this.element.scrollTop-this.lastScrollTop),p(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=e(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},a.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),h(this.scrollbarX),h(this.scrollbarY),h(this.scrollbarXRail),h(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},a.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")},a})