1/*! For license information please see front-page.7a34a5157c497f565bbe.js.LICENSE.txt */ 2"use strict";(self.webpackChunktyco_wp=self.webpackChunktyco_wp||[]).push([[613],{73:(t,e,i)=>{var n=i(734);const r={slider:{el:null,instance:null},isMobile:window.matchMedia("(max-width: 576px)").matches,init(){if(this.slider.el=document.querySelector("#section-products .swiper"),!this.slider.el)return;const t=this.slider.el.querySelectorAll(".swiper-slide"),e=()=>{window.matchMedia("(min-width: 576px)").matches?this.desktopCarousel(t.length):this.mobileCarousel(t.length)};e(),window.addEventListener("resize",(()=>e())),this.loadCircleAnimation()},desktopCarousel(t){(this.slider.el||null===this.slider.instance)&&(this.destroySlider(),this.slider.instance=new n.tq(this.slider.el,{initialSlide:Math.floor(t/2),spaceBetween:50,loop:!0,creativeEffect:{limitProgress:3,prev:{translate:["-100%","var(--translateY, 20%)","var(--translateZ, 0px)"],rotate:[0,0,-10]},next:{translate:["100%","var(--translateY, 20%)","var(--translateZ, 0px)"],rotate:[0,0,10]}},...this.defaultSliderSettings()}))},mobileCarousel(t){(this.slider.el||null===this.slider.instance)&&(this.destroySlider(),this.slider.instance=new n.tq(this.slider.el,{initialSlide:Math.floor(t/2),loop:!1,spaceBetween:20,creativeEffect:{limitProgress:3,prev:{translate:["-110%","var(--translateY, 20%)","0px"],rotate:[0,0,-10]},next:{translate:["110%","var(--translateY, 20%)","0px"],rotate:[0,0,10]}},...this.defaultSliderSettings()}))},defaultSliderSettings:()=>({watchSlidesProgress:!0,watchSlidesVisibility:!0,speed:500,grabCursor:!0,effect:"creative",slidesPerView:"auto",parallax:!0,centeredSlides:!0,breakpoints:{576:{slidesPerView:"auto"},1366:{spaceBetween:0,slidesPerView:"auto"}},on:{init:function(t){n.Cg.swiperAddAccessibility(t),r.swiperActiveSiblings(t)},slideChange:function(t){n.Cg.swiperAddAccessibility(t),r.swiperActiveSiblings(t)}},navigation:{nextEl:"#section-products .swiper-button-next",prevEl:"#section-products .swiper-button-prev"},a11y:{prevSlideMessage:"Prev",nextSlideMessage:"Next"}}),swiperActiveSiblings(t){const e=t.activeIndex,i=t.slides,n=i.slice(0,e),r=i.slice(e+1,i.length);n.reverse(),n.forEach(((t,e)=>{t.style.setProperty("--counter",e+1)})),r.forEach(((t,e)=>{t.style.setProperty("--counter",e+1)})),i[e].style.setProperty("--counter",0)},loadCircleAnimation(){const t=document.querySelector("#section-products .circle-bg-shadow"),e=n.p8.timeline();e.to(t,{scale:.8,duration:3}),e.to(t,{rotation:360,scale:1.7,opacity:1,duration:10,translateY:-90,repeat:-1,yoyo:!0,ease:"linear"})},destroySlider(){null!==this.slider.instance&&("destroy"in this.slider.instance&&this.slider.instance.destroy(),this.slider.instance=null)}},o=r;function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=f(t);if(e){var r=f(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?y(t):e}(this,i)}}function v(t,e,i){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}},v(t,e,i||t)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return b(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var k={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"}},x=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),Object.assign(this,k,e),this.smartphone=k.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=k.tablet,e.tablet&&Object.assign(this.tablet,e.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),"horizontal"===this.direction?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 l(t,[{key:"init",value:function(){this.initEvents()}},{key:"checkScroll",value:function(){this.dispatchScroll()}},{key:"checkResize",value:function(){var t=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame((function(){t.resize(),t.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)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||this.windowWidth<this.tablet.breakpoint,this.isTablet=this.isMobile&&this.windowWidth>=this.tablet.breakpoint;var t=this.context;this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",t!=this.context&&("desktop"==t?this.smooth:this[t].smooth)!=("desktop"==this.context?this.smooth:this[this.context].smooth)&&window.location.reload()}}},{key:"initEvents",value:function(){var t=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEac
2h((function(e){e.addEventListener("click",t.setScrollTo,!1)}))}},{key:"setScrollTo",value:function(t){t.preventDefault(),this.scrollTo(t.currentTarget.getAttribute("data-".concat(this.name,"-href"))||t.currentTarget.getAttribute("href"),{offset:t.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function(){}},{key:"detectElements",value:function(t){var e=this,i=this.instance.scroll.y,n=i+this.windowHeight,r=this.instance.scroll.x,o=r+this.windowWidth;Object.entries(this.els).forEach((function(s){var a=g(s,2),l=a[0],c=a[1];if(!c||c.inView&&!t||("horizontal"===e.direction?o>=c.left&&r<c.right&&e.setInView(c,l):n>=c.top&&i<c.bottom&&e.setInView(c,l)),c&&c.inView)if("horizontal"===e.direction){var u=c.right-c.left;c.progress=(e.instance.scroll.x-(c.left-e.windowWidth))/(u+e.windowWidth),(o<c.left||r>c.right)&&e.setOutOfView(c,l)}else{var h=c.bottom-c.top;c.progress=(e.instance.scroll.y-(c.top-e.windowHeight))/(h+e.windowHeight),(n<c.top||i>c.bottom)&&e.setOutOfView(c,l)}})),this.hasScrollTicking=!1}},{key:"setInView",value:function(t,e){this.els[e].inView=!0,t.el.classList.add(t.class),this.currentElements[e]=t,t.call&&this.hasCallEventSet&&(this.dispatchCall(t,"enter"),t.repeat||(this.els[e].call=!1))}},{key:"setOutOfView",value:function(t,e){var i=this;this.els[e].inView=!1,Object.keys(this.currentElements).forEach((function(t){t===e&&delete i.currentElements[t]})),t.call&&this.hasCallEventSet&&this.dispatchCall(t,"exit"),t.repeat&&t.el.classList.remove(t.class)}},{key:"dispatchCall",value:function(t,e){this.callWay=e,this.callValue=t.call.split(",").map((function(t){return t.trim()})),this.callObj=t,1==this.callValue.length&&(this.callValue=this.callValue[0]);var i=new Event(this.namespace+"call");this.el.dispatchEvent(i)}},{key:"dispatchScroll",value:function(){var t=new Event(this.namespace+"scroll");this.el.dispatchEvent(t)}},{key:"setEvents",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]);var i=this.listeners[t];i.push(e),1===i.length&&this.el.addEventListener(this.namespace+t,this.checkEvent,!1),"call"===t&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function(t,e){if(this.listeners[t]){var i=this.listeners[t],n=i.indexOf(e);n<0||(i.splice(n,1),0===i.index&&this.el.removeEventListener(this.namespace+t,this.checkEvent,!1))}}},{key:"checkEvent",value:function(t){var e=this,i=t.type.replace(this.namespace,""),n=this.listeners[i];n&&0!==n.length&&n.forEach((function(t){switch(i){case"scroll":return t(e.instance);case"call":return t(e.callValue,e.callWay,e.callObj);default:return t()}}))}},{key:"startScroll",value:function(){}},{key:"stopScroll",value:function(){}},{key:"setScroll",value:function(t,e){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function(){var t=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEach((function(e){t.el.removeEventListener(t.namespace+e,t.checkEvent,!1)})),this.listeners={},this.scrollToEls.forEach((function(e){e.removeEventListener("click",t.setScrollTo,!1)})),this.html.classList.remove(this.initClass)}}]),t}(),S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function E(t,e){return t(e={exports:{}},e.exports),e.exports}var T=E((function(t,e){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var i,n=t.HTMLElement||t.Element,r=468,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,a=(i=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(i)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?p.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;p.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var i=function(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}(this),n=i.getBoundingClientRect(),r=this.getBoundingClientRect();i!==e.body?(p.call(this,i,i.scrollLeft+r.left-n.left,i.scrollTop+r.top-n.top),"fixed"!==t.getComputedStyle(i).position&&t.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;
2if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(t,e){return"Y"===e?t.clientHeight+a<t.scrollHeight:"X"===e?t.clientWidth+a<t.scrollWidth:void 0}function h(e,i){var n=t.getComputedStyle(e,null)["overflow"+i];return"auto"===n||"scroll"===n}function d(t){var e=u(t,"Y")&&h(t,"Y"),i=u(t,"X")&&h(t,"X");return e||i}function f(e){var i,n,o,a,l=(s()-e.startTime)/r;a=l=l>1?1:l,i=.5*(1-Math.cos(Math.PI*a)),n=e.startX+(e.x-e.startX)*i,o=e.startY+(e.y-e.startY)*i,e.method.call(e.scrollable,n,o),n===e.x&&o===e.y||t.requestAnimationFrame(f.bind(t,e))}function p(i,n,r){var a,c,u,h,d=s();i===e.body?(a=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,h=o.scroll):(a=i,c=i.scrollLeft,u=i.scrollTop,h=l),f({scrollable:a,method:h,startTime:d,startX:c,startY:u,x:n,y:r})}}}})),P=(T.polyfill,function(t){d(i,t);var e=m(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,i),(t=e.call(this,n)).resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",t.checkScroll,!1),void 0===window.smoothscrollPolyfill&&(window.smoothscrollPolyfill=T,window.smoothscrollPolyfill.polyfill()),t}return l(i,[{key:"init",value:function(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),v(f(i.prototype),"init",this).call(this)}},{key:"checkScroll",value:function(){var t=this;v(f(i.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.get
2Speed&&(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?"down"!==this.instance.direction&&(this.instance.direction="down"):window.pageYOffset<this.instance.scroll.y&&"up"!==this.instance.direction&&(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={},this.el.querySelectorAll("[data-"+this.name+"]").forEach((function(e,i){e.getBoundingClientRect();var n,r,o,s=e.dataset[t.name+"Class"]||t.class,a="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:i,l="string"==typeof e.dataset[t.name+"Offset"]?e.dataset[t.name+"Offset"].split(","):t.offset,c=e.dataset[t.name+"Repeat"],u=e.dataset[t.name+"Call"],h=e.dataset[t.name+"Target"],d=(o=void 0!==h?document.querySelector("".concat(h)):e).getBoundingClientRect();n=d.top+t.instance.scroll.y,r=d.left+t.instance.scroll.x;var f=n+o.offsetHeight,p=r+o.offsetWidth;c="false"!=c&&(null!=c||t.repeat);var y=t.getRelativeOffset(l),m={el:e,targetEl:o,id:a,class:s,top:n+=y[0],bottom:f-=y[1],left:r,right:p,offset:l,progress:0,repeat:c,inView:!1,call:u};t.els[a]=m,e.classList.contains(s)&&t.setInView(t.els[a],a)}))}},{key:"updateElements",value:function(){var t=this;Object.entries(this.els).forEach((function(e){var i=g(e,2),n=i[0],r=i[1],o=r.targetEl.getBoundingClientRect().top+t.instance.scroll.y,s=o+r.targetEl.offsetHeight,a=t.getRelativeOffset(r.offset);t.els[n].top=o+a[0],t.els[n].bottom=s-a[1]})),this.hasScrollTicking=!1}},{key:"getRelativeOffset",value:function(t){var e=[0,0];if(t)for(var i=0;i<t.length;i++)"string"==typeof t[i]?t[i].includes("%")?e[i]=parseInt(t[i].replace("%","")*this.windowHeight/100):e[i]=parseInt(t[i]):e[i]=t[i];return e}},{key:"scrollTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=parseInt(e.offset)||0,n=!!e.callback&&e.callback;if("string"==typeof t){if("top"===t)t=this.html;else if("bottom"===t)t=this.html.offsetHeight-window.innerHeight;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");i="number"!=typeof t?t.getBoundingClientRect().top+i+this.instance.scroll.y:t+i;var r=function(){return parseInt(window.pageYOffset)===parseInt(i)};if(n){if(r())return void n();window.addEventListener("scroll",(function t(){r()&&(window.removeEventListener("scroll",t),n())}))}window.scrollTo({top:i,behavior:0===e.duration?"auto":"smooth"})}},{key:"update",value:function(){this.addElements(),this.detectElements()}},{key:"destroy",value:function(){v(f(i.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),i}(x)),O=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,C=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var s in i=Object(arguments[o]))_.call(i,s)&&(r[s]=i[s]);if(O){n=O(i);for(var a=0;a<n.length;a++)A.call(i,n[a])&&(r[n[a]]=i[n[a]])}}return r};function L(){}
2L.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function r(){n.off(t,r),e.apply(i,arguments)}return r._=e,this.on(t,r,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,r=i.length;n<r;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],r=[];if(n&&e)for(var o=0,s=n.length;o<s;o++)n[o].fn!==e&&n[o].fn._!==e&&r.push(n[o]);return r.length?i[t]=r:delete i[t],this}};var j=L,M=E((function(t,e){(function(){(null!==e?e:this).Lethargy=function(){function t(t,e,i,n){this.stability=null!=t?Math.abs(t):8,this.sensitivity=null!=e?1+Math.abs(e):100,this.tolerance=null!=i?1+Math.abs(i):1.1,this.delay=null!=n?n:150,this.lastUpDeltas=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this),this.lastDownDeltas=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this),this.deltasTimestamp=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this)}return t.prototype.check=function(t){var e;return null!=(t=t.originalEvent||t).wheelDelta?e=t.wheelDelta:null!=t.deltaY?e=-40*t.deltaY:null==t.detail&&0!==t.detail||(e=-40*t.detail),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),e>0?(this.lastUpDeltas.push(e),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(e),this.lastDownDeltas.shift(),this.isInertia(-1))},t.prototype.isInertia=function(t){var e,i,n,r,o,s,a;return null===(e=-1===t?this.lastDownDeltas:this.lastUpDeltas)[0]?t:!(this.deltasTimestamp[2*this.stability-2]+this.delay>Date.now()&&e[0]===e[2*this.stability-1])&&(n=e.slice(0,this.stability),i=e.slice(this.stability,2*this.stability),a=n.reduce((function(t,e){return t+e})),o=i.reduce((function(t,e){return t+e})),s=a/n.length,r=o/i.length,Math.abs(s)<Math.abs(r*this.tolerance)&&this.sensitivity<Math.abs(r)&&t)},t.prototype.showLastUpDeltas=function(){return this.lastUpDeltas},t.prototype.showLastDownDeltas=function(){return this.lastDownDeltas},t}()}).call(S)})),q="onwheel"in document,D="onmousewheel"in document,R="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,I=navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>1,B=!!window.navigator.msPointerEnabled,V="onkeydown"in document,z=navigator.userAgent.indexOf("Firefox")>-1,W=Object.prototype.toString,H=Object.prototype.hasOwnProperty;function Y(t,e){return function(){return t.apply(e,arguments)}}var F=M.Lethargy,N="virtualscroll",X=U;function U(t){!function(t){if(!t)return console.warn("bindAll requires at least one argument.");var e=Array.prototype.slice.call(arguments,1);if(0===e.length)for(var i in t)H.call(t,i)&&"function"==typeof t[i]&&"[object Function]"==W.call(t[i])&&e.push(i);for(var n=0;n<e.length;n++){var r=e[n];t[r]=Y(t[r],t)}}(this,"_onWheel","_onMouseWheel","_onTouchStart","_onTouchMove","_onKeyDown"),this.el=window,t&&t.el&&(this.el=t.el,delete t.el),this.options=C({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",limitInertia:!1,useKeyboard:!0,useTouch:!0},t),this.options.limitInertia&&(this._lethargy=new F),this._emitter=new j,this._event={y:0,x:0,deltaX:0,deltaY:0},this.touchStartX=null,this.touchStartY=null,this.bodyTouchAction=null,void 0!==this.options.passive&&(this.listenerOptions={passive:this.options.passive})}function K(t,e,i){return(1-i)*t+i*e}function Q(t){var e={};if(window.getComputedStyle){var i=getComputedStyle(t),n=i.transform||i.webkitTransform||i.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?(e.x=r?parseFloat(r[1].split(", ")[12]):0,e.y=r?parseFloat(r[1].split(", ")[13]):0):(r=n.match(/^matrix\((.+)\)$/),e.x=r?parseFloat(r[1].split(", ")[4]):0,e.y=r?parseFloat(r[1].split(", ")[5]):0),e}}function G(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}U.prototype._notify=function(t){var e=this._event;e.x+=e.deltaX,e.y+=e.deltaY,this._emitter.emit(N,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:t})},U.prototype._onWheel=function(t){var e=this.options;
2if(!this._lethargy||!1!==this._lethargy.check(t)){var i=this._event;i.deltaX=t.wheelDeltaX||-1*t.deltaX,i.deltaY=t.wheelDeltaY||-1*t.deltaY,z&&1==t.deltaMode&&(i.deltaX*=e.firefoxMultiplier,i.deltaY*=e.firefoxMultiplier),i.deltaX*=e.mouseMultiplier,i.deltaY*=e.mouseMultiplier,this._notify(t)}},U.prototype._onMouseWheel=function(t){if(!this.options.limitInertia||!1!==this._lethargy.check(t)){var e=this._event;e.deltaX=t.wheelDeltaX?t.wheelDeltaX:0,e.deltaY=t.wheelDeltaY?t.wheelDeltaY:t.wheelDelta,this._notify(t)}},U.prototype._onTouchStart=function(t){var e=t.targetTouches?t.targetTouches[0]:t;this.touchStartX=e.pageX,this.touchStartY=e.pageY},U.prototype._onTouchMove=function(t){var e=this.options;e.preventTouch&&!t.target.classList.contains(e.unpreventTouchClass)&&t.preventDefault();var i=this._event,n=t.targetTouches?t.targetTouches[0]:t;i.deltaX=(n.pageX-this.touchStartX)*e.touchMultiplier,i.deltaY=(n.pageY-this.touchStartY)*e.touchMultiplier,this.touchStartX=n.pageX,this.touchStartY=n.pageY,this._notify(t)},U.prototype._onKeyDown=function(t){var e=this._event;e.deltaX=e.deltaY=0;var i=window.innerHeight-40;switch(t.keyCode){case 37:case 38:e.deltaY=this.options.keyStep;break;case 39:case 40:e.deltaY=-this.options.keyStep;break;case t.shiftKey:e.deltaY=i;break;case 32:e.deltaY=-i;break;default:return}this._notify(t)},U.prototype._bind=function(){q&&this.el.addEventListener("wheel",this._onWheel,this.listenerOptions),D&&this.el.addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),R&&this.options.useTouch&&(this.el.addEventListener("touchstart",this._onTouchStart,this.listenerOptions),this.el.addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),B&&I&&(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)),V&&this.options.useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},U.prototype._unbind=function(){q&&this.el.removeEventListener("wheel",this._onWheel),D&&this.el.removeEventListener("mousewheel",this._onMouseWheel),R&&(this.el.removeEventListener("touchstart",this._onTouchStart),this.el.removeEventListener("touchmove",this._onTouchMove)),B&&I&&(document.body.style.msTouchAction=this.bodyTouchAction,this.el.removeEventListener("MSPointerDown",this._onTouchStart,!0),this.el.removeEventListener("MSPointerMove",this._onTouchMove,!0)),V&&this.options.useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},U.prototype.on=function(t,e){this._emitter.on(N,t,e);var i=this._emitter.e;i&&i[N]&&1===i[N].length&&this._bind()},U.prototype.off=function(t,e){this._emitter.off(N,t,e);var i=this._emitter.e;(!i[N]||i[N].length<=0)&&this._unbind()},U.prototype.reset=function(){var t=this._event;t.x=0,t.y=0},U.prototype.destroy=function(){this._emitter.off(),this._unbind()};var Z=.1,J="function"==typeof Float32Array;function tt(t,e){return 1-3*e+3*t}function et(t,e){return 3*e-6*t}function it(t){return 3*t}function nt(t,e,i){return((tt(e,i)*t+et(e,i))*t+it(e))*t}function rt(t,e,i){return 3*tt(e,i)*t*t+2*et(e,i)*t+it(e)}function ot(t){return t}var st=function(t,e,i,n){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===n)return ot;for(var r=J?new Float32Array(11):new Array(11),o=0;o<11;++o)r[o]=nt(o*Z,t,i);return function(o){return 0===o?0:1===o?1:nt(function(e){for(var n=0,o=1;10!==o&&r[o]<=e;++o)n+=Z;--o;var s=n+(e-r[o])/(r[o+1]-r[o])*Z,a=rt(s,t,i);return a>=.001?function(t,e,i,n){for(var r=0;r<4;++r){var o=rt(e,i,n);if(0===o)return e;e-=(nt(e,i,n)-t)/o}return e}(e,s,t,i):0===a?s:function(t,e,i,n,r){var o,s,a=0;do{(o=nt(s=e+(i-e)/2,n,r)-t)>0?i=s:e=s}while(Math.abs(o)>1e-7&&++a<10);return s}(e,n,n+Z,t,i)}(o),e,n)}},at=function(t){d(i,t);var e=m(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,i),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),(t=e.call(this,n)).inertia&&(t.lerp=.1*t.inertia),t.isScrolling=!1,t.isDraggingScrollbar=!1,t.isTicking=!1,t.hasScrollTicking=!1,t.parallaxElements={},t.stop=!1,t.scrollbarContainer=n.scrollbarContainer,t.checkKey=t.checkKey.bind(y(t)),window.addEventListener("keydown",t.checkKey,!1),t}return l(i,[{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=h({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new X({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(e){t.stop||t.isDraggingScrollbar||requestAnimationFrame((function(){t.updateDelta(e),t.isScrolling||t.startScrolling()}))})),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),v(f(i.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,"horizontal"===this.direction){for(var t=0,e=this.el.children,i=0;i<e.length;i++)t+=e[i].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 e=this;if(this.stop)9==t.keyCode&&requestAnimationFrame((function(){e.html.scrollTop=0,document.body.scrollTop=0,e.html.scrollLeft=0,document.body.scrollLeft=0}));else{switch(t.keyCode){case 9:requestAnimationFrame((function(){e.html.scrollTop=0,document.body.scrollTop=0,e.html.scrollLeft=0,document.body.scrollLeft=0,e.scrollTo(document.activeElement,{offset:-window.innerHeight/2})}));break;case 38:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]-=240);break;case 40:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]+=240);break;case 33:this.instance.delta[this.directionAxis]-=window.innerHeight;break;case 34:this.instance.delta[this.directionAxis]+=window.innerHeight;break;case 36:this.instance.delta[this.directionAxis]-=this.instance.limit[this.directionAxis];break;case 35:this.instance.delta[this.directionAxis]+=this.instance.limit[this.directionAxis];break;case 32: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,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.isScrolling||this.isDraggingScrollbar){this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame((function(){return t.checkScroll()})),this.hasScrollTicking=!0),this.updateScroll();var n=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),r=Date.now()-this.startScrollTs;if(!this.animatingScroll&&r>100&&(n<.5&&0!=this.instance.delta[this.directionAxis]||n<.5&&0==this.instance.delta[this.directionAxis])&&this.stopScrolling(),Object.entries(this.sections).forEac
2h((function(i){var n=g(i,2),r=(n[0],n[1]);r.persistent||t.instance.scroll[t.directionAxis]>r.offset[t.directionAxis]&&t.instance.scroll[t.directionAxis]<r.limit[t.directionAxis]?("horizontal"===t.direction?t.transform(r.el,-t.instance.scroll[t.directionAxis],0):t.transform(r.el,0,-t.instance.scroll[t.directionAxis]),r.inView||(r.inView=!0,r.el.style.opacity=1,r.el.style.pointerEvents="all",r.el.setAttribute("data-".concat(t.name,"-section-inview"),""))):((r.inView||e)&&(r.inView=!1,r.el.style.opacity=0,r.el.style.pointerEvents="none",r.el.removeAttribute("data-".concat(t.name,"-section-inview"))),t.transform(r.el,0,0))})),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.detectElements(),this.transformElements(),this.hasScrollbar){var o=this.instance.scroll[this.directionAxis]/this.instance.limit[this.directionAxis]*this.scrollBarLimit[this.directionAxis];"horizontal"===this.direction?this.transform(this.scrollbarThumb,o,0):this.transform(this.scrollbarThumb,0,o)}v(f(i.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 e,i=this[this.context]&&this[this.context].gestureDirection?this[this.context].gestureDirection:this.gestureDirection;e="both"===i?t.deltaX+t.deltaY:"vertical"===i?t.deltaY:"horizontal"===i?t.deltaX:t.deltaY,this.instance.delta[this.directionAxis]-=e*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]=K(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?"down"!==this.instance.direction&&(this.instance.direction="down"):this.instance.delta.y<this.instance.scroll.y&&"up"!==this.instance.direction&&(this.instance.direction="up"),this.instance.delta.x>this.instance.scroll.x?"right"!==this.instance.direction&&(this.instance.direction="right"):this.instance.delta.x<this.instance.scroll.x&&"left"!==this.instance.direction&&(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,"horizontal"==this.direction){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,"horizontal"===this.direction?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,"horizontal"==this.direction){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,"horizontal"===this.direction?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
2ScrollBar),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 e=this;this.isDraggingScrollbar&&requestAnimationFrame((function(){var i=100*(t.clientX-e.scrollbarBCR.left)/e.scrollbarWidth*e.instance.limit.x/100,n=100*(t.clientY-e.scrollbarBCR.top)/e.scrollbarHeight*e.instance.limit.y/100;n>0&&n<e.instance.limit.y&&(e.instance.delta.y=n),i>0&&i<e.instance.limit.x&&(e.instance.delta.x=i)}))}},{key:"addElements",value:function(){var t=this;this.els={},this.parallaxElements={},this.el.querySelectorAll("[data-".concat(this.name,"]")).forEach((function(e,i){var n,r,o,s=G(e),a=Object.entries(t.sections).map((function(t){var e=g(t,2);return e[0],e[1]})).find((function(t){return s.includes(t.el)})),l=e.dataset[t.name+"Class"]||t.class,c="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:"el"+i,u=e.dataset[t.name+"Repeat"],h=e.dataset[t.name+"Call"],d=e.dataset[t.name+"Position"],f=e.dataset[t.name+"Delay"],p=e.dataset[t.name+"Direction"],y="string"==typeof e.dataset[t.name+"Sticky"],m=!!e.dataset[t.name+"Speed"]&&parseFloat(e.dataset[t.name+"Speed"])/10,v="string"==typeof e.dataset[t.name+"Offset"]?e.dataset[t.name+"Offset"].split(","):t.offset,w=e.dataset[t.name+"Target"],b=(o=void 0!==w?document.querySelector("".concat(w)):e).getBoundingClientRect();null===a||a.inView?(n=b.top+t.instance.scroll.y-Q(o).y,r=b.left+t.instance.scroll.x-Q(o).x):(n=b.top-Q(a.el).y-Q(o).y,r=b.left-Q(a.el).x-Q(o).x);var k=n+o.offsetHeight,x=r+o.offsetWidth,S={x:(x-r)/2+r,y:(k-n)/2+n};if(y){var E=e.getBoundingClientRect(),T=E.top,P=E.left,O={x:P-r,y:T-n};n+=window.innerHeight,r+=window.innerWidth,k=T+o.offsetHeight-e.offsetHeight-O[t.directionAxis],S={x:((x=P+o.offsetWidth-e.offsetWidth-O[t.directionAxis])-r)/2+r,y:(k-n)/2+n}}u="false"!=u&&(null!=u||t.repeat);var _=[0,0];if(v)if("horizontal"===t.direction){for(var A=0;A<v.length;A++)"string"==typeof v[A]?v[A].includes("%")?_[A]=parseInt(v[A].replace("%","")*t.windowWidth/100):_[A]=parseInt(v[A]):_[A]=v[A];r+=_[0],x-=_[1]}else{for(A=0;A<v.length;A++)"string"==typeof v[A]?v[A].includes("%")?_[A]=parseInt(v[A].replace("%","")*t.windowHeight/100):_[A]=parseInt(v[A]):_[A]=v[A];n+=_[0],k-=_[1]}var C={el:e,id:c,class:l,section:a,top:n,middle:S,bottom:k,left:r,right:x,offset:v,progress:0,repeat:u,inView:!1,call:h,speed:m,delay:f,position:d,target:o,direction:p,sticky:y};t.els[c]=C,e.classList.contains(l)&&t.setInView(t.els[c],c),(!1!==m||y)&&(t.parallaxElements[c]=C)}))}},{key:"addSections",value:function(){var t=this;this.sections={};var e=this.el.querySelectorAll("[data-".concat(this.name,"-section]"));0===e.length&&(e=[this.el]),e.forEach((function(e,i){var n="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:"section"+i,r=e.getBoundingClientRect(),o={x:r.left-1.5*window.innerWidth-Q(e).x,y:r.top-1.5*window.innerHeight-Q(e).y},s={x:o.x+r.width+2*window.innerWidth,y:o.y+r.height+2*window.innerHeight},a="string"==typeof e.dataset[t.name+"Persistent"];e.setAttribute("data-scroll-section-id",n);var l={el:e,offset:o,limit:s,inView:!1,persistent:a,id:n};t.sections[n]=l}))}},{key:"transform",value:function(t,e,i,n){var r;if(n){var o=Q(t),s=K(o.x,e,n),a=K(o.y,i,n);r="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(s,",").concat(a,",0,1)")}else r="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(e,",").concat(i,",0,1)");t.style.webkitTransform=r,t.style.msTransform=r,t.style.transform=r}},{key:"transformElements",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.scroll.x+this.windowWidth,r=this.instance.scroll.y+this.windowHeight,o={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};
2Object.entries(this.parallaxElements).forEach((function(s){var a=g(s,2),l=(a[0],a[1]),c=!1;if(t&&(c=0),l.inView||i)switch(l.position){case"top":case"left":c=e.instance.scroll[e.directionAxis]*-l.speed;break;case"elementTop":c=(r-l.top)*-l.speed;break;case"bottom":c=(e.instance.limit[e.directionAxis]-r+e.windowHeight)*l.speed;break;case"elementLeft":c=(n-l.left)*-l.speed;break;case"right":c=(e.instance.limit[e.directionAxis]-n+e.windowHeight)*l.speed;break;default:c=(o[e.directionAxis]-l.middle[e.directionAxis])*-l.speed}l.sticky&&(c=l.inView?"horizontal"===e.direction?e.instance.scroll.x-l.left+window.innerWidth:e.instance.scroll.y-l.top+window.innerHeight:"horizontal"===e.direction?e.instance.scroll.x<l.left-window.innerWidth&&e.instance.scroll.x<l.left-window.innerWidth/2?0:e.instance.scroll.x>l.right&&e.instance.scroll.x>l.right+100&&l.right-l.left+window.innerWidth:e.instance.scroll.y<l.top-window.innerHeight&&e.instance.scroll.y<l.top-window.innerHeight/2?0:e.instance.scroll.y>l.bottom&&e.instance.scroll.y>l.bottom+100&&l.bottom-l.top+window.innerHeight),!1!==c&&("horizontal"===l.direction||"horizontal"===e.direction&&"vertical"!==l.direction?e.transform(l.el,c,0,!t&&l.delay):e.transform(l.el,0,c,!t&&l.delay))}))}},{key:"scrollTo",value:function(t){var e,i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=parseInt(n.offset)||0,o=isNaN(parseInt(n.duration))?1e3:parseInt(n.duration),s=n.easing||[.25,0,.35,1],a=!!n.disableLerp,l=!!n.callback&&n.callback;if(s=st.apply(void 0,function(t){if(Array.isArray(t))return b(t)}(e=s)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"string"==typeof t){if("top"===t)t=0;else if("bottom"===t)t=this.instance.limit.y;else if("left"===t)t=0;else if("right"===t)t=this.instance.limit.x;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");if("number"!=typeof t){if(!G(t).includes(this.el))return;var c,u=t.getBoundingClientRect(),h=u.top,d=u.left,f=G(t).find((function(t){return Object.entries(i.sections).map((function(t){var e=g(t,2);return e[0],e[1]})).find((function(e){return e.el==t}))}));c=f?Q(f)[this.directionAxis]:-this.instance.scroll[this.directionAxis],r="horizontal"===this.direction?d+r-c:h+r-c}else r=t+r;var p=parseFloat(this.instance.delta[this.directionAxis]),y=Math.max(0,Math.min(r,this.instance.limit[this.directionAxis]))-p,m=function(t){a?"horizontal"===i.direction?i.setScroll(p+y*t,i.instance.delta.y):i.setScroll(i.instance.delta.x,p+y*t):i.instance.delta[i.directionAxis]=p+y*t};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var v=Date.now();!function t(){var e=(Date.now()-v)/o;e>1?(m(1),i.animatingScroll=!1,0==o&&i.update(),l&&l()):(i.scrollToRaf=requestAnimationFrame(t),m(s(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,e){this.instance=h(h({},this.instance),{},{scroll:{x:t,y:e},delta:{x:t,y:e},speed:0})}},{key:"destroy",value:function(){v(f(i.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),i}(x);const lt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),this.options=e,Object.assign(this,k,e),this.smartphone=k.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=k.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.smooth||"horizontal"!=this.direction||console.warn("ð¨ `smooth:false` & `horizontal` direction are not yet compatible"),this.tablet.smooth||"horizontal"!=this.tablet.direction||
2console.warn("ð¨ `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),this.smartphone.smooth||"horizontal"!=this.smartphone.direction||console.warn("ð¨ `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return l(t,[{key:"init",value:function(){if(this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&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 at(this.options):this.scroll=new P(this.options),this.scroll.init(),window.location.hash){var t=window.location.hash.slice(1,window.location.hash.length),e=document.getElementById(t);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(t,e){this.scroll.scrollTo(t,e)}},{key:"setScroll",value:function(t,e){this.scroll.setScroll(t,e)}},{key:"on",value:function(t,e){this.scroll.setEvents(t,e)}},{key:"off",value:function(t,e){this.scroll.unsetEvents(t,e)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),t}(),ct={slider:{el:null,instance:null},sliderDesktop:{el:null,instance:null},init(){let t=document.querySelector(".our-cases");t&&(n.ic.matchMedia({"(max-width: 991.99px)":function(){ct.loadSlider()},"(min-width: 992px)":function(){null!==ct.slider.instance&&ct.destroySlider(),n.p8.timeline({scrollTrigger:{trigger:t,start:"top top",end:"+=360%",scroller:frontPage.containerEl,pin:!0}});let e=n.p8.timeline({scrollTrigger:{trigger:t,start:"top 40%",end:"+=380%",scroller:frontPage.containerEl,force3D:!0,scrub:.7}});ut.forEach(((t,e)=>{n.p8.set(`.our-cases__item.--item-${e}`,t)})),e.to(".our-cases__title",{fontSize:"7vw",y:"50vh",opacity:"0.3",duration:1}),e.to(".circle-blue-shadow",{width:"50vw",height:"50vh",y:320,filter:"blur(8vw)"},0),e.to(".our-cases__items",{keyframes:[{xPercent:0,yPercent:-100,z:-1500,duration:.5},{xPercent:0,yPercent:100,z:8500,duration:4}]},"-=.3").to(".our-cases__item.--item-0",{keyframes:[{z:-500,rotateX:-1,rotateY:-5,duration:.6,ease:"Power2.Out"},{z:-500,rotateX:1,rotateY:5,duration:.6,ease:"Power2.inOut"},{z:-500,rotateX:3,rotateY:7,duration:.5,ease:"Power2.in"}]},0).to(".our-cases__item.--item-1",{keyframes:[{z:-1500,rotateX:1,rotateY:5,duration:.7,ease:"Power2.Out"},{z:-1500,rotateX:3,rotateY:-10,duration:.6,ease:"Power2.inOut"},{z:-1500,rotateX:6,rotateY:-7,duration:.5,ease:"Power2.in"}]},0).to(".our-cases__item.--item-2",{z:-2e3,duration:4.5},0).to(".our-cases__item.--item-3",{z:-3500,rotateX:5,rotateY:10,duration:4.5},0).to(".our-cases__item.--item-4",{z:-4e3,rotateX:7,rotateY:5,duration:4.5},0).to(".our-cases__item.--item-5",{z:-5e3,rotateX:7,rotateY:5,duration:2.5,opacity:"1"},0).to(".our-cases__item.--item-6",{z:-5500,x:300,duration:2.5,opacity:"1"},0).to(".our-cases__item.--item-7",{z:-6e3,yPercent:-60,duration:2.5,xPercent:220,opacity:"1"},0).to(".our-cases__item.--item-8",{z:-7500,duration:2.5,xPercent:-100,yPercent:-40,opacity:"1"},0).to(".our-cases__item.--item-9",{z:-8e3,yPercent:-85,xPercent:105,duration:2.5,opacity:"1"},0).to(".our-cases__title",{y:"80vh",fontSize:"5vw",duration:1.5},"-=1.5").to(".our-cases__slider",{x:"0%",duration:2.5},"-=0.3")}}),this.desktopSlider())},loadSlider(){this.slider.el=document.querySelector("#our-cases .our-cases__items-wrap"),this.slider.el&&(document.querySelector(".our-cases__items-wrap").classList.add("swiper"),document.querySelector(".our-cases__items").classList.add("swiper-wrapper"),document.querySelectorAll(".our-cases__item").forEach((t=>{t.classList.add("swiper-slide"),t.style.opacity=1})),this.slider.instance=new n.tq(this.slider.el,{loop:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,speed:500,grabCursor:!0,effect:"creative",slidesPerView:1.6,parallax:!0,centeredSlides:!0,creativeEffect:{limitProgress:2,prev:{translate:["80%","var(--translateY, 0%)","var(--translateZ, 0px)"],scale:.8,opacity:.5},next:{translate:["-80%","var(--translateY, 0%)","var(--translateZ, 0px)"],scale:.8,opacity:.5}},navigation:{nextEl:"#our-cases .swiper-button-next",prevEl:"#our-cases .swiper-button-prev"},breakpoints:{576:{slidesPerView:2.6}}}))},destroySlider(){null!==this.slider.instance&&("destroy"in this.slider.instance&&(this.slider.instance.destroy(),document.querySelector(".our-cases__items-wrap").classList.remove("swiper"),document.querySelector(".our-cases__items").classList.remove("swiper-wrapper"),document.querySelectorAll(".our-cases__item").forEach((t=>t.classList.remove("swiper-slide")))),this.slider.instance=null)},desktopSlider(){this.sliderDesktop.el=document.querySelector("#our-cases .our-cases__slider .swiper"),this.sliderDesktop.el&&(this.sliderDesktop.instance=new n.tq(this.sliderDesktop.el,{loop:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,speed:500,grabCursor:!0,slidesPerView:1.6,spaceBetween:"3%",navigation:{nextEl:"#our-cases .swiper-button-next",prevEl:"#our-cases .swiper-button-prev"},breakpoints:{576:{slidesPerView:"auto"}}}))}},ut=[{transform:"translate3d(-5%,-10%,0) rotateX(0) rotateY(10deg)",left:"-76%",top:"-54%"},{transform:"translate3d(98%,-11%,-900px)"},{transform:"translate3d(-3%,-68%,-1750px)",left:"-89%",top:"0"},{transform:"translate3d(92%,-100%,-2500px)",right:"0",top:"0"},{transform:"translate3d(-95%,0%,-3000px)"},{transform:"translate3d(117%,-10%,-4000px)",opacity:"0"},{transform:"translate3d(-64%,-45%,-4611px)",opacity:"0"},{transform:"translate3d(0,-70%,-5500px)",opacity:"0"},{transform:"translate3d(-64%,-45%,-4611px)",opacity:"0"},{transform:"translate3d(0,-70%,-5500px)",opacity:"0"}],ht=ct,dt={slider:{el:null},init(){if(this.slider.el=document.querySelector("#brands .swiper"),console.log(this.slider.el),!this.slider.el)return;let t=new n.tq(this.slider.el,{loop:!0,speed:1500,freeMode:!0,spaceBetween:60,slidesPerView:"auto",centeredSlides:!0,autoplay:{delay:1,disableOnInteraction:!1,pauseOnMouseEnter:!0}});t.on("init",(function(){n.Cg.lazy.update()})),t.on("slideChange",(function(){n.Cg.lazy.update()}))}},ft={slider:{el:null},init(){if(this.slider.el=document.querySelector("#awards .swiper"),!this.slider.el)return;let t=new n.tq(this.slider.el,{loop:!0,centeredSlides:!0,slidesPerView:1.3,spaceBetween:20,speed:3e3,freeMode:!0,autoplay:{delay:1,disableOnInteraction:!1,pauseOnMouseEnter:!0},breakpoints:{640:{slidesPerView:1.8,spaceBetween:30},768:{slidesPerView:2.4,spaceBetween:50},1200:{slidesPerView:3,spaceBetween:62}},navigation:{nextEl:"#awards .swiper-button-next",prevEl:"#awards .swiper-button-prev"}});t.on("init",(function(){n.Cg.lazy.update()})),t.on("slideChange",(function(){n.Cg.lazy.update()}));const e=document.querySelector("#awards .circle-bg"),i=n.p8.timeline();i.to(e,{scale:.8,duration:3}
2),i.to(e,{rotation:270,scale:1,opacity:1,duration:9,translateY:-50,repeat:-1,yoyo:!0,ease:"linear"})}},pt={slider:{el:null,instance:null},init(){this.slider.el=document.querySelector("#testimonials .swiper"),this.slider.el&&(this.slider.instance=new n.tq(this.slider.el,{parallax:!0,effect:"fade",autoplay:{delay:4e3,disableOnInteraction:!1},navigation:{nextEl:"#testimonials .swiper-button-next",prevEl:"#testimonials .swiper-button-prev"}}),this.slider.instance.on("init",(function(){n.Cg.lazy.update()})),this.slider.instance.on("slideChange",(function(){n.Cg.lazy.update()})),new IntersectionObserver((t=>{const e=t[0];e.target,this.slider.instance&&(e.isIntersecting?this.slider.instance.autoplay.start():this.slider.instance.autoplay.running&&this.slider.instance.autoplay.stop())})).observe(this.slider.el))}},yt={init(){document.querySelectorAll(".counter-value").forEach(((t,e)=>{n.ic.create({scroller:frontPage.containerEl,trigger:t,start:"top bottom",end:"center center",onEnter:()=>{n.p8.from(t,{textContent:0,duration:4,ease:"power1.in",snap:{textContent:1},onUpdate:function(){this.targets()[0].innerHTML=Math.ceil(this.targets()[0].textContent).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}})},once:!0,toggleActions:"play none none none",stagger:.5,delay:.5*e})}));const t=document.querySelector("#counter-numbers .circle-bg"),e=n.p8.timeline();e.to(t,{scale:.8,duration:4}),e.to(t,{rotation:360,scale:1.4,opacity:1,duration:20,translateY:-30,repeat:-1,yoyo:!0,ease:"linear"});const i=document.querySelector("#counter-numbers .circle-bg-shadow"),r=n.p8.timeline();r.to(i,{scale:.8,duration:3}),r.to(i,{rotation:360,scale:1.1,opacity:1,duration:20,translateY:-60,repeat:-1,yoyo:!0,ease:"linear"})}},mt={init(){const t=document.querySelector("#wcus");if(!t)return;const e=t.querySelector(".wcus-title"),i=t.querySelector(".wcus-desc"),r=t.querySelector(".btn"),o=t.querySelector(".wcus-image"),s=n.p8.timeline();s.from(o,{opacity:0,duration:.3}),s.from(e,{opacity:0,y:20,duration:.3}),s.from(i,{opacity:0,y:20,duration:.3}),s.from(r,{opacity:0,y:20,duration:.3}),n.ic.create({scroller:frontPage.containerEl,trigger:t,start:"top center",end:"center center",animation:s,toggleActions:"play none none none"});const a=t.querySelector(".circle-bg"),l=n.p8.timeline();l.to(a,{scale:.8,duration:3}),l.to(a,{rotation:360,scale:1.1,opacity:1,duration:6,translateY:-60,repeat:-1,yoyo:!0,ease:"linear"})}},vt={slider:{el:null,instance:null},init(){const t=document.querySelector(".wtd-items");if(!t)return;t.querySelector("[data-scroll-in-section]");const e=t.querySelector(".wtd-items-inner").querySelectorAll(".wtd-item");e.length&&n.ic.matchMedia({"(max-width: 991px)":function(){null!==vt.slider.instance&&vt.destroySlider();const t={opacity:1,y:20,duration:.5,scrollTrigger:{trigger:null,scroller:frontPage.containerEl,start:"top bottom",end:"bottom bottom",toggleActions:"play none none none",once:!1}};e.forEach((e=>{t.scrollTrigger.trigger=e,t.scrollTrigger.stagger=.2,n.p8.to(e.querySelector(".wtd-image"),{...t}),n.p8.to(e.querySelector(".wtd-item__title"),{...t}),n.p8.to(e.querySelector(".wtd-item__desc"),{...t})}))},"(min-width: 992px)":function(){vt.loadSlider()}})},loadSlider(){console.log("test"),this.slider.el=document.querySelector("#wtd .wtd-items"),this.slider.el&&(document.querySelector(".wtd-items").classList.add("swiper"),document.querySelector(".wtd-items-inner").classList.add("swiper-wrapper"),document.querySelectorAll(".wtd-item").forEach((t=>{t.classList.add("swiper-slide")})),this.slider.instance=new n.tq(this.slider.el,{watchSlidesProgress:!0,watchSlidesVisibility:!0,speed:500,grabCursor:!0,parallax:!0,loop:!0,slidesPerView:1.6,navigation:{nextEl:"#wtd .swiper-button-next",prevEl:"#wtd .swiper-button-prev"},breakpoints:{992:{slidesPerView:1},1200:{slidesPerView:1.4},1920:{slidesPerView:1.8}}}))},destroySlider(){null!==this.slider.instance&&("destroy"in this.slider.instance&&(this.slider.instance.destroy(),document.querySelector(".wtd-items").classList.remove("swiper"),document.querySelector(".wtd-items-inner").classList.remove("swiper-wrapper"),document.querySelectorAll(".wtd-item").forEach((t=>t.classList.remove("swiper-slide")))),this.slider.instance=null)}}
2,gt=vt,wt={init(){const t=document.querySelector(".circle-bg"),e=document.querySelector(".hero-content"),i=e.querySelector(".hero-title"),r=e.querySelector(".hero-summary"),o=e.querySelector(".hero-bottom .btn-video"),s=e.querySelector(".hero-bottom .btn-contact"),a=n.p8.timeline();a.from(i,{opacity:0,y:50,duration:1,delay:1}),a.from(r,{opacity:0,y:50,duration:1},"-=0.5"),a.from(o,{opacity:0,y:50,duration:1},"-=0.2"),a.from(s,{opacity:0,y:50,duration:1},"-=0.2");const l=n.p8.timeline();l.to(t,{scale:.8,duration:7}),l.to(t,{rotation:360,scale:.9,opacity:1,duration:20,translateY:-30,repeat:-1,yoyo:!0,ease:"linear"})}},bt={init(){new n.tq(".news .swiper",{spaceBetween:30,navigation:{nextEl:".news .swiper-button-next",prevEl:".news .swiper-button-prev"}}),new n.tq(".events .swiper",{spaceBetween:30,navigation:{nextEl:".events .swiper-button-next",prevEl:".events .swiper-button-prev"}})}};i(267);const kt={containerEl:null,locoScroll:null,init(){n.p8.registerPlugin(n.ic),this.containerEl=document.querySelector(".scroll-container"),this.initLocoScroll(),this.initScrollTrigger(),this.initHeader(),wt.init(),gt.init(),mt.init(),yt.init(),o.init(),ht.init(),dt.init(),ft.init(),bt.init(),pt.init(),this.open_popup(),n.ic.addEventListener("refresh",(()=>this.locoScroll.update())),n.ic.refresh(),console.log("front page loaded")},open_popup(){new URL(window.location.href).searchParams.get("contact")&&$("#contact-form").modal("show")},initLocoScroll(){let t=1,e=.05;window.matchMedia("(max-width: 992px)").matches&&(t=2,e=.1),this.locoScroll=new lt({el:this.containerEl,lerp:e,smooth:!0,multiplier:t,getSpeed:!0,getDirection:!0,reloadOnContextChange:!0,smartphone:{smooth:!1},tablet:{smooth:!1}}),this.locoScroll.on("scroll",n.ic.update)},initScrollTrigger(){n.ic.scrollerProxy(this.containerEl,{scrollTop:t=>arguments.length?this.locoScroll.scrollTo(t,0,0):this.locoScroll.scroll.instance.scroll.y,getBoundingClientRect:function(){return{top:0,left:0,width:window.innerWidth,height:window.innerHeight}},pinType:this.containerEl.style.transform?"transform":"fixed"})},initHeader(){const t=document.getElementById("header");let e=!0;this.locoScroll.on("scroll",(i=>{const n=i.scroll.y,r=t.getBoundingClientRect().height;"down"===i.direction&&e?n>r&&(this.toggleSticky(t),e=!1):"up"!==i.direction||e||n<=r&&(this.toggleSticky(t),e=!0)}))},toggleSticky(t){t.classList.toggle("sticky")}};window.addEventListener("DOMContentLoaded",(()=>{kt.init()})),window.frontPage=kt},267:(t,e,i)=>{function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(){o=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,i){return t[e]=i}}function u(t,e,i,r){var o=e&&e.prototype instanceof f?e:f,s=Object.create(o.prototype),a=new P(r||[]);return n(s,"_invoke",{value:x(t,i,a)}),s}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d={};function f(){}function p(){}function y(){}var m={};c(m,s,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(O([])));g&&g!==e&&i.call(g,s)&&(m=g);var w=y.prototype=f.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(n,o,s,a){var l=h(t[n],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(u).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,a)}))}a(l.arg)}var o;n(this,"_invoke",{value:function(t,i){function n(){return new e((function(e,n){r(t,i,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return{value:void 0,done:!0}}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var a=S(s,i);if(a){if(a===d)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=h(t,e,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function S(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&
vendor: 4,172 bytes, line 2
2(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),d;var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(k.prototype),c(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var s=new k(u(e,i,n,r),o);return t.isGeneratorFunction(i)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},b(w),c(w,l,"Generator"),c(w,s,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return s.type="throw",s.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),T(i),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;T(i)}return r}}throw new Error("illegal catch attempt")}
2,delegateYield:function(t,e,i){return this.delegate={iterator:O(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},t}function s(t,e,i,n,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,r)}function a(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var o=t.apply(e,i);function a(t){s(o,n,r,a,l,"next",t)}function l(t){s(o,n,r,a,l,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function u(t,e,i){return e&&c(t.prototype,e),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,e,i){return(e=g(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function y(t,e,i){return y=p()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&f(r,i.prototype),r},y.apply(null,arguments)}function m(t){var e="function"==typeof Map?new Map:void 0;return m=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return y(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)},m(t)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}i.r(e);var w=void 0!==i.g&&"[object global]"==={}.toString.call(i.g);function b(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function k(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function x(t){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(t)}function S(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.url,r=i||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=r,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(r);if(k(r))return r.replace("http:","https:");if(i)throw new TypeError("â".concat(i,"â is not a valid video id."));throw new TypeError("â".concat(r,"â is not a vimeo.com url."))}var E=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="string"==typeof e?[e]:e;return o.forEach((function(e){t[n](e,i)})),{cancel:function(){return o.forEach((function(e){return t[r](e,i)}))}}},T=void 0!==Array.prototype.indexOf,P="undefined"!=typeof window&&void 0!==window.postMessage;if(!(w||T&&P))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,i=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}}(),n=function(t,e,n){i?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n}):t[e]=n};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(t,i){if(!r(t)||!e.call(t,"_id"))throw new TypeError(i+" method called on incompatible receiver "+typeof t)}function o(){return Math.random().toString().substring(2)}return n(t.prototype,"delete",(function(t){if(i(this,"delete"),!r(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),n(t.prototype,"get",(function(t){if(i(this,"get"),r(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),n(t.prototype,"has",(function(t){if(i(this,"has"),!r(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),n(t.prototype,"set",(function(t,e){if(i(this,"set"),!r(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=e,this):(n(t,this._id,[t,e]),this)})),n(t,"_polyfill",!0),t}()}function r(t){return Object(t)===t}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:O);var _,A,C=(_=function(t){var e,i,n;n=function(){var t,e,i,n=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}
vendor: 4,514 bytes, line 2
2),t=function(t,e,i,n){return Object.defineProperty(t,e,{value:i,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,i){return t[e]=i,t}}function o(t,n){i.add(t,n),e||(e=r(i.drain))}function s(t){var e,i=typeof t;return null==t||"object"!=i&&"function"!=i||(e=t.then),"function"==typeof e&&e}function a(){for(var t=0;t<this.chain.length;t++)l(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function l(t,e,i){var n,r;try{!1===e?i.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=s(n))?r.call(n,i.resolve,i.reject):i.resolve(n)}catch(t){i.reject(t)}}function c(t){var e,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(e=s(t))?o((function(){var n=new d(i);try{e.call(t,(function(){c.apply(n,arguments)}),(function(){u.apply(n,arguments)}))}catch(t){u.call(n,t)}})):(i.msg=t,i.state=1,i.chain.length>0&&o(a,i))}catch(t){u.call(new d(i),t)}}}function u(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(a,e))}function h(t,e,i,n){for(var r=0;r<e.length;r++)!function(r){t.resolve(e[r]).then((function(t){i(r,t)}),n)}(r)}function d(t){this.def=t,this.triggered=!1}function f(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new f(this);this.then=function(t,i){var n={success:"function"!=typeof t||t,failure:"function"==typeof i&&i};return n.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&&o(a,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){c.call(e,t)}),(function(t){u.call(e,t)}))}catch(t){u.call(e,t)}}i=function(){var t,i,n;function r(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,o){n=new r(e,o),i?i.next=n:t=n,i=n,n=void 0},drain:function(){var n=t;for(t=i=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var y=t({},"constructor",p,!1);return p.prototype=y,t(y,"__NPO__",0,!1),t(p,"resolve",(function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this((function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");e(t)}))})),t(p,"reject",(function(t){return new this((function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");i(t)}))})),t(p,"all",(function(t){var e=this;return"[object Array]"!=n.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");var r=t.length,o=Array(r),s=0;h(e,t,(function(t,e){o[t]=e,++s===r&&i(o)}),n)}))})),t(p,"race",(function(t){var e=this;return"[object Array]"!=n.call(t)?e.reject(TypeError("Not an array")):new e((function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");h(e,t,(function(t,e){i(e)}),n)}))})),p},(i=O)[e="Promise"]=i[e]||n(),t.exports&&(t.exports=i[e])},_(A={exports:{}}),A.exports),L=new WeakMap;function j(t,e,i){var n=L.get(t.element)||{};e in n||(n[e]=[]),n[e].push(i),L.set(t.element,n)}function M(t,e){return(L.get(t.element)||{})[e]||[]}function q(t,e,i){var n=L.get(t.element)||{};if(!n[e])return!0;if(!i)return n[e]=[],L.set(t.element,n),!0;var r=n[e].indexOf(i);return-1!==r&&n[e].splice(r,1),L.set(t.element,n),n[e]&&0===n[e].length}function D(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.warn(t),{}}return t}function R(t,e,i){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var n={method:e};void 0!==i&&(n.value=i);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(n=JSON.stringify(n)),t.element.contentWindow.postMessage(n,t.origin)}}var I=["autopause","autoplay","background","byline","color","colors","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I.reduce((function(e,i){var n=t.getAttribute("data-vimeo-".concat(i));return(n||""===n)&&(e[i]=""===n?1:n),e}),e)}function V(t,e){var i=t.html;if(!e)throw new TypeError("An element must be provided");
2if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=i,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise((function(n,r){if(!k(t))throw new TypeError("â".concat(t,"â is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var s in e)e.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",o,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{var e=JSON.parse(a.responseText);if(403===e.domain_status_code)return V(e,i),void r(new Error("â".concat(t,"â is not embeddable.")));n(e)}catch(t){r(t)}else r(new Error("â".concat(t,"â is not embeddable.")));else r(new Error("â".concat(t,"â was not found.")))},a.onerror=function(){var t=a.status?" (".concat(a.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},a.send()}))}var W={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(m,t);var e,i,n,s,c,y=(s=m,c=p(),function(){var t,e=d(s);if(c){var i=d(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,t)});function m(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return l(this,m),h(v(i=y.call(this)),"logger",void 0),h(v(i),"speedAdjustment",0),h(v(i),"adjustSpeed",function(){var t=a(o().mark((function t(e,n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.speedAdjustment!==n){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.getPlaybackRate();case 4:return t.t0=t.sent,t.t1=i.speedAdjustment,t.t2=t.t0-t.t1,t.t3=n,r=t.t2+t.t3,i.log("New playbackRate: ".concat(r)),t.next=12,e.setPlaybackRate(r);case 12:i.speedAdjustment=n;case 13:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()),i.logger=s,i.init(e,t,r(r({},W),n)),i}return u(m,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(n=a(o().mark((function t(e,i,n){var r,s,a,l=this;return o().wrap((function(t){while(!0)switch(t.prev=t.next){case 0:return t.next=2,this.waitForTOReadyState(e,"open");case 2:if("viewer"!==n.role){t.next=10;break}return t.next=5,this.updatePlayer(e,i,n);case 5:r=E(e,"change",(function(){return l.updatePlayer(e,i,n)})),s=this.maintainPlaybackPosition(e,i,n),this.addEventListener("disconnect",(function(){s.cancel(),r.cancel()})),t.next=14;break;case 10:return t.next=12,this.updateTimingObject(e,i);case 12:a=E(i,["seeked","play","pause","ratechange"],(function(){return l.updateTimingObject(e,i)}),"on","off"),this.addEventListener("disconnect",(function(){return a.cancel()}));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e,i){return n.apply(this,arguments)})},{key:"updateTimingObject",value:(i=a(o().mark((function t(e,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,i.getCurrentTime();case 3:return t.t1=t.sent,t.next=6,i.getPaused();case 6:if(!t.sent){t.next=10;break}t.t2=0,t.next=13;break;case 10:return t.next=12,i.getPlaybackRate();case 12:t.t2=t.sent;case 13:t.t3=t.t2,t.t4={position:t.t1,velocity:t.t3},t.t0.update.call(t.t0,t.t4);case 16:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})},{key:"updatePlayer",value:(e=a(o().mark((function t(e,i,n){var r,s,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.query(),s=r.position,l=r.velocity,"number"==typeof s&&i.setCurrentTime(s),"number"!=typeof l){t.next=25;break}if(0!==l){t.next=11;break}return t.next=6,i.getPaused();case 6:if(t.t0=t.sent,!1!==t.t0){t.next=9;break}i.pause();case 9:t.next=25;break;case 11:if(!(l>0)){t.next=25;break}return t.next=14,i.getPaused();case 14:if(t.t1=t.sent,!0!==t.t1){t.next=19;break}return t.next=18,i.play().catch(function(){var t=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("NotAllowedError"!==e.name||!n.autoPlayMuted){t.next=5;break}return t.next=3,i.setMuted(!0);case 3:return t.next=5,i.play().catch((function(t){return console.error("Couldn't play the video from TimingSrcConnector. Error:",t)}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 18:this.updatePlayer(e,i,n);case 19:return t.next=21,i.getPlaybackRate();case 21:if(t.t2=t.sent,t.t3=l,t.t2===t.t3){t.next=25;break}i.setPlaybackRate(l);case 25:case"end":return t.stop()}}),t,this)}))),function(t,i,n){return e.apply(this,arguments)})}
2,{key:"maintainPlaybackPosition",value:function(t,e,i){var n=this,r=i.allowedDrift,s=i.maxAllowedDrift,l=i.minCheckInterval,c=i.maxRateAdjustment,u=i.maxTimeToCatchUp,h=1e3*Math.min(u,Math.max(l,s)),d=function(){var i=a(o().mark((function i(){var a,l,h,d,f;return o().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.t0=0===t.query().velocity,i.t0){i.next=6;break}return i.next=4,e.getPaused();case 4:i.t1=i.sent,i.t0=!0===i.t1;case 6:if(!i.t0){i.next=8;break}return i.abrupt("return");case 8:return i.t2=t.query().position,i.next=11,e.getCurrentTime();case 11:if(i.t3=i.sent,a=i.t2-i.t3,l=Math.abs(a),n.log("Drift: ".concat(a)),!(l>s)){i.next=22;break}return i.next=18,n.adjustSpeed(e,0);case 18:e.setCurrentTime(t.query().position),n.log("Resync by currentTime"),i.next=29;break;case 22:if(!(l>r)){i.next=29;break}return f=(h=l/u)<(d=c)?(d-h)/2:d,i.next=28,n.adjustSpeed(e,f*Math.sign(a));case 28:n.log("Resync by playbackRate");case 29:case"end":return i.stop()}}),i)})));return function(){return i.apply(this,arguments)}}(),f=setInterval((function(){return d()}),h);return{cancel:function(){return clearInterval(f)}}}},{key:"log",value:function(t){var e;null===(e=this.logger)||void 0===e||e.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(t,e){return new Promise((function(i){!function n(){t.readyState===e?i():t.addEventListener("readystatechange",n,{once:!0})}()}))}}]),m}(m(EventTarget)),Y=new WeakMap,F=new WeakMap,N={},X=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var r=e.querySelector("iframe");r&&(e=r)}if("IFRAME"===e.nodeName&&!k(e.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(Y.has(e))return Y.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new C((function(t,r){if(i._onMessage=function(e){if(k(e.origin)&&i.element.contentWindow===e.source){"*"===i.origin&&(i.origin=e.origin);var n=D(e.data);if(n&&"error"===n.event&&n.data&&"ready"===n.data.method){var o=new Error(n.data.message);return o.name=n.data.name,void r(o)}var s=n&&"ready"===n.event,a=n&&"ping"===n.method;if(s||a)return i.element.setAttribute("data-ready","true"),void t();!function(t,e){var i,n=[];if((e=D(e)).event)"error"===e.event&&M(t,e.data.method).forEach((function(i){var n=new Error(e.data.message);n.name=e.data.name,i.reject(n),q(t,e.data.method,i)})),n=M(t,"event:".concat(e.event)),i=e.data;else if(e.method){var r=function(t,e){var i=M(t,e);if(i.length<1)return!1;var n=i.shift();return q(t,e,n),n}(t,e.method);r&&(n.push(r),i=e.value)}n.forEach((function(e){try{if("function"==typeof e)return void e.call(t,i);e.resolve(i)}catch(t){}}))}(i,n)}},i._window.addEventListener("message",i._onMessage),"IFRAME"!==i.element.nodeName){var o=B(e,n);z(S(o),o,e).then((function(t){var n,r,o,s=V(t,e);return i.element=s,i._originalElement=e,n=e,r=s,o=L.get(n),L.set(r,o),L.delete(n),Y.set(i.element,i),t})).catch(r)}}));if(F.set(this,o),Y.set(this.element,this),"IFRAME"===this.element.nodeName&&R(this,"ping"),N.isEnabled){var s=function(){return N.exit()};this.fullscreenchangeHandler=function(){N.isFullscreen?j(i,"event:exitFullscreen",s):q(i,"event:exitFullscreen",s),i.ready().then((function(){R(i,"fullscreenchange",N.isFullscreen)}))},N.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var e;return u(t,[{key:"callMethod",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new C((function(n,r){return e.ready().then((function(){j(e,t,{resolve:n,reject:r}),R(e,t,i)})).catch(r)}))}},{key:"get",value:function(t){var e=this;return new C((function(i,n){return t=b(t,"get"),e.ready().then((function(){j(e,t,{resolve:i,reject:n}),R(e,t)})).catch(n)}))}},{key:"set",value:function(t,e){var i=this;return new C((function(n,r){if(t=b(t,"set"),null==e)throw new TypeError("There must be a value to set.");return i.ready().then((function(){j(i,t,{resolve:n,reject:r}),R(i,t,e)}
2)).catch(r)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===M(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),j(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");q(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=F.get(this)||new C((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return C.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return N.isEnabled?N.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return N.isEnabled?N.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return N.isEnabled?C.resolve(N.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new C((function(e){if(F.delete(t),Y.delete(t.element),t._originalElement&&(Y.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),N.isEnabled&&N.off("fullscreenchange",t.fullscreenchangeHandler),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return C.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new C((function(t,e){return e(new TypeError("Argument must be an array."))}));var e=new C((function(t){return t(null)})),i=[t[0]?this.set("colorOne",t[0]):e,t[1]?this.set("colorTwo",t[1]):e,t[2]?this.set("colorThree",t[2]):e,t[3]?this.set("colorFour",t[3]):e];return C.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}
2},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(e=a(o().mark((function t(e,i){var n,r=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return t.next=4,this.ready();case 4:return n=new H(this,e,i),R(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",(function(){return R(r,"notifyTimingObjectDisconnect")})),t.abrupt("return",n);case 8:case"end":return t.stop()}}),t,this)}))),function(t,i){return e.apply(this,arguments)})}]),t}();w||(N=function(){var t=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,n=e.length,r={};i<n;i++)if((t=e[i])&&t[1]in document){for(i=0;i<t.length;i++)r[e[0][i]]=t[i];return r}return!1}(),e={fullscreenchange:t.fullscreenchange,fullscreenerror:t.fullscreenerror},i={request:function(e){return new Promise((function(n,r){var o=function t(){i.off("fullscreenchange",t),n()};i.on("fullscreenchange",o);var s=(e=e||document.documentElement)[t.requestFullscreen]();s instanceof Promise&&s.then(o).catch(r)}))},exit:function(){return new Promise((function(e,n){if(i.isFullscreen){var r=function t(){i.off("fullscreenchange",t),e()};i.on("fullscreenchange",r);var o=document[t.exitFullscreen]();o instanceof Promise&&o.then(r).catch(n)}else e()}))},on:function(t,i){var n=e[t];n&&document.addEventListener(n,i)},off:function(t,i){var n=e[t];n&&document.removeEventListener(n,i)}};return Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(document[t.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[t.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[t.fullscreenEnabled])}}}),i}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),i=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=B(t);z(S(e),e,t).then((function(e){return V(e,t)})).catch(i)}catch(t){i(t)}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(e){if(k(e.origin)&&e.data&&"spacechange"===e.data.event)for(var i=t.querySelectorAll("iframe"),n=0;n<i.length;n++)if(i[n].contentWindow===e.source){i[n].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}}
2)))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(e){if(k(e.origin)){var i=D(e.data);if(i&&"ready"===i.event)for(var n=t.querySelectorAll("iframe"),r=0;r<n.length;r++){var o=n[r],s=o.contentWindow===e.source;x(o.src)&&s&&new X(o).callMethod("appendVideoMetadata",window.location.href)}}})))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(t){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(t))};window.addEventListener("message",(function(i){if(k(i.origin)){var n=D(i.data);if(n&&"ready"===n.event)for(var r=t.querySelectorAll("iframe"),o=function(){var t=r[s],n=t.contentWindow===i.source;if(x(t.src)&&n){var o=new X(t);o.getVideoId().then((function(t){var e=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);if(e&&e[1]){var i=decodeURI(e[1]);o.setCurrentTime(i)}})).catch(e)}},s=0;s<r.length;s++)o()}}))}}());const U=X;var K=i(96),Q=i.n(K);const G={playersCounter:0,players:{},videoElements:[],accessListeners:{},callbacks:{},debug:!1,init(){this.videoElements=document.querySelectorAll(".video-bg"),this.checkVisible()},checkVisible(){let t=new IntersectionObserver((t=>{t.forEach((t=>{const e=t.target?.id;t.isIntersecting?(this.debug&&console.log(t.target),this.debug&&console.log("video intersecting"),this.players[e]?document.body.classList.contains("wattaw-pause-motion")||this.players[e].getPaused().then((i=>{i&&(this.debug&&console.log("video "+e+" play again"),this.players[e].play().then((e=>this.runCallback(e,t.target))).catch((()=>{})))})).catch((()=>{})):(this.debug&&console.log("video initializing"),this.loadBgVideo(t.target).then((e=>{this.debug&&console.log("check if initialized video needs to start playing"),document.body.classList.contains("wattaw-pause-motion")?(this.debug&&console.log("only run callback"),this.runCallback(e,t.target)):(this.debug&&console.log("start playing this video"),e.play().then((e=>this.runCallback(e,t.target))).catch((()=>{})))})).catch((()=>{})))):this.players[e]&&(this.debug&&console.log(e+" checking if needs to be paused"),this.players[e].getPaused().then((t=>{t||(this.debug&&console.log(e+" video paused"),this.players[e].pause().catch((()=>{})))})).catch((()=>{})))}))}),{rootMargin:"20%",threshold:[0,1]});this.videoElements.forEach((e=>{t.observe(e)}))},getVideoSrc(t){if(!t)return!1;const e=parseInt(t.dataset.videoBreakpoint??576);let i=""+t.dataset.vimeoDesktop;!window.matchMedia("(min-width: "+e+"px)").matches&&t.dataset.vimeoMobile&&(i=t.dataset.vimeoMobile);let n=i.match(/vimeo\.com\/([^\/]+)/i);return n&&n.length&&n[1]&&(i=n[1]),i},loadBgVideo(t){return new Promise((e=>{if(!t)return e(!1);t.id||t.setAttribute("id","box-video-id-"+ ++this.playersCounter);let i=this.getVideoSrc(t);if(!i)return t&&t.id&&this.players[t.id]&&this.players[t.id].destroy&&(this.players[t.id].destroy(),delete this.players[t.id]),e(!1);if(t.id in this.players&&t.dataset.playingId===i)return e(this.players[t.id]);t.id in this.players&&this.players[t.id].destroy();const n=document.createElement("iframe");return n.src=`https://player.vimeo.com/video/${i}?autoplay=0&muted=1&background=1&portrait=0&responsive=1`,n.width="100%",n.height="100%",n.allow="autoplay; fullscreen",n.role="presentation",n.ariaHidden="true",n.tabIndex="-1",n.title=t.dataset?.videoTitle,t.querySelector(".video-iframe-wrapper").appendChild(n),t.setAttribute("data-playing-id",i),this.players[t.id]=new U(n),""!=t.dataset?.videoQuality&&this.players[t.id].setQuality(t.dataset.videoQuality).then((e=>{this.debug&&console.log("quality changed to "+t.dataset.videoQuality)})).catch((t=>{console.log(t)})),t.dataset.videoWidth&&t.dataset.videoHeight?this.setVideoSize(t):this.players[t.id].getVideoHeight().then((e=>{t.dataset.videoHeight=e,this.players[t.id].getVideoWidth().then((e=>{t.dataset.videoWidth=e,this.setVideoSize(t)}
2)).catch((()=>{}))})).catch((()=>{})),e(this.players[t.id])}))},setVideoSize(t){if(!(t&&t.id&&t.dataset.videoWidth&&t.dataset.videoHeight))return!1;const e={height:t.dataset.videoHeight,width:t.dataset.videoWidth};let i=e.height/e.width,n=t.clientHeight/t.clientWidth,r=parseFloat(t.dataset?.videoMultiply)??1;(isNaN(r)||r<1)&&(r=1),this.debug&&console.log(t.id,e),i>n?(t.style.setProperty("--video-width",t.clientWidth*r+"px"),t.style.setProperty("--video-height",t.clientWidth*i*r+"px")):i<n?(t.style.setProperty("--video-height",t.clientHeight*r+"px"),t.style.setProperty("--video-width",t.clientHeight*(e.width/e.height)*r+"px")):(t.style.setProperty("--video-height",t.clientHeight*r+"px"),t.style.setProperty("--video-width",t.clientWidth*r+"px")),t.style.setProperty("--video-ratio",100*i+"%"),t.querySelector(".video-iframe-wrapper").classList.add("video-initialized")},setResizeListener(t){t&&(this.debug&&console.log("setting resize listener for "+t.id),window.addEventListener("resize",Q()((e=>{t.dataset.playingId!==this.getVideoSrc(t)?this.loadBgVideo(t).then((t=>t.play().catch((()=>{})))):this.setVideoSize(t)}),200)))},runCallback(t,e){let i=e.dataset?.videoCallback,n=e?.id;return!i||"function"!=typeof window[i]||n&&this.callbacks[n]||(i=window[i],i(t,e),this.callbacks[n]=!0),this.accessibilityListener(e?.id),this.setResizeListener(e),resolve(t)},accessibilityListener(t){const e=document.querySelector("#wattaw-pause-motion"),i=document.getElementById(t);i&&"object"==typeof WattawPlugin&&e&&!this.accessListeners[t]&&(window.addEventListener(WattawPlugin.config.pauseMotionEventChecked,(()=>{this.debug&&console.log("wattaw pause motion detected for "+t),this.players[t]&&this.players[t].getPaused().then((e=>{e||this.players[t].pause().catch((()=>{}))})).catch((()=>{}))})),window.addEventListener(WattawPlugin.config.pauseMotionEventUnchecked,(()=>{this.debug&&console.log("wattaw resume motion detected for "+t),this.players[t]&&new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&e.target===i&&this.players[t].getPaused().then((e=>{e&&this.players[t].play().catch((()=>{}))})).catch((()=>{}))}))})).observe(i)})),this.accessListeners[t]=!0)}};window.addEventListener("DOMContentLoaded",(()=>{"function"==typeof window.requestIdleCallback?window.requestIdleCallback((()=>G.init())):setTimeout((()=>{G.init()}),0)}))}},t=>{t(t.s=73)}])
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.