UNPKG

fullpage.js

Version:

Create beautiful fullscreen snap scrolling websites

11 lines 67.1 kB
/*! * fullPage 4.0.37 * 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 Re},get getVisible(){return Le},get $(){return je},get deepExtend(){return ze},get hasClass(){return De},get getWindowHeight(){return Ne},get t(){return He},get css(){return Ie},get prev(){return Pe},get next(){return Ce},get last(){return We},get index(){return Fe},get getList(){return Ve},get hide(){return Be},get show(){return Ze},get isArrayOrList(){return Ye},get addClass(){return Ge},get removeClass(){return Xe},get appendTo(){return Ue},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 si},get trigger(){return fi},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),s=0;s<l;)u=r[s],c[s]=a?void 0===o?a(u,s):a.call(o,u,s):u,s+=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),s="ontouchstart"in a||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,f=!!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",R="#fp-nav",L="fp-slide",j="."+L,z=".fp-slide.active",D="fp-slides",N=".fp-slides",H="fp-slidesContainer",I="."+H,P="fp-table",C="fp-overflow",W="."+C,F="fp-is-overflow",V=".fp-slidesNav",B=".fp-slidesNav a",Z="fp-controlArrow",Y="."+Z,G="fp-prev",X=".fp-controlArrow.fp-prev",U=".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},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=je(nn().sectionSelector.split(",").join("[data-anchor],")+"[data-anchor]",Q);n.length&&n.length===je(nn().sectionSelector,Q).length&&(J=!0,n.forEach((function(n){nn().anchors.push(oi(n,"data-anchor").toString())})))}if(!nn().navigationTooltips.length){var t=je(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:[],R:[],L:null,j:null,D:!1,N:!1,H:!1,I:!1,P:!1,C:void 0,W:void 0,F:!1,canScroll:!0,V:"none",B:"none",Z:!1,Y:!1,G:!0,X:0,U:Ne(),_:!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 sn(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 fn(n,t,e){if(sn(n))return si(d[n][t])?d[n][t](e):d[n][t]}function dn(){return fn("dragAndMove","isAnimating")}function vn(){return fn("dragAndMove","isGrabbing")}function pn(n){if(nn().offsetSections&&d.offsetSections){var t=fn("offsetSections","getWindowHeight",n);return""!==t?Math.round(t)+"px":t}return Ne()+"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=De(n,t);i&&null==e||!e?Xe(n,t):(!i&&null==e||e)&&Ge(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=Re(n),this.isActive=De(n,y),this.q=De(n,C)||null!=je(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.R: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.R:an.rn};var yn,Mn=function(n){mn.call(this,n)},Tn=function(n){mn.call(this,n)};function An(n){var t=je(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=je(h)[0]):(t=n,e=window),{options:t,element:e}}function kn(n,t){!nn().autoScrolling||nn().scrollBar||n.self!=window&&De(n,D)?n.self!=window&&De(n,D)?n.scrollLeft=t:n.scrollTo(0,t):n.style.top=t+"px"}function En(n){var t="transform "+nn().scrollingSpeed+"ms "+nn().easingcss3;return Xe(n,w),Ie(n,{"-webkit-transition":t,transition:t})}function Rn(n,t){var e=n.index(),i=Fe(t,O);return e==i?"none":e>i?"up":"down"}function Ln(n){return Ge(n,w)}function jn(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function zn(n,t){t?En(q()):Ln(q()),clearTimeout(yn),Ie(q(),jn(n)),d.test.on=n,yn=setTimeout((function(){Xe(q(),w)}),10)}function Dn(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 Nn(n,t){"internal"!==t&&(fn("fadingEffect","update",n),fn("effects","update",n)),fn("cards","update_",n),en("scrollingSpeed",n,t)}d.setScrollingSpeed=Nn;var Hn,In=null,Pn=null,Cn=null;function Wn(n,t,e,i){var r,o=function(n){return n.self!=a&&De(n,D)?n.scrollLeft:!nn().autoScrolling||nn().scrollBar?ei():n.offsetTop}(n),u=t-o,l=!1,c=an.F;un({F:!0}),Hn&&window.cancelAnimationFrame(Hn),Hn=function(s){r||(r=s);var f=Math.floor(s-r);if(an.F){var d=t;e&&(d=a.fp_easings[nn().easing](f,o,u,e)),f<=e&&kn(n,d),f<e?window.requestAnimationFrame(Hn):void 0===i||l||(kn(n,t),i(),un({F:!1}),l=!0)}else l||c||(i(),un({F:!1}),l=!0)},window.requestAnimationFrame(Hn)}function Fn(n){return n.hasAttribute("data-autoplay")||n.hasAttribute("autoplay")}function Vn(n){var t=An(n);je("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)})))})),je('iframe[src*="youtube.com/embed/"]',t).forEach((function(n){Fn(n)&&Bn(n),n.onload=function(){Fn(n)&&Bn(n)}}))}function Bn(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function Zn(n){var t=An(n);je("video, audio",t).forEach((function(n){n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()})),je('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 Yn(n){if(nn().lazyLoading){var t=An(n);je("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(){})}})),Ge(t,A)}}function Gn(n){var t=nn().lazyLoadThreshold;Yn(n.item),t&&(Xn(n,"prev",t),Xn(n,"next",t))}function Xn(n,t,e){for(var i=n,r=0;r<e&&(i=i[t]());r++)Yn(i.item)}function Un(){var n=ln().L.item,t=ln().L.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,""),Ge(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",st="onMenuClick",ft="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)),Un()}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({j:"horizontalNav"});var t=$e(this,O),e=je(N,$e(this,O))[0],i=Sn(ln().R,t).slides[Fe($e(this,"li"))];Jn.ln(dt,{slides:e,destination:i.item})}function Tt(n,t){nn().slidesNavigation&&null!=n&&(Xe(je(M,n),y),Ge(je("a",je("li",n)[t]),y))}Jn.un(ot,(function(){St("")}));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);De(this,G)||$e(this,".fp-prev")?kt().m.left&&(un({j:"slideArrow"}),Jn.ln(qn,{section:n})):kt().m.right&&(un({j:"slideArrow"}),Jn.ln(nt,{section:n}))}function Rt(n){!nn().loopHorizontal&&nn().controlArrows&&(vi(je(X,n.section),0!==n.slideIndex),vi(je(U,n.section),null!=Ce(n.destiny)))}function Lt(){clearTimeout(At),un({H:!1})}function jt(n,t,e){var i=$e(n,O),r=ln().R.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:je(V,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=Dt(a.prevSlideIndex,a.slideIndex),a.direction=a.direction?a.direction:a.xMovement,a.localIsResizing||un({canScroll:!1}),fn("parallax","applyHorizontal",a),fn("cards","apply",a),fn("dropEffect","apply",a),fn("waterEffect","apply",a),nn().onSlideLeave&&!a.localIsResizing&&"none"!==a.xMovement&&si(nn().onSlideLeave)&&!1===Ut("onSlideLeave",a)?un({H:!1}):(sn("dropEffect")&&nn().dropEffect||(Ge(t,y),Xe(ii(t),y)),Wt(),a.localIsResizing||(Zn(a.prevSlide),Gn(o)),Rt(a),r.isActive&&!a.localIsResizing&&bt(a.slideIndex,a.slideAnchor,a.anchorLink),fn("continuousHorizontal","apply",a),Jn.ln(ht,a),vn()?Ht(a):zt(n,a,!0),nn().interlockedSlides&&d.interlockedSlides&&(sn("continuousHorizontal")&&void 0!==e&&e!==a.xMovement||fn("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,sn("dragAndMove")&&void 0!==t.sn||En(je(I,n)),Ie(je(I,n),jn(r)),sn("interlockedSlides")||clearTimeout(At),At=setTimeout((function(){e&&Ht(t)}),nn().scrollingSpeed)}else d.test.left[t.sectionIndex]=Math.round(i.left),Wn(n,Math.round(i.left),nn().scrollingSpeed,(function(){e&&Ht(t)}))}function Dt(n,t){return n==t?"none":n>t?"left":"right"}function Nt(){clearTimeout(At)}function Ht(n){fn("dragAndMove","afterSlideLoads",n),fn("continuousHorizontal","afterSlideLoads",n),n.localIsResizing||(fn("parallax","afterSlideLoads"),fn("scrollOverflowReset","setPrevious",n.prevSlide),fn("scrollOverflowReset","reset"),si(nn().afterSlideLoad)&&Ut("afterSlideLoad",n),un({canScroll:!0}),Vn(n.destiny),Jn.ln(wt,n)),un({H:!1}),fn("interlockedSlides","interlockedSlides",n)}function It(n,t){Nn(0,"internal"),void 0!==t&&un({I:!0}),jt($e(n,N),n),void 0!==t&&un({I:!1}),Nn(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,Y)||$e(t,Y))&&Et.call(t,n)})),d.landscapeScroll=jt,Jn.un(it,(function(){Jn.un(pt,Lt)}));var Pt=null,Ct=null;function Wt(){an.L=null,an.R.map((function(n){var t=De(n.item,y);n.isActive=t,n.q=ke.q(n.item),t&&(an.L=n),n.slides.length&&(n.activeSlide=null,n.slides.map((function(t){var e=De(t.item,y);t.q=ke.q(n.item),t.isActive=e,e&&(n.activeSlide=t)})))})),function(){var n=an.L,t=!!an.L&&an.L.slides.length,e=an.L?an.L.activeSlide:null;if(!n&&an.R.length&&!ln().D&&null!==Pt){var i=Bt(Pt,an.R);i&&(an.L=i,an.L.isActive=!0,Ge(an.L.item,y)),an.L&&Dn(an.L.item.offsetTop)}if(t&&!e&&null!==Ct){var r=Bt(Ct,an.L.slides);r&&(an.L.activeSlide=r,an.L.activeSlide.isActive=!0,Ge(an.L.activeSlide.item,y)),an.L.activeSlide&&It(an.L.activeSlide.item,"internal")}}(),fi(q(),"onUpdateStateDone")}function Ft(){var n=je(nn().sectionSelector+", "+O,q()),t=Le(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=Vt(an.L),Ct=Vt(an.L?an.L.activeSlide:null),an.A=t.length,an.O=i.reduce((function(n,t){return n+t.slides.length}),0),an.R=i,an.tn=e,an.slides=r,an.rn=an.R.concat(an.slides)}function Vt(n){if(!n)return null;var t=n?n.item:null,e=n.nn?an.tn:an.L.dn;if(t){var i=Sn(e,t);return i?i.index():null}return null}function Bt(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=je(nn().slideSelector,n),this.dn=Array.from(this.vn).map((function(n){return new Yt(n,t)})),this.slides=this.dn.filter((function(n){return n.isVisible})),this.activeSlide=this.slides.length?this.slides.filter((function(n){return n.isActive}))[0]||this.slides[0]:null};Zt.prototype=wn.prototype,Zt.prototype.constructor=Zt;var Yt=function(n,t){this.parent=t,wn.call(this,n,nn().slideSelector)};function Gt(n){return n&&!n.item?new Mn(new Zt(n)):n?new Mn(n):null}function Xt(n){return n?new Tn(n):null}function Ut(n,t){var e=function(n,t){var e={afterRender:function(){return{section:Gt(ln().L),pn:Xt(ln().L.activeSlide)}},onLeave:function(){return{origin:Gt(t.items.origin),destination:Gt(t.items.destination),direction:t.direction,trigger:ln().j}},afterLoad:function(){return e.onLeave()},afterSlideLoad:function(){return{section:Gt(t.items.section),origin:Gt(t.items.origin),destination:Gt(t.items.destination),direction:t.direction,trigger:ln().j}},onSlideLeave:function(){return e.afterSlideLoad()},beforeLeave:function(){return e.onLeave()},onScrollOverflow:function(){return{section:Gt(ln().L),pn:Xt(ln().L.activeSlide),position:t.position,direction:t.direction}}};return e[n]()}(n,t);return fi(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||Dn(0),en("autoScrolling",n,t);var e=ln().L.item;if(nn().autoScrolling&&!nn().scrollBar)Ie(Cn,{overflow:"hidden",height:"100%"}),Xe(In,g),_t(tn().recordHistory,"internal"),Ie(q(),{"-ms-touch-action":"none","touch-action":"none"}),null!=e&&Dn(e.offsetTop);else if(Ie(Cn,{overflow:"visible",height:"initial"}),Ge(In,g),_t(!!nn().autoScrolling&&tn().recordHistory,"internal"),Ie(q(),{"-ms-touch-action":"","touch-action":""}),Ln(q()),null!=e){var i=On(e.offsetTop);i.element.scrollTo(0,i.options)}fi(q(),"setAutoScrolling",n)}function Jt(n){return De(ln().L.item,E)?de(ln().L.item):ln().L.item.offsetTop}function Kt(){for(var n=je(z),t=0;t<n.length;t++)It(n[t],"internal")}function $t(){var n=je(".fp-auto-height")[0]||we()&&je(".fp-auto-height-responsive")[0];nn().lazyLoading&&n&&je(".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.U&&e>0,o=i>2&&i<an.U,(r||o)&&Gn(Sn(ln().R,n))}))}function qt(){fi(Pe(this),"click")}function ne(){hi(je(R));var n=u.createElement("div");n.setAttribute("id","fp-nav");var t=u.createElement("ul");n.appendChild(t),Ue(n,In);var e=je(R)[0];Ge(e,"fp-"+nn().navigationPosition),nn().showActiveTooltip&&Ge(e,"fp-show-active");for(var i="",r=0;r<ln().R.length;r++){var o=ln().R[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>"}je("ul",e)[0].innerHTML=i;var c=je("li",je(R)[0])[ln().L.index()];Ge(je("a",c),y)}function te(n){n.preventDefault&&ri(n),un({j:"verticalNav"});var t=Fe($e(this,"#fp-nav li"));Jn.ln(ft,{destination:ln().R[t]})}function ee(n,t){var e;e=n,nn().menu&&nn().menu.length&&je(nn().menu).forEach((function(n){null!=n&&(Xe(je(M,n),y),Ge(je('[data-menuanchor="'+e+'"]',n),y))})),function(n,t){var e=je(R)[0];nn().navigation&&null!=e&&"none"!==e.style.display&&(Xe(je(M,e),y),Ge(n?je('a[href="#'+n+'"]',e):je("a",je("li",e)[t]),y))}(n,t)}Yt.prototype=wn.prototype,Yt.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 se(n,t){if(si(nn().beforeLeave))return ce(ln().j,(function(){return Ut(n,t)}))}function fe(n,t,e){var i=n.item;if(null!=i){var r,o,a={element:i,callback:t,isMovementUp:e,dtop:de(i),yMovement:Rn(ln().L,i),anchorLink:n.anchor,sectionIndex:n.index(),activeSlide:n.activeSlide?n.activeSlide.item:null,leavingSection:ln().L.index()+1,localIsResizing:an.I,items:{origin:ln().L,destination:n},direction:null};if(!(ln().L.item==i&&!an.I||nn().scrollBar&&ei()===a.dtop&&!De(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),fn("effects","beforeLeave",a),si(nn().beforeLeave)&&!1===se("beforeLeave",a))return;if(si(nn().onLeave)&&!Ut("onLeave",a))return}fn("parallax","apply",a),fn("cards","apply",a),fn("dropEffect","apply",a),fn("waterEffect","apply",a),nn().autoScrolling&&nn().continuousVertical&&void 0!==a.isMovementUp&&(!a.isMovementUp&&"up"==a.yMovement||a.isMovementUp&&"down"==a.yMovement)&&(a=function(n){un({_:!0});var t=ln().L.item;return n.isMovementUp?ni(t,wi(t,O)):qe(t,bi(t,O).reverse()[0]),Dn(Jt()),Kt(),n.hn=t,n.dtop=function(n){return n.isMovementUp&&De(n.element,E)?de(n.element)-Ne()+n.element.offsetHeight:n.element.offsetTop}(n),n.yMovement=Rn(ln().L,n.element),n.leavingSection=n.items.origin.index()+1,n.sectionIndex=n.items.destination.index(),fi(q(),"onContinuousVertical",n),n}(a)),fn("scrollOverflowReset","setPrevious",ln().L.item),a.localIsResizing||Zn(ln().L.item),sn("dropEffect")&&nn().dropEffect||(Ge(i,y),Xe(ii(i),y)),Wt(),Gn(n),un({canScroll:d.test.gn}),bt(o,r,a.anchorLink),Jn.ln(gt,a),function(n){un({V:"none",scrollY:Math.round(n.dtop)}),Jn.ln(pt,n),sn("effects")&&fn("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),sn("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=sn("dragAndMove")&&fn("dragAndMove","isGrabbing")?fn("dragAndMove","isScrollingDown"):e>an.X,o=i-Ne()+t,a=nn().bigSectionsDestination;return t>Ne()?(r||a)&&"bottom"!==a||(i=o):(r||an.I&&null==Ce(n))&&(i=o),sn("offsetSections")&&(i=d.offsetSections.getSectionPosition_(r,i,n)),un({X:i}),i}function ve(n){un({D:!1}),function(n){null!=n.hn&&(n.isMovementUp?ni(je(O)[0],n.hn):qe(je(O)[ln().R.length-1],bi(n.element,O).reverse()),Dn(Jt()),function(){for(var n=je(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),si(nn().afterLoad)&&!n.localIsResizing&&Ut("afterLoad",n),fn("continuousHorizontal","afterLoad",n),fn("parallax","afterLoad"),fn("waterEffect","afterLoad"),fn("dropEffect","afterLoad"),fn("scrollOverflowReset","reset"),fn("resetSliders","apply",n),Wt(),n.localIsResizing||Vn(n.element),Ge(n.element,T),Xe(ii(n.element),T),$t(),un({canScroll:!0}),Jn.ln(mt,n),si(n.callback)&&n.callback()}function pe(n,t){en("fitToSection",n,t)}function he(){an.canScroll&&nn().fitToSection&&(un({I:!0}),fe(an.L),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"),Be(je(R)),Ge(In,m),si(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),fn("responsiveSlides","toSections"),fi(q(),"afterResponsive",n)):t&&(Qt(tn().autoScrolling,"internal"),pe(tn().autoScrolling,"internal"),Ze(je(R)),Xe(In,m),si(nn().afterResponsive)&&nn().afterResponsive.call(q(),n),fn("responsiveSlides","toSlides"),fi(q(),"afterResponsive",n))}function we(){return De(In,m)}function be(n){nn().verticalCentered&&(!nn().scrollOverflow&&ke.mn(n.item)||ke.wn(n)||De(n.item,P)||Ge(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().L&&n.isVisible&&(Ge(t,y),Wt()),!ye&&n.isVisible&&(ye=ln().L.item),sn("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().L},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().L;if(!an.canScroll||v()&&nn().scrollOverflow&&ke.wn(t)&&ke.isScrolled(ln().B,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)},Rn:function(){u.activeElement===this.Mn&&(this.Mn.blur(),ke.An=!1)},Sn:function(){if(nn().scrollOverflow&&ke.Tn){ke.Rn();var n=ke.Ln(ln().L.item);!n||l||s||(this.Mn=n,requestAnimationFrame((function(){n.focus({jn:!0}),ke.An=!0}))),ke.Tn=!1}},bn:function(){nn().scrollOverflowMacStyle&&!c&&Ge(In,"fp-scroll-mac"),ln().rn.forEach((function(n){if(!(n.slides&&n.slides.length||De(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(f){var a=i?"addClass":"removeClass";r[a](o.item,F),r[a](n.item,F)}else Ge(o.item,F),Ge(n.item,F);n.q||(ke.zn(e),ke.Dn(e)),n.q=!0}}))},Dn:function(n){ke.Ln(n).addEventListener("scroll",ke.Nn),n.addEventListener("wheel",ke.kn,{passive:!1}),n.addEventListener("keydown",ke.En,{passive:!1})},zn:function(n){var t=document.createElement("div");t.className=C,Je(n,t),t.setAttribute("tabindex","-1")},Hn:function(n){var t=je(W,n)[0];t&&(Ke(t),n.removeAttribute("tabindex"))},Ln:function(n){var t=An(n);return je(W,t)[0]||t},q:function(n){return De(n,C)||null!=je(W,n)[0]},wn:function(n){return n.nn&&n.activeSlide?n.activeSlide.q:n.q},mn:function(n){return ke.Ln(n).scrollHeight>a.innerHeight},isScrolled:function(n,t){if(!an.canScroll)return!1;if(nn().scrollBar)return!0;var e=ke.Ln(t);if(!nn().scrollOverflow||!De(e,C)||De(t,"fp-noscroll")||De(An(t),"fp-noscroll"))return!0;var i=f?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},In:function(){this.On=(new Date).getTime();var n=this.On-ke.xn,t=(l||s)&&an.Z,e=an.Y&&n>600;return t&&n>400||e},Nn:(xe=0,function(n){var t=n.target.scrollTop,e="none"!==an.V?an.V:xe<t?"down":"up";xe=t,si(nn().onScrollOverflow)&&Ut("onScrollOverflow",{position:t,direction:e}),De(n.target,C)&&an.canScroll&&ke.isScrolled(e,n.target)&&ke.In()&&ke.mn(ln().L.item)&&Jn.ln(ut,{direction:e})})};function Ee(n,t){a.console&&a.console[n]&&a.console[n]("fullPage: "+t)}function Re(n){return"none"!==a.getComputedStyle(n).display}function Le(n){return Array.from(n).filter((function(n){return Re(n)}))}function je(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 De(n,t){return null!=n&&n.classList.contains(t)}function Ne(){return"innerHeight"in a?a.innerHeight:u.documentElement.offsetHeight}function He(){return a.innerWidth}function Ie(n,t){var e;for(e in n=Ve(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=Ye(n)?n[0]:n;for(var e=null!=t?je(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 Ve(n){return Ye(n)?n:[n]}function Be(n){n=Ve(n);for(var t=0;t<n.length;t++)n[t].style.display="none";return n}function Ze(n){n=Ve(n);for(var t=0;t<n.length;t++)n[t].style.display="block";return n}function Ye(n){return"[object Array]"===Object.prototype.toString.call(n)||"[object NodeList]"===Object.prototype.toString.call(n)}function Ge(n,t){n=Ve(n);for(var e=0;e<n.length;e++)n[e].classList.add(t);return n}function Xe(n,t){n=Ve(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 Ue(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){Ye(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 si(n){if("function"==typeof n)return!0;var t=Object.prototype.toString.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t}function fi(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.Pn||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=Ve(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({G:!0})}function Ri(){Ge(je(nn().sectionSelector,q()),x),Ge(je(nn().slideSelector,q()),L)}function Li(n){var t=n.slides.length,e=n.vn,i=n.slides,r=100*t,o=100/t;if(!je(N,n.item)[0]){var a=u.createElement("div");a.className=D,Qe(e,a);var l=u.createElement("div");l.className=H,Qe(e,l)}Ie(je(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(je(N,t)[0],e),Ge(e,Z),Ge(e[0],G),Ge(e[1],"fp-next"),"#fff"!==nn().controlArrowColor&&(Ie(je(U,t),{"border-color":"transparent transparent transparent "+nn().controlArrowColor}),Ie(je(X,t),{"border-color":"transparent "+nn().controlArrowColor+" transparent transparent"})),nn().loopHorizontal||Be(je(X,t))}(n),nn().slidesNavigation&&function(n){var t=n.item,e=n.slides.length;Ue(pi('<div class="fp-slidesNav"><ul></ul></div>'),t);var i=je(V,t)[0];Ge(i,"fp-"+nn().slidesNavPosition);for(var r=0;r<e;r++)Ue(pi('<li><a href="#"><span class="fp-sr-only">'+yt(r,"Slide",je(j,t)[r])+"</span><span></span></a></li>"),je("ul",i)[0]);Ie(i,{"margin-left":"-"+i.innerWidth/2+"px"});var o=n.activeSlide?n.activeSlide.index():0;Ge(je("a",je("li",i)[o]),y)}(n)),i.forEach((function(n){Ie(n.item,{width:o+"%"}),nn().verticalCentered&&be(n)}));var c=sn("responsiveSlides")?null:n.activeSlide||null;null!=c&&an.L&&(0!==an.L.index()||0===an.L.index()&&0!==c.index())?(It(c.item,"internal"),Ge(c.item,"fp-initial")):Ge(e[0],y)}window.fp_utils=Object.assign(a.fp_utils||{},{$:je,deepExtend:ze,hasClass:De,getWindowHeight:Ne,css:Ie,prev:Pe,next:Ce,last:We,index:Fe,getList:Ve,hide:Be,show:Ze,isArrayOrList:Ye,addClass:Ge,removeClass:Xe,appendTo:Ue,wrap:_e,wrapAll:Qe,wrapInner:Je,unwrap:Ke,closest:$e,after:qe,before:ni,insertBefore:ti,getScrollTop:ei,siblings:ii,preventDefault:ri,isFunction:si,trigger:fi,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 ji={attributes:!1,subtree:!0,childList:!0,characterData:!0};function zi(){return fn("responsiveSlides","isResponsiveSlidesChanging")||Le(je(nn().slideSelector,q())).length!==ln().O}function Di(n){var t=zi();(zi()||fn("responsiveSlides","isResponsiveSlidesChanging")||Le(je(nn().sectionSelector,q())).length!==ln().A)&&!an._&&(nn().observer&&Oe&&Oe.disconnect(),Ft(),Wt(),nn().anchors=[],hi(je(R)),fn("responsiveSlides","isResponsiveSlidesChanging")||Ri(),rn(),nn().navigation&&ne(),t&&(hi(je(V)),hi(je(Y))),ln().R.forEach((function(n){n.slides.length?t&&Li(n):Me(n)}))),nn().observer&&Oe&&je(h)[0]&&Oe.observe(je(h)[0],ji)}Jn.un(it,(function(){var n,t,e;nn().observer&&"MutationObserver"in window&&je(h)[0]&&(n=je(h)[0],t=ji,(e=new MutationObserver(Di)).observe(n,t),Oe=e),Jn.un(at,Di)})),Jn.un(rt,(function(){Oe&&(Oe.disconnect(),Oe=null)})),d.render=Di;var Ni=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 Hi(){return!!Ni()&&{passive:!1}}var Ii,Pi,Ci,Wi,Fi=(Ci=(new Date).getTime(),Wi=[],{Cn: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=[])},Wn:function(){var n=Mi(Wi,10)>=Mi(Wi,70);return!!Wi.length&&n&&Ii},Fn:function(){return Pi}});function Vi(){var n=nn().css3?ei()+Ne():yi(ln().R).item.offsetTop+yi(ln().R).item.offsetHeight,t=On(n);d.test.top=-n+"px",un({canScroll:!1}),Wn(t.element,t.options,nn().scrollingSpeed,(function(){setTimeout((function(){un({D:!0}),un({canScroll:!0})}),30)}))}function Bi(){q().getBoundingClientRect().bottom>=0&&Zi()}function Zi(){var n=On(yi(ln().R).item.offsetTop);un({canScroll:!1}),Wn(n.element,n.options,nn().scrollingSpeed,(function(){un({canScroll:!0}),un({D:!1}),un({Vn:!1})}))}var Yi,Gi,Xi,Ui=(Yi=!1,Gi={},Xi={},function(n,t,e){switch(n){case"set":Gi[t]=(new Date).getTime(),Xi[t]=e;break;case"isNewKeyframe":var i=(new Date).getTime();Yi=i-Gi[t]>Xi[t]}return Yi});function _i(){var n=ln().L.next();n||!nn().loopBottom&&!nn().continuousVertical||(n=ln().R[0]),null!=n?fe(n,null,!1):q().scrollHeight<In.scrollHeight&&nn().scrollBar&&nn().scrollBeyondFullpage&&Jn.ln(vt)}function Qi(){var n=ln().L.prev();n||!nn().loopTop&&!nn().continuousVertical||(n=yi(ln().R)),null!=n&&fe(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;sn("scrollHorizontally")&&(t=fn("scrollHorizontally","getScrollSection",{type:n,scrollSection:t})),nn().scrollOverflow&&ke.wn(ln().L)?ke.isScrolled(n,ln().L.item)&&ke.In()&&t():t()}}var qi,nr,tr,er=0,ir=0,rr=0,or=0,ar=vr(),ur={Bn:"ontouchmove"in window?"touchmove":ar?ar.move:null,Zn:"ontouchstart"in window?"touchstart":ar?ar.down:null};function lr(n){var t=$e(n.target,O)||ln().L.item,e=ke.wn(ln().L);if(cr(n)){un({Z:!0,Y:!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)>He()/100*nn().touchSensitivity,u=je(N,t).length&&Math.abs(ir-or)>Math.abs(er-rr),l=er>rr?"down":"up";un({V:u?ir>or?"right":"left":l}),u?!an.H&&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 sr(n){if(nn().fitToSection&&un({F:!1}),cr(n)){var t=dr(n);er=t.y,ir=t.x}ui("touchend",fr)}function fr(){ci("touchend",fr),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,s&&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().L.item:t,i=Sn(an.R,e),r=je(N,e)[0];if(!(null==r||dn()||an.H||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({H:!d.test.gn}),jt(r,a.item,n)}}function gr(n){hr("left",n)}function mr(n){hr("right",n)}function wr(n){var t=ln().R.filter((function(t){return t.anchor===n}))[0];if(!t){var e=void 0!==n?n-1:0;t=ln().R[e]}return t}function br(n){null!=n&&jt($e(n,N),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||De(e.item,y)?br(i):fe(e,(function(){br(i)}))}}function yr(n,t){var e=wr(n);void 0!==t?Sr(n,t):null!=e&&fe(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=Rr(An(ln().L.item));function r(n){return ri(n),i[0]?i[0].focus():null}if(an.canScroll){if(!function(n){var t=Rr(u),e=t.indexOf(u.activeElement),i=t[n.shiftKey?e-1:e+1],r=$e(i,j),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.L&&an.L.activeSlide?an.L.activeSlide:an.L)[e]());do{(i=Rr(r.item)).length&&(t={Yn:r,Gn:i[n?i.length-1:0]}),r=xn(r[e]())}while(r&&0===i.length);return t}(l),s=c?c.Yn:null;if(s){var f=s.nn?s:s.parent;Jn.ln(lt,{Xn:f.index()+1,slideAnchor:s.nn?0:s.index()}),tr=c.Gn,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().L.item),o=ke.isScrolled("down",ln().L.item),a=[37,39].indexOf(n.keyCode)>-1;if(function(n){(function(n){return[40,38,32,33,34].indexOf(n.keyCode)>-1&&!an.D})(n)&&!$e(n.target,W)&&n.preventDefault()}(n),an.canScroll||a)switch(un({j:"keydown"}),fi(q(),"keydown",n),n.keyCode){case 38:case 33:kt().k.up&&r?an.D?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.D)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().R.length);break;case 37:kt().k.left&&gr();break;case 39:kt().k.right&&mr()}}(n)}),0))}function Ar(n){an.G&&(qi=n.ctrlKey)}function xr(){un({G:!1}),qi=!1}function Or(n){Er()}function kr(n){$e(tr,j)&&!$e(tr,z)||Er()}function Er(){tr&&(tr.focus(),tr=null)}function Rr(n){return[].slice.call(je('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 Lr=(new Date).getTime(),jr=[];function zr(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=Hi();"DOMMouseScroll"==e?u[n](t+"MozMousePixelScroll",Dr,i):u[n](t+e,Dr,i)}(),q().addEventListener("mousedown",Nr),q().addEventListener("mouseup",Hr)):(u.addEventListener?(li("mousewheel",Dr,!1),li("wheel",Dr,!1),li("MozMousePixelScroll",Dr,!1)):u.detachEvent("onmousewheel",Dr),q().removeEventListener("mousedown",Nr),q().removeEventListener("mouseup",Hr))}function Dr(n){var t=(new Date).getTime(),e=De(je(".fp-completely")[0],"fp-normal-scroll"),i=function(n,t){(new Date).getTime();var e=ln().D&&n.getBoundingClientRect().bottom>=0&&"up"===Fi.Fn(),i=ln().Vn;if(i)return ri(t),!1;if(ln().D){if(e){var r;if(!(i||Ui("isNewKeyframe","beyondFullpage")&&Fi.Wn()))return(r=On(yi(ln().R).item.offsetTop+yi(ln().R).item.offsetHeight)).element.scrollTo(0,r.options),un({Vn:!1}),ri(t),!1;if(Fi.Wn())return e=!1,un({Vn:!0}),un({j:"wheel"}),Zi(),ri(t),!1}else Ui("set","beyondFullpage",1e3);if(!i&&!e)return!0}}(q(),n);if(an.Y||un({Z:!1,Y:!0,V:"none"}),!kt().m.down&&!kt().m.up)return!1;if(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=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=o<0?"down":o>0?"up":"none";jr.length>149&&jr.shift(),jr.push(Math.abs(r)),!nn().scrollBar&&nn().scrollOverflow||ri(n);var s=t-Lr;return Lr=t,s>200&&(jr=[]),un({B:c}),an.canScroll&&!dn()&&Mi(jr,10)>=Mi(jr,70)&&l&&(un({j:"wheel"}),$i(o<0?"down":"up")),!1}nn().fitToSection&&un({F:!1})}function Nr(n){var t;2==n.which&&(t=n.pageY,Ji=t,q().addEventListener("mousemove",Ki))}function Hr(n){2==n.which&&q().removeEventListener("mousemove",Ki)}function Ir(n){n?(zr(!0),function(){if(ur.Bn&&(l||s)&&(!sn("dragAndMove")||"mouseonly"===nn().dragAndMove)){nn().autoScrolling&&(In.removeEventListener(ur.Bn,pr,{passive:!1}),In.addEventListener(ur.Bn,pr,{passive:!1}));var n=nn().touchWrapper;n.removeEventListener(ur.Zn,sr),n.removeEventListener(ur.Bn,lr,{passive:!1}),n.addEventListener(ur.Zn,sr),n.addEventListener(ur.Bn,lr,{passive:!1})}}()):(zr(!1),function(){if(ur.Bn&&(l||s)){nn().autoScrolling&&(In.removeEventListener(ur.Bn,lr,{passive:!1}),In.removeEventListener(ur.Bn,pr,{passive:!1}));var n=nn().touchWrapper;n.removeEventListener(ur.Zn,sr),n.removeEventListener(ur.Bn,lr,{passive:!1})}}())}d.setMouseWheelScrolling=zr;var Pr=!0;function Cr(){["mouseenter","touchstart","mouseleave","touchend"].forEach((function(n){li(n,Fr,!0)}))}function Wr(n,t){document["fp_"+n]=t,ai(n,Fr,!0)}function Fr(n){var t=n.type,e=!1,i="mouseleave"===t?n.toElement||n.relatedTarget:n.target;i!=document&&i?("touchend"===t&&(Pr=!1,setTimeout((function(){Pr=!0}),800)),("mouseenter"!==t||Pr)&&(nn().normalScrollElements.split(",").forEach((function(n){if(!e){var t=di(i,n),r=$e(i,n);(t||r)&&(d.shared.isNormalScrollElement||Ir(!1),d.shared.isNormalScrollElement=!0,e=!0)}})),!e&&d.shared.isNormalScrollElement&&(Ir(!0),d.shared.isNormalScrollElement=!1))):Ir(!0)}function Vr(n,t){Nn(0,"internal"),yr(n,t),Nn(tn().scrollingSpeed,"internal")}Jn.un(it,(function(){nn().normalScrollElements&&(["mouseenter","touchstart"].forEach((function(n){Wr(n,!1)})),["mouseleave","touchend"].forEach((function(n){Wr(n,!0)}))),Jn.un(rt,Cr)})),d.silentMoveTo=Vr;var Br,Zr,Yr=Ne(),Gr=He(),Xr=!1;function Ur(){clearTimeout(Br),clearTimeout(Zr),ci("resize",_r)}function _r(){Xr||(nn().autoScrolling&&!nn().scrollB