PageSourceSearch

https://vishnuppriyan-portfolio.netlify.app/assets/locomotive-scroll.esm-5e71c17e.js

js vishnuppriyan-portfolio.netlify.app collected 2026-10-03 11:35:07 UTC 48,838 bytes, 7 lines download raw bytes

vendor: 4,432 bytes, lines 1-3
1function z(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function st(s,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}function V(s,i,n){return i&&st(s.prototype,i),n&&st(s,n),s}function bt(s,i,n){return i in s?Object.defineProperty(s,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[i]=n,s}function nt(s,i){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);i&&(e=e.filter(function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable})),n.push.apply(n,e)}return n}function K(s){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?nt(Object(n),!0).forEach(function(e){bt(s,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(n,e))})}return s}function lt(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),i&&G(s,i)}function D(s){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},D(s)}function G(s,i){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(s,i)}function St(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ot(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Et(s,i){return i&&(typeof i=="object"||typeof i=="function")?i:ot(s)}function at(s){var i=St();return function(){var e=D(s),t;if(i){var r=D(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Et(this,t)}}function kt(s,i){for(;!Object.prototype.hasOwnProperty.call(s,i)&&(s=D(s),s!==null););return s}function P(s,i,n){return typeof Reflect<"u"&&Reflect.get?P=Reflect.get:P=function(t,r,l){var h=kt(t,r);if(h){var a=Object.getOwnPropertyDescriptor(h,r);return a.get?a.get.call(l):a.value}},P(s,i,n||s)}function H(s,i){return Ot(s)||At(s,i)||ct(s,i)||Ct()}function Tt(s){return xt(s)||_t(s)||ct(s)||Dt()}function xt(s){if(Array.isArray(s))return J(s)}function Ot(s){if(Array.isArray(s))return s}function _t(s){if(typeof Symbol<"u"&&Symbol.iterator in Object(s))return Array.from(s)}function At(s,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var n=[],e=!0,t=!1,r=void 0;try{for(var l=s[Symbol.iterator](),h;!(e=(h=l.next()).done)&&(n.push(h.value),!(i&&n.length===i));e=!0);}catch(a){t=!0,r=a}finally{try{!e&&l.return!=null&&l.return()}finally{if(t)throw r}}return n}}function ct(s,i){if(s){if(typeof s=="string")return J(s,i);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(s,i)}}function J(s,i){(i==null||i>s.length)&&(i=s.length);for(var n=0,e=new Array(i);n<i;n++)e[n]=s[n];return e}function Dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ct(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R={el:document,name:"scroll",offset:[0,0],repeat:!1,smooth:!1,initPosition:{x:0,y:0},direction:"vertical",gestureDirection:"vertical",reloadOnContextChange:!1,lerp:.1,class:"is-inview",scrollbarContainer:!1,scrollbarClass:"c-scrollbar",scrollingClass:"has-scroll-scrolling",draggingClass:"has-scroll-dragging",smoothClass:"has-scroll-smooth",initClass:"has-scroll-init",getSpeed:!1,getDirection:!1,scrollFromAnywhere:!1,multiplier:1,firefoxMultiplier:50,touchMultiplier:2,resetNativeScroll:!0,tablet:{smooth:!1,direction:"vertical",gestureDirection:"vertical",breakpoint:1024},smartphone:{smooth:!1,direction:"vertical",gestureDirection:"vertical"}},ht=function(){function s(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
vendor: 5,185 bytes, line 3
3z(this,s),Object.assign(this,R,i),this.smartphone=R.smartphone,i.smartphone&&Object.assign(this.smartphone,i.smartphone),this.tablet=R.tablet,i.tablet&&Object.assign(this.tablet,i.tablet),this.namespace="locomotive",this.html=document.documentElement,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.els={},this.currentElements={},this.listeners={},this.hasScrollTicking=!1,this.hasCallEventSet=!1,this.checkScroll=this.checkScroll.bind(this),this.checkResize=this.checkResize.bind(this),this.checkEvent=this.checkEvent.bind(this),this.instance={scroll:{x:0,y:0},limit:{x:this.html.offsetWidth,y:this.html.offsetHeight},currentElements:this.currentElements},this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",this.isMobile&&(this.direction=this[this.context].direction),this.direction==="horizontal"?this.directionAxis="x":this.directionAxis="y",this.getDirection&&(this.instance.direction=null),this.getDirection&&(this.instance.speed=0),this.html.classList.add(this.initClass),window.addEventListener("resize",this.checkResize,!1)}return V(s,[{key:"init",value:function(){this.initEvents()}},{key:"checkScroll",value:function(){this.dispatchScroll()}},{key:"checkResize",value:function(){var n=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame(function(){n.resize(),n.resizeTick=!1}))}},{key:"resize",value:function(){}},{key:"checkContext",value:function(){if(this.reloadOnContextChange){this.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||this.windowWidth<this.tablet.breakpoint,this.isTablet=this.isMobile&&this.windowWidth>=this.tablet.breakpoint;var n=this.context;if(this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",n!=this.context){var e=n=="desktop"?this.smooth:this[n].smooth,t=this.context=="desktop"?this.smooth:this[this.context].smooth;e!=t&&window.location.reload()}}}},{key:"initEvents",value:function(){var n=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEach(function(e){e.addEventListener("click",n.setScrollTo,!1)})}},{key:"setScrollTo",value:function(n){n.preventDefault(),this.scrollTo(n.currentTarget.getAttribute("data-".concat(this.name,"-href"))||n.currentTarget.getAttribute("href"),{offset:n.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function(){}},{key:"detectElements",value:function(n){var e=this,t=this.instance.scroll.y,r=t+this.windowHeight,l=this.instance.scroll.x,h=l+this.windowWidth;Object.entries(this.els).forEach(function(a){var f=H(a,2),p=f[0],o=f[1];if(o&&(!o.inView||n)&&(e.direction==="horizontal"?h>=o.left&&l<o.right&&e.setInView(o,p):r>=o.top&&t<o.bottom&&e.setInView(o,p)),o&&o.inView)if(e.direction==="horizontal"){var u=o.right-o.left;o.progress=(e.instance.scroll.x-(o.left-e.windowWidth))/(u+e.windowWidth),(h<o.left||l>o.right)&&e.setOutOfView(o,p)}else{var d=o.bottom-o.top;o.progress=(e.instance.scroll.y-(o.top-e.windowHeight))/(d+e.windowHeight),(r<o.top||t>o.bottom)&&e.setOutOfView(o,p)}}),this.hasScrollTicking=!1}},{key:"setInView",value:function(n,e){this.els[e].inView=!0,n.el.classList.add(n.class),this.currentElements[e]=n,n.call&&this.hasCallEventSet&&(this.dispatchCall(n,"enter"),n.repeat||(this.els[e].call=!1))}},{key:"setOutOfView",value:function(n,e){var t=this;this.els[e].inView=!1,Object.keys(this.currentElements).forEach(function(r){r===e&&delete t.currentElements[r]}),n.call&&this.hasCallEventSet&&this.dispatchCall(n,"exit"),n.repeat&&n.el.classList.remove(n.class)}},{key:"dispatchCall",value:function(n,e){this.callWay=e,this.callValue=n.call.split(",").map(function(r){return r.trim()}),this.callObj=n,this.callValue.length==1&&(this.callValue=this.callValue[0]);var t=new Event(this.namespace+"call");this.el.dispatchEvent(t)}},{key:"dispatchScroll",value:function(){var n=new Event(this.namespace+"scroll");this.el.dispatchEvent(n)}},{key:"setEvents",value:function(n,e){this.listeners[n]||(this.listeners[n]=[]);var t=this.listeners[n];t.push(e),t.length===1&&this.el.addEventListener(this.namespace+n,this.checkEvent,!1),n==="call"&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function(n,e){if(this.listeners[n]){var t=this.listeners[n],r=t.indexOf(e);r<0||(t.splice(r,1),t.index===0&&this.el.removeEventListener(this.namespace+n,this.checkEvent,!1))}}},{key:"checkEvent",value:function(n){var e=this,t=n.type.replace(this.namespace,""),r=this.listeners[t];!r||r.length===0||r.forEach(function(l){switch(t){case"scroll":return l(e.instance);case"call":return l(e.callValue,e.callWay,e.callObj);default:return l()}})}},{key:"startScroll",value:function(){}},{key:"stopScroll",value:function(){}},{key:"setScroll",value:function(n,e){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function(){var n=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEac
vendor: 5,202 bytes, line 3
3h(function(e){n.el.removeEventListener(n.namespace+e,n.checkEvent,!1)}),this.listeners={},this.scrollToEls.forEach(function(e){e.removeEventListener("click",n.setScrollTo,!1)}),this.html.classList.remove(this.initClass)}}]),s}(),Lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(s,i){return i={exports:{}},s(i,i.exports),i.exports}var ut=ft(function(s,i){(function(){function n(){var e=window,t=document;if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;var r=e.HTMLElement||e.Element,l=468,h={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||o,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function f(c){var v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(c)}var p=f(e.navigator.userAgent)?1:0;function o(c,v){this.scrollLeft=c,this.scrollTop=v}function u(c){return .5*(1-Math.cos(Math.PI*c))}function d(c){if(c===null||typeof c!="object"||c.behavior===void 0||c.behavior==="auto"||c.behavior==="instant")return!0;if(typeof c=="object"&&c.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+c.behavior+" is not a valid value for enumeration ScrollBehavior.")}function S(c,v){if(v==="Y")return c.clientHeight+p<c.scrollHeight;if(v==="X")return c.clientWidth+p<c.scrollWidth}function L(c,v){var y=e.getComputedStyle(c,null)["overflow"+v];return y==="auto"||y==="scroll"}function _(c){var v=S(c,"Y")&&L(c,"Y"),y=S(c,"X")&&L(c,"X");return v||y}function M(c){for(;c!==t.body&&_(c)===!1;)c=c.parentNode||c.host;return c}function T(c){var v=a(),y,m,E,b=(v-c.startTime)/l;b=b>1?1:b,y=u(b),m=c.startX+(c.x-c.startX)*y,E=c.startY+(c.y-c.startY)*y,c.method.call(c.scrollable,m,E),(m!==c.x||E!==c.y)&&e.requestAnimationFrame(T.bind(e,c))}function k(c,v,y){var m,E,b,g,I=a();c===t.body?(m=e,E=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,g=h.scroll):(m=c,E=c.scrollLeft,b=c.scrollTop,g=o),T({scrollable:m,method:g,startTime:I,startX:E,startY:b,x:v,y})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){h.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}k.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(d(arguments[0])){h.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}k.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");h.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var c=arguments[0].left,v=arguments[0].top;k.call(this,this,typeof c>"u"?this.scrollLeft:~~c,typeof v>"u"?this.scrollTop:~~v)}},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){h.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(d(arguments[0])===!0){h.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var c=M(this),v=c.getBoundingClientRect(),y=this.getBoundingClientRect();c!==t.body?(k.call(this,c,c.scrollLeft+y.left-v.left,c.scrollTop+y.top-v.top),e.getComputedStyle(c).position!=="fixed"&&e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})):e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})}}s.exports={polyfill:n}})()});ut.polyfill;var dt=function(s){lt(n,s);var i=at(n);function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return z(this,n),e=i.call(this,t),e.resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",e.checkScroll,!1),window.smoothscrollPolyfill===void 0&&(window.smoothscrollPolyfill=ut,window.smoothscrollPolyfill.polyfill()),e}return V(n,[{key:"init",value:function(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),P(D(n.prototype),"init",this).call(this)}},{key:"checkScroll",value:function(){var t=this;P(D(n.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.get
3Speed&&(this.addSpeed(),this.speedTs=Date.now()),this.instance.scroll.y=window.pageYOffset,Object.entries(this.els).length&&(this.hasScrollTicking||(requestAnimationFrame(function(){t.detectElements()}),this.hasScrollTicking=!0))}},{key:"addDirection",value:function(){window.pageYOffset>this.instance.scroll.y?this.instance.direction!=="down"&&(this.instance.direction="down"):window.pageYOffset<this.instance.scroll.y&&this.instance.direction!=="up"&&(this.instance.direction="up")}},{key:"addSpeed",value:function(){window.pageYOffset!=this.instance.scroll.y?this.instance.speed=(window.pageYOffset-this.instance.scroll.y)/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"resize",value:function(){Object.entries(this.els).length&&(this.windowHeight=window.innerHeight,this.updateElements())}},{key:"addElements",value:function(){var t=this;this.els={};var r=this.el.querySelectorAll("[data-"+this.name+"]");r.forEach(function(l,h){l.getBoundingClientRect();var a=l.dataset[t.name+"Class"]||t.class,f=typeof l.dataset[t.name+"Id"]=="string"?l.dataset[t.name+"Id"]:h,p,o,u=typeof l.dataset[t.name+"Offset"]=="str
3ing"?l.dataset[t.name+"Offset"].split(","):t.offset,d=l.dataset[t.name+"Repeat"],S=l.dataset[t.name+"Call"],L=l.dataset[t.name+"Target"],_;L!==void 0?_=document.querySelector("".concat(L)):_=l;var M=_.getBoundingClientRect();p=M.top+t.instance.scroll.y,o=M.left+t.instance.scroll.x;var T=p+_.offsetHeight,k=o+_.offsetWidth;d=="false"?d=!1:d!=null?d=!0:d=t.repeat;var c=t.getRelativeOffset(u);p=p+c[0],T=T-c[1];var v={el:l,targetEl:_,id:f,class:a,top:p,bottom:T,left:o,right:k,offset:u,progress:0,repeat:d,inView:!1,call:S};t.els[f]=v,l.classList.contains(a)&&t.setInView(t.els[f],f)})}},{key:"updateElements",value:function(){var t=this;Object.entries(this.els).forEach(function(r){var l=H(r,2),h=l[0],a=l[1],f=a.targetEl.getBoundingClientRect().top+t.instance.scroll.y,p=f+a.targetEl.offsetHeight,o=t.getRelativeOffset(a.offset);t.els[h].top=f+o[0],t.els[h].bottom=p-o[1]}),this.hasScrollTicking=!1}},{key:"getRelativeOffset",value:function(t){var r=[0,0];if(t)for(var l=0;l<t.length;l++)typeof t[l]=="string"?t[l].includes("%")?r[l]=parseInt(t[l].replace("%","")*this.windowHeight/100):r[l]=parseInt(t[l]):r[l]=t[l];return r}},{key:"scrollTo",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=parseInt(r.offset)||0,h=r.callback?r.callback:!1;if(typeof t=="string"){if(t==="top")t=this.html;else if(t==="bottom")t=this.html.offsetHeight-window.innerHeight;else if(t=document.querySelector(t),!t)return}else if(typeof t=="number")t=parseInt(t);else if(!(t&&t.tagName)){console.warn("`target` parameter is not valid");return}typeof t!="number"?l=t.getBoundingClientRect().top+l+this.instance.scroll.y:l=t+l;var a=function(){return parseInt(window.pageYOffset)===parseInt(l)};if(h)if(a()){h();return}else{var f=function p(){a()&&(window.removeEventListener("scroll",p),h())};window.addEventListener("scroll",f)}window.scrollTo({top:l,behavior:r.duration===0?"auto":"smooth"})}},{key:"update",value:function(){this.addElements(),this.detectElements()}},{key:"destroy",value:function(){P(D(n.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),n}(ht);/*
4object-assign
5(c) Sindre Sorhus
6@license MIT
7*/var rt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable;function Pt(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function Rt(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},n=0;n<10;n++)i["_"+String.fromCharCode(n)]=n;var e=Object.getOwnPropertyNames(i).map(function(r){return i[r]});if(e.join("")!=="0123456789")return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(r){t[r]=r}),Object.keys(Object.assign({},t)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var It=Rt()?Object.assign:function(s,i){for(var n,e=Pt(s),t,r=1;r<arguments.length;r++){n=Object(arguments[r]);for(var l in n)Mt.call(n,l)&&(e[l]=n[l]);if(rt){t=rt(n);for(var h=0;h<t.length;h++)Bt.call(n,t[h])&&(e[t[h]]=n[t[h]])}}return e};function pt(){}pt.prototype={on:function(s,i,n){var e=this.e||(this.e={});return(e[s]||(e[s]=[])).push({fn:i,ctx:n}),this},once:function(s,i,n){var e=this;function t(){e.off(s,t),i.apply(n,arguments)}return t._=i,this.on(s,t,n)},emit:function(s){var i=[].slice.call(arguments,1),n=((this.e||(this.e={}))[s]||[]).slice(),e=0,t=n.length;for(e;e<t;e++)n[e].fn.apply(n[e].ctx,i);return this},off:function(s,i){var n=this.e||(this.e={}),e=n[s],t=[];if(e&&i)for(var r=0,l=e.length;r<l;r++)e[r].fn!==i&&e[r].fn._!==i&&t.push(e[r]);return t.length?n[s]=t:delete n[s],this}};var Wt=pt,Ht=ft(function(s,i){(function(){var n;n=i!==null?i:this,n.Lethargy=function(){function e(t,r,l,h){this.stability=t!=null?Math.abs(t):8,this.sensitivity=r!=null?1+Math.abs(r):100,this.tolerance=l!=null?1+Math.abs(l):1.1,this.delay=h??150,this.lastUpDeltas=function(){var a,f,p;for(p=[],a=1,f=this.stability*2;1<=f?a<=f:a>=f;1<=f?a++:a--)p.push(null);return p}.call(this),this.lastDownDeltas=function(){var a,f,p;for(p=[],a=1,f=this.stability*2;1<=f?a<=f:a>=f;1<=f?a++:a--)p.push(null);return p}.call(this),this.deltasTimestamp=function(){var a,f,p;for(p=[],a=1,f=this.stability*2;1<=f?a<=f:a>=f;1<=f?a++:a--)p.push(null);return p}.call(this)}return e.prototype.check=function(t){var r;return t=t.originalEvent||t,t.wheelDelta!=null?r=t.wheelDelta:t.deltaY!=null?r=t.deltaY*-40:(t.detail!=null||t.detail===0)&&(r=t.detail*-40),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),r>0?(this.lastUpDeltas.push(r),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(r),this.lastDownDeltas.shift(),this.isInertia(-1))},e.prototype.isInertia=function(t){var r,l,h,a,f,p,o;return r=t===-1?this.lastDownDeltas:this.lastUpDeltas,r[0]===null?t:this.deltasTimestamp[this.stability*2-2]+this.delay>Date.now()&&r[0]===r[this.stability*2-1]?!1:(h=r.slice(0,this.stability),l=r.slice(this.stability,this.stability*2),o=h.reduce(function(u,d){return u+d}),f=l.reduce(function(u,d){return u+d}),p=o/h.length,a=f/l.length,Math.abs(p)<Math.abs(a*this.tolerance)&&this.sensitivity<Math.abs(a)?t:!1)},e.prototype.showLastUpDeltas=function(){return this.lastUpDeltas},e.prototype.showLastDownDeltas=function(){return this.lastDownDeltas},e}()}).call(Lt)}),x=function(){return{hasWheelEvent:"onwheel"in document,hasMouseWheelEvent:"onmousewheel"in document,hasTouch:"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,hasTouchWin:navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}}(),jt=Object.prototype.toString,Yt=Object.prototype.hasOwnProperty,zt=function(s){if(!s)return console.warn("bindAll requires at least one argument.");var i=Array.prototype.slice.call(arguments,1);if(i.length===0)for(var n in s)Yt.call(s,n)&&typeof s[n]=="function"&&jt.call(s[n])=="[object Function]"&&i.push(n);for(var e=0;e<i.length;e++){var t=i[e];s[t]=Vt(s[t],s)}};function Vt(s,i){return function(){return s.apply(i,arguments)}}var Nt=Ht.Lethargy,W="virtualscroll",Ft=O,j={LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACE:32};function O(s){zt(this,"_onWheel","_onMouseWheel","_onTouchStart","_onTouchMove","_onKeyDown"),this.el=window,s&&s.el&&(this.el=s.el,delete s.el),this.options=It({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",limitInertia:!1,useKeyboard:!0,useTouch:!0}
7,s),this.options.limitInertia&&(this._lethargy=new Nt),this._emitter=new Wt,this._event={y:0,x:0,deltaX:0,deltaY:0},this.touchStartX=null,this.touchStartY=null,this.bodyTouchAction=null,this.options.passive!==void 0&&(this.listenerOptions={passive:this.options.passive})}O.prototype._notify=function(s){var i=this._event;i.x+=i.deltaX,i.y+=i.deltaY,this._emitter.emit(W,{x:i.x,y:i.y,deltaX:i.deltaX,deltaY:i.deltaY,originalEvent:s})};O.prototype._onWheel=function(s){var i=this.options;if(!(this._lethargy&&this._lethargy.check(s)===!1)){var n=this._event;n.deltaX=s.wheelDeltaX||s.deltaX*-1,n.deltaY=s.wheelDeltaY||s.deltaY*-1,x.isFirefox&&s.deltaMode==1&&(n.deltaX*=i.firefoxMultiplier,n.deltaY*=i.firefoxMultiplier),n.deltaX*=i.mouseMultiplier,n.deltaY*=i.mouseMultiplier,this._notify(s)}};O.prototype._onMouseWheel=function(s){if(!(this.options.limitInertia&&this._lethargy.check(s)===!1)){var i=this._event;i.deltaX=s.wheelDeltaX?s.wheelDeltaX:0,i.deltaY=s.wheelDeltaY?s.wheelDeltaY:s.wheelDelta,this._notify(s)}};O.prototype._onTouchStart=function(s){var i=s.targetTouches?s.targetTouches[0]:s;this.touchStartX=i.pageX,this.touchStartY=i.pageY};O.prototype._onTouchMove=function(s){var i=this.options;i.preventTouch&&!s.target.classList.contains(i.unpreventTouchClass)&&s.preventDefault();var n=this._event,e=s.targetTouches?s.targetTouches[0]:s;n.deltaX=(e.pageX-this.touchStartX)*i.touchMultiplier,n.deltaY=(e.pageY-this.touchStartY)*i.touchMultiplier,this.touchStartX=e.pageX,this.touchStartY=e.pageY,this._notify(s)};O.prototype._onKeyDown=function(s){var i=this._event;i.deltaX=i.deltaY=0;var n=window.innerHeight-40;switch(s.keyCode){case j.LEFT:case j.UP:i.deltaY=this.options.keyStep;break;case j.RIGHT:case j.DOWN:i.deltaY=-this.options.keyStep;break;case s.shiftKey:i.deltaY=n;break;case j.SPACE:i.deltaY=-n;break;default:return}this._notify(s)};O.prototype._bind=function(){x.hasWheelEvent&&this.el.addEventListener("wheel",this._onWheel,this.listenerOptions),x.hasMouseWheelEvent&&this.el.addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),x.hasTouch&&this.options.useTouch&&(this.el.addEventListener("touchstart",this._onTouchStart,this.listenerOptions),this.el.addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),x.hasPointer&&x.hasTouchWin&&(this.bodyTouchAction=document.body.style.msTouchAction,document.body.style.msTouchAction="none",this.el.addEventListener("MSPointerDown",this._onTouchStart,!0),this.el.addEventListener("MSPointerMove",this._onTouchMove,!0)),x.hasKeyDown&&this.options.useKeyboard&&document.addEventListener("keydown",this._onKeyDown)};O.prototype._unbind=function(){x.hasWheelEvent&&this.el.removeEventListener("wheel",this._onWheel),x.hasMouseWheelEvent&&this.el.removeEventListener("mousewheel",this._onMouseWheel),x.hasTouch&&(this.el.removeEventListener("touchstart",this._onTouchStart),this.el.removeEventListener("touchmove",this._onTouchMove)),x.hasPointer&&x.hasTouchWin&&(
7document.body.style.msTouchAction=this.bodyTouchAction,this.el.removeEventListener("MSPointerDown",this._onTouchStart,!0),this.el.removeEventListener("MSPointerMove",this._onTouchMove,!0)),x.hasKeyDown&&this.options.useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)};O.prototype.on=function(s,i){this._emitter.on(W,s,i);var n=this._emitter.e;n&&n[W]&&n[W].length===1&&this._bind()};O.prototype.off=function(s,i){this._emitter.off(W,s,i);var n=this._emitter.e;(!n[W]||n[W].length<=0)&&this._unbind()};O.prototype.reset=function(){var s=this._event;s.x=0,s.y=0};O.prototype.destroy=function(){this._emitter.off(),this._unbind()};function U(s,i,n){return(1-n)*s+n*i}function A(s){var i={};if(window.getComputedStyle){var n=getComputedStyle(s),e=n.transform||n.webkitTransform||n.mozTransform,t=e.match(/^matrix3d\((.+)\)$/);return t?(i.x=t?parseFloat(t[1].split(", ")[12]):0,i.y=t?parseFloat(t[1].split(", ")[13]):0):(t=e.match(/^matrix\((.+)\)$/),i.x=t?parseFloat(t[1].split(", ")[4]):0,i.y=t?parseFloat(t[1].split(", ")[5]):0),i}}function $(s){for(var i=[];s&&s!==document;s=s.parentNode)i.push(s);return i}var Xt=4,qt=.001,Kt=1e-7,Ut=10,Y=11,F=1/(Y-1),$t=typeof Float32Array=="function";function vt(s,i){return 1-3*i+3*s}function mt(s,i){return 3*i-6*s}function yt(s){return 3*s}function X(s,i,n){return((vt(i,n)*s+mt(i,n))*s+yt(i))*s}function gt(s,i,n){return 3*vt(i,n)*s*s+2*mt(i,n)*s+yt(i)}function Gt(s,i,n,e,t){var r,l,h=0;do l=i+(n-i)/2,r=X(l,e,t)-s,r>0?n=l:i=l;while(Math.abs(r)>Kt&&++h<Ut);return l}function Jt(s,i,n,e){for(var t=0;t<Xt;++t){var r=gt(i,n,e);if(r===0)return i;var l=X(i,n,e)-s;i-=l/r}return i}function Qt(s){return s}var Zt=function(i,n,e,t){if(!(0<=i&&i<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(i===n&&e===t)return Qt;for(var r=$t?new Float32Array(Y):new Array(Y),l=0;l<Y;++l)r[l]=X(l*F,i,e);function h(a){for(var f=0,p=1,o=Y-1;p!==o&&r[p]<=a;
7++p)f+=F;--p;var u=(a-r[p])/(r[p+1]-r[p]),d=f+u*F,S=gt(d,i,e);return S>=qt?Jt(a,d,i,e):S===0?d:Gt(a,f,f+F,i,e)}return function(f){return f===0?0:f===1?1:X(h(f),n,t)}},B={LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACE:32,TAB:9,PAGEUP:33,PAGEDOWN:34,HOME:36,END:35},te=function(s){lt(n,s);var i=at(n);function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return z(this,n),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),e=i.call(this,t),e.inertia&&(e.lerp=e.inertia*.1),e.isScrolling=!1,e.isDraggingScrollbar=!1,e.isTicking=!1,e.hasScrollTicking=!1,e.parallaxElements={},e.stop=!1,e.scrollbarContainer=t.scrollbarContainer,e.checkKey=e.checkKey.bind(ot(e)),window.addEventListener("keydown",e.checkKey,!1),e}return V(n,[{key:"init",value:function(){var t=this;this.html.classList.add(this.smoothClass),this.html.setAttribute("data-".concat(this.name,"-direction"),this.direction),this.instance=K({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new Ft({el:this.scrollFromAnywhere?document:this.el,mouseMultiplier:navigator.platform.indexOf("Win")>-1?1:.4,firefoxMultiplier:this.firefoxMultiplier,touchMultiplier:this.touchMultiplier,useKeyboard:!1,passive:!0}),this.vs.on(function(r){t.stop||t.isDraggingScrollbar||requestAnimationFrame(function(){t.updateDelta(r),t.isScrolling||t.startScrolling()})}),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),P(D(n.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,this.direction==="horizontal"){for(var t=0,r=this.el.children,l=0;l<r.length;l++)t+=r[l].offsetWidth;this.instance.limit.x=t-this.windowWidth}}},{key:"startScrolling",value:function(){this.startScrollTs=Date.now(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"stopScrolling",value:function(){cancelAnimationFrame(this.checkScrollRaf),this.startScrollTs=void 0,this.scrollToRaf&&(cancelAnimationFrame(this.scrollToRaf),this.scrollToRaf=null),this.isScrolling=!1,this.instance.scroll.y=Math.round(this.instance.scroll.y),this.html.classList.remove(this.scrollingClass)}},{key:"checkKey",value:function(t){var r=this;if(this.stop){t.keyCode==B.TAB&&requestAnimationFrame(function(){r.html.scrollTop=0,document.body.scrollTop=0,r.html.scrollLeft=0,document.body.scrollLeft=0});return}switch(t.keyCode){case B.TAB:requestAnimationFrame(function(){r.html.scrollTop=0,document.body.scrollTop=0,r.html.scrollLeft=0,document.body.scrollLeft=0,r.scrollTo(document.activeElement,{offset:-window.innerHeight/2})});break;case B.UP:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]-=240);break;case B.DOWN:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]+=240);break;case B.PAGEUP:this.instance.delta[this.directionAxis]-=window.innerHeight;break;case B.PAGEDOWN:this.instance.delta[this.directionAxis]+=window.innerHeight;break;case B.HOME:this.instance.delta[this.directionAxis]-=this.instance.limit[this.directionAxis];break;case B.END:this.instance.delta[this.directionAxis]+=this.instance.limit[this.directionAxis];break;case B.SPACE:this.isActiveElementScrollSensitive()&&(t.shiftKey?this.instance.delta[this.directionAxis]-=window.innerHeight:this.instance.delta[this.directionAxis]+=window.innerHeight);break;default:return}this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis]),this.stopScrolling(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"isActiveElementScrollSensitive",value:function(){return!(document.activeElement instanceof HTMLInputElement)&&!(document.activeElement instanceof HTMLTextAreaElement)&&!(document.activeElement instanceof HTMLButtonElement)&&!(document.activeElement instanceof HTMLSelectElement)}},{key:"checkScroll",value:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(r||this.isScrolling||this.isDraggingScrollbar){this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame(function(){return t.checkScroll()}),this.hasScrollTicking=!0),this.updateScroll();var l=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),h=Date.now()-this.startScrollTs;if(!this.animatingScroll&&h>100&&(l<.5&&this.instance.delta[this.directionAxis]!=0||l<.5&&this.instance.delta[this.directionAxis]==0)&&this.stopScrolling(),Object.entries(this.sections).forEac
7h(function(f){var p=H(f,2);p[0];var o=p[1];o.persistent||t.instance.scroll[t.directionAxis]>o.offset[t.directionAxis]&&t.instance.scroll[t.directionAxis]<o.limit[t.directionAxis]?(t.direction==="horizontal"?t.transform(o.el,-t.instance.scroll[t.directionAxis],0):t.transform(o.el,0,-t.instance.scroll[t.directionAxis]),o.inView||(o.inView=!0,o.el.style.opacity=1,o.el.style.pointerEvents="all",o.el.setAttribute("data-".concat(t.name,"-section-inview"),""))):((o.inView||r)&&(o.inView=!1,o.el.style.opacity=0,o.el.style.pointerEvents="none",o.el.removeAttribute("data-".concat(t.name,"-section-inview"))),t.transform(o.el,0,0))}),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.detectElements(),this.transformElements(),this.hasScrollbar){var a=this.instance.scroll[this.directionAxis]/this.instance.limit[this.directionAxis]*this.scrollBarLimit[this.directionAxis];this.direction==="horizontal"?this.transform(this.scrollbarThumb,a,0):this.transform(this.scrollbarThumb,0,a)}P(D(n.prototype),"checkScroll",this).call(this),this.hasScrollTicking=!1}}},{key:"resize",value:function(){this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.checkContext(),this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.update()}},{key:"updateDelta",value:function(t){var r,l=this[this.context]&&this[this.context].gestureDirection?this[this.context].gestureDirection:this.gestureDirection;l==="both"?r=t.deltaX+t.deltaY:l==="vertical"?r=t.deltaY:l==="horizontal"?r=t.deltaX:r=t.deltaY,this.instance.delta[this.directionAxis]-=r*this.multiplier,this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis])}},{key:"updateScroll",value:function(t){this.isScrolling||this.isDraggingScrollbar?this.instance.scroll[this.directionAxis]=U(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis],this.lerp):this.instance.scroll[this.directionAxis]>this.instance.limit[this.directionAxis]?this.setScroll(this.instance.scroll[this.directionAxis],this.instance.limit[this.directionAxis]):this.instance.scroll.y<0?this.setScroll(this.instance.scroll[this.directionAxis],0):this.setScroll(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis])}},{key:"addDirection",value:function(){this.instance.delta.y>this.instance.scroll.y?this.instance.direction!=="down"&&(this.instance.direction="down"):this.instance.delta.y<this.instance.scroll.y&&this.instance.direction!=="up"&&(this.instance.direction="up"),this.instance.delta.x>this.instance.scroll.x?this.instance.direction!=="right"&&(this.instance.direction="right"):this.instance.delta.x<this.instance.scroll.x&&this.instance.direction!=="left"&&(this.instance.direction="left")}},{key:"addSpeed",value:function(){this.instance.delta[this.directionAxis]!=this.instance.scroll[this.directionAxis]?this.instance.speed=(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis])/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"initScrollBar",value:function(){if(this.scrollbar=document.createElement("span"),this.scrollbarThumb=document.createElement("span"),this.scrollbar.classList.add("".concat(this.scrollbarClass)),this.scrollbarThumb.classList.add("".concat(this.scrollbarClass,"_thumb")),this.scrollbar.append(this.scrollbarThumb),this.scrollbarContainer?this.scrollbarContainer.append(this.scrollbar):document.body.append(this.scrollbar),this.getScrollBar=this.getScrollBar.bind(this),this.releaseScrollBar=this.releaseScrollBar.bind(this),this.moveScrollBar=this.moveScrollBar.bind(this),this.scrollbarThumb.addEventListener("mousedown",this.getScrollBar),window.addEventListener("mouseup",this.releaseScrollBar),window.addEventListener("mousemove",this.moveScrollBar),this.hasScrollbar=!1,this.direction=="horizontal"){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,this.direction==="horizontal"?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"reinitScrollBar",value:function(){if(this.hasScrollbar=!1,this.direction=="horizontal"){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,this.direction==="horizontal"?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"destroyScrollBar",value:function(){this.scrollbarThumb.removeEventListener("mousedown",this.get
7ScrollBar),window.removeEventListener("mouseup",this.releaseScrollBar),window.removeEventListener("mousemove",this.moveScrollBar),this.scrollbar.remove()}},{key:"getScrollBar",value:function(t){this.isDraggingScrollbar=!0,this.checkScroll(),this.html.classList.remove(this.scrollingClass),this.html.classList.add(this.draggingClass)}},{key:"releaseScrollBar",value:function(t){this.isDraggingScrollbar=!1,this.isScrolling&&this.html.classList.add(this.scrollingClass),this.html.classList.remove(this.draggingClass)}},{key:"moveScrollBar",value:function(t){var r=this;this.isDraggingScrollbar&&requestAnimationFrame(function(){var l=(t.clientX-r.scrollbarBCR.left)*100/r.scrollbarWidth*r.instance.limit.x/100,h=(t.clientY-r.scrollbarBCR.top)*100/r.scrollbarHeight*r.instance.limit.y/100;h>0&&h<r.instance.limit.y&&(r.instance.delta.y=h),l>0&&l<r.instance.limit.x&&(r.instance.delta.x=l)})}},{key:"addElements",value:function(){var t=this;this.els={},this.parallaxElements={};var r=this.el.querySelectorAll("[data-".concat(this.name,"]"));r.forEach(function(l,h){var a=$(l),f=Object.entries(t.sections).map(function(q){var it=H(q,2);it[0];var wt=it[1];return wt}).find(function(q){return a.includes(q.el)}),p=l.dataset[t.name+"Class"]||t.class,o=typeof l.dataset[t.name+"Id"]=="string"?l.dataset[t.name+"Id"]:"el"+h,u,d,S=l.dataset[t.name+"Repeat"],L=l.dataset[t.name+"Call"],_=l.dataset[t.name+"Position"],M=l.dataset[t.name+"Delay"],T=l.dataset[t.name+"Direction"],k=typeof l.dataset[t.name+"Sticky"]=="string",c=l.dataset[t.name+"Speed"]?parseFloat(l.dataset[t.name+"Speed"])/10:!1,v=typeof l.dataset[t.name+"Offset"]=="str
7ing"?l.dataset[t.name+"Offset"].split(","):t.offset,y=l.dataset[t.name+"Target"],m;y!==void 0?m=document.querySelector("".concat(y)):m=l;var E=m.getBoundingClientRect();f===null||f.inView?(u=E.top+t.instance.scroll.y-A(m).y,d=E.left+t.instance.scroll.x-A(m).x):(u=E.top-A(f.el).y-A(m).y,d=E.left-A(f.el).x-A(m).x);var b=u+m.offsetHeight,g=d+m.offsetWidth,I={x:(g-d)/2+d,y:(b-u)/2+u};if(k){var N=l.getBoundingClientRect(),Q=N.top,Z=N.left,tt={x:Z-d,y:Q-u};u+=window.innerHeight,d+=window.innerWidth,b=Q+m.offsetHeight-l.offsetHeight-tt[t.directionAxis],g=Z+m.offsetWidth-l.offsetWidth-tt[t.directionAxis],I={x:(g-d)/2+d,y:(b-u)/2+u}}S=="false"?S=!1:S!=null?S=!0:S=t.repeat;var C=[0,0];if(v)if(t.direction==="horizontal"){for(var w=0;w<v.length;w++)typeof v[w]=="string"?v[w].includes("%")?C[w]=parseInt(v[w].replace("%","")*t.windowWidth/100):C[w]=parseInt(v[w]):C[w]=v[w];d=d+C[0],g=g-C[1]}else{for(var w=0;w<v.length;w++)typeof v[w]=="string"?v[w].includes("%")?C[w]=parseInt(v[w].replace("%","")*t.windowHeight/100):C[w]=parseInt(v[w]):C[w]=v[w];u=u+C[0],b=b-C[1]}var et={el:l,id:o,class:p,section:f,top:u,middle:I,bottom:b,left:d,right:g,offset:v,progress:0,repeat:S,inView:!1,call:L,speed:c,delay:M,position:_,target:m,direction:T,sticky:k};t.els[o]=et,l.classList.contains(p)&&t.setInView(t.els[o],o),(c!==!1||k)&&(t.parallaxElements[o]=et)})}},{key:"addSections",value:function(){var t=this;this.sections={};var r=this.el.querySelectorAll("[data-".concat(this.name,"-section]"));r.length===0&&(r=[this.el]),r.forEach(function(l,h){var a=typeof l.dataset[t.name+"Id"]=="string"?l.dataset[t.name+"Id"]:"section"+h,f=l.getBoundingClientRect(),p={x:f.left-window.innerWidth*1.5-A(l).x,y:f.top-window.innerHeight*1.5-A(l).y},o={x:p.x+f.width+window.innerWidth*2,y:p.y+f.height+window.innerHeight*2},u=typeof l.dataset[t.name+"Persistent"]=="string";l.setAttribute("data-scroll-section-id",a);var d={el:l,offset:p,limit:o,inView:!1,persistent:u,id:a};t.sections[a]=d})}},{key:"transform",value:function(t,r,l,h){var a;if(!h)a="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(r,",").concat(l,",0,1)");else{var f=A(t),p=U(f.x,r,h),o=U(f.y,l,h);a="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(p,",").concat(o,",0,1)")}t.style.webkitTransform=a,t.style.msTransform=a,t.style.transform=a}},{key:"transformElements",value:function(t){var r=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=this.instance.scroll.x+this.windowWidth,a=this.instance.scroll.y+this.windowHeight,f={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};Object.entries(this.parallaxElements).forEach(function(p){var o=H(p,2);o[0];var u=o[1],d=!1;if(t&&(d=0),u.inView||l)switch(u.position){case"top":d=r.instance.scroll[r.directionAxis]*-u.speed;break;case"elementTop":d=(a-u.top)*-u.speed;break;case"bottom":d=(r.instance.limit[r.directionAxis]-a+r.windowHeight)*u.speed;break;case"left":d=r.instance.scroll[r.directionAxis]*-u.speed;break;case"elementLeft":d=(h-u.left)*-u.speed;break;case"right":d=(r.instance.limit[r.directionAxis]-h+r.windowHeight)*u.speed;break;default:d=(f[r.directionAxis]-u.middle[r.directionAxis])*-u.speed;break}u.sticky&&(u.inView?r.direction==="horizontal"?d=r.instance.scroll.x-u.left+window.innerWidth:d=r.instance.scroll.y-u.top+window.innerHeight:r.direction==="horizontal"?r.instance.scroll.x<u.left-window.innerWidth&&r.instance.scroll.x<u.left-window.innerWidth/2?d=0:r.instance.scroll.x>u.right&&r.instance.scroll.x>u.right+100?d=u.right-u.left+window.innerWidth:d=!1:r.instance.scroll.y<u.top-window.innerHeight&&r.instance.scroll.y<u.top-window.innerHeight/2?d=0:r.instance.scroll.y>u.bottom&&r.instance.scroll.y>u.bottom+100?d=u.bottom-u.top+window.innerHeight:d=!1),d!==!1&&(u.direction==="horizontal"||r.direction==="horizontal"&&u.direction!=="vertical"?r.transform(u.el,d,0,t?!1:u.delay):r.transform(u.el,0,d,t?!1:u.delay))})}},{key:"scrollTo",value:function(t){var r=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=parseInt(l.offset)||0,a=isNaN(parseInt(l.duration))?1e3:parseInt(l.duration),f=l.easing||[.25,0,.35,1],p=!!l.disableLerp,o=l.callback?l.callback:!1;if(f=Zt.apply(void 0,Tt(f)),typeof t=="string"){if(t==="top")t=0;else if(t==="bottom")t=this.instance.limit.y;else if(t==="left")t=0;else if(t==="right")t=this.instance.limit.x;else if(t=document.querySelector(t),!t)return}else if(typeof t=="number")t=parseInt(t);else if(!(t&&t.tagName)){console.warn("`target` parameter is not val
7id");return}if(typeof t!="number"){var u=$(t).includes(this.el);if(!u)return;var d=t.getBoundingClientRect(),S=d.top,L=d.left,_=$(t),M=_.find(function(b){return Object.entries(r.sections).map(function(g){var I=H(g,2);I[0];var N=I[1];return N}).find(function(g){return g.el==b})}),T=0;M?T=A(M)[this.directionAxis]:T=-this.instance.scroll[this.directionAxis],this.direction==="horizontal"?h=L+h-T:h=S+h-T}else h=t+h;var k=parseFloat(this.instance.delta[this.directionAxis]),c=Math.max(0,Math.min(h,this.instance.limit[this.directionAxis])),v=c-k,y=function(g){p?r.direction==="horizontal"?r.setScroll(k+v*g,r.instance.delta.y):r.setScroll(r.instance.delta.x,k+v*g):r.instance.delta[r.directionAxis]=k+v*g};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var m=Date.now(),E=function b(){var g=(Date.now()-m)/a;g>1?(y(1),r.animatingScroll=!1,a==0&&r.update(),o&&o()):(r.scrollToRaf=requestAnimationFrame(b),y(f(g)))};E()}},{key:"update",value:function(){this.setScrollLimit(),this.addSections(),this.addElements(),this.detectElements(),this.updateScroll(),this.transformElements(!0),this.reinitScrollBar(),this.checkScroll(!0)}},{key:"startScroll",value:function(){this.stop=!1}},{key:"stopScroll",value:function(){this.stop=!0}},{key:"setScroll",value:function(t,r){this.instance=K(K({},this.instance),{},{scroll:{x:t,y:r},delta:{x:t,y:r},speed:0})}},{key:"destroy",value:function(){P(D(n.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),n}(ht),ee=function(){function s(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};z(this,s),this.options=i,Object.assign(this,R,i),this.smartphone=R.smartphone,i.smartphone&&Object.assign(this.smartphone,i.smartphone),this.tablet=R.tablet,i.tablet&&Object.assign(this.tablet,i.tablet),!this.smooth&&this.direction=="horizontal"&&console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible"),!this.tablet.smooth&&this.tablet.direction=="horizontal"&&console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),!this.smartphone.smooth&&this.smartphone.direction=="horizontal"&&console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return V(s,[{key:"init",value:function(){if(this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||window.innerWidth<this.tablet.breakpoint,this.options.isTablet=this.options.isMobile&&window.innerWidth>=this.tablet.breakpoint,this.smooth&&!this.options.isMobile||this.tablet.smooth&&this.options.isTablet||this.smartphone.smooth&&this.options.isMobile&&!this.options.isTablet?this.scroll=new te(this.options):this.scroll=new dt(this.options),this.scroll.init(),window.location.hash){var n=window.location.hash.slice(1,window.location.hash.length),e=document.getElementById(n);e&&this.scroll.scrollTo(e)}}},{key:"update",value:function(){this.scroll.update()}},{key:"start",value:function(){this.scroll.startScroll()}},{key:"stop",value:function(){this.scroll.stopScroll()}},{key:"scrollTo",value:function(n,e){this.scroll.scrollTo(n,e)}},{key:"setScroll",value:function(n,e){this.scroll.setScroll(n,e)}},{key:"on",value:function(n,e){this.scroll.setEvents(n,e)}},{key:"off",value:function(n,e){this.scroll.unsetEvents(n,e)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),s}(),ie=function(){function s(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};z(this,s),this.options=i,Object.assign(this,R,i),this.smartphone=R.smartphone,i.smartphone&&Object.assign(this.smartphone,i.smartphone),this.tablet=R.tablet,i.tablet&&Object.assign(this.tablet,i.tablet),this.init()}return V(s,[{key:"init",value:function(){if(this.scroll=new dt(this.options),this.scroll.init(),window.location.hash){var n=window.location.hash.slice(1,window.location.hash.length),e=document.getElementById(n);
7e&&this.scroll.scrollTo(e)}}},{key:"update",value:function(){this.scroll.update()}},{key:"start",value:function(){this.scroll.startScroll()}},{key:"stop",value:function(){this.scroll.stopScroll()}},{key:"scrollTo",value:function(n,e){this.scroll.scrollTo(n,e)}},{key:"setScroll",value:function(n,e){this.scroll.setScroll(n,e)}},{key:"on",value:function(n,e){this.scroll.setEvents(n,e)}},{key:"off",value:function(n,e){this.scroll.unsetEvents(n,e)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),s}();export{ie as Native,ee as Smooth,ee as default};

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.