From 8d6c626b87c2eb1ac404c33b0d6e1eb7bc61ef53 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Thu, 14 Jul 2022 15:00:45 +0800 Subject: [PATCH] Rebuild assets --- assets/built/main.min.js | 2 +- assets/built/main.min.js.map | 2 +- assets/built/screen.css | 2 +- assets/built/screen.css.map | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/built/main.min.js b/assets/built/main.min.js index 82d98c0..6efafa8 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){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(o,i){var r,n,a,s,t,l,c,u=document.querySelector(".gh-loadmore"),m=document.querySelector("link[rel=next]");function p(){if(404===this.status)return window.removeEventListener("scroll",f),window.removeEventListener("resize",h),void u.remove();var e=this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *"),t=document.createDocumentFragment(),n=[],e=(e.forEach(function(e){e=document.importNode(e,!0);i&&(e.style.position="absolute",e.style.visibility="hidden",n.push(e)),t.appendChild(e)}),r.appendChild(t),i&&i(n),this.response.querySelector("link[rel=next]"));e?m.href=e.href:(window.removeEventListener("scroll",f),window.removeEventListener("resize",h),u&&u.remove()),c=document.documentElement.scrollHeight,s=a=!1,o&&imagesLoaded(r,function(){r.getBoundingClientRect().bottom<=l&&(console.log(r.getBoundingClientRect().bottom,l),d())})}function e(){var e;s||(o&&t+l<=c-n?a=!1:(s=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",p),e.open("GET",m.href),e.send(null)))}function d(){a||window.requestAnimationFrame(e),a=!0}function f(){t=window.scrollY,d()}function h(){l=window.innerHeight,c=document.documentElement.scrollHeight,d()}m||!u?(r=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(s=a=!(n=300),t=window.scrollY,l=window.innerHeight,c=document.documentElement.scrollHeight,o?(window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",h),d()):u.addEventListener("click",d)):u.remove()}!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let n=this._events=this._events||{},o=n[e]=n[e]||[];return o.includes(t)||o.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this},t.off=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;e=n.indexOf(t);return-1!=e&&n.splice(e,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;n=n.slice(0),t=t||[];let o=this._onceEvents&&this._onceEvents[e];for(var i of n)o&&o[i]&&(this.off(e,i),delete o[i]),i.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.forEach(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 d(e){if(_)return!0;e=e||window.event,c.timeToIdle&&c.mouseUsed&&!T&&g();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i"+e.label+"",c.parseShareButtonOut&&(i=c.parseShareButtonOut(e,i));a.children[0].innerHTML=i,a.children[0].onclick=P}}function h(e){for(var t=0;tc.fitControlsWidth?(t=c.barsSize,c.captionEl&&"auto"===t.bottom?(E||((E=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),l.insertBefore(E,b),s.addClass(l,"pswp__ui--fit")),c.addCaptionHTMLFn(e,E,!0)?(e=E.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 x(){function e(e){if(e)for(var t=e.length,n=0;nt.min[e]?(n[e]=t.min[e],!0):n[e]=ot&&(ye=0f.currItem.fitRatio&&zt(ne))}}var T,S,k,g,A,D,_,L,O,y,M,F,R,P,Z,z,N,q,B,U,H,K,W,j,Y,G,V,X,Q,$,a,J,ee,te,ne,oe,ie,re,ae,se,le,ce,ue,de,me,pe,fe,u,he,ge,ye,ve,we,xe,be,Ee,Ie=o(),Ce=o(),v=o(),Te={},Se=0,ke={},Ae=o(),De=0,_e=!0,Le=[],Oe={},Me=!1,Fe={},w=function(e){var t=Fe[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;of.currItem.fitRatio?Me||(an(f.currItem,!1,!0),Me=!0):Me&&(an(f.currItem),Me=!1)),Ze(he,v.x,v.y,y))},Ne=function(e){e.container&&Ze(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},qe=function(e,t){t[K]=F+e+"px, 0px"+R},Be=function(e,t){var n;!h.loop&&t&&(t=g+(Ae.x*Se-e)/Ae.x,n=Math.round(e-gt.x),(t<0&&0=Xt()-1&&n<0)&&(e=gt.x+n*h.mainScrollEndFriction)),gt.x=e,qe(e,A)},Ue=function(e,t){var n=yt[e]-ke[e];return Ce[e]+Ie[e]+n-t/M*n},He=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Ke=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},We=null,je=function(){We&&(p.unbind(document,"mousemove",je),p.addClass(m,"pswp--has_mouse"),h.mouseUsed=!0,w("mouseUsed")),We=setTimeout(function(){We=null},100)},Ye=function(e,t){e=on(f.currItem,Te,e);return t&&(u=e),e},Ge=function(e){return(e=e||f.currItem).initialZoomLevel},Ve=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},Xe={},Qe=0,$e=function(e){Xe[e]&&(Xe[e].raf&&G(Xe[e].raf),Qe--,delete Xe[e])},Je=function(e){Xe[e]&&$e(e),Xe[e]||(Qe++,Xe[e]={})},et=function(){for(var e in Xe)Xe.hasOwnProperty(e)&&$e(e)},tt=function(e,t,n,o,i,r,a){function s(){if(Xe[e]){if(l=Re()-c,o<=l)return $e(e),r(n),void(a&&a());r((n-t)*i(l/o)+t),Xe[e].raf=Y(s)}}var l,c=Re();Je(e);s()},t={shout:w,listen:l,viewportSize:Te,options:h,isMainScrollAnimating:function(){return ge},getZoomLevel:function(){return y},getCurrentIndex:function(){return g},isDragging:function(){return ae},isZooming:function(){return pe},setScrollOffset:function(e,t){ke.x=e,$=ke.y=t,w("updateScrollOffset",ke)},applyZoomPan:function(e,t,n,o){v.x=t,v.y=n,y=e,ze(o)},init:function(){if(!T&&!S){f.framework=p,f.template=m,f.bg=p.getChildByClass(m,"pswp__bg"),V=m.className,T=!0,a=p.detectFeatures(),Y=a.raf,G=a.caf,K=a.transform,Q=a.oldIE,f.scrollWrap=p.getChildByClass(m,"pswp__scroll-wrap"),f.container=p.getChildByClass(f.scrollWrap,"pswp__container"),A=f.container.style,f.itemHolders=z=[{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}],z[0].el.style.display=z[2].el.style.display="none",function(){var e;if(K)return e=a.perspective&&!j,F="translate"+(e?"3d(":"("),R=a.perspective?", 0px)":")";K="left",p.addClass(m,"pswp--ie"),qe=function(e,t){t.left=e+"px"},Ne=function(e){var t=1=Xt())&&(g=0),f.currItem=Vt(g),(a.isOldIOSPhone||a.isOldAndroid)&&(_e=!1),m.setAttribute("aria-hidden","false"),h.modal&&(_e?m.style.position="fixed":(m.style.position="absolute",m.style.top=p.getScrollY()+"px")),void 0===$&&(w("initialLayout"),$=X=p.getScrollY());t="pswp--open ";for(h.mainClass&&(t+=h.mainClass+" "),h.showHideOpacity&&(t+="pswp--animate_opacity "),t=(t=(t+=j?"pswp--touch":"pswp--notouch")+(a.animationName?" pswp--css_animation":""))+(a.svg?" pswp--svg":""),p.addClass(m,t),f.updateSize(),D=-1,De=null,e=0;e<3;e++)qe((e+D)*Ae.x,z[e].el.style);Q||p.bind(f.scrollWrap,L,f),l("initialZoomInEnd",function(){f.setContent(z[0],g-1),f.setContent(z[2],g+1),z[0].el.style.display=z[2].el.style.display="block",h.focus&&m.focus(),p.bind(document,"keydown",f),a.transform&&p.bind(f.scrollWrap,"click",f),h.mouseUsed||p.bind(document,"mousemove",je),p.bind(window,"resize scroll orientationchange",f),w("bindEvents")}),f.setContent(z[1],g),f.updateCurrItem(),w("afterInit"),_e||(P=setInterval(function(){Qe||ae||pe||y!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),p.addClass(m,"pswp--visible")}},close:function(){T&&(S=!(T=!1),w("close"),p.unbind(window,"resize scroll orientationchange",f),p.unbind(window,"scroll",O.scroll),p.unbind(document,"keydown",f),p.unbind(document,"mousemove",je),a.transform&&p.unbind(f.scrollWrap,"click",f),ae&&p.unbind(window,_,f),clearTimeout(J),w("unbindEvents"),Qt(f.currItem,null,!0,f.destroy))},destroy:function(){w("destroy"),Wt&&clearTimeout(Wt),m.setAttribute("aria-hidden","true"),m.className=V,P&&clearInterval(P),p.unbind(f.scrollWrap,L,f),p.unbind(window,"scroll",f),bt(),et(),Fe=null},panTo:function(e,t,n){n||(e>u.min.x?e=u.min.x:eu.min.y?t=u.min.y:tu.min[e]||ru.min[e]&&(c=h.panEndFriction,u.min[e],n=u.min[e]-Ce[e]),(n<=0||l<0)&&1ut.x&&(i=ut.x)):u.min.x!==u.max.x&&(o=r)):(rf.currItem.fitRatio&&(v[e]+=t[e]*c)):(void 0!==i&&(Be(i,!0),de=i!==ut.x),u.min.x!==u.max.x&&(void 0!==o?v.x=o:de||(v.x+=t.x*c)),void 0!==i)},Pt=function(){if(me){var e,t,n,o,i,r=me.length;if(0!==r)if(He(it,me[0]),at.x=it.x-st.x,at.y=it.y-st.y,pe&&1f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(be=!0),t=1,n=Ge(),o=Ve(),e=ot&&(at.x-=me[0].x-lt.x),Math.abs(at.y)>=ot&&(at.y-=me[0].y-lt.y)),st.x=it.x,st.y=it.y,0!==at.x||0!==at.y)){if("v"===ye&&h.closeOnVerticalDrag&&!It())return Ie.y+=at.y,v.y+=at.y,i=_t(),ie=!0,w("onVerticalDrag",i),Pe(i),void ze();Dt(Re(),it.x,it.y),ce=!0,u=f.currItem.bounds,Rt("x",at)||(Rt("y",at),Ke(v),ze())}}},Zt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1u.min[t]?o.backAnimDestination[t]=u.min[t]:v[t]=Xt()&&(g=h.loop?0:Xt()-1,i=!0),i&&!h.loop||(De+=o,Se-=o,n=!0));var e=Ae.x*Se,r=Math.abs(e-gt.x),a=n||e>gt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return jt.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(($t.x-t)/2),o.center.y=Math.round(($t.y-n)/2)+e.vGap.top,o.max.x=t>$t.x?Math.round($t.x-t):o.center.x,o.max.y=n>$t.y?Math.round($t.y-n)+e.vGap.top:o.center.y,o.min.x=t>$t.x?0:o.center.x,o.min.y=n>$t.y?e.vGap.top:o.center.y},on=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),w("parseVerticalMargin",e)),$t.x=t.x,$t.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=$t.x/e.w,i=$t.y/e.h,e.fitRatio=t=u.max.x&&n<=u.min.y&&n>=u.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Te.x/2+ke.x,y:Te.y/2+ke.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=y===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),p[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function dn(){pn&&clearTimeout(pn),hn&&clearTimeout(hn)}function mn(){var e=Sn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(r=0;r .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(","))),pagination(!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(o,i){var r,t,a,s,n,l,c,u=document.querySelector(".gh-loadmore"),d=document.querySelector("link[rel=next]");function m(){if(404===this.status)return window.removeEventListener("scroll",f),window.removeEventListener("resize",h),void u.remove();var e=this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *"),t=document.createDocumentFragment(),n=[],e=(e.forEach(function(e){e=document.importNode(e,!0);i&&(e.style.position="absolute",e.style.visibility="hidden",n.push(e)),t.appendChild(e)}),r.appendChild(t),i&&i(n),this.response.querySelector("link[rel=next]"));e?d.href=e.href:(window.removeEventListener("scroll",f),window.removeEventListener("resize",h),u&&u.remove()),c=document.documentElement.scrollHeight,s=a=!1,o&&imagesLoaded(r,function(){r.getBoundingClientRect().bottom<=l&&(console.log(r.getBoundingClientRect().bottom,l),p())})}function e(){var e;s||(o&&n+l<=c-t?a=!1:(s=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",m),e.open("GET",d.href),e.send(null)))}function p(){a||window.requestAnimationFrame(e),a=!0}function f(){n=window.scrollY,p()}function h(){l=window.innerHeight,c=document.documentElement.scrollHeight,p()}!d&&u?u.remove():(r=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(s=a=!(t=300),n=window.scrollY,l=window.innerHeight,c=document.documentElement.scrollHeight,o?(window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",h),p()):u.addEventListener("click",p))}!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let n=this._events=this._events||{},o=n[e]=n[e]||[];return o.includes(t)||o.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this},t.off=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;e=n.indexOf(t);return-1!=e&&n.splice(e,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;n=n.slice(0),t=t||[];let o=this._onceEvents&&this._onceEvents[e];for(var i of n)o&&o[i]&&(this.off(e,i),delete o[i]),i.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.forEach(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(S)return!0;e=e||window.event,T.timeToIdle&&T.mouseUsed&&!w&&l();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i