1function dropdown(){const o=window.matchMedia("(max-width: 767px)"),i=document.querySelector(".gh-head-menu"),r=i?.querySelector(".nav");if(r){const e=document.querySelector(".gh-head-logo"),t=r.innerHTML;o.matches&&r.querySelectorAll("li").forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"});const n=function(){if(!o.matches){for(var e=[];r.offsetWidth+64>i.offsetWidth&&r.lastElementChild;)e.unshift(r.lastElementChild),r.lastElementChild.remove();if(e.length){const t=document.createElement("button"),n=(t.setAttribute("class","nav-more-toggle gh-icon-btn"),t.setAttribute("aria-label","More"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M21.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM13.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM5.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0z"></path></svg>',document.createElement("div"));n.setAttribute("class","gh-dropdown"),10<=e.length?(document.body.classList.add("is-dropdown-mega"),n.style.gridTemplateRows=`repeat(${Math.ceil(e.length/2)}, 1fr)`):document.body.classList.remove("is-dropdown-mega"),e.forEach(function(e){n.appendChild(e)}),t.appendChild(n),r.appendChild(t),document.body.classList.add("is-dropdown-loaded"),window.addEventListener("click",function(e){document.body.classList.contains("is-dropdown-open")?document.body.classList.remove("is-dropdown-open"):t.contains(e.target)&&document.body.classList.add("is-dropdown-open")})}else document.body.classList.add("is-dropdown-loaded")}};imagesLoaded(e,function(){n()}),window.addEventListener("load",function(){e||n()}),window.addEventListener("resize",function(){setTimeout(()=>{r.innerHTML=t,n()},1)})}}function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,o=[],i=0,r=t.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var a=[];r.querySelectorAll("img").forEach(function(e){a.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),r=r.previousElementSibling,o=a.concat(o)}t.target.classList.contains("kg-image")?o.push({src:t.target.getAttribute("src"),msrc:t.target.getAttribute("src"),w:t.target.getAttribute("width"),h:t.target.getAttribute("height"),el:t.target}):(n=!1,t.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),n||e===t.target?n=!0:i+=1}));for(var s=t.target.closest(".kg-card").nextElementSibling;s&&(s.classList.contains("kg-image-card")||s.classList.contains("kg-gallery-card"));)s.querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e})}),s=s.nextElementSibling;e=document.querySelectorAll(".pswp")[0];new PhotoSwipe(e,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var e=o[e].el,t=window.pageYOffset||document.documentElement.scrollTop,e=e.getBoundingClientRect();return{x:e.left,y:e.top+t,w:e.width}}}).init()})})}function pagination(e,s,l=!1){const c=document.querySelector(".gh-feed");if(!c)return;let t=!1;async function n(){var t=document.querySelector("link[rel=next]");if(t)try{var e=await(await fetch(t.href)).text(),n=(new DOMParser).parseFromString(e,"text/html"),o=n.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *");const r=document.createDocumentFragment(),a=[];o.forEach(function(e){e=document.importNode(e,!0);l&&(e.style.visibility="hidden"),r.appendChild(e),a.push(e)}),c.appendChild(r),s&&s(a,d);var i=n.querySelector("link[rel=next]");i&&i.href?t.href=i.href:(t.remove(),u&&u.remove())}catch(e){throw t.remove(),u&&u.remove(),e}}const o=c.nextElementSibling||c.parentElement.nextElementSibling||document.querySelector(".gh-foot"),u=document.querySelector(".gh-loadmore"),d=(!document.querySelector("link[rel=next]")&&u&&u.remove(),async function(){o.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]")&&await n()});const i=new IntersectionObserver(async function(e){if(!t){if(t=!0,e[0].isIntersecting)if(l)await n();else for(;o.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]");)await n();t=!1,document.querySelector("link[rel=next]")||i.disconnect()}});e?i.observe(o):u.addEventListener("click",n)}!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var n;return e&&t&&((n=(n=this._events=this._events||{})[e]=n[e]||[]).includes(t)||n.push(t)),this},t.once=function(e,t){var n;return e&&t&&(this.on(e,t),((n=this._onceEvents=this._onceEvents||{})[e]=n[e]||{})[t]=!0),this},t.off=function(e,t){e=this._events&&this._events[e];return e&&e.length&&-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];var o,i=this._onceEvents&&this._onceEvents[e];for(o of n)i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,t)}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){let r=t.jQuery,a=t.console;function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);let o=e;var i;(o="string"==typeof e?document.querySelectorAll(e):o)?(this.elements=(i=o,Array.isArray(i)?i:"object"==typeof i&&"number"==typeof i.length?[...i]:[i]),this.options={},"function"==typeof t?n=t:Object.assign(this.options,t),n&&this.on("always",n),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(o||e))}(s.prototype=Object.create(e.prototype)).getImages=function(){this.images=[],this.elements.forEac
1h(this.addElementImages,this)};const i=[1,9,11],l=(s.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t,n,o=e["nodeType"];if(o&&i.includes(o)){for(t of e.querySelectorAll("img"))this.addImage(t);if("string"==typeof this.options.background)for(n of e.querySelectorAll(this.options.background))this.addElementBackgroundImages(n)}},/url\((['"])?(.*?)\1\)/gi);function n(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var n=getComputedStyle(t);if(n){let e=l.exec(n.backgroundImage);for(;null!==e;){var o=e&&e[2];o&&this.addBackground(o,t),e=l.exec(n.backgroundImage)}}},s.prototype.addImage=function(e){e=new n(e);this.images.push(e)},s.prototype.addBackground=function(e,t){e=new o(e,t);this.images.push(e)},s.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let t=(e,t,n)=>{setTimeout(()=>{this.progress(e,t,n)})};this.images.forEach(function(e){e.once("progress",t),e.check()})}else this.complete()},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+n,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(n.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(e,t){this.isLoaded=e;e=this.img.parentNode,e="PICTURE"===e.nodeName?e:this.img;this.emitEvent("progress",[this,e,t])},n.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(n.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((r=e).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(r(this))})})(),s}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,s){function e(e){if(L)return!0;e=e||window.event,I.timeToIdle&&I.mouseUsed&&!w&&l();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i<_.length;i++)(t=_[i]).onTap&&-1<o.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),L=!0,e=s.features.isOldAndroid?600:30,setTimeout(function(){L=!1},e))}function n(){var e=1===I.getNumItemsFn();e!==T&&(F(p,"ui--one-slide",e),T=e)}function a(){F(v,"share-modal--hidden",O)}function i(){if((O=!O)?(s.removeClass(v,"pswp__share-modal--fade-in"),setTimeout(function(){O&&a()},300)):(a(),setTimeout(function(){O||s.addClass(v,"pswp__share-modal--fade-in")},30)),!O){for(var e,t,n,o,i="",r=0;r<I.shareButtons.length;r++)e=I.shareButtons[r],t=I.getImageURLForShare(e),n=I.getPageURLForShare(e),o=I.getTextForShare(e),i+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",I.parseShareButtonOut&&(i=I.parseShareButtonOut(e,i));v.children[0].innerHTML=i,v.children[0].onclick=B}}function r(e){for(var t=0;t<I.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+I.closeElClasses[t]))return!0}function l(){clearTimeout(S),R=0,w&&A.setIdle(!1)}function c(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(S),S=setTimeout(function(){A.setIdle(!0)},I.timeToIdleOutside))}function u(e){C!==e&&(F(b,"preloader--active",!e),C=e)}function d(e){var t,n=e.vGap;!o.likelyTouchDevice||I.mouseUsed||screen.width>I.fitControlsWidth?(t=I.barsSize,I.captionEl&&"auto"===t.bottom?(h||((h=s.
1createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),p.insertBefore(h,f),s.addClass(p,"pswp__ui--fit")),I.addCaptionHTMLFn(e,h,!0)?(e=h.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function N(){function e(e){if(e)for(var t=e.length,n=0;n<t;n++){i=e[n],r=i.className;for(var o=0;o<_.length;o++)a=_[o],-1<r.indexOf("pswp__"+a.name)&&(I[a.option]?(s.removeClass(i,"pswp__element--disabled"),a.onInit&&a.onInit(i)):s.addClass(i,"pswp__element--disabled"))}}e(p.children);var i,r,a,t=s.getChildByClass(p,"pswp__top-bar");t&&e(t.children)}var m,p,f,h,t,g,v,y,w,x,b,C,E,T,I,L,M,S,A=this,k=!1,D=!0,O=!0,P={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},F=function(e,t,n){s[(n?"add":"remove")+"Class"](e,"pswp__"+t)},B=function(e){var t=(e=e||window.event).target||e.srcElement;return o.shout("shareLinkClick",e,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),O||i(),1))},R=0,_=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){v=e},onTap:function(){i()}},{name:"button--share",option:"shareEl",onInit:function(e){g=e},onTap:function(){i()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){t=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){m.isFullscreen()?m.exit():m.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){b=e}}];A.init=function(){var t;s.extend(o.options,P,!0),I=o.options,p=s.getChildByClass(o.scrollWrap,"pswp__ui"),(x=o.listen)("onVerticalDrag",function(e){D&&e<.95?A.hideControls():!D&&.95<=e&&A.showControls()}),x("onPinchClose",function(e){D&&e<.9?(A.hideControls(),t=!0):t&&!D&&.9<e&&A.showControls()}),x("zoomGestureEnded",function(){(t=!1)&&!D&&A.showControls()}),x("beforeChange",A.update),x("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(I.getDoubleTapZoom(!1,o.currItem),e,333)}),x("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<o.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),x("bindEvents",function(){s.bind(p,"pswpTap click",e),s.bind(o.scrollWrap,"pswpTap",A.onGlobalTap),o.likelyTouchDevice||s.bind(o.scrollWrap,"mouseover",A.onMouseOver)}),x("unbindEvents",function(){O||i(),M&&clearInterval(M),s.unbind(document,"mouseout",c),s.unbind(document,"mousemove",l),s.unbind(p,"pswpTap click",e),s.unbind(o.scrollWrap,"pswpTap",A.onGlobalTap),s.unbind(o.scrollWrap,"mouseover",A.onMouseOver),m&&(s.unbind(document,m.eventK,A.updateFullscreen),m.isFullscreen()&&(I.hideAnimationDuration=0,m.exit()),m=null)}),x("destroy",function(){I.captionEl&&(h&&p.removeChild(h),s.removeClass(f,"pswp__caption--empty")),v&&(v.children[0].onclick=null),s.removeClass(p,"pswp__ui--over-close"),s.addClass(p,"pswp__ui--hidden"),A.setIdle(!1)}),I.showAnimationDuration||s.removeClass(p,"pswp__ui--hidden"),x("initialZoomIn",function(){I.showAnimationDuration&&s.removeClass(p,"pswp__ui--hidden")}),x("initialZoomOut",function(){s.addClass(p,"pswp__ui--hidden")}),x("parseVerticalMargin",d),N(),I.shareEl&&g&&v&&(O=!0),n(),I.timeToIdle&&x("mouseUsed",function(){s.bind(document,"mousemove",l),s.bind(document,"mouseout",c),M=setInterval(function(){2===++R&&A.setIdle(!0)},I.timeToIdle/2)}),I.fullscreenEl&&!s.features.isOldAndroid&&((m=m||A.getFullscreenAPI())?(s.bind(document,m.eventK,A.updateFullscreen),A.updateFullscreen(),s.addClass(o.template,"pswp--supports-fs")):s.removeClass(o.template,"pswp--supports-fs")),I.preloaderEl&&(u(!0),x("beforeChange",function(){clearTimeout(E),E=setTimeout(function(){o.currItem&&o.currItem.loading?o.allowProgressiveImg()&&(!o.currItem.img||o.currItem.img.naturalWi
1dth)||u(!1):u(!0)},I.loadingIndicatorDelay)}),x("imageLoadComplete",function(e,t){o.currItem===t&&u(!0)}))},A.setIdle=function(e){F(p,"ui--idle",w=e)},A.update=function(){k=!(!D||!o.currItem||(A.updateIndexIndicator(),I.captionEl&&(I.addCaptionHTMLFn(o.currItem,f),F(f,"caption--empty",!o.currItem.title)),0)),O||i(),n()},A.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,s.getScrollY())},50),s[(m.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},A.updateIndexIndicator=function(){I.counterEl&&(t.innerHTML=o.getCurrentIndex()+1+I.indexIndicatorSep+I.getNumItemsFn())},A.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!L)if(e.detail&&"mouse"===e.detail.pointerType)r(t)?o.close():s.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?I.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint));else if(I.tapToToggleControls&&(D?A.hideControls():A.showControls()),I.tapToClose&&(s.hasClass(t,"pswp__img")||r(t)))return void o.close()},A.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;F(p,"ui--over-close",r(e))},A.hideControls=function(){s.addClass(p,"pswp__ui--hidden"),D=!1},A.showControls=function(){D=!0,k||A.update(),s.removeClass(p,"pswp__ui--hidden")},A.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},A.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){return y=I.closeOnScroll,I.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?o.template[this.enterK]():void o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return I.closeOnScroll=y,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(m,P,t,B){var p={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[i](t[r],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){p.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){p.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(p.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)if(t.hasOwnProperty(o)){if(n&&e.hasOwnProperty(o))continue;e[o]=t[o]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(p.features)return p.features;var e,t,n=p.createEl().style,o="",i={};i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,i.pointerEvent||(e=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&1<=(t=parseInt(t[1],10))&&t<8&&(i.isOldIOSPhone=!0),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(i.isOldAndroid=!0),i.androidVersion=t),i.isMobileOpera=/opera mini|o
1pera mobi/i.test(e));for(var r,a,s,l=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],u=0;u<4;u++){for(var o=c[u],d=0;d<3;d++)r=l[d],a=o+(o?r.charAt(0).toUpperCase()+r.slice(1):r),!i[r]&&a in n&&(i[r]=a);o&&!i.raf&&(o=o.toLowerCase(),i.raf=window[o+"RequestAnimationFrame"],i.raf)&&(i.caf=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"])}return i.raf||(s=0,i.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-s)),o=window.setTimeout(function(){e(t+n)},n);return s=t+n,o},i.caf=function(e){clearTimeout(e)}),i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,p.features=i}},f=(p.detectFeatures(),p.features.oldIE&&(p.bind=function(e,t,n,o){t=t.split(" ");for(var i,r=(o?"detach":"attach")+"Event",a=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(i=t[s])if("object"==typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=a;e[r]("on"+i,n["oldIE"+i])}else e[r]("on"+i,n)}),this),q=25,h={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};p.extend(h,B);function e(){return{x:0,y:0}}function z(e,t){p.extend(f,t.publicMethods),je.push(e)}function H(e){var t=F();return t-1<e?e-t:e<0?t+e:e}function r(e,t){return Ge[e]||(Ge[e]=[]),Ge[e].push(t)}function W(e,t,n,o){o===f.currItem.initialZoomLevel?n[e]=f.currItem.initialPosition[e]:(n[e]=Je(e,o),n[e]>t.min[e]?n[e]=t.min[e]:n[e]<t.max[e]&&(n[e]=t.max[e]))}function Z(e){var t="";h.escKey&&27===e.keyCode?t="close":h.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),!t||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,f[t]())}function U(e){e&&(Ae||Se||y||Ie)&&(e.preventDefault(),e.stopPropagation())}function j(){f.setScrollOffset(0,p.getScrollY())}function K(e){var t;"mousedown"===e.type&&0<e.button||(Jt?e.preventDefault():Le&&"mousedown"===e.type||(Dt(e,!0)&&e.preventDefault(),E("pointerDown"),pe&&((t=p.arraySearch(ht,e.pointerId,"id"))<0&&(t=ht.length),ht[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=qt(e)).length,c=null,ct(),l&&1!==e||(l=_e=!0,p.bind(window,ee,f),Te=Be=Ne=Ie=De=Ae=Me=Se=!1,Re=null,E("firstTouchStart",t),M(He,w),ze.x=ze.y=0,M(D,t[0]),M(ft,D),gt.x=b.x*We,vt=[{x:D.x,y:D.y}],Ce=be=T(),ot(v,!0),Lt(),Mt()),!u&&1<e&&!y&&!De&&(ne=v,u=Me=!(Se=!1),ze.y=ze.x=0,M(He,w),M(A,t[0]),M(pt,t[1]),Ft(A,pt,Et),Ct.x=Math.abs(Et.x)-w.x,Ct.y=Math.abs(Et.y)-w.y,Oe=It(A,pt))))}function Y(e){var t;e.preventDefault(),pe&&-1<(t=p.arraySearch(ht,e.pointerId,"id"))&&((t=ht[t]).x=e.pageX,t.y=e.pageY),l&&(t=qt(e),Re||Ae||u?c=t:O.x!==b.x*We?Re="h":(e=Math.abs(t[0].x-D.x)-Math.abs(t[0].y-D.y),Math.abs(e)>=mt&&(Re=0<e?"h":"v",c=t)))}function G(e){if(s.isOldAndroid){if(Le&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Le),Le=setTimeout(function(){Le=0},600))}var t;E("pointerUp"),Dt(e,!1)&&e.preventDefault(),pe&&-1<(r=p.arraySearch(ht,e.pointerId,"id"))&&(t=ht.splice(r,1)[0],navigator.msPointerEnabled&&(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type)||(t.type=e.pointerType||"mouse"));var n=(r=qt(e)).length;if(2===(n="mouseup"===e.type?0:n))return!(c=null);1===n&&M(ft,r[0]),0!==n||Re||y||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),E("touchRelease",e,t));var o,i,r=-1;if(0===n&&(l=!1,p.unbind(window,ee,f),Lt(),u?r=0:-1!==bt&&(r=T()-bt)),bt=1===n?T():-1,e=-1!==r&&r<150?"zoom":"swipe",u&&n<2&&(u=!1,1===n&&(e="zoomPointerUp"),E("zoomGestureEnded")),c=null,Ae||Se||y||Ie)if(ct(),(Ee=Ee||Wt()).calculateSwipeSpeed("x"),Ie)_t()<h.verticalDragRange?f.close():(o=w.y,i=Pe,ut("verticalDrag",0,1,300,p.easing.cubic.out,function(e){w.y=(f.currItem.initialPosition.y-o)*e+o,I((1-i)*e+i),L()}),E("onVerticalDrag",1));else{if((De||y)&&0===n){if(Ut(e,Ee))return;e="zoomPointerUp"}if(!y)return"swipe"!==e?void Kt():void(!De&&v>f.currItem.fitRatio&&Zt(Ee))}}var V,X,$,g,Q,J,ee,te,o,v,ne,oe,ie,re,ae,a,se,le,ce,ue,de,me,pe,i,fe,he,ge,ve,ye,we,s,xe,be,Ce,Ee,Te,Ie,Le,l,Me,Se,Ae,ke,De,c,u,Oe,d,Fe,y,Re,_e,Ne,Pe,Be,qe,ze=e(),He
1=e(),w=e(),x={},We=0,Ze={},b=e(),C=0,Ue=!0,je=[],Ke={},Ye=!1,Ge={},E=function(e){var t=Ge[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(f,n)}},T=function(){return(new Date).getTime()},I=function(e){Pe=e,f.bg.style.opacity=e*h.bgOpacity},Ve=function(e,t,n,o,i){(!Ye||i&&i!==f.currItem)&&(o/=(i||f.currItem).fitRatio),e[me]=oe+t+"px, "+n+"px"+ie+" scale("+o+")"},L=function(e){Fe&&(e&&(v>f.currItem.fitRatio?Ye||(cn(f.currItem,!1,!0),Ye=!0):Ye&&(cn(f.currItem),Ye=!1)),Ve(Fe,w.x,w.y,v))},Xe=function(e){e.container&&Ve(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},$e=function(e,t){t[me]=oe+e+"px, 0px"+ie},Qe=function(e,t){var n;!h.loop&&t&&(t=g+(b.x*We-e)/b.x,n=Math.round(e-O.x),t<0&&0<n||t>=F()-1&&n<0)&&(e=O.x+n*h.mainScrollEndFriction),O.x=e,$e(e,Q)},Je=function(e,t){var n=Ct[e]-Ze[e];return He[e]+ze[e]+n-t/ne*n},M=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},et=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},tt=null,nt=function(){tt&&(p.unbind(document,"mousemove",nt),p.addClass(m,"pswp--has_mouse"),h.mouseUsed=!0,E("mouseUsed")),tt=setTimeout(function(){tt=null},100)},ot=function(e,t){e=sn(f.currItem,x,e);return t&&(d=e),e},it=function(e){return(e=e||f.currItem).initialZoomLevel},rt=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},S={},at=0,st=function(e){S[e]&&(S[e].raf&&he(S[e].raf),at--,delete S[e])},lt=function(e){S[e]&&st(e),S[e]||(at++,S[e]={})},ct=function(){for(var e in S)S.hasOwnProperty(e)&&st(e)},ut=function(e,t,n,o,i,r,a){function s(){S[e]&&(l=T()-c,o<=l?(st(e),r(n),a&&a()):(r((n-t)*i(l/o)+t),S[e].raf=fe(s)))}var l,c=T();lt(e);s()},B={shout:E,listen:r,viewportSize:x,options:h,isMainScrollAnimating:function(){return y},getZoomLevel:function(){return v},getCurrentIndex:function(){return g},isDragging:function(){return l},isZooming:function(){return u},setScrollOffset:function(e,t){Ze.x=e,we=Ze.y=t,E("updateScrollOffset",Ze)},applyZoomPan:function(e,t,n,o){w.x=t,w.y=n,v=e,L(o)},init:function(){if(!V&&!X){f.framework=p,f.template=m,f.bg=p.getChildByClass(m,"pswp__bg"),ge=m.className,V=!0,s=p.detectFeatures(),fe=s.raf,he=s.caf,me=s.transform,ye=s.oldIE,f.scrollWrap=p.getChildByClass(m,"pswp__scroll-wrap"),f.container=p.getChildByClass(f.scrollWrap,"pswp__container"),Q=f.container.style,f.itemHolders=a=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],a[0].el.style.display=a[2].el.style.display="none",me?(t=s.perspective&&!i,oe="translate"+(t?"3d(":"("),ie=s.perspective?", 0px)":")"):(me="left",p.addClass(m,"pswp--ie"),$e=function(e,t){t.left=e+"px"},Xe=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,o=t*e.w,t=t*e.h;n.width=o+"px",n.height=t+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},L=function(){var e,t,n,o;Fe&&(e=Fe,n=(o=1<(t=f.currItem).fitRatio?1:t.fitRatio)*t.w,o=o*t.h,e.width=n+"px",e.height=o+"px",e.left=w.x+"px",e.top=w.y+"px")}),o={resize:f.updateSize,orientationchange:function(){clearTimeout(xe),xe=setTimeout(function(){x.x!==f.scrollWrap.clientWidth&&f.updateSize()},500)},scroll:j,keydown:Z,click:U};var e,t=s.isOldIOSPhone||s.isOldAndroid||s.isMobileOpera;for(s.animationName&&s.transform&&!t||(h.showAnimationDuration=h.hideAnimationDuration=0),e=0;e<je.length;e++)f["init"+je[e]]();P&&(f.ui=new P(f,p)).init(),E("firstUpdate"),g=g||h.index||0,(isNaN(g)||g<0||g>=F())&&(g=0),f.currItem=en(g),(s.isOldIOSPhone||s.isOldAndroid)&&(Ue=!1),m.setAttribute("aria-hidden","false"),h.modal&&(Ue?m.style.position="fixed":(m.style.position="absolute",m.style.top=p.getScrollY()+"px")),void 0===we&&(E("initialLayout"),we=ve=p.getScrollY());var n="pswp--open ";for(h.mainClass&&(n+=h.mainClass+" "),h.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=i?"pswp--touch":"pswp--notouch")+(s.animationName?" pswp--css_animation":""))+(s.svg?" pswp--svg":""),p.addClass(m,n),f.updateSize(),J=-1,C=null,e=0;e<3;e++)$e((e+J)*b.x,a[e].el.style);ye||p.bind(f.scrollWrap,te,f),r("initialZoomInEnd",function(){f.setContent(a[0],g-1),f.setContent(a[2],g+1),a[0].el.style.display=a[2].el.style.display="block",h.focus&&m.focus(),p.bind(document,"keydown",f),s.transform&&p.bind(f.scrollWrap,"click",f),h.mouseUsed||p.bind(document,"mousemove",nt),p.bind(window,"resize scroll orientationchange",f),E("bindEvents")}),f.setContent(a[1],g),f.updateCurrItem(),E("afterInit"),Ue||(re=setInterval(function(){at||l||u||v!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),p.addClass(m,"pswp--visible")}var t},close:function(){V&&(X=!(V=!1),E("close"),p.unbind(window,"resize scroll orientationchange",f),p.unbind(window,"scroll",o.scroll),p.unbind(document,"keydown",f),p.unbind(document,"mousemove",nt),s.transform&&p.unbind(f.scrollWrap,"click",f),l&&p.unbind(window,ee,f),clearTimeout(xe),E("unbindEvents"),tn(f.currItem,
1null,!0,f.destroy))},destroy:function(){E("destroy"),Xt&&clearTimeout(Xt),m.setAttribute("aria-hidden","true"),m.className=ge,re&&clearInterval(re),p.unbind(f.scrollWrap,te,f),p.unbind(window,"scroll",f),Lt(),ct(),Ge=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),w.x=e,w.y=t,L()},handleEvent:function(e){e=e||window.event,o[e.type]&&o[e.type](e)},goTo:function(e){var t=(e=H(e))-g;C=t,g=e,f.currItem=en(g),We-=t,Qe(b.x*We),ct(),y=!1,f.updateCurrItem()},next:function(){f.goTo(g+1)},prev:function(){f.goTo(g-1)},updateCurrZoomItem:function(e){var t;e&&E("beforeChange",0),Fe=a[1].el.children.length&&(t=a[1].el.children[0],p.hasClass(t,"pswp__zoom-wrap"))?t.style:null,d=f.currItem.bounds,ne=v=f.currItem.initialZoomLevel,w.x=d.center.x,w.y=d.center.y,e&&E("afterChange")},invalidateCurrItems:function(){ae=!0;for(var e=0;e<3;e++)a[e].item&&(a[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==C){var t,n=Math.abs(C);if(!(e&&n<2)){f.currItem=en(g),Ye=!1,E("beforeChange",C),3<=n&&(J+=C+(0<C?-3:3),n=3);for(var o=0;o<n;o++)0<C?(t=a.shift(),a[2]=t,$e((++J+2)*b.x,t.el.style),f.setContent(t,g-n+o+1+1)):(t=a.pop(),a.unshift(t),$e(--J*b.x,t.el.style),f.setContent(t,g+n-o-1-1));Fe&&1===Math.abs(C)&&(e=en(se)).initialZoomLevel!==v&&(sn(e,x),cn(e),Xe(e)),C=0,f.updateCurrZoomItem(),se=g,E("afterChange")}}},updateSize:function(e){if(!Ue&&h.modal){var t=p.getScrollY();if(we!==t&&(m.style.top=t+"px",we=t),!e&&Ke.x===window.innerWidth&&Ke.y===window.innerHeight)return;Ke.x=window.innerWidth,Ke.y=window.innerHeight,m.style.height=Ke.y+"px"}if(x.x=f.scrollWrap.clientWidth,x.y=f.scrollWrap.clientHeight,j(),b.x=x.x+Math.round(x.x*h.spacing),b.y=x.y,Qe(b.x*We),E("beforeResize"),void 0!==J){for(var n,o,i,r=0;r<3;r++)n=a[r],$e((r+J)*b.x,n.el.style),i=g+r-1,h.loop&&2<F()&&(i=H(i)),(o=en(i))&&(ae||o.needsUpdate||!o.bounds)?(f.cleanSlide(o),f.setContent(n,i),1===r&&(f.currItem=o,f.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===n.index&&0<=i&&f.setContent(n,i),o&&o.container&&(sn(o,x),cn(o),Xe(o));ae=!1}ne=v=f.currItem.initialZoomLevel,(d=f.currItem.bounds)&&(w.x=d.center.x,w.y=d.center.y,L(!0)),E("resize")},zoomTo:function(t,e,n,o,i){e&&(ne=v,Ct.x=Math.abs(e.x)-w.x,Ct.y=Math.abs(e.y)-w.y,M(He,w));function r(e){1===e?(v=t,w.x=a.x,w.y=a.y):(v=(t-s)*e+s,w.x=(a.x-l.x)*e+l.x,w.y=(a.y-l.y)*e+l.y),i&&i(e),L(1===e)}var e=ot(t,!1),a={},s=(W("x",e,a,t),W("y",e,a,t),v),l={x:w.x,y:w.y};et(a);n?ut("customZoomTo",0,1,n,o||p.easing.sine.inOut,r):r(1)}},dt=30,mt=10,A={},pt={},k={},D={},ft={},ht=[],gt={},vt=[],yt={},wt=0,xt=e(),bt=0,O=e(),Ct=e(),Et=e(),Tt=function(e,t){return e.x===t.x&&e.y===t.y},It=function(e,t){return yt.x=Math.abs(e.x-t.x),yt.y=Math.abs(e.y-t.y),Math.sqrt(yt.x*yt.x+yt.y*yt.y)},Lt=function(){ke&&(he(ke),ke=null)},Mt=function(){l&&(ke=fe(Mt),Ht())},St=function(){return!("fit"===h.scaleMode&&v===f.currItem.initialZoomLevel)},At=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:At(e.parentNode,t))},kt={},Dt=function(e,t){return kt.prevent=!At(e.target,h.isClickableElement),E("preventDragEvent",e,t,kt),kt.prevent},Ot=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Ft=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Rt=function(e,t,n){var o;50<e-Ce&&((o=2<vt.length?vt.shift():{}).x=t,o.y=n,vt.push(o),Ce=e)},_t=function(){var e=w.y-f.currItem.initialPosition.y;return 1-Math.abs(e/(x.y/2))},Nt={},Pt={},Bt=[],qt=function(e){for(;0<Bt.length;)Bt.pop();return pe?(qe=0,ht.forEach(function(e){0===qe?Bt[0]=e:1===qe&&(Bt[1]=e),qe++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Bt[0]=Ot(e.touches[0],Nt),1<e.touches.length)&&(Bt[1]=Ot(e.touches[1],Pt)):(Nt.x=e.pageX,Nt.y=e.pageY,Nt.id="",Bt[0]=Nt),Bt},zt=function(e,t){var n,o,i,r=w[e]+t[e],a=0<t[e],s=O.x+t.x,l=O.x-gt.x,c=r>d.min[e]||r<d.max[e]?h.panEndFriction:1,r=w[e]+t[e]*c;return!h.allowPanToNext&&v!==f.currItem.initialZoomLevel||(Fe?"h"!==Re||"x"!==e||Se||(a?(r>d.min[e]&&(c=h.panEndFriction,d.min[e],n=d.min[e]-He[e]),(n<=0||l<0)&&1<F()?(i=s,l<0&&s>gt.x&&(i=gt.x)):d.min.x!==d.max.x&&(o=r)):(r<d.max[e]&&(c=h.panEndFriction,d.max[e],n=He[e]-d.max[e]),(n<=0||0<l)&&1<F()?(i=s,0<l&&s<gt.x&&(i=gt.x)):d.min.x!==d.max.x&&(o=r))):i=s,"x"!==e)?void(y||De||v>f.currItem.fitRatio&&(w[e]+=t[e]*c)):(void 0!==i&&(Qe(i,!0),De=i!==gt.x),d.min.x!==d.max.x&&(void 0!==o?w.x=o:De||(w.x+=t.x*c)),void 0!==i)},Ht=function(){var e,t,n,o,i,r;c&&0!==(e=c.length)&&(M(A,c[0]),k.x=A.x-D.x,k.y=A.y-D.y,u&&1<e?(D.x=A.x,D.y=A.y,!k.x&&!k.y&&Tt(c[1],pt)||(M(pt,c[1]),Se||(Se=!0,E("zoomGestureStarted")),e=It(A,pt),(t=jt(e))>f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(Be=!0),n=1,o=it(),i=rt(),t<o?h.pinchToClose&&!Be&&ne<=f.currItem.initialZoomLevel?(I(r=1-(o-t)/(o/1.2)),E("onPinchClose",r),Ne=!0):t=o-(n=1<(n=(o-t)/o)?1:n)*(o/3):i<t&&(t=i+(n=1<(n=(t-i)/(6*o))?1:n)*o),n<0&&(n=0),Ft(A,pt,xt),ze.x+=xt.x-Et.x,ze.y+=xt.y-Et.y,M(Et,xt),w.x=Je("x",t),w.y=Je("y",t),Te=v<t,v=t,L())):Re&&(_e&&(_e=!1,Math.abs(k.x)>=mt&&(k.x-=c[0].x-ft.x),Math.abs(k.y)>=mt)&&(k.y-=c[0].y-ft.y),D.x=A.x,D.y=A.y,0===k.x&&0===k.y||("v"===Re&&h.closeOnVerticalDrag&&!St()?(ze.y+=k.y,w.y+=k.y,r=_t(),Ie=!0,E("onVerticalDrag",r),I(r),L()):(Rt(T(),A.x,A.y),Ae=!0,d=f.currItem.bounds,zt("x",k)||(zt("y",k),et(w),L())))))},Wt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1<vt.length?(t=T()-Ce+50,vt[vt.length-2]):(t=T()-be,ft))[e],o.lastFlickOffset[e]=D[e]-n,o.lastFlickDist[e]=Math.abs(o.lastFlickOffset[e]),20<o.lastFlickDist[e]?o.lastFlickSpeed[e]=o.lastFlickOffset[e]/t:o.lastFlickSpeed[e]=0,Math.abs(o.lastFlickSpeed[e])<.1&&(o.lastFlickSpeed[e]=0),o.slowDownRatio[e]=.95,o.slowDownRatioReverse[e]=1-o.slowDownRatio[e],o.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){o.backAnimStarted[t]||(w[t]>d.min[t]?o.backAnimDestination[t]=d.min[t]:w[t]<d.max[t]&&(o.backAnimDestination[t]=d.max[t]),void 0!==o.backAnimDestination[t]&&(o.slowDownRatio[t]=.7,o.slowDownRatioReverse[t]=1-o.slowDownRatio[t],o.speedDecelerationRatioAbs[t]<.05)&&(o.lastFlickSpeed[t]=0,o.backAnimStarted[t]=!0,ut("bounceZoomPan"+t,w[t],o.backAnimDestination[t],e||300,p.easing.sine.out,function(e){w[t]=e,L()})))},calculateAnimOffset:function(e){o.backAnimStarted[e]||(o.speedDecelerationRatio[e]=o.speedDecelerationRatio[e]*(o.slowDownRatio[e]+o.slowDownRatioReverse[e]-o.slowDownRatioReverse[e]*o.timeDiff/10),o.speedDecelerationRatioAbs[e]=Math.abs(o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]),o.distanceOffset[e]=o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]*o.timeDiff,w[e]+=o.distanceOffset[e])},panAnimLoop:function(){S.zoomPan&&(S.zoomPan.raf=fe(o.panAnimLoop),o.now=T(),o.timeDiff=o.now-o.lastNow,o.lastNow=o.now,o.calculateAnimOffset("x"),o.calculateAnimOffset("y"),L(),o.calculateOverBoundsAnimOffset("x"),o.calculateOverBoundsAnimOffset("y"),o.speedDecelerationRatioAbs.x<.05)&&o.speedDecelerationRatioAbs.y<.05&&(w.x=Math.round(w.x),w.y=Math.round(w.y),L(),st("zoomPan"))}};return o},Zt=function(e){return e.calculateSwipeSpeed("y"),d=f.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(lt("zoomPan"),e.lastNow=T(),void e.panAnimLoop())},Ut=function(e,t){var n,o,i;y||(wt=g),"swipe"===e&&(e=D.x-ft.x,r=t.lastFlickDist.x<10,dt<e&&(r||20<t.lastFlickOffset.x)?o=-1:e<-dt&&(r||t.lastFlickOffset.x<-20)&&(o=1)),o&&((g+=o)<0?(g=h.loop?F()-1:0,i=!0):g>=F()&&(g=h.loop?0:F()-1,i=!0),i&&!h.loop||(C+=o,We-=o,n=!0));var e=b.x*We,r=Math.abs(e-O.x),a=n||e>O.x==0<t.lastFlickSpeed.x?(a=0<Math.abs(t.lastFlickSpeed.x)?r/Math.abs(t.lastFlickSpeed.x):333,a=Math.min(a,400),Math.max(a,250)):333;return wt===g&&(n=!1),y=!0,E("mainScrollAnimStart"),ut("mainScroll",O.x,e,a,p.easing.cubic.out,Qe,function(){ct(),y=!1,wt=-1,!n&&wt===g||f.updateCurrItem(),E("mainScrollAnimComplete")}),n&&f.updateCurrItem(!0),n},jt=function(e){return 1/Oe*e*ne},Kt=function(){var e=v,t=it(),n=rt();v<t?e=t:n<v&&(e=n);var o,i=Pe;return Ne&&!Te&&!Be&&v<t?f.close():(Ne&&(o=function(e){I((1-i)*e+i)}),f.zoomTo(e,0,200,p.easing.cubic.out,o)),!0};z("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,o,i){le=e+t,ce=e+n,ue=e+o,de=i?e+i:""}(pe=s.pointerEvent)&&s.touch&&(s.touch=!1),pe?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):s.touch?(e("touch","start","move","end","cancel"),i=!0):e("mouse","down","move","up"),ee=ce+" "+ue+" "+de,te=le,pe&&!i&&(i=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),f.likelyTouchDevice=i,o[le]=K,o[ce]=Y,o[ue]=G,de&&(o[de]=o[ue]),s.touch&&(te+=" mousedown",ee+=" mousemove mouseup",o.mousedown=o[le],o.mousemove=o[ce],o.mouseup=o[ue]),i||(h.allowPanToNext=!1)}}});function Yt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=p.createEl("pswp__img","img");n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src}function Gt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=h.errorMsg.replace("%url%",e.
1src),1)}function Vt(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&ln(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}}var Xt,$t,Qt,Jt,en,F,tn=function(r,e,a,t){function s(){st("initialZoom"),a?(f.template.removeAttribute("style"),f.bg.removeAttribute("style")):(I(1),e&&(e.style.display="block"),p.addClass(m,"pswp--animated-in"),E("initialZoom"+(a?"OutEnd":"InEnd"))),t&&t(),Jt=!1}Xt&&clearTimeout(Xt),Qt=Jt=!0,r.initialLayout?(l=r.initialLayout,r.initialLayout=null):l=h.getThumbBoundsFn&&h.getThumbBoundsFn(g);var l,c,u,d=a?h.hideAnimationDuration:h.showAnimationDuration;d&&l&&void 0!==l.x?(c=$,u=!f.currItem.src||f.currItem.loadError||h.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),a||(v=l.w/r.w,w.x=l.x,w.y=l.y-ve,f[u?"template":"bg"].style.opacity=.001,L()),lt("initialZoom"),a&&!c&&p.removeClass(m,"pswp--animated-in"),u&&(a?p[(c?"remove":"add")+"Class"](m,"pswp--animate_opacity"):setTimeout(function(){p.addClass(m,"pswp--animate_opacity")},30)),Xt=setTimeout(function(){var t,n,o,i,e;E("initialZoom"+(a?"Out":"In")),a?(t=l.w/r.w,n={x:w.x,y:w.y},o=v,i=Pe,e=function(e){1===e?(v=t,w.x=l.x,w.y=l.y-we):(v=(t-o)*e+o,w.x=(l.x-n.x)*e+n.x,w.y=(l.y-we-n.y)*e+n.y),L(),u?m.style.opacity=1-e:I(i-e*i)},c?ut("initialZoom",0,1,d,p.easing.cubic.out,e,s):(e(1),Xt=setTimeout(s,d+20))):(v=r.initialZoomLevel,M(w,r.initialPosition),L(),I(1),u?m.style.opacity=1:I(1),Xt=setTimeout(s,d+20))},a?25:90)):(E("initialZoom"+(a?"Out":"In")),v=r.initialZoomLevel,M(w,r.initialPosition),L(),m.style.opacity=a?0:1,I(1),d?setTimeout(function(){s()},d):s())},R={},nn=[],on={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return $t.length}},rn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},an=function(e,t,n){var o=e.bounds;o.center.x=Math.round((R.x-t)/2),o.center.y=Math.round((R.y-n)/2)+e.vGap.top,o.max.x=t>R.x?Math.round(R.x-t):o.center.x,o.max.y=n>R.y?Math.round(R.y-n)+e.vGap.top:o.center.y,o.min.x=t>R.x?0:o.center.x,o.min.y=n>R.y?e.vGap.top:o.center.y},sn=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),E("parseVerticalMargin",e)),R.x=t.x,R.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=R.x/e.w,i=R.y/e.h,e.fitRatio=t<i?t:i,"orig"===(t=h.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=rn())),n?(an(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0):(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=rn(),e.initialPosition=e.bounds.center,e.bounds)},ln=function(e,t,n,o,i,r){t.loadError||o&&(t.imageAppended=!0,cn(t,o,t===f.currItem&&Ye),n.appendChild(o),r)&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500)},cn=function(e,t,n){var o;e.src&&(t=t||e.container.lastChild,o=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=n+"px"),t.style.width=o+"px",t.style.height=n+"px")};z("Controller",{publicMethods:{lazyLoadItem:function(e){e=H(e);var t=en(e);t&&(!t.loaded&&!t.loading||ae)&&(E("gettingData",e,t),t.src)&&Yt(t)},initController:function(){p.extend(h,on,!0),f.items=$t=t,en=f.getItemAt,F=h.getNumItemsFn,h.loop,F()<3&&(h.loop=!1),r("beforeChange",function(e){for(var t=h.preload,n=null===e||0<=e,o=Math.min(t[0],F()),i=Math.min(t[1],F()),r=1;r<=(n?i:o);r++)f.lazyLoadItem(g+r);for(r=1;r<=(n?o:i);r++)f.lazyLoadItem(g-r)}),r("initialLayout",function(){f.currItem.initialLayout=h.getThumbBoundsFn&&h.getThumbBoundsFn(g)}),r("mainScrollAnimComplete",Vt),r("initialZoomInEnd",Vt),r("destroy",function(){for(var e,t=0;t<$t.length;t++)(e=$t[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);nn=null})},getItemAt:function(e){return 0<=e&&void 0!==$t[e]&&$t[e]},allowProgressiveImg:function(){return h.forceProgressiveLoading||!i||h.mou
1seUsed||1200<screen.width},setContent:function(t,n){h.loop&&(n=H(n));var e=f.getItemAt(t.index);e&&(e.container=null);var o,i,r,e=f.getItemAt(n);e?(E("gettingData",n,e),t.index=n,i=(t.item=e).container=p.createEl("pswp__zoom-wrap"),!e.src&&e.html&&(e.html.tagName?i.appendChild(e.html):i.innerHTML=e.html),Gt(e),sn(e,x),!e.src||e.loadError||e.loaded?e.src&&!e.loadError&&((o=p.createEl("pswp__img","img")).style.opacity=1,o.src=e.src,cn(e,o),ln(n,e,i,o,!0)):(e.loadComplete=function(e){if(V){if(t&&t.index===n){if(Gt(e,!0))return e.loadComplete=e.img=null,sn(e,x),Xe(e),void(t.index===g&&f.updateCurrZoomItem());e.imageAppended?!Jt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):s.transform&&(y||Jt)?nn.push({item:e,baseDiv:i,img:e.img,index:n,holder:t,clearPlaceholder:!0}):ln(n,e,i,e.img,y||Jt,!0)}e.loadComplete=null,e.img=null,E("imageLoadComplete",n,e)}},p.features.transform&&(r="pswp__img pswp__img--placeholder",r+=e.msrc?"":" pswp__img--placeholder--blank",r=p.createEl(r,e.msrc?"img":""),e.msrc&&(r.src=e.msrc),cn(e,r),i.appendChild(r),e.placeholder=r),e.loading||Yt(e),f.allowProgressiveImg()&&(!Qt&&s.transform?nn.push({item:e,baseDiv:i,img:e.img,index:n,holder:t}):ln(n,e,i,e.img,!0,!0))),Qt||n!==g?Xe(e):(Fe=i.style,tn(e,o||e.img)),t.el.innerHTML="",t.el.appendChild(i)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function un(e,t,n){var o=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(o)}var dn,_,mn={};z("Tap",{publicMethods:{initTap:function(){r("firstTouchStart",f.onTapStart),r("touchRelease",f.onTapRelease),r("destroy",function(){mn={},dn=null})},onTapStart:function(e){1<e.length&&(clearTimeout(dn),dn=null)},onTapRelease:function(e,t){var n,o,i;!t||Ae||Me||at||(n=t,dn&&(clearTimeout(dn),dn=null,o=n,i=mn,Math.abs(o.x-i.x)<q)&&Math.abs(o.y-i.y)<q?E("doubleTap",n):"mouse"===t.type?un(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||p.hasClass(e.target,"pswp__single-tap")?un(e,t):(M(mn,n),dn=setTimeout(function(){un(e,t),dn=null},300)))}}}),z("DesktopZoom",{publicMethods:{initDesktopZoom:function(){ye||(i?r("mouseUsed",function(){f.setupDesktopZoom()}):f.setupDesktopZoom(!0))},setupDesktopZoom:function(e){_={};var t="wheel mousewheel DOMMouseScroll";r("bindEvents",function(){p.bind(m,t,f.handleMouseWheel)}),r("unbindEvents",function(){_&&p.unbind(m,t,f.handleMouseWheel)}),f.mouseZoomedIn=!1;function n(){f.mouseZoomedIn&&(p.removeClass(m,"pswp--zoomed-in"),f.mouseZoomedIn=!1),v<1?p.addClass(m,"pswp--zoom-allowed"):p.removeClass(m,"pswp--zoom-allowed"),i()}var o,i=function(){o&&(p.removeClass(m,"pswp--dragging"),o=!1)};r("resize",n),r("afterChange",n),r("pointerDown",function(){f.mouseZoomedIn&&(o=!0,p.addClass(m,"pswp--dragging"))}),r("pointerUp",i),e||n()},handleMouseWheel:function(e){if(v<=f.currItem.fitRatio)return h.modal&&(!h.closeOnScroll||at||l?e.preventDefault():me&&2<Math.abs(e.deltaY)&&($=!0,f.close())),!0;if(e.stopPropagation(),_.x=0,"deltaX"in e)1===e.deltaMode?(_.x=18*e.deltaX,_.y=18*e.deltaY):(_.x=e.deltaX,_.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(_.x=-.16*e.wheelDeltaX),e.wheelDeltaY?_.y=-.16*e.wheelDeltaY:_.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;_.y=e.detail}ot(v,!0);var t=w.x-_.x,n=w.y-_.y;(h.modal||t<=d.min.x&&t>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:x.x/2+Ze.x,y:x.y/2+Ze.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=v===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),p[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function pn(){hn&&clearTimeout(hn),vn&&clearTimeout(vn)}function fn(){var e=Ln(),t={};if(!(e.length<5)){var n,o=e.split("&");for(r=0;r<o.length;r++)!o[r]||(n=o[r].split("=")).length<2||(t[n[0]]=n[1]);if(h.galleryPIDs){for(var i=t.pid,r=t.pid=0;r<$t.length;r++)if($t[r].pid===i){t.pid=r;break}}else t.pid=parseInt(t.pid,10)-1;t.pid<0&&(t.pid=0)}return t}var hn,gn,vn,yn,wn,xn,n,bn,Cn,En,N,Tn,In={history:!0,galleryUID:1},Ln=function(){return N.hash.substring(1)},Mn=function(){var e,t;
1vn&&clearTimeout(vn),at||l?vn=setTimeout(Mn,500):(yn?clearTimeout(gn):yn=!0,t=g+1,(e=en(g)).hasOwnProperty("pid")&&(t=e.pid),e=n+"&gid="+h.galleryUID+"&pid="+t,bn||-1===N.hash.indexOf(e)&&(En=!0),t=N.href.split("#")[0]+"#"+e,Tn?"#"+e!==window.location.hash&&history[bn?"replaceState":"pushState"]("",document.title,t):bn?N.replace(t):N.hash=e,bn=!0,gn=setTimeout(function(){yn=!1},60))};z("History",{publicMethods:{initHistory:function(){var e,t;p.extend(h,In,!0),h.history&&(N=window.location,bn=Cn=En=!1,n=Ln(),Tn="pushState"in history,-1<n.indexOf("gid=")&&(n=(n=n.split("&gid=")[0]).split("?gid=")[0]),r("afterChange",f.updateURL),r("unbindEvents",function(){p.unbind(window,"hashchange",f.onHashChange)}),e=function(){xn=!0,Cn||(En?history.back():n?N.hash=n:Tn?history.pushState("",document.title,N.pathname+N.search):N.hash=""),pn()},r("unbindEvents",function(){$&&e()}),r("destroy",function(){xn||e()}),r("firstUpdate",function(){g=fn().pid}),-1<(t=n.indexOf("pid="))&&"&"===(n=n.substring(0,t)).slice(-1)&&(n=n.slice(0,-1)),setTimeout(function(){V&&p.bind(window,"hashchange",f.onHashChange)},40))},onHashChange:function(){return Ln()===n?(Cn=!0,void f.close()):void(yn||(wn=!0,f.goTo(fn().pid),wn=!1))},updateURL:function(){pn(),wn||(bn?hn=setTimeout(Mn,800):Mn())}}}),p.extend(f,B)}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).reframe=t()}(this,function(){"use strict";function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}return function(e,i){return void 0===i&&(i="js-reframe"),("string"==typeof e?t(document.querySelectorAll(e)):"length"in e?t(e):[e]).forEach(function(e){var t,n,o;-1!==e.className.split(" ").indexOf(i)||-1<e.style.width.indexOf("%")||(t=e.getAttribute("height")||e.offsetHeight,n=e.getAttribute("width")||e.offsetWidth,t=("string"==typeof t?parseInt(t):t)/("string"==typeof n?parseInt(n):n)*100,(n=document.createElement("div")).className=i,(o=n.style).position="relative",o.width="100%",o.paddingTop=t+"%",(o=e.style).position="absolute",o.width="100%",o.height="100%",o.left="0",o.top="0",null!=(t=e.parentNode)&&t.insertBefore(n,e),null!=(o=e.parentNode)&&o.removeChild(e),n.appendChild(e))})}}),function(){var e=document.querySelector(".gh-burger");e&&e.addEventListener("click",function(){document.body.classList.contains("is-head-open")?document.body.classList.remove("is-head-open"):document.body.classList.add("is-head-open")})}(),lightbox(".kg-image-card > .kg-image[width][height], .kg-gallery-image > img"),reframe(document.querySelectorAll(['.gh-content iframe[src*="youtube.com"]','.gh-content iframe[src*="youtube-nocookie.com"]','.gh-content iframe[src*="player.vimeo.com"]','.gh-content iframe[src*="kickstarter.com"][src*="video.html"]',".gh-content object",".gh-content embed"].join(","))),dropdown(),function(){"use strict";let c=!1,u=window.innerWidth;function e(){if(!c||window.innerWidth!==u){u=window.innerWidth;{const i=document.querySelectorAll(".gh-head-menu li"),r=[],a={};i.forEach((e,t)=>{var n=e.querySelector("a");n&&(n.textContent.trim().startsWith("-")?(n=r.length-1,a[n]||(a[n]=[]),a[n]):r).push(e)}),r.forEach((e,t)=>{t=a[t];if(t&&!e.querySelector(".dropdown")&&!e.querySelector(".caret-down")){const o=document.createElement("ul");o.className="dropdown",t.forEach(e=>{var t,n=e.querySelector("a");n&&(t=n.textContent.replace(/^\s*-\s*/,"").trim(),n.innerHTML=t),o.appendChild(e)}),e.classList.add("has-dropdown");t=document.createRange().createContextualFragment(` 2 <svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" fill="currentColor" viewBox="0 0 256 256" class="icon caret-down"> 3 <rect width="256" height="256" fill="none"></rect><polyline points="208 96 128 176 48 96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></polyline> 4 </svg> 5 `);e.querySelector("a").appendChild(t),e.appendChild(o),e.addEventListener("mouseenter",()=>{e.classList.add("show-dropdown"),e.querySelector(".caret-down").classList.add("rotate")}),e.addEventListener("mouseleave",()=>{e.classList.remove("show-dropdown"),e.querySelector(".caret-down").classList.remove("rotate")})}})}var e=window.matchMedia("(max-width: 767px)"),t=document.querySelector(".gh-head-menu"),n=t?.querySelector(".nav-new");
5if(n)if(window.originalNavHTML?n.innerHTML=window.originalNavHTML:window.originalNavHTML=n.innerHTML.trim(),e.matches)n.querySelectorAll("li").forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"});else{for(var o=[];n.offsetWidth+64>t.offsetWidth&&n.lastElementChild;)o.unshift(n.lastElementChild),n.lastElementChild.remove();if(o.length){const s=document.createElement("button"),l=(s.setAttribute("class","nav-more-toggle gh-icon-btn"),s.setAttribute("aria-label","More"),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M21.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM13.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM5.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0z"></path></svg>',document.createElement("div"));l.setAttribute("class","gh-dropdown"),10<=o.length?(document.body.classList.add("is-dropdown-mega"),l.style.gridTemplateRows=`repeat(${Math.ceil(o.length/2)}, 1fr)`):document.body.classList.remove("is-dropdown-mega"),o.forEach(function(e){l.appendChild(e)}),s.appendChild(l),n.appendChild(s),document.body.classList.add("is-dropdown-loaded"),s.addEventListener("click",function(e){document.body.classList.toggle("is-dropdown-open"),e.stopPropagation()}),document.addEventListener("click",function(e){s.contains(e.target)||document.body.classList.remove("is-dropdown-open")})}else document.body.classList.add("is-dropdown-loaded")}c=!0}}e(),document.addEventListener("DOMContentLoaded",e);let t;window.addEventListener("resize",function(){c=!1,clearTimeout(t),t=setTimeout(e,100)}),document.addEventListener("click",function(e){"A"!==e.target.tagName||e.target.classList.contains("nav-more-toggle")||(c=!0)})}();var timeout,tns=function(){var e=window,Yo=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},e=window,Go=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(e){clearTimeout(e)};function Vo(e){for(var t,n,o,i=e||{},r=1,a=arguments.length;r<a;r++)if(null!==(t=arguments[r]))for(n in t)i!==(o=t[n])&&void 0!==o&&(i[n]=o);return i}function Xo(e){return 0<=["true","false"].indexOf(e)?JSON.parse(e):e}function $o(e,t,n,o){if(o)try{e.setItem(t,n)}catch(e){}return n}function Qo(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var n=document.documentElement;function Jo(e){var t="";return e.fake&&(t=n.style.overflow,e.style.background="",e.style.overflow=n.style.overflow="hidden",n.appendChild(e)),t}function ei(e,t){e.fake&&(e.remove(),n.style.overflow=t,n.offsetHeight)}function ti(e,t,n,o){"insertRule"in e?e.insertRule(t+"{"+n+"}",o):e.addRule(t,n,o)}function ni(e){return("insertRule"in e?e.cssRules:e.rules).length}function oi(e,t,n){for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o)}var e="classList"in document.createElement("_"),ii=e?function(e,t){return e.classList.contains(t)}:function(e,t){return 0<=e.className.indexOf(t)},ri=e?function(e,t){ii(e,t)||e.classList.add(t)}:function(e,t){ii(e,t)||(e.className+=" "+t)},ai=e?function(e,t){ii(e,t)&&e.classList.remove(t)}:function(e,t){ii(e,t)&&(e.className=e.className.replace(t,""))};function si(e,t){return e.hasAttribute(t)}function li(e,t){return e.getAttribute(t)}function r(e){return void 0!==e.item}function ci(e,t){if(e=r(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var o in t)e[n].setAttribute(o,t[o])}function ui(e,t){e=r(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,o=e.length;o--;)for(var i=n;i--;)e[o].removeAttribute(t[i])}function di(e){for(var t=[],n=0,o=e.length;n<o;n++)t.push(e[n]);return t}function mi(e,t){"none"!==e.style.display&&(e.style.display="none")}function pi(e,t){"none"===e.style.display&&(e.style.display="")}function fi(e){return"none"!==window.getComputedStyle(e).display}function hi(t){"string"==typeof t&&(n=[t],o=t.charAt(0).toUpperCase()+t.substr(1),["Webkit","Moz","ms","O"].forEach(function(e){"ms"===e&&"transform"!==t||n.push(e+o)}),t=n);for(var n,o,e=document.createElement("fakeelement"),i=(t.length,0);i<t.length;i++){var r=t[i];if(void 0!==e.style[r])return r}return!1}function gi(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}var t=!1;try{var o=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,o)}catch(e){}var a=!!t&&{passive:!0};
5function vi(e,t,n){for(var o in t){var i=0<=["touchstart","touchmove"].indexOf(o)&&!n&&a;e.addEventListener(o,t[o],i)}}function yi(e,t){for(var n in t){var o=0<=["touchstart","touchmove"].indexOf(n)&&a;e.removeEventListener(n,t[n],o)}}function wi(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(t,n){n.type=t,this.topics[t]&&this.topics[t].forEach(function(e){e(n,t)})}}}Object.keys||(Object.keys=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function xi(F){F=Vo({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},F||{});var R=document,o=window,i={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},t={};if(n=F.useLocalStorage){var r=navigator.userAgent,l=new Date;try{(t=o.localStorage)?(t.setItem(l,l),n=t.getItem(l)==l,t.removeItem(l)):n=!1,n||(t={})}catch(e){n=!1}n&&(t.tnsApp&&t.tnsApp!==r&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){t.removeItem(e)}),localStorage.tnsApp=r)}var c,u,m,p,f,h=t.tC?Xo(t.tC):$o(t,"tC",function(){var e=document,t=Qo(),n=Jo(t),o=e.createElement("div"),i=!1;t.appendChild(o);try{for(var r,a="(10px * 10)",s=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],l=0;l<3;l++)if(r=s[l],o.style.width=r,100===o.offsetWidth){i=r.replace(a,"");break}}catch(e){}return t.fake?ei(t,n):o.remove(),i}(),n),l=t.tPL?Xo(t.tPL):$o(t,"tPL",function(){var e=document,t=Qo(),n=Jo(t),o=e.createElement("div"),e=e.createElement("div"),i="";o.className="tns-t-subp2",e.className="tns-t-ct";for(var r=0;r<70;r++)i+="<div></div>";return e.innerHTML=i,o.appendChild(e),t.appendChild(o),e=Math.abs(o.getBoundingClientRect().left-e.children[67].getBoundingClientRect().left)<2,t.fake?ei(t,n):o.remove(),e}(),n),ce=t.tMQ?Xo(t.tMQ):$o(t,"tMQ",!(!window.matchMedia&&!window.msMatchMedia)||(r=document,u=Jo(c=Qo()),m=r.createElement("div"),p="@media all and (min-width:1px){.tns-mq-test{position:absolute}}",(f=r.createElement("style")).type="text/css",m.className="tns-mq-test",c.appendChild(f),c.appendChild(m),f.styleSheet?f.styleSheet.cssText=p:f.appendChild(r.createTextNode(p)),f=(window.getComputedStyle?window.getComputedStyle(m):m.currentStyle).position,c.fake?ei(c,u):m.remove(),"absolute"===f),n),g=t.tTf?Xo(t.tTf):$o(t,"tTf",hi("transform"),n),v=t.t3D?Xo(t.t3D):$o(t,"t3D",!!(p=g)&&!!window.getComputedStyle&&(c=document,m=Jo(u=Qo()),c=c.createElement("p"),f=9<p.length?"-"+p.slice(0,-9).toLowerCase()+"-":"",f+="transform",u.insertBefore(c,null),c.style[p]="translate3d(1px,1px,1px)",p=window.getComputedStyle(c).getPropertyValue(f),u.fake?ei(u,m):c.remove(),void 0!==p)&&0<p.length&&"none"!==p,n),d=t.tTDu?Xo(t.tTDu):$o(t,"tTDu",hi("transitionDuration"),n),y=t.tTDe?Xo(t.tTDe):$o(t,"tTDe",hi("transitionDelay"),n),w=t.tADu?Xo(t.tADu):$o(t,"tADu",hi("animationDuration"),n),x=t.tADe?Xo(t.tADe):$o(t,"tADe",hi("animationDelay"),n),b=t.tTE?Xo(t.tTE):$o(t,"tTE",gi(d,"Transition"),n),C=t.tAE?Xo(t.tAE):$o(t,"tAE",gi(w,"Animation"),n),E=o.console&&"function"==typeof o.console.warn,T=["container","controlsContainer","prevButton","
5nextButton","navContainer","autoplayButton"],I={};if(T.forEach(function(e){var t,n;"string"==typeof F[e]&&(t=F[e],n=R.querySelector(t),I[e]=t,n&&n.nodeName?F[e]=n:E&&console.warn("Can't find",F[e]))}),!(F.container.children.length<1)){var ue,de,L,me,_=F.responsive,pe=F.nested,N="carousel"===F.mode;if(_){0 in _&&(F=Vo(F,_[0]),delete _[0]);var M,S={};for(M in _){var A=_[M];S[M]="number"==typeof A?{items:A}:A}_=S,S=null}N||!function e(t){for(var n in t)N||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}(F),N||(F.axis="horizontal",F.slideBy="page",F.edgePadding=!1,ue=F.animateIn,de=F.animateOut,L=F.animateDelay,me=F.animateNormal);var k,fe,a,D,O,he,ge,P,ve,B,q,ye,we,xe,be,z,Ce,Ee,Te,Ie,Le,Me,Se,Ae,ke,De,Oe,H,Fe,Re,_e,Ne,Pe,Be,qe,ze,He,We,Ze,Ue,je,W="horizontal"===F.axis,s=R.createElement("div"),Ke=R.createElement("div"),Z=F.container,Ye=Z.parentNode,Ge=Z.outerHTML,U=Z.children,j=U.length,Ve=Mn(),Xe=!1,K=(_&&Kn(),N&&(Z.className+=" tns-vpfix"),F.autoWidth),Y=se("fixedWidth"),G=se("edgePadding"),V=se("gutter"),X=An(),$=se("center"),Q=K?1:Math.floor(se("items")),$e=se("slideBy"),Qe=F.viewportMax||F.fixedWidthViewportWidth,Je=se("arrowKeys"),et=se("speed"),tt=F.rewind,J=!tt&&F.loop,nt=se("autoHeight"),ot=se("controls"),it=se("controlsText"),rt=se("nav"),at=se("touch"),st=se("mouseDrag"),ee=se("autoplay"),lt=se("autoplayTimeout"),ct=se("autoplayText"),ut=se("autoplayHoverPause"),dt=se("autoplayResetOnVisibility"),te=(n=null,he=se("nonce"),ge=document.createElement("style"),n&&ge.setAttribute("media",n),he&&ge.setAttribute("nonce",he),document.querySelector("head").appendChild(ge),ge.sheet||ge.styleSheet),mt=F.lazyload,pt=F.lazyloadSelector,ft=[],ne=J?(n=function(){{if(K||Y&&!Qe)return j-1;var e=Y?"fixedWidth":"items",t=[];if((Y||F[e]<j)&&t.push(F[e]),_)for(var n in _){n=_[n][e];n&&(Y||n<j)&&t.push(n)}return t.length||t.push(0),Math.ceil(Y?Qe/Math.min.apply(null,t):Math.max.apply(null,t))}}(),he=N?Math.ceil((5*n-j)/2):4*n-j,he=Math.max(n,he),kn("edgePadding")?he+1:he):0,oe=N?j+2*ne:j+ne,ht=!(!Y&&!K||J),gt=Y?wo():null,vt=!N||!J,yt=W?"left":"top",wt="",xt="",bt=Y?function(){return $&&!J?j-1:Math.ceil(-gt/(Y+V))}:K?function(){for(var e=0;e<oe;e++)if(a[e]>=-gt)return e}:function(){return $&&N&&!J?j-1:J||N?Math.max(0,oe-Math.ceil(Q)):oe-1},ie=Tn(se("startIndex")),Ct=ie,Et=(En(),0),Tt=K?null:bt(),It=F.preventActionWhenRunning,Lt=F.swipeAngle,Mt=!Lt||"?",St=!1,At=F.onInit,re=new wi,kt=" tns-slider tns-"+F.mode,ae=Z.id||(ge=window.tnsId,window.tnsId=ge?ge+1:1,"tns"+window.tnsId),Dt=se("disable"),Ot=!1,Ft=F.freezable,Rt=!(!Ft||K)&&jn(),_t=!1,Nt={click:So,keydown:function(e){e=No(e);var t=[i.LEFT,i.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?B.disabled||So(e,-1):q.disabled||So(e,1))}},Pt={click:function(e){if(St){if(It)return;Lo()}var t=Po(e=No(e));for(;t!==z&&!si(t,"data-nav");)t=t.parentNode;{var n,o;si(t,"data-nav")&&(n=Le=Number(li(t,"data-nav")),o=Y||K?n*j/Te:n*Q,Mo(jt?n:Math.min(Math.ceil(o),j-1),e),Me===n)&&(Ne&&Fo(),Le=-1)}},keydown:function(e){e=No(e);var t,n=R.activeElement;si(n,"data-nav")&&(t=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(e.keyCode),n=Number(li(n,"data-nav")),0<=t)&&(0===t?0<n&&_o(Ee[n-1]):1===t?n<Te-1&&_o(Ee[n+1]):Mo(Le=n,e))}},Bt={mouseover:function(){Ne&&(ko(),Pe=!0)},mouseout:function(){Pe&&(Ao(),Pe=!1)}},qt={visibilitychange:function(){R.hidden?Ne&&(ko(),qe=!0):qe&&(Ao(),qe=!1)}},zt={keydown:function(e){e=No(e);var t=[i.LEFT,i.RIGHT].indexOf(e.keyCode);0<=t&&So(e,0===t?-1:1)}},Ht={touchstart:Ho,touchmove:Wo,touchend:Zo,touchcancel:Zo},Wt={mousedown:Ho,mousemove:Wo,mouseup:Zo,mouseleave:Zo},Zt=kn("controls"),Ut=kn("nav"),jt=!!K||F.navAsThumbnails,Kt=kn("autoplay"),n=kn("touch"),Yt=kn("mouseDrag"),Gt="tns-slide-active",Vt="tns-slide-cloned",Xt="tns-complete",$t={load:function(e){to(Po(e))},error:function(e){!function(e){ri(e,"failed"),no(e)}(Po(e))}},Qt="force"===F.preventScrollOnTouch;if(Zt&&(P=F.controlsContainer,ve=F.controlsContainer?F.controlsContainer.outerHTML:"",B=F.prevButton,q=F.nextButton,ye=F.prevButton?F.prevButton.outerHTML:"",we=F.nextButton?F.nextButton.outerHTML:""),Ut&&(z=F.navContainer,Ce=F.navContainer?F.navContainer.outerHTML:"",Te=K?j:jo(),Ie=0,Le=-1,Me=Ln(),Se=Me,Ae="tns-nav-active",ke="Carousel Page ",De=" (Current Slide)"),Kt&&(Oe="forward"===F.autoplayDirection?1:-1,H=F.autoplayButton,Fe=F.autoplayButton?F.autoplayButton.outerHTML:"",Re=["<span class='tns-visually-hidden'>"," animation</span>"]),(n||Yt)&&(ze={},Ze=!(He={}),je=W?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y}),K||Cn(Dt||Rt),g&&(yt=g,wt="translate",xt=v?(wt+=W?"3d(":"3d(0px, ",W?", 0px, 0px)":", 0px)"):(wt+=W?"X(":"Y(",")")),N&&(Z.className=Z.className.replace("tns-vpfix","")),kn("gutter"),s.className="tns-outer",Ke.className="tns-inner",s.id=ae+"-ow",Ke.id=ae+"-iw",""===Z.id&&(Z.id=ae),kt=kt+(l||K?" tns-subpixel":" tns-no-subpixel")+(h?" tns-calc":" tns-no-calc"),K&&(kt+=" tns-autowidth"),kt+=" tns-"+F.axis,Z.className+=kt,(N?((k=R.createElement("div")).id=ae+"-mw",k.className="tns-ovh",s.appendChild(k),k):s).appendChild(Ke),nt&&((k||Ke).className+=" tns-ah"),Ye.insertBefore(s,Z),Ke.appendChild(Z),oi(U,function(e,t){ri(e,"tns-item"),e.id||(e.id=ae+"-item"+t),!N&&me&&ri(e,me),ci(e,{"aria-hidden":"true",tabindex:"-1"})}),ne){for(var Jt=R.createDocumentFragment(),en=R.createDocumentFragment(),tn=ne;tn--;){var nn=tn%j,on=U[nn].cloneNode(!0);ri(on,Vt),ui(on,"id"),en.insertBefore(on,en.firstChild),N&&(on=U[j-1-nn].cloneNode(!0),ri(on,Vt),ui(on,"id"),Jt.appendChild(on))}Z.insertBefore(Jt,Z.firstChild),Z.appendChild(en),U=Z.children}if(!N)for(var rn=ie,an=ie+Math.min(j,Q);rn<an;rn++){var sn=U[rn];sn.style.left=100*(rn-ie)/Q+"%",ri(sn,ue),ai(sn,me)}if(W&&(l||K?(ti(te,"#"+ae+" >
5 .tns-item","font-size:"+o.getComputedStyle(U[0]).fontSize+";",ni(te)),ti(te,"#"+ae,"font-size:0;",ni(te))):N&&oi(U,function(e,t){e.style.marginLeft=(e=t,h?h+"("+100*e+"% / "+oe+")":100*e/oe+"%")})),ce?(d&&(e=k&&F.autoHeight?Nn(F.speed):"",ti(te,"#"+ae+"-mw",e,ni(te))),e=Dn(F.edgePadding,F.gutter,F.fixedWidth,F.speed,F.autoHeight),ti(te,"#"+ae+"-iw",e,ni(te)),N&&(e=W&&!K?"width:"+On(F.fixedWidth,F.gutter,F.items)+";":"",d&&(e+=Nn(et)),ti(te,"#"+ae,e,ni(te))),e=W&&!K?Fn(F.fixedWidth,F.gutter,F.items):"",F.gutter&&(e+=Rn(F.gutter)),N||(d&&(e+=Nn(et)),w&&(e+=Pn(et)))):(N&&nt&&(k.style[d]=et/1e3+"s"),Ke.style.cssText=Dn(G,V,Y,nt),N&&W&&!K&&(Z.style.width=On(Y,V,Q)),e=W&&!K?Fn(Y,V,Q):"",V&&(e+=Rn(V))),e&&ti(te,"#"+ae+" > .tns-item",e,ni(te)),_&&ce)for(var ln in _){ln=parseInt(ln);var cn=_[ln],e="",un="",dn="",mn="",pn="",fn=K?null:se("items",ln),hn=se("fixedWidth",ln),gn=se("speed",ln),vn=se("edgePadding",ln),yn=se("autoHeight",ln),wn=se("gutter",ln);d&&k&&se("autoHeight",ln)&&"speed"in cn&&(un="#"+ae+"-mw{"+Nn(gn)+"}"),("edgePadding"in cn||"gutter"in cn)&&(dn="#"+ae+"-iw{"+Dn(vn,wn,hn,gn,yn)+"}"),N&&W&&!K&&("fixedWidth"in cn||"items"in cn||Y&&"gutter"in cn)&&(mn="width:"+On(hn,wn,fn)+";"),d&&"speed"in cn&&(mn+=Nn(gn)),mn=mn&&"#"+ae+"{"+mn+"}",("fixedWidth"in cn||Y&&"gutter"in cn||!N&&"items"in cn)&&(pn+=Fn(hn,wn,fn)),"gutter"in cn&&(pn+=Rn(wn)),!N&&"speed"in cn&&(d&&(pn+=Nn(gn)),w)&&(pn+=Pn(gn)),(e=un+dn+mn+(pn=pn&&"#"+ae+" > .tns-item{"+pn+"}"))&&te.insertRule("@media (min-width: "+ln/16+"em) {"+e+"}",te.cssRules.length)}Bn();var xn=J?N?function(){var e=Et,t=Tt;e+=$e,t-=$e,G?(e+=1,--t):Y&&(X+V)%(Y+V)&&--t,ne&&(t<ie?ie-=j:ie<e&&(ie+=j))}:function(){if(Tt<ie)for(;Et+j<=ie;)ie-=j;else if(ie<Et)for(;ie<=Tt-j;)ie+=j}:function(){ie=Math.max(Et,Math.min(Tt,ie))},bn=N?function(){var t,n,o,i,e,r,a,s,l,c,u;vo(Z,""),d||!et?(Co(),et&&fi(Z)||Lo()):(t=Z,n=yt,o=wt,i=xt,e=xo(),r=et,a=Lo,s=Math.min(r,10),l=0<=e.indexOf("%")?"%":"px",e=e.replace(l,""),c=Number(t.style[n].replace(o,"").replace(i,"").replace(l,"")),u=(e-c)/r*s,setTimeout(function e(){r-=s;c+=u;t.style[n]=o+c+l+i;0<r?setTimeout(e,s):a()},s)),W||Uo()}:function(){ft=[];var e={};e[b]=e[C]=Lo,yi(U[Ct],e),vi(U[ie],e),Eo(Ct,ue,de,!0),Eo(ie,me,ue),b&&C&&et&&fi(Z)||Lo()};return{version:"2.9.3",getInfo:le,events:re,goTo:Mo,play:function(){ee&&!Ne&&(Oo(),Be=!1)},pause:function(){Ne&&(Fo(),Be=!0)},isOn:Xe,updateSliderHeight:lo,refresh:Bn,destroy:function(){te.disabled=!0,te.ownerNode&&te.ownerNode.remove(),yi(o,{resize:Zn}),Je&&yi(R,zt),P&&yi(P,Nt),z&&yi(z,Pt),yi(Z,Bt),yi(Z,qt),H&&yi(H,{click:Ro}),ee&&clearInterval(_e),N&&b&&((e={})[b]=Lo,yi(Z,e)),at&&yi(Z,Ht),st&&yi(Z,Wt);var e,t,r=[Ge,ve,ye,we,Ce,Fe];for(t in T.forEach(function(e,t){var n,o,i="container"===e?s:F[e];"object"==typeof i&&i&&(n=i.previousElementSibling||!1,o=i.parentNode,i.outerHTML=r[t],F[e]=n?n.nextElementSibling:o.firstElementChild)}),T=ue=de=L=me=W=s=Ke=Z=Ye=Ge=U=j=fe=Ve=K=Y=G=V=X=Q=$e=Qe=Je=et=tt=J=nt=te=mt=a=ft=ne=oe=ht=gt=vt=yt=wt=xt=bt=ie=Ct=Et=Tt=Lt=Mt=St=At=re=kt=ae=Dt=Ot=Ft=Rt=_t=Nt=Pt=Bt=qt=zt=Ht=Wt=Zt=Ut=jt=Kt=Yt=Gt=Xt=$t=D=ot=it=P=ve=B=q=xe=be=rt=z=Ce=Ee=Te=Ie=Le=Me=Se=Ae=ke=De=ee=lt=Oe=ct=ut=H=Fe=dt=Re=_e=Ne=Pe=Be=qe=ze=He=We=Ze=Ue=je=at=st=null,this)"rebuild"!==t&&(this[t]=null);Xe=!1},rebuild:function(){return xi(Vo(F,I))}}}function Cn(e){e&&(ot=rt=at=st=Je=ee=ut=dt=!1)}function En(){for(var e=N?ie-ne:ie;e<0;)e+=j;return e%j+1}function Tn(e){return e=e?Math.max(0,Math.min(J?j-1:j-Q,e)):0,N?e+ne:e}function In(e){for(null==e&&(e=ie),N&&(e-=ne);e<0;)e+=j;return Math.floor(e%j)}function Ln(){var e=In(),e=jt?e:Y||K?Math.ceil((e+1)*Te/j-1):Math.floor(e/Q);return e=!J&&N&&ie===Tt?Te-1:e}function Mn(){return o.innerWidth||R.documentElement.clientWidth||R.body.clientWidth}function Sn(e){return"top"===e?"afterbegin":"beforeend"}function An(){var e=G?2*G-V:0;return function e(t){if(null!=t){var n,o=R.createElement("div");if(t.appendChild(o),n=(n=o.getBoundingClientRect()).right-n.left,o.remove(),n)return n;null!==t.parentNode.parentNode&&e(t.parentNode)}}(Ye)-e}function kn(e){if(F[e])return!0;if(_)for(var t in _)if(_[t][e])return!0;return!1}function se(e,t){if(null==t&&(t=Ve),"items"===e&&Y)return Math.floor((X+V)/(Y+V))||1;var n=F[e];if(_)for(var o in _)t>=parseInt(o)&&e in _[o]&&(n=_[o][e]);return"slideBy"===e&&"page"===n&&(n=se("items")),n=N||"slideBy"!==e&&"items"!==e?n:Math.floor(n)}function Dn(e,t,n,o,i){var r,a="";return void 0!==e?(r=e,t&&(r-=t),a=W?"margin: 0 "+r+"px 0 "+e+"px;":"margin: "+e+"px 0 "+r+"px 0;"):t&&!n&&(e="-"+t+"px",a="margin: 0 "+(W?e+" 0 0":"0 "+e+" 0")+";"),!N&&i&&d&&o&&(a+=Nn(o)),a}function On(e,t,n){return e?(e+t)*oe+"px":h?h+"("+100*oe+"% / "+n+")":100*oe/n+"%"}function Fn(e,t,n){return t="width:"+(t=e?e+t+"px":(N||(n=Math.floor(n)),e=N?oe:n,h?h+"(100% / "+e+")":100/e+"%")),"inner"!==pe?t+";":t+" !important;"}function Rn(e){return!1!==e?(W?"padding-":"margin-")+(W?"right":"bottom")+": "+e+"px;":""}function _n(e,t){e=e.substring(0,e.length-t).toLowerCase();return e=e&&"-"+e+"-"}function Nn(e){return _n(d,18)+"transition-duration:"+e/1e3+"s;"}function Pn(e){return _n(w,17)+"animation-duration:"+e/1e3+"s;"}function Bn(){var e;kn("autoHeight")||K||!W?(oi(e=Z.querySelectorAll("img"),function(e){var t=e.src;mt||(t&&t.indexOf("data:image")<0?(e.src="",vi(e,$t),ri(e,"loading"),e.src=t):to(e))}),Yo(function(){ro(di(e),function(){D=!0})}),kn("autoHeight")&&(e=oo(ie,Math.min(ie+Q-1,oe-1))),mt?qn():Yo(function(){ro(di(e),qn)})):(N&&bo(),Hn(),Wn())}function qn(){var o;(K&&1<j?(o=J?ie:j-1,function e(){var t=U[o].getBoundingClientRect().left,n=U[o-1].getBoundingClientRect().right;Math.abs(t-n)<=1?zn():setTimeout(function(){e()},16)}):zn)()}function zn(){W&&!K||(co(),K?(gt=wo(),Ft&&(Rt=jn()),Tt=bt(),Cn(Dt||Rt)):Uo()),N&&bo(),Hn(),Wn()}function Hn(){if(uo(),s.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-l
5ive="polite" aria-atomic="true">slide <span class="current">'+Qn()+"</span> of "+j+"</div>"),O=s.querySelector(".tns-liveregion .current"),Kt&&(e=ee?"stop":"start",H?ci(H,{"data-action":e}):F.autoplayButtonOutput&&(s.insertAdjacentHTML(Sn(F.autoplayPosition),'<button type="button" data-action="'+e+'">'+Re[0]+e+Re[1]+ct[0]+"</button>"),H=s.querySelector("[data-action]")),H&&vi(H,{click:Ro}),ee)&&(Oo(),ut&&vi(Z,Bt),dt)&&vi(Z,qt),Ut){var e,t;if(z)ci(z,{"aria-label":"Carousel Pagination"}),oi(Ee=z.children,function(e,t){ci(e,{"data-nav":t,tabindex:"-1","aria-label":ke+(t+1),"aria-controls":ae})});else{for(var n="",o=jt?"":'style="display:none"',i=0;i<j;i++)n+='<button type="button" data-nav="'+i+'" tabindex="-1" aria-controls="'+ae+'" '+o+' aria-label="'+ke+(i+1)+'"></button>';s.insertAdjacentHTML(Sn(F.navPosition),n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>"),z=s.querySelector(".tns-nav"),Ee=z.children}Ko(),d&&(e=d.substring(0,d.length-18).toLowerCase(),t="transition: all "+et/1e3+"s",ti(te,"[aria-controls^="+ae+"-item]",t=e?"-"+e+"-"+t:t,ni(te))),ci(Ee[Me],{"aria-label":ke+(Me+1)+De}),ui(Ee[Me],"tabindex"),ri(Ee[Me],Ae),vi(z,Pt)}Zt&&(P||B&&q||(s.insertAdjacentHTML(Sn(F.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+ae+'">'+it[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+ae+'">'+it[1]+"</button></div>"),P=s.querySelector(".tns-controls")),B&&q||(B=P.children[0],q=P.children[1]),F.controlsContainer&&ci(P,{"aria-label":"Carousel Navigation",tabindex:"0"}),(F.controlsContainer||F.prevButton&&F.nextButton)&&ci([B,q],{"aria-controls":ae,tabindex:"-1"}),(F.controlsContainer||F.prevButton&&F.nextButton)&&(ci(B,{"data-controls":"prev"}),ci(q,{"data-controls":"next"})),xe=po(B),be=po(q),go(),P?vi(P,Nt):(vi(B,Nt),vi(q,Nt))),Yn()}function Wn(){var e;N&&b&&((e={})[b]=Lo,vi(Z,e)),at&&vi(Z,Ht,F.preventScrollOnTouch),st&&vi(Z,Wt),Je&&vi(R,zt),"inner"===pe?re.on("outerResized",function(){Un(),re.emit("innerLoaded",le())}):(_||Y||K||nt||!W)&&vi(o,{resize:Zn}),nt&&("outer"===pe?re.on("innerLoaded",io):Dt||io()),eo(),Dt?Xn():Rt&&Vn(),re.on("indexChanged",ao),"inner"===pe&&re.emit("innerLoaded",le()),"function"==typeof At&&At(le()),Xe=!0}function Zn(e){Yo(function(){Un(No(e))})}function Un(e){if(Xe){"outer"===pe&&re.emit("outerResized",le(e)),Ve=Mn();var t,n=fe,o=!1;_&&(Kn(),t=n!==fe)&&re.emit("newBreakpointStart",le(e));var i,r,a,s,l,c,u,d,n=Q,m=Dt,p=Rt,f=Je,h=ot,g=rt,v=at,y=st,w=ee,x=ut,b=
5dt,C=ie;if(t&&(r=Y,a=nt,s=it,l=$,c=ct,ce||(u=V,d=G)),Je=se("arrowKeys"),ot=se("controls"),rt=se("nav"),at=se("touch"),$=se("center"),st=se("mouseDrag"),ee=se("autoplay"),ut=se("autoplayHoverPause"),dt=se("autoplayResetOnVisibility"),t&&(Dt=se("disable"),Y=se("fixedWidth"),et=se("speed"),nt=se("autoHeight"),it=se("controlsText"),ct=se("autoplayText"),lt=se("autoplayTimeout"),ce||(G=se("edgePadding"),V=se("gutter"))),Cn(Dt),X=An(),W&&!K||Dt||(co(),W)||(Uo(),o=!0),(Y||K)&&(gt=wo(),Tt=bt()),(t||Y)&&(Q=se("items"),$e=se("slideBy"),i=Q!==n)&&(Y||K||(Tt=bt()),xn()),t&&Dt!==m)if(Dt)Xn();else if(Ot){if(te.disabled=!1,Z.className+=kt,bo(),J)for(var E=ne;E--;)N&&pi(U[E]),pi(U[oe-E-1]);if(!N)for(var T=ie,I=ie+j;T<I;T++){var L=U[T],M=T<ie+Q?ue:me;L.style.left=100*(T-ie)/Q+"%",ri(L,M)}Gn(),Ot=!1}if(Ft&&(t||Y||K)&&(Rt=jn())!==p)if(Rt)Co(xo(Tn(0))),Vn();else{if(_t){if(G&&ce&&(Ke.style.margin=""),ne)for(var S="tns-transparent",A=ne;A--;)N&&ai(U[A],S),ai(U[oe-A-1],S);Gn(),_t=!1}o=!0}if(Cn(Dt||Rt),ee||(ut=dt=!1),Je!==f&&(Je?vi:yi)(R,zt),ot!==h&&(ot?P?pi(P):(B&&pi(B),q&&pi(q)):P?mi(P):(B&&mi(B),q&&mi(q))),rt!==g&&(rt?(pi(z),Ko()):mi(z)),at!==v&&(at?vi(Z,Ht,F.preventScrollOnTouch):yi(Z,Ht)),st!==y&&(st?vi:yi)(Z,Wt),ee!==w&&(ee?(H&&pi(H),Ne||Be||Oo()):(H&&mi(H),Ne&&Fo())),ut!==x&&(ut?vi:yi)(Z,Bt),dt!==b&&(dt?vi:yi)(R,qt),t?(Y===r&&$===l||(o=!0),nt===a||nt||(Ke.style.height=""),ot&&it!==s&&(B.innerHTML=it[0],q.innerHTML=it[1]),H&&ct!==c&&(n=ee?1:0,p=(m=H.innerHTML).length-c[n].length,m.substring(p)===c[n])&&(H.innerHTML=m.substring(0,p)+ct[n])):$&&(Y||K)&&(o=!0),(i||Y&&!K)&&(Te=jo(),Ko()),(f=ie!==C)?(re.emit("indexChanged",le()),o=!0):i?f||ao():(Y||K)&&(eo(),uo(),$n()),i&&!N){for(var k=ie+Math.min(j,Q),D=oe;D--;){var O=U[D];ie<=D&&D<k?(ri(O,"tns-moving"),O.style.left=100*(D-ie)/Q+"%",ri(O,ue),ai(O,me)):O.style.left&&(O.style.left="",ri(O,me),ai(O,ue)),ai(O,de)}setTimeout(function(){oi(U,function(e){ai(e,"tns-moving")})},300)}Dt||Rt||(t&&!ce&&(G===d&&V===u||(Ke.style.cssText=Dn(G,V,Y,et,nt)),W)&&(N&&(Z.style.width=On(Y,V,Q)),h=Fn(Y,V,Q)+Rn(V),v=ni(g=te)-1,"deleteRule"in g?g.deleteRule(v):g.removeRule(v),ti(te,"#"+ae+" > .tns-item",h,ni(te))),nt&&io(),o&&(bo(),Ct=ie)),t&&re.emit("newBreakpointEnd",le(e))}}function jn(){var e,t;return Y||K?(e=Y?(Y+V)*j:a[j],t=G?X+2*G:X+V,$&&(t-=Y?(X-Y)/2:(X-(a[ie+1]-a[ie]-V))/2),e<=t):j<=($?Q-(Q-1)/2:Q)}function Kn(){for(var e in fe=0,_)(e=parseInt(e))<=Ve&&(fe=e)}function Yn(){!ee&&H&&mi(H),!rt&&z&&mi(z),ot||(P?mi(P):(B&&mi(B),q&&mi(q)))}function Gn(){ee&&H&&pi(H),rt&&z&&pi(z),ot&&(P?pi(P):(B&&pi(B),q&&pi(q)))}function Vn(){if(!_t){if(G&&(Ke.style.margin="0px"),ne)for(var e="tns-transparent",t=ne;t--;)N&&ri(U[t],e),ri(U[oe-t-1],e);Yn(),_t=!0}}function Xn(){if(!Ot){if(te.disabled=!0,Z.className=Z.className.replace(kt.substring(1),""),ui(Z,["style"]),J)for(var e=ne;e--;)N&&mi(U[e]),mi(U[oe-e-1]);if(W&&N||ui(Ke,["style"]),!N)for(var t=ie,n=ie+j;t<n;t++){var o=U[t];ui(o,["style"]),ai(o,ue),ai(o,me)}Yn(),Ot=!0}}function $n(){var e=Qn();O.innerHTML!==e&&(O.innerHTML=e)}function Qn(){var e=Jn(),t=e[0]+1,e=e[1]+1;return t===e?t+"":t+" to "+e}function Jn(e){null==e&&(e=xo());var n,o,i,r=ie;return $||G?(K||Y)&&(n=-(parseFloat(e)+G),o=n+X+2*G):K&&(n=a[ie],o=n+X),K?a.forEach(function(e,t){t<oe&&(($||G)&&e<=n+.5&&(r=t),.5<=o-e)&&(i=t)}):(i=Y?(e=Y+V,$||G?(r=Math.floor(n/e),Math.ceil(o/e-1)):r+Math.ceil(X/e)-1):$||G?(e=Q-1,i=$?(r-=e/2,ie+e/2):ie+e,G&&(r-=e=G*Q/X,i+=e),r=Math.floor(r),Math.ceil(i)):r+Q-1,r=Math.max(r,0),i=Math.min(i,oe-1)),[r,i]}function eo(){var e;mt&&!Dt&&((e=Jn()).push(pt),oo.apply(null,e).forEach(function(e){var t;ii(e,Xt)||((t={})[b]=function(e){e.stopPropagation()},vi(e,t),vi(e,$t),e.src=li(e,"data-src"),(t=li(e,"data-srcset"))&&(e.srcset=t),ri(e,"loading"))}))}function to(e){ri(e,"loaded"),no(e)}function no(e){ri(e,Xt),ai(e,"loading"),yi(e,$t)}function oo(e,t,n){var o=[];for(n=n||"img";e<=t;)oi(U[e].querySelectorAll(n),function(e){o.push(e)}),e++;return o}function io(){var e=oo.apply(null,Jn());Yo(function(){ro(e,lo)})}function ro(n,e){return!D&&(n.forEach(function(e,t){!mt&&e.complete&&no(e),ii(e,Xt)&&n.splice(t,1)}),n.length)?void Yo(function(){ro(n,e)}):e()}function ao(){var e,t;eo(),uo(),$n(),go(),rt&&(Me=0<=Le?Le:Ln(),Le=-1,Me!==Se)&&(e=Ee[Se],t=Ee[Me],ci(e,{tabindex:"-1","aria-label":ke+(Se+1)}),ai(e,Ae),ci(t,{"aria-label":ke+(Me+1)+De}),ui(t,"tabindex"),ri(t,Ae),Se=Me)}function so(e,t){for(var n=[],o=e,i=Math.min(e+t,oe);o<i;o++)n.push(U[o].offsetHeight);return Math.max.apply(null,n)}function lo(){var e=nt?so(ie,Q):so(ne,j),t=k||Ke;t.style.height!==e&&(t.style.height=e+"px")}function co(){a=[0];var n=W?"left":"top",o=W?"right":"bottom",i=U[0].getBoundingClientRect()[n];oi(U,function(e,t){t&&a.push(e.getBoundingClientRect()[n]-i),t===oe-1&&a.push(e.getBoundingClientRect()[o]-i)})}function uo(){var e=Jn(),n=e[0],o=e[1];oi(U,function(e,t){n<=t&&t<=o?si(e,"aria-hidden")&&(ui(e,["aria-hidden","tabindex"]),ri(e,Gt)):si(e,"aria-hidden")||(ci(e,{"aria-hidden":"true",tabindex:"-1"}),ai(e,Gt))})}
5function mo(e){return e.nodeName.toLowerCase()}function po(e){return"button"===mo(e)}function fo(e){return"true"===e.getAttribute("aria-disabled")}function ho(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function go(){var e,t,n,o;!ot||tt||J||(e=xe?B.disabled:fo(B),t=be?q.disabled:fo(q),o=!tt&&Tt<=ie,(n=ie<=Et)&&!e&&ho(xe,B,!0),!n&&e&&ho(xe,B,!1),o&&!t&&ho(be,q,!0),!o&&t&&ho(be,q,!1))}function vo(e,t){d&&(e.style[d]=t)}function yo(e){return null==e&&(e=ie),K?(X-(G?V:0)-(a[e+1]-a[e]-V))/2:Y?(X-Y)/2:(Q-1)/2}function wo(){var e=X+(G?V:0)-(Y?(Y+V)*oe:a[oe]);return e=0<(e=$&&!J?Y?-(Y+V)*(oe-1)-yo():yo(oe-1)-a[oe-1]:e)?0:e}function xo(e){var t,n;return null==e&&(e=ie),W&&!K?Y?(t=-(Y+V)*e,$&&(t+=yo())):(n=g?oe:Q,$&&(e-=yo()),t=100*-e/n):(t=-a[e],$&&K&&(t+=yo())),ht&&(t=Math.max(t,gt)),t+=!W||K||Y?"px":"%"}function bo(e){vo(Z,"0s"),Co(e)}function Co(e){null==e&&(e=xo()),Z.style[yt]=wt+e+xt}function Eo(e,t,n,o){var i=e+Q;J||(i=Math.min(i,oe));for(var r=e;r<i;r++){var a=U[r];o||(a.style.left=100*(r-ie)/Q+"%"),L&&y&&(a.style[y]=a.style[x]=L*(r-e)/1e3+"s"),ai(a,t),ri(a,n),o&&ft.push(a)}}function To(e,t){vt&&xn(),ie===Ct&&!t||(re.emit("indexChanged",le()),re.emit("transitionStart",le()),nt&&io(),Ne&&e&&0<=["click","keydown"].indexOf(e.type)&&Fo(),St=!0,bn())}function Io(e){return e.toLowerCase().replace(/-/g,"")}function Lo(e){if(N||St){if(re.emit("transitionEnd",le(e)),!N&&0<ft.length)for(var t=0;t<ft.length;t++){var n=ft[t];n.style.left="",x&&y&&(n.style[x]="",n.style[y]=""),ai(n,de),ri(n,me)}(!e||!N&&e.target.parentNode===Z||e.target===Z&&Io(e.propertyName)===Io(yt))&&(vt||(e=ie,xn(),ie!==e&&(re.emit("indexChanged",le()),bo())),"inner"===pe&&re.emit("innerLoaded",le()),St=!1,Ct=ie)}}function Mo(e,t){if(!Rt)if("prev"===e)So(t,-1);else if("next"===e)So(t,1);else{if(St){if(It)return;Lo()}var n=In(),o=0;"first"===e?o=-n:"last"===e?o=N?j-Q-n:j-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(o=(e=t?e:Math.max(0,Math.min(j-1,e)))-n)),!N&&o&&Math.abs(o)<Q&&(e=0<o?1:-1,o+=Et<=ie+o-j?j*e:2*j*e*-1),ie+=o,N&&J&&(ie<Et&&(ie+=j),Tt<ie)&&(ie-=j),In(ie)!==In(Ct)&&To(t)}}function So(e,t){if(St){if(It)return;Lo()}var n;if(!t){for(var o=Po(e=No(e));o!==P&&[B,q].indexOf(o)<0;)o=o.parentNode;var i=[B,q].indexOf(o);0<=i&&(n=!0,t=0===i?-1:1)}if(tt){if(ie===Et&&-1===t)return void Mo("last",e);if(ie===Tt&&1===t)return void Mo("first",e)}t&&(ie+=$e*t,K&&(ie=Math.floor(ie)),To(n||e&&"keydown"===e.type?e:null))}function Ao(){_e=setInterval(function(){So(null,Oe)},lt),Ne=!0}function ko(){clearInterval(_e),Ne=!1}function Do(e,t){ci(H,{"data-action":e}),H.innerHTML=Re[0]+e+Re[1]+t}function Oo(){Ao(),H&&Do("stop",ct[1])}function Fo(){ko(),H&&Do("start",ct[0])}function Ro(){Be=Ne?(Fo(),!0):(Oo(),!1)}function _o(e){e.focus()}function No(e){return Bo(e=e||o.event)?e.changedTouches[0]:e}function Po(e){return e.target||o.event.srcElement}function Bo(e){return 0<=e.type.indexOf("touch")}function qo(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zo(){return t=He.y-ze.y,n=He.x-ze.x,t=Math.atan2(t,n)*(180/Math.PI),n=Lt,e=!1,t=Math.abs(90-Math.abs(t)),90-n<=t?e="horizontal":t<=n&&(e="vertical"),e===F.axis;var e,t,n}function Ho(e){if(St){if(It)return;Lo()}ee&&Ne&&ko(),Ze=!0,Ue&&(Go(Ue),Ue=null);var t=No(e);re.emit(Bo(e)?"touchStart":"dragStart",le(e)),!Bo(e)&&0<=["img","a"].indexOf(mo(Po(e)))&&qo(e),He.x=ze.x=t.clientX,He.y=ze.y=t.clientY,N&&(We=parseFloat(Z.style[yt].replace(wt,"")),vo(Z,"0s"))}function Wo(e){var t;Ze&&(t=No(e),He.x=t.clientX,He.y=t.clientY,N?Ue=Ue||Yo(function(){!function e(t){if(!Mt)return void(Ze=!1);Go(Ue);Ze&&(Ue=Yo(function(){e(t)}));"?"===Mt&&(Mt=zo());if(Mt){!Qt&&Bo(t)&&(Qt=!0);try{t.type&&re.emit(Bo(t)?"touchMove":"dragMove",le(t))}catch(e){}var n=We,o=je(He,ze);n=!W||Y||K?n+o+"px":n+(g?o*Q*100/((X+V)*oe):100*o/(X+V))+"%",Z.style[yt]=wt+n+xt}}(e)}):(Mt="?"===Mt?zo():Mt)&&(Qt=!0),"boolean"!=typeof e.cancelable||e.cancelable)&&Qt&&e.preventDefault()}function Zo(o){var e,i,n;Ze&&(Ue&&(Go(Ue),Ue=null),N&&vo(Z,""),Ze=!1,e=No(o),He.x=e.clientX,He.y=e.clientY,i=je(He,ze),Math.abs(i))&&(Bo(o)||vi(n=Po(o),{click:function e(t){qo(t),yi(n,{click:e})}}),N?Ue=Yo(function(){if(W&&!K){var e=-i*Q/(X+V),e=0<i?Math.floor(e):Math.ceil(e);ie+=e}else{var t=-(We+i);if(t<=0)ie=Et;else if(t>=a[oe-1])ie=Tt;else for(var n=0;n<oe&&t>=a[n];)t>a[ie=n]&&i<0&&(ie+=1),n++}To(o,i),re.emit(Bo(o)?"touchEnd":"dragEnd",le(o))}):Mt&&So(o,0<i?-1:1)),"auto"===F.preventScrollOnTouch&&(Qt=!1),Lt&&(Mt="?"),ee&&!Ne&&Ao()}function Uo(){(k||Ke).style.height=a[ie+Q]-a[ie]+"px"}function jo(){var e=Y?(Y+V)*j/X:j/Q;return Math.min(Math.ceil(e),j)}function Ko(){if(rt&&!jt&&Te!==Ie){var e=Ie,t=Te,n=pi;for(Te<Ie&&(e=Te,t=Ie,n=mi);e<t;)n(Ee[e]),e++;Ie=Te}}function le(e){return{container:Z,slideItems:U,navContainer:z,navItems:Ee,controlsContainer:P,hasControls:Zt,prevButton:B,nextButton:q,items:Q,slideBy:$e,cloneCount:ne,slideCount:j,slideCountNew:oe,index:ie,indexCached:Ct,displayIndex:En(),navCurrentIndex:Me,navCurrentIndexCached:Se,pages:Te,pagesCached:Ie,sheet:te,isOn:Xe,event:e||{}}}E&&console.warn("No slides found in",F.container)}return xi}(),html=document.documentElement,body=document.body,st=0;function portalButton(){"use strict";300<(st=window.scrollY)?body.classList.add("portal-visible"):body.classList.remove("portal-visible")}function cover(){"use strict";var e=document.querySelector(".cover");e&&(imagesLoaded(e,function(){e.classList.remove("image-loading")}),document.querySelector(".cover-arrow").addEventListener("click",function(){e.nextElementSibling.scrollIntoView({behavior:"smooth",block:"start"})}))}function featured(){"use strict";var e=document.querySelector(".featured-feed");e&&tns({container:e,controlsText:['<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
5<path d="M20.547 22.107L14.44 16l6.107-6.12L18.667 8l-8 8 8 8 1.88-1.893z"></path></svg>','<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M11.453 22.107L17.56 16l-6.107-6.12L13.333 8l8 8-8 8-1.88-1.893z"></path></svg>'],gutter:30,loop:!1,nav:!1,responsive:{0:{items:1},768:{items:2},992:{items:3}}})}function logoMarquee(){"use strict";var r=document.getElementById("logo-marquee");if(r){const m=r.querySelector(".logo-list-container");if(m){var e=m.innerHTML,a=(m.innerHTML=e+e+e,m.querySelectorAll(".kg-image-card"));if(a.length){let t=0;var s=a.length/3;for(let e=0;e<s;e++){var l=window.getComputedStyle(a[e]),c=parseFloat(l.width),u=parseFloat(l.marginLeft)||0,l=parseFloat(l.marginRight)||0;t+=c+u+l}let e=0,n,o=!1,i=768<window.innerWidth?1:.5;function d(){o||(e-=i,Math.abs(e)>=t&&(e+=t),m.style.transform=`translateX(${e}px)`),n=requestAnimationFrame(d)}m.style.width=3*t+"px",setTimeout(()=>{n=requestAnimationFrame(d)},100),r.addEventListener("mouseenter",()=>{o=!0}),r.addEventListener("mouseleave",()=>{o=!1}),window.addEventListener("resize",()=>{i=768<window.innerWidth?.4:.2}),window.addEventListener("beforeunload",()=>{cancelAnimationFrame(n)})}}}}function setupFootnotes(){"use strict";var t=document.querySelector("article.ghost-content");if(t){let e=t.innerHTML;var o=/\[\^(.*?)\]/g;if(e.match(o)){const r=document.createElement("ol");r.classList.add("footnote-list"),r.id="footnotes";var i=document.createElement("div");i.classList.add("kg-canvas","section-footnotes");let n=1;e=e.replace(o,(e,t)=>{r.innerHTML=r.innerHTML+`<li id="footnote-${n}">${t}</li>`;t=`<sup class="footnote"><a href="#footnote-${n}">[${n}]</a></sup>`;return n++,t}),t.innerHTML=e,i.appendChild(r),t.appendChild(i)}}}cover(),featured(),logoMarquee(),document.addEventListener("DOMContentLoaded",setupFootnotes),pagination(!1),window.addEventListener("scroll",function(){"use strict";body.classList.contains("home-template")&&body.classList.contains("with-full-cover")&&!document.querySelector(".cover").classList.contains("half")&&(timeout&&window.cancelAnimationFrame(timeout),timeout=window.requestAnimationFrame(portalButton))}),document.querySelector(".cover")&&document.querySelector(".cover").classList.contains("half")&&body.classList.add("portal-visible"); 6//# sourceMappingURL=main.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.