!function(){"use strict";functiont(o){if(!o)thrownewError("No options passed to Waypoint constructor");if(!o.element)thrownewError("No element option passed to Waypoint constructor");if(!o.handler)thrownewError("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=newt.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}vare=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),deletei[this.key]},t.prototype.disable=function(){returnthis.enabled=!1,this},t.prototype.enable=function(){returnthis.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){returnthis.group.next(this)},t.prototype.previous=function(){returnthis.group.previous(this)},t.invokeAll=function(t){vare=[];for(varoini)e.push(i[o]);for(varn=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){returnwindow.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){returndocument.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){returnthis.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){returnthis.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";functiont(t){window.setTimeout(t,1e3/60)}functione(t){this.element=t,this.Adapter=n.Adapter,this.adapter=newthis.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}vari=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){vare=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){vart=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),deleteo[this.key])},e.prototype.createThrottledResizeHandler=function(){functiont(){e.handleResize(),e.didResize=!1}vare=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){functiont(){e.handleScroll(),e.didScroll=!1}vare=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){vart={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(variine){varo=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(varsinthis.waypoints[i]){vara=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,c=!l&&!h;(p||c)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(varuint)t[u].flushTriggers();this.oldScr