fullpage.js
Version:
Create beautiful fullscreen snap scrolling websites
11 lines • 69.2 kB
JavaScript
/*!
* fullPage 4.0.40
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
* or Fullpage Commercial License for commercial use
* http://alvarotrigo.com/fullPage/pricing/
*
* Copyright (C) 2018 http://alvarotrigo.com/fullPage/ - A project by Alvaro Trigo
*/
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).fullpage=t()}(this,(function(){"use strict";var n,t,e,r,i=Object.freeze({__proto__:null,get showError(){return Ee},get isVisible(){return De},get getVisible(){return Le},get $(){return Re},get deepExtend(){return ze},get hasClass(){return je},get getWindowHeight(){return He},get t(){return Ne},get css(){return Ie},get prev(){return Pe},get next(){return Ce},get last(){return We},get index(){return Fe},get getList(){return Be},get hide(){return Ve},get show(){return Ze},get isArrayOrList(){return Ge},get addClass(){return Ye},get removeClass(){return Ue},get appendTo(){return Xe},get wrap(){return _e},get wrapAll(){return Qe},get wrapInner(){return Je},get unwrap(){return Ke},get closest(){return $e},get after(){return qe},get before(){return nr},get insertBefore(){return tr},get getScrollTop(){return er},get siblings(){return rr},get preventDefault(){return ir},get i(){return or},get o(){return ar},get u(){return ur},get l(){return lr},get v(){return cr},get isFunction(){return fr},get trigger(){return sr},get matches(){return dr},get toggle(){return vr},get createElementFromHTML(){return pr},get remove(){return hr},get filter(){return gr},get untilAll(){return mr},get nextAll(){return wr},get prevAll(){return br},get toArray(){return Sr},get p(){return yr},get h(){return Mr},get g(){return Tr},get S(){return Ar},get M(){return xr}});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),e=t.length>>>0;if("function"!=typeof n)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<e;){var o=t[i];if(n.call(r,o,i,t))return o;i++}}}),Array.from||(Array.from=(n=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===n.call(t)},e=Math.pow(2,53)-1,r=function(n){var t=function(n){var t=Number(n);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(n);return Math.min(Math.max(t,0),e)},function(n){var e=this,i=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var u,l=r(i.length),c=t(e)?Object(new e(l)):new Array(l),f=0;f<l;)u=i[f],c[f]=a?void 0===o?a(u,f):a.call(o,u,f):u,f+=1;return c.length=l,c}));var o,a=window,u=document,l=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,c=/(Mac|iPhone|iPod|iPad)/i.test(a.navigator.userAgent),f="ontouchstart"in a||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,s=!!window.MSInputMethodContext&&!!document.documentMode,d={test:{},shared:{}},v=(o=window.self!==window.top,function(){return o});a.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var e=0;e<this.length;e++)n.call(t,this[e],e,this)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(n,t){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(n),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},writable:!0,T:!0});var p="fullpage-wrapper",h="."+p,g="fp-scrollable",m="fp-responsive",w="fp-notransition",b="fp-destroyed",S="fp-enabled",y="active",M=".active",T="fp-completely",A="fp-loaded",x="fp-section",O="."+x,k=".fp-tableCell",E="fp-auto-height",D="#fp-nav",L="fp-slide",R="."+L,z=".fp-slide.active",j="fp-slides",H=".fp-slides",N="fp-slidesContainer",I="."+N,P="fp-table",C="fp-overflow",W="."+C,F="fp-is-overflow",B=".fp-slidesNav",V=".fp-slidesNav a",Z="fp-controlArrow",G="."+Z,Y="fp-prev",U=".fp-controlArrow.fp-prev",X=".fp-controlArrow.fp-next",_={menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,licenseKey:"",credits:{enabled:!0,label:"Made with fullPage.js",position:"right"},css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:600,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!0,scrollOverflowReset:!1,skipIntermediateItems:!1,touchSensitivity:5,touchWrapper:null,bigSectionsDestination:null,adjustOnNavChange:!0,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,allowCorrectDirection:!1,scrollOverflowMacStyle:!0,controlArrows:!0,controlArrowsHTML:['<div class="fp-arrow"></div>','<div class="fp-arrow"></div>'],controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},cards:!1,cardsOptions:{perspective:100,fadeContent:!0,fadeBackground:!0},sectionSelector:".section",slideSelector:".slide",afterLoad:null,beforeLeave:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,onScrollOverflow:null,lazyLoading:!0,lazyLoadThreshold:0,observer:!0,scrollBeyondFullpage:!0,A:!1},Q=null,J=!1,K=ze({},_),$=null;function q(n){return Q}function nn(){return $||_}function tn(){return K}function en(n,t,e){$[n]=t,"internal"!==e&&(K[n]=t)}function rn(){if(!nn().anchors.length){var n=Re(nn().sectionSelector.split(",").join("[data-anchor],")+"[data-anchor]",Q);n.length&&n.length===Re(nn().sectionSelector,Q).length&&(J=!0,n.forEach((function(n){nn().anchors.push(or(n,"data-anchor").toString())})))}if(!nn().navigationTooltips.length){var t=Re(nn().sectionSelector.split(",").join("[data-tooltip],")+"[data-tooltip]",Q);t.length&&t.forEach((function(n){nn().navigationTooltips.push(or(n,"data-tooltip").toString())}))}}var on={O:0,D:0,slides:[],L:[],R:null,j:null,H:!1,N:!1,I:!1,P:!1,C:!1,W:void 0,F:void 0,B:!1,canScroll:!0,V:"none",Z:"none",G:!1,Y:!1,U:!0,X:0,_:He(),J:!1,K:{},scrollY:0,scrollX:0,q:!1},an=Object.assign({},on);function un(n){Object.assign(an,n)}function ln(){return an}function cn(n){return void 0!==window["fp_"+n+"Extension"]}function fn(n){var t=nn();return null!==t[n]&&"[object Array]"===Object.prototype.toString.call(t[n])?t[n].length&&d[n]:t[n]&&d[n]}function sn(n,t,e){if(fn(n))return fr(d[n][t])?d[n][t](e):d[n][t]}function dn(){return sn("dragAndMove","isAnimating")}function vn(){return sn("dragAndMove","isGrabbing")}function pn(n){if(nn().offsetSections&&d.offsetSections){var t=sn("offsetSections","getWindowHeight",n);return""!==t?Math.round(t)+"px":t}return He()+"px"}function hn(n,t){n.insertBefore(t,n.firstChild)}function gn(n){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function e(n){var e,r,i,o,a,u,l="",c=0;for(n=n.replace(/[^A-Za-z0-9+/=]/g,"");c<n.length;)e=t.indexOf(n.charAt(c++))<<2|(o=t.indexOf(n.charAt(c++)))>>4,r=(15&o)<<4|(a=t.indexOf(n.charAt(c++)))>>2,i=(3&a)<<6|(u=t.indexOf(n.charAt(c++))),l+=String.fromCharCode(e),64!=a&&(l+=String.fromCharCode(r)),64!=u&&(l+=String.fromCharCode(i));return l=function(n){for(var t,e="",r=0,i=0,o=0;r<n.length;)(i=n.charCodeAt(r))<128?(e+=String.fromCharCode(i),r++):i>191&&i<224?(o=n.charCodeAt(r+1),e+=String.fromCharCode((31&i)<<6|63&o),r+=2):(o=n.charCodeAt(r+1),t=n.charCodeAt(r+2),e+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&t),r+=3);return e}(l),l}function r(n){return n.slice(3).slice(0,-3)}return function(n){var t=n.split("_");if(t.length>1){var i=t[1];return e(n.replace(r(t[1]),"").split("_")[0].slice(2).slice(0,-2))+"_"+e(i.slice(3).slice(0,-3))}return r(n)}(e(n))}a.state=an,a.fp_utils=a.fp_utils||{},Object.assign(a.fp_utils,{prependTo:hn,toggleClass:function(n,t,e){if(n.classList&&null==e)n.classList.toggle(t);else{var r=je(n,t);r&&null==e||!e?Ue(n,t):(!r&&null==e||e)&&Ye(n,t)}}});var mn=function(n){this.anchor=n.anchor,this.item=n.item,this.index=n.index(),this.isLast=this.index===n.item.parentElement.querySelectorAll(n.selector).length-1,this.isFirst=!this.index,this.isActive=n.isActive},wn=function(n,t){this.parent=this.parent||null,this.selector=t,this.anchor=or(n,"data-anchor")||nn().anchors[Fe(n,nn().sectionSelector)],this.item=n,this.isVisible=De(n),this.isActive=je(n,y),this.nn=je(n,C)||null!=Re(W,n)[0],this.tn=t===nn().sectionSelector,this.container=$e(n,I)||$e(n,h),this.index=function(){return this.siblings().indexOf(this)}};function bn(n){return n.map((function(n){return n.item}))}function Sn(n,t){return n.find((function(n){return n.item===t}))}wn.prototype.siblings=function(){return this.tn?this.isVisible?an.L:an.en:this.parent?this.parent.slides:0},wn.prototype.prev=function(){var n=this.siblings(),t=(this.tn?n.indexOf(this):this.parent.slides.indexOf(this))-1;return t>=0?n[t]:null},wn.prototype.next=function(){var n=this.siblings(),t=(this.tn?n.indexOf(this):this.parent.slides.indexOf(this))+1;return t<n.length?n[t]:null},wn.prototype.prevPanel=function(){return this===this.prev()?this.parent?this.parent.prev():null:this.prev()||(this.parent?this.parent.prev():null)},wn.prototype.nextPanel=function(){return this===this.next()?this.parent?this.parent.next():null:this.next()||(this.parent?this.parent.next():null)},wn.prototype.rn=function(){return this.tn?an.L:an.on};var yn,Mn=function(n){mn.call(this,n)},Tn=function(n){mn.call(this,n)};function An(n){var t=Re(z,n);return t.length&&(n=t[0]),n}function xn(n){return n?n.activeSlide?n.activeSlide:n:null}function On(n){var t,e,r=nn();return r.autoScrolling&&!r.scrollBar?(t=-n,e=Re(h)[0]):(t=n,e=window),{options:t,element:e}}function kn(n,t){!nn().autoScrolling||nn().scrollBar||n.self!=window&&je(n,j)?n.self!=window&&je(n,j)?n.scrollLeft=t:n.scrollTo(0,t):n.style.top=t+"px"}function En(n){var t="transform "+nn().scrollingSpeed+"ms "+nn().easingcss3;return Ue(n,w),Ie(n,{"-webkit-transition":t,transition:t})}function Dn(n,t){var e=n.index(),r=Fe(t,O);return e==r?"none":e>r?"up":"down"}function Ln(n){return Ye(n,w)}function Rn(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function zn(n,t){t?En(q()):Ln(q()),clearTimeout(yn),Ie(q(),Rn(n)),d.test.an=n,yn=setTimeout((function(){Ue(q(),w)}),10)}function jn(n){var t=Math.round(n);if(nn().css3&&nn().autoScrolling&&!nn().scrollBar)zn("translate3d(0px, -"+t+"px, 0px)",!1);else if(nn().autoScrolling&&!nn().scrollBar)Ie(q(),{top:-t+"px"}),d.test.top=-t+"px";else{var e=On(t);kn(e.element,e.options)}}function Hn(n,t){"internal"!==t&&(sn("fadingEffect","update",n),sn("effects","update",n)),sn("cards","update_",n),en("scrollingSpeed",n,t)}d.setScrollingSpeed=Hn;var Nn,In=null,Pn=null,Cn=null;function Wn(n,t,e,r){var i,o=function(n){return n.self!=a&&je(n,j)?n.scrollLeft:!nn().autoScrolling||nn().scrollBar?er():n.offsetTop}(n),u=t-o,l=!1,c=an.B;un({B:!0}),Nn&&window.cancelAnimationFrame(Nn),Nn=function(f){i||(i=f);var s=Math.floor(f-i);if(an.B){var d=t;e&&(d=a.fp_easings[nn().easing](s,o,u,e)),s<=e&&kn(n,d),s<e?window.requestAnimationFrame(Nn):void 0===r||l||(kn(n,t),r(),un({B:!1}),l=!0)}else l||c||(r(),un({B:!1}),l=!0)},window.requestAnimationFrame(Nn)}function Fn(n){return n.hasAttribute("data-autoplay")||n.hasAttribute("autoplay")}function Bn(n){var t=An(n);Re("video, audio",t).forEach((function(n){Fn(n)&&"function"==typeof n.play&&(n.readyState>=n.HAVE_FUTURE_DATA?n.play():n.addEventListener("canplay",(function t(){n.play(),n.removeEventListener("canplay",t)})))})),Re('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){Fn(n)&&Vn(n),n.onload=function(){Fn(n)&&Vn(n)}}))}function Vn(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function Zn(n){var t=An(n);Re("video, audio",t).forEach((function(n){n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()})),Re('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){/youtube\.com\/embed\//.test(or(n,"src"))&&!n.hasAttribute("data-keepplaying")&&n.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function Gn(n){if(nn().lazyLoading){var t=An(n);Re("img[data-src], img[data-srcset], source[data-src], source[data-srcset], video[data-src], audio[data-src], iframe[data-src]",t).forEach((function(n){if(["src","srcset"].forEach((function(t){var e=or(n,"data-"+t);null!=e&&e&&(Tr(n,t),n.addEventListener("load",(function(){})))})),dr(n,"source")){var t=$e(n,"video, audio");t&&(t.load(),t.onloadeddata=function(){})}})),Ye(t,A)}}function Yn(n){var t=nn().lazyLoadThreshold;Gn(n.item),t&&(Un(n,"prev",t),Un(n,"next",t))}function Un(n,t,e){for(var r=n,i=0;i<e&&(r=r[t]());i++)Gn(r.item)}function Xn(){var n=ln().R.item,t=ln().R.activeSlide,e=_n(n),r=String(e);t&&(r=r+"-"+_n(t.item)),r=r.replace("/","-").replace("#","").replace(/\s/g,"");var i=new RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g");In.className=In.className.replace(i,""),Ye(In,"fp-viewing-"+r)}function _n(n){if(!n)return null;var t=or(n,"data-anchor"),e=Fe(n);return null==t&&(t=e),t}function Qn(n){return Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qn(n)}var Jn={un:{},ln:function(n,t){var e=this;return"object"!==Qn(this.un[n])&&(this.un[n]=[]),this.un[n].push(t),function(){return e.removeListener(n,t)}},removeListener:function(n,t){if("object"===Qn(this.un[n])){var e=this.un[n].indexOf(t);e>-1&&this.un[n].splice(e,1)}},cn:function(n){for(var t=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];"object"===Qn(this.un[n])&&this.un[n].forEach((function(n){return n.apply(t,r)}))},once:function(n,t){var e=this,r=this.ln(n,(function(){r();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t.apply(e,i)}))}},Kn="onAfterRenderNoAnchor",$n="onClickOrTouch",qn="moveSlideLeft",nt="moveSlideRight",tt="onInitialise",et="beforeInit",rt="bindEvents",it="onDestroy",ot="onDestroyAll",at="contentChanged",ut="onScrollOverflowScrolled",lt="onScrollPageAndSlide",ct="onKeyDown",ft="onMenuClick",st="scrollPage",dt="landscapeScroll",vt="scrollBeyondFullpage",pt="onPerformMovement",ht="onSlideLeave",gt="onLeave",mt="afterSectionLoads",wt="afterSlideLoads";function bt(n,t,e){var r="";nn().anchors.length&&!nn().lockAnchors&&(n?(null!=e&&(r=e),null==t&&(t=n),un({F:t}),St(r+"/"+t)):null!=n?(un({F:t}),St(e)):St(e)),Xn()}function St(n){nn().recordHistory?location.hash=n:a.history.replaceState(void 0,void 0,"#"+n)}function yt(n,t,e){var r="Section"===t?nn().anchors[n]:or(e,"data-anchor");return encodeURI(nn().navigationTooltips[n]||r||t+" "+(n+1))}function Mt(n){n.cancelable&&ir(n),un({j:"horizontalNav"});var t=$e(this,O),e=Re(H,$e(this,O))[0],r=Sn(ln().L,t).slides[Fe($e(this,"li"))];Jn.cn(dt,{slides:e,destination:r.item})}function Tt(n,t){nn().slidesNavigation&&null!=n&&(Ue(Re(M,n),y),Ye(Re("a",Re("li",n)[t]),y))}Jn.ln(ot,(function(){a.history.replaceState(null,"",a.location.pathname+window.location.search)}));var At,xt={};function Ot(n,t,e){"all"!==t?xt[e][t]=n:Object.keys(xt[e]).forEach((function(t){xt[e][t]=n}))}function kt(){return xt}function Et(){var n=$e(this,O);je(this,Y)||$e(this,".fp-prev")?kt().m.left&&(un({j:"slideArrow"}),Jn.cn(qn,{section:n})):kt().m.right&&(un({j:"slideArrow"}),Jn.cn(nt,{section:n}))}function Dt(n){!nn().loopHorizontal&&nn().controlArrows&&(vr(Re(U,n.section),0!==n.slideIndex),vr(Re(X,n.section),null!=Ce(n.destiny)))}function Lt(){clearTimeout(At),un({I:!1})}function Rt(n,t,e){var r=$e(n,O),i=ln().L.filter((function(n){return n.item==r}))[0],o=i.slides.filter((function(n){return n.item==t}))[0],a={slides:n,destiny:t,direction:e,destinyPos:{left:t.offsetLeft},slideIndex:o.index(),section:r,sectionIndex:i.index(),anchorLink:i.anchor,slidesNav:Re(B,r)[0],slideAnchor:o.anchor,prevSlide:i.activeSlide.item,prevSlideIndex:i.activeSlide.index(),items:{section:i,origin:i.activeSlide,destination:o},localIsResizing:an.P};a.xMovement=jt(a.prevSlideIndex,a.slideIndex),a.direction=a.direction?a.direction:a.xMovement,a.localIsResizing||un({canScroll:!1}),sn("parallax","applyHorizontal",a),sn("cards","apply",a),sn("dropEffect","apply",a),sn("waterEffect","apply",a),nn().onSlideLeave&&!a.localIsResizing&&"none"!==a.xMovement&&fr(nn().onSlideLeave)&&!1===Xt("onSlideLeave",a)?un({I:!1}):(fn("dropEffect")&&nn().dropEffect||(Ye(t,y),Ue(rr(t),y)),Wt(),a.localIsResizing||(Zn(a.prevSlide),Yn(o)),Dt(a),i.isActive&&!a.localIsResizing&&bt(a.slideIndex,a.slideAnchor,a.anchorLink),sn("continuousHorizontal","apply",a),Jn.cn(ht,a),vn()?Nt(a):zt(n,a,!0),nn().interlockedSlides&&d.interlockedSlides&&(fn("continuousHorizontal")&&void 0!==e&&e!==a.xMovement||sn("interlockedSlides","apply",a)))}function zt(n,t,e){var r=t.destinyPos;if(Tt(t.slidesNav,t.slideIndex),un({scrollX:Math.round(r.left)}),nn().css3){var i="translate3d(-"+Math.round(r.left)+"px, 0px, 0px)";d.test.sn[t.sectionIndex]=i,fn("dragAndMove")&&void 0!==t.dn||En(Re(I,n)),Ie(Re(I,n),Rn(i)),fn("interlockedSlides")||clearTimeout(At),At=setTimeout((function(){e&&Nt(t)}),nn().scrollingSpeed)}else d.test.left[t.sectionIndex]=Math.round(r.left),Wn(n,Math.round(r.left),nn().scrollingSpeed,(function(){e&&Nt(t)}))}function jt(n,t){return n==t?"none":n>t?"left":"right"}function Ht(){clearTimeout(At)}function Nt(n){sn("dragAndMove","afterSlideLoads",n),sn("continuousHorizontal","afterSlideLoads",n),n.localIsResizing||(sn("parallax","afterSlideLoads"),sn("scrollOverflowReset","setPrevious",n.prevSlide),sn("scrollOverflowReset","reset"),fr(nn().afterSlideLoad)&&Xt("afterSlideLoad",n),un({canScroll:!0}),Bn(n.destiny),Jn.cn(wt,n)),un({I:!1}),sn("interlockedSlides","interlockedSlides",n)}function It(n,t){Hn(0,"internal"),void 0!==t&&un({P:!0}),Rt($e(n,H),n),void 0!==t&&un({P:!1}),Hn(tn().scrollingSpeed,"internal")}xt.m={up:!0,down:!0,left:!0,right:!0},xt.k=ze({},xt.m),Jn.ln($n,(function(n){var t=n.target;(dr(t,G)||$e(t,G))&&Et.call(t,n)})),d.landscapeScroll=Rt,Jn.ln(rt,(function(){Jn.ln(pt,Lt)}));var Pt=null,Ct=null;function Wt(){an.R=null,an.L.map((function(n){var t=je(n.item,y);if(n.isActive=t,n.nn=ke.nn(n.item),t&&(an.R=n),n.slides.length&&(n.activeSlide=null,n.slides.map((function(t){var e=je(t.item,y);t.nn=ke.nn(n.item),t.isActive=e,e&&(n.activeSlide=t)})),!n.slides.find((function(n){return n.isActive})))){var e=nn().A&&n.slides.length>0?n.slides[n.slides.length-1]:n.slides[0];n.activeSlide=e,n.activeSlide&&(n.activeSlide.isActive=!0)}})),function(){var n=an.R,t=!!an.R&&an.R.slides.length,e=an.R?an.R.activeSlide:null;if(!n&&an.L.length&&!ln().H&&null!==Pt){var r=Vt(Pt,an.L);r&&(an.R=r,an.R.isActive=!0,Ye(an.R.item,y)),an.R&&jn(an.R.item.offsetTop)}if(t&&!e&&null!==Ct){var i=Vt(Ct,an.R.slides);i&&(an.R.activeSlide=i,an.R.activeSlide.isActive=!0,Ye(an.R.activeSlide.item,y)),an.R.activeSlide&&It(an.R.activeSlide.item,"internal")}}(),sr(q(),"onUpdateStateDone")}function Ft(){var n=Re(nn().sectionSelector+", "+O,q()),t=Le(n),e=Array.from(n).map((function(n){return new Zt(n)})),r=e.filter((function(n){return n.isVisible})),i=r.reduce((function(n,t){return n.concat(t.slides)}),[]);Pt=Bt(an.R),Ct=Bt(an.R?an.R.activeSlide:null),an.O=t.length,an.D=r.reduce((function(n,t){return n+t.slides.length}),0),an.L=r,an.en=e,an.slides=i,an.on=an.L.concat(an.slides)}function Bt(n){if(!n)return null;var t=n?n.item:null,e=n.tn?an.en:an.R.vn;if(t){var r=Sn(e,t);return r?r.index():null}return null}function Vt(n,t){var e,r=n-1,i=n;do{if(e=t[r]||t[i])break;r-=1,i+=1}while(r>=0||i<t.length);return e}Jn.ln(ot,(function(){Pt=null,Ct=null}));var Zt=function(n){var t=this;[].push.call(arguments,nn().sectionSelector),wn.apply(this,arguments),this.pn=Re(nn().slideSelector,n),this.vn=Array.from(this.pn).map((function(n){return new Gt(n,t)})),this.slides=this.vn.filter((function(n){return n.isVisible}));var e=nn().A&&this.slides.length>0?this.slides[this.slides.length-1]:this.slides.length>0?this.slides[0]:null;this.activeSlide=this.slides.length?this.slides.filter((function(n){return n.isActive}))[0]||e:null,this.activeSlide&&(this.activeSlide.isActive=!0)};Zt.prototype=wn.prototype,Zt.prototype.constructor=Zt;var Gt=function(n,t){this.parent=t,wn.call(this,n,nn().slideSelector)};function Yt(n){return n&&!n.item?new Mn(new Zt(n)):n?new Mn(n):null}function Ut(n){return n?new Tn(n):null}function Xt(n,t){var e=function(n,t){var e={afterRender:function(){return{section:Yt(ln().R),hn:Ut(ln().R.activeSlide)}},onLeave:function(){return{origin:Yt(t.items.origin),destination:Yt(t.items.destination),direction:t.direction,trigger:ln().j}},afterLoad:function(){return e.onLeave()},afterSlideLoad:function(){return{section:Yt(t.items.section),origin:Yt(t.items.origin),destination:Yt(t.items.destination),direction:t.direction,trigger:ln().j}},onSlideLeave:function(){return e.afterSlideLoad()},beforeLeave:function(){return e.onLeave()},onScrollOverflow:function(){return{section:Yt(ln().R),hn:Ut(ln().R.activeSlide),position:t.position,direction:t.direction}}};return e[n]()}(n,t);return sr(q(),n,e),!1!==nn()[n].apply(e[Object.keys(e)[0]],Sr(e))}function _t(n,t){en("recordHistory",n,t)}function Qt(n,t){n||jn(0),en("autoScrolling",n,t);var e=ln().R.item;if(nn().autoScrolling&&!nn().scrollBar)Ie(Cn,{overflow:"hidden",height:"100%"}),Ue(In,g),_t(tn().recordHistory,"internal"),Ie(q(),{"-ms-touch-action":"none","touch-action":"none"}),null!=e&&jn(e.offsetTop);else if(Ie(Cn,{overflow:"visible",height:"initial"}),Ye(In,g),_t(!!nn().autoScrolling&&tn().recordHistory,"internal"),Ie(q(),{"-ms-touch-action":"","touch-action":""}),Ln(q()),null!=e){var r=On(e.offsetTop);r.element.scrollTo(0,r.options)}sr(q(),"setAutoScrolling",n)}function Jt(n){return je(ln().R.item,E)?de(ln().R.item):ln().R.item.offsetTop}function Kt(){for(var n=Re(z),t=0;t<n.length;t++)It(n[t],"internal")}function $t(){var n=Re(".fp-auto-height")[0]||we()&&Re(".fp-auto-height-responsive")[0];nn().lazyLoading&&n&&Re(".fp-section:not(.active)").forEach((function(n){var t,e,r,i,o;e=(t=n.getBoundingClientRect()).top,r=t.bottom,i=e+2<an._&&e>0,o=r>2&&r<an._,(i||o)&&Yn(Sn(ln().L,n))}))}function qt(){sr(Pe(this),"click")}function ne(){hr(Re(D));var n=u.createElement("div");n.setAttribute("id","fp-nav");var t=u.createElement("ul");n.appendChild(t),Xe(n,In);var e=Re(D)[0];Ye(e,"fp-"+nn().navigationPosition),nn().showActiveTooltip&&Ye(e,"fp-show-active");for(var r="",i=0;i<ln().L.length;i++){var o=ln().L[i],a="";nn().anchors.length&&(a=o.anchor),r+='<li><a href="#'+encodeURI(a)+'"><span class="fp-sr-only">'+yt(o.index(),"Section")+"</span><span></span></a>";var l=nn().navigationTooltips[o.index()];void 0!==l&&""!==l&&(r+='<div class="fp-tooltip fp-'+nn().navigationPosition+'">'+l+"</div>"),r+="</li>"}Re("ul",e)[0].innerHTML=r;var c=Re("li",Re(D)[0])[ln().R.index()];Ye(Re("a",c),y)}function te(n){n.preventDefault&&ir(n),un({j:"verticalNav"});var t=Fe($e(this,"#fp-nav li"));Jn.cn(st,{destination:ln().L[t]})}function ee(n,t){var e;e=n,nn().menu&&nn().menu.length&&Re(nn().menu).forEach((function(n){null!=n&&(Ue(Re(M,n),y),Ye(Re('[data-menuanchor="'+e+'"]',n),y))})),function(n,t){var e=Re(D)[0];nn().navigation&&null!=e&&"none"!==e.style.display&&(Ue(Re(M,e),y),Ye(n?Re('a[href="#'+n+'"]',e):Re("a",Re("li",e)[t]),y))}(n,t)}Gt.prototype=wn.prototype,Gt.prototype.constructor=Zt,d.setRecordHistory=_t,d.setAutoScrolling=Qt,d.test.setAutoScrolling=Qt,(new Date).getTime();var re,ie,oe,ae,ue,le,ce=(ie=!0,oe=(new Date).getTime(),ae=!a.fullpage_api,function(n,t){var e=(new Date).getTime(),r="wheel"===n?nn().scrollingSpeed:100;return ie=ae||e-oe>=r,ae=!a.fullpage_api,ie&&(re=t(),oe=e),void 0===re||re});function fe(n,t){if(fr(nn().beforeLeave))return ce(ln().j,(function(){return Xt(n,t)}))}function se(n,t,e){var r=n.item;if(null!=r){var i,o,a={element:r,callback:t,isMovementUp:e,dtop:de(r),yMovement:Dn(ln().R,r),anchorLink:n.anchor,sectionIndex:n.index(),activeSlide:n.activeSlide?n.activeSlide.item:null,leavingSection:ln().R.index()+1,localIsResizing:an.P,items:{origin:ln().R,destination:n},direction:null};if(!(ln().R.item==r&&!an.P||nn().scrollBar&&er()===a.dtop&&!je(r,E))){if(null!=a.activeSlide&&(i=or(a.activeSlide,"data-anchor"),o=Fe(a.activeSlide,null)),!a.localIsResizing){var u=a.yMovement;if(void 0!==e&&(u=e?"up":"down"),a.direction=u,cn("dropEffect")&&d.dropEffect.onLeave_(a),cn("waterEffect")&&d.waterEffect.onLeave_(a),sn("effects","beforeLeave",a),fr(nn().beforeLeave)&&!1===fe("beforeLeave",a))return;if(fr(nn().onLeave)&&!Xt("onLeave",a))return}sn("parallax","apply",a),sn("cards","apply",a),sn("dropEffect","apply",a),sn("waterEffect","apply",a),nn().autoScrolling&&nn().continuousVertical&&void 0!==a.isMovementUp&&(!a.isMovementUp&&"up"==a.yMovement||a.isMovementUp&&"down"==a.yMovement)&&(a=function(n){un({J:!0});var t=ln().R.item;return n.isMovementUp?nr(t,wr(t,O)):qe(t,br(t,O).reverse()[0]),jn(Jt()),Kt(),n.gn=t,n.dtop=function(n){return n.isMovementUp&&je(n.element,E)?de(n.element)-He()+n.element.offsetHeight:n.element.offsetTop}(n),n.yMovement=Dn(ln().R,n.element),n.leavingSection=n.items.origin.index()+1,n.sectionIndex=n.items.destination.index(),sr(q(),"onContinuousVertical",n),n}(a)),sn("scrollOverflowReset","setPrevious",ln().R.item),a.localIsResizing||Zn(ln().R.item),fn("dropEffect")&&nn().dropEffect||(Ye(r,y),Ue(rr(r),y)),Wt(),Yn(n),un({canScroll:d.test.mn}),bt(o,i,a.anchorLink),Jn.cn(gt,a),function(n){un({V:"none",scrollY:Math.round(n.dtop)}),Jn.cn(pt,n),fn("effects")&&sn("effects","performMovement",n);var t=nn().scrollingSpeed<700,e=t?700:nn().scrollingSpeed;if(nn().css3&&nn().autoScrolling&&!nn().scrollBar)zn("translate3d(0px, -"+Math.round(n.dtop)+"px, 0px)",!0),fn("waterEffect")&&Kt(),nn().scrollingSpeed?(clearTimeout(ue),ue=setTimeout((function(){ve(n),un({canScroll:!t||d.test.mn})}),nn().scrollingSpeed)):ve(n);else{var r=On(n.dtop);d.test.top=-n.dtop+"px",clearTimeout(ue),Wn(r.element,r.options,nn().scrollingSpeed,(function(){nn().scrollBar?ue=setTimeout((function(){ve(n)}),30):(ve(n),un({canScroll:!t||d.test.mn}))}))}t&&(clearTimeout(le),le=setTimeout((function(){un({canScroll:!0})}),e))}(a),un({W:a.anchorLink}),ee(a.anchorLink,function(n){return null!=n.gn?n.isMovementUp?an.O-1:0:n.sectionIndex}(a))}}}function de(n){var t=n.offsetHeight,e=n.offsetTop,r=e,i=fn("dragAndMove")&&sn("dragAndMove","isGrabbing")?sn("dragAndMove","isScrollingDown"):e>an.X,o=r-He()+t,a=nn().bigSectionsDestination;return t>He()?(i||a)&&"bottom"!==a||(r=o):(i||an.P&&null==Ce(n))&&(r=o),fn("offsetSections")&&(r=d.offsetSections.getSectionPosition_(i,r,n)),un({X:r}),r}function ve(n){un({H:!1}),function(n){null!=n.gn&&(n.isMovementUp?nr(Re(O)[0],n.gn):qe(Re(O)[ln().L.length-1],br(n.element,O).reverse()),jn(Jt()),function(){for(var n=Re(z),t=0;t<n.length;t++)It(n[t],"internal")}(),n.sectionIndex=n.items.destination.index(),n.leavingSection=n.items.origin.index()+1,un({J:!1}))}(n),fr(nn().afterLoad)&&!n.localIsResizing&&Xt("afterLoad",n),sn("continuousHorizontal","afterLoad",n),sn("parallax","afterLoad"),sn("waterEffect","afterLoad"),sn("dropEffect","afterLoad"),sn("scrollOverflowReset","reset"),sn("resetSliders","apply",n),Wt(),n.localIsResizing||Bn(n.element),Ye(n.element,T),Ue(rr(n.element),T),$t(),un({canScroll:!0}),Jn.cn(mt,n),fr(n.callback)&&n.callback()}function pe(n,t){en("fitToSection",n,t)}function he(){an.canScroll&&nn().fitToSection&&(un({P:!0}),se(an.R),un({P:!1}))}function ge(){var n=nn().responsive||nn().responsiveWidth,t=nn().responsiveHeight,e=n&&a.innerWidth<n,r=t&&a.innerHeight<t;n&&t?me(e||r):n?me(e):t&&me(r)}function me(n){var t=we();n?t||(Qt(!1,"internal"),pe(!1,"internal"),Ve(Re(D)),Ye(In,m),fr(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),sn("responsiveSlides","toSections"),sr(q(),"afterResponsive",n)):t&&(Qt(tn().autoScrolling,"internal"),pe(tn().autoScrolling,"internal"),Ze(Re(D)),Ue(In,m),fr(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),sn("responsiveSlides","toSlides"),sr(q(),"afterResponsive",n))}function we(){return je(In,m)}function be(n){nn().verticalCentered&&(!nn().scrollOverflow&&ke.wn(n.item)||ke.bn(n)||je(n.item,P)||Ye(n.item,P))}d.moveTo=moveTo,d.getScrollY=function(){return an.scrollY},Jn.ln(it,(function(){clearTimeout(ue),clearTimeout(le)})),d.setFitToSection=pe,d.fitToSection=he,d.setResponsive=me;var Se,ye=null;function Me(n){var t=n.item,e=n.pn.length,r=n.index();!ln().R&&n.isVisible&&(Ye(t,y),Wt()),!ye&&n.isVisible&&(ye=ln().R.item),fn("offsetSections")&&Ie(t,{height:pn(t)}),nn().paddingTop&&Ie(t,{"padding-top":nn().paddingTop}),nn().paddingBottom&&Ie(t,{"padding-bottom":nn().paddingBottom}),void 0!==nn().sectionsColor[r]&&Ie(t,{"background-color":nn().sectionsColor[r]}),void 0!==nn().anchors[r]&&t.setAttribute("data-anchor",n.anchor),e||be(n)}function Te(){nn().scrollOverflow&&!nn().scrollBar&&(ke.Sn(),ke.yn())}function Ae(){Jn.removeListener(Kn,Te),lr("keyup",ke.Mn)}d.getActiveSection=function(){return ln().R},Jn.ln(rt,(function(){Jn.ln(Kn,Te),Jn.ln(gt,ke.onLeave),Jn.ln(ht,ke.onLeave),Jn.ln(wt,ke.afterLoad),Jn.ln(mt,ke.afterLoad),Jn.ln(it,Ae),ar("keyup",ke.Mn)}));var xe,Oe,ke={Tn:null,An:!0,xn:!0,On:null,kn:null,En:function(n){var t=ln().R;if(!an.canScroll||v()&&nn().scrollOverflow&&ke.bn(t)&&ke.isScrolled(ln().Z,t.item))return ir(n),!1},Dn:function(n){if(!xr()&&nn().keyboardScrolling&&[38,33,32,40,34,36,35].indexOf(n.keyCode)>-1&&!ke.xn)return ir(n),!1},Mn:function(){ke.An=an.canScroll},onLeave:function(){clearTimeout(Se),ke.xn=!1},afterLoad:function(){ke.xn=!1,clearTimeout(Se),Se=setTimeout((function(){ke.An=an.canScroll}),200)},Ln:function(){u.activeElement===this.Tn&&(this.Tn.blur(),ke.xn=!1)},yn:function(){if(nn().scrollOverflow&&ke.An){ke.Ln();var n=ke.Rn(ln().R.item);!n||l||f||(this.Tn=n,requestAnimationFrame((function(){n.focus({zn:!0}),ke.xn=!0}))),ke.An=!1}},Sn:function(){nn().scrollOverflowMacStyle&&!c&&Ye(In,"fp-scroll-mac"),ln().on.forEach((function(n){if(!(n.slides&&n.slides.length||je(n.item,"fp-auto-height-responsive")&&we())){var t,e=An(n.item),r=ke.wn(n.item),o=(t=n).tn?t:t.parent;if(s){var a=r?"addClass":"removeClass";i[a](o.item,F),i[a](n.item,F)}else Ye(o.item,F),Ye(n.item,F);n.nn||(ke.jn(e),ke.Hn(e)),n.nn=!0}}))},Hn:function(n){var t=ke.Rn(n);t&&t.addEventListener("scroll",ke.Nn),n.addEventListener("wheel",ke.En,{passive:!1}),n.addEventListener("keydown",ke.Dn,{passive:!1})},In:function(n){var t=ke.Rn(n);t&&t.removeEventListener("scroll",ke.Nn),n.removeEventListener("wheel",ke.En,{passive:!1}),n.removeEventListener("keydown",ke.Dn,{passive:!1})},jn:function(n){var t=document.createElement("div");t.className=C,Je(n,t),t.setAttribute("tabindex","-1")},Pn:function(n){n.slides&&n.slides.length||n.nn&&(ke.Cn(n.item),ke.In(n.item),n.nn=!1)},Cn:function(n){var t=Re(W,n)[0];t&&(Ke(t),n.removeAttribute("tabindex"))},Rn:function(n){var t=An(n);return Re(W,t)[0]||t},nn:function(n){return je(n,C)||null!=Re(W,n)[0]},bn:function(n){return n.tn&&n.activeSlide?n.activeSlide.nn:n.nn},wn:function(n){return ke.Rn(n).scrollHeight>a.innerHeight},isScrolled:function(n,t){if(!an.canScroll)return!1;if(nn().scrollBar)return!0;var e=ke.Rn(t);if(!nn().scrollOverflow||!je(e,C)||je(t,"fp-noscroll")||je(An(t),"fp-noscroll"))return!0;var r=s?1:0,i=e.scrollTop,o="up"===n&&i<=0,a="down"===n&&e.scrollHeight<=Math.ceil(e.offsetHeight+i)+r,u=o||a;return u||"none"===n||(this.On=(new Date).getTime()),u},Wn:function(){this.kn=(new Date).getTime();var n=this.kn-ke.On,t=(l||f)&&an.G,e=an.Y&&n>600;return t&&n>400||e},Nn:(xe=0,function(n){var t=n.target.scrollTop,e="none"!==an.V?an.V:xe<t?"down":"up";xe=t,fr(nn().onScrollOverflow)&&Xt("onScrollOverflow",{position:t,direction:e}),je(n.target,C)&&an.canScroll&&ke.isScrolled(e,n.target)&&ke.Wn()&&ke.wn(ln().R.item)&&Jn.cn(ut,{direction:e})})};function Ee(n,t){a.console&&a.console[n]&&a.console[n]("fullPage: "+t)}function De(n){return"none"!==a.getComputedStyle(n).display}function Le(n){return Array.from(n).filter((function(n){return De(n)}))}function Re(n,t){return(t=arguments.length>1?t:document)?t.querySelectorAll(n):null}function ze(n){n=n||{};for(var t=1,e=arguments.length;t<e;++t){var r=arguments[t];if(r)for(var i in r)r.hasOwnProperty(i)&&"__proto__"!=i&&"constructor"!=i&&("[object Object]"!==Object.prototype.toString.call(r[i])?n[i]=r[i]:n[i]=ze(n[i],r[i]))}return n}function je(n,t){return null!=n&&n.classList.contains(t)}function He(){return"innerHeight"in a?a.innerHeight:u.documentElement.offsetHeight}function Ne(){return a.innerWidth}function Ie(n,t){var e;for(e in n=Be(n),t)if(t.hasOwnProperty(e)&&null!==e)for(var r=0;r<n.length;r++)n[r].style[e]=t[e];return n}function Pe(n,t){if(!n)return null;if(null==t)return n.previousElementSibling;var e=Pe(n);return e&&dr(e,t)?e:null}function Ce(n,t){if(!n)return null;if(null==t)return n.nextElementSibling;var e=Ce(n);return e&&dr(e,t)?e:null}function We(n){return n[n.length-1]}function Fe(n,t){n=Ge(n)?n[0]:n;for(var e=null!=t?Re(t,n.parentNode):n.parentNode.childNodes,r=0,i=0;i<e.length;i++){if(e[i]==n)return r;1==e[i].nodeType&&r++}return-1}function Be(n){return Ge(n)?n:[n]}function Ve(n){n=Be(n);for(var t=0;t<n.length;t++)n[t].style.display="none";return n}function Ze(n){n=Be(n);for(var t=0;t<n.length;t++)n[t].style.display="block";return n}function Ge(n){return"[object Array]"===Object.prototype.toString.call(n)||"[object NodeList]"===Object.prototype.toString.call(n)}function Ye(n,t){n=Be(n);for(var e=0;e<n.length;e++)n[e].classList.add(t);return n}function Ue(n,t){n=Be(n);for(var e=t.split(" "),r=0;r<e.length;r++){t=e[r];for(var i=0;i<n.length;i++)n[i].classList.remove(t)}return n}function Xe(n,t){t.appendChild(n)}function _e(n,t,e){var r;t=t||u.createElement("div");for(var i=0;i<n.length;i++){var o=n[i];(e&&!i||!e)&&(r=t.cloneNode(!0),o.parentNode.insertBefore(r,o)),r.appendChild(o)}return n}function Qe(n,t){_e(n,t,!0)}function Je(n,t){for("string"==typeof t&&(t=pr(t)),n.appendChild(t);n.firstChild!==t;)t.appendChild(n.firstChild)}function Ke(n){for(var t=u.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);n.parentNode.replaceChild(t,n)}function $e(n,t){return n&&1===n.nodeType?dr(n,t)?n:$e(n.parentNode,t):null}function qe(n,t){tr(n,n.nextSibling,t)}function nr(n,t){tr(n,n,t)}function tr(n,t,e){Ge(e)||("string"==typeof e&&(e=pr(e)),e=[e]);for(var r=0;r<e.length;r++)n.parentNode.insertBefore(e[r],t)}function er(){var n=u.documentElement;return(a.pageYOffset||n.scrollTop)-(n.clientTop||0)}function rr(n){return Array.prototype.filter.call(n.parentNode.children,(function(t){return t!==n}))}function ir(n){n.preventDefault()}function or(n,t){return n.getAttribute(t)}function ar(n,t,e){u.addEventListener(n,t,"undefined"===e?null:e)}function ur(n,t,e){a.addEventListener(n,t,"undefined"===e?null:e)}function lr(n,t,e){u.removeEventListener(n,t,"undefined"===e?null:e)}function cr(n,t,e){a.removeEventListener(n,t,"undefined"===e?null:e)}function fr(n){if("function"==typeof n)return!0;var t=Object.prototype.toString.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t}function sr(n,t,e){var r;e=void 0===e?{}:e,"function"==typeof a.CustomEvent?r=new CustomEvent(t,{detail:e}):(r=u.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,e),n.dispatchEvent(r)}function dr(n,t){return(n.matches||n.Fn||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector).call(n,t)}function vr(n,t){if("boolean"==typeof t)for(var e=0;e<n.length;e++)n[e].style.display=t?"block":"none";return n}function pr(n){var t=u.createElement("div");return t.innerHTML=n.trim(),t.firstChild}function hr(n){n=Be(n);for(var t=0;t<n.length;t++){var e=n[t];e&&e.parentElement&&e.parentNode.removeChild(e)}}function gr(n,t){Array.prototype.filter.call(n,t)}function mr(n,t,e){for(var r=n[e],i=[];r;)(dr(r,t)||null==t)&&i.push(r),r=r[e];return i}function wr(n,t){return mr(n,t,"nextElementSibling")}function br(n,t){return mr(n,t,"previousElementSibling")}function Sr(n){return Object.keys(n).map((function(t){return n[t]}))}function yr(n){return n[n.length-1]}function Mr(n,t){for(var e=0,r=n.slice(Math.max(n.length-t,1)),i=0;i<r.length;i++)e+=r[i];return Math.ceil(e/t)}function Tr(n,t){n.setAttribute(t,or(n,"data-"+t)),n.removeAttribute("data-"+t)}function Ar(n,t){var e=[n];do{n=n.parentNode,e.push(n)}while(!dr(n,t));return e}function xr(){var n=u.activeElement;return dr(n,"textarea")||dr(n,"input")||dr(n,"select")||"true"==or(n,"contentEditable")||""==or(n,"contentEditable")}function Or(n){Jn.cn($n,{e:n,target:n.target})}function kr(){["click","touchstart"].forEach((function(n){lr(n,Or,{passive:!1})}))}function Er(){un({U:!0})}function Dr(){Ye(Re(nn().sectionSelector,q()),x),Ye(Re(nn().slideSelector,q()),L)}function Lr(n){var t=n.slides.length,e=n.pn,r=n.slides,i=100*t,o=100/t;if(!Re(H,n.item)[0]){var a=u.createElement("div");a.className=j,Qe(e,a);var l=u.createElement("div");l.className=N,Qe(e,l)}Ie(Re(I,n.item),{width:i+"%"}),t>1&&(nn().controlArrows&&function(n){var t=n.item,e=[pr(nn().controlArrowsHTML[0]),pr(nn().controlArrowsHTML[1])];qe(Re(H,t)[0],e),Ye(e,Z),Ye(e[0],Y),Ye(e[1],"fp-next"),"#fff"!==nn().controlArrowColor&&(Ie(Re(X,t),{"border-color":"transparent transparent transparent "+nn().controlArrowColor}),Ie(Re(U,t),{"border-color":"transparent "+nn().controlArrowColor+" transparent transparent"})),nn().loopHorizontal||Ve(Re(U,t))}(n),nn().slidesNavigation&&function(n){var t=n.item,e=n.slides.length;Xe(pr('<div class="fp-slidesNav"><ul></ul></div>'),t);var r=Re(B,t)[0];Ye(r,"fp-"+nn().slidesNavPosition);for(var i=0;i<e;i++)Xe(pr('<li><a href="#"><span class="fp-sr-only">'+yt(i,"Slide",Re(R,t)[i])+"</span><span></span></a></li>"),Re("ul",r)[0]);Ie(r,{"margin-left":"-"+r.innerWidth/2+"px"});var o=n.activeSlide?n.activeSlide.index():0;Ye(Re("a",Re("li",r)[o]),y)}(n)),r.forEach((function(n){Ie(n.item,{width:o+"%"}),nn().verticalCentered&&be(n)}));var c=fn("responsiveSlides")?null:n.activeSlide||null;null!=c&&an.R&&(0!==an.R.index()||0===an.R.index()&&0!==c.index())?(It(c.item,"internal"),Ye(c.item,"fp-initial")):Ye(e[nn().A&&e.length>0?e.length-1:0],y)}window.fp_utils=Object.assign(a.fp_utils||{},{$:Re,deepExtend:ze,hasClass:je,getWindowHeight:He,css:Ie,prev:Pe,next:Ce,last:We,index:Fe,getList:Be,hide:Ve,show:Ze,isArrayOrList:Ge,addClass:Ye,removeClass:Ue,appendTo:Xe,wrap:_e,wrapAll:Qe,wrapInner:Je,unwrap:Ke,closest:$e,after:qe,before:nr,insertBefore:tr,getScrollTop:er,siblings:rr,preventDefault:ir,isFunction:fr,trigger:sr,matches:dr,toggle:vr,createElementFromHTML:pr,remove:hr,filter:gr,untilAll:mr,nextAll:wr,prevAll:br,showError:Ee,scrollOverflowHandler:ke}),Jn.ln(rt,(function(){["click","touchstart"].forEach((function(n){ar(n,Or,{passive:!1})})),ur("focus",Er),Jn.ln(it,kr)}));var Rr={attributes:!1,subtree:!0,childList:!0,characterData:!0};function zr(){return sn("responsiveSlides","isResponsiveSlidesChanging")||Le(Re(nn().slideSelector,q())).length!==ln().D}function jr(n){var t=zr();(zr()||sn("responsiveSlides","isResponsiveSlidesChanging")||Le(Re(nn().sectionSelector,q())).length!==ln().O)&&!an.J&&(nn().observer&&Oe&&Oe.disconnect(),Ft(),Wt(),nn().anchors=[],hr(Re(D)),sn("responsiveSlides","isResponsiveSlidesChanging")||Dr(),rn(),nn().navigation&&ne(),nn().scrollOverflow&&ke.Sn(),t&&(hr(Re(B)),hr(Re(G))),ln().L.forEach((function(n){n.slides.length?t&&Lr(n):Me(n)}))),nn().observer&&Oe&&Re(h)[0]&&Oe.observe(Re(h)[0],Rr)}Jn.ln(rt,(function(){var n,t,e;nn().observer&&"MutationObserver"in window&&Re(h)[0]&&(n=Re(h)[0],t=Rr,(e=new MutationObserver(jr)).observe(n,t),Oe=e),Jn.ln(at,jr)})),Jn.ln(it,(function(){Oe&&(Oe.disconnect(),Oe=null)})),d.render=jr;var Hr=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});ur("testPassive",null,t),cr("testPassive",null,t)}catch(n){}return function(){return n}}();function Nr(){return!!Hr()&&{passive:!1}}var Ir,Pr,Cr,Wr,Fr=(Cr=(new Date).getTime(),Wr=[],{Bn:function(n){var t=(n=n||a.event).wheelDelta||-n.deltaY||-n.detail,e=Math.max(-1,Math.min(1,t)),r=void 0!==n.wheelDeltaX||void 0!==n.deltaX;Ir=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!r;var i=(new Date).getTime();Pr=e<0?"down":"up",Wr.length>149&&Wr.shift(),Wr.push(Math.abs(t));var o=i-Cr;Cr=i,o>200&&(Wr=[])},Vn:function(){var n=Mr(Wr,10)>=Mr(Wr,70);return!!Wr.length&&n&&Ir},Zn:function(){return Pr}});function Br(){var n=nn().css3?er()+He():yr(ln().L).item.offsetTop+yr(ln().L).item.offsetHeight,t=On(n);d.test.top=-n+"px",un({canScroll:!1}),Wn(t.element,t.options,nn().scrollingSpeed,(function(){setTimeout((function(){un({H:!0}),un({canScroll:!0})}),30)}))}function Vr(){q().getBoundingClientRect().bottom>=0&&Zr()}function Zr(){var n=On(yr(ln().L).item.offsetTop);un({canScroll:!1}),Wn(n.element,n.options,nn().scrollingSpeed,(function(){un({canScroll:!0}),un({H:!1}),un({Gn:!1})}))}var Gr,Yr,Ur,Xr=(Gr=!1,Yr={},Ur={},function(n,t,e){switch(n){case"set":Yr[t]=(new Date).getTime(),Ur[t]=e;break;case"isNewKeyframe":var r=(new Date).getTime();Gr=r-Yr[t]>Ur[t]}return Gr});function _r(){var n=ln().R.next();n||!nn().loopBottom&&!nn().continuousVertical||(n=ln().L[0]),null!=n?se(n,null,!1):q().scrollHeight<In.scrollHeight&&nn().scrollBar&&nn().scrollBeyondFullpage&&Jn.cn(vt)}function Qr(){var n=ln().R.prev();n||!nn().loopTop&&!nn().continuousVertical||(n=yr(ln().L)),null!=n&&se(n,null,!0)}d.moveSectionDown=_r,d.moveSectionUp=Qr;var Jr=0;function Kr(n){nn().autoScrolling&&(an.canScroll&&(n.pageY<Jr&&kt().m.up?Qr():n.pageY>Jr&&kt().m.down&&_r()),Jr=n.pageY)}function $r(n){if(kt().m[n]){var t="down"===n?_r:Qr;if(fn("scrollHorizontally")&&(t=sn("scrollHorizontally","getScrollSection",{type:n,scrollSection:t})),fn("freeSlideScroll")){var e=sn("freeSlideScroll","getScrollSection",{type:n,scrollSection:t});e&&(t=e)}nn().scrollOverflow&&ke.bn(ln().R)?ke.isScrolled(n,ln().R.item)&&ke.Wn()&&t&&t():t&&t()}}var qr,ni,ti,ei=0,ri=0,ii=0,oi=0,ai=vi(),ui={Yn:"ontouchmove"in window?"touchmove":ai?ai.move:null,Un:"ontouchstart"in window?"touchstart":ai?ai.down:null};function li(n){var t=$e(n.target,O)||ln().R.item,e=ke.bn(ln().R);if(ci(n)){un({G:!0,Y:!1}),nn().autoScrolling&&(e&&!an.canScroll||nn().scrollBar)&&ir(n);var r=di(n);ii=r.y,oi=r.x;var i=Math.abs(ei-ii)>a.innerHeight/100*nn().touchSensitivity,o=Math.abs(ri-oi)>Ne()/100*nn().touchSensitivity,u=Re(H,t).length&&Math.abs(ri-oi)>Math.abs(ei-ii),l=ei>ii?"down":"up";un({V:u?ri>oi?"right":"left":l}),u?!an.I&&o&&(ri>oi?kt().m.right&&Jn.cn(nt,{section:t}):kt().m.left&&Jn.cn(qn,{section:t})):nn().autoScrolling&&an.canScroll&&i&&$r(l)}}function ci(n){return void 0===n.pointerType||"mouse"!=n.pointerType}function fi(n){if(nn().fitToSection&&un({B:!1}),ci(n)){var t=di(n);ei=t.y,ri=t.x}ur("touchend",si)}function si(){cr("touchend",si),un({G:!1})}function di(n){var t={};return t.y=void 0!==n.pageY&&(n.pageY||n.pageX)?n.pageY:n.touches[0].pageY,t.x=void 0!==n.pageX&&(n.pageY||n.pageX)?n.pageX:n.touches[0].pageX,f&&ci(n)&&nn().scrollBar&&void 0!==n.touches&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function vi(){var n;return a.PointerEvent&&(n={down:"pointerdown",move:"pointermove"}),n}function pi(n){nn().autoScrolling&&ci(n)&&kt().m.up&&(an.canScroll||ir(n))}function hi(n,t){var e=null==t?ln().R.item:t,r=Sn(an.L,e),i=Re(H,e)[0];if(!(null==i||dn()||an.I||r.slides.length<2)){var o=r.activeSlide,a="left"===n?o.prev():o.next();if(!a){if(!nn().loopHorizontal)return;a="left"===n?yr(r.slides):r.slides[0]}un({I:!d.test.mn}),Rt(i,a.item,n)}}function gi(n){hi("left",n)}function mi(n){hi("right",n)}function wi(n){var t=ln().L.filter((function(t){return t.anchor===n}))[0];if(!t){var e=void 0!==n?n-1:0;t=ln().L[e]}return t}function bi(n){null!=n&&Rt($e(n,H),n)}function Si(n,t){var e=wi(n);if(null!=e){var r=function(n,t){var e=t.slides.filter((function(t){return t.anchor===n}))[0];return null==e&&(n=void 0!==n?n:0,e=t.slides[n]),e?e.item:null}(t,e);e.anchor&&e.anchor===an.W||je(e.item,y)?bi(r):se(e,(function(){bi(r)}))}}function yi(n,t){var e=wi(n);void 0!==t?Si(n,t):null!=e&&se(e)}function Mi(){clearTimeout(ni),lr("keydown",Ti),lr("keyup",Ai)}function Ti(n){clearTimeout(ni);var t=n.keyCode,e=[37,39].indexOf(t)>-1,r=nn().autoScrolling||nn().fitToSection||e;9===t?function(n){var t=n.shiftKey,e=u.activeElement,r=Di(An(ln().R.item));function i(n){return ir(n),r[0]?r[0].focus():null}if(an.canScroll){if(!function(n){var t=Di(u),e=t.indexOf(u.activeElement),r=t[n.shiftKey?e-1:e+1],i=$e(r,R),o=$e(r,O);return!i&&!o}(n)){e?null==$e(e,".fp-section.active,.fp-section.active .fp-slide.active")&&(e=i(n)):i(n);var o=e==r[0],a=e==r[r.length-1],l=t&&o;if(l||!t&&a){ir(n);var c=function(n){var t,e=n?"prevPanel":"nextPanel",r=[],i=xn((an.R&&an.R.activeSlide?an.R.activeSlide:an.R)[e]());do{(r=Di(i.item)).length&&(t={Xn:i,_n:r[n?r.length-1:0]}),i=xn(i[e]())}while(i&&0===r.length);return t}(l),f=c?c.Xn:null;if(f){var s=f.tn?f:f.parent;Jn.cn(lt,{Qn:s.index()+1,slideAnchor:f.tn?0:f.index()}),ti=c._n,ir(n)}}}}else ir(n)}(n):!xr()&&nn().keyboardScrolling&&r&&(qr=n.ctrlKey,ni=setTimeout((function(){!function(n){var t=n.shiftKey,e=u.activeElement,r=dr(e,"video")||dr(e,"audio"),i=ke.isScrolled("up",ln().R.item),o=ke.isScrolled("down",ln().R.item),a=[37,39].indexOf(n.keyCode)>-1;if(function(n){(function(n){return[40,38,32,33,34].indexOf(n.keyCode)>-1&&!an.H})(n)&&!$e(n.target,W)&&n.preventDefault()}(n),an.canScroll||a)switch(un({j:"keydown"}),sr(q(),"keydown",n),n.keyCode){case 38:case 33:kt().k.up&&i?an.H?Jn.cn(ct,{e:n}):Qr():ke.yn();break;case 32:if(t&&kt().k.up&&!r&&i){Qr();break}case 40:case 34:if(kt().k.down&&o){if(an.H)return;32===n.keyCode&&r||_r()}else ke.yn();break;case 36:kt().k.up&&yi(1);break;case 35:kt().k.down&&yi(ln().L.length);break;case 37:kt().k.left&&(nn().A?mi():gi());break;case 39:kt().k.right&&(nn().A?gi():mi())}}(n)}),0))}function Ai(n){an.U&&(qr=n.ctrlKey)}function xi(){un({U:!1}),qr=!1}function Oi(n){Ei()}function ki(n){$e(ti,R)&&!$e(ti,z)||Ei()}function Ei(){ti&&(ti.focus(),ti=null)}function Di(n){return[].slice.call(Re('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], summary:not([disabled]), [contenteditable]',n)).filter((function(n){return"-1"!==or(n,"tabindex")&&null!==n.offsetParent}))}d.moveSlideLeft=gi,d.moveSlideRight=mi,d.moveTo=yi,Jn.ln(rt,(function(){ur("blur",xi),ar("keydown",Ti),ar("keyup",Ai),Jn.ln(it,Mi),Jn.ln(wt,Oi),Jn.ln(mt,ki)}));var Li=(new Date).getTime(),Ri=(new Date).getTime(),zi=[],ji=[];function Hi(n){n?(function(){var n,t="";a.addEventListener?n="addEventListener":(n="attachEvent",t="on");var e="onwheel"in u.createElement("div")?"wheel":void 0!==u.onmousewheel?"mousewheel":"DOMMouseScroll",r=Nr();"DOMMouseScroll"==e?u[n](t+"MozMousePixelScroll",Ii,r):u[n](t+e,Ii,r)}(),q().addEventListener("mousedown",Pi),q().addEventListener("mouseup",Ci)):(u.addEventListener?(lr("mousewheel",Ii,!1),lr("wheel",Ii,!1),lr("MozMousePixelScroll",Ii,!1)):u.detachEvent("onmousewheel",Ii),q().removeEventListener("mousedown",Pi),q().removeEventListener("mouseup",Ci))}function Ni(n){return Mr(n,10)>=Mr(n,70)}function Ii(n){var t=(new Date).getTime(),e=je(Re(".fp-completely")[0],"fp-normal-scroll"),r=function(n,t){(new Date).getTime();var e=ln().H&&n.getBoundingClientRect().bottom>=0&&"up"===Fr.Zn(),r=ln().Gn;if(r)return ir(t),!1;if(ln().H){if(e){var i;if(!(r||Xr("isNewKeyframe","beyondFullpage")&&Fr.Vn()))return(i=On(yr(ln().L).item.offsetTop+yr(ln().L).item.offsetHeight)).element.scrollTo(0,i.options),un({Gn:!1}),ir(t),!1;if(Fr.Vn())return e=!1,un({Gn:!0}),un({j:"wheel"}),Zr(),ir(t),!1}else Xr("set","beyondFullpage",1e3);if(!r&&!e)return!0}}(q(),n);if(an.Y||un({G:!1,Y:!0,V:"none"}),r)return!0;if(!1===r)return ir(n),!1;if(nn().autoScrolling&&!qr&&!e){var i=(n=n||a.event).wheelDelta||-n.deltaY||-n.detail,o=Math.max(-1,Math.min(1,i)),u=n.wheelDeltaX||-n.deltaX||0,l=n.deltaY||0,c=n.deltaX||0,f=n.shiftKey||!1,s=Math.abs(u)>0||Math.abs(c)>0,d=!f&&(Math.abs(c)<Math.abs(l)||!s),v=f||!d&&s&&Math.abs(c)>=Math.abs(l),p=o<0?"down":o>0?"up":"none",h=f?o:Math.max(-1,Math.min(1,u)),g=v?h<0?"right":h>0?"left":"none":"none";if(d&&!kt().m.down&&!kt().m.up)return!1;if(v&&"left"===g&&!kt().m.left)return!1;if(v&&"right"===g&&!kt().m.right)return!1;if(zi.length>149&&zi.shift(),ji.length>149&&ji.shift(),d)zi.push(Math.abs(i));else if(v){var m=f?Math.abs(i):Math.abs(u);ji.push(m)}!nn().scrollBar&&nn().scrollOverflow||ir(n);var w=t-Li,b=t-Ri;if(d?Li=t:v&&(Ri=t),w>200&&(zi=[]),b>200&&(ji=[]),un({Z:p}),an.canScroll&&!dn()){if(d&&fn("freeSlideScroll")&&sn("freeSlideScroll","handleWheel",{e:n,delta:o,direction:p,value:i}))return ir(n),!1;if(d&&Ni(zi))un({j:"wheel"}),$r(o<0?"down":"up");else if(v&&(f||Ni(ji))){var S=!1;fn("freeSlideScroll")&&sn("freeSlideScroll","shouldPreventHorizontalSnap",{e:n})&&(S=!0),S||(un({j:"wheel"}),"left"===g?gi():"right"===g&&mi())}}return!1}nn().fitToSection&&un({B:!1})}function Pi(n){var t;2==n.which&&(t=n.pageY,Jr=t,q().addEventListener("mousemove",Kr))}function Ci(n){2==n.which&&q().removeEventListener("mousemove",Kr)}function Wi(n){n?(Hi(!0),function(){if(ui.Yn&&(l||f)&&(!fn("dragAndMove")||"mouseonly"===nn().dragAndMove)){nn().autoScrolling&&(In.removeEventListener(ui.Yn,pi,{passive:!1