fullpage.js
Version:
Create beautiful fullscreen snap scrolling websites
11 lines • 56.8 kB
JavaScript
/*!
* fullPage 4.0.35
* 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;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],o=0;o<e;){var r=t[o];if(n.call(i,r,o,t))return r;o++}}}),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,o=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,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&&(r=arguments[2])}for(var u,l=i(o.length),c=t(e)?Object(new e(l)):new Array(l),f=0;f<l;)u=o[f],c[f]=a?void 0===r?a(u,f):a.call(r,u,f):u,f+=1;return c.length=l,c}));var o,r=window,a=document,u=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,l=/(Mac|iPhone|iPod|iPad)/i.test(r.navigator.userAgent),c="ontouchstart"in r||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,f=!!window.MSInputMethodContext&&!!document.documentMode,s={test:{},shared:{}},v=["parallax","scrollOverflowReset","dragAndMove","offsetSections","fadingEffect","responsiveSlides","continuousHorizontal","interlockedSlides","scrollHorizontally","resetSliders","cards","dropEffect","waterEffect"],d=(o=window.self!==window.top,function(){return o});function h(n,t){r.console&&r.console[n]&&r.console[n]("fullPage: "+t)}function p(n){return"none"!==r.getComputedStyle(n).display}function g(n){return Array.from(n).filter((function(n){return p(n)}))}function m(n,t){return(t=arguments.length>1?t:document)?t.querySelectorAll(n):null}function w(n){n=n||{};for(var t=1,e=arguments.length;t<e;++t){var i=arguments[t];if(i)for(var o in i)i.hasOwnProperty(o)&&"__proto__"!=o&&"constructor"!=o&&("[object Object]"!==Object.prototype.toString.call(i[o])?n[o]=i[o]:n[o]=w(n[o],i[o]))}return n}function b(n,t){return null!=n&&n.classList.contains(t)}function y(){return"innerHeight"in r?r.innerHeight:a.documentElement.offsetHeight}function S(){return r.innerWidth}function T(n,t){var e;for(e in n=O(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 M(n){return n.previousElementSibling}function A(n){return n.nextElementSibling}function x(n){return n[n.length-1]}function k(n,t){n=D(n)?n[0]:n;for(var e=null!=t?m(t,n.parentNode):n.parentNode.childNodes,i=0,o=0;o<e.length;o++){if(e[o]==n)return i;1==e[o].nodeType&&i++}return-1}function O(n){return D(n)?n:[n]}function j(n){n=O(n);for(var t=0;t<n.length;t++)n[t].style.display="none";return n}function L(n){n=O(n);for(var t=0;t<n.length;t++)n[t].style.display="block";return n}function D(n){return"[object Array]"===Object.prototype.toString.call(n)||"[object NodeList]"===Object.prototype.toString.call(n)}function E(n,t){n=O(n);for(var e=0;e<n.length;e++)n[e].classList.add(t);return n}function R(n,t){n=O(n);for(var e=t.split(" "),i=0;i<e.length;i++){t=e[i];for(var o=0;o<n.length;o++)n[o].classList.remove(t)}return n}function P(n,t){t.appendChild(n)}function F(n,t,e){var i;t=t||a.createElement("div");for(var o=0;o<n.length;o++){var r=n[o];(e&&!o||!e)&&(i=t.cloneNode(!0),r.parentNode.insertBefore(i,r)),i.appendChild(r)}return n}function z(n,t){F(n,t,!0)}function C(n,t){for(n.appendChild(t);n.firstChild!==t;)t.appendChild(n.firstChild)}function I(n){for(var t=a.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);n.parentNode.replaceChild(t,n)}function N(n,t){return n&&1===n.nodeType?J(n,t)?n:N(n.parentNode,t):null}function B(n,t){W(n,n.nextSibling,t)}function H(n,t){W(n,n,t)}function W(n,t,e){D(e)||("string"==typeof e&&(e=nn(e)),e=[e]);for(var i=0;i<e.length;i++)n.parentNode.insertBefore(e[i],t)}function V(){var n=a.documentElement;return(r.pageYOffset||n.scrollTop)-(n.clientTop||0)}function U(n){return Array.prototype.filter.call(n.parentNode.children,(function(t){return t!==n}))}function _(n){n.preventDefault()}function K(n,t){return n.getAttribute(t)}function q(n,t,e){a.addEventListener(n,t,"undefined"===e?null:e)}function G(n,t,e){r.addEventListener(n,t,"undefined"===e?null:e)}function $(n,t,e){a.removeEventListener(n,t,"undefined"===e?null:e)}function Y(n,t,e){r.removeEventListener(n,t,"undefined"===e?null:e)}function X(n){if("function"==typeof n)return!0;var t=Object.prototype.toString.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t}function Q(n,t,e){var i;e=void 0===e?{}:e,"function"==typeof r.CustomEvent?i=new CustomEvent(t,{detail:e}):(i=a.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,e),n.dispatchEvent(i)}function J(n,t){return(n.matches||n.t||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector).call(n,t)}function Z(n,t){if("boolean"==typeof t)for(var e=0;e<n.length;e++)n[e].style.display=t?"block":"none";return n}function nn(n){var t=a.createElement("div");return t.innerHTML=n.trim(),t.firstChild}function tn(n){n=O(n);for(var t=0;t<n.length;t++){var e=n[t];e&&e.parentElement&&e.parentNode.removeChild(e)}}function en(n,t,e){for(var i=n[e],o=[];i;)(J(i,t)||null==t)&&o.push(i),i=i[e];return o}function on(n,t){return en(n,t,"nextElementSibling")}function rn(n,t){return en(n,t,"previousElementSibling")}function an(n){return Object.keys(n).map((function(t){return n[t]}))}function un(n){return n[n.length-1]}function ln(n,t){for(var e=0,i=n.slice(Math.max(n.length-t,1)),o=0;o<i.length;o++)e+=i[o];return Math.ceil(e/t)}function cn(n,t){n.setAttribute(t,K(n,"data-"+t)),n.removeAttribute("data-"+t)}function fn(n,t){var e=[n];do{n=n.parentNode,e.push(n)}while(!J(n,t));return e}function sn(){var n=a.activeElement;return J(n,"textarea")||J(n,"input")||J(n,"select")||"true"==K(n,"contentEditable")||""==K(n,"contentEditable")}r.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 o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},writable:!0,i:!0}),String.prototype.padStart||(String.prototype.padStart=function(n,t){return n>>=0,t=String(void 0!==t?t:" "),this.length>n?String(this):((n-=this.length)>t.length&&(t+=Array.apply(null,Array(n)).map((function(){return t})).join("")),t.slice(0,n)+String(this))}),window.fp_utils={$:m,deepExtend:w,hasClass:b,getWindowHeight:y,css:T,prev:M,next:A,last:x,index:k,getList:O,hide:j,show:L,isArrayOrList:D,addClass:E,removeClass:R,appendTo:P,wrap:F,wrapAll:z,unwrap:I,closest:N,after:B,before:H,insertBefore:W,getScrollTop:V,siblings:U,preventDefault:_,isFunction:X,trigger:Q,matches:J,toggle:Z,createElementFromHTML:nn,remove:tn,untilAll:en,nextAll:on,prevAll:rn,showError:h};var vn=Object.freeze({__proto__:null,showError:h,isVisible:p,o:g,$:m,deepExtend:w,hasClass:b,getWindowHeight:y,u:S,css:T,prev:M,next:A,last:x,index:k,getList:O,hide:j,show:L,isArrayOrList:D,addClass:E,removeClass:R,appendTo:P,wrap:F,wrapAll:z,l:C,unwrap:I,closest:N,after:B,before:H,insertBefore:W,getScrollTop:V,siblings:U,preventDefault:_,v:K,h:q,p:G,g:$,S:Y,isFunction:X,trigger:Q,matches:J,toggle:Z,createElementFromHTML:nn,remove:tn,untilAll:en,nextAll:on,prevAll:rn,toArray:an,T:un,M:ln,A:cn,O:fn,j:sn});function dn(n){return dn="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},dn(n)}var hn={L:{},D:function(n,t){var e=this;return"object"!==dn(this.L[n])&&(this.L[n]=[]),this.L[n].push(t),function(){return e.removeListener(n,t)}},removeListener:function(n,t){if("object"===dn(this.L[n])){var e=this.L[n].indexOf(t);e>-1&&this.L[n].splice(e,1)}},R:function(n){for(var t=this,e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];"object"===dn(this.L[n])&&this.L[n].forEach((function(n){return n.apply(t,i)}))},once:function(n,t){var e=this,i=this.D(n,(function(){i();for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t.apply(e,o)}))}},pn={P:0,F:0,slides:[],C:[],I:null,N:null,B:!1,H:!1,W:!1,V:!1,U:!1,_:void 0,K:void 0,q:!1,G:!0,Y:"none",X:"none",J:!1,Z:!1,nn:!0,tn:0,en:y(),on:!1,rn:{},scrollY:0,scrollX:0,an:!1};function gn(n){Object.assign(pn,n)}function mn(){return pn}r.state=pn;var wn="onAfterRenderNoAnchor",bn="onClickOrTouch",yn="moveSlideLeft",Sn="moveSlideRight",Tn="onInitialise",Mn="beforeInit",An="bindEvents",xn="onDestroy",kn="contentChanged",On="onScrollOverflowScrolled",jn="onScrollPageAndSlide",Ln="onKeyDown",Dn="onMenuClick",En="scrollPage",Rn="landscapeScroll",Pn="scrollBeyondFullpage",Fn="onPerformMovement",zn="onSlideLeave",Cn="onLeave",In="afterSectionLoads",Nn="afterSlideLoads";function Bn(n){hn.R(bn,{e:n,target:n.target})}function Hn(){["click","touchstart"].forEach((function(n){$(n,Bn)}))}function Wn(){gn({nn:!0})}hn.D(An,(function(){["click","touchstart"].forEach((function(n){q(n,Bn)})),G("focus",Wn),hn.D(xn,Hn)}));var Vn="fullpage-wrapper",Un="."+Vn,_n="fp-scrollable",Kn="fp-responsive",qn="fp-notransition",Gn="fp-destroyed",$n="fp-enabled",Yn="active",Xn=".active",Qn="fp-completely",Jn="fp-loaded",Zn="fp-section",nt="."+Zn,tt=".fp-tableCell",et="#fp-nav",it="fp-slide",ot="."+it,rt=".fp-slide.active",at="fp-slides",ut=".fp-slides",lt="fp-slidesContainer",ct="."+lt,ft="fp-table",st="fp-overflow",vt="."+st,dt="fp-is-overflow",ht=".fp-slidesNav",pt=".fp-slidesNav a",gt="fp-controlArrow",mt="."+gt,wt="fp-prev",bt=".fp-controlArrow.fp-prev",yt=".fp-controlArrow.fp-next",St={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},Tt=null,Mt=!1,At=w({},St),xt=null;function kt(n){return Tt}function Ot(){return xt||St}function jt(){return At}function Lt(n,t,e){xt[n]=t,"internal"!==e&&(At[n]=t)}function Dt(){if(!Ot().anchors.length){var n=m(Ot().sectionSelector.split(",").join("[data-anchor],")+"[data-anchor]",Tt);n.length&&n.length===m(Ot().sectionSelector,Tt).length&&(Mt=!0,n.forEach((function(n){Ot().anchors.push(K(n,"data-anchor").toString())})))}if(!Ot().navigationTooltips.length){var t=m(Ot().sectionSelector.split(",").join("[data-tooltip],")+"[data-tooltip]",Tt);t.length&&t.forEach((function(n){Ot().navigationTooltips.push(K(n,"data-tooltip").toString())}))}}var Et=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},Rt=function(n,t){this.parent=this.parent||null,this.selector=t,this.anchor=K(n,"data-anchor")||Ot().anchors[k(n,Ot().sectionSelector)],this.item=n,this.isVisible=p(n),this.isActive=b(n,Yn),this.un=b(n,st)||null!=m(vt,n)[0],this.ln=t===Ot().sectionSelector,this.cn=N(n,ct)||N(n,Un),this.index=function(){return this.siblings().indexOf(this)}};function Pt(n){return n.map((function(n){return n.item}))}function Ft(n,t){return n.find((function(n){return n.item===t}))}Rt.prototype.siblings=function(){return this.ln?this.isVisible?pn.C:pn.sn:this.parent?this.parent.slides:0},Rt.prototype.prev=function(){var n=this.siblings(),t=(this.ln?n.indexOf(this):this.parent.slides.indexOf(this))-1;return t>=0?n[t]:null},Rt.prototype.next=function(){var n=this.siblings(),t=(this.ln?n.indexOf(this):this.parent.slides.indexOf(this))+1;return t<n.length?n[t]:null},Rt.prototype.prevPanel=function(){return this.prev()||(this.parent?this.parent.prev():null)},Rt.prototype.nextPanel=function(){return this.next()||(this.parent?this.parent.next():null)},Rt.prototype.vn=function(){return this.ln?pn.C:pn.dn};var zt,Ct=function(n){Et.call(this,n)},It=function(n){Et.call(this,n)};function Nt(n){var t=m(rt,n);return t.length&&(n=t[0]),n}function Bt(n){return n?n.activeSlide?n.activeSlide:n:null}function Ht(n){var t,e,i=Ot();return i.autoScrolling&&!i.scrollBar?(t=-n,e=m(Un)[0]):(t=n,e=window),{options:t,element:e}}function Wt(n,t){!Ot().autoScrolling||Ot().scrollBar||n.self!=window&&b(n,at)?n.self!=window&&b(n,at)?n.scrollLeft=t:n.scrollTo(0,t):n.style.top=t+"px"}function Vt(n){var t="transform "+Ot().scrollingSpeed+"ms "+Ot().easingcss3;return R(n,qn),T(n,{"-webkit-transition":t,transition:t})}function Ut(n,t){var e=n.index(),i=k(t,nt);return e==i?"none":e>i?"up":"down"}function _t(n){return E(n,qn)}function Kt(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function qt(n,t){t?Vt(kt()):_t(kt()),clearTimeout(zt),T(kt(),Kt(n)),s.test.hn=n,zt=setTimeout((function(){R(kt(),qn)}),10)}function Gt(n){var t=Math.round(n);if(Ot().css3&&Ot().autoScrolling&&!Ot().scrollBar)qt("translate3d(0px, -"+t+"px, 0px)",!1);else if(Ot().autoScrolling&&!Ot().scrollBar)T(kt(),{top:-t+"px"}),s.test.top=-t+"px";else{var e=Ht(t);Wt(e.element,e.options)}}function $t(n,t){Lt("scrollingSpeed",n,t)}s.setScrollingSpeed=$t;var Yt,Xt=null,Qt=null,Jt=null;function Zt(n,t,e,i){var o,a=function(n){return n.self!=r&&b(n,at)?n.scrollLeft:!Ot().autoScrolling||Ot().scrollBar?V():n.offsetTop}(n),u=t-a,l=!1,c=pn.q;gn({q:!0}),Yt&&window.cancelAnimationFrame(Yt),Yt=function(f){o||(o=f);var s=Math.floor(f-o);if(pn.q){var v=t;e&&(v=r.fp_easings[Ot().easing](s,a,u,e)),s<=e&&Wt(n,v),s<e?window.requestAnimationFrame(Yt):void 0===i||l||(Wt(n,t),i(),gn({q:!1}),l=!0)}else l||c||(i(),gn({q:!1}),l=!0)},window.requestAnimationFrame(Yt)}function ne(n){return n&&!n.item?new Ct(new li(n)):n?new Ct(n):null}function te(n){return n?new It(n):null}function ee(n,t){var e=function(n,t){var e={afterRender:function(){return{section:ne(mn().I),pn:te(mn().I.activeSlide)}},onLeave:function(){return{origin:ne(t.items.origin),destination:ne(t.items.destination),direction:t.direction,trigger:mn().N}},afterLoad:function(){return e.onLeave()},afterSlideLoad:function(){return{section:ne(t.items.section),origin:ne(t.items.origin),destination:ne(t.items.destination),direction:t.direction,trigger:mn().N}},onSlideLeave:function(){return e.afterSlideLoad()},beforeLeave:function(){return e.onLeave()},onScrollOverflow:function(){return{section:ne(mn().I),pn:te(mn().I.activeSlide),position:t.position,direction:t.direction}}};return e[n]()}(n,t);return Q(kt(),n,e),!1!==Ot()[n].apply(e[Object.keys(e)[0]],an(e))}function ie(n){return n.hasAttribute("data-autoplay")||n.hasAttribute("autoplay")}function oe(n){var t=Nt(n);m("video, audio",t).forEach((function(n){ie(n)&&"function"==typeof n.play&&n.play()})),m('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){ie(n)&&re(n),n.onload=function(){ie(n)&&re(n)}}))}function re(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function ae(n){var t=Nt(n);m("video, audio",t).forEach((function(n){n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()})),m('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){/youtube\.com\/embed\//.test(K(n,"src"))&&!n.hasAttribute("data-keepplaying")&&n.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function ue(n){if(Ot().lazyLoading){var t=Nt(n);m("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=K(n,"data-"+t);null!=e&&e&&(cn(n,t),n.addEventListener("load",(function(){})))})),J(n,"source")){var t=N(n,"video, audio");t&&(t.load(),t.onloadeddata=function(){})}})),E(t,Jn)}}function le(n){var t=Ot().lazyLoadThreshold;ue(n.item),t&&(ce(n,"prev",t),ce(n,"next",t))}function ce(n,t,e){for(var i=n,o=0;o<e&&(i=i[t]());o++)ue(i.item)}function fe(){var n=mn().I.item,t=mn().I.activeSlide,e=se(n),i=String(e);t&&(i=i+"-"+se(t.item)),i=i.replace("/","-").replace("#","").replace(/\s/g,"");var o=new RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g");Xt.className=Xt.className.replace(o,""),E(Xt,"fp-viewing-"+i)}function se(n){if(!n)return null;var t=K(n,"data-anchor"),e=k(n);return null==t&&(t=e),t}function ve(n,t,e){var i="";Ot().anchors.length&&!Ot().lockAnchors&&(n?(null!=e&&(i=e),null==t&&(t=n),gn({K:t}),de(i+"/"+t)):null!=n?(gn({K:t}),de(e)):de(e)),fe()}function de(n){if(Ot().recordHistory)location.hash=n;else if(u||c)r.history.replaceState(void 0,void 0,"#"+n);else{var t=r.location.href.split("#")[0];r.location.replace(t+"#"+n)}}function he(n,t,e){var i="Section"===t?Ot().anchors[n]:K(e,"data-anchor");return encodeURI(Ot().navigationTooltips[n]||i||t+" "+(n+1))}function pe(n){n.cancelable&&_(n),gn({N:"horizontalNav"});var t=N(this,nt),e=m(ut,N(this,nt))[0],i=Ft(mn().C,t).slides[k(N(this,"li"))];hn.R(Rn,{slides:e,destination:i.item})}var ge={};function me(n,t,e){"all"!==t?ge[e][t]=n:Object.keys(ge[e]).forEach((function(t){ge[e][t]=n}))}function we(){return ge}function be(){var n=N(this,nt);b(this,wt)||N(this,".fp-prev")?we().m.left&&(gn({N:"slideArrow"}),hn.R(yn,{section:n})):we().m.right&&(gn({N:"slideArrow"}),hn.R(Sn,{section:n}))}function ye(n,t){Lt("recordHistory",n,t)}function Se(n,t){n||Gt(0),Lt("autoScrolling",n,t);var e=mn().I.item;if(Ot().autoScrolling&&!Ot().scrollBar)T(Jt,{overflow:"hidden",height:"100%"}),R(Xt,_n),ye(jt().recordHistory,"internal"),T(kt(),{"-ms-touch-action":"none","touch-action":"none"}),null!=e&&Gt(e.offsetTop);else if(T(Jt,{overflow:"visible",height:"initial"}),E(Xt,_n),ye(!!Ot().autoScrolling&&jt().recordHistory,"internal"),T(kt(),{"-ms-touch-action":"","touch-action":""}),null!=e){var i=Ht(e.offsetTop);i.element.scrollTo(0,i.options)}}function Te(){var n=m(".fp-auto-height")[0]||We()&&m(".fp-auto-height-responsive")[0];Ot().lazyLoading&&n&&m(".fp-section:not(.active)").forEach((function(n){var t,e,i,o,r;e=(t=n.getBoundingClientRect()).top,i=t.bottom,o=e+2<pn.en&&e>0,r=i>2&&i<pn.en,(o||r)&&le(Ft(mn().C,n))}))}function Me(){Q(M(this),"click")}function Ae(){tn(m(et));var n=a.createElement("div");n.setAttribute("id","fp-nav");var t=a.createElement("ul");n.appendChild(t),P(n,Xt);var e=m(et)[0];E(e,"fp-"+Ot().navigationPosition),Ot().showActiveTooltip&&E(e,"fp-show-active");for(var i="",o=0;o<mn().C.length;o++){var r=mn().C[o],u="";Ot().anchors.length&&(u=r.anchor),i+='<li><a href="#'+encodeURI(u)+'"><span class="fp-sr-only">'+he(r.index(),"Section")+"</span><span></span></a>";var l=Ot().navigationTooltips[r.index()];void 0!==l&&""!==l&&(i+='<div class="fp-tooltip fp-'+Ot().navigationPosition+'">'+l+"</div>"),i+="</li>"}m("ul",e)[0].innerHTML=i;var c=m("li",m(et)[0])[mn().I.index()];E(m("a",c),Yn)}function xe(n){n.preventDefault&&_(n),gn({N:"verticalNav"});var t=k(N(this,"#fp-nav li"));hn.R(En,{destination:mn().C[t]})}function ke(n,t){var e;e=n,Ot().menu&&Ot().menu.length&&m(Ot().menu).forEach((function(n){null!=n&&(R(m(Xn,n),Yn),E(m('[data-menuanchor="'+e+'"]',n),Yn))})),function(n,t){var e=m(et)[0];Ot().navigation&&null!=e&&"none"!==e.style.display&&(R(m(Xn,e),Yn),E(n?m('a[href="#'+n+'"]',e):m("a",m("li",e)[t]),Yn))}(n,t)}ge.m={up:!0,down:!0,left:!0,right:!0},ge.k=w({},ge.m),hn.D(bn,(function(n){var t=n.target;(J(t,mt)||N(t,mt))&&be.call(t,n)})),s.setRecordHistory=ye,s.setAutoScrolling=Se,s.test.setAutoScrolling=Se,(new Date).getTime();var Oe,je,Le,De,Ee,Re,Pe=(je=!0,Le=(new Date).getTime(),De=!r.fullpage_api,function(n,t){var e=(new Date).getTime(),i="wheel"===n?Ot().scrollingSpeed:100;return je=De||e-Le>=i,De=!r.fullpage_api,je&&(Oe=t(),Le=e),void 0===Oe||Oe});function Fe(n,t){if(X(Ot().beforeLeave))return Pe(mn().N,(function(){return ee(n,t)}))}function ze(n,t,e){var i=n.item;if(null!=i){var o,r,a=function(n){var t=n.offsetHeight,e=n.offsetTop,i=e,o=e>pn.tn,r=i-y()+t,a=Ot().bigSectionsDestination;return t>y()?(o||a)&&"bottom"!==a||(i=r):(o||pn.V&&null==A(n))&&(i=r),gn({tn:i}),i}(i),u={element:i,callback:t,isMovementUp:e,dtop:a,yMovement:Ut(mn().I,i),anchorLink:n.anchor,sectionIndex:n.index(),activeSlide:n.activeSlide?n.activeSlide.item:null,leavingSection:mn().I.index()+1,localIsResizing:pn.V,items:{origin:mn().I,destination:n},direction:null};if(!(mn().I.item==i&&!pn.V||Ot().scrollBar&&V()===u.dtop&&!b(i,"fp-auto-height"))){if(null!=u.activeSlide&&(o=K(u.activeSlide,"data-anchor"),r=k(u.activeSlide,null)),!u.localIsResizing){var l=u.yMovement;if(void 0!==e&&(l=e?"up":"down"),u.direction=l,X(Ot().beforeLeave)&&!1===Fe("beforeLeave",u))return;if(X(Ot().onLeave)&&!ee("onLeave",u))return}Ot().autoScrolling&&Ot().continuousVertical&&void 0!==u.isMovementUp&&(!u.isMovementUp&&"up"==u.yMovement||u.isMovementUp&&"down"==u.yMovement)&&(u=function(n){gn({on:!0});var t=mn().I.item;return n.isMovementUp?H(t,on(t,nt)):B(t,rn(t,nt).reverse()),Gt(mn().I.item.offsetTop),function(){for(var n=m(rt),t=0;t<n.length;t++)ti(n[t],"internal")}(),n.gn=t,n.dtop=n.element.offsetTop,n.yMovement=Ut(mn().I,n.element),n}(u)),u.localIsResizing||ae(mn().I.item),E(i,Yn),R(U(i),Yn),oi(),le(n),gn({G:s.test.mn}),ve(r,o,u.anchorLink),hn.R(Cn,u),function(n){gn({Y:"none",scrollY:Math.round(n.dtop)}),hn.R(Fn,n);var t=Ot().scrollingSpeed<700,e=t?700:Ot().scrollingSpeed;if(Ot().css3&&Ot().autoScrolling&&!Ot().scrollBar)qt("translate3d(0px, -"+Math.round(n.dtop)+"px, 0px)",!0),Ot().scrollingSpeed?(clearTimeout(Ee),Ee=setTimeout((function(){Ce(n),gn({G:!t||s.test.mn})}),Ot().scrollingSpeed)):Ce(n);else{var i=Ht(n.dtop);s.test.top=-n.dtop+"px",clearTimeout(Ee),Zt(i.element,i.options,Ot().scrollingSpeed,(function(){Ot().scrollBar?Ee=setTimeout((function(){Ce(n)}),30):(Ce(n),gn({G:!t||s.test.mn}))}))}t&&(clearTimeout(Re),Re=setTimeout((function(){gn({G:!0})}),e))}(u),gn({_:u.anchorLink}),ke(u.anchorLink,u.sectionIndex)}}}function Ce(n){gn({B:!1}),function(n){null!=n.gn&&(n.isMovementUp?H(m(nt)[0],n.gn):B(m(nt)[mn().C.length-1],n.gn),Gt(mn().I.item.offsetTop),function(){for(var n=m(rt),t=0;t<n.length;t++)ti(n[t],"internal")}(),gn({on:!1}))}(n),X(Ot().afterLoad)&&!n.localIsResizing&&ee("afterLoad",n),oi(),n.localIsResizing||oe(n.element),E(n.element,Qn),R(U(n.element),Qn),Te(),gn({G:!0}),hn.R(In,n),X(n.callback)&&n.callback()}function Ie(n,t){Lt("fitToSection",n,t)}function Ne(){pn.G&&Ot().fitToSection&&(gn({V:!0}),ze(pn.I),gn({V:!1}))}function Be(){var n=Ot().responsive||Ot().responsiveWidth,t=Ot().responsiveHeight,e=n&&r.innerWidth<n,i=t&&r.innerHeight<t;n&&t?He(e||i):n?He(e):t&&He(i)}function He(n){var t=We();n?t||(Se(!1,"internal"),Ie(!1,"internal"),j(m(et)),E(Xt,Kn),X(Ot().afterResponsive)&&Ot().afterResponsive.call(kt(),n)):t&&(Se(jt().autoScrolling,"internal"),Ie(jt().autoScrolling,"internal"),L(m(et)),R(Xt,Kn),X(Ot().afterResponsive)&&Ot().afterResponsive.call(kt(),n))}function We(){return b(Xt,Kn)}function Ve(n){Ot().verticalCentered&&(!Ot().scrollOverflow&&Xe.wn(n.item)||Xe.bn(n)||b(n.item,ft)||E(n.item,ft))}s.moveTo=moveTo,s.getScrollY=function(){return pn.scrollY},hn.D(xn,(function(){clearTimeout(Ee),clearTimeout(Re)})),s.setFitToSection=Ie,s.fitToSection=Ne,s.setResponsive=He;var Ue,_e=null;function Ke(n){var t=n.item,e=n.yn.length,i=n.index();!mn().I&&n.isVisible&&(E(t,Yn),oi()),!_e&&n.isVisible&&(_e=mn().I.item),Ot().paddingTop&&T(t,{"padding-top":Ot().paddingTop}),Ot().paddingBottom&&T(t,{"padding-bottom":Ot().paddingBottom}),void 0!==Ot().sectionsColor[i]&&T(t,{"background-color":Ot().sectionsColor[i]}),void 0!==Ot().anchors[i]&&t.setAttribute("data-anchor",n.anchor),e||Ve(n)}function qe(){Ot().scrollOverflow&&!Ot().scrollBar&&(Xe.Sn(),Xe.Tn())}function Ge(){hn.removeListener(wn,qe),$("keyup",Xe.Mn)}s.getActiveSection=function(){return mn().I},hn.D(An,(function(){hn.D(wn,qe),hn.D(Cn,Xe.onLeave),hn.D(zn,Xe.onLeave),hn.D(Nn,Xe.afterLoad),hn.D(In,Xe.afterLoad),hn.D(xn,Ge),q("keyup",Xe.Mn)}));var $e,Ye,Xe={An:null,xn:!0,kn:!0,On:null,jn:null,Ln:function(n){var t=mn().I;if(!pn.G||d()&&Ot().scrollOverflow&&Xe.bn(t)&&Xe.isScrolled(mn().X,t.item))return _(n),!1},Dn:function(n){if(!sn()&&Ot().keyboardScrolling&&[38,33,32,40,34,36,35].indexOf(n.keyCode)>-1&&!Xe.kn)return _(n),!1},Mn:function(){Xe.xn=pn.G},onLeave:function(){clearTimeout(Ue),Xe.kn=!1},afterLoad:function(){Xe.kn=!1,clearTimeout(Ue),Ue=setTimeout((function(){Xe.xn=pn.G}),200)},En:function(){a.activeElement===this.An&&(this.An.blur(),Xe.kn=!1)},Tn:function(){if(Ot().scrollOverflow&&Xe.xn){Xe.En();var n=Xe.Rn(mn().I.item);!n||u||c||(this.An=n,requestAnimationFrame((function(){n.focus({Pn:!0}),Xe.kn=!0}))),Xe.xn=!1}},Sn:function(){Ot().scrollOverflowMacStyle&&!l&&E(Xt,"fp-scroll-mac"),mn().dn.forEach((function(n){if(!(n.slides&&n.slides.length||b(n.item,"fp-auto-height-responsive")&&We())){var t,e=Nt(n.item),i=Xe.wn(n.item),o=(t=n).ln?t:t.parent;if(f){var r=i?"addClass":"removeClass";vn[r](o.item,dt),vn[r](n.item,dt)}else E(o.item,dt),E(n.item,dt);n.un||(Xe.Fn(e),Xe.zn(e)),n.un=!0}}))},zn:function(n){Xe.Rn(n).addEventListener("scroll",Xe.Cn),n.addEventListener("wheel",Xe.Ln,{passive:!1}),n.addEventListener("keydown",Xe.Dn,{passive:!1})},Fn:function(n){var t=document.createElement("div");t.className=st,C(n,t),t.setAttribute("tabindex","-1")},In:function(n){var t=m(vt,n)[0];t&&(I(t),n.removeAttribute("tabindex"))},Rn:function(n){var t=Nt(n);return m(vt,t)[0]||t},un:function(n){return b(n,st)||null!=m(vt,n)[0]},bn:function(n){return n.ln&&n.activeSlide?n.activeSlide.un:n.un},wn:function(n){return Xe.Rn(n).scrollHeight>r.innerHeight},isScrolled:function(n,t){if(!pn.G)return!1;if(Ot().scrollBar)return!0;var e=Xe.Rn(t);if(!Ot().scrollOverflow||!b(e,st)||b(t,"fp-noscroll")||b(Nt(t),"fp-noscroll"))return!0;var i=f?1:0,o=e.scrollTop,r="up"===n&&o<=0,a="down"===n&&e.scrollHeight<=Math.ceil(e.offsetHeight+o)+i,u=r||a;return u||"none"===n||(this.On=(new Date).getTime()),u},Nn:function(){this.jn=(new Date).getTime();var n=this.jn-Xe.On,t=(u||c)&&pn.J,e=pn.Z&&n>600;return t&&n>400||e},Cn:($e=0,function(n){var t=n.target.scrollTop,e="none"!==pn.Y?pn.Y:$e<t?"down":"up";$e=t,X(Ot().onScrollOverflow)&&ee("onScrollOverflow",{position:t,direction:e}),b(n.target,st)&&pn.G&&Xe.isScrolled(e,n.target)&&Xe.Nn()&&Xe.wn(mn().I.item)&&hn.R(On,{direction:e})})};function Qe(){clearTimeout(Ye),gn({W:!1})}function Je(n,t,e){var i,o,r=N(n,nt),a=mn().C.filter((function(n){return n.item==r}))[0],u=a.slides.filter((function(n){return n.item==t}))[0],l={slides:n,destiny:t,direction:e,destinyPos:{left:t.offsetLeft},slideIndex:u.index(),section:r,sectionIndex:a.index(),anchorLink:a.anchor,slidesNav:m(ht,r)[0],slideAnchor:u.anchor,prevSlide:a.activeSlide.item,prevSlideIndex:a.activeSlide.index(),items:{section:a,origin:a.activeSlide,destination:u},localIsResizing:pn.V};l.Bn=(i=l.prevSlideIndex,o=l.slideIndex,i==o?"none":i>o?"left":"right"),l.direction=l.direction?l.direction:l.Bn,l.localIsResizing||gn({G:!1}),Ot().onSlideLeave&&!l.localIsResizing&&"none"!==l.Bn&&X(Ot().onSlideLeave)&&!1===ee("onSlideLeave",l)?gn({W:!1}):(E(t,Yn),R(U(t),Yn),oi(),l.localIsResizing||(ae(l.prevSlide),le(u)),function(n){!Ot().loopHorizontal&&Ot().controlArrows&&(Z(m(bt,n.section),0!==n.slideIndex),Z(m(yt,n.section),null!=A(n.destiny)))}(l),a.isActive&&!l.localIsResizing&&ve(l.slideIndex,l.slideAnchor,l.anchorLink),hn.R(zn,l),function(n,t,e){var i,o,r=t.destinyPos;if(i=t.slidesNav,o=t.slideIndex,Ot().slidesNavigation&&null!=i&&(R(m(Xn,i),Yn),E(m("a",m("li",i)[o]),Yn)),gn({scrollX:Math.round(r.left)}),Ot().css3){var a="translate3d(-"+Math.round(r.left)+"px, 0px, 0px)";s.test.Hn[t.sectionIndex]=a,T(Vt(m(ct,n)),Kt(a)),clearTimeout(Ye),Ye=setTimeout((function(){ni(t)}),Ot().scrollingSpeed)}else s.test.left[t.sectionIndex]=Math.round(r.left),Zt(n,Math.round(r.left),Ot().scrollingSpeed,(function(){ni(t)}))}(n,l))}function Ze(){clearTimeout(Ye)}function ni(n){n.localIsResizing||(X(Ot().afterSlideLoad)&&ee("afterSlideLoad",n),gn({G:!0}),oe(n.destiny),hn.R(Nn,n)),gn({W:!1})}function ti(n,t){$t(0,"internal"),void 0!==t&&gn({V:!0}),Je(N(n,ut),n),void 0!==t&&gn({V:!1}),$t(jt().scrollingSpeed,"internal")}s.landscapeScroll=Je,hn.D(An,(function(){hn.D(Fn,Qe)}));var ei=null,ii=null;function oi(){pn.I=null,pn.C.map((function(n){var t=b(n.item,Yn);n.isActive=t,n.un=Xe.un(n.item),t&&(pn.I=n),n.slides.length&&(n.activeSlide=null,n.slides.map((function(t){var e=b(t.item,Yn);t.un=Xe.un(n.item),t.isActive=e,e&&(n.activeSlide=t)})))})),function(){var n=pn.I,t=!!pn.I&&pn.I.slides.length,e=pn.I?pn.I.activeSlide:null;if(!n&&pn.C.length&&!mn().B&&ei){var i=ui(ei,pn.C);i&&(pn.I=i,pn.I.isActive=!0,E(pn.I.item,Yn)),pn.I&&Gt(pn.I.item.offsetTop)}if(t&&!e&&ii){var o=ui(ii,pn.I.slides);o&&(pn.I.activeSlide=o,pn.I.activeSlide.isActive=!0,E(pn.I.activeSlide.item,Yn)),pn.I.activeSlide&&ti(pn.I.activeSlide.item,"internal")}}()}function ri(){var n=m(Ot().sectionSelector,kt()),t=g(n),e=Array.from(n).map((function(n){return new li(n)})),i=e.filter((function(n){return n.isVisible})),o=i.reduce((function(n,t){return n.concat(t.slides)}),[]);ei=ai(pn.I),ii=ai(pn.I?pn.I.activeSlide:null),pn.P=t.length,pn.F=i.reduce((function(n,t){return n+t.slides.length}),0),pn.C=i,pn.sn=e,pn.slides=o,pn.dn=pn.C.concat(pn.slides)}function ai(n){if(!n)return null;var t=n?n.item:null,e=n.ln?pn.sn:pn.I.Wn;if(t){var i=Ft(e,t);return i?i.index():null}return null}function ui(n,t){var e,i=n-1,o=n;do{if(e=t[i]||t[o])break;i-=1,o+=1}while(i>=0||o<t.length);return e}var li=function(n){var t=this;[].push.call(arguments,Ot().sectionSelector),Rt.apply(this,arguments),this.yn=m(Ot().slideSelector,n),this.Wn=Array.from(this.yn).map((function(n){return new fi(n,t)})),this.slides=this.Wn.filter((function(n){return n.isVisible})),this.activeSlide=this.slides.length?this.slides.filter((function(n){return n.isActive}))[0]||this.slides[0]:null};li.prototype=Rt.prototype,li.prototype.constructor=li;var ci,fi=function(n,t){this.parent=t,Rt.call(this,n,Ot().slideSelector)};function si(){E(m(Ot().sectionSelector,kt()),Zn),E(m(Ot().slideSelector,kt()),it)}function vi(n){var t=n.slides.length,e=n.yn,i=n.slides,o=100*t,r=100/t;if(!m(ut,n.item)[0]){var u=a.createElement("div");u.className=at,z(e,u);var l=a.createElement("div");l.className=lt,z(e,l)}T(m(ct,n.item),{width:o+"%"}),t>1&&(Ot().controlArrows&&function(n){var t=n.item,e=[nn(Ot().controlArrowsHTML[0]),nn(Ot().controlArrowsHTML[1])];B(m(ut,t)[0],e),E(e,gt),E(e[0],wt),E(e[1],"fp-next"),"#fff"!==Ot().controlArrowColor&&(T(m(yt,t),{"border-color":"transparent transparent transparent "+Ot().controlArrowColor}),T(m(bt,t),{"border-color":"transparent "+Ot().controlArrowColor+" transparent transparent"})),Ot().loopHorizontal||j(m(bt,t))}(n),Ot().slidesNavigation&&function(n){var t=n.item,e=n.slides.length;P(nn('<div class="fp-slidesNav"><ul></ul></div>'),t);var i=m(ht,t)[0];E(i,"fp-"+Ot().slidesNavPosition);for(var o=0;o<e;o++)P(nn('<li><a href="#"><span class="fp-sr-only">'+he(o,"Slide",m(ot,t)[o])+"</span><span></span></a></li>"),m("ul",i)[0]);T(i,{"margin-left":"-"+i.innerWidth/2+"px"});var r=n.activeSlide?n.activeSlide.index():0;E(m("a",m("li",i)[r]),Yn)}(n)),i.forEach((function(n){T(n.item,{width:r+"%"}),Ot().verticalCentered&&Ve(n)}));var c=n.activeSlide||null;null!=c&&pn.I&&(0!==pn.I.index()||0===pn.I.index()&&0!==c.index())?ti(c.item,"internal"):E(e[0],Yn)}fi.prototype=Rt.prototype,fi.prototype.constructor=li;var di={attributes:!1,subtree:!0,childList:!0,characterData:!0};function hi(){return g(m(Ot().slideSelector,kt())).length!==mn().F}function pi(n){var t=hi();(hi()||g(m(Ot().sectionSelector,kt())).length!==mn().P)&&!pn.on&&(Ot().observer&&ci&&ci.disconnect(),ri(),oi(),Ot().anchors=[],tn(m(et)),si(),Dt(),Ot().navigation&&Ae(),t&&(tn(m(ht)),tn(m(mt))),mn().C.forEach((function(n){n.slides.length?t&&vi(n):Ke(n)}))),Ot().observer&&ci&&m(Un)[0]&&ci.observe(m(Un)[0],di)}hn.D(An,(function(){var n,t,e;Ot().observer&&"MutationObserver"in window&&m(Un)[0]&&(n=m(Un)[0],t=di,(e=new MutationObserver(pi)).observe(n,t),ci=e),hn.D(kn,pi)})),s.render=pi;var gi=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});G("testPassive",null,t),Y("testPassive",null,t)}catch(n){}return function(){return n}}();function mi(){return!!gi()&&{passive:!1}}var wi,bi,yi,Si,Ti=(yi=(new Date).getTime(),Si=[],{Vn:function(n){var t=(n=n||r.event).wheelDelta||-n.deltaY||-n.detail,e=Math.max(-1,Math.min(1,t)),i=void 0!==n.wheelDeltaX||void 0!==n.deltaX;wi=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!i;var o=(new Date).getTime();bi=e<0?"down":"up",Si.length>149&&Si.shift(),Si.push(Math.abs(t));var a=o-yi;yi=o,a>200&&(Si=[])},Un:function(){var n=ln(Si,10)>=ln(Si,70);return!!Si.length&&n&&wi},_n:function(){return bi}});function Mi(){var n=Ot().css3?V()+y():un(mn().C).item.offsetTop+un(mn().C).item.offsetHeight,t=Ht(n);s.test.top=-n+"px",gn({G:!1}),Zt(t.element,t.options,Ot().scrollingSpeed,(function(){setTimeout((function(){gn({B:!0}),gn({G:!0})}),30)}))}function Ai(){kt().getBoundingClientRect().bottom>=0&&xi()}function xi(){var n=Ht(un(mn().C).item.offsetTop);gn({G:!1}),Zt(n.element,n.options,Ot().scrollingSpeed,(function(){gn({G:!0}),gn({B:!1}),gn({Kn:!1})}))}var ki,Oi,ji,Li=(ki=!1,Oi={},ji={},function(n,t,e){switch(n){case"set":Oi[t]=(new Date).getTime(),ji[t]=e;break;case"isNewKeyframe":var i=(new Date).getTime();ki=i-Oi[t]>ji[t]}return ki});function Di(){var n=mn().I.next();n||!Ot().loopBottom&&!Ot().continuousVertical||(n=mn().C[0]),null!=n?ze(n,null,!1):kt().scrollHeight<Xt.scrollHeight&&Ot().scrollBar&&Ot().scrollBeyondFullpage&&hn.R(Pn)}function Ei(){var n=mn().I.prev();n||!Ot().loopTop&&!Ot().continuousVertical||(n=un(mn().C)),null!=n&&ze(n,null,!0)}s.moveSectionDown=Di,s.moveSectionUp=Ei;var Ri=0;function Pi(n){Ot().autoScrolling&&(pn.G&&(n.pageY<Ri&&we().m.up?Ei():n.pageY>Ri&&we().m.down&&Di()),Ri=n.pageY)}function Fi(n){if(we().m[n]){var t="down"===n?Di:Ei;Ot().scrollOverflow&&Xe.bn(mn().I)?Xe.isScrolled(n,mn().I.item)&&Xe.Nn()&&t():t()}}var zi,Ci,Ii,Ni,Bi=0,Hi=0,Wi=0,Vi=0,Ui=(r.PointerEvent&&(Ni={down:"pointerdown",move:"pointermove"}),Ni),_i={qn:"ontouchmove"in window?"touchmove":Ui?Ui.move:null,Gn:"ontouchstart"in window?"touchstart":Ui?Ui.down:null};function Ki(n){var t=N(n.target,nt)||mn().I.item,e=Xe.bn(mn().I);if(qi(n)){gn({J:!0,Z:!1}),Ot().autoScrolling&&(e&&!pn.G||Ot().scrollBar)&&_(n);var i=Yi(n);Wi=i.y,Vi=i.x;var o=Math.abs(Bi-Wi)>r.innerHeight/100*Ot().touchSensitivity,a=Math.abs(Hi-Vi)>S()/100*Ot().touchSensitivity,u=m(ut,t).length&&Math.abs(Hi-Vi)>Math.abs(Bi-Wi),l=Bi>Wi?"down":"up";gn({Y:u?Hi>Vi?"right":"left":l}),u?!pn.W&&a&&(Hi>Vi?we().m.right&&hn.R(Sn,{section:t}):we().m.left&&hn.R(yn,{section:t})):Ot().autoScrolling&&pn.G&&o&&Fi(l)}}function qi(n){return void 0===n.pointerType||"mouse"!=n.pointerType}function Gi(n){if(Ot().fitToSection&&gn({q:!1}),qi(n)){var t=Yi(n);Bi=t.y,Hi=t.x}G("touchend",$i)}function $i(){Y("touchend",$i),gn({J:!1})}function Yi(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,c&&qi(n)&&Ot().scrollBar&&void 0!==n.touches&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function Xi(n){Ot().autoScrolling&&qi(n)&&we().m.up&&(pn.G||_(n))}function Qi(n,t){var e=null==t?mn().I.item:t,i=Ft(pn.C,e),o=m(ut,e)[0];if(!(null==o||pn.W||i.slides.length<2)){var r=i.activeSlide,a="left"===n?r.prev():r.next();if(!a){if(!Ot().loopHorizontal)return;a="left"===n?un(i.slides):i.slides[0]}gn({W:!s.test.mn}),Je(o,a.item,n)}}function Ji(n){Qi("left",n)}function Zi(n){Qi("right",n)}function no(n){var t=mn().C.filter((function(t){return t.anchor===n}))[0];if(!t){var e=void 0!==n?n-1:0;t=mn().C[e]}return t}function to(n){null!=n&&Je(N(n,ut),n)}function eo(n,t){var e=no(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===pn._||b(e.item,Yn)?to(i):ze(e,(function(){to(i)}))}}function io(n,t){var e=no(n);void 0!==t?eo(n,t):null!=e&&ze(e)}function oo(){clearTimeout(Ci),$("keydown",ro),$("keyup",ao)}function ro(n){clearTimeout(Ci);var t=n.keyCode,e=[37,39].indexOf(t)>-1,i=Ot().autoScrolling||Ot().fitToSection||e;9===t?function(n){var t=n.shiftKey,e=a.activeElement,i=so(Nt(mn().I.item));function o(n){return _(n),i[0]?i[0].focus():null}if(pn.G){if(!function(n){var t=so(a),e=t.indexOf(a.activeElement),i=t[n.shiftKey?e-1:e+1],o=N(i,ot),r=N(i,nt);return!o&&!r}(n)){e?null==N(e,".fp-section.active,.fp-section.active .fp-slide.active")&&(e=o(n)):o(n);var r=e==i[0],u=e==i[i.length-1],l=t&&r;if(l||!t&&u){_(n);var c=function(n){var t,e=n?"prevPanel":"nextPanel",i=[],o=Bt((pn.I&&pn.I.activeSlide?pn.I.activeSlide:pn.I)[e]());do{(i=so(o.item)).length&&(t={$n:o,Yn:i[n?i.length-1:0]}),o=Bt(o[e]())}while(o&&0===i.length);return t}(l),f=c?c.$n:null;if(f){var s=f.ln?f:f.parent;hn.R(jn,{Xn:s.index()+1,slideAnchor:f.ln?0:f.index()}),Ii=c.Yn,_(n)}}}}else _(n)}(n):!sn()&&Ot().keyboardScrolling&&i&&(zi=n.ctrlKey,Ci=setTimeout((function(){!function(n){var t=n.shiftKey,e=a.activeElement,i=J(e,"video")||J(e,"audio"),o=Xe.isScrolled("up",mn().I.item),r=Xe.isScrolled("down",mn().I.item),u=[37,39].indexOf(n.keyCode)>-1;if(function(n){(function(n){return[40,38,32,33,34].indexOf(n.keyCode)>-1&&!pn.B})(n)&&!N(n.target,vt)&&n.preventDefault()}(n),pn.G||u)switch(gn({N:"keydown"}),n.keyCode){case 38:case 33:we().k.up&&o?pn.B?hn.R(Ln,{e:n}):Ei():Xe.Tn();break;case 32:if(t&&we().k.up&&!i&&o){Ei();break}case 40:case 34:if(we().k.down&&r){if(pn.B)return;32===n.keyCode&&i||Di()}else Xe.Tn();break;case 36:we().k.up&&io(1);break;case 35:we().k.down&&io(mn().C.length);break;case 37:we().k.left&&Ji();break;case 39:we().k.right&&Zi()}}(n)}),0))}function ao(n){pn.nn&&(zi=n.ctrlKey)}function uo(){gn({nn:!1}),zi=!1}function lo(n){fo()}function co(n){N(Ii,ot)&&!N(Ii,rt)||fo()}function fo(){Ii&&(Ii.focus(),Ii=null)}function so(n){return[].slice.call(m('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"!==K(n,"tabindex")&&null!==n.offsetParent}))}s.moveSlideLeft=Ji,s.moveSlideRight=Zi,s.moveTo=io,hn.D(An,(function(){G("blur",uo),q("keydown",ro),q("keyup",ao),hn.D(xn,oo),hn.D(Nn,lo),hn.D(In,co)}));var vo=(new Date).getTime(),ho=[];function po(n){n?(function(){var n,t="";r.addEventListener?n="addEventListener":(n="attachEvent",t="on");var e="onwheel"in a.createElement("div")?"wheel":void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll",i=mi();"DOMMouseScroll"==e?a[n](t+"MozMousePixelScroll",go,i):a[n](t+e,go,i)}(),kt().addEventListener("mousedown",mo),kt().addEventListener("mouseup",wo)):(a.addEventListener?($("mousewheel",go,!1),$("wheel",go,!1),$("MozMousePixelScroll",go,!1)):a.detachEvent("onmousewheel",go),kt().removeEventListener("mousedown",mo),kt().removeEventListener("mouseup",wo))}function go(n){var t=(new Date).getTime(),e=b(m(".fp-completely")[0],"fp-normal-scroll"),i=function(n,t){(new Date).getTime();var e=mn().B&&n.getBoundingClientRect().bottom>=0&&"up"===Ti._n(),i=mn().Kn;if(i)return _(t),!1;if(mn().B){if(e){var o;if(!(i||Li("isNewKeyframe","beyondFullpage")&&Ti.Un()))return(o=Ht(un(mn().C).item.offsetTop+un(mn().C).item.offsetHeight)).element.scrollTo(0,o.options),gn({Kn:!1}),_(t),!1;if(Ti.Un())return e=!1,gn({Kn:!0}),gn({N:"wheel"}),xi(),_(t),!1}else Li("set","beyondFullpage",1e3);if(!i&&!e)return!0}}(kt(),n);if(pn.Z||gn({J:!1,Z:!0,Y:"none"}),!we().m.down&&!we().m.up)return!1;if(i)return!0;if(!1===i)return _(n),!1;if(Ot().autoScrolling&&!zi&&!e){var o=(n=n||r.event).wheelDelta||-n.deltaY||-n.detail,a=Math.max(-1,Math.min(1,o)),u=void 0!==n.wheelDeltaX||void 0!==n.deltaX,l=Math.abs(n.wheelDeltaX)<Math.abs(n.wheelDelta)||Math.abs(n.deltaX)<Math.abs(n.deltaY)||!u,c=a<0?"down":a>0?"up":"none";ho.length>149&&ho.shift(),ho.push(Math.abs(o)),Ot().scrollBar&&_(n);var f=t-vo;return vo=t,f>200&&(ho=[]),gn({X:c}),pn.G&&ln(ho,10)>=ln(ho,70)&&l&&(gn({N:"wheel"}),Fi(a<0?"down":"up")),!1}Ot().fitToSection&&gn({q:!1})}function mo(n){var t;2==n.which&&(t=n.pageY,Ri=t,kt().addEventListener("mousemove",Pi))}function wo(n){2==n.which&&kt().removeEventListener("mousemove",Pi)}function bo(n){n?(po(!0),function(){if(_i.qn&&(u||c)){Ot().autoScrolling&&(Xt.removeEventListener(_i.qn,Xi,{passive:!1}),Xt.addEventListener(_i.qn,Xi,{passive:!1}));var n=Ot().touchWrapper;n.removeEventListener(_i.Gn,Gi),n.removeEventListener(_i.qn,Ki,{passive:!1}),n.addEventListener(_i.Gn,Gi),n.addEventListener(_i.qn,Ki,{passive:!1})}}()):(po(!1),function(){if(_i.qn&&(u||c)){Ot().autoScrolling&&(Xt.removeEventListener(_i.qn,Ki,{passive:!1}),Xt.removeEventListener(_i.qn,Xi,{passive:!1}));var n=Ot().touchWrapper;n.removeEventListener(_i.Gn,Gi),n.removeEventListener(_i.qn,Ki,{passive:!1})}}())}s.setMouseWheelScrolling=po;var yo=!0;function So(){["mouseenter","touchstart","mouseleave","touchend"].forEach((function(n){$(n,Mo,!0)}))}function To(n,t){document["fp_"+n]=t,q(n,Mo,!0)}function Mo(n){var t=n.type,e=!1,i="mouseleave"===t?n.toElement||n.relatedTarget:n.target;i!=document&&i?("touchend"===t&&(yo=!1,setTimeout((function(){yo=!0}),800)),("mouseenter"!==t||yo)&&(Ot().normalScrollElements.split(",").forEach((function(n){if(!e){var t=J(i,n),o=N(i,n);(t||o)&&(s.shared.Qn||bo(!1),s.shared.Qn=!0,e=!0)}})),!e&&s.shared.Qn&&(bo(!0),s.shared.Qn=!1))):bo(!0)}function Ao(n,t){$t(0,"internal"),io(n,t),$t(jt().scrollingSpeed,"internal")}hn.D(An,(function(){Ot().normalScrollElements&&(["mouseenter","touchstart"].forEach((function(n){To(n,!1)})),["mouseleave","touchend"].forEach((function(n){To(n,!0)}))),hn.D(xn,So)})),s.silentMoveTo=Ao;var xo,ko,Oo=y(),jo=S(),Lo=!1;function Do(){clearTimeout(xo),clearTimeout(ko),Y("resize",Eo)}function Eo(){Lo||(Ot().autoScrolling&&!Ot().scrollBar||!Ot().fitToSection)&&Po(y()),pn.an&&function(){if(u)for(var n=0;n<4;n++)ko=setTimeout((function(){window.requestAnimationFrame((function(){Ot().autoScrolling&&!Ot().scrollBar&&(gn({V:!0}),Ao(pn.I.index()+1),gn({V:!1}))}))}),200*n)}(),Lo=!0,clearTimeout(xo),xo=setTimeout((function(){!function(){var n,t,e;if(gn({V:!0}),(!u||Ot().adjustOnNavChange)&&(Po(""),pn.B||Ot().autoScrolling||(n=.01*r.innerHeight,a.documentElement.style.setProperty("--vh","".concat(n,"px")))),hn.R(kn),oi(),Be(),u){var i=a.activeElement;if(!J(i,"textarea")&&!J(i,"input")&&!J(i,"select")){var o=y();Math.abs(o-Oo)>20*Math.max(Oo,o)/100&&(Ro(!0),Oo=o)}}else t=y(),e=S(),pn.en===t&&jo===e||(gn({en:t}),jo=e,Ro(!0));gn({V:!1})}(),Lo=!1}),400)}function Ro(n){if(!b(kt(),Gn)){gn({V:!0,en:y(),Jn:S()});for(var t=mn().C,e=0;e<t.length;++e){var i=t[e],o=m(ut,i.item)[0];i.slides.length>1&&Je(o,i.activeSlide.item)}Ot().scrollOverflow&&Xe.Sn();var a=mn().I.index();pn.B||a&&Ao(a+1),gn({V:!1}),X(Ot().afterResize)&&n&&Ot().afterResize.call(kt(),r.innerWidth,r.innerHeight),X(Ot().afterReBuild)&&!n&&Ot().afterReBuild.call(kt()),Q(kt(),"afterRebuild")}}function Po(n){var t=""===n?"":n+"px";mn().C.forEach((function(n){T(n.item,{height:t})}))}function Fo(){var n,t,e=r.location.hash;if(e.length){var i=e.replace("#","").split("/"),o=e.indexOf("#/")>-1;n=o?"/"+i[1]:decodeURIComponent(i[0]);var a=o?i[2]:i[1];a&&a.length&&(t=decodeURIComponent(a))}return{section:n,pn:t}}function zo(){Y("hashchange",Co)}function Co(){if(!pn.U&&!Ot().lockAnchors){var n=Fo(),t=n.section,e=n.pn,i=void 0===pn._,o=void 0===pn._&&void 0===e&&!pn.W;t&&t.length&&(t&&t!==pn._&&!i||o||!pn.W&&pn.K!=e)&&hn.R(jn,{Xn:t,slideAnchor:e})}}function Io(n){var t=n.target;N(t,Ot().menu+" [data-menuanchor]")&&No.call(t,n.e)}function No(n){if(gn({N:"menu"}),m(Ot().menu)[0]&&(Ot().lockAnchors||!Ot().anchors.length)){_(n);var t=N(this,"[data-menuanchor]");hn.R(Dn,{anchor:K(t,"data-menuanchor")})}}function Bo(n){var t=n.target;t&&N(t,"#fp-nav a")?xe.call(t,n.e):J(t,".fp-tooltip")?Me.call(t):(J(t,pt)||null!=N(t,pt))&&pe.call(t,n.e)}s.reBuild=Ro,hn.D(An,(function(){Eo(),G("resize",Eo),hn.D(xn,Do)})),s.setLockAnchors=function(n){Ot().lockAnchors=n},hn.D(An,(function(){G("hashchange",Co),hn.D(xn,zo)})),hn.D(An,(function(){q("wheel",Ti.Vn,mi()),hn.D(Pn,Mi),hn.D(Ln,Ai)})),hn.D(An,(function(){hn.D(bn,Io)})),hn.D(An,(function(){hn.D(bn,Bo)}));var Ho,Wo,Vo=0;function Uo(n){var t,e,i,o,r;if(!pn.V&&mn().I&&(un(mn().C),!mn().B&&!mn().Kn&&(!Ot().autoScrolling||Ot().scrollBar))){var a=V(),l=function(n){var t=n>Vo?"down":"up";return Vo=n,gn({tn:n}),t}(a),c=0,f=a+y()/2,s=Xt.scrollHeight-y()===a,v=mn().C;if(gn({scrollY:a}),s)c=v.length-1;else if(a)for(var d=0;d<v.length;++d)v[d].item.offsetTop<=f&&(c=d);else c=0;if(i=l,o=mn().I.item.offsetTop,r=o+y(),("up"==i?r>=V()+y():o<=V())&&(b(mn().I.item,Qn)||(E(mn().I.item,Qn),R(U(mn().I.item),Qn))),e=(t=v[c]).item,!t.isActive){gn({U:!0});var h,p,g=mn().I.item,m=mn().I.index()+1,w=Ut(mn().I,e),S=t.anchor,T=t.index()+1,M=t.activeSlide,A={I:g,sectionIndex:T-1,anchorLink:S,element:e,leavingSection:m,direction:w,items:{origin:mn().I,destination:t}};M&&(p=M.anchor,h=M.index()),pn.G&&(E(e,Yn),R(U(e),Yn),X(Ot().beforeLeave)&&Fe("beforeLeave",A),X(Ot().onLeave)&&ee("onLeave",A),X(Ot().afterLoad)&&ee("afterLoad",A),ae(g),le(t),oe(e),ke(S,T-1),Ot().anchors.length&&gn({_:S}),oi(),ve(h,p,S)),clearTimeout(Ho),Ho=setTimeout((function(){gn({U:!1})}),100)}Ot().fitToSection&&pn.G&&(clearTimeout(Wo),Wo=setTimeout((function(){var n;if(!pn.C.filter((function(n){var t=n.item.getBoundingClientRect();return Math.round(t.bottom)===Math.round(y())||0===Math.round(t.top)})).length){if(u&&(n=document.activeElement)&&n.matches("input, textarea"))return;Ne()}}),Ot().fitToSectionDelay))}}function _o(n){var t=n.items.destination.activeSlide;gn({scrollX:t?Math.round(t.offsetLeft):0})}function Ko(n){var t=Ot().skipIntermediateItems,e=n.items.origin.ln?"sections":"slides",i=Math.abs(n.items.origin.index()-n.items.destination.index())>1;(!0===t||t===e)&&i&&$t(0,"internal")}function qo(n){Ot().skipIntermediateItems&&Lt("scrollingSpeed",jt().scrollingSpeed,"internal")}function Go(n,t){void 0!==t?(t=t.replace(/ /g,"").split(",")).forEach((function(t){me(n,t,"k")})):(me(n,"all","k"),Ot().keyboardScrolling=n)}function $o(n){var t=n.index();void 0!==Ot().anchors[t]&&n.isActive&&ke(Ot().anchors[t],t),Ot().menu&&Ot().css3&&null!=N(m(Ot().menu)[0],Un)&&m(Ot().menu).forEach((function(n){Xt.appendChild(n)}))}function Yo(){var n,t,e=mn().I,i=mn().I.item;E(i,Qn),le(mn().I),Te(),oe(i),t=no((n=Fo()).section),n.section&&t&&(void 0===t||t.index()!==k(_e))||!X(Ot().afterLoad)||ee("afterLoad",{I:i,element:i,direction:null,anchorLink:e.anchor,sectionIndex:e.index(),items:{origin:mn().I,destination:mn().I}}),X(Ot().afterRender)&&ee("afterRender")}function Xo(n,t){void 0!==t?(t=t.replace(/ /g,"").split(",")).forEach((function(t){me(n,t,"m")})):me(n,"all","m")}function Qo(){var n=Fo(),t=n.section,e=n.pn;t?Ot().animateAnchor?eo(t,e):Ao(t,e):hn.R(wn,null)}function Jo(){ri(),oi(),Ot().scrollBar=Ot().scrollBar||Ot().hybrid,Dt(),function(){T(fn(kt(),"body"),{height:"100%",position:"relative"}),E(kt(),Vn),E(Qt,$n),gn({en:y()}),R(kt(),Gn),si();for(var n=mn().sn,t=0;t<n.length;t++){var e=n[t],i=e.yn,o=K(e.item,"style");o&&e.item.setAttribute("data-fp-styles",o),Ke(e),$o(e),i.length>0&&vi(e)}Ot().fixedElements&&Ot().css3&&m(Ot().fixedElements).forEach((function(n){Xt.appendChild(n)})),Ot().navigation&&Ae(),m('iframe[src*="youtube.com/embed/"]',kt()).forEach((function(n){var t,e;e=K(t=n,"src"),t.setAttribute("src",e+(/\?/.test(e)?"&":"?")+"enablejsapi=1")})),Ot().scrollOverflow&&Xe.Sn()}(),Xo(!0),bo(!0),Se(Ot().autoScrolling,"internal"),Be(),fe(),"complete"===a.readyState&&Qo(),G("load",Qo),Yo(),ri(),oi()}function Zo(){var n=Ot().licenseKey;""===Ot().licenseKey.trim()?(h("erro