!function(){function t(){if(complete){const e=getattribute("data-lazy-src");if(e&&src!==e)return void addeventlistener("onload",t);const n=width,d=height;n&&n>0&&d&&d>0&&(setattribute("width",n),setattribute("height",d),i(this))}else addeventlistener("onload",t)}var e=function(){const e=queryselectorall("img[data-recalc-dims]");for(let i=0;i1?1:d)*l;if(scrolltop=n+p,u<=i+300&&a)return requestAnimationFrame(e);r&&r(),o&&(minheight=""),a=!1,removeeventlistener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&hasattribute(t))try{return parse(getattribute(t))}catch(e){return}},convertToPlainText:function(e){var t=createelement("div");return textcontent=e,innerhtml},stripHTML:function(e){return replace(/<[^>]*>?/gm,"")},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch(e){(o=createevent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}dispatchevent(o)},isTouch:function(){return"ontouchstart"in window||documenttouch&&document instanceof DocumentTouch}}}();function o(){var o,a,i,n,l="",s=!1,c="gallery, tiled-gallery, wp-block-gallery, blocks-gallery-grid, has-nested-images, wp-block-jetpack-tiled-gallery, single-image-gallery",u=".gallery-item, .tiled-gallery-item, .blocks-gallery-item, .tiled-gallery__item",d=u+", .wp-block-image",p={},m="undefined"!=typeof wpcom&&carousel&&stat?stat:noop,g="undefined"!=typeof wpcom&&carousel&&pageview?pageview:noop;function h(t){if(!s)switch(which){case 38:preventdefault(),scrolltop-=100;break;case 40:preventdefault(),scrolltop+=100;break;case 39:preventdefault(),slidenext();break;case 37:case 8:preventdefault(),slideprev();break;case 27:preventdefault(),b()}}function f(){s=!0}function v(){s=!1}function y(){overlay||(overlay=queryselector(".jp-carousel-overlay"),container=queryselector(".jp-carousel-wrap"),gallery=queryselector(".jp-carousel"),p=queryselector(".jp-carousel-info"),caption=queryselector(".jp-carousel-caption"),commentfield=queryselector("#jp-carousel-comment-form-comment-field"),emailfield=queryselector("#jp-carousel-comment-form-email-field"),authorfield=queryselector("#jp-carousel-comment-form-author-field"),urlfield=queryselector("#jp-carousel-comment-form-url-field"),innerwidth<=760&&round(innerwidth/760*110)<40&&istouch(),[commentfield,emailfield,authorfield,urlfield].forEach((function(e){e&&(addeventlistener("focus",f),addeventlistener("blur",v))})),addeventlistener("click",(function(e){var t,o,a=target,i=!!closest(a,".jp-carousel-close-hint"),n=!!matchmedia("(max-device-width: 760px)").matches;if(a===overlay){if(n)return;b()}else if(i)b();else if(contains("jp-carousel-image-download"))m("download_original_click");else if(contains("jp-carousel-comment-login"))t=currentslide,o=t?attachmentid:"0",href=login_url+"%23jp-carousel-"+o;else if(closest(a,"#jp-carousel-comment-form-container"))!function(e){var t=target,o=getjsonattribute(container,"data-carousel-extra")||{},a=attachmentid,i=queryselector("#jp-carousel-comment-form-submit-and-info-wrapper"),n=queryselector("#jp-carousel-comment-form-spinner"),l=queryselector("#jp-carousel-comment-form-button-submit"),s=queryselector("#jp-carousel-comment-form");if(commentfield&&getattribute("id")===getattribute("id"))f(),show(i);else if(matches(t,'input[type="submit"]')){preventdefault(),stoppropagation(),show(n),add("jp-carousel-is-disabled");var c={action:"post_attachment_comment",nonce:nonce,blog_id:blog_id,id:a,comment:value};if(!length)return void w(no_comment_text,!1);if(1!==Number(is_logged_in)&&(email=value,author=value,url=value,1===Number(require_name_email))){if(!length||!match("@"))return void w(no_comment_email,!1);if(!length)return void w(no_comment_author,!1)}var u=new XMLHttpRequest;open("POST",ajaxurl,!0),setrequestheader("X-Requested-With","XMLHttpRequest"),setrequestheader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),onreadystatechange=function(){if(readystate===done&&status>=200&&status<300){var e;try{e=parse(response)}catch(e){return void w(comment_post_error,!1)}"approved"===comment_status?w(comment_approved,!0):"unapproved"===comment_status?w(comment_unapproved,!0):w(comment_post_error,!1),E(),q(a),value=post_comment,hide(n),remove("jp-carousel-is-disabled")}else w(comment_post_error,!1)};var d=[];for(var m in c)if(m){var g=encodeURIComponent(m)+"="+encodeURIComponent(c[m]);push(replace(/%20/g,"+"))}var h=join("&");send(h)}}(e);else if(closest(a,".jp-carousel-photo-icons-container")||contains("jp-carousel-photo-title"))!function(e){preventdefault();var t=target,o=queryselector(".jp-carousel-info-extra"),a=queryselector(".jp-carousel-image-meta"),i=queryselector(".jp-carousel-comments-wrapper"),n=queryselector(".jp-carousel-icon-info"),l=queryselector(".jp-carousel-icon-comments");function s(){l&&remove("jp-carousel-selected"),toggle("jp-carousel-selected"),i&&remove("jp-carousel-show"),a&&(toggle("jp-carousel-show"),contains("jp-carousel-show")?add("jp-carousel-show"):remove("jp-carousel-show"))}function c(){n&&remove("jp-carousel-selected"),toggle("jp-carousel-selected"),a&&remove("jp-carousel-show"),i&&(toggle("jp-carousel-show"),contains("jp-carousel-show")?add("jp-carousel-show"):remove("jp-carousel-show"))}(closest(t,".jp-carousel-icon-info")||contains("jp-carousel-photo-title"))&&(a&&contains("jp-carousel-show")?scrolltoelement(overlay,overlay,s):(s(),scrolltoelement(p,overlay))),closest(t,".jp-carousel-icon-comments")&&(i&&contains("jp-carousel-show")?scrolltoelement(overlay,overlay,c):(c(),scrolltoelement(p,overlay)))}(e);else if(!closest(a,".jp-carousel-info"))return})),addeventlistener("keydown",h),addeventlistener("afteropen",(function(){v(),length<=1||(length<=5?show(queryselector(".jp-swiper-pagination")):show(queryselector(".jp-carousel-pagination")))})),addeventlistener("beforeclose",(function(){f(),removeproperty("height"),e&&enable(),hide(queryselector(".jp-swiper-pagination")),hide(queryselector(".jp-carousel-pagination"))})),addeventlistener("afterclose",(function(){pushstate?pushstate("",title,pathname+search):href="",l="",isopen=!1})),addeventlistener("touchstart",(function(e){length>1&&preventdefault()})))}function w(e,t){var o=queryselector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");innerhtml=''+e+"",hide(queryselector("#jp-carousel-comment-form-spinner")),queryselector("#jp-carousel-comment-form")remove("jp-carousel-is-disabled"),show(o)}function j(){var e=queryselectorall("a img[data-attachment-id]");call(e,(function(e){var t=parentelement,o=parentelement;if(!contains("gallery-icon")&&!closest(o,u)&&hasattribute("href")){var a=!1;getattribute("href").split("?")[0]===getattribute("data-orig-file").split("?")[0]&&1===Number(single_image_gallery_media_file)&&(a=!0),getattribute("href")===getattribute("data-permalink")&&(a=!0),a&&(add("single-image-gallery"),setattribute("data-carousel-extra",stringify({blog_id:Number(blog_id)})))}}))}function S(o){(!o||o<0||o>length)&&(o=0),currentslide=slides[o];var a,i,n=currentslide,s=attachmentid;!function(e){var t=el,r=attrs,o=queryselector("img");if(!hasattribute("data-loaded")){var a=!!previewimage,i=thumbsize;!a||i&&offsetwidth>width?src=src:src=previewimage,setattribute("itemprop","image"),setattribute("data-loaded",1)}}(slides[o]),1!==Number(display_background_image)||slides[o].backgroundImage||function(t){var r=el;e&&slides&&(r=slides[activeindex]);var o=originalelement;complete&&0!==naturalheight?A(t,r,o):onload=function(){A(t,r,o)}}(slides[o]),hide(caption),function(e){var t,o,a,i,n="",l="",s="";if(t=queryselector(".jp-carousel-photo-caption"),o=queryselector(".jp-carousel-caption"),a=queryselector(".jp-carousel-photo-title"),i=queryselector(".jp-carousel-photo-description"),hide(t),hide(o),hide(a),hide(i),n=k(caption)||"",l=k(title)||"",s=k(desc)||"",(n||l||s)&&(n&&(innerhtml=n,innerhtml=n,show(t),show(o)),striphtml(n)===striphtml(l)&&(l=""),striphtml(n)===striphtml(s)&&(s=""),striphtml(l)===striphtml(s)&&(s=""),s&&(innerhtml=s,show(i),l||n||(innerhtml=striphtml(s),show(t))),l)){var c=striphtml(l);innerhtml=c,n||(innerhtml=c,innerhtml=c,show(t)),show(a)}}({caption:caption,title:title,desc:desc}),function(e){if(!e||1!==Number(display_exif))return!1;var t=queryselector(".jp-carousel-image-meta ul-carousel-image-exif"),r="";for(var o in e){var a=e[o],i=meta_data||[];if(0!==parseFloat(a)&&length&&-1!==indexof(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=x(a);break;case"aperture":a="f/"+a}r+="

  • "+jetpackCarouselStrings[o]+"
    "+a+"
  • "}}innerhtml=r,removeproperty("display")}(slides[o]imagemeta),function(e){if(!e)return!1;var r,o=[origwidth,origheight],a=createelement("a");href=replace(/\?.+$/,""),r=null!==match(/^i[\d]{1}\.wp\.com$/i)?href:replace(/\?.+$/,"");var i=queryselector(".jp-carousel-download-text"),n=queryselector(".jp-carousel-image-download");innerhtml=applyreplacements(download_original,o),setattribute("href",r),removeproperty("display")}(n),1===Number(display_comments)&&(a=slides[o]commentsopened,i=queryselector(".jp-carousel-comment-form-container"),1===parseInt(a,10)?fadein(i):fadeout(i),q(s),hide(queryselector("#jp-carousel-comment-post-results")));var c=queryselector(".jp-carousel-pagination");if(c&&length>5){var u=o+1;innerhtml=""+u+" / "+length+""}stats&&((new Image).src=protocol+"//wp/gif?"+stats+"&post="+encodeURIComponent(s)+"&rand="+random()),g(s),hash=l="#jp-carousel-"+s}function b(){overflow=a,overflow=i,E(),f(),emitevent(overlay,"beforeclose"),scrollto(scrollx||pagexoffset||0,n||0),destroy(),isopen=!1,slides=[],currentslide=void 0,innerhtml="",fadeout(overlay,(function(){emitevent(overlay,"afterclose")}))}function L(e,t,r){var o=r?replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):replace(/.*-([\d]+x[\d]+)\..+$/,"$1"),a=o!==e?r?split("%2C"):split("x"):[t,0];return"9999"===a[0]&&(a[0]="0"),"9999"===a[1]&&(a[1]="0"),a}function x(e){return e>=1?round(10*e)/10+"s":"1/"+round(1/e)+"s"}function k(e){return!match(" ")&&match("_")?"":e}function q(e,t){var a=void 0===t,i=queryselector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");if(remove("jp-carousel-show"),clearInterval(o),e){(!t||t<1)&&(t=0);var n=queryselector(".jp-carousel-comments"),l=queryselector("#jp-carousel-comments-loading");show(l),a&&(hide(n),innerhtml="");var s=new XMLHttpRequest,c=ajaxurl+"?action=get_attachment_comments&nonce="+nonce+"&id="+e+"&offset="+t;open("GET",c),setrequestheader("X-Requested-With","XMLHttpRequest");var u=function(){fadein(n),fadeout(l)};onload=function(){if(currentslide&&attachmentid===e){var c,d=status>=200&&status<300;try{c=parse(responsetext)}catch(e){}if(!d||!c||!isarray(c))return u();a&&(innerhtml="");for(var m=0;m'+gravatar_markup+'
    '+author_markup+'
    '+date_gmt+"
    "+content+"
    ",appendchild(h),clearInterval(o),o=setInterval((function(){scrolltop+150>innerheight&&(q(e,t+10),clearInterval(o))}),300)}length>0&&(show(n),innertext=length,add("jp-carousel-show")),hide(l)}},onerror=u,send()}}function A(e,r,o){var a=getbackgroundimage(o);backgroundimage=a,backgroundimage="url("+a+")",backgroundsize="cover"}function E(){commentfield&&(value="")}function H(e,o){slides=[];var a={width:innerwidth,height:innerheight-64};0!==o&&((new Image).src=e[o].getAttribute("data-gallery-src"));var i=!!closest(e[0],"type-rectangular");call(e,(function(e,o){var n=closest(e,"a"),l=getattribute("data-orig-file")||getattribute("src-orig"),s=getattribute("data-attachment-id")||getattribute("data-id")||"0",c=queryselector('img[data-attachment-id="'+s+'"] + figcaption');c=c?innerhtml:getattribute("data-image-caption");var u={originalElement:e,attachmentId:s,commentsOpened:getattribute("data-comments-opened")||"0",imageMeta:getjsonattribute(e,"data-image-meta")||{},title:getattribute("data-image-title")||"",desc:getattribute("data-image-description")||"",mediumFile:getattribute("data-medium-file")||"",largeFile:getattribute("data-large-file")||"",origFile:l||"",thumbSize:{width:naturalwidth,height:naturalheight},caption:c||"",permalink:n&&getattribute("href"),src:l||getattribute("src")||""},d=closest(e,".tiled-gallery-item"),m=d&&queryselector(".tiled-gallery-caption"),g=m&&innerhtml;g&&(caption=g);var h=function(e){var t=getattribute("data-orig-size")||"";if(t){var r=split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:getattribute("data-original-width")||getattribute("width")||void 0,height:getattribute("data-original-height")||getattribute("height")||void 0}}(e);if(origwidth=width||width,origheight=height||height,"undefined"!=typeof wpcom&&carousel&&generateimgsrc?src=generateimgsrc(e,a):src=function(e){if("object"!=typeof e&&(e={}),void 0===origfile)return"";if(void 0===origwidth||void 0===maxwidth)return origfile;if(void 0===mediumfile||void 0===largefile)return origfile;var t=createelement("a");href=largefile;var r=/^i[0-2]\.wp\.com$/test(hostname),o=L(mediumfile,origwidth,r),a=L(largefile,origwidth,r),i=parseInt(a[0],10),n=parseInt(a[1],10),l=parseInt(o[0],10),s=parseInt(o[1],10);if(origmaxwidth=maxwidth,origmaxheight=maxheight,void 0!==devicepixelratio&&devicepixelratio>1&&(maxwidth=maxwidth*devicepixelratio,maxheight=maxheight*devicepixelratio),i>=maxwidth||n>=maxheight)return largefile;if(l>=maxwidth||s>=maxheight)return mediumfile;if(r){var c=lastindexof("?"),u=largefile;return-1!==c&&(u=substring(0,c),(origwidth>maxwidth||origheight>maxheight)&&(origmaxwidth=2*maxwidth,origmaxheight=2*maxheight,u+="?fit="+origmaxwidth+"%2C"+origmaxheight)),u}return origfile}({origFile:src,origWidth:origwidth,origHeight:origheight,maxWidth:width,maxHeight:height,mediumFile:mediumfile,largeFile:largefile}),setattribute("data-gallery-src",src),"0"!==attachmentid){title=texturize(title),desc=texturize(desc),caption=texturize(caption);var f=new Image;src=src;var v=createelement("div");add("swiper-slide"),setattribute("itemprop","associatedMedia"),setattribute("itemscope",""),setattribute("itemtype","#");var y=createelement("div");add("swiper-zoom-container"),appendchild(v),appendchild(y),appendchild(f),setattribute("data-attachment-id",attachmentid),setattribute("data-permalink",permalink),setattribute("data-orig-file",origfile),i&&(previewimage=src);var w={el:v,attrs:u,index:o};push(w)}}))}function T(e,t){if(!swiper670){var o=queryselector("#jp-carousel-loading-overlay");show(o);var a=createelement("script");return id="jetpack-carousel-swiper-js",src=url,async=!0,onload=function(){hide(o),C(e,t)},onerror=function(){hide(o)},void appendchild(a)}C(e,t)}function C(t,o){var l,s={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},c=getjsonattribute(t,"data-carousel-extra");if(c&&(y(),!isopen)){for(var u in isopen=!0,a=getComputedStyle(body).overflow,overflow="hidden",i=getComputedStyle(documentelement).overflow,overflow="hidden",n=scrolly||pageyoffset||0,setattribute("data-carousel-extra",stringify(c)),m(["open","view_image"]),o||{})s[u]=o[u];-1===startindex&&(startindex=0),emitevent(overlay,"beforeopen"),innerhtml="",opacity=1,display="block",H(queryselectorall(imgselector),startindex),(e=new swiper670(".jp-carousel-swiper-container",{centeredSlides:!0,zoom:!0,loop:length>1,enabled:length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:startindex,on:{init:function(){S(startindex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!istouch(),threshold:5})).on("slideChange",(function(e){S(0===activeindex?length-1:activeindex===length+1?0:activeindex-1),remove("jp-carousel-hide-controls")})),on("zoomChange",(function(e,t){t>1&&add("jp-carousel-hide-controls"),1===t&&remove("jp-carousel-hide-controls")})),on("doubleTap",(function(e){if(clearTimeout(l),1===scale)var t=setTimeout((function(){remove("jp-carousel-hide-controls"),clearTimeout(t)}),150)})),on("tap",(function(){scale>1&&(l=setTimeout((function(){toggle("jp-carousel-hide-controls")}),150))})),fadein(overlay,(function(){emitevent(overlay,"afteropen")}))}}addeventlistener("click",(function(e){if(css&&supports&&supports("display","grid")){var t,o=target,a=closest(o,c);if(a){if(!(t=a)||!getattribute("data-carousel-extra"))return;var i=parentelement,n=parentelement,l=null;if(n&&contains("wp-block-image")?l=getattribute("href"):i&&contains("wp-block-image")&&queryselector(":scope > a")&&(l=queryselector(":scope > a").getAttribute("href")),l&&split("?")[0]!==getattribute("data-orig-file").split("?")[0]&&l!==getattribute("data-permalink"))return;if(contains("gallery-caption"))return;if(matches(i,"figcaption"))return;height="auto",preventdefault(),stoppropagation();var s=closest(o,d),u=call(queryselectorall(d),s);T(a,{startIndex:u})}}})),1===Number(single_image_gallery)&&(j(),addeventlistener("post-load",(function(){j()}))),addeventlistener("hashchange",(function(){var t=/jp-carousel-(\d+)/;if(hash&&test(hash)){if(hash!==l||!isopen)if(hash&&gallery&&!isopen&&back)back();else{l=hash;for(var r,o,a=match(t),i=parseInt(a[1],10),n=queryselectorall(c),s=0;s