PageSourceSearch

https://walkingletters.com/assets/built/main.min.js?v=A22t_0_AANMezHiC

js walkingletters.com collected 2026-10-04 08:05:20 UTC 76,462 bytes, 1 lines download raw bytes

1function dropdown(){let i=window.matchMedia("(max-width: 767px)"),o=document.querySelector(".gh-head-menu"),r=o?.querySelector(".nav");if(r){let t=document.querySelector(".gh-head-logo"),e=r.innerHTML;i.matches&&r.querySelectorAll("li").forEach(function(t,e){t.style.transitionDelay=.03*(e+1)+"s"});let n=function(){if(!i.matches){for(var t=[];r.offsetWidth+64>o.offsetWidth&&r.lastElementChild;)t.unshift(r.lastElementChild),r.lastElementChild.remove();if(t.length){let e=document.createElement("button"),n=(e.setAttribute("class","nav-more-toggle gh-icon-btn"),e.setAttribute("aria-label","More"),e.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<=t.length?(document.body.classList.add("is-dropdown-mega"),n.style.gridTemplateRows=`repeat(${Math.ceil(t.length/2)}, 1fr)`):document.body.classList.remove("is-dropdown-mega"),t.forEach(function(t){n.appendChild(t)}),e.appendChild(n),r.appendChild(e),document.body.classList.add("is-dropdown-loaded"),window.addEventListener("click",function(t){document.body.classList.contains("is-dropdown-open")?document.body.classList.remove("is-dropdown-open"):e.contains(t.target)&&document.body.classList.add("is-dropdown-open")})}else document.body.classList.add("is-dropdown-loaded")}};imagesLoaded(t,function(){n()}),window.addEventListener("load",function(){t||n()}),window.addEventListener("resize",function(){setTimeout(()=>{r.innerHTML=e,n()},1)})}}function lightbox(t){document.querySelectorAll(t).forEach(function(t){t.addEventListener("click",function(t){var e=t;e.preventDefault();for(var n,i=[],o=0,r=e.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var s=[];r.querySelectorAll("img").forEach(function(t){s.push({src:t.getAttribute("src"),msrc:t.getAttribute("src"),w:t.getAttribute("width"),h:t.getAttribute("height"),el:t}),o+=1}),r=r.previousElementSibling,i=s.concat(i)}e.target.classList.contains("kg-image")?i.push({src:e.target.getAttribute("src"),msrc:e.target.getAttribute("src"),w:e.target.getAttribute("width"),h:e.target.getAttribute("height"),el:e.target}):(n=!1,e.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(t){i.push({src:t.getAttribute("src"),msrc:t.getAttribute("src"),w:t.getAttribute("width"),h:t.getAttribute("height"),el:t}),n||t===e.target?n=!0:o+=1}));for(var a=e.target.closest(".kg-card").nextElementSibling;a&&(a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card"));)a.querySelectorAll("img").forEach(function(t){i.push({src:t.getAttribute("src"),msrc:t.getAttribute("src"),w:t.getAttribute("width"),h:t.getAttribute("height"),el:t})}),a=a.nextElementSibling;t=document.querySelectorAll(".pswp")[0];new PhotoSwipe(t,PhotoSwipeUI_Default,i,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:o,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(t){var t=i[t].el,e=window.pageYOffset||document.documentElement.scrollTop,t=t.getBoundingClientRect();return{x:t.left,y:t.top+e,w:t.width}}}).init()})})}function pagination(t,a,l=!1){let u=document.querySelector(".gh-feed");if(!u)return;let e=!1,n=u.nextElementSibling||u.parentElement.nextElementSibling||document.querySelector(".gh-foot"),c=document.querySelector(".gh-loadmore"),i=(!document.querySelector("link[rel=next]")&&c&&c.remove(),async function(){var i=document.querySelector("link[rel=next]");if(i)try{var t=await(await fetch(i.href)).text(),o=(new DOMParser).parseFromString(t,"text/html"),r=o.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *");let e=document.createDocumentFragment(),n=[];r.forEach(function(t){t=document.importNode(t,!0);l&&(t.style.visibility="hidden"),e.appendChild(t),n.push(t)}),u.appendChild(e),a&&a(n,d);var s=o.querySelector("link[rel=next]");s&&s.href?i.href=s.href:(i.remove(),c&&c.remove())}catch(t){throw i.remove(),c&&c.remove(),t}}),d=async function(){n.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]")&&await i()};let o=new IntersectionObserver(async function(t){if(!e){if(e=!0,t[0].isIntersecting)if(l)await i();else for(;n.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]");)await i();e=!1,document.querySelector("link[rel=next]")||o.disconnect()}});t?o.observe(n):c.addEventListener("click",i)}function feed(){var i,t=document.querySelector(".post-feed");t&&(imagesLoaded(t,function(){(i=new Masonry(t,{itemSelector:".grid-item",columnWidth:".grid-sizer",stamp:".related-title",hiddenStyle:{transform:"translateY(50px)",opacity:0}
1,visibleStyle:{transform:"translateY(0)",opacity:1}})).on("layoutComplete",function(){t.classList.add("initialized")}),i.layout(),pagination(!0,function(e,n){imagesLoaded(e,function(t){i.appended(e),i.layout(),t.elements.forEach(function(t){t.style.visibility="visible"}),n()})},!0)}),pswp(".post-feed",".post",".post-lightbox",".post-caption",!1))}function pswp(o,r,s,a,l){function e(t){t.preventDefault();var e,i,n=$(t.target).closest(o).find(r).index($(t.target).closest(r)),t=$(t.target).closest(o);n=n,t=t[0],e=document.querySelectorAll(".pswp")[0],t=u(t),(i=new PhotoSwipe(e,PhotoSwipeUI_Default,t,{closeOnScroll:!1,history:!1,index:n,shareEl:!1,showAnimationDuration:0,showHideOpacity:!0})).listen("gettingData",function(t,e){var n;(e.w<1||e.h<1)&&((n=new Image).onload=function(){e.w=this.width,e.h=this.height,i.updateSize(!0)},n.src=e.src)}),i.init()}var u=function(t){var n,i,o=[];return $(t).find(r).each(function(t,e){n=$(e),i=n.find(s),i={src:l?n.find("img").attr("src"):i.attr("href"),w:0,h:0},a&&n.find(a).length&&(i.title=n.find(a).html()),o.push(i)}),o};$(o).on("click",s,function(t){e(t)})}((t,e)=>{"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;return t&&e&&((n=(n=this._events=this._events||{})[t]=n[t]||[]).includes(e)||n.push(e)),this},e.once=function(t,e){var n;return t&&e&&(this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||{})[e]=!0),this},e.off=function(t,e){t=this._events&&this._events[t];return t&&t.length&&-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){let n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];var i,o=this._onceEvents&&this._onceEvents[t];for(i of n)o&&o[i]&&(this.off(t,i),delete o[i]),i.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}),((t,e)=>{"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)})("undefined"!=typeof window?window:this,function(e,t){let r=e.jQuery,s=e.console;function a(t,e,n){if(!(this instanceof a))return new a(t,e,n);let i=t,o;(i="string"==typeof t?document.querySelectorAll(t):i)?(this.elements=(o=i,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?[...o]:[o]),this.options={},"function"==typeof e?n=e:Object.assign(this.options,e),n&&this.on("always",n),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))):s.error("Bad element for imagesLoaded "+(i||t))}(a.prototype=Object.create(t.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};let o=[1,9,11],l=(a.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e,n,i=t.nodeType;if(i&&o.includes(i)){for(e of t.querySelectorAll("img"))this.addImage(e);if("string"==typeof this.options.background)for(n of t.querySelectorAll(this.options.background))this.addElementBackgroundImages(n)}},/url\((['"])?(.*?)\1\)/gi);function n(t){this.img=t}function i(t,e){this.url=t,this.element=e,this.img=new Image}return a.prototype.addElementBackgroundImages=function(e){var n=getComputedStyle(e);if(n){let t=l.exec(n.backgroundImage);for(;null!==t;){var i=t&&t[2];i&&this.addBackground(i,e),t=l.exec(n.backgroundImage)}}},a.prototype.addImage=function(t){t=new n(t);this.images.push(t)},a.prototype.addBackground=function(t,e){t=new i(t,e);this.images.push(t)},a.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let e=(t,e,n)=>{setTimeout(()=>{this.progress(t,e,n)})};this.images.forEach(function(t){t.once("progress",e),t.check()})}else this.complete()},a.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+n,t,e)},a.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(n.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWi
1dth,"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(t,e){this.isLoaded=t;t=this.img.parentNode,t="PICTURE"===t.nodeName?t:this.img;this.emitEvent("progress",[this,t,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},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)},(i.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())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(a.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((r=t).fn.imagesLoaded=function(t,e){return new a(this,t,e).jqDeferred.promise(r(this))})})(),a}),((t,e)=>{"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipeUI_Default=e()})(this,function(){return function(i,a){function t(t){if(T)return!0;t=t||window.event,C.timeToIdle&&C.mouseUsed&&!v&&s();for(var e,n,i=(t.target||t.srcElement).getAttribute("class")||"",o=0;o<R.length;o++)(e=R[o]).onTap&&-1<i.indexOf("pswp__"+e.name)&&(e.onTap(),n=!0);n&&(t.stopPropagation&&t.stopPropagation(),T=!0,t=a.features.isOldAndroid?600:30,setTimeout(function(){T=!1},t))}function n(){var t=1===C.getNumItemsFn();t!==I&&(k(d,"ui--one-slide",t),I=t)}function e(){k(g,"share-modal--hidden",A)}function o(){for(var t,e,n,i,o="",r=0;r<C.shareButtons.length;r++)t=C.shareButtons[r],e=C.getImageURLForShare(t),n=C.getPageURLForShare(t),i=C.getTextForShare(t),o+='<a href="'+t.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(i))+'" target="_blank" class="pswp__share--'+t.id+'"'+(t.download?"download":"")+">"+t.label+"</a>",C.parseShareButtonOut&&(o=C.parseShareButtonOut(t,o));g.children[0].innerHTML=o,g.children[0].onclick=q}function r(t){for(var e=0;e<C.closeElClasses.length;e++)if(a.hasClass(t,"pswp__"+C.closeElClasses[e]))return!0}function s(){clearTimeout(S),M=0,v&&L.setIdle(!1)}function l(t){(t=(t=t||window.event).relatedTarget||t.toElement)&&"HTML"!==t.nodeName||(clearTimeout(S),S=setTimeout(function(){L.setIdle(!0)},C.timeToIdleOutside))}function u(t){b!==t&&(k(x,"preloader--active",!t),b=t)}function F(t){var e,n=t.vGap;!i.likelyTouchDevice||C.mouseUsed||screen.width>C.fitControlsWidth?(e=C.barsSize,C.captionEl&&"auto"===e.bottom?(m||((m=a.createEl("pswp__caption pswp__caption--fake")).appendChild(a.createEl("pswp__caption__center")),d.insertBefore(m,h),a.addClass(d,"pswp__ui--fit")),C.addCaptionHTMLFn(t,m,!0)?(t=m.clientHeight,n.bottom=parseInt(t,10)||44):n.bottom=e.top):n.bottom="auto"===e.bottom?0:e.bottom,n.top=e.top):n.top=n.bottom=0}function P(){function t(t){if(t)for(var e=t.length,n=0;n<e;n++){o=t[n],r=o.className;for(var i=0;i<R.length;i++)s=R[i],-1<r.indexOf("pswp__"+s.name)&&(C[s.option]?(a.removeClass(o,"pswp__element--disabled"),s.onInit&&s.onInit(o)):a.addClass(o,"pswp__element--disabled"))}}t(d.children);var o,r,s,e=a.getChildByClass(d,"pswp__top-bar");e&&t(e.children)}var c,d,h,m,p,f,g,y,v,w,x,b,E,I,C,T,_,S,L=this,O=!1,z=!0,A=!0,W={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl
1:!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 i.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return i.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},k=function(t,e,n){a[(n?"add":"remove")+"Class"](t,"pswp__"+e)},D=function(){return(A=!A)?(a.removeClass(g,"pswp__share-modal--fade-in"),setTimeout(function(){A&&e()},300)):(e(),setTimeout(function(){A||a.addClass(g,"pswp__share-modal--fade-in")},30)),A||o(),!1},q=function(t){var e=(t=t||window.event).target||t.srcElement;return i.shout("shareLinkClick",t,e),!(!e.href||!e.hasAttribute("download")&&(window.open(e.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)),A||D(),1))},M=0,R=[{name:"caption",option:"captionEl",onInit:function(t){h=t}},{name:"share-modal",option:"shareEl",onInit:function(t){g=t},onTap:function(){D()}},{name:"button--share",option:"shareEl",onInit:function(t){f=t},onTap:function(){D()}},{name:"button--zoom",option:"zoomEl",onTap:i.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){p=t}},{name:"button--close",option:"closeEl",onTap:i.close},{name:"button--arrow--left",option:"arrowEl",onTap:i.prev},{name:"button--arrow--right",option:"arrowEl",onTap:i.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){c.isFullscreen()?c.exit():c.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){x=t}}];L.init=function(){var e;a.extend(i.options,W,!0),C=i.options,d=a.getChildByClass(i.scrollWrap,"pswp__ui"),(w=i.listen)("onVerticalDrag",function(t){z&&t<.95?L.hideControls():!z&&.95<=t&&L.showControls()}),w("onPinchClose",function(t){z&&t<.9?(L.hideControls(),e=!0):e&&!z&&.9<t&&L.showControls()}),w("zoomGestureEnded",function(){(e=!1)&&!z&&L.showControls()}),w("beforeChange",L.update),w("doubleTap",function(t){var e=i.currItem.initialZoomLevel;i.getZoomLevel()!==e?i.zoomTo(e,t,333):i.zoomTo(C.getDoubleTapZoom(!1,i.currItem),t,333)}),w("preventDragEvent",function(t,e,n){var i=t.target||t.srcElement;i&&i.getAttribute("class")&&-1<t.type.indexOf("mouse")&&(0<i.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)}),w("bindEvents",function(){a.bind(d,"pswpTap click",t),a.bind(i.scrollWrap,"pswpTap",L.onGlobalTap),i.likelyTouchDevice||a.bind(i.scrollWrap,"mouseover",L.onMouseOver)}),w("unbindEvents",function(){A||D(),_&&clearInterval(_),a.unbind(document,"mouseout",l),a.unbind(document,"mousemove",s),a.unbind(d,"pswpTap click",t),a.unbind(i.scrollWrap,"pswpTap",L.onGlobalTap),a.unbind(i.scrollWrap,"mouseover",L.onMouseOver),c&&(a.unbind(document,c.eventK,L.updateFullscreen),c.isFullscreen()&&(C.hideAnimationDuration=0,c.exit()),c=null)}),w("destroy",function(){C.captionEl&&(m&&d.removeChild(m),a.removeClass(h,"pswp__caption--empty")),g&&(g.children[0].onclick=null),a.removeClass(d,"pswp__ui--over-close"),a.addClass(d,"pswp__ui--hidden"),L.setIdle(!1)}),C.showAnimationDuration||a.removeClass(d,"pswp__ui--hidden"),w("initialZoomIn",function(){C.showAnimationDuration&&a.removeClass(d,"pswp__ui--hidden")}),w("initialZoomOut",function(){a.addClass(d,"pswp__ui--hidden")}),w("parseVerticalMargin",F),P(),C.shareEl&&f&&g&&(A=!0),n(),C.timeToIdle&&w("mouseUsed",function(){a.bind(document,"mousemove",s),a.bind(document,"mouseout",l),_=setInterval(function(){2===++M&&L.setIdle(!0)},C.timeToIdle/2)}),C.fullscreenEl&&!a.features.isOldAndroid&&((c=c||L.getFullscreenAPI())?(a.bind(document,c.eventK,L.updateFullscreen),L.updateFullscreen(),a.addClass(i.template,"pswp--supports-fs")):a.removeClass(i.template,"pswp--supports-fs")),C.preloaderEl&&(u(!0),w("beforeChange",function(){clearTimeout(E),E=setTimeout(function(){i.currItem&&i.currItem.loading?i.allowProgressiveImg()&&(!i.currItem.img||i.currItem.img.naturalWi
1dth)||u(!1):u(!0)},C.loadingIndicatorDelay)}),w("imageLoadComplete",function(t,e){i.currItem===e&&u(!0)}))},L.setIdle=function(t){k(d,"ui--idle",v=t)},L.update=function(){O=!(!z||!i.currItem||(L.updateIndexIndicator(),C.captionEl&&(C.addCaptionHTMLFn(i.currItem,h),k(h,"caption--empty",!i.currItem.title)),0)),A||D(),n()},L.updateFullscreen=function(t){t&&setTimeout(function(){i.setScrollOffset(0,a.getScrollY())},50),a[(c.isFullscreen()?"add":"remove")+"Class"](i.template,"pswp--fs")},L.updateIndexIndicator=function(){C.counterEl&&(p.innerHTML=i.getCurrentIndex()+1+C.indexIndicatorSep+C.getNumItemsFn())},L.onGlobalTap=function(t){var e=(t=t||window.event).target||t.srcElement;if(!T)if(t.detail&&"mouse"===t.detail.pointerType)r(e)?i.close():a.hasClass(e,"pswp__img")&&(1===i.getZoomLevel()&&i.getZoomLevel()<=i.currItem.fitRatio?C.clickToCloseNonZoomable&&i.close():i.toggleDesktopZoom(t.detail.releasePoint));else if(C.tapToToggleControls&&(z?L.hideControls():L.showControls()),C.tapToClose&&(a.hasClass(e,"pswp__img")||r(e)))return void i.close()},L.onMouseOver=function(t){t=(t=t||window.event).target||t.srcElement;k(d,"ui--over-close",r(t))},L.hideControls=function(){a.addClass(d,"pswp__ui--hidden"),z=!1},L.showControls=function(){z=!0,O||L.update(),a.removeClass(d,"pswp__ui--hidden")},L.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},L.getFullscreenAPI=function(){var t,e=document.documentElement,n="fullscreenchange";return e.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:e.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:e.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:e.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){return y=C.closeOnScroll,C.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?i.template[this.enterK]():void i.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return C.closeOnScroll=y,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}),((t,e)=>{"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()})(this,function(){return function(h,P,e,W){var m={features:null,bind:function(t,e,n,i){var o=(i?"remove":"add")+"EventListener";e=e.split(" ");for(var r=0;r<e.length;r++)e[r]&&t[o](e[r],n,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){e=document.createElement(e||"div");return t&&(e.className=t),e},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,n){m.bind(t,e,n,!0)},removeClass:function(t,e){e=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(e," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){m.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var n=t.firstChild;n;){if(m.hasClass(n,e))return n;n=n.nextSibling}},arraySearch:function(t,e,n){for(var i=t.length;i--;)if(t[i][n]===e)return i;return-1},extend:function(t,e,n){for(var i in e)if(e.hasOwnProperty(i)){if(n&&t.hasOwnProperty(i))continue;t[i]=e[i]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(m.features)return m.features;var t,e,n=m.createEl().style,i="",o={};o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,o.pointerEvent||(t=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<e.length&&1<=(e=parseInt(e[1],10))&&e<8&&(o.isOldIOSPhone=!0),e=(e=t.match(/Android\s([0-9\.]*)/))?e[1]:0,1<=(e=parseFloat(e))&&(e<4.4&&(o.isOldAndroid=!0),o.androidVersion=e),o.isMobileOpera=/opera mini|o
1pera mobi/i.test(t));for(var r,s,a,l=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],c=0;c<4;c++){for(var i=u[c],d=0;d<3;d++)r=l[d],s=i+(i?r.charAt(0).toUpperCase()+r.slice(1):r),!o[r]&&s in n&&(o[r]=s);i&&!o.raf&&(i=i.toLowerCase(),o.raf=window[i+"RequestAnimationFrame"],o.raf)&&(o.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"])}return o.raf||(a=0,o.raf=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-a)),i=window.setTimeout(function(){t(e+n)},n);return a=e+n,i},o.caf=function(t){clearTimeout(t)}),o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,m.features=o}},p=(m.detectFeatures(),m.features.oldIE&&(m.bind=function(t,e,n,i){e=e.split(" ");for(var o,r=(i?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},a=0;a<e.length;a++)if(o=e[a])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=s;t[r]("on"+o,n["oldIE"+o])}else t[r]("on"+o,n)}),this),q=25,f={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(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};m.extend(f,W);function t(){return{x:0,y:0}}function B(t,e){m.extend(p,e.publicMethods),Ut.push(t)}function N(t){var e=D();return e-1<t?t-e:t<0?e+t:t}function r(t,e){return Gt[t]||(Gt[t]=[]),Gt[t].push(e)}function Z(t,e,n,i){i===p.currItem.initialZoomLevel?n[t]=p.currItem.initialPosition[t]:(n[t]=Jt(t,i),n[t]>e.min[t]?n[t]=e.min[t]:n[t]<e.max[t]&&(n[t]=e.max[t]))}function H(t){var e="";f.escKey&&27===t.keyCode?e="close":f.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),!e||t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,p[e]())}function j(t){t&&(Ot||Lt||v||Tt)&&(t.preventDefault(),t.stopPropagation())}function U(){p.setScrollOffset(0,m.getScrollY())}function Y(t){var e;"mousedown"===t.type&&0<t.button||(Je?t.preventDefault():_t&&"mousedown"===t.type||(Ae(t,!0)&&t.preventDefault(),I("pointerDown"),mt&&((e=m.arraySearch(fe,t.pointerId,"id"))<0&&(e=fe.length),fe[e]={x:t.pageX,y:t.pageY,id:t.pointerId}),t=(e=qe(t)).length,u=null,ue(),l&&1!==t||(l=Rt=!0,m.bind(window,tt,p),Ct=Wt=Ft=Tt=At=Ot=St=Lt=!1,Mt=null,I("firstTouchStart",e),S(Nt,w),Bt.x=Bt.y=0,S(A,e[0]),S(pe,A),ge.x=b.x*Zt,ye=[{x:A.x,y:A.y}],Et=bt=C(),ie(y,!0),_e(),Se()),!c&&1<t&&!v&&!At&&(nt=y,c=St=!(Lt=!1),Bt.y=Bt.x=0,S(Nt,w),S(O,e[0]),S(me,e[1]),De(O,me,Ie),Ee.x=Math.abs(Ie.x)-w.x,Ee.y=Math.abs(Ie.y)-w.y,kt=Te(O,me))))}function K(t){var e;t.preventDefault(),mt&&-1<(e=m.arraySearch(fe,t.pointerId,"id"))&&((e=fe[e]).x=t.pageX,e.y=t.pageY),l&&(e=qe(t),Mt||Ot||c?u=e:k.x!==b.x*Zt?Mt="h":(t=Math.abs(e[0].x-A.x)-Math.abs(e[0].y-A.y),Math.abs(t)>=he&&(Mt=0<t?"h":"v",u=e)))}function G(t){if(a.isOldAndroid){if(_t&&"mouseup"===t.type)return;-1<t.type.indexOf("touch")&&(clearTimeout(_t),_t=setTimeout(function(){_t=0},600))}var e;I("pointerUp"),Ae(t,!1)&&t.preventDefault(),mt&&-1<(r=m.arraySearch(fe,t.pointerId,"id"))&&(e=fe.splice(r,1)[0],navigator.msPointerEnabled&&(e.type={4:"mouse",2:"touch",3:"pen"}[t.pointerType],e.type)||(e.type=t.pointerType||"mouse"));var n=(r=qe(t)).length;if(2===(n="mouseup"===t.type?0:n))return!(u=null);1===n&&S(pe,r[0]),0!==n||Mt||v||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),I("touchRelease",t,e));var i,o,r=-1;if(0===n&&(l=!1,m.unbind(window,tt,p),_e(),c?r=0:-1!==be&&(r=C()-be)),be=1===n?C():-1,t=-1!==r&&r<150?"zoom":"swipe",c&&n<2&&(c=!1,1===n&&(t="zoomPointerUp"),I("zoomGestureEnded")),u=null,Ot||Lt||v||Tt)if(ue(),(It=It||Ze()).calculateSwipeSpeed("x"),Tt)Re()<f.verticalDragRange?p.close():(i=w.y,o=Pt,ce("verticalDrag",0,1,300,m.easing.cubic.out,function(t){w.y=(p.currItem.initialPosition.y-i)*t+i,T((1-o)*t+o),_()}),I("onVerticalDrag",1));else{if((At||v)&&0===n){if(je(t,It))return;t="zoomPointerUp"}if(!v)return"swipe"!==t?void Ye():void(!At&&y>p.currItem.fitRatio&&He(It))}}var $,V,Q,g,X,J,tt,et,i,y,nt,it,ot,rt,st,s,at,lt,ut,ct,dt,ht,mt,o,pt,ft,gt,yt,vt,wt,a,xt,bt,Et,It,Ct,Tt,_t,l,St,Lt,Ot,zt,At,u,c,kt,d,Dt,v,Mt,Rt,Ft,Pt,Wt,qt,Bt=t(),Nt=t(),w=t(),x={},Zt=0,Ht={},b=t(),E=0,jt=!0,Ut=[],Yt={},Kt=!1,Gt={},I=function(t){var e=Gt[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<e.length;
1i++)e[i].apply(p,n)}},C=function(){return(new Date).getTime()},T=function(t){Pt=t,p.bg.style.opacity=t*f.bgOpacity},$t=function(t,e,n,i,o){(!Kt||o&&o!==p.currItem)&&(i/=(o||p.currItem).fitRatio),t[ht]=it+e+"px, "+n+"px"+ot+" scale("+i+")"},_=function(t){Dt&&(t&&(y>p.currItem.fitRatio?Kt||(un(p.currItem,!1,!0),Kt=!0):Kt&&(un(p.currItem),Kt=!1)),$t(Dt,w.x,w.y,y))},Vt=function(t){t.container&&$t(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Qt=function(t,e){e[ht]=it+t+"px, 0px"+ot},Xt=function(t,e){var n;!f.loop&&e&&(e=g+(b.x*Zt-t)/b.x,n=Math.round(t-k.x),e<0&&0<n||e>=D()-1&&n<0)&&(t=k.x+n*f.mainScrollEndFriction),k.x=t,Qt(t,X)},Jt=function(t,e){var n=Ee[t]-Ht[t];return Nt[t]+Bt[t]+n-e/nt*n},S=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},te=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},ee=null,ne=function(){ee&&(m.unbind(document,"mousemove",ne),m.addClass(h,"pswp--has_mouse"),f.mouseUsed=!0,I("mouseUsed")),ee=setTimeout(function(){ee=null},100)},ie=function(t,e){t=an(p.currItem,x,t);return e&&(d=t),t},oe=function(t){return(t=t||p.currItem).initialZoomLevel},re=function(t){return 0<(t=t||p.currItem).w?f.maxSpreadZoom:1},L={},se=0,ae=function(t){L[t]&&(L[t].raf&&ft(L[t].raf),se--,delete L[t])},le=function(t){L[t]&&ae(t),L[t]||(se++,L[t]={})},ue=function(){for(var t in L)L.hasOwnProperty(t)&&ae(t)},ce=function(t,e,n,i,o,r,s){function a(){L[t]&&(l=C()-u,i<=l?(ae(t),r(n),s&&s()):(r((n-e)*o(l/i)+e),L[t].raf=pt(a)))}var l,u=C();le(t);a()},W={shout:I,listen:r,viewportSize:x,options:f,isMainScrollAnimating:function(){return v},getZoomLevel:function(){return y},getCurrentIndex:function(){return g},isDragging:function(){return l},isZooming:function(){return c},setScrollOffset:function(t,e){Ht.x=t,wt=Ht.y=e,I("updateScrollOffset",Ht)},applyZoomPan:function(t,e,n,i){w.x=e,w.y=n,y=t,_(i)},init:function(){if(!$&&!V){p.framework=m,p.template=h,p.bg=m.getChildByClass(h,"pswp__bg"),gt=h.className,$=!0,a=m.detectFeatures(),pt=a.raf,ft=a.caf,ht=a.transform,vt=a.oldIE,p.scrollWrap=m.getChildByClass(h,"pswp__scroll-wrap"),p.container=m.getChildByClass(p.scrollWrap,"pswp__container"),X=p.container.style,p.itemHolders=s=[{el:p.container.children[0],wrap:0,index:-1},{el:p.container.children[1],wrap:0,index:-1},{el:p.container.children[2],wrap:0,index:-1}],s[0].el.style.display=s[2].el.style.display="none",ht?(e=a.perspective&&!o,it="translate"+(e?"3d(":"("),ot=a.perspective?", 0px)":")"):(ht="left",m.addClass(h,"pswp--ie"),Qt=function(t,e){e.left=t+"px"},Vt=function(t){var e=1<t.fitRatio?1:t.fitRatio,n=t.container.style,i=e*t.h;n.width=e*t.w+"px",n.height=i+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"},_=function(){var t,e,n,i;Dt&&(t=Dt,i=(n=1<(e=p.currItem).fitRatio?1:e.fitRatio)*e.h,t.width=n*e.w+"px",t.height=i+"px",t.left=w.x+"px",t.top=w.y+"px")}),i={resize:p.updateSize,orientationchange:function(){clearTimeout(xt),xt=setTimeout(function(){x.x!==p.scrollWrap.clientWidth&&p.updateSize()},500)},scroll:U,keydown:H,click:j};var t,e=a.isOldIOSPhone||a.isOldAndroid||a.isMobileOpera;for(a.animationName&&a.transform&&!e||(f.showAnimationDuration=f.hideAnimationDuration=0),t=0;t<Ut.length;t++)p["init"+Ut[t]]();P&&(p.ui=new P(p,m)).init(),I("firstUpdate"),g=g||f.index||0,(isNaN(g)||g<0||g>=D())&&(g=0),p.currItem=tn(g),(a.isOldIOSPhone||a.isOldAndroid)&&(jt=!1),h.setAttribute("aria-hidden","false"),f.modal&&(jt?h.style.position="fixed":(h.style.position="absolute",h.style.top=m.getScrollY()+"px")),void 0===wt&&(I("initialLayout"),wt=yt=m.getScrollY());var n="pswp--open ";for(f.mainClass&&(n+=f.mainClass+" "),f.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=o?"pswp--touch":"pswp--notouch")+(a.animationName?" pswp--css_animation":""))+(a.svg?" pswp--svg":""),m.addClass(h,n),p.updateSize(),J=-1,E=null,t=0;t<3;t++)Qt((t+J)*b.x,s[t].el.style);vt||m.bind(p.scrollWrap,et,p),r("initialZoomInEnd",function(){p.setContent(s[0],g-1),p.setContent(s[2],g+1),s[0].el.style.display=s[2].el.style.display="block",f.focus&&h.focus(),m.bind(document,"keydown",p),a.transform&&m.bind(p.scrollWrap,"click",p),f.mouseUsed||m.bind(document,"mousemove",ne),m.bind(window,"resize scroll orientationchange",p),I("bindEvents")}),p.setContent(s[1],g),p.updateCurrItem(),I("afterInit"),jt||(rt=setInterval(function(){se||l||c||y!==p.currItem.initialZoomLevel||p.updateSize()},1e3)),m.addClass(h,"pswp--visible")}var e},close:function(){$&&(V=!($=!1),I("close"),m.unbind(window,"resize scroll orientationchange",p),m.unbind(window,"scroll",i.scroll),m.unbind(document,"keydown",p),m.unbind(document,"mousemove",ne),a.transform&&m.unbind(p.scrollWrap,"click",p),l&&m.unbind(window,tt,p),clearTimeout(xt),I("unbindEvents"),en(p.currItem,
1null,!0,p.destroy))},destroy:function(){I("destroy"),Ve&&clearTimeout(Ve),h.setAttribute("aria-hidden","true"),h.className=gt,rt&&clearInterval(rt),m.unbind(p.scrollWrap,et,p),m.unbind(window,"scroll",p),_e(),ue(),Gt=null},panTo:function(t,e,n){n||(t>d.min.x?t=d.min.x:t<d.max.x&&(t=d.max.x),e>d.min.y?e=d.min.y:e<d.max.y&&(e=d.max.y)),w.x=t,w.y=e,_()},handleEvent:function(t){t=t||window.event,i[t.type]&&i[t.type](t)},goTo:function(t){var e=(t=N(t))-g;E=e,g=t,p.currItem=tn(g),Zt-=e,Xt(b.x*Zt),ue(),v=!1,p.updateCurrItem()},next:function(){p.goTo(g+1)},prev:function(){p.goTo(g-1)},updateCurrZoomItem:function(t){var e;t&&I("beforeChange",0),Dt=s[1].el.children.length&&(e=s[1].el.children[0],m.hasClass(e,"pswp__zoom-wrap"))?e.style:null,d=p.currItem.bounds,nt=y=p.currItem.initialZoomLevel,w.x=d.center.x,w.y=d.center.y,t&&I("afterChange")},invalidateCurrItems:function(){st=!0;for(var t=0;t<3;t++)s[t].item&&(s[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==E){var e,n=Math.abs(E);if(!(t&&n<2)){p.currItem=tn(g),Kt=!1,I("beforeChange",E),3<=n&&(J+=E+(0<E?-3:3),n=3);for(var i=0;i<n;i++)0<E?(e=s.shift(),s[2]=e,Qt((++J+2)*b.x,e.el.style),p.setContent(e,g-n+i+1+1)):(e=s.pop(),s.unshift(e),Qt(--J*b.x,e.el.style),p.setContent(e,g+n-i-1-1));Dt&&1===Math.abs(E)&&(t=tn(at)).initialZoomLevel!==y&&(an(t,x),un(t),Vt(t)),E=0,p.updateCurrZoomItem(),at=g,I("afterChange")}}},updateSize:function(t){if(!jt&&f.modal){var e=m.getScrollY();if(wt!==e&&(h.style.top=e+"px",wt=e),!t&&Yt.x===window.innerWidth&&Yt.y===window.innerHeight)return;Yt.x=window.innerWidth,Yt.y=window.innerHeight,h.style.height=Yt.y+"px"}if(x.x=p.scrollWrap.clientWidth,x.y=p.scrollWrap.clientHeight,U(),b.x=x.x+Math.round(x.x*f.spacing),b.y=x.y,Xt(b.x*Zt),I("beforeResize"),void 0!==J){for(var n,i,o,r=0;r<3;r++)n=s[r],Qt((r+J)*b.x,n.el.style),o=g+r-1,f.loop&&2<D()&&(o=N(o)),(i=tn(o))&&(st||i.needsUpdate||!i.bounds)?(p.cleanSlide(i),p.setContent(n,o),1===r&&(p.currItem=i,p.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&0<=o&&p.setContent(n,o),i&&i.container&&(an(i,x),un(i),Vt(i));st=!1}nt=y=p.currItem.initialZoomLevel,(d=p.currItem.bounds)&&(w.x=d.center.x,w.y=d.center.y,_(!0)),I("resize")},zoomTo:function(e,t,n,i,o){t&&(nt=y,Ee.x=Math.abs(t.x)-w.x,Ee.y=Math.abs(t.y)-w.y,S(Nt,w));function r(t){1===t?(y=e,w.x=s.x,w.y=s.y):(y=(e-a)*t+a,w.x=(s.x-l.x)*t+l.x,w.y=(s.y-l.y)*t+l.y),o&&o(t),_(1===t)}var t=ie(e,!1),s={},a=(Z("x",t,s,e),Z("y",t,s,e),y),l={x:w.x,y:w.y};te(s);n?ce("customZoomTo",0,1,n,i||m.easing.sine.inOut,r):r(1)}},de=30,he=10,O={},me={},z={},A={},pe={},fe=[],ge={},ye=[],ve={},we=0,xe=t(),be=0,k=t(),Ee=t(),Ie=t(),Ce=function(t,e){return t.x===e.x&&t.y===e.y},Te=function(t,e){return ve.x=Math.abs(t.x-e.x),ve.y=Math.abs(t.y-e.y),Math.sqrt(ve.x*ve.x+ve.y*ve.y)},_e=function(){zt&&(ft(zt),zt=null)},Se=function(){l&&(zt=pt(Se),Ne())},Le=function(){return!("fit"===f.scaleMode&&y===p.currItem.initialZoomLevel)},Oe=function(t,e){return!(!t||t===document)&&!(t.getAttribute("class")&&-1<t.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(e(t)?t:Oe(t.parentNode,e))},ze={},Ae=function(t,e){return ze.prevent=!Oe(t.target,f.isClickableElement),I("preventDragEvent",t,e,ze),ze.prevent},ke=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},De=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},Me=function(t,e,n){var i;50<t-Et&&((i=2<ye.length?ye.shift():{}).x=e,i.y=n,ye.push(i),Et=t)},Re=function(){var t=w.y-p.currItem.initialPosition.y;return 1-Math.abs(t/(x.y/2))},Fe={},Pe={},We=[],qe=function(t){for(;0<We.length;)We.pop();return mt?(qt=0,fe.forEach(function(t){0===qt?We[0]=t:1===qt&&(We[1]=t),qt++})):-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(We[0]=ke(t.touches[0],Fe),1<t.touches.length)&&(We[1]=ke(t.touches[1],Pe)):(Fe.x=t.pageX,Fe.y=t.pageY,Fe.id="",We[0]=Fe),We},Be=function(t,e){var n,i,o,r=w[t]+e[t],s=k.x+e.x,a=k.x-ge.x,l=r>d.min[t]||r<d.max[t]?f.panEndFriction:1,r=w[t]+e[t]*l;return!f.allowPanToNext&&y!==p.currItem.initialZoomLevel||(Dt?"h"!==Mt||"x"!==t||Lt||(0<e[t]?(r>d.min[t]&&(l=f.panEndFriction,d.min[t],n=d.min[t]-Nt[t]),(n<=0||a<0)&&1<D()?(o=s,a<0&&s>ge.x&&(o=ge.x)):d.min.x!==d.max.x&&(i=r)):(r<d.max[t]&&(l=f.panEndFriction,d.max[t],n=Nt[t]-d.max[t]),(n<=0||0<a)&&1<D()?(o=s,0<a&&s<ge.x&&(o=ge.x)):d.min.x!==d.max.x&&(i=r))):o=s,"x"!==t)?void(v||At||y>p.currItem.fitRatio&&(w[t]+=e[t]*l)):(void 0!==o&&(Xt(o,!0),At=o!==ge.x),d.min.x!==d.max.x&&(void 0!==i?w.x=i:At||(w.x+=e.x*l)),void 0!==o)},Ne=function(){var t,e,n,i,o,r;u&&0!==(t=u.length)&&(S(O,u[0]),z.x=O.x-A.x,z.y=O.y-A.y,c&&1<t?(A.x=O.x,A.y=O.y,!z.x&&!z.y&&Ce(u[1],me)||(S(me,u[1]),Lt||(Lt=!0,I("zoomGestureStarted")),t=Te(O,me),(e=Ue(t))>p.currItem.initialZoomLevel+p.currItem.initialZoomLevel/15&&(Wt=!0),n=1,i=oe(),o=re(),e<i?f.pinchToClose&&!Wt&&nt<=p.currItem.initialZoomLevel?(T(r=1-(i-e)/(i/1.2)),I("onPinchClose",r),Ft=!0):e=i-(n=1<(n=(i-e)/i)?1:n)*(i/3):o<e&&(e=o+(n=1<(n=(e-o)/(6*i))?1:n)*i),n<0&&(n=0),De(O,me,xe),Bt.x+=xe.x-Ie.x,Bt.y+=xe.y-Ie.y,S(Ie,xe),w.x=Jt("x",e),w.y=Jt("y",e),Ct=y<e,y=e,_())):Mt&&(Rt&&(Rt=!1,Math.abs(z.x)>
1=he&&(z.x-=u[0].x-pe.x),Math.abs(z.y)>=he)&&(z.y-=u[0].y-pe.y),A.x=O.x,A.y=O.y,0===z.x&&0===z.y||("v"===Mt&&f.closeOnVerticalDrag&&!Le()?(Bt.y+=z.y,w.y+=z.y,r=Re(),Tt=!0,I("onVerticalDrag",r),T(r),_()):(Me(C(),O.x,O.y),Ot=!0,d=p.currItem.bounds,Be("x",z)||(Be("y",z),te(w),_())))))},Ze=function(){var e,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(t){n=(1<ye.length?(e=C()-Et+50,ye[ye.length-2]):(e=C()-bt,pe))[t],i.lastFlickOffset[t]=A[t]-n,i.lastFlickDist[t]=Math.abs(i.lastFlickOffset[t]),20<i.lastFlickDist[t]?i.lastFlickSpeed[t]=i.lastFlickOffset[t]/e:i.lastFlickSpeed[t]=0,Math.abs(i.lastFlickSpeed[t])<.1&&(i.lastFlickSpeed[t]=0),i.slowDownRatio[t]=.95,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatio[t]=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted[e]||(w[e]>d.min[e]?i.backAnimDestination[e]=d.min[e]:w[e]<d.max[e]&&(i.backAnimDestination[e]=d.max[e]),void 0!==i.backAnimDestination[e]&&(i.slowDownRatio[e]=.7,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatioAbs[e]<.05)&&(i.lastFlickSpeed[e]=0,i.backAnimStarted[e]=!0,ce("bounceZoomPan"+e,w[e],i.backAnimDestination[e],t||300,m.easing.sine.out,function(t){w[e]=t,_()})))},calculateAnimOffset:function(t){i.backAnimStarted[t]||(i.speedDecelerationRatio[t]=i.speedDecelerationRatio[t]*(i.slowDownRatio[t]+i.slowDownRatioReverse[t]-i.slowDownRatioReverse[t]*i.timeDiff/10),i.speedDecelerationRatioAbs[t]=Math.abs(i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]),i.distanceOffset[t]=i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]*i.timeDiff,w[t]+=i.distanceOffset[t])},panAnimLoop:function(){L.zoomPan&&(L.zoomPan.raf=pt(i.panAnimLoop),i.now=C(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),_(
1),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05)&&i.speedDecelerationRatioAbs.y<.05&&(w.x=Math.round(w.x),w.y=Math.round(w.y),_(),ae("zoomPan"))}};return i},He=function(t){return t.calculateSwipeSpeed("y"),d=p.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05?(t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0):(le("zoomPan"),t.lastNow=C(),void t.panAnimLoop())},je=function(t,e){var n,i,o;v||(we=g),"swipe"===t&&(t=A.x-pe.x,r=e.lastFlickDist.x<10,de<t&&(r||20<e.lastFlickOffset.x)?i=-1:t<-de&&(r||e.lastFlickOffset.x<-20)&&(i=1)),i&&((g+=i)<0?(g=f.loop?D()-1:0,o=!0):g>=D()&&(g=f.loop?0:D()-1,o=!0),o&&!f.loop||(E+=i,Zt-=i,n=!0));var t=b.x*Zt,r=Math.abs(t-k.x),s=n||t>k.x==0<e.lastFlickSpeed.x?(s=0<Math.abs(e.lastFlickSpeed.x)?r/Math.abs(e.lastFlickSpeed.x):333,s=Math.min(s,400),Math.max(s,250)):333;return we===g&&(n=!1),v=!0,I("mainScrollAnimStart"),ce("mainScroll",k.x,t,s,m.easing.cubic.out,Xt,function(){ue(),v=!1,we=-1,!n&&we===g||p.updateCurrItem(),I("mainScrollAnimComplete")}),n&&p.updateCurrItem(!0),n},Ue=function(t){return 1/kt*t*nt},Ye=function(){var t=y,e=oe(),n=re();y<e?t=e:n<y&&(t=n);var i,o=Pt;return Ft&&!Ct&&!Wt&&y<e?p.close():(Ft&&(i=function(t){T((1-o)*t+o)}),p.zoomTo(t,0,200,m.easing.cubic.out,i)),!0};B("Gestures",{publicMethods:{initGestures:function(){function t(t,e,n,i,o){lt=t+e,ut=t+n,ct=t+i,dt=o?t+o:""}(mt=a.pointerEvent)&&a.touch&&(a.touch=!1),mt?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):a.touch?(t("touch","start","move","end","cancel"),o=!0):t("mouse","down","move","up"),tt=ut+" "+ct+" "+dt,et=lt,mt&&!o&&(o=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),p.likelyTouchDevice=o,i[lt]=Y,i[ut]=K,i[ct]=G,dt&&(i[dt]=i[ct]),a.touch&&(et+=" mousedown",tt+=" mousemove mouseup",i.mousedown=i[lt],i.mousemove=i[ut],i.mouseup=i[ct]),o||(f.allowPanToNext=!1)}}});function Ke(t){function e(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,n.onload=n.onerror=null,n=null}t.loading=!0,t.loaded=!1;var n=t.img=m.createEl("pswp__img","img");n.onload=e,n.onerror=function(){t.loadError=!0,e()},n.src=t.src}function Ge(t,e){return t.src&&t.loadError&&t.container&&(e&&(t.container.innerHTML=""),t.container.innerHTML=f.errorMsg.replace("%url%",t.src),1)}function $e(){if(nn.length){for(var t,e=0;e<nn.length;e++)(t=nn[e]).holder.index===t.index&&ln(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);nn=[]}}var Ve,Qe,Xe,Je,tn,D,en=function(r,t,s,e){function a(){ae("initialZoom"),s?(p.template.removeAttribute("style"),p.bg.removeAttribute("style")):(T(1),t&&(t.style.display="block"),m.addClass(h,"pswp--animated-in"),I("initialZoom"+(s?"OutEnd":"InEnd"))),e&&e(),Je=!1}Ve&&clearTimeout(Ve),Xe=Je=!0,r.initialLayout?(l=r.initialLayout,r.initialLayout=null):l=f.getThumbBoundsFn&&f.getThumbBoundsFn(g);var l,u,c,d=s?f.hideAnimationDuration:f.showAnimationDuration;d&&l&&void 0!==l.x?(u=Q,c=!p.currItem.src||p.currItem.loadError||f.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),s||(y=l.w/r.w,w.x=l.x,w.y=l.y-yt,p[c?"template":"bg"].style.opacity=.001,_()),le("initialZoom"),s&&!u&&m.removeClass(h,"pswp--animated-in"),c&&(s?m[(u?"remove":"add")+"Class"](h,"pswp--animate_opacity"):setTimeout(function(){m.addClass(h,"pswp--animate_opacity")},30)),Ve=setTimeout(function(){var e,n,i,o,t;I("initialZoom"+(s?"Out":"In")),s?(e=l.w/r.w,n={x:w.x,y:w.y},i=y,o=Pt,t=function(t){1===t?(y=e,w.x=l.x,w.y=l.y-wt):(y=(e-i)*t+i,w.x=(l.x-n.x)*t+n.x,w.y=(l.y-wt-n.y)*t+n.y),_(),c?h.style.opacity=1-t:T(o-t*o)},u?ce("initialZoom",0,1,d,m.easing.cubic.out,t,a):(t(1),Ve=setTimeout(a,d+20))):(y=r.initialZoomLevel,S(w,r.initialPosition),_(),T(1),c?h.style.opacity=1:T(1),Ve=setTimeout(a,d+20))},s?25:90)):(I("initialZoom"+(s?"Out":"In")),y=r.initialZoomLevel,S(w,r.initialPosition),_(),h.style.opacity=s?0:1,T(1),d?setTimeout(function(){a()},d):a())},M={},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 Qe.length}},rn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},sn=function(t,e,n){var i=t.bounds;i.center.x=Math.round((M.x-e)/2),i.center.y=Math.round((M.y-n)/2)+t.vGap.top,i.max.x=e>M.x?Math.round(M.x-e):i.center.x,i.max.y=n>M.y?Math.round(M.y-n)+t.vGap.top:i.center.y,i.min.x=e>
1M.x?0:i.center.x,i.min.y=n>M.y?t.vGap.top:i.center.y},an=function(t,e,n){var i,o;return t.src&&!t.loadError?((i=!n)&&(t.vGap||(t.vGap={top:0,bottom:0}),I("parseVerticalMargin",t)),M.x=e.x,M.y=e.y-t.vGap.top-t.vGap.bottom,i&&(e=M.x/t.w,o=M.y/t.h,t.fitRatio=e<o?e:o,"orig"===(e=f.scaleMode)?n=1:"fit"===e&&(n=t.fitRatio),t.initialZoomLevel=n=1<n?1:n,t.bounds||(t.bounds=rn())),n?(sn(t,t.w*n,t.h*n),i&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds):void 0):(t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=rn(),t.initialPosition=t.bounds.center,t.bounds)},ln=function(t,e,n,i,o,r){e.loadError||i&&(e.imageAppended=!0,un(e,i,e===p.currItem&&Kt),n.appendChild(i),r)&&setTimeout(function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)},500)},un=function(t,e,n){var i;t.src&&(e=e||t.container.lastChild,i=n?t.w:Math.round(t.w*t.fitRatio),n=n?t.h:Math.round(t.h*t.fitRatio),t.placeholder&&!t.loaded&&(t.placeholder.style.width=i+"px",t.placeholder.style.height=n+"px"),e.style.width=i+"px",e.style.height=n+"px")};B("Controller",{publicMethods:{lazyLoadItem:function(t){t=N(t);var e=tn(t);e&&(!e.loaded&&!e.loading||st)&&(I("gettingData",t,e),e.src)&&Ke(e)},initController:function(){m.extend(f,on,!0),p.items=Qe=e,tn=p.getItemAt,D=f.getNumItemsFn,f.loop,D()<3&&(f.loop=!1),r("beforeChange",function(t){for(var e=f.preload,n=null===t||0<=t,i=Math.min(e[0],D()),o=Math.min(e[1],D()),r=1;r<=(n?o:i);r++)p.lazyLoadItem(g+r);for(r=1;r<=(n?i:o);r++)p.lazyLoadItem(g-r)}),r("initialLayout",function(){p.currItem.initialLayout=f.getThumbBoundsFn&&f.getThumbBoundsFn(g)}),r("mainScrollAnimComplete",$e),r("initialZoomInEnd",$e),r("destroy",function(){for(var t,e=0;e<Qe.length;e++)(t=Qe[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);nn=null})},getItemAt:function(t){return 0<=t&&void 0!==Qe[t]&&Qe[t]},allowProgressiveImg:function(){return f.forceProgressiveLoading||!o||f.mouseUsed||1200<screen.width},setContent:function(e,n){f.loop&&(n=N(n));var t=p.getItemAt(e.index);t&&(t.container=null);var i,o,r,t=p.getItemAt(n);t?(I("gettingData",n,t),e.index=n,o=(e.item=t).container=m.createEl("pswp__zoom-wrap"),!t.src&&t.html&&(t.html.tagName?o.appendChild(t.html):o.innerHTML=t.html),Ge(t),an(t,x),!t.src||t.loadError||t.loaded?t.src&&!t.loadError&&((i=m.createEl("pswp__img","img")).style.opacity=1,i.src=t.src,un(t,i),ln(n,t,o,i,!0)):(t.loadComplete=function(t){if($){if(e&&e.index===n){if(Ge(t,!0))return t.loadComplete=t.img=null,an(t,x),Vt(t),void(e.index===g&&p.updateCurrZoomItem());t.imageAppended?!Je&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null):a.transform&&(v||Je)?nn.push({item:t,baseDiv:o,img:t.img,index:n,holder:e,clearPlaceholder:!0}):ln(n,t,o,t.img,v||Je,!0)}t.loadComplete=null,t.img=null,I("imageLoadComplete",n,t)}},m.features.transform&&(r="pswp__img pswp__img--placeholder",r+=t.msrc?"":" pswp__img--placeholder--blank",r=m.createEl(r,t.msrc?"img":""),t.msrc&&(r.src=t.msrc),un(t,r),o.appendChild(r),t.placeholder=r),t.loading||Ke(t),p.allowProgressiveImg()&&(!Xe&&a.transform?nn.push({item:t,baseDiv:o,img:t.img,index:n,holder:e}):ln(n,t,o,t.img,!0,!0))),Xe||n!==g?Vt(t):(Dt=o.style,en(t,i||t.img)),e.el.innerHTML="",e.el.appendChild(o)):e.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});function cn(t,e,n){var i=document.createEvent("CustomEvent"),e={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,e),t.target.dispatchEvent(i)}var dn,R,hn={};B("Tap",{publicMethods:{initTap:function(){r("firstTouchStart",p.onTapStart),r("touchRelease",p.onTapRelease),r("destroy",function(){hn={},dn=null})},onTapStart:function(t){1<t.length&&(clearTimeout(dn),dn=null)},onTapRelease:function(t,e){var n,i,o;!e||Ot||St||se||(n=e,dn&&(clearTimeout(dn),dn=null,i=n,o=hn,Math.abs(i.x-o.x)<q)&&Math.abs(i.y-o.y)<q?I("doubleTap",n):"mouse"===e.type?cn(t,e,"mouse"):"BUTTON"===t.target.tagName.toUpperCase()||m.hasClass(t.target,"pswp__single-tap")?cn(t,e):(S(hn,n),dn=setTimeout(function(){cn(t,e),dn=null},300)))}}}),B("DesktopZoom",{publicMethods:{initDesktopZoom:function(){vt||(o?r("mouseUsed",function(){p.setupDesktopZoom()}):p.setupDesktopZoom(!0))},setupDesktopZoom:function(t){R={};var e="wheel mousewheel DOMMouseScroll";r("bindEvents",function(){m.bind(h,e,p.handleMouseWheel)}),r("unbindEvents",function(){R&&m.unbind(h,e,p.handleMouseWheel)}),p.mouseZoomedIn=!1;function n(){p.mouseZoomedIn&&(m.removeClass(h,"pswp--zoomed-in"),p.mou
1seZoomedIn=!1),y<1?m.addClass(h,"pswp--zoom-allowed"):m.removeClass(h,"pswp--zoom-allowed"),o()}var i,o=function(){i&&(m.removeClass(h,"pswp--dragging"),i=!1)};r("resize",n),r("afterChange",n),r("pointerDown",function(){p.mouseZoomedIn&&(i=!0,m.addClass(h,"pswp--dragging"))}),r("pointerUp",o),t||n()},handleMouseWheel:function(t){if(y<=p.currItem.fitRatio)return f.modal&&(!f.closeOnScroll||se||l?t.preventDefault():ht&&2<Math.abs(t.deltaY)&&(Q=!0,p.close())),!0;if(t.stopPropagation(),R.x=0,"deltaX"in t)1===t.deltaMode?(R.x=18*t.deltaX,R.y=18*t.deltaY):(R.x=t.deltaX,R.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(R.x=-.16*t.wheelDeltaX),R.y=t.wheelDeltaY?-.16*t.wheelDeltaY:-.16*t.wheelDelta;else{if(!("detail"in t))return;R.y=t.detail}ie(y,!0);var e=w.x-R.x,n=w.y-R.y;(f.modal||e<=d.min.x&&e>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&t.preventDefault(),p.panTo(e,n)},toggleDesktopZoom:function(t){t=t||{x:x.x/2+Ht.x,y:x.y/2+Ht.y};var e=f.getDoubleTapZoom(!0,p.currItem),n=y===e;p.mouseZoomedIn=!n,p.zoomTo(n?p.currItem.initialZoomLevel:e,t,333),m[(n?"remove":"add")+"Class"](h,"pswp--zoomed-in")}}});function mn(){fn&&clearTimeout(fn),yn&&clearTimeout(yn)}function pn(){var t=_n(),e={};if(!(t.length<5)){var n,i=t.split("&");for(r=0;r<i.length;r++)!i[r]||(n=i[r].split("=")).length<2||(e[n[0]]=n[1]);if(f.galleryPIDs){for(var o=e.pid,r=e.pid=0;r<Qe.length;r++)if(Qe[r].pid===o){e.pid=r;break}}else e.pid=parseInt(e.pid,10)-1;e.pid<0&&(e.pid=0)}return e}var fn,gn,yn,vn,wn,xn,n,bn,En,In,F,Cn,Tn={history:!0,galleryUID:1},_n=function(){return F.hash.substring(1)},Sn=function(){var t,e;yn&&clearTimeout(yn),se||l?yn=setTimeout(Sn,500):(vn?clearTimeout(gn):vn=!0,e=g+1,(t=tn(g)).hasOwnProperty("pid")&&(e=t.pid),t=n+"&gid="+f.galleryUID+"&pid="+e,bn||-1===F.hash.indexOf(t)&&(In=!0),e=F.href.split("#")[0]+"#"+t,Cn?"#"+t!==window.location.hash&&history[bn?"replaceState":"pushState"]("",document.title,e):bn?F.replace(e):F.hash=t,bn=!0,gn=setTimeout(function(){vn=!1},60))};B("History",{publicMethods:{initHistory:function(){var t,e;m.extend(f,Tn,!0),f.history&&(F=window.location,bn=En=In=!1,n=_n(),Cn="pushState"in history,-1<n.indexOf("gid=")&&(n=(n=n.split("&gid=")[0]).split("?gid=")[0]),r("afterChange",p.updateURL),r("unbindEvents",function(){m.unbind(window,"hashchange",p.onHashChange)}),t=function(){xn=!0,En||(In?history.back():n?F.hash=n:Cn?history.pushState("",document.title,F.pathname+F.search):F.hash=""),mn()},r("unbindEvents",function(){Q&&t()}),r("destroy",function(){xn||t()}),r("firstUpdate",function(){g=pn().pid}),-1<(e=n.indexOf("pid="))&&"&"===(n=n.substring(0,e)).slice(-1)&&(n=n.slice(0,-1)),setTimeout(function(){$&&m.bind(window,"hashchange",p.onHashChange)},40))},onHashChange:function(){return _n()===n?(En=!0,void p.close()):void(vn||(wn=!0,p.goTo(pn().pid),wn=!1))},updateURL:function(){mn(),wn||(bn?fn=setTimeout(Sn,800):Sn())}}}),m.extend(p,W)}}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).reframe=e()})(this,function(){function e(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),o=0,e=0;e<n;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}return function(t,o){return void 0===o&&(o="js-reframe"),("string"==typeof t?e(document.querySelectorAll(t)):"length"in t?e(t):[t]).forEach(function(t){var e,n,i;-1!==t.className.split(" ").indexOf(o)||-1<t.style.width.indexOf("%")||(e=t.getAttribute("height")||t.offsetHeight,n=t.getAttribute("width")||t.offsetWidth,e=("string"==typeof e?parseInt(e):e)/("string"==typeof n?parseInt(n):n)*100,(n=document.createElement("div")).className=o,(i=n.style).position="relative",i.width="100%",i.paddingTop=e+"%",(i=t.style).position="absolute",i.width="100%",i.height="100%",i.left="0",i.top="0",null!=(e=t.parentNode)&&e.insertBefore(n,t),null!=(i=t.parentNode)&&i.removeChild(t),n.appendChild(t))})}}),(()=>{var t=document.querySelector(".gh-burger");t&&t.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(),((e,n)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("jquery")):e.jQueryBridget=n(e,e.jQuery)})(window,function(t,e){function n(l,u,c){(c=c||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,i,o,r,s,a;
1return"string"==typeof t?(e=d.call(arguments,1),o=e,s="$()."+l+'("'+(i=t)+'")',(e=this).each(function(t,e){var n,e=c.data(e,l);e?(n=e[i])&&"_"!=i.charAt(0)?(n=n.apply(e,o),r=void 0===r?n:r):h(s+" is not a valid method"):h(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e):(a=t,this.each(function(t,e){var n=c.data(e,l);n?(n.option(a),n._init()):(n=new u(e,a),c.data(e,l,n))}),this)},i(c))}function i(t){t&&!t.bridget&&(t.bridget=n)}var d=Array.prototype.slice,o=t.console,h=void 0===o?function(){}:function(t){o.error(t)};return i(e||t.jQuery),n}),((t,e)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(t,r),delete i[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),((t,e)=>{"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()})(window,function(){function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function v(t){if(E||(E=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(c),r=y(c),w=200==Math.round(g(r.width)),v.isBoxSizeOuter=w,u.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<b;i++)n[x[i]]=0;return n}var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var r=o.isBorderBox="border-box"==e.boxSizing,s=0;s<b;s++){var a=x[s],l=e[a],l=parseFloat(l);o[a]=isNaN(l)?0:l}var u=o.paddingLeft+o.paddingRight,c=o.paddingTop+o.paddingBottom,t=o.marginLeft+o.marginRight,d=o.marginTop+o.marginBottom,h=o.borderLeftWidth+o.borderRightWidth,m=o.borderTopWidth+o.borderBottomWidth,p=r&&w,f=g(e.width),f=(!1!==f&&(o.width=f+(p?0:u+h)),g(e.height));return!1!==f&&(o.height=f+(p?0:c+m)),o.innerWidth=o.width-(u+h),o.innerHeight=o.height-(c+m),o.outerWidth=o.width+t,o.outerHeight=o.height+d,o}var c,u,r}var w,e="undefined"==typeof console?function(){}:function(t){console.error(t)},x=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=x.length,E=!1;return v}),((t,e)=>{"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()})(window,function(){var n=(()=>{var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}})();return function(t,e){return t[n](e)}}),((e,n)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("desandro-matches-selector")):e.fizzyUIUtils=n(e,e.matchesSelector)})(window,function(n,r){var l={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,u=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(r(t=t.parentNode,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,i){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(i){r(t,i)&&o.push(t);for(var e=t.querySelectorAll(i),n=0;n<e.length;n++)o.push(e[n])}else o.push(t)}),o},l.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(clearTimeout(t),arguments),n=this;this[r]=setTimeout(function(){o.apply(n,e),delete n[r]},i)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()},n.console);return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),i="data-"+t,e=document.querySelectorAll("["+i+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=i+"-options",r=n.jQuery;e.forEach(function(e){var t,n=e.getAttribute(i)||e.getAttribute(o);try{t=n&&JSON.parse(n)}catch(t){return void(u&&u.error("Error parsing "+i+" on "+e.className+": "+t))}n=new s(e,t);r&&r.data(e,a,n)})})},l}),((t,e)=>{"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))})(window,function(t,e){function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var i=document.documentElement.style,o="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],s={transform:i,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},t=n.prototype=Object.create(t.prototype),a=(t.constructor=n,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,n=this.element.style;for(e in t)n[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],t=t[n?"top":"bottom"],o=parseFloat(i),r=parseFloat(t),s=this.layout.size;-1!=i.indexOf("%")&&(o=o/100*s.width),-1!=t.indexOf("%")&&(r=r/100*s.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=e?s.paddingLeft:s.paddingRight,r-=n?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"right":"left",r=this.position.x+t[n?"paddingLeft":"paddingRight"],n=(e[n?"left":"right"]=this.getXValue(r),e[o]="",i?"paddingTop":"paddingBottom"),r=i?"bottom":"top",o=this.position.y+t[n];e[i?"top":"bottom"]=this.getYValue(o),e[r]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-n,e-i),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,n=this._transn;for(e in t.onTransitionEnd)n.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)n.ingProperties[e]=!0,t.isCleaning&&(n.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),l=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}
1),this.element.addEventListener(r,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),u=(t.ontransitionend=function(t){var e,n;t.target===this.element&&(e=this._transn,n=l[t.propertyName]||t.propertyName,delete e.ingProperties[n],(t=>{for(var e in t)return;return 1})(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd&&(e.onEnd[n].call(this),delete e.onEnd[n]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,n={};for(e in t)n[e]="";this.css(n)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(u)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),((o,r)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,n,i){return r(o,t,e,n,i)}):"object"==typeof module&&module.exports?module.exports=r(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=r(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)})(window,function(t,e,o,i,r){function s(t,e){var n=i.getQueryElement(t);n?(this.element=n,u&&(this.$element=u(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e),e=++c,this.element.outlayerGUID=e,(d[e]=this)._create(),this._getOption("initLayout")&&this.layout()):l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function n(){}var l=t.console,u=t.jQuery,c=0,d={},h=(s.namespace="outlayer",s.Item=r,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},s.prototype),m=(i.extend(h,e.prototype),h.option=function(t){i.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],o=0;o<e.length;o++){var r=new n(e[o],this);i.push(r)}return i},h._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0}
1,h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=o(this.element)},h._getMeasurement=function(t,e){var n,i=this.options[t];i?("string"==typeof i?n=this.element.querySelector(i):i instanceof HTMLElement&&(n=i),this[t]=n?o(n)[e]:i):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,n){var i;this._emitCompleteOnItems("layout",t),t&&t.length&&(i=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=n||t.isLayoutInstant,i.push(e)},this),this._processLayoutQueue(i))},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(m[e]||1):0),this.stagger)},h._positionItem=function(t,e,n,i,o){i?t.goTo(e,n):(t.stagger(o*this.stagger),t.moveTo(e,n))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},h._getContainerSize=n,h._setContainerMeasure=function(t,e){var n;void 0!==t&&((n=this.size).isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},h._emitCompleteOnItems=function(e,t){function n(){r.dispatchEvent(e+"Complete",null,[t])}function i(){++o==s&&n()}var o,r=this,s=t.length;t&&s?(o=0,t.forEach(function(t){t.once(e,i)})):n()},h.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;this.emitEvent(t,i),u&&(this.$element=this.$element||u(this.element),e?((i=u.Event(e)).type=t,this.$element.trigger(i,n)):this.$element.trigger(t,n))},h.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},h.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){i.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),i.makeArray(t)):void 0},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=n,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,t=o(t);return{left:e.left-n.left-t.marginLeft,top:e.top-n.top-t.marginTop,right:n.right-e.right-t.marginRight,bottom:n.bottom-e.bottom-t.marginBottom}},h.handleEvent=i.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},i.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},h.reveal=function(t){var n;this._emitCompleteOnItems("reveal",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.reveal()}))},h.hide=function(t){var n;this._emitCompleteOnItems("hide",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.hide()}))},h.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},h.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},h.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},h.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),i.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEac
1h(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete d[t],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=(t=i.getQueryElement(t))&&t.outlayerGUID;return t&&d[t]},s.create=function(t,e){var n=a(s);return n.defaults=i.extend({},s.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},s.compatOptions),n.namespace=t,n.data=s.data,n.Item=a(r),i.htmlInit(n,t),u&&u.bridget&&u.bridget(t,n),n},{ms:1,s:1e3});return s.Item=r,s}),((t,e)=>{"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)})(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,n=e/t,e=t-e%t,n=Math[e&&e<1?"round":"floor"](n);this.cols=Math.max(n,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),i={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,r=e+n.col,s=n.col;s<r;s++)this.colYs[s]=o;return i},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;i<n;i++)e[i]=this._getColGroupY(i,t);return e},e._getColGroupY=function(t,e){return e<2?this.colYs[t]:(t=this.colYs.slice(t,t+e),Math.max.apply(Math,t))},e._getHorizontalColPosition=function(t,e){var n=this.horizontalColIndex%this.cols,n=1<t&&n+t>this.cols?0:n,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),n=this._getOption("originLeft")?t.left:t.right,i=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(i/this.columnWidth);o-=i%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=n;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),$(function(){feed()});

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.