1import{g as W}from"./Cpj98o6Y.js";var k={exports:{}};/*! 2 * simpleParallax.min - simpleParallax is a simple JavaScript library that gives your website parallax animations on any images or videos, 3 * @date: 20-08-2020 14:0:14, 4 * @version: 5.6.2, 5 * @link: https://simpleparallax.com/ 6 */(function(A,R){(function(y,c){A.exports=c()})(window,function(){return function(y){var c={};function l(s){if(c[s])return c[s].exports;var a=c[s]={i:s,l:!1,exports:{}};return y[s].call(a.exports,a,a.exports,l),a.l=!0,a.exports}return l.m=y,l.c=c,l.d=function(s,a,u){l.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:u})},l.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},l.t=function(s,a){if(1&a&&(s=l(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(l.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var p in s)l.d(u,p,(function(d){return s[d]}).bind(null,p));return u},l.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return l.d(a,"a",a),a},l.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},l.p="",l(l.s=0)}([function(y,c,l){l.r(c),l.d(c,"default",function(){return _});var s=function(){return Element.prototype.closest&&"IntersectionObserver"in window};function a(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}var u=new(function(){function e(){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,e),this.positions={top:0,bottom:0,height:0}}var n,i;return n=e,(i=[{key:"setViewportTop",value:function(t){return this.positions.top=t?t.scrollTop:window.pageYOffset,this.positions}},{key:"setViewportBottom",value:function(){return this.positions.bottom=this.positions.top+this.positions.height,this.positions}},{key:"setViewportAll",value:function(t){return this.positions.top=t?t.scrollTop:window.pageYOffset,this.positions.height=t?t.clientHeight:document.documentElement.clientHeight,this.positions.bottom=this.positions.top+this.positions.height,this.positions}}])&&a(n.prototype,i),e}()),p=function(e){return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):typeof e=="string"||e instanceof String?document.querySelectorAll(e):[e]},d=function(){for(var e,n="transform webkitTransform mozTransform oTransform msTransform".split(" "),i=0;e===void 0;)e=document.createElement("div").style[n[i]]!==void 0?n[i]:void 0,i+=1;return e}(),E=function(e){return e.tagName.toLowerCase()!=="img"&&e.tagName.toLowerCase()!=="picture"||!!e&&!!e.complete&&(e.naturalWidth===void 0||e.naturalWidth!==0)};function V(e){return function(n){if(Array.isArray(n))return v(n)}(e)||function(n){if(typeof Symbol<"u"&&Symbol.iterator in Object(n))return Array.from(n)}(e)||function(n,i){if(n){if(typeof n=="string")return v(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(n,i)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function j(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}var P=function(){function e(t,r){var o=this;(function(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")})(this,e),this.element=t,this.elementContainer=t,this.settings=r,this.isVisible=!0,this.isInit=!1,this.oldTranslateValue=-1,this.init=this.init.bind(this),this.customWrapper=this.settings.customWrapper&&this.element.closest(this.settings.customWrapper)?this.element.closest(this.settings.customWrapper):null,E(t)?this.init():this.element.addEventListener("load",function(){setTimeout(function(){o.init(!0)},50)})}var n,i;return n=e,(i=[{key:"init",value:function(t){var r=this;this.isInit||(t&&(this.rangeMax=null),this.element.closest(".simpleParallax")||(this.settings.overflow===!1&&this.wrapElement(this.element),this.setTransformCSS(),this.getElementOffset(),this.intersectionObserver(),this.getTranslateValue(),this.animate(),this.settings.delay>0?setTimeout(function(){r.setTransitionCSS(),r.elementContainer.classList.add("simple-parallax-initialized")},10):this.elementContainer.classList.add("simple-parallax-initialized"),this.isInit=!0))}},{key:"wrapElement",value:function(){var t=this.element.closest("picture")||this.element,r=this.customWrapper||document.createElement("div");r.classList.add("simpleParallax"),r.style.overflow="hidden",this.customWrapper||(t.parentNode.insertBefore(r,t),r.appendChild(t)),this.elementContainer=r}},{key:"unWrapElement",value:function(){var t=this.elementContainer;this.customWrapper?(t.classList.remove("simpleParallax"),t.style.overflow=""):t.replaceWith.apply(t,V(t.childNodes))}},{key:"setTransformCSS",value:function(){this.settings.overflow===!1&&(this.element.style[d]="scale(".concat(this.settings.scale,")")),this.element.style.willChange="transform"}},{key:"setTransitionCSS",value:function(){this.element.style.transition="transform ".concat(this.settings.delay,"s ").concat(this.settings.transition)}},{key:"unSetStyle",value:function(){this.element.style.willChange="",this.element.style[d]="",this.element.style.transition=""}},{key:"getElementOffset",value:function(){var t=this.elementContainer.getBoundingClientRect();if(this.elementHeight=t.height,this.elementTop=t.top+u.positions.top,this.settings.customContainer){var r=this.settings.customContainer.getBoundingClientRect();this.elementTop=t.top-r.top+u.positions.top}this.elementBottom=this.elementHeight+this.elementTop}},{key:"buildThresholdList",value:function(){for(var t=[],r=1;r<=this.elementHeight;r++){var o=r/this.elementHeight;t.push(o)}return t}},{key:"intersectionObserver",value:function(){var t={root:null,threshold:this.buildThresholdList()};this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),t),this.observer.observe(this.element)}},{key:"intersectionObserverCallback",value:function(t){var r=this;t.forEach(function(o){o.isIntersecting?r.isVisible=!0:r.isVisible=!1})}},{key:"checkIfVisible",value:function(){return this.elementBottom>u.positions.top&&this.elementTop<u.positions.bottom}},{key:"getRangeMax",value:function(){var t=this.element.clientHeight;this.rangeMax=t*this.settings.scale-t}},{key:"getTranslateValue",value:function(){var t=((u.positions.bottom-this.elementTop)/((u.positions.height+this.elementHeight)/100)).toFixed(1);return t=Math.min(100,Math.max(0,t)),this.settings.maxTransition!==0&&t>this.settings.maxTransition&&(t=this.settings.maxTransition),this.oldPercentage!==t&&(this.rangeMax||this.getRangeMax(),this.translateValue=(t/100*this.rangeMax-this.rangeMax/2).toFixed(0),this.oldTranslateValue!==this.translateValue&&(this.oldPercentage=t,this.oldTranslateValue=this.translateValue,!0))}},{key:"animate",value:function(){var t,r=0,o=0;(this.settings.orientation.includes("left")||this.settings.orientation.includes("right"))&&(o="".concat(this.settings.orientation.includes("left")?-1*this.translateValue:this.translateValue,"px")),(this.settings.orientation.includes("up")||this.settings.orientation.includes("down"))&&(r="".concat(this.settings.orientation.includes("up")?-1*this.translateValue:this.translateValue,"px")),t=this.settings.overflow===!1?"translate3d(".concat(o,", ").concat(r,", 0) scale(").concat(this.settings.scale,")"):"translate3d(".concat(o,", ").concat(r,", 0)"),this.element.style[d]=t}}
7])&&j(n.prototype,i),e}();function x(e){return function(n){if(Array.isArray(n))return g(n)}(e)||function(n){if(typeof Symbol<"u"&&Symbol.iterator in Object(n))return Array.from(n)}(e)||C(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function I(e,n){return function(i){if(Array.isArray(i))return i}(e)||function(i,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(i)))){var r=[],o=!0,f=!1,m=void 0;try{for(var O,T=i[Symbol.iterator]();!(o=(O=T.next()).done)&&(r.push(O.value),!t||r.length!==t);o=!0);}catch(L){f=!0,m=L}finally{try{o||T.return==null||T.return()}finally{if(f)throw m}}return r}}(e,n)||C(e,n)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C(e,n){if(e){if(typeof e=="string")return g(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(e,n):void 0}}function g(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function M(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}var b,S,w=!1,h=[],_=function(){function e(t,r){if(function(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}(this,e),t&&s()){if(this.elements=p(t),this.defaults={delay:0,orientation:"up",scale:1.3,overflow:!1,transition:"cubic-bezier(0,0,0,1)",customContainer:"",customWrapper:"",maxTransition:0},this.settings=Object.assign(this.defaults,r),this.settings.customContainer){var o=I(p(this.settings.customContainer),1);this.customContainer=o[0]}this.lastPosition=-1,this.resizeIsDone=this.resizeIsDone.bind(this),this.refresh=this.refresh.bind(this),this.proceedRequestAnimationFrame=this.proceedRequestAnimationFrame.bind(this),this.init()}}var n,i;return n=e,(i=[{key:"init",value:function(){var t=this;u.setViewportAll(this.customContainer),h=[].concat(x(this.elements.map(function(r){return new P(r,t.settings)})),x(h)),w||(this.proceedRequestAnimationFrame(),window.addEventListener("resize",this.resizeIsDone),w=!0)}},{key:"resizeIsDone",value:function(){clearTimeout(S),S=setTimeout(this.refresh,200)}},{key:"proceedRequestAnimationFrame",value:function(){var t=this;u.setViewportTop(this.customContainer),this.lastPosition!==u.positions.top?(u.setViewportBottom(),h.forEach(function(r){t.proceedElement(r)}),b=window.requestAnimationFrame(this.proceedRequestAnimationFrame),this.lastPosition=u.positions.top):b=window.requestAnimationFrame(this.proceedRequestAnimationFrame)}},{key:"proceedElement",value:function(t){(this.customContainer?t.checkIfVisible():t.isVisible)&&t.getTranslateValue()&&t.animate()}},{key:"refresh",value:function(){u.setViewportAll(this.customContainer),h.forEach(function(t){t.getElementOffset(),t.getRangeMax()}),this.lastPosition=-1}},{key:"destroy",value:function(){var t=this,r=[];h=h.filter(function(o){return t.elements.includes(o.element)?(r.push(o),!1):o}),r.forEach(function(o){o.unSetStyle(),t.settings.overflow===!1&&o.unWrapElement()}),h.length||(window.cancelAnimationFrame(b),window.removeEventListener("resize",this.refresh),w=!1)}}])&&M(n.prototype,i),e}()}]).default})})(k);var F=k.exports;const z=W(F),H=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{H as s}; 10//# sourceMappingURL=B03pMeuS.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.