var frontend_blocks=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}({100:function(t,e,n){"use strict";n.r(e);var o=n(11),r=n(34),i=n.n(r);Object(o.a)(function(){document.querySelectorAll(".ugb-notification.ugb-notification--dismissible").forEach(function(t){var e=t.getAttribute("data-uid")?t.getAttribute("data-uid"):i()(t.outerHTML).substr(0,6);t.querySelector(".ugb-notification__close-button").addEventListener("click",function(n){n.preventDefault(),localStorage.setItem("stckbl-notif-".concat(e),1),t.style.display=""}),t.querySelector(".ugb-notification__close-button").addEventListener("keypress",function(n){n.preventDefault(),localStorage.setItem("stckbl-notif-".concat(e),1),t.style.display=""}),window.location.search.match(/preview=\w+/)?t.style.display="flex":localStorage.getItem("stckbl-notif-".concat(e))||(t.style.display="flex")})}),Object(o.a)(function(){document.querySelectorAll(".ugb-notification.dismissible-true[data-uid]").forEach(function(t){var e=t.getAttribute("data-uid");t.querySelector(".close-button").addEventListener("click",function(){localStorage.setItem("stckbl-notif-".concat(e),1),t.style.display=""}),window.location.search.match(/preview=\w+/)?t.style.display="block":localStorage.getItem("stckbl-notif-".concat(e))||(t.style.display="block")})})},101:function(t,e){var n,o;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&o.rotl(t,8)|4278255360&o.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,o=0;n>>5]|=t[n]<<24-o%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],o=0,r=0;o>>6-2*r);return e}},t.exports=o},102:function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},103:function(t,e,n){"use strict";n.r(e);var o=n(27),r=n.n(o),i=n(11);Object(i.a)(function(){var t=document.querySelectorAll(".ugb-video-popup[data-video], .ugb-video-popup [data-video]");t.forEach(function(t){t.querySelector("a").addEventListener("click",function(e){e.preventDefault(),function(t){if(r.a){var e=t.getAttribute("data-video"),n={el:t,noLoader:!0};e.match(/^\d+$/g)?n.vimeoSrc=e:e.match(/^https?:\/\//g)?n.vidSrc=e:n.ytSrc=e,r()(n)}}(t)})})})},11:function(t,e,n){"use strict";e.a=function(t){if("complete"===document.readyState||"interactive"===document.readyState)return t();document.addEventListener("DOMContentLoaded",t)}},27:function(t,e){!function(){var e,n,o,r,i,a,s,c,l,u,p,f,d,h,g,y,b,m,v,w,x,S,_,A,T,k,E,L,O,H,M,C,q,j=window,z=[],P={},I=document,B="appendChild",D="createElement",W="removeChild",R="innerHTML",N="pointer-events:auto",F="clientHeight",U="clientWidth",Q="addEventListener",V=j.setTimeout,G=j.clearTimeout;function X(){var t=e.getBoundingClientRect();return"transform:translate3D("+(t.left-(o[U]-t.width)/2)+"px, "+(t.top-(o[F]-t.height)/2)+"px, 0) scale3D("+e[U]/r[U]+", "+e[F]/r[F]+", 0)"}function K(t){var e=H.length-1;if(!d){if(t>0&&O===e||t<0&&!O){if(!q.loop)return rt(i,""),void V(rt,9,i,"animation:"+(t>0?"bpl":"bpf")+" .3s;transition:transform .35s");O=t>0?-1:e+1}if([(O=Math.max(0,Math.min(O+t,e)))-1,O,O+1].forEach(function(t){if(t=Math.max(0,Math.min(t,e)),!P[t]){var n=H[t].src,o=I[D]("IMG");o[Q]("load",tt.bind(null,n)),o.src=n,P[t]=o}}),P[O].complete)return Y(t);d=!0,rt(g,"opacity:.4;"),o[B](g),P[O].onload=function(){x&&Y(t)},P[O].onerror=function(){H[O]={error:"Error loading image"},x&&Y(t)}}}function Y(t){d&&(o[W](g),d=!1);var n=H[O];if(n.error)alert(n.error);else{var a=o.querySelector("img:last-of-type");rt(i=r=P[O],"animation:"+(t>0?"bpfl":"bpfr")+" .35s;transition:transform .35s"),rt(a,"animation:"+(t>0?"bpfol":"bpfor")+" .35s both"),o[B](i),n.el&&(e=n.el)}M[R]=O+1+"/"+H.length,J(H[O].caption),k&&k([i,H[O]])}function $(t){~[1,4].indexOf(r.readyState)?(et(),V(function(){r.play()},99)):r.error?et(t):h=V($,35,t)}function Z(t){q.noLoader||(t&&rt(g,"top:"+e.offsetTop+"px;left:"+e.offsetLeft+"px;height:"+e[F]+"px;width:"+e[U]+"px"),e.parentElement[t?B:W](g),d=t)}function J(t){t&&(b[R]=t),rt(y,"opacity:"+(t?"1;"+N:"0"))}function tt(t){!~z.indexOf(t)&&z.push(t)}function et(t){if(d&&Z(),A&&A(),"string"==typeof t)return ot(),q.onError?q.onError():alert("Error: The requested "+t+" could not be loaded.");_&&tt(u),rt(r,X()),rt(o,"opacity:1;"+N),T=V(T,410),w=!0,x=!!H,V(function(){rt(r,"transition:transform .35s;transform:none"),m&&V(J,250,m)},60)}function nt(t){var e=t.target,n=[y,v,a,s,b,L,E,g];e&&e.blur(),S||~n.indexOf(e)||(r.style.cssText+=X(),rt(o,N),V(ot,350),G(T),w=!1,S=!0)}function ot(){if(I.body[W](o),o[W](r),rt(o,""),(r===c?l:r).removeAttribute("src"),J(!1),x){for(var t=o.querySelectorAll("img"),e=0;e',e}function r(t,e){var n=I[D]("button");return n.className="bp-lr",n[R]='',rt(n,e),n.onclick=function(e){e.stopPropagation(),K(t)},n}var u=I[D]("STYLE");u[R]="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container,#bp_caption,#bp_container svg{pointer-events:none}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;margin:0;cursor:wait;z-index:9;background:0 0}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{height:0;padding-bottom:54%;background-color:#000;width:96%}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0 0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{height:41px;width:41px;border-radius:100%;top:8px;right:14px;opacity:.8;line-height:1}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{height:21px;width:20px;fill:#fff;vertical-align:top;}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 7px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0 0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}@media (min-aspect-ratio:9/5){#bp_sv{height:98%;width:170.6vh;padding:0}}",I.head[B](u),(o=I[D]("DIV")).id="bp_container",o.onclick=nt,p=e("bp-x"),o[B](p),"ontouchstart"in j&&(C=!0,o.ontouchstart=function(e){t=e.changedTouches[0].pageX},o.ontouchmove=function(t){t.preventDefault()},o.ontouchend=function(e){if(x){var n=e.changedTouches[0].pageX-t;n<-30&&K(1),n>30&&K(-1)}});i=I[D]("IMG"),(a=I[D]("VIDEO")).id="bp_vid",a.setAttribute("playsinline",!0),a.controls=!0,a.loop=!0,(s=I[D]("audio")).id="bp_aud",s.controls=!0,s.loop=!0,(M=I[D]("span")).id="bp_count",(y=I[D]("DIV")).id="bp_caption",(v=e("bp-xc")).onclick=J.bind(null,!1),y[B](v),b=I[D]("SPAN"),y[B](b),o[B](y),E=r(1,"transform:scalex(-1)"),L=r(-1,"left:0;right:auto"),(g=I[D]("DIV")).id="bp_loader",g[R]='',(c=I[D]("DIV")).id="bp_sv",(l=I[D]("IFRAME")).setAttribute("allowfullscreen",!0),l.allow="autoplay; fullscreen",l.onload=et,rt(l,"border:0;position:absolute;height:100%;width:100%;left:0;top:0"),c[B](l),i.onload=et,i.onerror=et.bind(null,"image"),j[Q]("resize",function(){x||d&&Z(!0)}),I[Q]("keyup",function(t){var e=t.keyCode;27===e&&w&&nt(o),x&&(39===e&&K(1),37===e&&K(-1),38===e&&K(10),40===e&&K(-10))}),I[Q]("keydown",function(t){x&&~[37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),I[Q]("focus",function(t){w&&!o.contains(t.target)&&(t.stopPropagation(),p.focus())},!0),n=!0}(),d&&(G(h),ot()),q=t,f=t.ytSrc||t.vimeoSrc,A=t.animationStart,T=t.animationEnd,k=t.onChangeImage,e=t.el,_=!1,m=e.getAttribute("data-caption"),t.gallery?function(t){if(Array.isArray(t))O=0,H=t,m=t[0].caption;else{var n=(H=[].slice.call("string"==typeof t?I.querySelectorAll(t+" [data-bp]"):t)).indexOf(e);O=-1!==n?n:0,H=H.map(function(t){return{el:t,src:t.getAttribute("data-bp"),caption:t.getAttribute("data-caption")}})}_=!0,u=H[O].src,!~z.indexOf(u)&&Z(!0),H.length>1?(o[B](M),M[R]=O+1+"/"+H.length,C||(o[B](E),o[B](L))):H=!1;(r=i).src=u}(t.gallery):f||t.iframeSrc?(Z(!0),r=c,function(){var t;q.ytSrc?t="https://www.youtube.com/embed/"+f+"?html5=1&rel=0&playsinline=1&autoplay=1":q.vimeoSrc?t="https://player.vimeo.com/video/"+f+"?autoplay=1":q.iframeSrc&&(t=q.iframeSrc);l.src=t}()):t.imgSrc?(_=!0,u=t.imgSrc,!~z.indexOf(u)&&Z(!0),(r=i).src=u):t.audio?(Z(!0),(r=s).src=t.audio,$("audio file")):t.vidSrc?(Z(!0),S=t.vidSrc,Array.isArray(S)?(r=a.cloneNode(),S.forEach(function(t){var e=I[D]("SOURCE");e.src=t,e.type="video/"+t.match(/.(\w+)$/)[1],r[B](e)})):(r=a).src=S,$("video")):(r=i).src="IMG"===e.tagName?e.src:j.getComputedStyle(e).backgroundImage.replace(/^url|[(|)|'|"]/g,""),o[B](r),I.body[B](o)}}()},30:function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.action,i=void 0===n?"start":n,a=e.duration,s=void 0===a?1e3:a,c=e.delay,l=void 0===c?16:c,u=e.lang,p=void 0===u?void 0:u;if("stop"!==i){if(o(t),/[0-9]/.test(t.innerHTML)){var f=r(t.innerHTML,{duration:s||t.getAttribute("data-duration"),lang:p||document.querySelector("html").getAttribute("lang")||void 0,delay:l||t.getAttribute("data-delay")});t._countUpOrigInnerHTML=t.innerHTML,t.innerHTML=f[0],t.style.visibility="visible",t.countUpTimeout=setTimeout(function e(){t.innerHTML=f.shift(),f.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(e,l)):t._countUpOrigInnerHTML=void 0},l)}}else o(t)};var o=function(t){clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""},r=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.duration,o=void 0===n?1e3:n,r=e.delay,i=void 0===r?16:r,a=e.lang,s=void 0===a?void 0:a,c=o/i,l=t.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),u=[],p=0;p]+>/.test(l[f])){var d=l[f],h=/[0-9]+,[0-9]+/.test(d);d=d.replace(/,/g,"");for(var g=/^[0-9]+\.[0-9]+$/.test(d),y=g?(d.split(".")[1]||[]).length:0,b=u.length-1,m=c;m>=1;m--){var v=parseInt(d/c*m,10);g&&(v=parseFloat(d/c*m).toFixed(y),v=parseFloat(v).toLocaleString(s)),h&&(v=v.toLocaleString(s)),u[b--]+=v}}else for(var w=0;w>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var h=s._ff,g=s._gg,y=s._hh,b=s._ii;for(d=0;d>>0,u=u+v>>>0,p=p+w>>>0,f=f+x>>>0}return o.endian([l,u,p,f])})._ff=function(t,e,n,o,r,i,a){var s=t+(e&n|~e&o)+(r>>>0)+a;return(s<>>32-i)+e},s._gg=function(t,e,n,o,r,i,a){var s=t+(e&o|n&~o)+(r>>>0)+a;return(s<>>32-i)+e},s._hh=function(t,e,n,o,r,i,a){var s=t+(e^n^o)+(r>>>0)+a;return(s<>>32-i)+e},s._ii=function(t,e,n,o,r,i,a){var s=t+(n^(e|~o))+(r>>>0)+a;return(s<>>32-i)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var n=o.wordsToBytes(s(t,e));return e&&e.asBytes?n:e&&e.asString?a.bytesToString(n):o.bytesToHex(n)}},93:function(t,e,n){"use strict";n.r(e);n(94);var o=n(95);o.keys().forEach(function(t){return o(t)})},94:function(t,e){window.NodeList&&!window.NodeList.prototype.forEach&&(window.NodeList.prototype.forEach=Array.prototype.forEach),function(t){try{t&&t.prototype&&null==t.prototype.firstElementChild&&Object.defineProperty(t.prototype,"firstElementChild",{get:function(){for(var t,e=this.childNodes,n=0;t=e[n++];)if(1===t.nodeType)return t;return null}})}catch(t){}}(window.Node||window.Element)},95:function(t,e,n){var o={"./accordion/frontend.js":96,"./count-up/frontend.js":97,"./expand/frontend.js":99,"./notification/frontend.js":100,"./video-popup/frontend.js":103};function r(t){var e=i(t);return n(e)}function i(t){if(!n.o(o,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return o[t]}r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=95},96:function(t,e,n){"use strict";n.r(e),n.d(e,"initAll",function(){return s});var o=n(11),r=function(t){return t.classList.contains("ugb-accordion--open")},i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e.querySelector(".ugb-accordion__text, .ugb-accordion__content");if(clearTimeout(e.aTimeout),r(e)?(e.setAttribute("data-height","".concat(o.clientHeight+50,"px")),o.style.maxHeight=e.getAttribute("data-height"),e.aTimeout=setTimeout(function(){o.style.maxHeight=0},1)):(o.style.maxHeight=e.getAttribute("data-height"),e.aTimeout=setTimeout(function(){o.style.maxHeight=""},350)),e.setAttribute("aria-expanded",r(e)?"false":"true"),e.classList.toggle("ugb-accordion--open"),!n&&e.classList.contains("ugb-accordion--single-open")){for(var i=e.nextElementSibling;i&&i.classList.contains("ugb-accordion");)r(i)&&t(i,!0),i=i.nextElementSibling;for(i=e.previousElementSibling;i&&i.classList.contains("ugb-accordion");)r(i)&&t(i,!0),i=i.previousElementSibling}},a=1,s=function(){document.querySelectorAll(".ugb-accordion").forEach(function(t){return function(t){!function(t){var e=t.classList.contains("ugb-accordion--open"),n=t.querySelector(".ugb-accordion__text, .ugb-accordion__content");e||(t.style.display="none",n.style.maxHeight="none",t.classList.toggle("ugb-accordion--open"),t.style.display="");var o=t.querySelector(".ugb-accordion__text, .ugb-accordion__content").clientHeight;t.setAttribute("data-height","".concat(o+50,"px")),e||(t.style.display="none",t.classList.toggle("ugb-accordion--open"),n.style.maxHeight="",t.style.display="")}(t);var e=t.querySelector(".ugb-accordion__heading");e.addEventListener("click",function(e){e.preventDefault(),i(t)}),e.addEventListener("keypress",function(e){e.preventDefault(),i(t)});var n=t.querySelector(".ugb-accordion__heading h4, .ugb-accordion__title"),o=t.querySelector(".ugb-accordion__text, .ugb-accordion__content");n.setAttribute("id","ugb-accordion-".concat(a,"__heading")),o.setAttribute("id","ugb-accordion-".concat(a,"__content")),n.setAttribute("aria-controls","ugb-accordion-".concat(a,"__content")),o.setAttribute("aria-labelledby","ugb-accordion-".concat(a,"__heading")),a++}(t)})};Object(o.a)(s)},97:function(t,e,n){"use strict";n.r(e);var o=n(33),r=n.n(o),i=n(11);Object(i.a)(function(){n(98),document.querySelectorAll(".ugb-countup .ugb-counter, .ugb-countup__counter").forEach(function(t){t.classList.add("ugb-countup--hide"),new Waypoint({element:t,handler:function(){r()(t),t.classList.remove("ugb-countup--hide"),this.destroy()},offset:"bottom-in-view"})})})},98:function(t,e){ /*! Waypoints - 4.0.1 Copyright © 2011-2016 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/waypoints/blob/master/licenses.txt */ !function(){"use strict";var t=0,e={};function n(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,o),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var o in e)n.push(e[o]);for(var r=0,i=n.length;ro.oldScroll?o.forward:o.backward;for(var i in this.waypoints[n]){var a=this.waypoints[n][i];if(null!==a.triggerPoint){var s=o.oldScroll=a.triggerPoint;(s&&c||!s&&!c)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var l in t)t[l].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var o=0,r=t.length;o-1&&(d=Math.ceil(a.contextDimension*d/100))),c=a.contextScroll-a.contextOffset,f.triggerPoint=Math.floor(g+c-d),l=h=a.oldScroll,p=!l&&!u,!y&&(l&&u)?(f.queueTrigger(a.backward),r[f.group.id]=f.group):!y&&p?(f.queueTrigger(a.forward),r[f.group.id]=f.group):y&&a.oldScroll>=f.triggerPoint&&(f.queueTrigger(a.forward),r[f.group.id]=f.group)}}return o.requestAnimationFrame(function(){for(var t in r)r[t].flushTriggers()}),this},i.findOrCreateByElement=function(t){return i.findByElement(t)||new i(t)},i.refreshAll=function(){for(var t in n)n[t].refresh()},i.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){r&&r(),i.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=i}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},o=window.Waypoint;function r(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}r.prototype.add=function(t){this.waypoints.push(t)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var o=this.triggerQueues[n],r="up"===n||"left"===n;o.sort(r?e:t);for(var i=0,a=o.length;i-1&&this.waypoints.splice(e,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(t){return n[t.axis][t.name]||new r(t)},o.Group=r}(),function(){"use strict";var t=window.Waypoint;function e(t){return t===t.window}function n(t){return e(t)?t:t.defaultView}function o(t){this.element=t,this.handlers={}}o.prototype.innerHeight=function(){return e(this.element)?this.element.innerHeight:this.element.clientHeight},o.prototype.innerWidth=function(){return e(this.element)?this.element.innerWidth:this.element.clientWidth},o.prototype.off=function(t,e){function n(t,e,n){for(var o=0,r=e.length-1;o