!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Glide=e()}(this,function(){"use strict";var t={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perTouch:!1,touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{direction:{ltr:"glide--ltr",rtl:"glide--rtl"},slider:"glide--slider",carousel:"glide--carousel",swipeable:"glide--swipeable",dragging:"glide--dragging",cloneSlide:"glide__slide--clone",activeNav:"glide__bullet--active",activeSlide:"glide__slide--active",disabledArrow:"glide__arrow--disabled"}};function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function s(t){return parseInt(t)}function a(t){return"string"==typeof t}function c(t){var e=void 0===t?"undefined":n(t);return"function"===e||"object"===e&&!!t}function u(t){return"function"==typeof t}function l(t){return void 0===t}function f(t){return t.constructor===Array}function d(t,e,n){Object.defineProperty(t,e,n)}function p(t,e){var n=r({},t,e);return e.hasOwnProperty("classes")&&(n.classes=r({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=r({},t.classes.direction,e.classes.direction))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=r({},t.breakpoints,e.breakpoints)),n}var m=(i(h,[{key:"on",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.on(t[n],e);this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}},{key:"emit",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);this.hop.call(this.events,t)&&this.events[t].forEach(function(t){t(e||{})})}}]),h);function h(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};e(this,h),this.events=t,this.hop=t.hasOwnProperty}var v=(i(g,[{key:"mount",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return this._e.emit("mount.before"),c(e)&&(this._c=function(t,e,n){var i={};for(var o in e)u(e[o])&&(i[o]=e[o](t,i,n));for(var r in i)u(i[r].mount)&&i[r].mount();return i}(this,e,this._e)),this._e.emit("mount.after"),this}},{key:"mutate",value:function(t){var e=0<arguments.length&&void 0!==t?t:[];return f(e)&&(this._t=e),this}},{key:"update",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return this.settings=p(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(t){var e=0<arguments.length&&void 0!==t&&t;return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){c(t)&&(this._o=t)}},{key:"index",get:function(){return this._i},set:function(t){this._i=s(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),g);function g(n){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e(this,g),this._c={},this._t=[],this._e=new m,this.disabled=!1,this.selector=n,this.settings=p(t,i),this.index=this.settings.startAt}function y(){return(new Date).getTime()}function b(t,e,n){var i=void 0,o=void 0,r=void 0,s=void 0,a=0;function c(){a=!1===n.leading?0:y(),i=null,s=t.apply(o,r),i||(o=r=null)}function u(){var u=y();a||!1!==n.leading||(a=u);var l=e-(u-a);return o=this,r=arguments,l<=0||e<l?(i&&(clearTimeout(i),i=null),a=u,s=t.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(c,l)),s}return n=n||{},u.cancel=function(){clearTimeout(i),a=0,i=o=r=null},u}var w={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function E(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function k(t){return!!(t&&t instanceof window.HTMLElement)}var x=(i(_,[{key:"on",value:function(t,e,n,i){var o=3<arguments.length&&void 0!==i&&i;a(t)&&(t=[t]);for(var r=0;r<t.length;r++)this.listeners[t[r]]=n,e.addEventListener(t[r],this.listeners[t[r]],o)}},{key:"off",value:function(t,e,n){var i=2<arguments.length&&void 0!==n&&n;a(t)&&(t=[t]);for(var o=0;o<t.length;o++)e.removeEventListener(t[o],this.listeners[t[o]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),_);function _(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};e(this,_),this.listeners=t}var S=["ltr","rtl"],C={">":"<","<":">","=":"="};function A(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function L(t,e,n){var i=[function(t,e){return{modify:function(n){return n+e.Gaps.value*t.index}}},function(t,e){return{modify:function(t){return t+e.Clones.grow/2}}},function(t,e){return{modify:function(n){if(0<=t.settings.focusAt){var i=e.Peek.value;return c(i)?n-i.before:n-i}return n}}},function(t,e){return{modify:function(n){var i=e.Gaps.value,o=e.Sizes.width,r=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===r?n-(o/2-s/2):n-s*r-i*r}}}].concat(t._t,[A]);return{mutate:function(o){for(var r=0;r<i.length;r++){var s=i[r];u(s)&&u(s().modify)&&(o=s(t,e,n).modify(o))}return o}}}var O=!1;try{var B=Object.defineProperty({},"passive",{get:function(){O=!0}});window.addEventListener("testPassive",null,B),window.removeEventListener("testPassive",null,B)}catch(i){}var T=O,j=["touchstart","mousedown"],I=["touchmove","mousemove"],z=["touchend","touchcancel","mouseup","mouseleave"],N=["mousedown","mousemove","mouseup","mouseleave"];function H(t){return c(t)?(e=t,Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t[n],t},{})):{};var e}var M={Html:function(t,e){var n={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.cloneSlide)})}};return d(n,"root",{get:function(){return n._r},set:function(t){a(t)&&(t=document.querySelector(t)),k(t)&&(n._r=t)}}),d(n,"track",{get:function(){return n._t},set:function(t){k(t)&&(n._t=t)}}),d(n,"wrapper",{get:function(){return n.track.children[0]}}),n},Translate:function(t,e,n){var i={set:function(n){var i=L(t,e).mutate(n);e.Html.wrapper.style.transform="translate3d("+-1*i+"px, 0px, 0px)"},remove:function(){e.Html.wrapper.style.transform=""}};return n.on("move",function(o){var r=e.Gaps.value,s=e.Sizes.length,a=e.Sizes.slideWidth;return t.isType("carousel")&&e.Run.isOffset("<")?(e.Transition.after(function(){n.emit("translate.jump"),i.set(a*(s-1))}),i.set(-a-r*s)):t.isType("carousel")&&e.Run.isOffset(">")?(e.Transition.after(function(){n.emit("translate.jump"),i.set(0)}),i.set(a*s+r*s)):i.set(o.movement)}),n.on("destroy",function(){i.remove()}),i},Transition:function(t,e,n){var i=!1,o={compose:function(e){var n=t.settings;return i?e+" 0ms "+n.animationTimingFunc:e+" "+this.duration+"ms "+n.animationTimingFunc},set:function(t){var n=0<arguments.length&&void 0!==t?t:"transform";e.Html.wrapper.style.transition=this.compose(n)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout(function(){t()},this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return d(o,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o},Direction:function(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(C[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return d(i,"value",{get:function(){return i._v},set:function(t){-1<S.indexOf(t)&&(i._v=t)}}),n.on(["destroy","update"],function(){i.removeClass()}),n.on("update",function(){i.mount()}),n.on(["build.before","update"],function(){i.addClass()}),i},Peek:function(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return d(i,"value",{get:function(){return i._v},set:function(t){c(t)?(t.before=s(t.before),t.after=s(t.after)):t=s(t),i._v=t}}),d(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return c(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],function(){i.mount()}),i},Sizes:function(t,e,n){var i={setupSlides:function(){for(var t=this.slideWidth+"px",n=e.Html.slides,i=0;i<n.length;i++)n[i].style.width=t},setupWrapper:function(t){e.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return d(i,"length",{get:function(){return e.Html.slides.length}}),d(i,"width",{get:function(){return e.Html.root.offsetWidth}}),d(i,"wrapperSize",{get:function(){return i.slideWidth*i.length+e.Gaps.grow+e.Clones.grow}}),d(i,"slideWidth",{get:function(){return i.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){i.setupSlides(),i.setupWrapper()}),n.on("destroy",function(){i.remove()}),i},Gaps:function(t,e,n){var i={apply:function(t){for(var n=0,i=t.length;n<i;n++){var o=t[n].style,r=e.Direction.value;o[w[r][0]]=0!==n?this.value/2+"px":"",n!==t.length-1?o[w[r][1]]=this.value/2+"px":o[w[r][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return d(i,"value",{get:function(){return s(t.settings.gap)}}),d(i,"grow",{get:function(){return i.value*(e.Sizes.length-1)}}),d(i,"reductor",{get:function(){var e=t.settings.perView;return i.value*(e-1)/e}}),n.on(["build.after","update"],b(function(){i.apply(e.Html.wrapper.children)},30)),n.on("destroy",function(){i.remove(e.Html.wrapper.children)}),i},Move:function(t,e,n){var i={mount:function(){this._o=0},make:function(t){var i=this,o=0<arguments.length&&void 0!==t?t:0;this.offset=o,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:i.value})})}};return d(i,"offset",{get:function(){return i._o},set:function(t){i._o=l(t)?0:s(t)}}),d(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),d(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],function(){i.make()}),i},Clones:function(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(n){for(var i=0<arguments.length&&void 0!==n?n:[],o=e.Html.slides,r=t.settings,s=r.perView,a=r.classes,c=s+ +!!t.settings.peek,u=o.slice(0,c),l=o.slice(-c),f=0;f<Math.max(1,Math.floor(s/o.length));f++){for(var d=0;d<u.length;d++){var p=u[d].cloneNode(!0);p.classList.add(a.cloneSlide),i.push(p)}for(var m=0;m<l.length;m++){var h=l[m].cloneNode(!0);h.classList.add(a.cloneSlide),i.unshift(h)}}return i},append:function(){for(var t=this.items,n=e.Html,i=n.wrapper,o=n.slides,r=Math.floor(t.length/2),s=t.slice(0,r).reverse(),a=t.slice(r,t.length),c=e.Sizes.slideWidth+"px",u=0;u<a.length;u++)i.appendChild(a[u]);for(var l=0;l<s.length;l++)i.insertBefore(s[l],o[0]);for(var f=0;f<t.length;f++)t[f].style.width=c},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return d(i,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*i.items.length}}),n.on("update",function(){i.remove(),i.mount(),i.append()}),n.on("build.before",function(){t.isType("carousel")&&i.append()}),n.on("destroy",function(){i.remove()}),i},Resize:function(t,e,n){var i=new x,o={mount:function(){this.bind()},bind:function(){i.on("resize",window,b(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",function(){o.unbind(),i.destroy()}),o},Build:function(t,e,n){var i={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes[t.settings.type])},activeClass:function(){var n=t.settings.classes,i=e.Html.slides[t.index];i&&(i.classList.add(n.activeSlide),E(i).forEach(function(t){t.classList.remove(n.activeSlide)}))},removeClasses:function(){var n=t.settings.classes;e.Html.root.classList.remove(n[t.settings.type]),e.Html.slides.forEach(function(t){t.classList.remove(n.activeSlide)})}};return n.on(["destroy","update"],function(){i.removeClasses()}),n.on(["resize","update"],function(){i.mount()}),n.on("move.after",function(){i.activeClass()}),i},Run:function(t,e,n){var i={mount:function(){this._o=!1},make:function(i){var o=this;t.disabled||(t.disable(),this.move=i,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after(function(){o.isStart()&&n.emit("run.start",o.move),o.isEnd()&&n.emit("run.end",o.move),(o.isOffset("<")||o.isOffset(">"))&&(o._o=!1,n.emit("run.offset",o.move)),n.emit("run.after",o.move),t.enable()}))},calculate:function(){var e=this.move,n=this.length,i=e.steps,o=e.direction,r="number"==typeof s(i)&&0!==s(i);switch(o){case">":">"===i?t.index=n:this.isEnd()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=0):r?t.index+=Math.min(n-t.index,-s(i)):t.index++;break;case"<":"<"===i?t.index=0:this.isStart()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=n):r?t.index-=Math.min(t.index,s(i)):t.index--;break;case"=":t.index=i}},isStart:function(){return 0===t.index},isEnd:function(){return t.index===this.length},isOffset:function(t){return this._o&&this.move.direction===t}};return d(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?s(e)?s(e):e:0}}}),d(i,"length",{get:function(){var n=t.settings,i=e.Html.slides.length;return t.isType("slider")&&"center"!==n.focusAt&&n.bound?i-1-(s(n.perView)-1)+s(n.focusAt):i-1}}),d(i,"offset",{get:function(){return this._o}}),i},Swipe:function(t,e,n){var i=new x,o=0,r=0,a=0,c=!1,u=!!T&&{passive:!0},l={mount:function(){this.bindSwipeStart()},start:function(e){if(!c&&!t.disabled){this.disable();var i=this.touches(e);o=null,r=s(i.pageX),a=s(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var c=t.settings,u=c.touchAngle,l=c.touchRatio,f=c.classes,d=this.touches(i),p=s(d.pageX)-r,m=s(d.pageY)-a,h=Math.abs(p<<2),v=Math.abs(m<<2),g=Math.sqrt(h+v),y=Math.sqrt(v);if(!(180*(o=Math.asin(y/g))/Math.PI<u))return!1;i.stopPropagation(),e.Move.make(p*parseFloat(l)),e.Html.root.classList.add(f.dragging),n.emit("swipe.move")}},end:function(i){if(!t.disabled){var a=t.settings,c=this.touches(i),u=this.threshold(i),l=c.pageX-r,f=180*o/Math.PI,d=Math.round(l/e.Sizes.slideWidth);this.enable(),u<l&&f<a.touchAngle?(a.perTouch&&(d=Math.min(d,s(a.perTouch))),e.Direction.is("rtl")&&(d=-d),e.Run.make(e.Direction.resolve("<"+d))):l<-u&&f<a.touchAngle?(a.perTouch&&(d=Math.max(d,-s(a.perTouch))),e.Direction.is("rtl")&&(d=-d),e.Run.make(e.Direction.resolve(">"+d))):e.Move.make(),e.Html.root.classList.remove(a.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=t.settings;o.swipeThreshold&&i.on(j[0],e.Html.wrapper,function(t){n.start(t)},u),o.dragThreshold&&i.on(j[1],e.Html.wrapper,function(t){n.start(t)},u)},unbindSwipeStart:function(){i.off(j[0],e.Html.wrapper,u),i.off(j[1],e.Html.wrapper,u)},bindSwipeMove:function(){var n=this;i.on(I,e.Html.wrapper,b(function(t){n.move(t)},t.settings.throttle),u)},unbindSwipeMove:function(){i.off(I,e.Html.wrapper,u)},bindSwipeEnd:function(){var t=this;i.on(z,e.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){i.off(z,e.Html.wrapper)},touches:function(t){return-1<N.indexOf(t.type)?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return-1<N.indexOf(e.type)?n.dragThreshold:n.swipeThreshold},enable:function(){return c=!1,e.Transition.enable(),this},disable:function(){return c=!0,e.Transition.disable(),this}};return n.on("build.after",function(){e.Html.root.classList.add(t.settings.classes.swipeable)}),n.on("destroy",function(){l.unbindSwipeStart(),l.unbindSwipeMove(),l.unbindSwipeEnd(),i.destroy()}),l},Images:function(t,e,n){var i=new x,o={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",function(){o.unbind(),i.destroy()}),o},Anchors:function(t,e,n){var i=new x,o=!1,r=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(r=!0,!o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1,this.items[t].setAttribute("data-href",this.items[t].getAttribute("href")),this.items[t].removeAttribute("href");o=!0}return this},attach:function(){if(r=!1,o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0,this.items[t].setAttribute("href",this.items[t].getAttribute("data-href"));o=!1}return this}};return d(s,"items",{get:function(){return s._a}}),n.on("swipe.move",function(){s.detach()}),n.on("swipe.end",function(){e.Transition.after(function(){s.attach()})}),n.on("destroy",function(){s.attach(),s.unbind(),i.destroy()}),s},Controls:function(t,e,n){var i=new x,o=!!T&&{passive:!0},r={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=e.Html.root.querySelectorAll('[data-glide-el^="controls"]'),this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,i=e[t.index];i&&(i.classList.add(n.classes.activeNav),E(i).forEach(function(t){t.classList.remove(n.classes.activeNav)}))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.activeNav)},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)i.on("click",t[e],this.click),i.on("touchstart",t[e],this.click,o)},unbind:function(t){for(var e=0;e<t.length;e++)i.off(["click","touchstart"],t[e])},click:function(t){t.preventDefault(),e.Run.make(e.Direction.resolve(t.currentTarget.getAttribute("data-glide-dir")))}};return d(r,"items",{get:function(){return r._c}}),n.on(["mount.after","move.after"],function(){r.setActive()}),n.on("destroy",function(){r.removeBindings(),r.removeActive(),i.destroy()}),r},Keyboard:function(t,e,n){var i=new x,o={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(t){39===t.keyCode&&e.Run.make(e.Direction.resolve(">")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){o.unbind()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){i.destroy()}),o},Autoplay:function(t,e,n){var i=new x,o={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var n=this;t.settings.autoplay&&l(this._i)&&(this._i=setInterval(function(){n.stop(),e.Run.make(">"),n.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,function(){t.stop()}),i.on("mouseout",e.Html.root,function(){t.start()})},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return d(o,"time",{get:function(){return s(e.Html.slides[t.index].getAttribute("data-glide-autoplay")||t.settings.autoplay)}}),n.on(["destroy","update"],function(){o.unbind()}),n.on(["run.before","pause","destroy","swipe.start","update"],function(){o.stop()}),n.on(["run.after","play","swipe.end"],function(){o.start()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){i.destroy()}),o},Breakpoints:function(t,e,n){var i=new x,o=t.settings,s=H(o.breakpoints),a=r({},o),c={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return a}};return r(o,c.match(s)),i.on("resize",window,b(function(){t.settings=p(o,c.match(s))},t.settings.throttle)),n.on("update",function(){s=H(s),a=r({},o)}),n.on("destroy",function(){i.off("resize",window)}),c}};function P(){return e(this,P),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(P,v),i(P,[{key:"mount",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0}(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"mount",this).call(this,r({},M,e))}}]),P}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.inView=e():t.inView=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(n(2));t.exports=i.default},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(9)),r=i(n(3)),s=n(4);e.default=function(){if("undefined"!=typeof window){var t={history:[]},e={offset:{},threshold:0,test:s.inViewport},n=(0,o.default)(function(){t.history.forEach(function(e){t[e].check()})},100);["scroll","resize","load"].forEach(function(t){return addEventListener(t,n)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(n).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var i=function(n){if("string"==typeof n){var i=[].slice.call(document.querySelectorAll(n));return t.history.indexOf(n)>-1?t[n].elements=i:(t[n]=(0,r.default)(i,e),t.history.push(n)),t[n]}};return i.offset=function(t){if(void 0===t)return e.offset;var n=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(n(t)?function(n){return e.offset[n]=t}:function(i){return n(t[i])?e.offset[i]=t[i]:null}),e.offset},i.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?e.threshold=t:e.threshold},i.test=function(t){return"function"==typeof t?e.test=t:e.test},i.is=function(t){return e.test(t,e)},i.offset(0),i}}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),i=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.options=n,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return n(t,[{key:"check",value:function(){var t=this;return this.elements.forEach(function(e){var n=t.options.test(e,t.options),i=t.current.indexOf(e),o=i>-1,r=!n&&o;n&&!o&&(t.current.push(e),t.emit("enter",e)),r&&(t.current.splice(i,1),t.emit("exit",e))}),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var n=this.handlers[t].length;--n>-1;)this.handlers[t][n](e);return this}}]),t}();e.default=function(t,e){return new i(t,e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=function(t,e){var n=t.getBoundingClientRect(),i=n.top,o=n.right,r=n.bottom,s=n.left,a=n.width,c=n.height,u=r,l=window.innerWidth-s,f=window.innerHeight-i,d=o,p=e.threshold*a,m=e.threshold*c;return u>e.offset.top+m&&l>e.offset.right+p&&f>e.offset.bottom+m&&d>e.offset.left+p}},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var i=n(5),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();t.exports=r},function(t,e,n){var i=n(1),o=n(8),r=n(10),s="Expected a function",a=Math.max,c=Math.min;t.exports=function(t,e,n){function u(e){var n=m,i=h;return m=h=void 0,w=e,g=t.apply(i,n)}function l(t){var n=t-b;return void 0===b||n>=e||n<0||k&&t-w>=v}function f(){var t=o();return l(t)?d(t):void(y=setTimeout(f,function(t){var n=e-(t-b);return k?c(n,v-(t-w)):n}(t)))}function d(t){return y=void 0,x&&m?u(t):(m=h=void 0,g)}function p(){var t=o(),n=l(t);if(m=arguments,h=this,b=t,n){if(void 0===y)return function(t){return w=t,y=setTimeout(f,e),E?u(t):g}(b);if(k)return y=setTimeout(f,e),u(b)}return void 0===y&&(y=setTimeout(f,e)),g}var m,h,v,g,y,b,w=0,E=!1,k=!1,x=!0;if("function"!=typeof t)throw new TypeError(s);return e=r(e)||0,i(n)&&(E=!!n.leading,v=(k="maxWait"in n)?a(r(n.maxWait)||0,e):v,x="trailing"in n?!!n.trailing:x),p.cancel=function(){void 0!==y&&clearTimeout(y),w=0,m=b=h=y=void 0},p.flush=function(){return void 0===y?g:d(o())},p}},function(t,e,n){var i=n(6);t.exports=function(){return i.Date.now()}},function(t,e,n){var i=n(7),o=n(1),r="Expected a function";t.exports=function(t,e,n){var s=!0,a=!0;if("function"!=typeof t)throw new TypeError(r);return o(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),i(t,e,{leading:s,maxWait:e,trailing:a})}},function(t,e){t.exports=function(t){return t}}])}),function(t){var e=function(t,e,n){"use strict";var i,o;if(function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in o=t.lazySizesConfig||t.lazysizesConfig||{},n)e in o||(o[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var r=e.documentElement,s=t.HTMLPictureElement,a="addEventListener",c="getAttribute",u=t[a].bind(t),l=t.setTimeout,f=t.requestAnimationFrame||l,d=t.requestIdleCallback,p=/^picture$/i,m=["load","error","lazyincluded","_lazyloaded"],h={},v=Array.prototype.forEach,g=function(t,e){return h[e]||(h[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),h[e].test(t[c]("class")||"")&&h[e]},y=function(t,e){g(t,e)||t.setAttribute("class",(t[c]("class")||"").trim()+" "+e)},b=function(t,e){var n;(n=g(t,e))&&t.setAttribute("class",(t[c]("class")||"").replace(n," "))},w=function(t,e,n){var i=n?a:"removeEventListener";n&&w(t,e),m.forEach(function(n){t[i](n,e)})},E=function(t,n,o,r,s){var a=e.createEvent("Event");return o||(o={}),o.instance=i,a.initEvent(n,!r,!s),a.detail=o,t.dispatchEvent(a),a},k=function(e,n){var i;!s&&(i=t.picturefill||o.pf)?(n&&n.src&&!e[c]("srcset")&&e.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},x=function(t,e){return(getComputedStyle(t,null)||{})[e]},_=function(t,e,n){for(n=n||t.offsetWidth;n<o.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},S=function(){var t,n,i=[],o=[],r=i,s=function(){var e=r;for(r=i.length?o:i,t=!0,n=!1;e.length;)e.shift()();t=!1},a=function(i,o){t&&!o?i.apply(this,arguments):(r.push(i),n||(n=!0,(e.hidden?l:f)(s)))};return a._lsFlush=s,a}(),C=function(t,e){return e?function(){S(t)}:function(){var e=this,n=arguments;S(function(){t.apply(e,n)})}},A=function(t){var e,i=0,r=o.throttleDelay,s=o.ricTimeout,a=function(){e=!1,i=n.now(),t()},c=d&&s>49?function(){d(a,{timeout:s}),s!==o.ricTimeout&&(s=o.ricTimeout)}:C(function(){l(a)},!0);return function(t){var o;(t=!0===t)&&(s=33),e||(e=!0,(o=r-(n.now()-i))<0&&(o=0),t||o<9?c():l(c,o))}},L=function(t){var e,i,o=function(){e=null,t()},r=function(){var t=n.now()-i;t<99?l(r,99-t):(d||o)(o)};return function(){i=n.now(),e||(e=l(r,99))}},O=function(){var s,d,m,h,_,O,T,j,I,z,N,H,M=/^img$/i,P=/^iframe$/i,D="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),q=0,R=0,W=-1,V=function(t){R--,(!t||R<0||!t.target)&&(R=0)},F=function(t){return null==H&&(H="hidden"==x(e.body,"visibility")),H||!("hidden"==x(t.parentNode,"visibility")&&"hidden"==x(t,"visibility"))},K=function(t,n){var i,o=t,s=F(t);for(j-=n,N+=n,I-=n,z+=n;s&&(o=o.offsetParent)&&o!=e.body&&o!=r;)(s=(x(o,"opacity")||1)>0)&&"visible"!=x(o,"overflow")&&(i=o.getBoundingClientRect(),s=z>i.left&&I<i.right&&N>i.top-1&&j<i.bottom+1);return s},G=function(){var t,n,a,u,l,f,p,m,v,g,y,b,w=i.elements;if((h=o.loadMode)&&R<8&&(t=w.length)){for(n=0,W++;n<t;n++)if(w[n]&&!w[n]._lazyRace)if(!D||i.prematureUnveil&&i.prematureUnveil(w[n]))Q(w[n]);else if((m=w[n][c]("data-expand"))&&(f=1*m)||(f=q),g||(g=!o.expand||o.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:o.expand,i._defEx=g,y=g*o.expFactor,b=o.hFac,H=null,q<y&&R<1&&W>2&&h>2&&!e.hidden?(q=y,W=0):q=h>1&&W>1&&R<6?g:0),v!==f&&(O=innerWidth+f*b,T=innerHeight+f,p=-1*f,v=f),a=w[n].getBoundingClientRect(),(N=a.bottom)>=p&&(j=a.top)<=T&&(z=a.right)>=p*b&&(I=a.left)<=O&&(N||z||I||j)&&(o.loadHidden||F(w[n]))&&(d&&R<3&&!m&&(h<3||W<4)||K(w[n],f))){if(Q(w[n]),l=!0,R>9)break}else!l&&d&&!u&&R<4&&W<4&&h>2&&(s[0]||o.preloadAfterLoad)&&(s[0]||!m&&(N||z||I||j||"auto"!=w[n][c](o.sizesAttr)))&&(u=s[0]||w[n]);u&&!l&&Q(u)}},$=A(G),U=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(V(t),y(e,o.loadedClass),b(e,o.loadingClass),w(e,X),E(e,"lazyloaded"))},Y=C(U),X=function(t){Y({target:t.target})},Z=function(t){var e,n=t[c](o.srcsetAttr);(e=o.customMedia[t[c]("data-media")||t[c]("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},J=C(function(t,e,n,i,r){var s,a,u,f,d,h;(d=E(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?y(t,o.autosizesClass):t.setAttribute("sizes",i)),a=t[c](o.srcsetAttr),s=t[c](o.srcAttr),r&&(f=(u=t.parentNode)&&p.test(u.nodeName||"")),h=e.firesLoad||"src"in t&&(a||s||f),d={target:t},y(t,o.loadingClass),h&&(clearTimeout(m),m=l(V,2500),w(t,X,!0)),f&&v.call(u.getElementsByTagName("source"),Z),a?t.setAttribute("srcset",a):s&&!f&&(P.test(t.nodeName)?function(t,e){try{t.contentWindow.location.replace(e)}catch(n){t.src=e}}(t,s):t.src=s),r&&(a||f)&&k(t,{src:s})),t._lazyRace&&delete t._lazyRace,b(t,o.lazyClass),S(function(){var e=t.complete&&t.naturalWidth>1;h&&!e||(e&&y(t,"ls-is-cached"),U(d),t._lazyCache=!0,l(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&R--},!0)}),Q=function(t){if(!t._lazyRace){var e,n=M.test(t.nodeName),i=n&&(t[c](o.sizesAttr)||t[c]("sizes")),r="auto"==i;(!r&&d||!n||!t[c]("src")&&!t.srcset||t.complete||g(t,o.errorClass)||!g(t,o.lazyClass))&&(e=E(t,"lazyunveilread").detail,r&&B.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,R++,J(t,e,r,i,n))}},tt=L(function(){o.loadMode=3,$()}),et=function(){3==o.loadMode&&(o.loadMode=2),tt()},nt=function(){d||(n.now()-_<999?l(nt,999):(d=!0,o.loadMode=3,$(),u("scroll",et,!0)))};return{_:function(){_=n.now(),i.elements=e.getElementsByClassName(o.lazyClass),s=e.getElementsByClassName(o.lazyClass+" "+o.preloadClass),u("scroll",$,!0),u("resize",$,!0),u("pageshow",function(t){if(t.persisted){var n=e.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&f(function(){n.forEach(function(t){t.complete&&Q(t)})})}}),t.MutationObserver?new MutationObserver($).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[a]("DOMNodeInserted",$,!0),r[a]("DOMAttrModified",$,!0),setInterval($,999)),u("hashchange",$,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){e[a](t,$,!0)}),/d$|^c/.test(e.readyState)?nt():(u("load",nt),e[a]("DOMContentLoaded",$),l(nt,2e4)),i.elements.length?(G(),S._lsFlush()):$()},checkElems:$,unveil:Q,_aLSL:et}}(),B=function(){var t,n=C(function(t,e,n,i){var o,r,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),p.test(e.nodeName||""))for(r=0,s=(o=e.getElementsByTagName("source")).length;r<s;r++)o[r].setAttribute("sizes",i);n.detail.dataAttr||k(t,n.detail)}),i=function(t,e,i){var o,r=t.parentNode;r&&(i=_(t,r,i),(o=E(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=o.detail.width)&&i!==t._lazysizesWidth&&n(t,r,o,i))},r=L(function(){var e,n=t.length;if(n)for(e=0;e<n;e++)i(t[e])});return{_:function(){t=e.getElementsByClassName(o.autosizesClass),u("resize",r)},checkElems:r,updateElem:i}}(),T=function(){!T.i&&e.getElementsByClassName&&(T.i=!0,B._(),O._())};return l(function(){o.init&&T()}),i={cfg:o,autoSizer:B,loader:O,init:T,uP:k,aC:y,rC:b,hC:g,fire:E,gW:_,rAF:S}}(t,t.document,Date);t.lazySizes=e,"object"==typeof module&&module.exports&&(module.exports=e)}("undefined"!=typeof window?window:{}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).stickybits=e()}(this,function(){"use strict";function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var e=function(){function e(t,e){var n=this,i=void 0!==e?e:{};this.version="3.7.4",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:i.customStickyChangeNumber||null,noStyles:i.noStyles||!1,stickyBitStickyOffset:i.stickyBitStickyOffset||0,parentClass:i.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof i.scrollEl?document.querySelector(i.scrollEl):i.scrollEl||window,stickyClass:i.stickyClass||"js-is-sticky",stuckClass:i.stuckClass||"js-is-stuck",stickyChangeClass:i.stickyChangeClass||"js-is-sticky--change",useStickyClasses:i.useStickyClasses||!1,useFixed:i.useFixed||!1,useGetBoundingClientRect:i.useGetBoundingClientRect||!1,verticalPosition:i.verticalPosition||"top",applyStyle:i.applyStyle||function(t,e){return n.applyStyle(t,e)}},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var o=this.props,r=o.positionVal,s=o.verticalPosition,a=o.noStyles,c=o.stickyBitStickyOffset,u="top"!==s||a?"":c+"px",l="fixed"!==r?r:"";this.els="string"==typeof t?document.querySelectorAll(t):t,"length"in this.els||(this.els=[this.els]);for(var f=0;f<this.els.length;f++){var d,p=this.els[f],m=this.addInstance(p,this.props);this.props.applyStyle({styles:(d={},d[s]=u,d.position=l,d),classes:{}},m),this.manageState(m),this.instances.push(m)}}var n=e.prototype;return n.definePosition=function(){var t;if(this.props.useFixed)t="fixed";else{for(var e=["","-o-","-webkit-","-moz-","-ms-"],n=document.head.style,i=0;i<e.length;i+=1)n.position=e[i]+"sticky";t=n.position?n.position:"fixed",n.position=""}return t},n.addInstance=function(t,e){var n=this,i={el:t,parent:t.parentNode,props:e};if("fixed"===e.positionVal||e.useStickyClasses){this.isWin=this.props.scrollEl===window;var o=this.isWin?window:this.getClosestParent(i.el,i.props.scrollEl);this.computeScrollOffsets(i),this.toggleClasses(i.parent,"",e.parentClass),i.state="default",i.stateChange="default",i.stateContainer=function(){return n.manageState(i)},o.addEventListener("scroll",i.stateContainer)}return i},n.getClosestParent=function(t,e){var n=e,i=t;if(i.parentElement===n)return n;for(;i.parentElement!==n;)i=i.parentElement;return n},n.getTopPosition=function(t){if(this.props.useGetBoundingClientRect)return t.getBoundingClientRect().top+(this.props.scrollEl.pageYOffset||document.documentElement.scrollTop);for(var e=0;e=t.offsetTop+e,t=t.offsetParent;);return e},n.computeScrollOffsets=function(t){var e=t,n=e.props,i=e.el,o=e.parent,r=!this.isWin&&"fixed"===n.positionVal,s="bottom"!==n.verticalPosition,a=r?this.getTopPosition(n.scrollEl):0,c=r?this.getTopPosition(o)-a:this.getTopPosition(o),u=null!==n.customStickyChangeNumber?n.customStickyChangeNumber:i.offsetHeight,l=c+o.offsetHeight;e.offset=r?0:a+n.stickyBitStickyOffset,e.stickyStart=s?c-e.offset:0,e.stickyChange=e.stickyStart+u,e.stickyStop=s?l-(i.offsetHeight+e.offset):l-window.innerHeight},n.toggleClasses=function(t,e,n){var i=t,o=i.className.split(" ");n&&-1===o.indexOf(n)&&o.push(n);var r=o.indexOf(e);-1!==r&&o.splice(r,1),i.className=o.join(" ")},n.manageState=function(e){var n=this,i=e,o=i.props,r=i.state,s=i.stateChange,a=i.stickyStart,c=i.stickyChange,u=i.stickyStop,l=o.positionVal,f=o.scrollEl,d=o.stickyClass,p=o.stickyChangeClass,m=o.stuckClass,h=o.verticalPosition,v="bottom"!==h,g=o.applyStyle,y=o.noStyles,b=this.isWin&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)||function(t){t()},w=this.isWin?window.scrollY||window.pageYOffset:f.scrollTop,E=v&&w<=a&&("sticky"===r||"stuck"===r),k=u<=w&&"sticky"===r;a<w&&w<u&&("default"===r||"stuck"===r)?i.state="sticky":E?i.state="default":k&&(i.state="stuck");var x=c<=w&&w<=u;w<c/2||u<w?i.stateChange="default":x&&(i.stateChange="sticky"),r===i.state&&s===i.stateChange||b(function(){var r,s,a,c,u,f,v={sticky:{styles:(r={position:l,top:"",bottom:""},r[h]=o.stickyBitStickyOffset+"px",r),classes:(s={},s[d]=!0,s)},default:{styles:(a={},a[h]="",a),classes:{}},stuck:{styles:t((c={},c[h]="",c),"fixed"===l&&!y||!n.isWin?{position:"absolute",top:"",bottom:"0"}:{}),classes:(u={},u[m]=!0,u)}};"fixed"===l&&(v.default.styles.position="");var b=v[i.state];b.classes=((f={})[m]=!!b.classes[m],f[d]=!!b.classes[d],f[p]=x,f),g(b,e)})},n.applyStyle=function(t,e){var n=t.styles,i=t.classes,o=e,r=o.el,s=o.props,a=r.style,c=s.noStyles,u=r.className.split(" ");for(var l in i)if(i[l])-1===u.indexOf(l)&&u.push(l);else{var f=u.indexOf(l);-1!==f&&u.splice(f,1)}if(r.className=u.join(" "),n.position&&(a.position=n.position),!c)for(var d in n)a[d]=n[d]},n.update=function(t){var e=this;return void 0===t&&(t=null),this.instances.forEach(function(n){if(e.computeScrollOffsets(n),t)for(var i in t)n.props[i]=t[i]}),this},n.removeInstance=function(t){var e,n,i=t.el,o=t.props;this.applyStyle({styles:(e={position:""},e[o.verticalPosition]="",e),classes:(n={},n[o.stickyClass]="",n[o.stuckClass]="",n)},t),this.toggleClasses(i.parentNode,o.parentClass)},n.cleanup=function(){for(var t=0;t<this.instances.length;t+=1){var e=this.instances[t];e.stateContainer&&e.props.scrollEl.removeEventListener("scroll",e.stateContainer),this.removeInstance(e)}this.manageState=!1,this.instances=[]},e}();return function(t,n){return new e(t,n)}}),function t(e,n,i){function o(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){return o(e[s][1][t]||t)},l,l.exports,t,e,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){"use strict";"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e="classList",n="prototype",i=t.Element[n],o=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},u=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=u[n]=[],f=function(){return new u(this)};if(a[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==c(this,t+="")},l.add=function(){for(var t,e=arguments,n=0,i=e.length,o=!1;-1===c(this,t=e[n]+"")&&(this.push(t),o=!0),++n<i;);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,i=0,o=n.length,r=!1;do{for(e=c(this,t=n[i]+"");-1!==e;)this.splice(e,1),r=!0,e=c(this,t)}while(++i<o);r&&this._updateClassName()},l.toggle=function(t,e){t+="";var n=this.contains(t),i=n?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!n},l.toString=function(){return this.join(" ")},o.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(i,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,o.defineProperty(i,e,d))}}else o[n].__defineGetter__&&i.__defineGetter__(e,f)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;n<i;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},{}],2:[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,n){void 0!==e?e.exports=n():"function"==typeof define&&"object"==i(define.amd)?define(n):this.domready=n()}(0,function(){var t,e=[],n=document,i=n.documentElement.doScroll,o="DOMContentLoaded",r=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return r||n.addEventListener(o,t=function(){for(n.removeEventListener(o,t),r=1;t=e.shift();)t()}),function(t){r?setTimeout(t,0):e.push(t)}})},{}],3:[function(t,e,n){"use strict";var i;e.exports=((i=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(i.dataset&&"c"===i.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function i(){return this.value}function o(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var r=0,s=n.length;r<s;r++){var a=n[r];if(a){var c=a.name;if(0===c.indexOf("data-")){var u=c.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=a.value;Object.defineProperty(e,u,{enumerable:!0,get:i.bind({value:l||""}),set:o.bind(t,c)})}}}return e})},{}],4:[function(t,e,n){"use strict";var i;"function"!=typeof(i=window.Element.prototype).matches&&(i.matches=i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==this;)++n;return Boolean(e[n])}),"function"!=typeof i.closest&&(i.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},{}],5:[function(t,e,n){"use strict";!function(){var t,i={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var t={get:function(){var t=i.keys[this.which||this.keyCode];return Array.isArray(t)&&(t=t[+this.shiftKey]),t}};return Object.defineProperty(KeyboardEvent.prototype,"key",t),t},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}};for(t=1;t<25;t++)i.keys[111+t]="F"+t;var o="";for(t=65;t<91;t++)o=String.fromCharCode(t),i.keys[t]=[o.toLowerCase(),o.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",i):void 0!==n&&void 0!==e?e.exports=i:window&&(window.keyboardeventKeyPolyfill=i)}()},{}],6:[function(t,e,n){(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return p.Date.now()}var o=NaN,r="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,f="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,d="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),m=Object.prototype.toString,h=Math.max,v=Math.min;function g(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function y(t){return"symbol"==n(t)||function(t){return!!t&&"object"==n(t)}(t)&&m.call(t)==r}function b(t){if("number"==typeof t)return t;if(y(t))return o;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=c.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?o:+t}e.exports=function(t,e,n){var o,r,s,a,c,u,l=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,i=r;return o=r=void 0,l=e,a=t.apply(i,n)}function y(t){var n=t-u;return void 0===u||e<=n||n<0||d&&s<=t-l}function w(){var t=i();if(y(t))return E(t);c=setTimeout(w,function(t){var n=e-(t-u);return d?v(n,s-(t-l)):n}(t))}function E(t){return c=void 0,p&&o?m(t):(o=r=void 0,a)}function k(){var t=i(),n=y(t);if(o=arguments,r=this,u=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(w,e),f?m(t):a}(u);if(d)return c=setTimeout(w,e),m(u)}return void 0===c&&(c=setTimeout(w,e)),a}return e=b(e)||0,g(n)&&(f=!!n.leading,s=(d="maxWait"in n)?h(b(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),k.cancel=function(){void 0!==c&&clearTimeout(c),o=u=r=c=void(l=0)},k.flush=function(){return void 0===c?a:E(i())},k}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,n){"use strict";var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(a[u]=n[u]);if(i){s=i(n);for(var l=0;l<s.length;l++)r.call(n,s[l])&&(a[s[l]]=n[s[l]])}}return a}},{}],8:[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=t("object-assign"),r=t("../delegate"),s=t("../delegateAll"),a=/^(.+):delegate\((.+)\)$/,c=function(t,e){var n=t[e];return delete t[e],n};e.exports=function(t,e){var n=Object.keys(t).reduce(function(e,n){var u=function(t,e){var n,u,l=t.match(a);l&&(t=l[1],n=l[2]),"object"===i(e)&&(u={capture:c(e,"capture"),passive:c(e,"passive")});var f={selector:n,delegate:"object"===i(e)?s(e):n?r(n,e):e,options:u};return-1<t.indexOf(" ")?t.split(" ").map(function(t){return o({type:t},f)}):(f.type=t,[f])}(n,t[n]);return e.concat(u)},[]);return o({add:function(t){n.forEach(function(e){t.addEventListener(e.type,e.delegate,e.options)})},remove:function(t){n.forEach(function(e){t.removeEventListener(e.type,e.delegate,e.options)})}},e)}},{"../delegate":10,"../delegateAll":11,"object-assign":7}],9:[function(t,e,n){"use strict";e.exports=function(t){return function(e){return t.some(function(t){return!1===t.call(this,e)},this)}}},{}],10:[function(t,e,n){"use strict";t("element-closest"),e.exports=function(t,e){return function(n){var i=n.target.closest(t);if(i)return e.call(i,n)}}},{"element-closest":4}],11:[function(t,e,n){"use strict";var i=t("../delegate"),o=t("../compose");e.exports=function(t){var e=Object.keys(t);if(1===e.length&&"*"===e[0])return t["*"];var n=e.reduce(function(e,n){return e.push(i(n,t[n])),e},[]);return o(n)}},{"../compose":9,"../delegate":10}],12:[function(t,e,n){"use strict";e.exports=function(t,e){return function(n){if(t!==n.target&&!t.contains(n.target))return e.call(this,n)}}},{}],13:[function(t,e,n){"use strict";e.exports={behavior:t("./behavior"),delegate:t("./delegate"),delegateAll:t("./delegateAll"),ignore:t("./ignore"),keymap:t("./keymap")}},{"./behavior":8,"./delegate":10,"./delegateAll":11,"./ignore":12,"./keymap":14}],14:[function(t,e,n){"use strict";t("keyboardevent-key-polyfill");var i={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};e.exports=function(t){var e=Object.keys(t).some(function(t){return-1<t.indexOf("+")});return function(n){var o=function(t,e){var n=t.key;if(e)for(var o in i)!0===t[i[o]]&&(n=[o,n].join("+"));return n}(n,e);return[o,o.toLowerCase()].reduce(function(e,i){return i in t&&(e=t[o].call(this,n)),e},void 0)}},e.exports.MODIFIERS=i},{"keyboardevent-key-polyfill":5}],15:[function(t,e,n){"use strict";e.exports=function(t,e){var n=function(i){return i.currentTarget.removeEventListener(i.type,n,e),t.call(this,i)};return n}},{}],16:[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=/(^\s+)|(\s+$)/g,r=/\s+/,s=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(o,"")};e.exports=function(t,e){if("string"!=typeof t)throw new Error("Expected a string but got "+i(t));var n=(e=e||window.document).getElementById?e.getElementById.bind(e):function(t){return this.querySelector('[id="'+t.replace(/"/g,'\\"')+'"]')}.bind(e);return 1===(t=s(t).split(r)).length&&""===t[0]?[]:t.map(function(t){var e=n(t);if(!e)throw new Error('no element with id: "'+t+'"');return e})}},{}],17:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return s(p,t).filter(function(e){return e.closest(d)===t})}function r(t,e){var n,i=t.closest(d);if(!i)throw new Error("".concat(p," is missing outer ").concat(d));n=c(t,e);var r="true"===i.getAttribute("aria-multiselectable");n&&!r&&o(i).forEach(function(e){e!==t&&c(e,!1)})}var s=t("../utils/select"),a=t("../utils/behavior"),c=t("../utils/toggle"),u=t("../utils/is-in-viewport"),l=t("../events").CLICK,f=t("../config").prefix,d=".".concat(f,"-accordion, .").concat(f,"-accordion--bordered"),p=".".concat(f,"-accordion__button[aria-controls]"),m="aria-expanded",h=a(i({},l,i({},p,function(t){t.preventDefault(),r(this),"true"===this.getAttribute(m)&&(u(this)||this.scrollIntoView())})),{init:function(t){s(p,t).forEach(function(t){var e="true"===t.getAttribute(m);r(t,e)})},ACCORDION:d,BUTTON:p,show:function(t){return r(t,!0)},hide:function(t){return r(t,!1)},toggle:r,getButtons:o});e.exports=h},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/is-in-viewport":34,"../utils/select":35,"../utils/toggle":38}],18:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("../utils/behavior"),r=t("../events").CLICK,s=t("../config").prefix,a=".".concat(s,"-banner__header"),c="".concat(s,"-banner__header--expanded");e.exports=o(i({},r,i({},"".concat(a," [aria-controls]"),function(t){t.preventDefault(),this.closest(a).classList.toggle(c)})))},{"../config":26,"../events":27,"../utils/behavior":32}],19:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,r=t("lodash.debounce"),s=t("../utils/behavior"),a=t("../utils/select"),c=t("../events").CLICK,u=t("../config").prefix,l="hidden",f=".".concat(u,"-footer--big"),d="".concat(f," nav"),p="".concat(d," .").concat(u,"-footer__primary-link"),m=".".concat(u,"-footer__primary-content--collapsible"),h=r(function(){if(o!==window.innerWidth){o=window.innerWidth;var t=window.innerWidth<480;a(m).forEach(function(e){return e.classList.toggle(l,t)})}},180);e.exports=s(i({},c,i({},p,function(){if(window.innerWidth<480){var t=this.closest(m);t.classList.toggle(l),a(m,t.closest(d)).forEach(function(e){e!==t&&e.classList.add(l)})}})),{HIDE_MAX_WIDTH:480,DEBOUNCE_RATE:180,init:function(){h(),window.addEventListener("resize",h)},teardown:function(){window.removeEventListener("resize",h)}})},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/select":35,"lodash.debounce":6}],20:[function(t,e,n){"use strict";var i=t("./accordion"),o=t("./banner"),r=t("./footer"),s=t("./navigation"),a=t("./password"),c=t("./search"),u=t("./skipnav"),l=t("./validator");e.exports={accordion:i,banner:o,footer:r,navigation:s,password:a,search:c,skipnav:u,validator:l}},{"./accordion":17,"./banner":18,"./footer":19,"./navigation":21,"./password":22,"./search":23,"./skipnav":24,"./validator":25}],21:[function(t,e,n){"use strict";var i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return document.body.classList.contains(A)}function s(t){var e=document.body,n="boolean"==typeof t?t:!r();e.classList.toggle(A,n),p(C).forEach(function(t){return t.classList.toggle("is-visible",n)}),l.focusTrap.update(n);var i=e.querySelector(x),o=e.querySelector(k);return n&&i?i.focus():!n&&document.activeElement===i&&o&&o.focus(),n}function a(){var t=document.body.querySelector(x);r()&&t&&0===t.getBoundingClientRect().width&&l.toggleNav.call(t,!1)}function c(){return l.toggleNav.call(l,!1)}function u(){m(f,!1),f=null}var l,f,d=t("../utils/behavior"),p=t("../utils/select"),m=t("../utils/toggle"),h=t("../utils/focus-trap"),v=t("./accordion"),g=t("../events").CLICK,y=t("../config").prefix,b=".".concat(y,"-nav"),w="".concat(b," a"),E="button.".concat(y,"-nav__link"),k=".".concat(y,"-menu-btn"),x=".".concat(y,"-nav__close"),_=".".concat(y,"-overlay"),S="".concat(x,", .").concat(y,"-overlay"),C=[b,_].join(", "),A="usa-js-mobile-nav--active";l=d(o({},g,(o(i={},E,function(){return f&&f!==this&&u(),f?u():m(f=this,!0),!1}),o(i,"body",function(){f&&u()}),o(i,k,s),o(i,S,s),o(i,w,function(){var t=this.closest(v.ACCORDION);t&&v.getButtons(t).forEach(function(t){return v.hide(t)}),r()&&l.toggleNav.call(l,!1)}),i)),{init:function(t){var e=t.querySelector(b);e&&(l.focusTrap=h(e,{Escape:c})),a(),window.addEventListener("resize",a,!1)},teardown:function(){window.removeEventListener("resize",a,!1),f=!1},focusTrap:null,toggleNav:s}),e.exports=l},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/focus-trap":33,"../utils/select":35,"../utils/toggle":38,"./accordion":17}],22:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("../utils/behavior"),r=t("../utils/toggle-form-input"),s=t("../events").CLICK,a=t("../config").prefix,c=".".concat(a,"-show-password, .").concat(a,"-show-multipassword");e.exports=o(i({},s,i({},c,function(t){t.preventDefault(),r(this)})))},{"../config":26,"../events":27,"../utils/behavior":32,"../utils/toggle-form-input":37}],23:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,r=t("receptor/ignore"),s=t("../utils/behavior"),a=t("../utils/select"),c=t("../events").CLICK,u=".js-search-button",l=".js-search-form",f=function(t,e){var n=function(t){var e=t.closest("header");return e?e.querySelector(l):document.querySelector(l)}(t);if(!n)throw new Error("No ".concat(l," found for search toggle in ").concat("header","!"));if(t.hidden=e,n.hidden=!e,e){var i=n.querySelector("[type=search]");i&&i.focus();var s=r(n,function(){o&&function(){f(this,!1),o=void 0}.call(o),document.body.removeEventListener(c,s)});setTimeout(function(){document.body.addEventListener(c,s)},0)}},d=s(i({},c,i({},u,function(){f(this,!0),o=this})),{init:function(t){a(u,t).forEach(function(t){f(t,!1)})},teardown:function(){o=void 0}});e.exports=d},{"../events":27,"../utils/behavior":32,"../utils/select":35,"receptor/ignore":12}],24:[function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=t("receptor/once"),r=t("../utils/behavior"),s=t("../events").CLICK,a=t("../config").prefix,c=".".concat(a,'-skipnav[href^="#"], .').concat(a,'-footer__return-to-top [href^="#"]');e.exports=r(i({},s,i({},c,function(){var t=this.getAttribute("href"),e=document.getElementById("#"===t?"main-content":t.slice(1));e&&(e.style.outline="0",e.setAttribute("tabindex",0),e.focus(),e.addEventListener("blur",o(function(){e.setAttribute("tabindex",-1)})))})))},{"../config":26,"../events":27,"../utils/behavior":32,"receptor/once":15}],25:[function(t,e,n){"use strict";var i=t("../utils/behavior"),o=t("../utils/validate-input"),r=i({"keyup change":{"input[data-validation-element]":function(){o(this)}}});e.exports=r},{"../utils/behavior":32,"../utils/validate-input":39}],26:[function(t,e,n){"use strict";e.exports={prefix:"usa"}},{}],27:[function(t,e,n){"use strict";e.exports={CLICK:"click"}},{}],28:[function(t,e,n){"use strict";var i=window.HTMLElement.prototype,o="hidden";o in i||Object.defineProperty(i,o,{get:function(){return this.hasAttribute(o)},set:function(t){t?this.setAttribute(o,""):this.removeAttribute(o)}})},{}],29:[function(t,e,n){"use strict";t("classlist-polyfill"),t("./element-hidden")},{"./element-hidden":28,"classlist-polyfill":1}],30:[function(t,e,n){"use strict";var i=t("domready");t("./polyfills");var o=t("./config"),r=t("./components");o.components=r,i(function(){var t=document.body;Object.keys(r).forEach(function(e){r[e].on(t)})}),e.exports=o},{"./components":20,"./config":26,"./polyfills":29,domready:2}],31:[function(t,e,n){"use strict";e.exports=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement}},{}],32:[function(t,e,n){"use strict";function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var n=this,i=0<arguments.length&&void 0!==t?t:document.body;e.forEach(function(t){"function"==typeof n[t]&&n[t].call(n,i)})}}var o=t("object-assign"),r=t("receptor/behavior");e.exports=function(t,e){return r(t,o({on:i("init","add"),off:i("teardown","remove")},e))}},{"object-assign":7,"receptor/behavior":8}],33:[function(t,e,n){"use strict";var i=t("object-assign"),o=t("receptor").keymap,r=t("./behavior"),s=t("./select"),a=t("./active-element");e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=function(t){var e=s('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',t),n=e[0],i=e[e.length-1];return{firstTabStop:n,lastTabStop:i,tabAhead:function(t){a()===i&&(t.preventDefault(),n.focus())},tabBack:function(t){a()===n&&(t.preventDefault(),i.focus())}}}(t),c=o(i({Tab:n.tabAhead,"Shift+Tab":n.tabBack},e));return r({keydown:c},{init:function(){n.firstTabStop.focus()},update:function(t){t?this.on():this.off()}})}},{"./active-element":31,"./behavior":32,"./select":35,"object-assign":7,receptor:13}],34:[function(t,e,n){"use strict";e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,i=t.getBoundingClientRect();return 0<=i.top&&0<=i.left&&i.bottom<=(e.innerHeight||n.clientHeight)&&i.right<=(e.innerWidth||n.clientWidth)}},{}],35:[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t,e){if("string"!=typeof t)return[];e&&function(t){return t&&"object"===i(t)&&1===t.nodeType}(e)||(e=window.document);var n=e.querySelectorAll(t);return Array.prototype.slice.call(n)}},{}],36:[function(t,e,n){"use strict";e.exports=function(t,e){t.setAttribute("autocapitalize","off"),t.setAttribute("autocorrect","off"),t.setAttribute("type",e?"password":"text")}},{}],37:[function(t,e,n){"use strict";var i=t("resolve-id-refs"),o=t("./toggle-field-mask"),r="aria-pressed",s="data-show-text";e.exports=function(t){var e=t.hasAttribute(r)&&"true"!==t.getAttribute(r);i(t.getAttribute("aria-controls")).forEach(function(t){return o(t,e)}),t.hasAttribute(s)||t.setAttribute(s,t.textContent);var n=t.getAttribute(s),a=t.getAttribute("data-hide-text")||n.replace(/\bShow\b/i,function(t){return"".concat("S"===t[0]?"H":"h","ide")});return t.textContent=e?n:a,t.setAttribute(r,e),e}},{"./toggle-field-mask":36,"resolve-id-refs":16}],38:[function(t,e,n){"use strict";var i="aria-expanded";e.exports=function(t,e){var n=e;"boolean"!=typeof n&&(n="false"===t.getAttribute(i)),t.setAttribute(i,n);var o=t.getAttribute("aria-controls"),r=document.getElementById(o);if(!r)throw new Error('No toggle target found with id: "'.concat(o,'"'));return n?r.removeAttribute("hidden"):r.setAttribute("hidden",""),n}},{}],39:[function(t,e,n){"use strict";var i=t("elem-dataset"),o=t("../config").prefix,r="".concat(o,"-checklist__item--checked");e.exports=function(t){var e=i(t),n=e.validationElement,o="#"===n.charAt(0)?document.querySelector(n):document.getElementById(n);if(!o)throw new Error('No validation element found with id: "'.concat(n,'"'));Object.entries(e).forEach(function(e){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e,2),i=n[0],s=n[1];if(i.startsWith("validate")){var a=i.substr("validate".length).toLowerCase(),c=new RegExp(s),u='[data-validator="'.concat(a,'"]'),l=o.querySelector(u);if(!l)throw new Error('No validator checkbox found for: "'.concat(a,'"'));var f=c.test(t.value);l.classList.toggle(r,f),l.setAttribute("aria-checked",f)}})}},{"../config":26,"elem-dataset":3}]},{},[30]),window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.expand=1500,function(){function t(t){var e=document.querySelector(".prosper-header");e&&(arr=e.className.split(" "),-1==arr.indexOf("sticky-header")?t>=112&&(e.className+=" sticky-header"):t<112&&(e.className=e.className.replace(/\bsticky-header\b/g,"")))}var e=!1;window.addEventListener("scroll",function(n){var i=window.scrollY;e||(window.requestAnimationFrame(function(){t(i),e=!1}),e=!0)}),window.onLoad=t(window.scrollY)}(),function(t){if("undefined"!=typeof inView&&document.documentElement.matches("[r5s]")){inView.offset({top:0,right:0,bottom:window.innerWidth<720?25:75,left:0});var e=function(t){t.setAttribute("revealed",""),t.dispatchEvent(new CustomEvent("revealed"))},n=function(){inView('[reveal]:not([reveal*="+"])').on("enter",function(t){if(!t.entered){var n=t.getAttribute("reveal")||!1,i=n?(n+"").split("/")[1]:0;i&&i>25?setTimeout(function(){e(t)},i):e(t),t.entered=!0}})};window.addEventListener("reinitialize",n),n()}}(),function(){if("undefined"!=typeof news_loadmore_params){var t=news_loadmore_params,e=document.getElementById("news-listing-results"),n=document.querySelector(".news-listing-inner"),i=function(t){history.replaceState({page:t},"News - Page "+t,"/news/page/"+t+"/")},o=function(){var n=document.getElementById("news-pagination-links"),o=[];n&&(o=n.querySelectorAll("a"));for(var a=0,c=o.length;a<c;a++)o[a].onclick=function(n){n.preventDefault(),r();var o=n.target.href?n.target.href.split("/"):[],a=o.length>=2?o[o.length-2]:1;!parseInt(a)>0&&(a=1);var c=new FormData;c.append("action",t.action),c.append("_ajax_nonce",t.nonce),c.append("query_vars",""),c.append("page",a);var u=new XMLHttpRequest;u.open("POST",t.ajaxurl,!0),u.onreadystatechange=function(){4===u.readyState&&200===u.status&&(e.innerHTML=u.response,i(a),s())},u.onerror=s,u.send(c)}},r=function(){n.style.background="rgba(0,0,0,.1)"},s=function(){n.style.background="",document.querySelector(".media-contact").scrollIntoView({behavior:"smooth",block:"start"}),o()};t&&o()}}(),function(){if("undefined"!=typeof stories_loadmore_params){var t=stories_loadmore_params,e=(document.getElementById("impact-story-listing-results-outer"),document.getElementById("impact-story-listing-results-outer").querySelector(".results")),n={page:window.scrollpage||2,currentscrollHeight:0,isDone:!1},i=function(n,i){r(),n||(n=1),console.log("get page",n),document.getElementById("news-pagination-links-loadmore")&&document.getElementById("news-pagination-links-loadmore").remove();var o=new FormData;o.append("action",t.action),o.append("_ajax_nonce",t.nonce),o.append("query_vars",""),o.append("page",n),document.getElementById("filter-story-country")&&""!=document.getElementById("filter-story-country").value&&o.append("taxcountry",document.getElementById("filter-story-country").value),document.getElementById("filter-story-sector")&&""!=document.getElementById("filter-story-sector").value&&o.append("taxsector",document.getElementById("filter-story-sector").value);var a=new XMLHttpRequest;a.open("POST",t.ajaxurl,!0),a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(e.innerHTML=i?e.innerHTML+a.response:a.response,function(t){history.replaceState({page:t},"Impact Story - Page "+t,"/news/impact-story/?page_a="+t)}(n),s())},a.onerror=s,a.send(o)},o=function(){try{document.getElementById("news-pagination-links-loadmore").addEventListener("click",function(t){n.page=t.target.dataset.page,document.getElementById("news-pagination-links-loadmore-wrapper").remove(),i(n.page,!0),n.currentscrollHeight=scrollHeight})}catch(t){}},r=function(){e.style.background="rgba(0,0,0,.1)"},s=function(){e.style.background="",o()};window.addEventListener("scroll",function(){var t=window.innerHeight;if(!n.isDone&&document.getElementById("news-pagination-links-loadmore-wrapper")&&function(t){try{const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}catch(t){console.log("isinviewport error",t)}}(document.getElementById("news-pagination-links-loadmore")))try{n.page=document.getElementById("news-pagination-links-loadmore").dataset.page,document.getElementById("news-pagination-links-loadmore-wrapper").remove(),i(n.page,!0),n.currentscrollHeight=t}catch(t){}}),t&&o(),document.getElementById("filter-story-country").addEventListener("change",function(){i()}),document.getElementById("filter-story-sector").addEventListener("change",function(){i()})}}(),function(t,e){if(void 0!==t.getElementById("africa-map")&&"undefined"!=typeof map_data){for(var n,i=map_data||[],o=function(o){if(e.innerWidth>767){var s=o.target.id.toLowerCase(),a=t.getElementById("map-infowindow");if(s&&""!=s&&i[s.toLowerCase()]){n&&n.target.id!=s&&r(n),o.target.style.fill="#156EA1";var c=i[s.toLowerCase()];t.getElementById("map-info-box-data-flagimage").src=c.flag,t.getElementById("map-info-box-data-countryname").innerHTML=c.name,t.getElementById("map-info-box-data-deals").innerHTML=c.deals,t.getElementById("map-info-box-data-value").innerHTML=c.value,c.story?(t.getElementById("map-info-box-data-story-link").href=c.story.link,t.getElementById("map-info-box-data-story-title").innerHTML=c.story.title+' <span class="arrow white"></span>',t.getElementById("map-info-box-data-story-wrap").style="display: flex; background-image:linear-gradient(90deg, rgba(39,35,30,0.85) 10%, rgba(39,35,30,0.20) 71%),url("+c.story.image+"); background-size: cover; background-repeat: no-repeat;"):t.getElementById("map-info-box-data-story-wrap").style="display: none;";var u="angola"===s.toLowerCase()?t.getElementById(s.toLowerCase()+"-label").getBBox():o.target.getBBox(),l=o.target.getScreenCTM();a.style.position="absolute",a.style.zIndex=9,n&&n.target&&n.target.id==s||(a.style.left=(u.x+u.width/2-175)*(1*l.a)+"px",a.style.top=(u.y+u.height/1.5)*(1*l.d)+"px"),a.style.display="block",n=o}}},r=function(n){if(e.innerWidth>767){var o=n.target.id.toLowerCase()||"";if(o&&""!=o&&i[o.toLowerCase()])n.target.style.fill="#C98228",t.getElementById("map-infowindow").style.display="none"}},s=t.getElementsByClassName("mapregion"),a=0;a<s.length;a++)s[a].addEventListener("click",o,!1),i[s[a].id.toLowerCase()]&&(s[a].setAttribute("class","mapregion hover"),s[a].style.fill="#C98228",t.getElementById(s[a].id.toLowerCase()+"-label")&&(t.getElementById(s[a].id.toLowerCase()+"-label").style.display="inline"),t.getElementById(s[a].id.toLowerCase()+"-line")&&(t.getElementById(s[a].id.toLowerCase()+"-line").style.display="inline"));t.getElementById("map-info-box-close")&&t.getElementById("map-info-box-close").addEventListener("click",function(e){e.preventDefault(),n.target.style.fill="#C98228",t.getElementById("map-infowindow").style.display="none"},!1),t.getElementById("map-country-select").addEventListener("change",function(e){var n=t.getElementById("map-infowindow-mobile");if(!e.target.value||e.target.value&&""==e.target.value)n.style.display="none";else if(e.target.value){var o=i[e.target.value.toLowerCase()];t.getElementById("map-mobile-info-box-data-flagimage").src=o.flag,t.getElementById("map-mobile-info-box-data-countryname").innerHTML=o.name,t.getElementById("map-mobile-info-box-data-deals").innerHTML=o.deals,t.getElementById("map-mobile-info-box-data-value").innerHTML=o.value,o.story?(t.getElementById("map-mobile-info-box-data-story-link").href=o.story.link,t.getElementById("map-mobile-info-box-data-story-title").innerHTML=o.story.title+' <span class="arrow white"></span>',t.getElementById("map-mobile-info-box-data-story-wrap").style="display: flex;background-image:linear-gradient(90deg, rgba(39,35,30,0.85) 10%, rgba(39,35,30,0.20) 71%),url("+o.story.image+"); background-size: cover; background-repeat: no-repeat;"):t.getElementById("map-mobile-info-box-data-story-wrap").style="display: none;",n.style.display="inline-block"}}),t.getElementById("map-info-box-close-mobile")&&t.getElementById("map-info-box-close-mobile").addEventListener("click",function(e){e.preventDefault(),t.getElementById("map-country-select").selectedIndex=0,t.getElementById("map-infowindow-mobile").style.display="none"},!1)}}(document,window),function(t,e){var n="::-moz-focus-inner{border:0 !important;}:focus{outline: none !important;",i=t.createElement("STYLE");e.unfocus=function(){t.getElementsByTagName("HEAD")[0].appendChild(i),t.addEventListener("mousedown",function(){i.innerHTML=n+"}"}),t.addEventListener("keydown",function(){i.innerHTML=""})},unfocus.style=function(t){n+=t},unfocus()}(document,window),function(){if(document.getElementsByClassName("tabs_tools").length>0){for(var t=0,e=(n=document.getElementsByClassName("tabs_tools_link")).length;t<e;t++)n[t].onclick=function(t){if(t.preventDefault(),t.target.dataset.tab){for(var e=document.getElementsByClassName("tab__content"),n=0,i=e.length;n<i;n++)e[n].style.display="none",t.target.parentElement.className="";for(var o=document.getElementsByClassName("current-tab"),r=(n=0,o.length);n<r;n++)o[n].className="";var s=document.getElementsByClassName(t.target.dataset.tab);s&&(s[0].style.display="block",t.target.parentElement.className="current-tab",t.target.parentElement.parentElement.className="tabs_tools",window.location.hash="#"+t.target.dataset.tab.replace("tab__","tab"))}};document.getElementById("tab-control-button").addEventListener("click",function(){var t=document.getElementsByClassName("tabs_tools"),e=t[0].className;t[0].className="tabs_tools open"===e?"tabs_tools":"tabs_tools open"})}if(document.getElementsByClassName("button_tools").length>0){var n;for(t=0,e=(n=document.getElementsByClassName("button_tools_link")).length;t<e;t++)n[t].onclick=function(t){if(t.preventDefault(),t.target.dataset.tab){for(var e=document.getElementsByClassName("tab__content"),n=0,i=e.length;n<i;n++)e[n].style.display="none";for(var o=document.getElementsByClassName("button_tools_link"),r=(n=0,o.length);n<r;n++)o[n].className="button_tools_link";var s=document.getElementsByClassName(t.target.dataset.tab);s&&(s[0].style.display="block",t.target.className="button_tools_link active",document.querySelector(".section-2").scrollIntoView({behavior:"smooth",block:"start"}))}};document.getElementById("tab-control-button")&&document.getElementById("tab-control-button").addEventListener("click",function(){var t=document.getElementsByClassName("tabs_tools"),e=t[0].className;t[0].className="tabs_tools open"===e?"tabs_tools":"tabs_tools open"}),document.getElementById("covid-tabs-select")&&document.getElementById("covid-tabs-select").addEventListener("change",function(t){for(var e=document.getElementsByClassName("tab__content"),n=0,i=e.length;n<i;n++)e[n].style.display="none";if(t.target.value){var o=document.getElementsByClassName(t.target.value);o&&(o[0].style.display="block")}})}}(),function(){if("undefined"!=typeof Glide&&document.getElementsByClassName("glide__slide").length>0){let t=t=>{t.slides_count<=t.settings.perView?(t.update({startAt:0}).disable(),document.querySelector(".glide__arrows").style.display="none"):(document.querySelector(".glide__arrows").style.display="flex",t.enable())},e=new Glide(".glide",{type:"slider",startAt:0,dragThreshold:!1,swipeThreshold:!1,gap:40,perView:4,breakpoints:{1199:{perView:3},1023:{gap:20,perView:2},767:{gap:0,perView:1}}}).mount();e.slides_count=document.getElementsByClassName("glide__slide").length,e.on("resize",()=>{t(e)}),e.mount(),t(e)}}(),document.addEventListener("DOMContentLoaded",t=>{document.querySelectorAll('a[href^="http"]:not([href*="'+window.location.hostname+'"])').forEach(t=>t.setAttribute("rel","noopener noreferrer nofollow"))}),function(){var t=document.getElementById("email-signup-field"),e=document.getElementById("email-list-subscribe"),n=document.querySelector(".email-signup-message");document.getElementById("email-list-subscribe").addEventListener("submit",function(i){/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t.value)?(i.preventDefault(),document.querySelector(".ctct-form-button").click(),e.style.display="none",n.style.display="block"):(alert("Please enter a valid email."),t.select().focus())},!0),t.addEventListener("input",function(e){document.getElementById("email_address_0").value=t.value});var i=document.querySelector(".ctct-inline-form");i.style.width=i.style.height="1px",i.style.overflow="hidden"}(),document.getElementById("sticky-controls-nav")&&stickybits("#sticky-controls-nav",{useStickyClasses:!0,stickyBitStickyOffset:window.innerWidth<730?83:123}),function(){var t=document.getElementById("accoridan-list-team");if(void 0!==t&&null!=t)for(var e=document.getElementById("accoridan-list-team").querySelectorAll(".item-row"),n=0;n<e.length;n++)e[n].querySelector(".info").addEventListener("click",function(t){"item-row"==t.target.closest(".item-row").className?t.target.closest(".item-row").className="item-row open":t.target.closest(".item-row").className="item-row"})}();