(function(){"use strict";function n(n){this.el=n;this.image=this.el.previousElementSibling;this.current_frame=0;this.total_frames=240;this.path=[];this.length=[];this.handle=0;this.init()}function r(){var n=t.clientHeight,i=window.innerHeight;return n<i?i:n}function u(){return window.pageYOffset||t.scrollTop}function f(n){var t=0,i=0;do isNaN(n.offsetTop)||(t+=n.offsetTop),isNaN(n.offsetLeft)||(i+=n.offsetLeft);while(n=n.offsetParent);return{top:t,left:i}}function i(n,t){var i=n.offsetHeight,e=u(),s=e+r(),o=f(n).top,h=o+i,t=t||0;return o+i*t<=s&&h>=e}function e(){var u=Array.prototype.slice.call(document.querySelectorAll("#main-wrapper svg")),f=[],r=!1,t;u.forEach(function(t,r){var u=new n(t);f[r]=u;setTimeout(function(n){return function(){i(n.parentNode)&&u.render()}}(t),250)});var o=function(){r||(r=!0,setTimeout(function(){e()},60))},e=function(){u.forEach(function(n,t){i(n.parentNode,.5)&&f[t].render()});r=!1},s=function(){function n(){e();t=null}t&&clearTimeout(t);t=setTimeout(n,200)};window.addEventListener("scroll",o,!1);window.addEventListener("resize",s,!1)}var t=window.document.documentElement;window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}();window.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(n){window.clearTimeout(n)}}();n.prototype.init=function(){var n=this;[].slice.call(this.el.querySelectorAll("path")).forEach(function(t,i){n.path[i]=t;var r=n.path[i].getTotalLength();n.length[i]=r;n.path[i].style.strokeDasharray=r+" "+r;n.path[i].style.strokeDashoffset=r})};n.prototype.render=function(){this.rendered||(this.rendered=!0,this.draw())};n.prototype.draw=function(){var r=this,t=this.current_frame/this.total_frames,n,i;if(t>1)window.cancelAnimFrame(this.handle),this.showImage();else{for(this.current_frame++,n=0,i=this.path.length;n<i;n++)this.path[n].style.strokeDashoffset=Math.floor(this.length[n]*(1-t));this.handle=window.requestAnimFrame(function(){r.draw()})}};n.prototype.showImage=function(){};e()})(),function(n){"use strict";function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};typeof define=="function"&&define.amd?define(u):typeof exports=="object"?module.exports=u:n.classie=u}(window)