/*! * Name : Just Another Parallax [Jarallax] * Version : 1.12.7 * Author : nK * GitHub : https://github.com/nk-o/jarallax */ /******/ (function(d){function e(f){if(a[f])return a[f].exports;var g=a[f]={i:f,l:!1,exports:{}};d[f].call(g.exports,g,g.exports,e);g.l=!0;return g.exports}var a={};e.m=d;e.c=a;e.d=function(f,a,d){e.o(f,a)||Object.defineProperty(f,a,{enumerable:!0,get:d})};e.r=function(f){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"});Object.defineProperty(f,"__esModule",{value:!0})};e.t=function(f,a){a&1&&(f=e(f));if(a&8||a&4&&"object"===typeof f&&f&&f.__esModule)return f; var d=Object.create(null);e.r(d);Object.defineProperty(d,"default",{enumerable:!0,value:f});if(a&2&&"string"!=typeof f)for(var r in f)e.d(d,r,function(a){return f[a]}.bind(null,r));return d};e.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};e.d(d,"a",d);return d};e.o=function(a,d){return Object.prototype.hasOwnProperty.call(a,d)};e.p="";return e(e.s=10)})([,,function(d,e){d.exports=function(a){"complete"===document.readyState||"interactive"===document.readyState? a.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&a.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",a)}},function(d,e,a){e=a(4);d.exports="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{}},function(d,e){function a(f){"@babel/helpers - typeof";a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&& "function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};return a(f)}var f;f=function(){return this}();try{f=f||(new Function("return this"))()}catch(g){"object"===("undefined"===typeof window?"undefined":a(window))&&(f=window)}d.exports=f},,,,,,function(d,e,a){d.exports=a(11)},function(d,e,a){function f(a){"@babel/helpers - typeof";f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&& a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};return f(a)}a.r(e);d=a(2);d=a.n(d);var g=a(3);a.n(g);var m=a(12),r=g.window.jarallax;g.window.jarallax=m["default"];g.window.jarallax.noConflict=function(){g.window.jarallax=r;return this};if("undefined"!==typeof g.jQuery){a=function(){for(var a=arguments.length,d=Array(a),e=0;ea.length)l=a.length;for(var c=0,b=Array(l);cb?(d=b*Math.max(c,h),hb?d/b+Math.abs(d):f+(h-c)*(1-b),d/=2);this.parallaxScrollDistance=d;e=k?(h-f)/2:(c-f)/2;this.css(this.image.$item,{height:"".concat(f, "px"),marginTop:"".concat(e,"px"),left:"fixed"===this.image.position?"".concat(a.left,"px"):"0",width:"".concat(a.width,"px")});this.options.onCoverImage&&this.options.onCoverImage.call(this);return{image:{height:f,marginTop:e},container:a}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(a){var c=this.$item.getBoundingClientRect(),b=c.top,d=c.height,f={},e=c;this.options.elementInViewport&&(e=this.options.elementInViewport.getBoundingClientRect()); this.isElementInViewport=0<=e.bottom&&0<=e.right&&e.top<=h&&e.left<=p.window.innerWidth;if(a||this.isElementInViewport){a=Math.max(0,b);var e=Math.max(0,d+b),g=Math.max(0,-b),z=Math.max(0,b+d-h),m=Math.max(0,d-(b+d-h)),r=Math.max(0,-b+h-d),q=1-(h-b)/(h+d)*2,n=1;dthis.options.speed?d-this.options.speed*n:d+this.options.speed*(1-n),f.transform="scale(".concat(d,") translate3d(0,0,0)");if("scroll"===this.options.type||"scroll-opacity"===this.options.type)d=this.parallaxScrollDistance*q,"absolute"===this.image.position&&(d-=b),f.transform="translate3d(0,".concat(d,"px,0)");this.css(this.image.$item,f);this.options.onScroll&&this.options.onScroll.call(this,{section:c,beforeTop:a,beforeTopEnd:e,afterTop:g,beforeBottom:z,beforeBottomEnd:m, afterBottom:r,visiblePercent:n,fromViewportCenter:q})}}},{key:"onResize",value:function(){this.coverImage();this.clipContainer()}}]);return a}();a=function(a,d){if("object"===("undefined"===typeof HTMLElement?"undefined":m(HTMLElement))?a instanceof HTMLElement:a&&"object"===m(a)&&null!==a&&1===a.nodeType&&"string"===typeof a.nodeName)a=[a];for(var c=a.length,b=0,e,f=arguments.length,g=Array(2