(()=>{var t={94107:(t,e,n)=>{"use strict";n.d(e,{A:()=>O});var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),k="undefined"!=typeof WeakMap?new WeakMap:new i,E=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),i=new g(e,n,this);k.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){var e;return(e=k.get(this))[t].apply(e,arguments)}}));const O=void 0!==o.ResizeObserver?o.ResizeObserver:E},33170:(t,e,n)=>{"use strict";async function i(t=".wp-block-jetpack-slideshow_container",e={},n={}){const i={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map((([t,e])=>[t,function(){e(this)}])))};let r;if(window.JetpackSwiper)r=window.JetpackSwiper;else{const t=window.Jetpack_Block_Assets_Base_Url+"swiper.css";if(!document.querySelector(`link[href="${t}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=t,document.head.appendChild(e)}if(await import(window.Jetpack_Block_Assets_Base_Url+"swiper.js"),!window.JetpackSwiper)throw new Error("Failed to load Jetpack Swiper bundle");r=window.JetpackSwiper}return new r(t,{...i,...e})}n.d(e,{A:()=>i})},30889:(t,e,n)=>{"use strict";n.d(e,{y:()=>r});var i=n(27723);const __=i.__;function r(t,e,n){let r="";if(n<=5)for(let t=1;t<=n;t++){r+=''}else r+=`
${e} / ${n}
`;return r}},34308:(t,e,n)=>{"use strict";n.d(e,{WF:()=>u,bz:()=>l,n7:()=>d,rQ:()=>c});var i=n(89877);const r=16/9,o=.8,s=600,a="wp-block-jetpack-slideshow_autoplay-paused";function c(t){t.slides.length>1&&(t.loopDestroy(),t.params.loop=!0,t.loopCreate(),t.update()),l(t),u(t),t.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){t.el&&(t.el.classList.contains(a)?(t.el.classList.remove(a),t.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(t.el.classList.add(a),t.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function l(t){if(!t||!t.el)return;const e=t.params.loop?t.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img'):t.el.querySelector(".swiper-slide img");if(!e)return;const n=e.naturalWidth/e.naturalHeight,i=Math.max(Math.min(n,r),1),a="undefined"!=typeof window?window.innerHeight*o:s,c=Math.min(t.width/i,a),l=`${Math.floor(c)}px`,u=`${Math.floor(c/2)}px`;t.el.classList.add("wp-swiper-initialized"),t.wrapperEl.style.height=l,t.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,t.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(t){(t.slides||[]).forEach(((e,n)=>{e.setAttribute("aria-hidden",n===t.activeIndex?"false":"true"),n===t.activeIndex?e.setAttribute("tabindex","-1"):e.removeAttribute("tabindex")})),function(t){const e=t.slides[t.activeIndex];if(!e)return;const n=e.getElementsByTagName("FIGCAPTION")[0],r=e.getElementsByTagName("IMG")[0];t.a11y.liveRegion&&(t.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,i.escapeHTML)(r.alt))}(t)}function d(t){(t.pagination.bullets||[]).forEach((e=>{e.addEventListener("click",(()=>{const e=t.slides[t.realIndex];setTimeout((()=>{e.focus()}),500)}))}))}},63728:(t,e,n)=>{"use strict";function i(){const t=(t,e)=>{const n=t.querySelector(".wp-site-blocks");if(!n)return;const{paddingLeft:i,paddingRight:r}=window.getComputedStyle(n),o=parseFloat(i)+parseFloat(r);t.querySelectorAll(e?".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow":".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow:not(.entry-content .wp-block-jetpack-slideshow)").forEach((t=>{t.style.maxWidth=`calc(100vw - ${o}px)`}))};t(document,!1);document.querySelectorAll("iframe").forEach((e=>{const n=e.contentDocument,i=e.closest("#editor");if(n&&i){n.querySelectorAll(".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow").forEach((t=>{t.style.maxWidth="inherit"}))}else n&&t(n,!0)}))}n.d(e,{A:()=>i})},79366:(t,e,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},98490:t=>{"use strict";t.exports=window.wp.domReady},89877:t=>{"use strict";t.exports=window.wp.escapeHtml},27723:t=>{"use strict";t.exports=window.wp.i18n}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var r=i.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=i[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t+"../"})(),(()=>{"use strict";n(79366)})(),(()=>{"use strict";var t=n(98490),e=n.n(t),i=n(94107),r=n(33170),o=n(30889),s=n(34308),a=n(63728);"undefined"!=typeof window&&e()((function(){(0,a.A)();const t=document.getElementsByClassName("wp-block-jetpack-slideshow");Array.from(t).forEach((t=>{if("true"===t.getAttribute("data-jetpack-block-initialized"))return;const{autoplay:e,delay:n,effect:a}=t.dataset,c=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=e&&!c,u=t.querySelector(".wp-block-jetpack-slideshow_container");let d=null;(0,r.A)(u,{autoplay:!!l&&{delay:1e3*n,disableOnInteraction:!1},effect:a,init:!0,initialSlide:0,loop:!1,keyboard:{enabled:!0,onlyInViewport:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"custom",renderCustom:o.y}},{init:s.rQ,imagesReady:s.bz,paginationRender:s.n7,transitionEnd:s.WF}).then((t=>{new i.A((()=>{d&&(cancelAnimationFrame(d),d=null),d=requestAnimationFrame((()=>{(0,s.bz)(t),t.update()}))})).observe(t.el)})).catch((()=>{t.querySelector(".wp-block-jetpack-slideshow_container").classList.add("wp-swiper-initialized")})),t.setAttribute("data-jetpack-block-initialized","true")}))}))})()})();