"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(t){for(var e=1;e=e(t)+i+t.offsetHeight},a=function(t,e,n){return(e===window?window.pageXOffset:i(e))>=i(t)+n+t.offsetWidth},s=function(t,e,i){return!(n(t,e,i)||r(t,e,i)||o(t,e,i)||a(t,e,i))},u=function(t,e){t&&t(e)},l=function(t){var e=new m(t),n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:e}});window.dispatchEvent(n)},c={elements_selector:"img",container:window,threshold:300,throttle:150,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_initial:"initial",skip_invisible:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null},m=function(){function e(t){_classCallCheck(this,e),this._settings=_extends({},c,t),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._boundHandleScroll=this.handleScroll.bind(this),this._isFirstLoop=!0,window.addEventListener("resize",this._boundHandleScroll),this.update()}return _createClass(e,[{key:"_setSourcesForPicture",value:function(t,e){var n=t.parentElement;if("PICTURE"===n.tagName)for(var i=0;i0;)n.splice(r.pop(),1),u(e.callback_processed,n.length);0===i&&this._stopScrollHandler(),a&&(this._isFirstLoop=!1)}},{key:"_purgeElements",value:function(){var t=this._elements,e=t.length,n=void 0,i=[];for(n=0;n0;)t.splice(i.pop(),1)}},{key:"_startScrollHandler",value:function(){this._isHandlingScroll||(this._isHandlingScroll=!0,this._settings.container.addEventListener("scroll",this._boundHandleScroll))}},{key:"_stopScrollHandler",value:function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,this._settings.container.removeEventListener("scroll",this._boundHandleScroll))}},{key:"handleScroll",value:function(){var t=this,e=this._settings.throttle;0!==e?function(){var n=function(){(new Date).getTime()},i=n(),o=e-(i-t._previousLoopTime);o<=0||o>e?(t._loopTimeout&&(clearTimeout(t._loopTimeout),t._loopTimeout=null),t._previousLoopTime=i,t._loopThroughElements()):t._loopTimeout||(t._loopTimeout=setTimeout(function(){this._previousLoopTime=n(),this._loopTimeout=null,this._loopThroughElements()}.bind(t),o))}():this._loopThroughElements()}},{key:"update",value:function(){this._elements=Array.prototype.slice.call(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()}},{key:"destroy",value:function(){window.removeEventListener("resize",this._boundHandleScroll),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null}}]),e}(),d=window.lazyLoadOptions;return d&&function(t){var e=t.length;if(e)for(var n=0;n-1},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||i.svg(t)},num:function(t){return!isNaN(parseInt(t))},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nul:function(t){return"null"==typeof t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return i.hex(t)||i.rgb(t)||i.hsl(t)}},o=function(){var t={},e=["Quad","Cubic","Quart","Quint","Expo"],n={Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t,e){if(0===t||1===t)return t;var n=1-Math.min(e,998)/1e3,i=t/1,o=i-1,r=n/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*o)*Math.sin((o-r)*(2*Math.PI)/n)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}};return e.forEach(function(t,e){n[t]=function(t){return Math.pow(t,e+2)}}),Object.keys(n).forEach(function(e){var i=n[e];t["easeIn"+e]=i,t["easeOut"+e]=function(t,e){return 1-i(1-t,e)},t["easeInOut"+e]=function(t,e){return t<.5?i(2*t,e)/2:1-i(-2*t+2,e)/2},t["easeOutIn"+e]=function(t,e){return t<.5?(1-i(1-2*t,e))/2:(i(2*t-1,e)+1)/2}}),t.linear=function(t){return t},t}(),r=function(t){return i.str(t)?t:t+""},a=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},s=function(t){if(i.col(t))return!1;try{return document.querySelectorAll(t)}catch(t){return!1}},u=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},l=function(t){return t.reduce(function(t,e){return t.concat(i.arr(e)?l(e):e)},[])},c=function(t){return i.arr(t)?t:(i.str(t)&&(t=s(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])},m=function(t,e){return t.some(function(t){return t===e})},d=function(t,e){var n={};return t.forEach(function(t){var i=JSON.stringify(e.map(function(e){return t[e]}));n[i]=n[i]||[],n[i].push(t)}),Object.keys(n).map(function(t){return n[t]})},f=function(t){return t.filter(function(t,e,n){return n.indexOf(t)===e})},h=function(t){var e={};for(var n in t)e[n]=t[n];return e},p=function(t,e){for(var n in e)t[n]=i.und(t[n])?e[n]:t[n];return t},v=function(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t=t.replace(e,function(t,e,n,i){return e+e+n+n+i+i}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+")"},g=function(t){var e,n,i,t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),o=parseInt(t[1])/360,r=parseInt(t[2])/100,a=parseInt(t[3])/100,s=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t};if(0==r)e=n=i=a;else{var u=a<.5?a*(1+r):a+r-a*r,l=2*a-u;e=s(l,u,o+1/3),n=s(l,u,o),i=s(l,u,o-1/3)}return"rgb("+255*e+","+255*n+","+255*i+")"},y=function(t){return i.rgb(t)?t:i.hex(t)?v(t):i.hsl(t)?g(t):void 0},x=function(t){return/([\+\-]?[0-9|auto\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw|vh|deg)?/.exec(t)[2]},_=function(t,e,n){return x(e)?e:t.indexOf("translate")>-1?x(n)?e+x(n):e+"px":t.indexOf("rotate")>-1||t.indexOf("skew")>-1?e+"deg":e},w=function(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(a(e))||"0"},b=function(t,e){var n=e.indexOf("scale")>-1?1:0,i=t.style.transform;if(!i)return n;for(var o=/(\w+)\((.+?)\)/g,r=[],a=[],s=[];r=o.exec(i);)a.push(r[1]),s.push(r[2]);var u=s.filter(function(t,n){return a[n]===e});return u.length?u[0]:n},E=function(t,e){return i.dom(t)&&m(n,e)?"transform":i.dom(t)&&(t.getAttribute(e)||i.svg(t)&&t[e])?"attribute":i.dom(t)&&"transform"!==e&&w(t,e)?"css":i.nul(t[e])||i.und(t[e])?void 0:"object"},O=function(t,e){switch(E(t,e)){case"transform":return b(t,e);case"css":return w(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0},A=function(t,e,n){if(i.col(e))return y(e);if(x(e))return e;var o=x(x(t.to)?t.to:t.from);return!o&&n&&(o=x(n)),o?e+o:e},k=function(t){var e=/-?\d*\.?\d+/g;return{original:t,numbers:r(t).match(e)?r(t).match(e).map(Number):[0],strings:r(t).split(e)}},z=function(t,e,n){return e.reduce(function(e,i,o){var i=i||n[o-1];return e+t[o-1]+i})},L=function(t){var t=t?l(i.arr(t)?t.map(c):c(t)):[];return t.map(function(t,e){return{target:t,id:e}})},I=function(t,n){var o=[];for(var r in t)if(!e.hasOwnProperty(r)&&"targets"!==r){var a=i.obj(t[r])?h(t[r]):{value:t[r]};a.name=r,o.push(p(a,n))}return o},M=function(t,e,n,o){var r=c(i.fnc(n)?n(t,o):n);return{from:r.length>1?r[0]:O(t,e),to:r.length>1?r[1]:r[0]}},T=function(t,e,n,i){var o={};if("transform"===n)o.from=t+"("+_(t,e.from,e.to)+")",o.to=t+"("+_(t,e.to)+")";else{var r="css"===n?w(i,t):void 0;o.from=A(e,e.from,r),o.to=A(e,e.to,r)}return{from:k(o.from),to:k(o.to)}},C=function(t,e){var n=[];return t.forEach(function(o,r){var a=o.target;return e.forEach(function(e){var s=E(a,e.name);if(s){var u=M(a,e.name,e.value,r),l=h(e);l.animatables=o,l.type=s,l.from=T(e.name,u,l.type,a).from,l.to=T(e.name,u,l.type,a).to,l.round=i.col(u.from)||l.round?1:0,l.delay=(i.fnc(l.delay)?l.delay(a,r,t.length):l.delay)/R.speed,l.duration=(i.fnc(l.duration)?l.duration(a,r,t.length):l.duration)/R.speed,n.push(l)}})}),n},S=function(t,e){var n=C(t,e);return d(n,["name","from","to","delay","duration"]).map(function(t){var e=h(t[0]);return e.animatables=t.map(function(t){return t.animatables}),e.totalDuration=e.delay+e.duration,e})},D=function(t,e){t.tweens.forEach(function(n){var i=n.to,o=n.from,r=t.duration-(n.delay+n.duration);n.from=i,n.to=o,e&&(n.delay=r)}),t.reversed=!t.reversed},W=function(t){if(t.length)return Math.max.apply(Math,t.map(function(t){return t.totalDuration}))},j=function(t){var e=[],n=[];return t.tweens.forEach(function(t){"css"!==t.type&&"transform"!==t.type||(e.push("css"===t.type?a(t.name):"transform"),t.animatables.forEach(function(t){n.push(t.target)}))}),{properties:f(e).join(", "),elements:f(n)}},F=function(t){var e=j(t);e.elements.forEach(function(t){t.style.willChange=e.properties})},P=function(t){j(t).elements.forEach(function(t){t.style.removeProperty("will-change")})},q=function(t){var e=i.str(t)?s(t)[0]:t;return{path:e,value:e.getTotalLength()}},Q=function(t,e){var n=t.path,i=t.value*e,o=function(o){var r=o||0,a=e>1?t.value+r:i+r;return n.getPointAtLength(a)},r=o(),a=o(-1),s=o(1);switch(t.name){case"translateX":return r.x;case"translateY":return r.y;case"rotate":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}},Y=function(t,e){var n=Math.min(Math.max(e-t.delay,0),t.duration),i=n/t.duration,r=t.to.numbers.map(function(e,n){var r=t.from.numbers[n],a=o[t.easing](i,t.elasticity),s=t.path?Q(t,a):r+a*(e-r);return s=t.round?Math.round(s*t.round)/t.round:s});return z(r,t.to.strings,t.from.strings)},N=function(e,n){var i;e.currentTime=n,e.progress=n/e.duration*100;for(var o=0;o=o.delay&&(o.begin(e),o.begin=void 0),n.current>=e.duration&&(o.loop?(n.start=t,"alternate"===o.direction&&D(e,!0),i.num(o.loop)&&o.loop--):(e.ended=!0,e.pause(),o.complete&&o.complete(e)),n.last=0)},e.seek=function(t){N(e,t/100*e.duration)},e.pause=function(){P(e);var t=H.indexOf(e);t>-1&&H.splice(t,1)},e.play=function(t){e.pause(),t&&(e=p(X(p(t,e.settings)),e)),n.start=0,n.last=e.ended?0:e.currentTime;var i=e.settings;"reverse"===i.direction&&D(e),"alternate"!==i.direction||i.loop||(i.loop=1),F(e),H.push(e),B||Z()},e.restart=function(){e.reversed&&D(e),e.pause(),e.seek(0),e.play()},e.settings.autoplay&&e.play(),e},V=function(t){for(var e=l(i.arr(t)?t.map(c):c(t)),n=H.length-1;n>=0;n--)for(var o=H[n],r=o.tweens,a=r.length-1;a>=0;a--)for(var s=r[a].animatables,u=s.length-1;u>=0;u--)m(e,s[u].target)&&(s.splice(u,1),s.length||r.splice(a,1),r.length||o.pause())};return R.version="1.1.1",R.speed=1,R.list=H,R.remove=V,R.easings=o,R.getValue=O,R.path=q,R.random=u,R}),function(t){function e(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}function n(t,e){(i(t,e)?r:o)(t,e)}var i,o,r;"classList"in document.documentElement?(i=function(t,e){return t.classList.contains(e)},o=function(t,e){t.classList.add(e)},r=function(t,e){t.classList.remove(e)}):(i=function(t,n){return e(n).test(t.className)},o=function(t,e){i(t,e)||(t.className=t.className+" "+e)},r=function(t,n){t.className=t.className.replace(e(n)," ")});var a={hasClass:i,addClass:o,removeClass:r,toggleClass:n,has:i,add:o,remove:r,toggle:n};"function"==typeof define&&define.amd?define(a):"object"==typeof exports?module.exports=a:t.classie=a}(window),function(t){function e(){var e=u.clientHeight,n=t.innerHeight;return e=a}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(){var t=this;this.didScroll||(this.didScroll=!0,setTimeout(function(){t._scrollPage()},60))}function s(t,e){this.el=t,this.options=r(this.defaults,e),this._onScrollFn=a.bind(this),this._init()}var u=t.document.documentElement;if(navigator.appVersion.indexOf("MSIE 8")>0){var l=Array.prototype.slice;Array.prototype.slice=function(){if(this instanceof Array)return l.apply(this,arguments);for(var t=[],e=arguments.length>=1?arguments[0]:0,n=arguments.length>=2?arguments[1]:this.length,i=e;i div"),this._initEvents()},i.prototype._initEvents=function(){var t=this;this.mouseenterFn=function(){for(var e in t.DOM.animatable)anime.remove(t.DOM.animatable[e])},this.mousemoveFn=function(e){requestAnimationFrame(function(){t._layout(e)})},this.mouseleaveFn=function(e){requestAnimationFrame(function(){for(var e in t.DOM.animatable)void 0!=t.options.movement[e]&&anime({targets:t.DOM.animatable[e],duration:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.duration||0:1,easing:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.easing||"linear":"linear",elasticity:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.elasticity||null:null,scaleX:1,scaleY:1,scaleZ:1,translateX:0,translateY:0,translateZ:0,rotateX:0,rotateY:0,rotateZ:0})})},this.DOM.el.addEventListener("mousemove",this.mousemoveFn),this.DOM.el.addEventListener("mouseleave",this.mouseleaveFn),this.DOM.el.addEventListener("mouseenter",this.mouseenterFn)},i.prototype._layout=function(t){var e=n(t),i={left:document.body.scrollLeft+document.documentElement.scrollLeft,top:document.body.scrollTop+document.documentElement.scrollTop},o=this.DOM.el.getBoundingClientRect(),r={x:e.x-o.left-i.left,y:e.y-o.top-i.top};for(var a in this.DOM.animatable)if(void 0!=this.DOM.animatable[a]&&void 0!=this.options.movement[a]){var s=void 0!=this.options.movement[a]?this.options.movement[a].translation||{x:0,y:0,z:0}:{x:0,y:0,z:0},u=void 0!=this.options.movement[a]?this.options.movement[a].rotation||{x:0,y:0,z:0}:{x:0,y:0,z:0},l=function(t){for(var e in t)void 0==t[e]?t[e]=[0,0]:"number"==typeof t[e]&&(t[e]=[-1*t[e],t[e]])};l(s),l(u);var c={translation:{x:(s.x[1]-s.x[0])/o.width*r.x+s.x[0],y:(s.y[1]-s.y[0])/o.height*r.y+s.y[0],z:(s.z[1]-s.z[0])/o.height*r.y+s.z[0]},rotation:{x:(u.x[1]-u.x[0])/o.height*r.y+u.x[0],y:(u.y[1]-u.y[0])/o.width*r.x+u.y[0],z:(u.z[1]-u.z[0])/o.width*r.x+u.z[0]}};this.DOM.animatable[a].style.WebkitTransform=this.DOM.animatable[a].style.transform="translateX("+c.translation.x+"px) translateY("+c.translation.y+"px) translateZ("+c.translation.z+"px) rotateX("+c.rotation.x+"deg) rotateY("+c.rotation.y+"deg) rotateZ("+c.rotation.z+"deg)"}},t.TiltHoverFx=i}(window),jQuery(document).ready(function(t){function e(t,e){new TiltHoverFx(t,n[parseInt(e)-1])}var n=[{},{movement:{imgWrapper:{translation:{x:10,y:10,z:30},rotation:{x:0,y:-10,z:0},reverseAnimation:{duration:200,easing:"easeOutQuad"}},lines:{translation:{x:10,y:10,z:[0,70]},rotation:{x:0,y:0,z:-2},reverseAnimation:{duration:2e3,easing:"easeOutExpo"}},caption:{rotation:{x:0,y:0,z:2},reverseAnimation:{duration:200,easing:"easeOutQuad"}},overlay:{translation:{x:10,y:-10,z:0},rotation:{x:0,y:0,z:2},reverseAnimation:{duration:2e3,easing:"easeOutExpo"}},shine:{translation:{x:100,y:100,z:0},reverseAnimation:{duration:200,easing:"easeOutQuad"}}}},{movement:{imgWrapper:{rotation:{x:-5,y:10,z:0},reverseAnimation:{duration:900,easing:"easeOutCubic"}},caption:{translation:{x:30,y:30,z:[0,40]},rotation:{x:[0,15],y:0,z:0},reverseAnimation:{duration:1200,easing:"easeOutExpo"}},overlay:{translation:{x:10,y:10,z:[0,20]},reverseAnimation:{duration:1e3,easing:"easeOutExpo"}},shine:{translation:{x:100,y:100,z:0},reverseAnimation:{duration:900,easing:"easeOutCubic"}}}},{movement:{imgWrapper:{rotation:{x:-5,y:10,z:0},reverseAnimation:{duration:50,easing:"easeOutQuad"}},caption:{translation:{x:20,y:20,z:0},reverseAnimation:{duration:200,easing:"easeOutQuad"}},overlay:{translation:{x:5,y:-5,z:0},rotation:{x:0,y:0,z:6},reverseAnimation:{duration:1e3,easing:"easeOutQuad"}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:50,easing:"easeOutQuad"}}}},{movement:{imgWrapper:{translation:{x:0,y:-8,z:0},rotation:{x:3,y:3,z:0},reverseAnimation:{duration:1200,easing:"easeOutExpo"}},lines:{translation:{x:15,y:15,z:[0,15]},reverseAnimation:{duration:1200,easing:"easeOutExpo"}},overlay:{translation:{x:0,y:8,z:0},reverseAnimation:{duration:600,easing:"easeOutExpo"}},caption:{translation:{x:10,y:-15,z:0},reverseAnimation:{duration:900,easing:"easeOutExpo"}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:1200,easing:"easeOutExpo"}}}},{movement:{lines:{translation:{x:-5,y:5,z:0},reverseAnimation:{duration:1e3,easing:"easeOutExpo"}},caption:{translation:{x:15,y:15,z:0},rotation:{x:0,y:0,z:3},reverseAnimation:{duration:1500,easing:"easeOutElastic",elasticity:700}},overlay:{translation:{x:15,y:-15,z:0},reverseAnimation:{duration:500,easing:"easeOutExpo"}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:500,easing:"easeOutExpo"}}}},{movement:{imgWrapper:{translation:{x:5,y:5,z:0},reverseAnimation:{duration:800,easing:"easeOutQuart"}},caption:{translation:{x:10,y:10,z:[0,50]},reverseAnimation:{duration:1e3, easing:"easeOutQuart"}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:800,easing:"easeOutQuart"}}}},{movement:{lines:{translation:{x:40,y:40,z:0},reverseAnimation:{duration:1500,easing:"easeOutElastic"}},caption:{translation:{x:20,y:20,z:0},rotation:{x:0,y:0,z:-5},reverseAnimation:{duration:1e3,easing:"easeOutExpo"}},overlay:{translation:{x:-30,y:-30,z:0},rotation:{x:0,y:0,z:3},reverseAnimation:{duration:750,easing:"easeOutExpo"}},shine:{translation:{x:100,y:100,z:0},reverseAnimation:{duration:750,easing:"easeOutExpo"}}}}];t("a.marvelous-tilter").each(function(){var n=t(this),i=n.data("effect");n.hasClass("marvelous-lazyload")?n.on("marvelous_lazy_loaded",function(){e(n.get(0),i)}):n.imagesLoaded(function(){e(n.get(0),i)})})}),function(t){function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function n(e){var n=0,i=0;if(!e)var e=t.event;return e.pageX||e.pageY?(n=e.pageX,i=e.pageY):(e.clientX||e.clientY)&&(n=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:n,y:i}}function i(t,e){var n=!0;return function(i){n&&(n=!1,setTimeout(function(){n=!0},e),t(i))}}function o(t,n){t&&(this.el=t,this.options=e({},this.options),e(this.options,n),this._init(),this._initEvents())}for(var r,a=0,s="webkit moz ms o".split(" "),u=t.requestAnimationFrame,l=t.cancelAnimationFrame,c=0;c64?this.imgCount=64:this.imgCount=this.options.extraImgs,this.options.movement.perspective||(this.options.movement.perspective=0),this.imgElems=[];var t=this.imgCount;this.options.customImgsOpacity;this.options.bgfixed||(this.imgElems.push(this.tiltImgBack),++this.imgCount);for(var e=0;e