fullpage.js
Version:
Create beautiful fullscreen snap scrolling websites
11 lines • 69.4 kB
JavaScript
/*!
* fullPage 4.0.41
* 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,i,r=Object.freeze({__proto__:null,get showError(){return Ee},get isVisible(){return Le},get getVisible(){return De},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 ni},get insertBefore(){return ti},get getScrollTop(){return ei},get siblings(){return ii},get preventDefault(){return ri},get i(){return oi},get o(){return ai},get u(){return ui},get l(){return li},get v(){return ci},get isFunction(){return fi},get trigger(){return si},get matches(){return di},get toggle(){return vi},get createElementFromHTML(){return pi},get remove(){return hi},get filter(){return gi},get untilAll(){return mi},get nextAll(){return wi},get prevAll(){return bi},get toArray(){return Si},get p(){return yi},get h(){return Mi},get g(){return Ti},get S(){return Ai},get M(){return xi}});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 i=arguments[1],r=0;r<e;){var o=t[r];if(n.call(i,o,r,t))return o;r++}}}),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,i=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,r=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=i(r.length),c=t(e)?Object(new e(l)):new Array(l),f=0;f<l;)u=r[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),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[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",L="#fp-nav",D="fp-slide",R="."+D,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,rtl:!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(oi(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(oi(n,"data-tooltip").toString())}))}}var on={A:0,O:0,slides:[],L:[],D:null,R:null,j:!1,H:!1,N:!1,I:!1,P:!1,C:void 0,W:void 0,F:!1,canScroll:!0,B:"none",V:"none",Z:!1,G:!1,Y:!0,U:0,X:He(),_:!1,J:{},scrollY:0,scrollX:0,K:!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 fi(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,i,r,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,i=(15&o)<<4|(a=t.indexOf(n.charAt(c++)))>>2,r=(3&a)<<6|(u=t.indexOf(n.charAt(c++))),l+=String.fromCharCode(e),64!=a&&(l+=String.fromCharCode(i)),64!=u&&(l+=String.fromCharCode(r));return l=function(n){for(var t,e="",i=0,r=0,o=0;i<n.length;)(r=n.charCodeAt(i))<128?(e+=String.fromCharCode(r),i++):r>191&&r<224?(o=n.charCodeAt(i+1),e+=String.fromCharCode((31&r)<<6|63&o),i+=2):(o=n.charCodeAt(i+1),t=n.charCodeAt(i+2),e+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&t),i+=3);return e}(l),l}function i(n){return n.slice(3).slice(0,-3)}return function(n){var t=n.split("_");if(t.length>1){var r=t[1];return e(n.replace(i(t[1]),"").split("_")[0].slice(2).slice(0,-2))+"_"+e(r.slice(3).slice(0,-3))}return i(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 i=je(n,t);i&&null==e||!e?Ue(n,t):(!i&&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=oi(n,"data-anchor")||nn().anchors[Fe(n,nn().sectionSelector)],this.item=n,this.isVisible=Le(n),this.isActive=je(n,y),this.q=je(n,C)||null!=Re(W,n)[0],this.nn=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.nn?this.isVisible?an.L:an.tn:this.parent?this.parent.slides:0},wn.prototype.prev=function(){var n=this.siblings(),t=(this.nn?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.nn?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.en=function(){return this.nn?an.L:an.rn};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,i=nn();return i.autoScrolling&&!i.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 Ln(n,t){var e=n.index(),i=Fe(t,O);return e==i?"none":e>i?"up":"down"}function Dn(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()):Dn(q()),clearTimeout(yn),Ie(q(),Rn(n)),d.test.on=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,i){var r,o=function(n){return n.self!=a&&je(n,j)?n.scrollLeft:!nn().autoScrolling||nn().scrollBar?ei():n.offsetTop}(n),u=t-o,l=!1,c=an.F;un({F:!0}),Nn&&window.cancelAnimationFrame(Nn),Nn=function(f){r||(r=f);var s=Math.floor(f-r);if(an.F){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===i||l||(kn(n,t),i(),un({F:!1}),l=!0)}else l||c||(i(),un({F:!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(oi(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=oi(n,"data-"+t);null!=e&&e&&(Ti(n,t),n.addEventListener("load",(function(){})))})),di(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 i=n,r=0;r<e&&(i=i[t]());r++)Gn(i.item)}function Xn(){var n=ln().D.item,t=ln().D.activeSlide,e=_n(n),i=String(e);t&&(i=i+"-"+_n(t.item)),i=i.replace("/","-").replace("#","").replace(/\s/g,"");var r=new RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g");In.className=In.className.replace(r,""),Ye(In,"fp-viewing-"+i)}function _n(n){if(!n)return null;var t=oi(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={an:{},un:function(n,t){var e=this;return"object"!==Qn(this.an[n])&&(this.an[n]=[]),this.an[n].push(t),function(){return e.removeListener(n,t)}},removeListener:function(n,t){if("object"===Qn(this.an[n])){var e=this.an[n].indexOf(t);e>-1&&this.an[n].splice(e,1)}},ln:function(n){for(var t=this,e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];"object"===Qn(this.an[n])&&this.an[n].forEach((function(n){return n.apply(t,i)}))},once:function(n,t){var e=this,i=this.un(n,(function(){i();for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(e,r)}))}},Kn="onAfterRenderNoAnchor",$n="onClickOrTouch",qn="moveSlideLeft",nt="moveSlideRight",tt="onInitialise",et="beforeInit",it="bindEvents",rt="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 i="";nn().anchors.length&&!nn().lockAnchors&&(n?(null!=e&&(i=e),null==t&&(t=n),un({W:t}),St(i+"/"+t)):null!=n?(un({W: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 i="Section"===t?nn().anchors[n]:oi(e,"data-anchor");return encodeURI(nn().navigationTooltips[n]||i||t+" "+(n+1))}function Mt(n){n.cancelable&&ri(n),un({R:"horizontalNav"});var t=$e(this,O),e=Re(H,$e(this,O))[0],i=Sn(ln().L,t).slides[Fe($e(this,"li"))];Jn.ln(dt,{slides:e,destination:i.item})}function Tt(n,t){nn().slidesNavigation&&null!=n&&(Ue(Re(M,n),y),Ye(Re("a",Re("li",n)[t]),y))}Jn.un(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({R:"slideArrow"}),Jn.ln(qn,{section:n})):kt().m.right&&(un({R:"slideArrow"}),Jn.ln(nt,{section:n}))}function Lt(n){!nn().loopHorizontal&&nn().controlArrows&&(vi(Re(U,n.section),0!==n.slideIndex),vi(Re(X,n.section),null!=Ce(n.destiny)))}function Dt(){clearTimeout(At),un({N:!1})}function Rt(n,t,e){var i=$e(n,O),r=ln().L.filter((function(n){return n.item==i}))[0],o=r.slides.filter((function(n){return n.item==t}))[0],a={slides:n,destiny:t,direction:e,destinyPos:{left:t.offsetLeft},slideIndex:o.index(),section:i,sectionIndex:r.index(),anchorLink:r.anchor,slidesNav:Re(B,i)[0],slideAnchor:o.anchor,prevSlide:r.activeSlide.item,prevSlideIndex:r.activeSlide.index(),items:{section:r,origin:r.activeSlide,destination:o},localIsResizing:an.I};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),sn("cinematic","apply",a),nn().onSlideLeave&&!a.localIsResizing&&"none"!==a.xMovement&&fi(nn().onSlideLeave)&&!1===Xt("onSlideLeave",a)?un({N:!1}):(fn("dropEffect")&&nn().dropEffect||(Ye(t,y),Ue(ii(t),y)),Wt(),a.localIsResizing||(Zn(a.prevSlide),Yn(o)),Lt(a),r.isActive&&!a.localIsResizing&&bt(a.slideIndex,a.slideAnchor,a.anchorLink),sn("continuousHorizontal","apply",a),Jn.ln(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 i=t.destinyPos;if(Tt(t.slidesNav,t.slideIndex),un({scrollX:Math.round(i.left)}),nn().css3){var r="translate3d(-"+Math.round(i.left)+"px, 0px, 0px)";d.test.cn[t.sectionIndex]=r,fn("dragAndMove")&&void 0!==t.sn||En(Re(I,n)),Ie(Re(I,n),Rn(r)),fn("interlockedSlides")||clearTimeout(At),At=setTimeout((function(){e&&Nt(t)}),nn().scrollingSpeed)}else d.test.left[t.sectionIndex]=Math.round(i.left),Wn(n,Math.round(i.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"),fi(nn().afterSlideLoad)&&Xt("afterSlideLoad",n),un({canScroll:!0}),Bn(n.destiny),Jn.ln(wt,n)),un({N:!1}),sn("interlockedSlides","interlockedSlides",n)}function It(n,t){Hn(0,"internal"),void 0!==t&&un({I:!0}),Rt($e(n,H),n),void 0!==t&&un({I:!1}),Hn(tn().scrollingSpeed,"internal")}xt.m={up:!0,down:!0,left:!0,right:!0},xt.k=ze({},xt.m),Jn.un($n,(function(n){var t=n.target;(di(t,G)||$e(t,G))&&Et.call(t,n)})),d.landscapeScroll=Rt,Jn.un(it,(function(){Jn.un(pt,Dt)}));var Pt=null,Ct=null;function Wt(){an.D=null,an.L.map((function(n){var t=je(n.item,y);if(n.isActive=t,n.q=ke.q(n.item),t&&(an.D=n),n.slides.length&&(n.activeSlide=null,n.slides.map((function(t){var e=je(t.item,y);t.q=ke.q(n.item),t.isActive=e,e&&(n.activeSlide=t)})),!n.slides.find((function(n){return n.isActive})))){var e=nn().rtl&&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.D,t=!!an.D&&an.D.slides.length,e=an.D?an.D.activeSlide:null;if(!n&&an.L.length&&!ln().j&&null!==Pt){var i=Vt(Pt,an.L);i&&(an.D=i,an.D.isActive=!0,Ye(an.D.item,y)),an.D&&jn(an.D.item.offsetTop)}if(t&&!e&&null!==Ct){var r=Vt(Ct,an.D.slides);r&&(an.D.activeSlide=r,an.D.activeSlide.isActive=!0,Ye(an.D.activeSlide.item,y)),an.D.activeSlide&&It(an.D.activeSlide.item,"internal")}}(),si(q(),"onUpdateStateDone")}function Ft(){var n=Re(nn().sectionSelector+", "+O,q()),t=De(n),e=Array.from(n).map((function(n){return new Zt(n)})),i=e.filter((function(n){return n.isVisible})),r=i.reduce((function(n,t){return n.concat(t.slides)}),[]);Pt=Bt(an.D),Ct=Bt(an.D?an.D.activeSlide:null),an.A=t.length,an.O=i.reduce((function(n,t){return n+t.slides.length}),0),an.L=i,an.tn=e,an.slides=r,an.rn=an.L.concat(an.slides)}function Bt(n){if(!n)return null;var t=n?n.item:null,e=n.nn?an.tn:an.D.dn;if(t){var i=Sn(e,t);return i?i.index():null}return null}function Vt(n,t){var e,i=n-1,r=n;do{if(e=t[i]||t[r])break;i-=1,r+=1}while(i>=0||r<t.length);return e}Jn.un(ot,(function(){Pt=null,Ct=null}));var Zt=function(n){var t=this;[].push.call(arguments,nn().sectionSelector),wn.apply(this,arguments),this.vn=Re(nn().slideSelector,n),this.dn=Array.from(this.vn).map((function(n){return new Gt(n,t)})),this.slides=this.dn.filter((function(n){return n.isVisible}));var e=nn().rtl&&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().D),pn:Ut(ln().D.activeSlide)}},onLeave:function(){return{origin:Yt(t.items.origin),destination:Yt(t.items.destination),direction:t.direction,trigger:ln().R}},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().R}},onSlideLeave:function(){return e.afterSlideLoad()},beforeLeave:function(){return e.onLeave()},onScrollOverflow:function(){return{section:Yt(ln().D),pn:Ut(ln().D.activeSlide),position:t.position,direction:t.direction}}};return e[n]()}(n,t);return si(q(),n,e),!1!==nn()[n].apply(e[Object.keys(e)[0]],Si(e))}function _t(n,t){en("recordHistory",n,t)}function Qt(n,t){n||jn(0),en("autoScrolling",n,t);var e=ln().D.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":""}),Dn(q()),null!=e){var i=On(e.offsetTop);i.element.scrollTo(0,i.options)}si(q(),"setAutoScrolling",n)}function Jt(n){return je(ln().D.item,E)?de(ln().D.item):ln().D.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,i,r,o;e=(t=n.getBoundingClientRect()).top,i=t.bottom,r=e+2<an.X&&e>0,o=i>2&&i<an.X,(r||o)&&Yn(Sn(ln().L,n))}))}function qt(){si(Pe(this),"click")}function ne(){hi(Re(L));var n=u.createElement("div");n.setAttribute("id","fp-nav");var t=u.createElement("ul");n.appendChild(t),Xe(n,In);var e=Re(L)[0];Ye(e,"fp-"+nn().navigationPosition),nn().showActiveTooltip&&Ye(e,"fp-show-active");for(var i="",r=0;r<ln().L.length;r++){var o=ln().L[r],a="";nn().anchors.length&&(a=o.anchor),i+='<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&&(i+='<div class="fp-tooltip fp-'+nn().navigationPosition+'">'+l+"</div>"),i+="</li>"}Re("ul",e)[0].innerHTML=i;var c=Re("li",Re(L)[0])[ln().D.index()];Ye(Re("a",c),y)}function te(n){n.preventDefault&&ri(n),un({R:"verticalNav"});var t=Fe($e(this,"#fp-nav li"));Jn.ln(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(L)[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 ie,re,oe,ae,ue,le,ce=(re=!0,oe=(new Date).getTime(),ae=!a.fullpage_api,function(n,t){var e=(new Date).getTime(),i="wheel"===n?nn().scrollingSpeed:100;return re=ae||e-oe>=i,ae=!a.fullpage_api,re&&(ie=t(),oe=e),void 0===ie||ie});function fe(n,t){if(fi(nn().beforeLeave))return ce(ln().R,(function(){return Xt(n,t)}))}function se(n,t,e){var i=n.item;if(null!=i){var r,o,a={element:i,callback:t,isMovementUp:e,dtop:de(i),yMovement:Ln(ln().D,i),anchorLink:n.anchor,sectionIndex:n.index(),activeSlide:n.activeSlide?n.activeSlide.item:null,leavingSection:ln().D.index()+1,localIsResizing:an.I,items:{origin:ln().D,destination:n},direction:null};if(!(ln().D.item==i&&!an.I||nn().scrollBar&&ei()===a.dtop&&!je(i,E))){if(null!=a.activeSlide&&(r=oi(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),cn("cinematic")&&d.cinematic.onLeave(a),sn("effects","beforeLeave",a),fi(nn().beforeLeave)&&!1===fe("beforeLeave",a))return;if(fi(nn().onLeave)&&!Xt("onLeave",a))return}sn("parallax","apply",a),sn("cards","apply",a),sn("dropEffect","apply",a),sn("waterEffect","apply",a),sn("cinematic","apply",a),nn().autoScrolling&&nn().continuousVertical&&void 0!==a.isMovementUp&&(!a.isMovementUp&&"up"==a.yMovement||a.isMovementUp&&"down"==a.yMovement)&&(a=function(n){un({_:!0});var t=ln().D.item;return n.isMovementUp?ni(t,wi(t,O)):qe(t,bi(t,O).reverse()[0]),jn(Jt()),Kt(),n.hn=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=Ln(ln().D,n.element),n.leavingSection=n.items.origin.index()+1,n.sectionIndex=n.items.destination.index(),si(q(),"onContinuousVertical",n),n}(a)),sn("scrollOverflowReset","setPrevious",ln().D.item),a.localIsResizing||Zn(ln().D.item),fn("dropEffect")&&nn().dropEffect||(Ye(i,y),Ue(ii(i),y)),Wt(),Yn(n),un({canScroll:d.test.gn}),bt(o,r,a.anchorLink),Jn.ln(gt,a),function(n){un({B:"none",scrollY:Math.round(n.dtop)}),Jn.ln(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.gn})}),nn().scrollingSpeed)):ve(n);else{var i=On(n.dtop);d.test.top=-n.dtop+"px",clearTimeout(ue),Wn(i.element,i.options,nn().scrollingSpeed,(function(){nn().scrollBar?ue=setTimeout((function(){ve(n)}),30):(ve(n),un({canScroll:!t||d.test.gn}))}))}t&&(clearTimeout(le),le=setTimeout((function(){un({canScroll:!0})}),e))}(a),un({C:a.anchorLink}),ee(a.anchorLink,function(n){return null!=n.hn?n.isMovementUp?an.A-1:0:n.sectionIndex}(a))}}}function de(n){var t=n.offsetHeight,e=n.offsetTop,i=e,r=fn("dragAndMove")&&sn("dragAndMove","isGrabbing")?sn("dragAndMove","isScrollingDown"):e>an.U,o=i-He()+t,a=nn().bigSectionsDestination;return t>He()?(r||a)&&"bottom"!==a||(i=o):(r||an.I&&null==Ce(n))&&(i=o),fn("offsetSections")&&(i=d.offsetSections.getSectionPosition_(r,i,n)),un({U:i}),i}function ve(n){un({j:!1}),function(n){null!=n.hn&&(n.isMovementUp?ni(Re(O)[0],n.hn):qe(Re(O)[ln().L.length-1],bi(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({_:!1}))}(n),fi(nn().afterLoad)&&!n.localIsResizing&&Xt("afterLoad",n),sn("continuousHorizontal","afterLoad",n),sn("parallax","afterLoad"),sn("waterEffect","afterLoad"),sn("dropEffect","afterLoad"),sn("scrollOverflowReset","reset"),sn("cinematic","afterLoad"),Wt(),n.localIsResizing||Bn(n.element),Ye(n.element,T),Ue(ii(n.element),T),$t(),un({canScroll:!0}),Jn.ln(mt,n),fi(n.callback)&&n.callback()}function pe(n,t){en("fitToSection",n,t)}function he(){an.canScroll&&nn().fitToSection&&(un({I:!0}),se(an.D),un({I:!1}))}function ge(){var n=nn().responsive||nn().responsiveWidth,t=nn().responsiveHeight,e=n&&a.innerWidth<n,i=t&&a.innerHeight<t;n&&t?me(e||i):n?me(e):t&&me(i)}function me(n){var t=we();n?t||(Qt(!1,"internal"),pe(!1,"internal"),Ve(Re(L)),Ye(In,m),fi(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),sn("responsiveSlides","toSections"),si(q(),"afterResponsive",n)):t&&(Qt(tn().autoScrolling,"internal"),pe(tn().autoScrolling,"internal"),Ze(Re(L)),Ue(In,m),fi(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),sn("responsiveSlides","toSlides"),si(q(),"afterResponsive",n))}function we(){return je(In,m)}function be(n){nn().verticalCentered&&(!nn().scrollOverflow&&ke.mn(n.item)||ke.wn(n)||je(n.item,P)||Ye(n.item,P))}d.moveTo=moveTo,d.getScrollY=function(){return an.scrollY},Jn.un(rt,(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.vn.length,i=n.index();!ln().D&&n.isVisible&&(Ye(t,y),Wt()),!ye&&n.isVisible&&(ye=ln().D.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[i]&&Ie(t,{"background-color":nn().sectionsColor[i]}),void 0!==nn().anchors[i]&&t.setAttribute("data-anchor",n.anchor),e||be(n)}function Te(){nn().scrollOverflow&&!nn().scrollBar&&(ke.bn(),ke.Sn())}function Ae(){Jn.removeListener(Kn,Te),li("keyup",ke.yn)}d.getActiveSection=function(){return ln().D},Jn.un(it,(function(){Jn.un(Kn,Te),Jn.un(gt,ke.onLeave),Jn.un(ht,ke.onLeave),Jn.un(wt,ke.afterLoad),Jn.un(mt,ke.afterLoad),Jn.un(rt,Ae),ai("keyup",ke.yn)}));var xe,Oe,ke={Mn:null,Tn:!0,An:!0,xn:null,On:null,kn:function(n){var t=ln().D;if(!an.canScroll||v()&&nn().scrollOverflow&&ke.wn(t)&&ke.isScrolled(ln().V,t.item))return ri(n),!1},En:function(n){if(!xi()&&nn().keyboardScrolling&&[38,33,32,40,34,36,35].indexOf(n.keyCode)>-1&&!ke.An)return ri(n),!1},yn:function(){ke.Tn=an.canScroll},onLeave:function(){clearTimeout(Se),ke.An=!1},afterLoad:function(){ke.An=!1,clearTimeout(Se),Se=setTimeout((function(){ke.Tn=an.canScroll}),200)},Ln:function(){u.activeElement===this.Mn&&(this.Mn.blur(),ke.An=!1)},Sn:function(){if(nn().scrollOverflow&&ke.Tn){ke.Ln();var n=ke.Dn(ln().D.item);!n||l||f||(this.Mn=n,requestAnimationFrame((function(){n.focus({Rn:!0}),ke.An=!0}))),ke.Tn=!1}},bn:function(){nn().scrollOverflowMacStyle&&!c&&Ye(In,"fp-scroll-mac"),ln().rn.forEach((function(n){if(!(n.slides&&n.slides.length||je(n.item,"fp-auto-height-responsive")&&we())){var t,e=An(n.item),i=ke.mn(n.item),o=(t=n).nn?t:t.parent;if(s){var a=i?"addClass":"removeClass";r[a](o.item,F),r[a](n.item,F)}else Ye(o.item,F),Ye(n.item,F);n.q||(ke.zn(e),ke.jn(e)),n.q=!0}}))},jn:function(n){var t=ke.Dn(n);t&&t.addEventListener("scroll",ke.Hn),n.addEventListener("wheel",ke.kn,{passive:!1}),n.addEventListener("keydown",ke.En,{passive:!1})},Nn:function(n){var t=ke.Dn(n);t&&t.removeEventListener("scroll",ke.Hn),n.removeEventListener("wheel",ke.kn,{passive:!1}),n.removeEventListener("keydown",ke.En,{passive:!1})},zn:function(n){var t=document.createElement("div");t.className=C,Je(n,t),t.setAttribute("tabindex","-1")},In:function(n){n.slides&&n.slides.length||n.q&&(ke.Pn(n.item),ke.Nn(n.item),n.q=!1)},Pn:function(n){var t=Re(W,n)[0];t&&(Ke(t),n.removeAttribute("tabindex"))},Dn:function(n){var t=An(n);return Re(W,t)[0]||t},q:function(n){return je(n,C)||null!=Re(W,n)[0]},wn:function(n){return n.nn&&n.activeSlide?n.activeSlide.q:n.q},mn:function(n){return ke.Dn(n).scrollHeight>a.innerHeight},isScrolled:function(n,t){if(!an.canScroll)return!1;if(nn().scrollBar)return!0;var e=ke.Dn(t);if(!nn().scrollOverflow||!je(e,C)||je(t,"fp-noscroll")||je(An(t),"fp-noscroll"))return!0;var i=s?1:0,r=e.scrollTop,o="up"===n&&r<=0,a="down"===n&&e.scrollHeight<=Math.ceil(e.offsetHeight+r)+i,u=o||a;return u||"none"===n||(this.xn=(new Date).getTime()),u},Cn:function(){this.On=(new Date).getTime();var n=this.On-ke.xn,t=(l||f)&&an.Z,e=an.G&&n>600;return t&&n>400||e},Hn:(xe=0,function(n){var t=n.target.scrollTop,e="none"!==an.B?an.B:xe<t?"down":"up";xe=t,fi(nn().onScrollOverflow)&&Xt("onScrollOverflow",{position:t,direction:e}),je(n.target,C)&&an.canScroll&&ke.isScrolled(e,n.target)&&ke.Cn()&&ke.mn(ln().D.item)&&Jn.ln(ut,{direction:e})})};function Ee(n,t){a.console&&a.console[n]&&a.console[n]("fullPage: "+t)}function Le(n){return"none"!==a.getComputedStyle(n).display}function De(n){return Array.from(n).filter((function(n){return Le(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 i=arguments[t];if(i)for(var r in i)i.hasOwnProperty(r)&&"__proto__"!=r&&"constructor"!=r&&("[object Object]"!==Object.prototype.toString.call(i[r])?n[r]=i[r]:n[r]=ze(n[r],i[r]))}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 i=0;i<n.length;i++)n[i].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&&di(e,t)?e:null}function Ce(n,t){if(!n)return null;if(null==t)return n.nextElementSibling;var e=Ce(n);return e&&di(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,i=0,r=0;r<e.length;r++){if(e[r]==n)return i;1==e[r].nodeType&&i++}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(" "),i=0;i<e.length;i++){t=e[i];for(var r=0;r<n.length;r++)n[r].classList.remove(t)}return n}function Xe(n,t){t.appendChild(n)}function _e(n,t,e){var i;t=t||u.createElement("div");for(var r=0;r<n.length;r++){var o=n[r];(e&&!r||!e)&&(i=t.cloneNode(!0),o.parentNode.insertBefore(i,o)),i.appendChild(o)}return n}function Qe(n,t){_e(n,t,!0)}function Je(n,t){for("string"==typeof t&&(t=pi(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?di(n,t)?n:$e(n.parentNode,t):null}function qe(n,t){ti(n,n.nextSibling,t)}function ni(n,t){ti(n,n,t)}function ti(n,t,e){Ge(e)||("string"==typeof e&&(e=pi(e)),e=[e]);for(var i=0;i<e.length;i++)n.parentNode.insertBefore(e[i],t)}function ei(){var n=u.documentElement;return(a.pageYOffset||n.scrollTop)-(n.clientTop||0)}function ii(n){return Array.prototype.filter.call(n.parentNode.children,(function(t){return t!==n}))}function ri(n){n.preventDefault()}function oi(n,t){return n.getAttribute(t)}function ai(n,t,e){u.addEventListener(n,t,"undefined"===e?null:e)}function ui(n,t,e){a.addEventListener(n,t,"undefined"===e?null:e)}function li(n,t,e){u.removeEventListener(n,t,"undefined"===e?null:e)}function ci(n,t,e){a.removeEventListener(n,t,"undefined"===e?null:e)}function fi(n){if("function"==typeof n)return!0;var t=Object.prototype.toString.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t}function si(n,t,e){var i;e=void 0===e?{}:e,"function"==typeof a.CustomEvent?i=new CustomEvent(t,{detail:e}):(i=u.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,e),n.dispatchEvent(i)}function di(n,t){return(n.matches||n.Wn||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector).call(n,t)}function vi(n,t){if("boolean"==typeof t)for(var e=0;e<n.length;e++)n[e].style.display=t?"block":"none";return n}function pi(n){var t=u.createElement("div");return t.innerHTML=n.trim(),t.firstChild}function hi(n){n=Be(n);for(var t=0;t<n.length;t++){var e=n[t];e&&e.parentElement&&e.parentNode.removeChild(e)}}function gi(n,t){Array.prototype.filter.call(n,t)}function mi(n,t,e){for(var i=n[e],r=[];i;)(di(i,t)||null==t)&&r.push(i),i=i[e];return r}function wi(n,t){return mi(n,t,"nextElementSibling")}function bi(n,t){return mi(n,t,"previousElementSibling")}function Si(n){return Object.keys(n).map((function(t){return n[t]}))}function yi(n){return n[n.length-1]}function Mi(n,t){for(var e=0,i=n.slice(Math.max(n.length-t,1)),r=0;r<i.length;r++)e+=i[r];return Math.ceil(e/t)}function Ti(n,t){n.setAttribute(t,oi(n,"data-"+t)),n.removeAttribute("data-"+t)}function Ai(n,t){var e=[n];do{n=n.parentNode,e.push(n)}while(!di(n,t));return e}function xi(){var n=u.activeElement;return di(n,"textarea")||di(n,"input")||di(n,"select")||"true"==oi(n,"contentEditable")||""==oi(n,"contentEditable")}function Oi(n){Jn.ln($n,{e:n,target:n.target})}function ki(){["click","touchstart"].forEach((function(n){li(n,Oi,{passive:!1})}))}function Ei(){un({Y:!0})}function Li(){Ye(Re(nn().sectionSelector,q()),x),Ye(Re(nn().slideSelector,q()),D)}function Di(n){var t=n.slides.length,e=n.vn,i=n.slides,r=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:r+"%"}),t>1&&(nn().controlArrows&&function(n){var t=n.item,e=[pi(nn().controlArrowsHTML[0]),pi(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(pi('<div class="fp-slidesNav"><ul></ul></div>'),t);var i=Re(B,t)[0];Ye(i,"fp-"+nn().slidesNavPosition);for(var r=0;r<e;r++)Xe(pi('<li><a href="#"><span class="fp-sr-only">'+yt(r,"Slide",Re(R,t)[r])+"</span><span></span></a></li>"),Re("ul",i)[0]);Ie(i,{"margin-left":"-"+i.innerWidth/2+"px"});var o=n.activeSlide?n.activeSlide.index():0;Ye(Re("a",Re("li",i)[o]),y)}(n)),i.forEach((function(n){Ie(n.item,{width:o+"%"}),nn().verticalCentered&&be(n)}));var c=fn("responsiveSlides")?null:n.activeSlide||null;null!=c&&an.D&&(0!==an.D.index()||0===an.D.index()&&0!==c.index())?(It(c.item,"internal"),Ye(c.item,"fp-initial")):Ye(e[nn().rtl&&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:ni,insertBefore:ti,getScrollTop:ei,siblings:ii,preventDefault:ri,isFunction:fi,trigger:si,matches:di,toggle:vi,createElementFromHTML:pi,remove:hi,filter:gi,untilAll:mi,nextAll:wi,prevAll:bi,showError:Ee,scrollOverflowHandler:ke}),Jn.un(it,(function(){["click","touchstart"].forEach((function(n){ai(n,Oi,{passive:!1})})),ui("focus",Ei),Jn.un(rt,ki)}));var Ri={attributes:!1,subtree:!0,childList:!0,characterData:!0};function zi(){return sn("responsiveSlides","isResponsiveSlidesChanging")||De(Re(nn().slideSelector,q())).length!==ln().O}function ji(n){var t=zi();(zi()||sn("responsiveSlides","isResponsiveSlidesChanging")||De(Re(nn().sectionSelector,q())).length!==ln().A)&&!an._&&(nn().observer&&Oe&&Oe.disconnect(),Ft(),Wt(),nn().anchors=[],hi(Re(L)),sn("responsiveSlides","isResponsiveSlidesChanging")||Li(),rn(),nn().navigation&&ne(),nn().scrollOverflow&&ke.bn(),t&&(hi(Re(B)),hi(Re(G))),ln().L.forEach((function(n){n.slides.length?t&&Di(n):Me(n)}))),nn().observer&&Oe&&Re(h)[0]&&Oe.observe(Re(h)[0],Ri)}Jn.un(it,(function(){var n,t,e;nn().observer&&"MutationObserver"in window&&Re(h)[0]&&(n=Re(h)[0],t=Ri,(e=new MutationObserver(ji)).observe(n,t),Oe=e),Jn.un(at,ji)})),Jn.un(rt,(function(){Oe&&(Oe.disconnect(),Oe=null)})),d.render=ji;var Hi=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});ui("testPassive",null,t),ci("testPassive",null,t)}catch(n){}return function(){return n}}();function Ni(){return!!Hi()&&{passive:!1}}var Ii,Pi,Ci,Wi,Fi=(Ci=(new Date).getTime(),Wi=[],{Fn:function(n){var t=(n=n||a.event).wheelDelta||-n.deltaY||-n.detail,e=Math.max(-1,Math.min(1,t)),i=void 0!==n.wheelDeltaX||void 0!==n.deltaX;Ii=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!i;var r=(new Date).getTime();Pi=e<0?"down":"up",Wi.length>149&&Wi.shift(),Wi.push(Math.abs(t));var o=r-Ci;Ci=r,o>200&&(Wi=[])},Bn:function(){var n=Mi(Wi,10)>=Mi(Wi,70);return!!Wi.length&&n&&Ii},Vn:function(){return Pi}});function Bi(){var n=nn().css3?ei()+He():yi(ln().L).item.offsetTop+yi(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({j:!0}),un({canScroll:!0})}),30)}))}function Vi(){q().getBoundingClientRect().bottom>=0&&Zi()}function Zi(){var n=On(yi(ln().L).item.offsetTop);un({canScroll:!1}),Wn(n.element,n.options,nn().scrollingSpeed,(function(){un({canScroll:!0}),un({j:!1}),un({Zn:!1})}))}var Gi,Yi,Ui,Xi=(Gi=!1,Yi={},Ui={},function(n,t,e){switch(n){case"set":Yi[t]=(new Date).getTime(),Ui[t]=e;break;case"isNewKeyframe":var i=(new Date).getTime();Gi=i-Yi[t]>Ui[t]}return Gi});function _i(){var n=ln().D.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.ln(vt)}function Qi(){var n=ln().D.prev();n||!nn().loopTop&&!nn().continuousVertical||(n=yi(ln().L)),null!=n&&se(n,null,!0)}d.moveSectionDown=_i,d.moveSectionUp=Qi;var Ji=0;function Ki(n){nn().autoScrolling&&(an.canScroll&&(n.pageY<Ji&&kt().m.up?Qi():n.pageY>Ji&&kt().m.down&&_i()),Ji=n.pageY)}function $i(n){if(kt().m[n]){var t="down"===n?_i:Qi;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.wn(ln().D)?ke.isScrolled(n,ln().D.item)&&ke.Cn()&&t&&t():t&&t()}}var qi,nr,tr,er=0,ir=0,rr=0,or=0,ar=vr(),ur={Gn:"ontouchmove"in window?"touchmove":ar?ar.move:null,Yn:"ontouchstart"in window?"touchstart":ar?ar.down:null};function lr(n){var t=$e(n.target,O)||ln().D.item,e=ke.wn(ln().D);if(cr(n)){un({Z:!0,G:!1}),nn().autoScrolling&&(e&&!an.canScroll||nn().scrollBar)&&ri(n);var i=dr(n);rr=i.y,or=i.x;var r=Math.abs(er-rr)>a.innerHeight/100*nn().touchSensitivity,o=Math.abs(ir-or)>Ne()/100*nn().touchSensitivity,u=Re(H,t).length&&Math.abs(ir-or)>Math.abs(er-rr),l=er>rr?"down":"up";un({B:u?ir>or?"right":"left":l}),u?!an.N&&o&&(ir>or?kt().m.right&&Jn.ln(nt,{section:t}):kt().m.left&&Jn.ln(qn,{section:t})):nn().autoScrolling&&an.canScroll&&r&&$i(l)}}function cr(n){return void 0===n.pointerType||"mouse"!=n.pointerType}function fr(n){if(nn().fitToSection&&un({F:!1}),cr(n)){var t=dr(n);er=t.y,ir=t.x}ui("touchend",sr)}function sr(){ci("touchend",sr),un({Z:!1})}function dr(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&&cr(n)&&nn().scrollBar&&void 0!==n.touches&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function vr(){var n;return a.PointerEvent&&(n={down:"pointerdown",move:"pointermove"}),n}function pr(n){nn().autoScrolling&&cr(n)&&kt().m.up&&(an.canScroll||ri(n))}function hr(n,t){var e=null==t?ln().D.item:t,i=Sn(an.L,e),r=Re(H,e)[0];if(!(null==r||dn()||an.N||i.slides.length<2)){var o=i.activeSlide,a="left"===n?o.prev():o.next();if(!a){if(!nn().loopHorizontal)return;a="left"===n?yi(i.slides):i.slides[0]}un({N:!d.test.gn}),Rt(r,a.item,n)}}function gr(n){hr("left",n)}function mr(n){hr("right",n)}function wr(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 br(n){null!=n&&Rt($e(n,H),n)}function Sr(n,t){var e=wr(n);if(null!=e){var i=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.C||je(e.item,y)?br(i):se(e,(function(){br(i)}))}}function yr(n,t){var e=wr(n);void 0!==t?Sr(n,t):null!=e&&se(e)}function Mr(){clearTimeout(nr),li("keydown",Tr),li("keyup",Ar)}function Tr(n){clearTimeout(nr);var t=n.keyCode,e=[37,39].indexOf(t)>-1,i=nn().autoScrolling||nn().fitToSection||e;9===t?function(n){var t=n.shiftKey,e=u.activeElement,i=Lr(An(ln().D.item));function r(n){return ri(n),i[0]?i[0].focus():null}if(an.canScroll){if(!function(n){var t=Lr(u),e=t.indexOf(u.activeElement),i=t[n.shiftKey?e-1:e+1],r=$e(i,R),o=$e(i,O);return!r&&!o}(n)){e?null==$e(e,".fp-section.active,.fp-section.active .fp-slide.active")&&(e=r(n)):r(n);var o=e==i[0],a=e==i[i.length-1],l=t&&o;if(l||!t&&a){ri(n);var c=function(n){var t,e=n?"prevPanel":"nextPanel",i=[],r=xn((an.D&&an.D.activeSlide?an.D.activeSlide:an.D)[e]());do{(i=Lr(r.item)).length&&(t={Un:r,Xn:i[n?i.length-1:0]}),r=xn(r[e]())}while(r&&0===i.length);return t}(l),f=c?c.Un:null;if(f){var s=f.nn?f:f.parent;Jn.ln(lt,{_n:s.index()+1,slideAnchor:f.nn?0:f.index()}),tr=c.Xn,ri(n)}}}}else ri(n)}(n):!xi()&&nn().keyboardScrolling&&i&&(qi=n.ctrlKey,nr=setTimeout((function(){!function(n){var t=n.shiftKey,e=u.activeElement,i=di(e,"video")||di(e,"audio"),r=ke.isScrolled("up",ln().D.item),o=ke.isScrolled("down",ln().D.item),a=[37,39].indexOf(n.keyCode)>-1;if(function(n){(function(n){return[40,38,32,33,34].indexOf(n.keyCode)>-1&&!an.j})(n)&&!$e(n.target,W)&&n.preventDefault()}(n),an.canScroll||a)switch(un({R:"keydown"}),si(q(),"keydown",n),n.keyCode){case 38:case 33:kt().k.up&&r?an.j?Jn.ln(ct,{e:n}):Qi():ke.Sn();break;case 32:if(t&&kt().k.up&&!i&&r){Qi();break}case 40:case 34:if(kt().k.down&&o){if(an.j)return;32===n.keyCode&&i||_i()}else ke.Sn();break;case 36:kt().k.up&&yr(1);break;case 35:kt().k.down&&yr(ln().L.length);break;case 37:kt().k.left&&(nn().rtl?mr():gr());break;case 39:kt().k.right&&(nn().rtl?gr():mr())}}(n)}),0))}function Ar(n){an.Y&&(qi=n.ctrlKey)}function xr(){un({Y:!1}),qi=!1}function Or(n){Er()}function kr(n){$e(tr,R)&&!$e(tr,z)||Er()}function Er(){tr&&(tr.focus(),tr=null)}function Lr(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"!==oi(n,"tabindex")&&null!==n.offsetParent}))}d.moveSlideLeft=gr,d.moveSlideRight=mr,d.moveTo=yr,Jn.un(it,(function(){ui("blur",xr),ai("keydown",Tr),ai("keyup",Ar),Jn.un(rt,Mr),Jn.un(wt,Or),Jn.un(mt,kr)}));var Dr=(new Date).getTime(),Rr=(new Date).getTime(),zr=[],jr=[];function Hr(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",i=Ni();"DOMMouseScroll"==e?u[n](t+"MozMousePixelScroll",Ir,i):u[n](t+e,Ir,i)}(),q().addEventListener("mousedown",Pr),q().addEventListener("mouseup",Cr)):(u.addEventListener?(li("mousewheel",Ir,!1),li("wheel",Ir,!1),li("MozMousePixelScroll",Ir,!1)):u.detachEvent("onmousewheel",Ir),q().removeEventListener("mousedown",Pr),q().removeEventListener("mouseup",Cr))}function Nr(n){return Mi(n,10)>=Mi(n,70)}function Ir(n){var t=(new Date).getTime(),e=je(Re(".fp-completely")[0],"fp-normal-scroll"),i=function(n,t){(new Date).getTime();var e=ln().j&&n.getBoundingClientRect().bottom>=0&&"up"===Fi.Vn(),i=ln().Zn;if(i)return ri(t),!1;if(ln().j){if(e){var r;if(!(i||Xi("isNewKeyframe","beyondFullpage")&&Fi.Bn()))return(r=On(yi(ln().L).item.offsetTop+yi(ln().L).item.offsetHeight)).element.scrollTo(0,r.options),un({Zn:!1}),ri(t),!1;if(Fi.Bn())return e=!1,un({Zn:!0}),un({R:"wheel"}),Zi(),ri(t),!1}else Xi("set","beyondFullpage",1e3);if(!i&&!e)return!0}}(q(),n);if(an.G||un({Z:!1,G:!0,B:"none"}),i)return!0;if(!1===i)return ri(n),!1;if(nn().autoScrolling&&!qi&&!e){var r=(n=n||a.event).wheelDelta||-n.deltaY||-n.detail,o=Math.max(-1,Math.min(1,r)),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(zr.length>149&&zr.shift(),jr.length>149&&jr.shift(),d)zr.push(Math.abs(r));else if(v){var m=f?Math.abs(r):Math.abs(u);jr.push(m)}!nn().scrollBar&&nn().scrollOverflow||ri(n);var w=t-Dr,b=t-Rr;if(d?Dr=t:v&&(Rr=t),w>200&&(zr=[]),b>200&&(jr=[]),un({V:p}),an.canScroll&&!dn()){if(d&&fn("freeSlideScroll")&&sn("freeSlideScroll","handleWheel",{e:n,delta:o,direction:p,value:r}))return ri(n),!1;if(d&&Nr(zr))un({R:"wheel"}),$i(o<0?"down":"up");else if(v&&(f||Nr(jr))){var S=!1;fn("freeSlideScroll")&&sn("freeSlideScroll","shouldPreventHorizontalSnap",{e:n})&&(S=!0),S||(un({R:"wheel"}),"left"===g?gr():"right"===g&&mr())}}return!1}nn().fitToSection&&un({F:!1})}function Pr(n){var t;2==n.which&&(t=n.pageY,Ji=t,q().addEventListener("mousemove",Ki))}function Cr(n){2==n.which&&q().removeEventListener("mousemove",Ki)}function Wr(n){n?(Hr(!0),function(){if(ur.Gn&&(l||f)&&(!fn("dragAndMove")||"mouse