/* Do not modify this file directly. It is compiled from other files. */ !function(){function t(){if(this.complete){var e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)this.addEventListener("onload",t);else{var d=this.width,n=this.height;d&&d>0&&n&&n>0&&(this.setAttribute("width",d),this.setAttribute("height",n),i(this))}}else this.addEventListener("onload",t)}var e=function(){for(var e=document.querySelectorAll("img[data-recalc-dims]"),i=0;i :not(.carousel-nav) figure img, figure.has-lightbox.lightbox-").concat(e," > img")),g=document.querySelectorAll(".has-lightbox.lightbox-".concat(e," > :not(.carousel-nav) figure figcaption"));o.append(r,c),a.append(i,l),s.append(b),u.append(d),t.append(n,o,a,s,u),f.length>0&&(document.getElementsByTagName("BODY")[0].append(t),1===f.length&&(u.remove(),s.remove()));g.length>0&&Array.from(g).forEach((function(e,t){e.addEventListener("click",(function(){p(t)}))}));Array.from(f).forEach((function(e,t){e.closest("figure").addEventListener("click",(function(){p(t)}))})),s.addEventListener("click",(function(){p(m=0===m?f.length-1:m-1)})),u.addEventListener("click",(function(){p(m=m===f.length-1?0:m+1)})),n.addEventListener("click",(function(){t.style.display="none"})),c.addEventListener("click",(function(){t.style.display="none"}));var v={preloaded:!1,setPreloadImages:function(){v.preloaded||(v.preloaded=!0,Array.from(f).forEach((function(e,t){v["img-".concat(t)]=new window.Image,v["img-".concat(t)].src=e.attributes.src.value,v["img-".concat(t)]["data-caption"]=f[t]&&f[t].nextElementSibling?function(e){for(var t=e.nextElementSibling;t;){if(t.matches("figcaption"))return t.innerHTML;t=t.nextElementSibling}return""}(f[t]):""})),document.onkeydown=function(e){if(void 0!==t&&"none"!==t)switch((e=e||window.event).keyCode){case 27:c.click();break;case 37:case 65:s.click();break;case 39:case 68:u.click()}})}};function p(e){v.setPreloadImages(),m=e,t.style.display="flex",n.style.backgroundImage="url(".concat(v["img-".concat(m)].src,")"),i.src=v["img-".concat(m)].src,l.innerHTML=v["img-".concat(m)]["data-caption"],r.textContent="".concat(m+1," / ").concat(f.length)}}(t)}))}()}});; /* Do not modify this file directly. It is compiled from other files. */ /* global jetpackCarouselStrings, DocumentTouch */ jQuery(document).ready(function(e){var t,a,i,o,s,r,n,l,c,d,p,u,m,h,f,g,j,v,w,_=110,x=e("body").css("overflow"),b=e("html").css("overflow"),y="";window.innerWidth<=760&&(_=Math.round(window.innerWidth/760*110))<40&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(_=0),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()});var k=function(e){switch(e.which){case 38:e.preventDefault(),o.scrollTop(o.scrollTop()-100);break;case 40:e.preventDefault(),o.scrollTop(o.scrollTop()+100);break;case 39:e.preventDefault(),i.jp_carousel("next");break;case 37:case 8:e.preventDefault(),i.jp_carousel("previous");break;case 27:e.preventDefault(),o.jp_carousel("close")}},S=function(){clearTimeout(d),d=setTimeout(function(){i.jp_carousel("slides").jp_carousel("fitSlide",!0),i.jp_carousel("updateSlidePositions",!0),i.jp_carousel("fitMeta",!0)},200)},C=function(){e("a img[data-attachment-id]").each(function(){var t=e(this).parent();if(!t.parent(".gallery-icon").length&&void 0!==e(t).attr("href")){var a=!1;e(t).attr("href").split("?")[0]===e(this).attr("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),e(t).attr("href")===e(this).attr("data-permalink")&&(a=!0),a&&(e(t).addClass("single-image-gallery"),e(t).data("carousel-extra",{blog_id:Number(jetpackCarouselStrings.blog_id)}))}})},I={testForData:function(t){return!(!(t=e(t)).length||!t.data("carousel-extra"))},testIfOpened:function(){return!(void 0===i||void 0===i.opened||!i.opened)},openOrSelectSlide:function(t){e(this).jp_carousel("testIfOpened")?i.jp_carousel("selectSlideAtIndex",t):e(this).jp_carousel("open",{start_index:t})},open:function(d){var m={items_selector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id]",start_index:0},h=e(this).data("carousel-extra");if(h&&(function(){if(!t){t=e("
").addClass("jp-carousel-overlay").css({position:"fixed",top:0,right:0,bottom:0,left:0});var d=1==+jetpackCarouselStrings.display_comments,m=d?''+jetpackCarouselStrings.comment+"":"";Number(jetpackCarouselStrings.is_logged_in),m=e('"),c=e('

'),p=e('').append(c),f=e("
").addClass("jp-carousel-image-meta").css({float:"right","margin-top":"20px",width:"250px"}),0