(()=>{"use strict";var o={n:e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e)};const e=window.jQuery;var t=o.n(e);const{VPData:n,VPPopupAPI:s}=window,{__,settingsPopupGallery:a}=n,c=t()(document),r=t()(window);if(void 0!==t().fancybox&&s){let o;s.vendor="fancybox",s.open=function(e,n,c){const r=[];e.forEach((o=>{"embed"===o.type&&o.src?r.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height,caption:o.caption}}):"embed"===o.type&&o.embed?r.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height,caption:o.caption}}):r.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));const h=[];a.show_zoom_button&&h.push("zoom"),a.show_fullscreen_button&&h.push("fullScreen"),a.show_slideshow&&h.push("slideShow"),a.show_thumbs&&h.push("thumbs"),a.show_share_button&&h.push("share"),a.show_download_button&&h.push("download"),a.show_close_button&&h.push("close");const i={closeExisting:!0,loop:!0,arrows:a.show_arrows,infobar:a.show_counter,smallBtn:!1,toolbar:"auto",buttons:h,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:o=>!("image"!==o.type||!a.click_to_zoom)&&"zoom",lang:"wordpress",i18n:{wordpress:{CLOSE:__.fancybox_close,NEXT:__.fancybox_next,PREV:__.fancybox_prev,ERROR:__.fancybox_error,PLAY_START:__.fancybox_play_start,PLAY_STOP:__.fancybox_play_stop,FULL_SCREEN:__.fancybox_full_screen,THUMBS:__.fancybox_thumbs,DOWNLOAD:__.fancybox_download,SHARE:__.fancybox_share,ZOOM:__.fancybox_zoom}},beforeClose(){const t=e[o.currIndex];t&&s.maybeFocusGalleryItem(t),c&&c.emitEvent("beforeCloseFancybox",[i,e,o]),o=!1},beforeShow(o,e){c&&c.emitEvent("beforeShowFancybox",[o,e])},afterShow(o,e){c&&c.emitEvent("afterShowFancybox",[o,e])}};c&&c.emitEvent("beforeInitFancybox",[i,r,n]),1===e.length&&(i.loop=!1),o=t().fancybox.open(r,i,n),c&&c.emitEvent("initFancybox",[i,r,n,o])},s.close=function(){o&&(o.close(),o=!1)},c.on("transitionend",".fancybox-content",(function(){const o=t()(this).find(".fancybox-image[sizes]"),e=`${Math.round(o.width()/r.width()*100)}vw`;o.attr("sizes",e)}))}})();