diff --git a/assets/built/main.min.js b/assets/built/main.min.js index dbc259c..1aea49d 100644 --- a/assets/built/main.min.js +++ b/assets/built/main.min.js @@ -1,2 +1,2 @@ -function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){!function(t){t.preventDefault();for(var n,o=[],i=0,e=t.target.closest(".kg-card").previousSibling;e.classList.contains("kg-image-card")||e.classList.contains("kg-gallery-card");){var r=[];e.querySelectorAll("img").forEach(function(e){r.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),e=e.previousSibling,o=r.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 a=t.target.closest(".kg-card").nextSibling;a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card");)a.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})}),a=a.nextSibling;var l=document.querySelectorAll(".pswp")[0];new PhotoSwipe(l,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var t=o[e].el,e=window.pageYOffset||document.documentElement.scrollTop,t=t.getBoundingClientRect();return{x:t.left,y:t.top+e,w:t.width}}}).init()}(e)})})}function pagination(t){var n,o,i,r,a,l,s,c=document.querySelector(".gh-loadmore"),u=document.querySelector("link[rel=next]");function d(){if(404===this.status)return window.removeEventListener("scroll",m),window.removeEventListener("resize",f),void c.remove();this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) .gh-card").forEach(function(e){n.appendChild(document.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?u.href=e.href:(window.removeEventListener("scroll",m),window.removeEventListener("resize",f),c.remove()),s=document.documentElement.scrollHeight,r=i=!1}function e(){var e;r||(t&&a+l<=s-o?i=!1:(r=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",d),e.open("GET",u.href),e.send(null)))}function p(){i||window.requestAnimationFrame(e),i=!0}function m(){a=window.scrollY,p()}function f(){l=window.innerHeight,s=document.documentElement.scrollHeight,p()}u||!c?(n=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(r=i=!(o=300),a=window.scrollY,l=window.innerHeight,s=document.documentElement.scrollHeight,t?(window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",f),p()):c.addEventListener("click",p)):c.remove()}!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,l){function e(e){if(A)return!0;e=e||window.event,S.timeToIdle&&S.mouseUsed&&!x&&a();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i"+e.label+"",S.parseShareButtonOut&&(r=S.parseShareButtonOut(e,r));y.children[0].innerHTML=r,y.children[0].onclick=P}(),0}function r(e){for(var t=0;tS.fitControlsWidth?(t=S.barsSize,S.captionEl&&"auto"===t.bottom?(h||((h=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),m.insertBefore(h,f),l.addClass(m,"pswp__ui--fit")),S.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 d(){function e(e){if(e)for(var t=e.length,n=0;nt.min[e]?(n[e]=t.min[e],!0):n[e]=ot&&(he=0f.currItem.fitRatio&&zt(Q))}}var w,x,b,C,I,T,E,S,A,D,k,_,M,O,F,L,R,P,Z,z,N,U,H,K,q,B,W,Y,G,V,X,j,$,J,Q,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,pe,me,fe,he,ge,ve,ye,we,xe,be=o(),Ce=o(),Ie=o(),Te={},Ee=0,Se={},Ae=o(),De=0,ke=!0,_e=[],Me={},Oe=!1,Fe={},Le=function(e){var t=Fe[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;of.currItem.fitRatio?Oe||(an(f.currItem,!1,!0),Oe=!0):Oe&&(an(f.currItem),Oe=!1)),Ze(me,Ie.x,Ie.y,D))},Ne=function(e){e.container&&Ze(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ue=function(e,t){t[U]=_+e+"px, 0px"+M},He=function(e,t){var n;!h.loop&&t&&(n=C+(Ae.x*Ee-e)/Ae.x,t=Math.round(e-gt.x),(n<0&&0=jt()-1&&t<0)&&(e=gt.x+t*h.mainScrollEndFriction)),gt.x=e,Ue(e,I)},Ke=function(e,t){var n=vt[e]-Se[e];return Ce[e]+be[e]+n-t/k*n},qe=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Be=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},We=null,Ye=function(){We&&(m.unbind(document,"mousemove",Ye),m.addClass(p,"pswp--has_mouse"),h.mouseUsed=!0,Le("mouseUsed")),We=setTimeout(function(){We=null},100)},Ge=function(e,t){e=on(f.currItem,Te,e);return t&&(pe=e),e},Ve=function(e){return(e=e||f.currItem).initialZoomLevel},Xe=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},je={},$e=0,Je=function(e){je[e]&&(je[e].raf&&B(je[e].raf),$e--,delete je[e])},Qe=function(e){je[e]&&Je(e),je[e]||($e++,je[e]={})},et=function(){for(var e in je)je.hasOwnProperty(e)&&Je(e)},tt=function(e,t,n,o,i,r,a){var l,s=Re();Qe(e);function c(){if(je[e]){if(l=Re()-s,o<=l)return Je(e),r(n),void(a&&a());r((n-t)*i(l/o)+t),je[e].raf=q(c)}}c()},t={shout:Le,listen:l,viewportSize:Te,options:h,isMainScrollAnimating:function(){return fe},getZoomLevel:function(){return D},getCurrentIndex:function(){return C},isDragging:function(){return oe},isZooming:function(){return ue},setScrollOffset:function(e,t){Se.x=e,V=Se.y=t,Le("updateScrollOffset",Se)},applyZoomPan:function(e,t,n,o){Ie.x=t,Ie.y=n,D=e,ze(o)},init:function(){if(!w&&!x){var e;f.framework=m,f.template=p,f.bg=m.getChildByClass(p,"pswp__bg"),W=p.className,w=!0,X=m.detectFeatures(),q=X.raf,B=X.caf,U=X.transform,G=X.oldIE,f.scrollWrap=m.getChildByClass(p,"pswp__scroll-wrap"),f.container=m.getChildByClass(f.scrollWrap,"pswp__container"),I=f.container.style,f.itemHolders=L=[{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}],L[0].el.style.display=L[2].el.style.display="none",function(){if(U){var e=X.perspective&&!K;return _="translate"+(e?"3d(":"("),M=X.perspective?", 0px)":")"}U="left",m.addClass(p,"pswp--ie"),Ue=function(e,t){t.left=e+"px"},Ne=function(e){var t=1=jt())&&(C=0),f.currItem=Xt(C),(X.isOldIOSPhone||X.isOldAndroid)&&(ke=!1),p.setAttribute("aria-hidden","false"),h.modal&&(ke?p.style.position="fixed":(p.style.position="absolute",p.style.top=m.getScrollY()+"px")),void 0===V&&(Le("initialLayout"),V=Y=m.getScrollY());t="pswp--open ";for(h.mainClass&&(t+=h.mainClass+" "),h.showHideOpacity&&(t+="pswp--animate_opacity "),t+=K?"pswp--touch":"pswp--notouch",t+=X.animationName?" pswp--css_animation":"",t+=X.svg?" pswp--svg":"",m.addClass(p,t),f.updateSize(),T=-1,De=null,e=0;e<3;e++)Ue((e+T)*Ae.x,L[e].el.style);G||m.bind(f.scrollWrap,S,f),l("initialZoomInEnd",function(){f.setContent(L[0],C-1),f.setContent(L[2],C+1),L[0].el.style.display=L[2].el.style.display="block",h.focus&&p.focus(),m.bind(document,"keydown",f),X.transform&&m.bind(f.scrollWrap,"click",f),h.mouseUsed||m.bind(document,"mousemove",Ye),m.bind(window,"resize scroll orientationchange",f),Le("bindEvents")}),f.setContent(L[1],C),f.updateCurrItem(),Le("afterInit"),ke||(O=setInterval(function(){$e||oe||ue||D!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),m.addClass(p,"pswp--visible")}},close:function(){w&&(x=!(w=!1),Le("close"),m.unbind(window,"resize scroll orientationchange",f),m.unbind(window,"scroll",A.scroll),m.unbind(document,"keydown",f),m.unbind(document,"mousemove",Ye),X.transform&&m.unbind(f.scrollWrap,"click",f),oe&&m.unbind(window,E,f),clearTimeout(j),Le("unbindEvents"),$t(f.currItem,null,!0,f.destroy))},destroy:function(){Le("destroy"),Wt&&clearTimeout(Wt),p.setAttribute("aria-hidden","true"),p.className=W,O&&clearInterval(O),m.unbind(f.scrollWrap,S,f),m.unbind(window,"scroll",f),bt(),et(),Fe=null},panTo:function(e,t,n){n||(e>pe.min.x?e=pe.min.x:epe.min.y?t=pe.min.y:tpe.min[e]||rpe.min[e]&&(c=h.panEndFriction,pe.min[e],n=pe.min[e]-Ce[e]),(n<=0||s<0)&&1ut.x&&(i=ut.x)):pe.min.x!==pe.max.x&&(o=r)):(rf.currItem.fitRatio&&(Ie[e]+=t[e]*c)):(void 0!==i&&(He(i,!0),se=i!==ut.x),pe.min.x!==pe.max.x&&(void 0!==o?Ie.x=o:se||(Ie.x+=t.x*c)),void 0!==i)},Pt=function(){if(ce){var e,t,n,o,i=ce.length;if(0!==i)if(qe(it,ce[0]),at.x=it.x-lt.x,at.y=it.y-lt.y,ue&&1f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(we=!0),t=1,n=Ve(),o=Xe(),r=ot&&(at.x-=ce[0].x-st.x),Math.abs(at.y)>=ot&&(at.y-=ce[0].y-st.y)),lt.x=it.x,lt.y=it.y,0!==at.x||0!==at.y)){if("v"===he&&h.closeOnVerticalDrag&&!It()){be.y+=at.y,Ie.y+=at.y;var r=_t();return te=!0,Le("onVerticalDrag",r),Pe(r),void ze()}kt(Re(),it.x,it.y),ae=!0,pe=f.currItem.bounds,Rt("x",at)||(Rt("y",at),Be(Ie),ze())}}},Zt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1pe.min[t]?o.backAnimDestination[t]=pe.min[t]:Ie[t]=jt()&&(C=h.loop?0:jt()-1,i=!0),i&&!h.loop||(De+=r,Ee-=r,n=!0));var i=Ae.x*Ee,r=Math.abs(i-gt.x),a=n||i>gt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Yt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var o=e.bounds;o.center.x=Math.round((Jt.x-t)/2),o.center.y=Math.round((Jt.y-n)/2)+e.vGap.top,o.max.x=t>Jt.x?Math.round(Jt.x-t):o.center.x,o.max.y=n>Jt.y?Math.round(Jt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Jt.x?0:o.center.x,o.min.y=n>Jt.y?e.vGap.top:o.center.y},on=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds;var o,i=!n;return i&&(e.vGap||(e.vGap={top:0,bottom:0}),Le("parseVerticalMargin",e)),Jt.x=t.x,Jt.y=t.y-e.vGap.top-e.vGap.bottom,i&&(o=Jt.x/e.w,t=Jt.y/e.h,e.fitRatio=o=pe.max.x&&n<=pe.min.y&&n>=pe.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Te.x/2+Se.x,y:Te.y/2+Se.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=D===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),m[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function dn(){mn&&clearTimeout(mn),hn&&clearTimeout(hn)}function pn(){var e=Sn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(r=0;r .kg-image, .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(","))),pagination(!1); +function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){!function(t){t.preventDefault();for(var n,o=[],i=0,e=t.target.closest(".kg-card").previousElementSibling;e&&(e.classList.contains("kg-image-card")||e.classList.contains("kg-gallery-card"));){var r=[];e.querySelectorAll("img").forEach(function(e){r.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),e=e.previousElementSibling,o=r.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 a=t.target.closest(".kg-card").nextElementSibling;a&&(a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card"));)a.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})}),a=a.nextElementSibling;var l=document.querySelectorAll(".pswp")[0];new PhotoSwipe(l,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var t=o[e].el,e=window.pageYOffset||document.documentElement.scrollTop,t=t.getBoundingClientRect();return{x:t.left,y:t.top+e,w:t.width}}}).init()}(e)})})}function pagination(t){var n,o,i,r,a,l,s,c=document.querySelector(".gh-loadmore"),u=document.querySelector("link[rel=next]");function d(){if(404===this.status)return window.removeEventListener("scroll",p),window.removeEventListener("resize",f),void c.remove();this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) .gh-card").forEach(function(e){n.appendChild(document.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?u.href=e.href:(window.removeEventListener("scroll",p),window.removeEventListener("resize",f),c.remove()),s=document.documentElement.scrollHeight,r=i=!1}function e(){var e;r||(t&&a+l<=s-o?i=!1:(r=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",d),e.open("GET",u.href),e.send(null)))}function m(){i||window.requestAnimationFrame(e),i=!0}function p(){a=window.scrollY,m()}function f(){l=window.innerHeight,s=document.documentElement.scrollHeight,m()}u||!c?(n=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(r=i=!(o=300),a=window.scrollY,l=window.innerHeight,s=document.documentElement.scrollHeight,t?(window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",f),m()):c.addEventListener("click",m)):c.remove()}!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,l){function e(e){if(A)return!0;e=e||window.event,S.timeToIdle&&S.mouseUsed&&!x&&a();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i