!function(){"use strict";var o={n:function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},d:function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:function(o,t){return Object.prototype.hasOwnProperty.call(o,t)}},t=window.jQuery,e=o.n(t);const{VPData:n,VPPopupAPI:s}=window,{__:__,settingsPopupGallery:c}=n,r=e()(document),a=e()(window);if(void 0!==e().fancybox&&s){let o;s.vendor="fancybox",s.open=function(t,n,r){const a=[];t.forEach((o=>{"embed"===o.type&&o.src?a.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height,caption:o.caption}}):"embed"===o.type&&o.embed?a.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height,caption:o.caption}}):a.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 i=[];c.show_zoom_button&&i.push("zoom"),c.show_fullscreen_button&&i.push("fullScreen"),c.show_slideshow&&i.push("slideShow"),c.show_thumbs&&i.push("thumbs"),c.show_share_button&&i.push("share"),c.show_download_button&&i.push("download"),c.show_close_button&&i.push("close");const h={closeExisting:!0,loop:!0,arrows:c.show_arrows,infobar:c.show_counter,smallBtn:!1,toolbar:"auto",buttons:i,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent(o){return!("image"!==o.type||!c.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 e=t[o.currIndex];e&&s.maybeFocusGalleryItem(e),r&&r.emitEvent("beforeCloseFancybox",[h,t,o]),o=!1},beforeShow(o,t){r&&r.emitEvent("beforeShowFancybox",[o,t])},afterShow(o,t){r&&r.emitEvent("afterShowFancybox",[o,t])}};r&&r.emitEvent("beforeInitFancybox",[h,a,n]),1===t.length&&(h.loop=!1),o=e().fancybox.open(a,h,n),r&&r.emitEvent("initFancybox",[h,a,n,o])},s.close=function(){o&&(o.close(),o=!1)},r.on("transitionend",".fancybox-content",(function(){const o=e()(this).find(".fancybox-image[sizes]"),t=`${Math.round(o.width()/a.width()*100)}vw`;o.attr("sizes",t)}))}}();