(function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}};t=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in t)n=t[i],null!=n&&(e[i]=n);return e},t.prototype.ismobile=function(t){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(t)},t}(),this.wow=function(){function i(t){null==t&&(t={}),this.scrollcallback=e(this.scrollcallback,this),this.scrollhandler=e(this.scrollhandler,this),this.start=e(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults)}return i.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0},i.prototype.init=function(){var t;return this.element=window.document.documentelement,"interactive"===(t=document.readystate)||"complete"===t?this.start():document.addeventlistener("domcontentloaded",this.start)},i.prototype.start=function(){var t,e,i,n;if(this.boxes=this.element.getelementsbyclassname(this.config.boxclass),this.boxes.length){if(this.disabled())return this.resetstyle();for(n=this.boxes,e=0,i=n.length;i>e;e++)t=n[e],this.applystyle(t,!0);return window.addeventlistener("scroll",this.scrollhandler,!1),window.addeventlistener("resize",this.scrollhandler,!1),this.interval=setinterval(this.scrollcallback,50)}},i.prototype.stop=function(){return window.removeeventlistener("scroll",this.scrollhandler,!1),window.removeeventlistener("resize",this.scrollhandler,!1),null!=this.interval?clearinterval(this.interval):void 0},i.prototype.show=function(t){return this.applystyle(t),t.classname=""+t.classname+" "+this.config.animateclass},i.prototype.applystyle=function(t,e){var i,n,o;return n=t.getattribute("data-wow-duration"),i=t.getattribute("data-wow-delay"),o=t.getattribute("data-wow-iteration"),t.setattribute("style",this.customstyle(e,n,i,o))},i.prototype.resetstyle=function(){var t,e,i,n,o;for(n=this.boxes,o=[],e=0,i=n.length;i>e;e++)t=n[e],o.push(t.setattribute("style","visibility: visible;"));return o},i.prototype.customstyle=function(t,e,i,n){var o;return o=t?"visibility: hidden; -webkit-animation-name: none; -moz-animation-name: none; animation-name: none;":"visibility: visible;",e&&(o+="-webkit-animation-duration: "+e+"; -moz-animation-duration: "+e+"; animation-duration: "+e+";"),i&&(o+="-webkit-animation-delay: "+i+"; -moz-animation-delay: "+i+"; animation-delay: "+i+";"),n&&(o+="-webkit-animation-iteration-count: "+n+"; -moz-animation-iteration-count: "+n+"; animation-iteration-count: "+n+";"),o},i.prototype.scrollhandler=function(){return this.scrolled=!0},i.prototype.scrollcallback=function(){var t;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var e,i,n,o;for(n=this.boxes,o=[],e=0,i=n.length;i>e;e++)t=n[e],t&&(this.isvisible(t)?this.show(t):o.push(t));return o}.call(this),!this.boxes.length)?this.stop():void 0},i.prototype.offsettop=function(t){var e;for(e=t.offsettop;t=t.offsetparent;)e+=t.offsettop;return e},i.prototype.isvisible=function(t){var e,i,n,o,s;return i=t.getattribute("data-wow-offset")||this.config.offset,s=window.pageyoffset,o=s+this.element.clientheight-i,n=this.offsettop(t),e=n+t.clientheight,o>=n&&e>=s},i.prototype.util=function(){return this._util||(this._util=new t)},i.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},i}()}).call(this);