astraSyncMobileMenuState=function(e){for(var t=document.querySelectorAll("#masthead #ast-mobile-header, #ast-fixed-header #ast-mobile-header"),o=0;o<t.length;o++){var a=t[o].querySelector(".main-header-bar-navigation"),s=t[o].querySelector(".main-header-menu-toggle");a&&(a.classList.toggle("toggle-on",e),a.style.display=e?"block":""),s&&(s.classList.toggle("toggled",e),s.setAttribute("aria-expanded",e?"true":"false"))}document.body.classList.toggle("ast-main-header-nav-open",e)},astraToggleSetupPro=function(e,t,o){var a,s,n,r=!1;if(0<(a="off-canvas"===e||"full-width"===e?(s=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(n=t.classList.contains("ast-header-break-point")?document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle"):document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length):t.classList.contains("ast-header-break-point")?(s=document.querySelectorAll("#ast-mobile-header"),(r=!(0<(a=(n=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:a):(s=document.querySelectorAll("#ast-desktop-header"),(n=document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length))||r)for(var i=0;i<a;i++)if(r||(n[i].setAttribute("data-index",i),o[i])||(o[i]=n[i],n[i].removeEventListener("click",astraNavMenuToggle),n[i].addEventListener("click",astraNavMenuToggle,!1)),void 0!==s[i])for(var l,c=0;c<s.length;c++)if(0<(l=document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")?s[c].querySelectorAll("ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle"):s[c].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var d=0;d<l.length;d++)l[d].removeEventListener("click",AstraToggleSubMenu),l[d].addEventListener("click",AstraToggleSubMenu,!1)},astraNavMenuTogglePro=function(e,t,o,a){e.preventDefault();var s=e.target.closest("#ast-desktop-header"),n=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content"),r=(s=null!=s&&""!==s?s.querySelector(".main-header-menu-toggle"):document.querySelector("#masthead > #ast-desktop-header .main-header-menu-toggle"),document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content .main-header-bar-navigation"));if("desktop"===e.currentTarget.trigger_type)null!==r&&""!==r&&void 0!==r&&(astraToggleClass(r,"toggle-on"),r.classList.contains("toggle-on")?r.style.display="block":r.style.display=""),astraToggleClass(s,"toggled"),s.classList.contains("toggled")?(t.classList.add("ast-main-header-nav-open"),"dropdown"===o&&(n.style.display="block")):(t.classList.remove("ast-main-header-nav-open"),n.style.display="none");else{e=a.closest("#ast-fixed-header")||document.getElementById("masthead");if(e)for(var i=e.querySelectorAll("#ast-mobile-header .main-header-bar-navigation .menu-item-has-children"),l=0;l<i.length;l++){i[l].classList.remove("ast-submenu-expanded");for(var c=i[l].querySelectorAll(".sub-menu"),d=0;d<c.length;d++)c[d].style.display="none"}-1!==(a.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(r=!a.classList.contains("toggled"),astraSyncMobileMenuState(r))}};let accountMenuToggle=function(){let n=astraAddon.hf_account_action_type&&"menu"===astraAddon.hf_account_action_type,r=n&&astraAddon.hf_account_show_menu_on&&"click"===astraAddon.hf_account_show_menu_on;var e=document.querySelectorAll(".ast-header-account-wrap");e&&e.forEach(t=>{let o=t.querySelector(".ast-account-nav-menu");function e(e){(r||n&&document.querySelector("body").classList.contains("ast-header-break-point"))&&o&&!t.contains(e.target)&&(o.style.right="",o.style.left="")}t._accountPointerUpHandler||(t._accountPointerUpHandler=e,document.addEventListener("pointerup",e));var a,s=t.querySelector(".ast-header-account-link");s&&(a=function(e){(r||n&&document.querySelector("body").classList.contains("ast-header-break-point"))&&(headerSelectionPosition=e.target.closest(".site-header-section"))&&(headerSelectionPosition.classList.contains("site-header-section-left")?(o.style.left=""===o.style.left?"-100%":"",o.style.right=""===o.style.right?"auto":""):(o.style.right=""===o.style.right?"-100%":"",o.style.left=""===o.style.left?"auto":""))},s._accountClickHandler||(s._accountClickHandler=a,s.addEventListener("click",a)))})},astraColorSwitcher={...astraAddon?.colorSwitcher,init:function(){this?.isInit&&(this.switcherButtons=document.querySelectorAll(".ast-builder-color-switcher .ast-switcher-button"),this.switcherButtons?.length)&&(this.switcherButtons?.forEach(e=>{e?.addEventListener("click",this.toggle)}),this.isDarkPalette&&"system"===this.defaultMode&&this.detectSystemColorScheme(),this.isSwitched)&&this.switchLogo()},detectSystemColorScheme:function(){null===this.getCookie("astraColorSwitcherState")&&window.matchMedia("(prefers-color-scheme: dark)").matches&&!this.isSwitched&&this.toggle()},toggle:function(e){e?.preventDefault();e=astraColorSwitcher;e.isSwitched=!e.isSwitched,e.setCookie("astraColorSwitcherState",e.isSwitched,90),e?.forceReload?window.location.reload():(e.switchPaletteColors(),e.switchIcon(),e.switchLogo(),e.isDarkPalette&&e.handleDarkModeCompatibility())},switchPaletteColors:function(){(this.isSwitched?this?.palettes?.switched:this?.palettes?.default)?.forEach((e,t)=>{document.documentElement.style.setProperty("--ast-global-color-"+t,e),astraAddon?.is_elementor_active&&document.documentElement.style.setProperty("--e-global-color-astglobalcolor"+t,e)})},switchIcon:function(){this.switcherButtons?.forEach(o=>{var[a,s]=o?.querySelectorAll(".ast-switcher-icon");if(a&&s){let[e,t]=this.isSwitched?[s,a]:[a,s];o?.classList.add("ast-animate"),setTimeout(()=>{e?.classList.add("ast-current"),t?.classList.remove("ast-current")},100),setTimeout(()=>o?.classList.remove("ast-animate"),200)}a=this.isSwitched?"defaultText":"switchedText";o?.setAttribute("aria-label",o?.dataset?.[a]||"Switch color palette.")})},switchLogo:function(){this.isDarkPalette&&this?.logos?.switched&&this?.logos?.default&&this.switchColorSwitcherLogo()},switchColorSwitcherLogo:function(){var e,t;let o=[];for(e of[".custom-logo-link:not(.sticky-custom-logo):not(.transparent-custom-logo) .custom-logo",".site-branding .site-logo-img img:not(.ast-sticky-header-logo)",".ast-site-identity .site-logo-img img:not(.ast-sticky-header-logo)"]){var a=document.querySelectorAll(e);if(0<a.length&&0<(o=Array.from(a).filter(e=>!(e.closest(".ast-sticky-header-logo")||e.closest(".sticky-custom-logo")||e.closest(".transparent-custom-logo")||e.classList.contains("ast-sticky-header-logo")))).length)break}o.length&&(t=this.isSwitched?this.logos.switched:this.logos.default)&&this.updateLogoImages(o,t)},updateLogoImages:function(e,o){e.forEach(e=>{var t;e&&e.src!==o&&((t=new Image).onload=function(){e.src=o,e.hasAttribute("srcset")&&e.removeAttribute("srcset"),e.hasAttribute("data-src")&&e.setAttribute("data-src",o)},t.onerror=function(){e.src=o},t.src=o)})},handleDarkModeCompatibility:function(){document.body.classList.toggle("astra-dark-mode-enable")},setCookie:(e,t,o)=>{var a=new Date;a.setTime(a.getTime()+24*o*60*60*1e3),document.cookie=`${e}=${t}; expires=${a.toUTCString()}; path=/`},getCookie:e=>{var t;for(t of document.cookie.split("; ")){var[o,a]=t.split("=");if(o===e)return a}return null}};var accountPopupTrigger=function(){if("undefined"!=typeof astraAddon&&"login"===astraAddon.hf_account_logout_action){var e,o=document.querySelectorAll(".ast-account-action-login");if(o.length){let t=document.querySelector("#ast-hb-account-login-wrap");t&&(e=document.querySelector("#ast-hb-login-close"),o.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.classList.add("show")})}),e)&&e.addEventListener("click",function(e){e.preventDefault(),t.classList.remove("show")})}}};document.addEventListener("astPartialContentRendered",function(){accountMenuToggle(),accountPopupTrigger()}),window.addEventListener("load",function(){accountMenuToggle(),accountPopupTrigger(),astraColorSwitcher.init()}),document.addEventListener("astLayoutWidthChanged",function(){accountMenuToggle(),accountPopupTrigger()}),document.addEventListener("click",function(e){var t,e=e.target.closest("a");e&&(t=e.getAttribute("href"))&&-1!==t.indexOf("#")&&e.closest("#masthead #ast-mobile-header, #ast-fixed-header #ast-mobile-header")&&setTimeout(function(){astraSyncMobileMenuState(!1)},20)});((o,r)=>{var s="astHookExtSticky",i=r.document,a=(jQuery(r).outerWidth(),jQuery(r).width()),n={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"<div></div>",body_padding_support:!0,html_padding_support:!0,active_shrink:!1,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"};function e(t,e){this.element=t,this.options=o.extend({},n,e),this._defaults=n,this._name=s,"1"==this.options.hide_on_scroll&&(this.navbarHeight=o(t).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}e.prototype.stick_me=function(t,e){var o=jQuery(t.element),s=jQuery(r).outerWidth(),i=parseInt(t.options.stick_upto_scroll),a=parseInt(o.parent().attr("data-stick-maxwidth")),n=parseInt(o.parent().attr("data-stick-gutter"));"enabled"==(astraAddon.hook_sticky_header||"")&&(!("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point>s||"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point<=s)&&jQuery(r).scrollTop()>i?"none"==t.options.header_style&&("enabled"==t.options.active_shrink?(t.hasShrink(t,"stick"),i="none",o.hasClass("ast-custom-header")||(i=n),o.parent().css("min-height",o.outerHeight()),o.addClass("ast-header-sticky-active").stop().css({"max-width":a,top:i,"padding-top":t.options.shrink.padding_top,"padding-bottom":t.options.shrink.padding_bottom})):(t.hasShrink(t,"stick"),o.parent().css("min-height",o.outerHeight()),o.addClass("ast-header-sticky-active").stop().css({"max-width":a,top:n,"padding-top":t.options.shrink.padding_top,"padding-bottom":t.options.shrink.padding_bottom})),o.addClass("ast-sticky-shrunk").stop()):t.stickRelease(t)),"enabled"==(astraAddon.hook_sticky_footer||"")&&("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point>s||"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point<=s?t.stickRelease(t):(jQuery("body").addClass("ast-footer-sticky-active"),o.parent().css("min-height",o.outerHeight()),o.stop().css({"max-width":a})))},e.prototype.update_attrs=function(){var o,t=this,e=jQuery(t.element),s=parseInt(t.options.gutter),i=t.options.max_width;"none"==t.options.header_style&&(o=e.offset().top||0),"ast-box-layout"!=t.options.site_layout&&(i=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(t,e){jQuery(e).length&&"on"==jQuery(e).parent().attr("data-stick-support")&&(dependent_height=jQuery(e).outerHeight(),s+=parseInt(dependent_height),o-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782<a&&(s+=parseInt(t.options.admin_bar_height_lg),o-=parseInt(t.options.admin_bar_height_lg)),t.options.admin_bar_height_sm&&jQuery("#wpadminbar").length&&600<=a&&a<=782&&(s+=parseInt(t.options.admin_bar_height_sm),o-=parseInt(t.options.admin_bar_height_sm)),t.options.admin_bar_height_xs&&jQuery("#wpadminbar").length&&(s+=parseInt(t.options.admin_bar_height_xs),o-=parseInt(t.options.admin_bar_height_xs)),t.options.body_padding_support&&(s+=parseInt(jQuery("body").css("padding-top"),10),o-=parseInt(jQuery("body").css("padding-top"),10)),t.options.html_padding_support&&(s+=parseInt(jQuery("html").css("padding-top"),10),o-=parseInt(jQuery("html").css("padding-top"),10)),t.options.stick_upto_scroll=o,"none"==t.options.header_style&&e.parent().css("min-height",e.outerHeight()).attr("data-stick-gutter",parseInt(s)).attr("data-stick-maxwidth",parseInt(i))},e.prototype.hasShrink=function(t,e){o(r).scrollTop()>jQuery(t.element).outerHeight()?jQuery("body").addClass("ast-shrink-custom-header"):jQuery("body").removeClass("ast-shrink-custom-header")},e.prototype.stickRelease=function(t){var e=jQuery(t.element);"enabled"==(astraAddon.hook_sticky_header||"")&&"none"==t.options.header_style&&(e.removeClass("ast-header-sticky-active").stop().css({"max-width":"",top:"",padding:""}),e.parent().css("min-height",""),e.removeClass("ast-sticky-shrunk").stop()),"enabled"==(astraAddon.hook_sticky_footer||"")&&jQuery("body").removeClass("ast-footer-sticky-active")},e.prototype.init=function(){var e,t;jQuery(this.element)&&(e=this,t=jQuery(e.element),parseInt(e.options.gutter),t.position().top,"none"==e.options.header_style&&t.wrap(e.options.wrap).parent().css("min-height",t.outerHeight()).attr("data-stick-support","on").attr("data-stick-maxwidth",parseInt(e.options.max_width)),e.update_attrs(),jQuery(r).on("resize",function(){e.stickRelease(e),e.update_attrs(),e.stick_me(e)}),jQuery(r).on("scroll",function(){e.stick_me(e,"scroll")}),jQuery(i).ready(function(t){e.stick_me(e)}))},o.fn[s]=function(t){return this.each(function(){o.data(this,"plugin_"+s)||o.data(this,"plugin_"+s,new e(this,t))})};var d=jQuery("body").width(),_=astraAddon.site_layout||"",h=astraAddon.hook_sticky_header||"",p=astraAddon.hook_shrink_header||"";sticky_header_on_devices=astraAddon.hook_sticky_header_on_devices||"desktop",site_layout_box_width=astraAddon.site_layout_box_width||1200,hook_sticky_footer=astraAddon.hook_sticky_footer||"",sticky_footer_on_devices=astraAddon.hook_sticky_footer_on_devices||"desktop","ast-box-layout"===_&&(d=parseInt(site_layout_box_width)),jQuery(i).ready(function(t){"enabled"==h&&jQuery(".ast-custom-header").astHookExtSticky({sticky_on_device:sticky_header_on_devices,header_style:"none",site_layout:_,max_width:d,active_shrink:p}),"enabled"==hook_sticky_footer&&jQuery(".ast-custom-footer").astHookExtSticky({sticky_on_device:sticky_footer_on_devices,max_width:d,site_layout:_,header_style:"none"})})})(jQuery,window);((n,h)=>{var a="astExtSticky",l=h.document,r=jQuery(h).width(),c=astraAddon.header_builder_active,s={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"<div></div>",body_padding_support:!0,html_padding_support:!0,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"},i=0,p=null!==l.querySelector("#ast-hb-account-login-wrap");function t(e,t){this.element=e,this.options=n.extend({},s,t),this._defaults=s,this._name=a,"1"==this.options.hide_on_scroll&&(this.navbarHeight=n(e).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}t.prototype.stick_me=function(e,t){var a,s,i,d,r,o=jQuery(e.element);h.innerWidth;stick_upto_scroll=parseInt(e.options.stick_upto_scroll),max_width=parseInt(o.parent().attr("data-stick-maxwidth")),gutter=parseInt(o.parent().attr("data-stick-gutter")),aboveHeaderSelectorValue=gutter,c&&astraAddon.header_main_shrink&&((o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&0<gutter&&(gutter-=10),a=l.querySelector(".ast-above-header-bar"),"1"===astraAddon.header_above_stick)&&null!==a&&(a=a.getBoundingClientRect().height+parseInt(a.parentNode.getAttribute("data-stick-gutter")),o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&0<gutter&&(gutter=a),"desktop"===e.options.sticky_on_device&&jQuery("body").hasClass("ast-header-break-point")||"mobile"===e.options.sticky_on_device&&!jQuery("body").hasClass("ast-header-break-point")?e.stickRelease(e):(stick_upto_scroll<0&&(stick_upto_scroll=0),a=0<l.getElementsByClassName("elementor-motion-effects-parent").length,jQuery(h).scrollTop()>stick_upto_scroll?(s=o,c&&(r=o.closest(".ast-mobile-header-wrap"),i=o.closest("#ast-desktop-header"),r=0===r.length?o.find(".ast-mobile-header-wrap"):r,i=0===i.length?o.find("#ast-desktop-header"):i,r.find(".ast-mobile-header-content").css("top",o.outerHeight()+gutter),"ast-box-layout"==e.options.site_layout?(d=jQuery("body").width(),r.find(".ast-mobile-header-content").css("width",d)):r.find(".ast-mobile-header-content").css("width",max_width),i.find(".ast-desktop-header-content").css("top",o.outerHeight()+gutter),i.find(".ast-desktop-header-content").css("width",max_width)),"1"===e.options.hide_on_scroll?e.hasScrolled(e,"stick"):"none"==e.options.header_style?(a||o.parent().css("min-height",o.outerHeight()),l.querySelector("body").classList.contains("fl-builder-edit")||o.addClass("ast-sticky-active").stop().css({top:gutter}),o.addClass("ast-sticky-active").stop().css({"max-width":max_width,"padding-top":e.options.shrink.padding_top,"padding-bottom":e.options.shrink.padding_bottom}),(o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&o.closest("#ast-desktop-header").find(".ast-above-header-bar").outerHeight()<70&&o.parent().css("min-height",o.outerHeight()),o.addClass("ast-sticky-shrunk").stop(),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"slide"==e.options.header_style?(s.css({top:gutter}),s.addClass("ast-header-slide"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({transform:p?"none":"translateY(0)"}),n("html").addClass("ast-header-stick-slide-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"fade"==e.options.header_style&&(s.css({top:gutter}),s.addClass("ast-header-fade"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({opacity:"1"}),n("html").addClass("ast-header-stick-fade-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked"))):(e.stickRelease(e),c&&(r=0===(r=o.closest(".ast-mobile-header-wrap")).length?o.find(".ast-mobile-header-wrap"):r,jQuery("body").hasClass("ast-primary-sticky-header-active")&&jQuery("body").hasClass("ast-above-sticky-header-active")&&jQuery("body").hasClass("ast-below-sticky-header-active")||r.find(".ast-mobile-header-content").removeAttr("style"))))},t.prototype.update_attrs=function(){var e,a,t=this,s=jQuery(t.element),i=parseInt(t.options.gutter),d=t.options.max_width;"none"!=t.options.header_style||jQuery("body").hasClass("ast-sticky-toggled-off")?n("#masthead").length&&(e=n("#masthead"),a=("none"==t.options.header_style?e.offset().top:e.offset().top+e.outerHeight()+100)||0):a=s.offset().top||0,"ast-box-layout"!=t.options.site_layout&&(d=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(e,t){jQuery(t).length&&"on"==jQuery(t).parent().attr("data-stick-support")&&(dependent_height=jQuery(t).outerHeight(),i+=parseInt(dependent_height),a-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782<r&&(i+=parseInt(t.options.admin_bar_height_lg),a-=parseInt(t.options.admin_bar_height_lg)),t.options.admin_bar_height_sm&&jQuery("#wpadminbar").length&&600<=r&&r<=782&&(i+=parseInt(t.options.admin_bar_height_sm),a-=parseInt(t.options.admin_bar_height_sm)),t.options.admin_bar_height_xs&&jQuery("#wpadminbar").length&&(i+=parseInt(t.options.admin_bar_height_xs),a-=parseInt(t.options.admin_bar_height_xs)),t.options.body_padding_support&&(i+=parseInt(jQuery("body").css("padding-top"),10),a-=parseInt(jQuery("body").css("padding-top"),10)),t.options.html_padding_support&&(i+=parseInt(jQuery("html").css("padding-top"),10),a-=parseInt(jQuery("html").css("padding-top"),10)),C&&a--,t.options.stick_upto_scroll=a,"none"==t.options.header_style?s.parent().css("min-height",s.outerHeight()).attr("data-stick-gutter",parseInt(i)).attr("data-stick-maxwidth",parseInt(d)):(s.parent().attr("data-stick-gutter",parseInt(i)).attr("data-stick-maxwidth",parseInt(d)),"ast-padded-layout"===t.options.site_layout&&s.css("max-width",parseInt(d)))},t.prototype.hasScrolled=function(e,t){var a,s=n(h).scrollTop();Math.abs(i-s)<=5||(a=jQuery(e.element),i<s&&0<s?jQuery(e.element).removeClass("ast-nav-down").addClass("ast-nav-up"):s+n(h).height()<n(l).height()&&jQuery(e.element).removeClass("ast-nav-up").addClass("ast-nav-down"),i=s,n(e.element).hasClass("ast-nav-up")||"stick"!=t?(a.css({transform:"translateY(-100%)"}).stop(),setTimeout(function(){a.removeClass("ast-sticky-active")},300),a.css({visibility:"hidden",top:""}),n(l).trigger("removeStickyClass"),n("html").removeClass("ast-header-stick-scroll-active"),a.removeClass("ast-header-sticked")):(a.css({top:gutter}),a.addClass("ast-header-sticked"),a.addClass("ast-header-slide"),a.css("visibility","visible"),a.addClass("ast-sticky-active").stop().css({transform:"translateY(0)"}),n(l).trigger("addStickyClass"),n("html").addClass("ast-header-stick-scroll-active")))},t.prototype.stickRelease=function(e){var t=jQuery(e.element),a=t;"1"===e.options.hide_on_scroll?e.hasScrolled(e,"release"):"none"==e.options.header_style?(t.removeClass("ast-sticky-active").stop().css({"max-width":"",top:"",padding:""}),t.parent().css("min-height",""),n(l).trigger("removeStickyClass"),a.removeClass("ast-header-sticked"),t.removeClass("ast-sticky-shrunk").stop()):"slide"==e.options.header_style?(a.removeClass("ast-sticky-active").stop().css({transform:p?"translateY(-100vh)":"translateY(-100%)"}),a.css({visibility:"hidden",top:""}),n("html").removeClass("ast-header-stick-slide-active"),n(l).trigger("removeStickyClass"),a.removeClass("ast-header-sticked")):"fade"==e.options.header_style&&(a.removeClass("ast-sticky-active").stop().css({opacity:"0"}),a.css({visibility:"hidden"}),a.removeClass("ast-header-sticked"),n(l).trigger("removeStickyClass"),n("html").removeClass("ast-header-stick-fade-active"))},t.prototype.init=function(){var t,e;jQuery(this.element)&&(t=this,e=jQuery(t.element),("none"==t.options.header_style?e.wrap(t.options.wrap).parent().css("min-height",e.outerHeight()):e.wrap(t.options.wrap)).attr("data-stick-support","on").attr("data-stick-maxwidth",parseInt(t.options.max_width)),t.update_attrs(),jQuery(h).on("resize",function(){t.stickRelease(t),t.update_attrs(),t.stick_me(t)}),jQuery(h).on("scroll",function(){t.stick_me(t,"scroll"),jQuery("body").hasClass("ast-sticky-toggled-off")&&(t.update_attrs(),t.stick_me(t,"scroll"))}),jQuery(l).ready(function(e){t.stick_me(t),setTimeout(()=>t.stick_me(t),0)}))},n.fn[a]=function(e){return this.each(function(){n.data(this,"plugin_"+a)||n.data(this,"plugin_"+a,new t(this,e))})};var e,d,o=jQuery("body"),y=o.width(),_=astraAddon.stick_header_meta||"default",m=astraAddon.header_main_stick||"",u=astraAddon.header_main_shrink||"",k=astraAddon.header_above_stick||"",b=astraAddon.header_below_stick||"",g=astraAddon.site_layout||"",v=astraAddon.site_layout_box_width||1200,w=astraAddon.sticky_header_on_devices||"desktop",j=astraAddon.sticky_header_style||"none",Q=astraAddon.sticky_hide_on_scroll||"",f=astraAddon.header_logo_width||"",x=astraAddon.responsive_header_logo_width||"",C=astraAddon.stick_origin_position||"",S=astraAddon.tablet_break_point||768,I=astraAddon.mobile_break_point||544;function A(){var e;"1"==Q?("1"==u&&jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=k&&"on"!=k&&"disabled"!=k&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=m&&"on"!=m&&"disabled"!=m&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),jQuery("#ast-fixed-header").astExtSticky({max_width:y,site_layout:g,sticky_on_device:w,header_style:"slide",hide_on_scroll:Q})):"none"==j?c?("both"===w?["desktop","mobile"]:[w]).forEach(function(e){var t;"1"!=k&&"on"!=k&&"disabled"!=k||jQuery("#masthead #ast-"+e+"-header .ast-above-header").astExtSticky({max_width:y,site_layout:g,sticky_on_device:w,header_style:j,hide_on_scroll:Q}),"1"!=m&&"on"!=m&&"disabled"!=m||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=m&&"on"!=m&&"disabled"!=m||(t=u?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead #ast-"+e+"-header .main-header-bar").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:g,shrink:t,sticky_on_device:w,header_style:j,hide_on_scroll:Q}),jQuery("#masthead #ast-"+e+"-header .ast-custom-header").astExtSticky({max_width:y,site_layout:g,shrink:t,sticky_on_device:w,header_style:j,hide_on_scroll:Q})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead #ast-"+e+"-header .ast-below-header").astExtSticky({dependent:["#masthead #ast-"+e+"-header .main-header-bar","#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:g,sticky_on_device:w,header_style:j,hide_on_scroll:Q})):((jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").length?jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap"):jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap")).wrap('<div class="ast-stick-primary-below-wrapper"></div>'),jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:g,shrink:t,sticky_on_device:w,header_style:j,hide_on_scroll:Q}))}):("1"!=k&&"on"!=k&&"disabled"!=k||jQuery("#masthead .ast-above-header").astExtSticky({max_width:y,site_layout:g,sticky_on_device:w,header_style:j,hide_on_scroll:Q}),"1"!=m&&"on"!=m&&"disabled"!=m||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=m&&"on"!=m&&"disabled"!=m||(e=u?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead .main-header-bar").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:y,site_layout:g,shrink:e,sticky_on_device:w,header_style:j,hide_on_scroll:Q}),jQuery("#masthead .ast-custom-header").astExtSticky({max_width:y,site_layout:g,shrink:e,sticky_on_device:w,header_style:j,hide_on_scroll:Q})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead .ast-below-header").astExtSticky({dependent:["#masthead .main-header-bar","#masthead .ast-above-header"],max_width:y,site_layout:g,sticky_on_device:w,header_style:j,hide_on_scroll:Q})):(jQuery("#masthead .main-header-bar-wrap").wrap('<div class="ast-stick-primary-below-wrapper"></div>'),jQuery("#masthead .ast-below-header-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .main-header-bar-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:y,site_layout:g,shrink:e,sticky_on_device:w,header_style:j,hide_on_scroll:Q}))):(jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=k&&"on"!=k&&"disabled"!=k&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=m&&"on"!=m&&"disabled"!=m&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),"1"!=k&&"on"!=k&&"disabled"!=k&&"1"!=m&&"on"!=m&&"disabled"!=m&&"1"!=b&&"on"!=b&&"disabled"!=b||(e=u?{padding_top:"",padding_bottom:""}:"",jQuery("#ast-fixed-header").astExtSticky({max_width:y,site_layout:g,shrink:e,sticky_on_device:w,header_style:j,hide_on_scroll:Q}))),"mobile"!=w&&"both"!=w||(jQuery("#masthead .main-header-menu-toggle").click(function(e){var t,a;jQuery("#masthead .main-header-menu-toggle").hasClass("toggled")?(o.addClass("ast-sticky-toggled-off"),"none"==s.header_style&&(jQuery("#masthead .main-header-bar").hasClass("ast-sticky-active")||jQuery("#masthead .ast-stick-primary-below-wrapper").hasClass("ast-sticky-active"))&&(t=jQuery(h).height(),a=0,jQuery("#masthead .ast-above-header")&&jQuery("#masthead .ast-above-header").length&&(a=jQuery("#masthead .ast-above-header").height()),"1"==Q&&jQuery("html").css({overflow:"hidden"}),("1"!=u||"1"!=m&&"on"!=m&&"disabled"!=m||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":t-a+"px","overflow-y":"auto"}))):(o.addClass("ast-sticky-toggled-off"),jQuery("html").css({overflow:""}),("1"!=u||"1"!=m&&"on"!=m&&"disabled"!=m||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":"","overflow-y":""}))}),jQuery("#ast-fixed-header .main-header-menu-toggle").click(function(e){var t;jQuery("#ast-fixed-header .main-header-menu-toggle").hasClass("toggled")?(t=jQuery(h).height(),"1"==Q&&jQuery("html").css({overflow:"auto"}),jQuery("#ast-fixed-header").css({"max-height":t+"px","overflow-y":"auto"})):(jQuery("html").css({overflow:""}),jQuery("#ast-fixed-header").css({"max-height":"","overflow-y":""}))}))}"disabled"!=_&&("enabled"===_&&(m=astraAddon.header_main_stick_meta||"",k=astraAddon.header_above_stick_meta||"",b=astraAddon.header_below_stick_meta||""),0<n("header .site-logo-img img").length&&(-1===(e=0==(e=void 0===(e=(_=n("header .site-logo-img img")).attr("height"))?_.height():e)?"":e).toString().indexOf("%")&&(e+="px"),""!=x.desktop||""!=x.tablet||""!=x.mobile?d="<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+x.desktop+"px; } @media (max-width: "+S+"px){ #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+x.tablet+"px; }} @media (max-width: "+I+"px){ #masthead .ast-header-sticked .site-logo-img .astra-logo-svg{ width: "+x.mobile+"px; }} </style>":""!=f&&(d="<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+f+"px; } #masthead .ast-header-sticked .site-logo-img img { max-height: "+e+"; width: auto; } </style>"),n("head").append(d)),m||k||b)&&(n(l).on("addStickyClass",function(){var e="";"1"!=m&&"on"!=m&&"disabled"!=m||(e+=" ast-primary-sticky-header-active"),"1"!=k&&"on"!=k&&"disabled"!=k||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").addClass(e)}),n(l).on("removeStickyClass",function(){var e="";"1"!=m&&"on"!=m&&"disabled"!=m||(e+=" ast-primary-sticky-header-active"),"1"!=k&&"on"!=k&&"disabled"!=k||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").removeClass(e)}),"ast-box-layout"===g&&(y=parseInt(v)),jQuery(function(e){A()}),jQuery(l).on("astLayoutWidthChanged",function(e){(parseInt(m)||parseInt(b)||parseInt(k))&&(jQuery("div.ast-stick-primary-below-wrapper").children().unwrap(),jQuery('div[data-stick-support="on"]').children().unwrap(),A())}))})(jQuery,window);function display_mega_menu_on_load(){var e=document.querySelectorAll(".content-width-mega");if(0<e.length)for(var t=0;t<e.length;t++)"hover"===(e[t].getAttribute("data-megamenu-trigger")||"hover")&&e[t].addEventListener("mouseenter",function(e){e=e.target.querySelector(".astra-mega-menu-width-content");null!==e&&e.classList.remove("ast-hidden")});var a=document.querySelectorAll(".menu-container-width-mega");if(0<a.length)for(t=0;t<a.length;t++)"hover"===(a[t].getAttribute("data-megamenu-trigger")||"hover")&&a[t].addEventListener("mouseenter",function(e){e=e.target.querySelector(".astra-mega-menu-width-menu-container");null!==e&&e.classList.remove("ast-hidden")});var s=document.querySelectorAll(".full-width-mega");if(0<s.length)for(t=0;t<s.length;t++)"hover"===(s[t].getAttribute("data-megamenu-trigger")||"hover")&&s[t].addEventListener("mouseenter",function(e){var t=e.target.querySelector(".astra-full-megamenu-wrapper"),e=e.target.querySelector(".astra-mega-menu-width-full");null!==t&&t.classList.remove("ast-hidden"),null!==e&&e.classList.remove("ast-hidden")});var r=document.querySelectorAll(".full-stretched-width-mega");if(0<r.length)for(t=0;t<r.length;t++)"hover"===(r[t].getAttribute("data-megamenu-trigger")||"hover")&&r[t].addEventListener("mouseenter",function(e){var t=e.target.querySelector(".astra-full-megamenu-wrapper"),e=e.target.querySelector(".astra-mega-menu-width-full-stretched");null!==t&&t.classList.remove("ast-hidden"),null!==e&&e.classList.remove("ast-hidden")});var n=document.querySelectorAll(".custom-width-mega");if(0<n.length)for(t=0;t<n.length;t++)"hover"===(n[t].getAttribute("data-megamenu-trigger")||"hover")&&n[t].addEventListener("mouseenter",function(e){e=e.target.querySelector(".astra-mega-menu-width-custom");null!==e&&e.classList.remove("ast-hidden")})}document.addEventListener("DOMContentLoaded",display_mega_menu_on_load),document.addEventListener("astPartialContentRendered",display_mega_menu_on_load);var items=document.getElementsByClassName("astra-megamenu-li");function apply_megamenu_width_styles(){[].slice.call(items).forEach(g=>{function s(){var e,t,a,s,r,n,i,d,u,l=(m=jQuery(g).parents(".ast-container")).children(),m=m.parent(),o=jQuery(g);(o.hasClass("full-width-mega")||o.hasClass("full-stretched-width-mega"))&&(l=jQuery(l).closest(".ast-container")),parseInt(window.innerWidth)>parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==o.parent().attr("id")&&"ast-desktop-toggle-menu"!==o.parent().attr("id")?(e=l.width(),t=l.offset(),l=(a=o.offset()).left-(t.left+parseFloat(l.css("paddingLeft"))),d=e-(a.left+t.left)+130,s=m.width(),r=m.offset(),r=a.left-(r.left+parseFloat(m.css("paddingLeft"))),o.hasClass("custom-width-mega")&&(i=(i=window.getComputedStyle(o.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),(i=parseInt(i))<=e?(u=parseInt(e-i),n=parseInt(l-u),t.left):(u=parseInt(i-e),n=parseInt(l+u),t.left)),o.hasClass("menu-container-width-mega")&&(u=jQuery(g).parents(".main-navigation"),m.hasClass("ast-above-header")?u=jQuery(".ast-above-header-navigation"):m.hasClass("ast-below-header")&&(u=jQuery(".ast-below-header-actual-nav")),e=($target_container=u.length?u:o.parent("ul")).width()+"px",m=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),u=o.offset(),m=jQuery(window).width()-m-u.left,l=parseInt($target_container.width()-m),d=parseInt(e)-o.outerWidth()-parseInt($target_container.width()-m)),o.hasClass("full-width-mega")?(o.find(".astra-full-megamenu-wrapper").css({left:"-"+r+"px",width:s}),o.find(".astra-megamenu").css({width:e})):o.hasClass("full-stretched-width-mega")?o.find(".astra-full-megamenu-wrapper").css({left:"-"+r+"px",width:s}):o.hasClass("custom-width-mega")?astra.isRtl?o.find(".astra-mega-menu-width-custom").css({width:i+"px"}):o.find(".astra-mega-menu-width-custom").css({left:"-"+n+"px",width:i+"px"}):o.hasClass("content-width-mega")?astra.isRtl?(u=t.left+e-(a.left+o.outerWidth()),o.find(".astra-megamenu").css({right:"-"+u+"px",width:e}).data("astra-hover-right",u)):o.find(".astra-megamenu").css({left:"-"+l+"px",width:e}):astra.isRtl?(o.find(".astra-megamenu").css({right:"-"+d+"px",width:e}),o.data("astra-hover-right",d)):o.find(".astra-megamenu").css({left:"-"+l+"px",width:e})):astra.isRtl?(o.find(".astra-megamenu").css({right:"",width:"","background-image":""}),o.find(".astra-full-megamenu-wrapper").css({right:"",width:"","background-image":""})):(o.find(".astra-megamenu").css({left:"",width:"","background-image":""}),o.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))}"click"===(jQuery(g).data("megamenu-trigger")||"hover")?(jQuery(g).find("> a").on("click",function(e){var t=jQuery(g),a=t.hasClass("megamenu-active");jQuery(".astra-megamenu-li.megamenu-active").removeClass("megamenu-active"),a||(e.preventDefault(),t.addClass("megamenu-active"),t.find(".ast-hidden").removeClass("ast-hidden"),s())}),jQuery(document).on("click",function(e){jQuery(e.target).closest(".astra-megamenu-li").length||jQuery(".astra-megamenu-li.megamenu-active").removeClass("megamenu-active")})):(jQuery(g).hover(s),jQuery(g).mouseenter(function(){document.dispatchEvent(new CustomEvent("astra_mega_menu_on_hover",{detail:{}}))}))})}apply_megamenu_width_styles(),document.addEventListener("astMenuHoverStyleChanged",function(){apply_megamenu_width_styles()}),[].slice.call(items).forEach(function(h){var e=jQuery(h).parents(".ast-container"),f=e.children(),c=e.parent(),p=jQuery(h);(p.hasClass("full-width-mega")||p.hasClass("full-stretched-width-mega"))&&(f=jQuery(f).closest(".ast-container"),p.find(".astra-full-megamenu-wrapper").removeClass("ast-hidden")),p.find(".menu-link").focusin(function(e){var t,a,s,r,n,i,d,u,l,m,o,g;astra.is_header_footer_builder_active||(p.find(".sub-menu").addClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").addClass("astra-megamenu-wrapper-focus")),p.find(".sub-menu").removeClass("ast-hidden"),parseInt(jQuery(window).width())>parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==p.parent().attr("id")&&"ast-desktop-toggle-menu"!==p.parent().attr("id")?(t=f.width(),a=f.offset(),u=(s=p.offset()).left-(a.left+parseFloat(f.css("paddingLeft"))),l=t-(s.left+a.left)+130,r=c.width(),g=c.offset(),g=s.left-(g.left+parseFloat(c.css("paddingLeft"))),p.hasClass("custom-width-mega")&&(d=(d=window.getComputedStyle(p.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),i=(d=parseInt(d))<=t?(i=parseInt(t-d),n=parseInt(u-i),a.left-n):(i=parseInt(d-t),n=parseInt(u+i),a.left+n)),p.hasClass("menu-container-width-mega")&&(o=jQuery(h).parents(".main-navigation"),c.hasClass("ast-above-header")?o=jQuery(".ast-above-header-navigation"):c.hasClass("ast-below-header")&&(o=jQuery(".ast-below-header-actual-nav")),t=($target_container=o.length?o:p.parent("ul")).width()+"px",o=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),m=p.offset(),o=jQuery(window).width()-o-m.left,u=parseInt($target_container.width()-o),l=parseInt(t)-p.outerWidth()-parseInt($target_container.width()-o)),p.hasClass("full-width-mega")?(p.find(".astra-full-megamenu-wrapper").css({left:"-"+g+"px",width:r}),p.find(".astra-megamenu").css({width:t})):p.hasClass("full-stretched-width-mega")?p.find(".astra-full-megamenu-wrapper").css({left:"-"+g+"px",width:r}):p.hasClass("custom-width-mega")?astra.isRtl?p.find(".astra-mega-menu-width-custom").css({right:"-"+i+"px",width:d+"px"}):p.find(".astra-mega-menu-width-custom").css({left:"-"+n+"px",width:d+"px"}):p.hasClass("content-width-mega")?astra.isRtl?(m=a.left+t-(s.left+p.outerWidth()),p.find(".astra-megamenu").css({right:"-"+m+"px",width:t}).data("astra-hover-right",m)):p.find(".astra-megamenu").css({left:"-"+u+"px",width:t}):(g=void 0!==(o=p.data("astra-hover-right"))?o:l,astra.isRtl?p.find(".astra-megamenu").css({right:"-"+g+"px",width:t}).data("astra-hover-right",g):p.find(".astra-megamenu").css({left:"-"+u+"px",width:t}))):astra.isRtl?(p.find(".astra-megamenu").css({right:"",width:"","background-image":""}),p.find(".astra-full-megamenu-wrapper").css({right:"",width:"","background-image":""})):(p.find(".astra-megamenu").css({left:"",width:"","background-image":""}),p.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))}),astra.is_header_footer_builder_active||(p.find(".menu-link").keydown(function(e){9==e.which&&e.shiftKey&&(p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus"))}),jQuery(h).find(".sub-menu .menu-item").last().focusout(function(){p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")}),jQuery(window).click(function(){p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")})),p.click(function(e){jQuery(e.target).hasClass("menu-item")&&e.stopImmediatePropagation()})});(()=>{var e;function o(e){var t=(t=document.body.className).replace(e,"");document.body.className=t}function d(e){e.style.display="block",setTimeout(function(){e.style.opacity=1},1)}function n(e){e.style.opacity="",setTimeout(function(){e.style.display=""},200)}r="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",e="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+r,document.body.className+=" "+e;for(var t=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),a=0;t.length>a;a++)t[a].onclick=function(e){var t,a,o,n;if(e.preventDefault(),e=e||window.event,this.classList.contains("header-cover"))for(var s=document.querySelectorAll(".ast-search-box.header-cover"),c=astraAddon.is_header_builder_active||!1,r=0;r<s.length;r++)for(var l=s[r].parentNode.querySelectorAll("a.astra-search-icon"),i=0;i<l.length;i++)l[i]==this&&(d(s[r]),s[r].querySelector("input.search-field").focus(),c?(t=s[r],n=o=a=void 0,document.body.classList.contains("ast-header-break-point")&&(n=document.querySelector(".main-navigation"),a=document.querySelector(".main-header-bar"),o=document.querySelector(".ast-mobile-header-wrap"),null!==a)&&null!==n&&(n=n.offsetHeight,a=a.offsetHeight,o=o.offsetHeight,n=n&&!document.body.classList.contains("ast-no-toggle-menu-enable")?parseFloat(n)-parseFloat(a):parseFloat(a),t.parentNode.classList.contains("ast-mobile-header-wrap")&&(n=parseFloat(o)),t.style.maxHeight=Math.abs(n)+"px")):(a=s[r],t=o=void 0,document.body.classList.contains("ast-header-break-point")&&(t=document.querySelector(".main-navigation"),null!==(o=document.querySelector(".main-header-bar")))&&null!==t&&(t=t.offsetHeight,o=o.offsetHeight,t=t&&!document.body.classList.contains("ast-no-toggle-menu-enable")?parseFloat(t)-parseFloat(o):parseFloat(o),a.style.maxHeight=Math.abs(t)+"px")));else this.classList.contains("full-screen")&&(e=document.getElementById("ast-seach-full-screen-form")).classList.contains("full-screen")&&(d(e),document.body.className+=" full-screen",e.querySelector("input.search-field").focus())};for(var s=document.querySelectorAll(".ast-search-box .close"),a=0,c=s.length;a<c;++a)s[a].onclick=function(e){e=e||window.event;for(var t=this;;){if(t.parentNode.classList.contains("ast-search-box")){n(t.parentNode),o("full-screen");break}if(t.parentNode.classList.contains("site-header"))break;t=t.parentNode}};document.onkeydown=function(e){if(27==e.keyCode)for(var e=document.getElementById("ast-seach-full-screen-form"),t=(null!=e&&(n(e),o("full-screen")),document.querySelectorAll(".ast-search-box.header-cover")),a=0;a<t.length;a++)n(t[a])},window.addEventListener("resize",function(){if("BODY"===document.activeElement.tagName&&"INPUT"!=document.activeElement.tagName){var e=document.querySelectorAll(".ast-search-box.header-cover");if(!document.body.classList.contains("ast-header-break-point"))for(var t=0;t<e.length;t++)e[t].style.maxHeight="",e[t].style.opacity="",e[t].style.display=""}});var r=document.getElementById("close");r&&r.addEventListener("keydown",function(e){"Enter"===e.key?(e.preventDefault(),this.click()):"Tab"===e.key&&e.preventDefault()})})();
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),s||(s=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const u=D(Array.prototype.forEach),m=D(Array.prototype.lastIndexOf),p=D(Array.prototype.pop),f=D(Array.prototype.push),d=D(Array.prototype.splice),h=D(String.prototype.toLowerCase),g=D(String.prototype.toString),T=D(String.prototype.match),y=D(String.prototype.replace),E=D(String.prototype.indexOf),A=D(String.prototype.trim),_=D(Object.prototype.hasOwnProperty),b=D(RegExp.prototype.test),S=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(N,t)});var N;function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function R(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function w(e){for(let t=0;t<e.length;t++){_(e,t)||(e[t]=null)}return e}function C(t){const n=l(null);for(const[o,r]of e(t)){_(t,o)&&(Array.isArray(r)?n[o]=w(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=C(r):n[o]=r)}return n}function O(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=o(e)}return function(){return null}}const v=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),z=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=a(/<%[\w\W]*|[\w\W]*%>/gm),W=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:G,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:W});const J=1,Q=3,ee=7,te=8,ne=9,oe=function(){return"undefined"==typeof window?null:window};var re=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const o=e=>t(e);if(o.version="3.3.2",o.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:N,Node:D,Element:w,NodeFilter:B,NamedNodeMap:G=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:Y,trustedTypes:j}=n,q=w.prototype,$=O(q,"cloneNode"),V=O(q,"remove"),re=O(q,"nextSibling"),ie=O(q,"childNodes"),ae=O(q,"parentNode");if("function"==typeof N){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let le,ce="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:me,getElementsByTagName:pe}=r,{importNode:fe}=a;let de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof ae&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:ge,TMPLIT_EXPR:Te,DATA_ATTR:ye,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:be}=Z;let{IS_ALLOWED_URI:Se}=Z,Ne=null;const De=R({},[...v,...k,...x,...I,...U]);let Re=null;const we=R({},[...z,...P,...F,...H]);let Ce=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,ve=null;const ke=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Le=!0,Ie=!1,Me=!0,Ue=!1,ze=!0,Pe=!1,Fe=!1,He=!1,Be=!1,Ge=!1,We=!1,Ye=!0,je=!1,Xe=!0,qe=!1,$e={},Ke=null;const Ve=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const Je=R({},["audio","video","img","source","image","track"]);let Qe=null;const et=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let rt=ot,it=!1,at=null;const lt=R({},[tt,nt,ot],g);let ct=R({},["mi","mo","mn","ms","mtext"]),st=R({},["annotation-xml"]);const ut=R({},["title","style","font","a","script"]);let mt=null;const pt=["application/xhtml+xml","text/html"];let ft=null,dt=null;const ht=r.createElement("form"),gt=function(e){return e instanceof RegExp||e instanceof Function},Tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!dt||dt!==e){if(e&&"object"==typeof e||(e={}),e=C(e),mt=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ft="application/xhtml+xml"===mt?g:h,Ne=_(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,ft):De,Re=_(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,ft):we,at=_(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,g):lt,Qe=_(e,"ADD_URI_SAFE_ATTR")?R(C(et),e.ADD_URI_SAFE_ATTR,ft):et,Ze=_(e,"ADD_DATA_URI_TAGS")?R(C(Je),e.ADD_DATA_URI_TAGS,ft):Je,Ke=_(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,ft):Ve,Oe=_(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,ft):C({}),ve=_(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,ft):C({}),$e=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ue=e.SAFE_FOR_TEMPLATES||!1,ze=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,je=e.SANITIZE_NAMED_PROPS||!1,Xe=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,Se=e.ALLOWED_URI_REGEXP||X,rt=e.NAMESPACE||ot,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,st=e.HTML_INTEGRATION_POINTS||st,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&gt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&gt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Le=!1),Ge&&(Be=!0),$e&&(Ne=R({},U),Re=l(null),!0===$e.html&&(R(Ne,v),R(Re,z)),!0===$e.svg&&(R(Ne,k),R(Re,P),R(Re,H)),!0===$e.svgFilters&&(R(Ne,x),R(Re,P),R(Re,H)),!0===$e.mathMl&&(R(Ne,I),R(Re,F),R(Re,H))),_(e,"ADD_TAGS")||(ke.tagCheck=null),_(e,"ADD_ATTR")||(ke.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ke.tagCheck=e.ADD_TAGS:(Ne===De&&(Ne=C(Ne)),R(Ne,e.ADD_TAGS,ft))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ke.attributeCheck=e.ADD_ATTR:(Re===we&&(Re=C(Re)),R(Re,e.ADD_ATTR,ft))),e.ADD_URI_SAFE_ATTR&&R(Qe,e.ADD_URI_SAFE_ATTR,ft),e.FORBID_CONTENTS&&(Ke===Ve&&(Ke=C(Ke)),R(Ke,e.FORBID_CONTENTS,ft)),e.ADD_FORBID_CONTENTS&&(Ke===Ve&&(Ke=C(Ke)),R(Ke,e.ADD_FORBID_CONTENTS,ft)),Xe&&(Ne["#text"]=!0),Pe&&R(Ne,["html","head","body"]),Ne.table&&(R(Ne,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,ce=le.createHTML("")}else void 0===le&&(le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,c)),null!==le&&"string"==typeof ce&&(ce=le.createHTML(""));i&&i(e),dt=e}},yt=R({},[...k,...x,...L]),Et=R({},[...I,...M]),At=function(e){f(o.removed,{element:e});try{ae(e).removeChild(e)}catch(t){V(e)}},_t=function(e,t){try{f(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||Ge)try{At(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===mt&&rt===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=le?le.createHTML(e):e;if(rt===ot)try{t=(new Y).parseFromString(o,mt)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(rt,"template",null);try{t.documentElement.innerHTML=it?ce:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),rt===ot?pe.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:i},St=function(e){return ue.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof G)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Dt=function(e){return"function"==typeof D&&e instanceof D};function Rt(e,t,n){u(e,(e=>{e.call(o,t,n,dt)}))}const wt=function(e){let t=null;if(Rt(de.beforeSanitizeElements,e,null),Nt(e))return At(e),!0;const n=ft(e.nodeName);if(Rt(de.uponSanitizeElement,e,{tagName:n,allowedTags:Ne}),ze&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent))return At(e),!0;if(e.nodeType===ee)return At(e),!0;if(ze&&e.nodeType===te&&b(/<[/\w]/g,e.data))return At(e),!0;if(!(ke.tagCheck instanceof Function&&ke.tagCheck(n))&&(!Ne[n]||Oe[n])){if(!Oe[n]&&Ot(n)){if(Ce.tagNameCheck instanceof RegExp&&b(Ce.tagNameCheck,n))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))return!1}if(Xe&&!Ke[n]){const t=ae(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,re(e))}}}return At(e),!0}return e instanceof w&&!function(e){let t=ae(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===o||ct[o]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===ot?"math"===n:t.namespaceURI===nt?"math"===n&&st[o]:Boolean(Et[n]):e.namespaceURI===ot?!(t.namespaceURI===nt&&!st[o])&&!(t.namespaceURI===tt&&!ct[o])&&!Et[n]&&(ut[n]||!yt[n]):!("application/xhtml+xml"!==mt||!at[e.namespaceURI]))}(e)?(At(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ue&&e.nodeType===Q&&(t=e.textContent,u([he,ge,Te],(e=>{t=y(t,e," ")})),e.textContent!==t&&(f(o.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(de.afterSanitizeElements,e,null),!1):(At(e),!0)},Ct=function(e,t,n){if(ve[t])return!1;if(Ye&&("id"===t||"name"===t)&&(n in r||n in ht))return!1;if(Le&&!ve[t]&&b(ye,t));else if(xe&&b(Ee,t));else if(ke.attributeCheck instanceof Function&&ke.attributeCheck(t,e));else if(!Re[t]||ve[t]){if(!(Ot(e)&&(Ce.tagNameCheck instanceof RegExp&&b(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&b(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t,e))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&b(Ce.tagNameCheck,n)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))))return!1}else if(Qe[t]);else if(b(Se,y(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ze[e]){if(Ie&&!b(Ae,y(n,_e,"")));else if(n)return!1}else;return!0},Ot=function(e){return"annotation-xml"!==e&&T(e,be)},vt=function(e){Rt(de.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Re,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=ft(a),m=c;let f="value"===a?m:A(m);if(n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Rt(de.uponSanitizeAttribute,e,n),f=n.attrValue,!je||"id"!==s&&"name"!==s||(_t(a,e),f="user-content-"+f),ze&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){_t(a,e);continue}if("attributename"===s&&T(f,"href")){_t(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){_t(a,e);continue}if(!Me&&b(/\/>/i,f)){_t(a,e);continue}Ue&&u([he,ge,Te],(e=>{f=y(f,e," ")}));const d=ft(e.nodeName);if(Ct(d,s,f)){if(le&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(d,s)){case"TrustedHTML":f=le.createHTML(f);break;case"TrustedScriptURL":f=le.createScriptURL(f)}if(f!==m)try{l?e.setAttributeNS(l,a,f):e.setAttribute(a,f),Nt(e)?At(e):p(o.removed)}catch(t){_t(a,e)}}else _t(a,e)}Rt(de.afterSanitizeAttributes,e,null)},kt=function e(t){let n=null;const o=St(t);for(Rt(de.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Rt(de.uponSanitizeShadowNode,n,null),wt(n),vt(n),n.content instanceof s&&e(n.content);Rt(de.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Dt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Fe||Tt(t),o.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ft(e.nodeName);if(!Ne[t]||Oe[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof D)n=bt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!Ue&&!Pe&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e;if(n=bt(e),!n)return Be?null:We?ce:""}n&&He&&At(n.firstChild);const c=St(qe?e:n);for(;i=c.nextNode();)wt(i),vt(i),i.content instanceof s&&kt(i.content);if(qe)return e;if(Be){if(Ge)for(l=me.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Re.shadowroot||Re.shadowrootmode)&&(l=fe.call(a,l,!0)),l}let m=Pe?n.outerHTML:n.innerHTML;return Pe&&Ne["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(K,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Ue&&u([he,ge,Te],(e=>{m=y(m,e," ")})),le&&We?le.createHTML(m):m},o.setConfig=function(){Tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},o.clearConfig=function(){dt=null,Fe=!1},o.isValidAttribute=function(e,t,n){dt||Tt({});const o=ft(e),r=ft(t);return Ct(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&f(de[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=m(de[e],t);return-1===n?void 0:d(de[e],n,1)[0]}return p(de[e])},o.removeHooks=function(e){de[e]=[]},o.removeAllHooks=function(){de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();return re}));
window.paElementsHandler={isElementAlreadyExists:function(n){return!!(window.paElementList&&n in window.paElementList)||!(window.paElementList={...window.paElementList,[n]:!0})}};
(()=>{var i={617:(t,e,i)=>{var h=i(311);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i=function(){function o(t,e,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");var n=this;n.data=t,n.images=e,n.id=this.get_config("gallery_id"),n.envirabox_config=i,n.log(n.data),n.log(n.images),n.log(n.envirabox_config),n.log(n.id),n.init()}var t,e,i;return t=o,(e=[{key:"init",value:function(){this.lightbox()}},{key:"lightbox",value:function(){var o=this,t=o.get_config("mobile_touchwipe_close")?{vertical:!0,momentum:!0}:{vertical:!1,momentum:!1},e=!o.get_config("thumbnails_hide")||o.get_config("thumbnails_hide"),i=o.is_mobile()?this.get_config("mobile_thumbnails_height"):this.get_config("thumbnails_height"),e=!!o.get_config("thumbnails")&&{autoStart:e,hideOnClose:!0,position:o.get_lightbox_config("thumbs_position"),rowHeight:"side"!==o.get_lightbox_config("thumbs_position")&&i},i=!!o.get_config("slideshow")&&{autoStart:o.get_config("autoplay"),speed:o.get_config("ss_speed")},n=!o.get_config("fullscreen")||!o.get_config("open_fullscreen")||{autoStart:!0},r="zomm-in-out"==o.get_config("lightbox_open_close_effect")?"zoom-in-out":o.get_config("lightbox_open_close_effect"),s="zomm-in-out"==o.get_config("effect")?"zoom":o.get_config("effect"),a=[],l="";if(o.lightbox_options={selector:'[data-envirabox="'+o.id+'"]',loop:o.get_config("loop"),margin:o.get_lightbox_config("margins"),gutter:o.get_lightbox_config("gutter"),keyboard:o.get_config("keyboard"),arrows:o.get_lightbox_config("arrows"),arrow_position:o.get_lightbox_config("arrow_position"),infobar:o.get_lightbox_config("infobar"),toolbar:o.get_lightbox_config("toolbar"),idleTime:!!o.get_lightbox_config("idle_time")&&o.get_lightbox_config("idle_time"),smallBtn:o.get_lightbox_config("show_smallbtn"),protect:!1,image:{preload:!1},animationEffect:r,animationDuration:o.get_lightbox_config("animation_duration")?o.get_lightbox_config("animation_duration"):300,btnTpl:{smallBtn:o.get_lightbox_config("small_btn_template")},zoomOpacity:"auto",transitionEffect:s,transitionDuration:o.get_lightbox_config("transition_duration")?o.get_lightbox_config("transition_duration"):200,baseTpl:o.get_lightbox_config("base_template"),spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:o.get_lightbox_config("error_template"),fullScreen:!!o.get_config("fullscreen")&&n,touch:t,hash:!1,insideCap:o.get_lightbox_config("inner_caption"),capPosition:o.get_lightbox_config("caption_position"),capTitleShow:!(!o.get_config("lightbox_title_caption")||"none"==o.get_config("lightbox_title_caption")||"0"==o.get_config("lightbox_title_caption")||!1!==["classical_dark","classical_light","infinity_dark","infinity_light"].includes(o.get_config("lightbox_theme")))&&o.get_config("lightbox_title_caption"),media:{youtube:{params:{autoplay:0}}},wheel:0!=this.get_config("mousewheel"),slideShow:i,thumbs:e,lightbox_theme:o.get_config("lightbox_theme"),mobile:{clickContent:function(t,e){return o.get_lightbox_config("click_content")?o.get_lightbox_config("click_content"):"toggleControls"},clickSlide:function(t,e){return o.get_lightbox_config("click_slide")?o.get_lightbox_config("click_slide"):"close"},dblclickContent:!1,dblclickSlide:!1},clickContent:function(t,e){return!("image"!==t.type||"undefined"!==o.get_config("disable_zoom")&&"1"==o.get_config("disable_zoom")||"1"==o.get_config("zoom_hover")&&"undefined"!=typeof envira_zoom&&void 0!==envira_zoom.enviraZoomActive)&&"zoom"},clickSlide:o.get_lightbox_config("click_slide")?o.get_lightbox_config("click_slide"):"close",clickOutside:o.get_lightbox_config("click_outside")?o.get_lightbox_config("click_outside"):"toggleControls",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,videoPlayPause:!!o.get_config("videos_playpause"),videoProgressBar:!!o.get_config("videos_progress"),videoPlaybackTime:!!o.get_config("videos_current"),videoVideoLength:!!o.get_config("videos_duration"),videoVolumeControls:!!o.get_config("videos_volume"),videoControlBar:!!o.get_config("videos_controls"),videoFullscreen:!!o.get_config("videos_fullscreen"),videoDownload:!!o.get_config("videos_download"),videoPlayIcon:!!o.get_config("videos_play_icon_thumbnails"),videoAutoPlay:!!o.get_config("videos_autoplay"),onInit:function(t,e){o.initImage=!0,h(document).trigger("envirabox_api_on_init",[o,t,e])},beforeLoad:function(t,e){h(document).trigger("envirabox_api_before_load",[o,t,e])},afterLoad:function(t,e){h(document).trigger("envirabox_api_after_load",[o,t,e])},beforeShow:function(t,e){"base"==o.data.lightbox_theme&&""==l&&0<h(".envirabox-position-overlay").length&&(l=h(".envirabox-position-overlay")),o.initImage=!1,0===o.get_config("loop")&&0==t.currIndex?h(".envirabox-slide--current a.envirabox-prev").hide():h(".envirabox-slide--current a.envirabox-prev").show(),0===o.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?h(".envirabox-slide--current a.envirabox-next").hide():h(".envirabox-slide--current a.envirabox-next").show(),h(document).trigger("envirabox_api_before_show",[o,t,e])},afterShow:function(t,e){var i,n;h(".envirabox-thumbs ul").find("li").removeClass("focused"),h(".envirabox-thumbs ul").find("li.envirabox-thumbs-active").focus().addClass("focused"),null!=i&&null!=n||(n=i=!1),1!=i&&(h(".envirabox-position-overlay").each(function(){h(this).prependTo(e.$content)}),i=!0),0===o.get_config("loop")&&0==t.currIndex?h(".envirabox-outer a.envirabox-prev").hide():h(".envirabox-outer a.envirabox-prev").show(),0===o.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?h(".envirabox-outer a.envirabox-next").hide():h(".envirabox-outer a.envirabox-next").show(),void 0!==o.get_config("keyboard")&&0===o.get_config("keyboard")&&h(window).keypress(function(t){-1<[32,37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),h(".envirabox-slide--current .envirabox-title").css("visibility","visible"),0<h(".envirabox-slide--current .envirabox-caption").length&&0<h(".envirabox-slide--current .envirabox-caption").html().length?(h(".envirabox-slide--current .envirabox-caption").css("visibility","visible"),h(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","visible")):(h(".envirabox-slide--current .envirabox-caption").css("visibility","hidden"),h(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","hidden")),h(".envirabox-navigation").show(),h(".envirabox-navigation-inside").show(),void 0!==l&&""!=l&&0<h(".envirabox-slide--current .envirabox-image-wrap").length?h(".envirabox-image-wrap").prepend(l):void 0!==l&&""!=l&&0<h(".envirabox-slide--current .envirabox-content").length&&h(".envirabox-content").prepend(l),h(document).trigger("envirabox_api_after_show",[o,t,e]),void 0===t.opts.capTitleShow||"caption"!=t.opts.capTitleShow&&"title_caption"!=t.opts.capTitleShow||""!=e.caption?h(".envirabox-caption-wrap .envirabox-caption").css("visibility","visible"):h(".envirabox-caption-wrap .envirabox-caption").css("visibility","hidden")},beforeClose:function(t,e){h(document).trigger("envirabox_api_before_close",[o,t,e])},afterClose:function(t,e){h(document).trigger("envirabox_api_after_close",[o,t,e])},onActivate:function(t,e){h(document).trigger("envirabox_api_on_activate",[o,t,e])},onDeactivate:function(t,e){h(document).trigger("envirabox_api_on_deactivate",[o,t,e])}},o.is_mobile()&&1!==o.get_config("mobile_thumbnails")&&(o.lightbox_options.thumbs=!1),o.get_lightbox_config("load_all")){r=o.images;if("object"!==c(r))return;h.each(r,function(t){void 0!==this.video&&void 0!==this.video.embed_url&&(this.src=this.video.embed_url),a.push(this)})}else{s=h(".envira-gallery-"+o.id);h.each(s,function(t){a.push(this)})}h(document).trigger("envirabox_options",o),h("#envira-links-"+o.id).on("click",function(t){t.preventDefault(),t.stopImmediatePropagation();var t=h(this),e=t.data("gallery-images"),t=t.data("gallery-sort-ids"),i=(void 0!==t&&o.data.gallery_sort,void 0!==t&&"gallery"==o.data.gallery_sort?t:e),e=h.envirabox.getInstance();void 0!==t&&""!=t&&(a=[],h.each(t,function(t,e){a.push(i[e])})),e||h.envirabox.open(a,o.lightbox_options)})}},{key:"get_config",value:function(t){return this.data[t]}},{key:"get_lightbox_config",value:function(t){return this.envirabox_config[t]}},{key:"get_image",value:function(t){return this.images[t]}},{key:"is_mobile",value:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"log",value:function(t){null!=envira_gallery.debug&&envira_gallery.debug&&null!=t&&console.log(t)}}])&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}();t.exports=i},556:(t,e,i)=>{var r,n,o,i=i(311);n=(r=i).fn.justifiedGallery,o={},r.fn.enviraJustifiedGallery=function(){var t=n.apply(this,arguments);if(void 0!==(o=t.data("jg.controller")))return o.displayEntryCaption=function(t){var e,i,n,o=this.imgFromEntry(t);null!==o&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i="",void 0!==(n=o.data("automatic-caption"))&&"string"==typeof n&&(n=n.replace("<","&lt;"),i=r("<textarea />").html(n).text()),void 0!==i&&this.isValidCaption(i)&&(e=r('<div class="caption">'+i+"</div>"),o.after(e),t.data("jg.createdCaption",!0))),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),n=e.css("height"),t.find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",n),t.find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",n),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},o}},496:(t,e,i)=>{var v=i(311),m=i(311),i=function(){function s(t){if(null===o&&(o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,null===o))return!1;var e=(t=t.getBoundingClientRect()).top,i=t.left,n=t.width,t=t.height;return e=e<r&&0<e+t&&i<o&&0<i+n}function a(a,e){if(null!==(t=e.getAttribute("data-envira-srcset")))if(0<(t=t.trim()).length){for(var t,i=[],n=(t=t.split(",")).length,o=0;o<n;o++){var r,s,l=t[o].trim();0!==l.length&&(l=-1===(s=l.lastIndexOf(" "))?(r=l,999998):(r=l.substr(0,s),parseInt(l.substr(s+1,l.length-s-2),10)),s=!1,(s=-1===r.indexOf(".webp",r.length-5)||f?!0:s)&&i.push([r,l]))}i.sort(function(t,e){if(t[1]<e[1])return-1;if(t[1]>e[1])return 1;if(t[1]===e[1]){if(-1!==e[0].indexOf(".webp",e[0].length-5))return 1;if(-1!==t[0].indexOf(".webp",t[0].length-5))return-1}return 0}),t=i}else t=[];else t=[];for(var h,c,d,u=a.offsetWidth*window.devicePixelRatio,p=null,n=t.length,o=0;o<n;o++){var g=t[o];if(g[1]>=u){p=g;break}}null===p&&(p=[e.getAttribute("data-envira-src"),999999]),void 0===a.lastSetOption&&(a.lastSetOption=["",0]),a.lastSetOption[1]<p[1]&&(h=0===a.lastSetOption[1],c=p[0],(d=new Image).addEventListener("load",function(){var t;e.setAttribute("srcset",c),e.setAttribute("src",c),h&&null!==(t=a.getAttribute("data-onlazyload"))&&new Function(t).bind(a)()},!1),d.addEventListener("error",function(){a.lastSetOption=["",0]},!1),d.onload=function(){var t,e,i,n,o,r,s;s=(r=(o=(n="envira-lazy"==a.getAttribute("class")&&m(a).not("img")?(n=a.firstElementChild,t=a,e=n.id,i=n.src,v(n).data("envira-gallery-id")):(n=d,e=(t=a).id,i=a.src,v(a).data("envira-gallery-id")),v(a).data("envira-item-id")),this.naturalWidth),this.naturalHeight),null==n&&(n=0),v(document).trigger({type:"envira_image_lazy_load_complete",container:t,image_src:i,image_id:e,item_id:o,gallery_id:n,naturalWidth:r,naturalHeight:s})},d.onerror=function(){console.error("Cannot load image")},d.src=c,a.lastSetOption=p)}function l(){o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function h(t){var e;void 0!==t&&(e=function(t,e){for(var i=t.length,n=0;n<i;n++){var o=t[n],r=e?o:o.parentNode;!0===s(r)&&a(r,o)}},t&&"string"==typeof t&&(void 0!==envira_gallery.ll_initial&&void 0!==envira_gallery.ll_delay&&!1!==envira_gallery.ll_initial||(envira_gallery.ll_delay=0),setTimeout(function(){v(t+" div.envira-lazy > img").exists()?e(document.querySelectorAll(t+" div.envira-lazy > img"),!1):v(t+" img.envira-lazy").exists()&&e(document.querySelectorAll(t+" img.envira-lazy"),!0),envira_gallery.ll_initial},envira_gallery.ll_delay)))}var f,c,o=null,r=null,d="undefined"!=typeof IntersectionObserver;v.fn.exists=function(){return 0<this.length};return"srcset"in document.createElement("img")&&void 0!==window.devicePixelRatio&&void 0!==window.addEventListener&&void 0!==document.querySelectorAll&&(l(),(c=new Image).src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",c.onload=c.onerror=function(){function t(){var t;d&&(t=null),window.addEventListener("resize",function(){l(),d?(window.clearTimeout(t),t=window.setTimeout(function(){h()},300)):r()}),d?(window.addEventListener("load",h),e()):(window.addEventListener("scroll",r),window.addEventListener("load",r),s()),"undefined"!=typeof MutationObserver&&new MutationObserver(function(){d?(e(),h()):(s(),r())}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}var e,o,i,n,r,s;f=2===c.width,d?(e=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++){var n=t[i];void 0===n.responsivelyLazyObserverAttached&&(n.responsivelyLazyObserverAttached=!0,o.observe(n))}},o=new IntersectionObserver(function(t){for(var e in t){var i,e=t[e];0<e.intersectionRatio&&("img"!==(e=e.target).tagName.toLowerCase()?null!==(i=e.querySelector("img"))&&a(e,i):a(e,e))}}),h()):(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},n=function t(){i.call(null,t)},r=function(){n()},s=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++)for(var n=t[i].parentNode;n&&"html"!==n.tagName.toLowerCase();)void 0===n.responsivelyLazyScrollAttached&&(n.responsivelyLazyScrollAttached=!0,n.addEventListener("scroll",r)),n=n.parentNode});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}),{run:h,isVisible:s,setGalleryClass:function(t){alert("setting - "+t)}}}();window.enviraLazy=i,t.exports=i},390:()=>{!function(r,e){"use strict";var o,i=function(){for(var t,e,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<i.length;o++)if((t=i[o])&&t[1]in r){for(e=0;e<t.length;e++)n[i[0][e]]=t[e];return n}return!1}();i?(o={request:function(t){(t=t||r.documentElement)[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){r[i.exitFullscreen](),e.envirabox.close(!0)},toggle:function(t){t=t||r.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(r[i.fullscreenElement])},enabled:function(){return Boolean(r[i.fullscreenEnabled])}},e(r).on({"onInit.eb":function(t,e){var i,n=e.$refs.toolbar.find("[data-envirabox-fullscreen]");e&&!e.FullScreen&&e.group[e.currIndex].opts.fullScreen?((i=e.$refs.container).on("click.eb-fullscreen","[data-envirabox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle(i[0])}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(i[0]),e.FullScreen=o):n.hide()},"afterKeydown.eb":function(t,e,i,n,o){e&&e.FullScreen&&70===o&&(n.preventDefault(),e.FullScreen.toggle(e.$refs.container[0]))},"beforeClose.eb":function(t){t&&t.FullScreen&&o.exit()}}),e(r).on(i.fullscreenchange,function(){var t=e.envirabox.getInstance();t.current&&"image"===t.current.type&&t.isAnimating&&(t.current.$content.css("transition","none"),t.isAnimating=!1,t.update(!0,!0,0)),e(r).trigger("onFullscreenChange",o.isFullscreen())})):e&&e.envirabox&&(e.envirabox.defaults.btnTpl.fullScreen=!1)}(document,window.jQuery)},850:(t,e,i)=>{i=i(311);!function(c,a,d){"use strict";function u(t){var e,i=[];for(e in t=(t=t.originalEvent||t||c.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?i.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&i.push({x:t[e].clientX,y:t[e].clientY});return i}function p(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function l(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea')||d.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,i=t[0].attributes,n=i.length;e<n;e++)if("data-envirabox-"===i[e].nodeName.substr(0,14))return 1}function h(t){for(var e,i,n,o=!1;(e=t.get(0),n=i=n=i=void 0,i=c.getComputedStyle(e)["overflow-y"],n=c.getComputedStyle(e)["overflow-x"],i=("scroll"===i||"auto"===i)&&e.scrollHeight>e.clientHeight,n=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(o=i||n))&&((t=t.parent()).length&&!t.hasClass("envirabox-stage")&&!t.is("body")););return o}function i(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.eb.touch mousedown.eb.touch",d.proxy(e,"ontouchstart"))}var g=c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||function(t){return c.setTimeout(t,1e3/60)},f=c.cancelAnimationFrame||c.webkitCancelAnimationFrame||c.mozCancelAnimationFrame||c.oCancelAnimationFrame||function(t){c.clearTimeout(t)};i.prototype.destroy=function(){this.$container.off(".eb.touch")},i.prototype.ontouchstart=function(t){var e=this,i=d(t.target),n=e.instance,o=n.current,r=o.$content,s="touchstart"==t.type;if(s&&e.$container.off("mousedown.eb.touch"),!o||e.instance.isAnimating||e.instance.isClosing)return t.stopPropagation(),void t.preventDefault();t.originalEvent&&2==t.originalEvent.button||!i.length||l(i)||l(i.parent())||t.originalEvent.clientX>i[0].clientWidth+i.offset().left||(e.startPoints=u(t),!e.startPoints||1<e.startPoints.length&&n.isSliding||(e.$target=i,e.$content=r,e.canTap=!0,e.opts=o.opts.touch,d(a).off(".eb.touch"),d(a).on(s?"touchend.eb.touch touchcancel.eb.touch":"mouseup.eb.touch mouseleave.eb.touch",d.proxy(e,"ontouchend")),d(a).on(s?"touchmove.eb.touch":"mousemove.eb.touch",d.proxy(e,"ontouchmove")),!e.opts&&!n.canPan()||!i.is(e.$stage)&&!e.$stage.find(i).length?i.is("img")&&t.preventDefault():(t.stopPropagation(),d.envirabox.isMobile&&(h(e.$target)||h(e.$target.parent()))||t.preventDefault(),e.canvasWidth=Math.round(o.$slide[0].clientWidth),e.canvasHeight=Math.round(o.$slide[0].clientHeight),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.sliderStartPos=e.sliderLastPos||{top:0,left:0},e.contentStartPos=d.envirabox.getTranslate(e.$content),e.contentLastPos=null,1!==e.startPoints.length||e.isZooming||(e.canTap=!n.isSliding,"image"===o.type&&(e.contentStartPos.width>e.canvasWidth+1||e.contentStartPos.height>e.canvasHeight+1)?(d.envirabox.stop(e.$content),e.$content.css("transition-duration","0ms"),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("envirabox-controls--isGrabbing")),2!==e.startPoints.length||n.isAnimating||o.hasError||"image"!==o.type||!o.isLoaded&&!o.$ghost||(e.isZooming=!0,e.isSwiping=!1,e.isPanning=!1,d.envirabox.stop(e.$content),e.$content.css("transition-duration","0ms"),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-d(c).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-d(c).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=p(e.startPoints[0],e.startPoints[1])))))},i.prototype.ontouchmove=function(t){var e=this;if(e.newPoints=u(t),d.envirabox.isMobile&&(h(e.$target)||h(e.$target.parent())))return t.stopPropagation(),void(e.canTap=!1);(e.opts||e.instance.canPan())&&e.newPoints&&e.newPoints.length&&(e.distanceX=p(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=p(e.newPoints[0],e.startPoints[0],"y"),e.distance=p(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.$target.is(e.$stage)||e.$stage.find(e.$target).length)&&(t.stopPropagation(),t.preventDefault(),e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},i.prototype.onSwipe=function(){var t,n=this,e=n.isSwiping,i=n.sliderStartPos.left||0;!0===e?10<Math.abs(n.distance)&&(n.canTap=!1,n.instance.group.length<2&&n.opts.vertical?n.isSwiping="y":n.instance.isSliding||!1===n.opts.vertical||"auto"===n.opts.vertical&&800<d(c).width()?n.isSwiping="x":(t=Math.abs(180*Math.atan2(n.distanceY,n.distanceX)/Math.PI),n.isSwiping=45<t&&t<135?"y":"x"),n.instance.isSliding=n.isSwiping,n.startPoints=n.newPoints,d.each(n.instance.slides,function(t,e){d.envirabox.stop(e.$slide),e.$slide.css("transition-duration","0ms"),e.inTransition=!1,e.pos===n.instance.current.pos&&(n.sliderStartPos.left=d.envirabox.getTranslate(e.$slide).left)}),n.instance.SlideShow&&n.instance.SlideShow.isActive&&n.instance.SlideShow.stop()):("x"==e&&(0<n.distanceX&&(n.instance.group.length<2||0===n.instance.current.index&&!n.instance.current.opts.loop)?i+=Math.pow(n.distanceX,.8):n.distanceX<0&&(n.instance.group.length<2||n.instance.current.index===n.instance.group.length-1&&!n.instance.current.opts.loop)?i-=Math.pow(-n.distanceX,.8):i+=n.distanceX),n.sliderLastPos={top:"x"==e?0:n.sliderStartPos.top+n.distanceY,left:i},n.requestId&&(f(n.requestId),n.requestId=null),n.requestId=g(function(){n.sliderLastPos&&(d.each(n.instance.slides,function(t,e){var i=e.pos-n.instance.currPos;d.envirabox.setTranslate(e.$slide,{top:n.sliderLastPos.top,left:n.sliderLastPos.left+i*n.canvasWidth+i*e.opts.gutter})}),n.$container.addClass("envirabox-is-sliding"))}))},i.prototype.onPan=function(){var t,e,i=this;i.canTap=!1,e=i.contentStartPos.width>i.canvasWidth?i.contentStartPos.left+i.distanceX:i.contentStartPos.left,t=i.contentStartPos.top+i.distanceY,(e=i.limitMovement(e,t,i.contentStartPos.width,i.contentStartPos.height)).scaleX=i.contentStartPos.scaleX,e.scaleY=i.contentStartPos.scaleY,i.contentLastPos=e,i.requestId&&(f(i.requestId),i.requestId=null),i.requestId=g(function(){d.envirabox.setTranslate(i.$content,i.contentLastPos)})},i.prototype.limitMovement=function(t,e,i,n){var o=this,r=o.canvasWidth,s=o.canvasHeight,a=o.contentStartPos.left,l=o.contentStartPos.top,h=o.distanceX,o=o.distanceY,c=Math.max(0,.5*r-.5*i),d=Math.max(0,.5*s-.5*n),u=Math.min(r-i,.5*r-.5*i),p=Math.min(s-n,.5*s-.5*n);return r<i&&(0<h&&c<t&&(t=c-1+Math.pow(-c+a+h,.8)||0),h<0&&t<u&&(t=u+1-Math.pow(u-a-h,.8)||0)),s<n&&(0<o&&d<e&&(e=d-1+Math.pow(-d+l+o,.8)||0),o<0&&e<p&&(e=p+1-Math.pow(p-l-o,.8)||0)),{top:e,left:t}},i.prototype.limitPosition=function(t,e,i,n){var o=this.canvasWidth,r=this.canvasHeight;return t=o<i?(t=0<t?0:t)<o-i?o-i:t:Math.max(0,o/2-i/2),{top:e=r<n?(e=0<e?0:e)<r-n?r-n:e:Math.max(0,r/2-n/2),left:t}},i.prototype.onZoom=function(){var t=this,e=t.contentStartPos.width,i=t.contentStartPos.height,n=t.contentStartPos.left,o=t.contentStartPos.top,r=p(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,s=Math.floor(e*r),a=Math.floor(i*r),e=(e-s)*t.percentageOfImageAtPinchPointX,i=(i-a)*t.percentageOfImageAtPinchPointY,l=(t.newPoints[0].x+t.newPoints[1].x)/2-d(c).scrollLeft(),h=(t.newPoints[0].y+t.newPoints[1].y)/2-d(c).scrollTop(),l=l-t.centerPointStartX,o={top:o+(i+(h-t.centerPointStartY)),left:n+(e+l),scaleX:t.contentStartPos.scaleX*r,scaleY:t.contentStartPos.scaleY*r};t.canTap=!1,t.newWidth=s,t.newHeight=a,t.contentLastPos=o,t.requestId&&(f(t.requestId),t.requestId=null),t.requestId=g(function(){d.envirabox.setTranslate(t.$content,t.contentLastPos)})},i.prototype.ontouchend=function(t){var e=this,i=Math.max((new Date).getTime()-e.startTime,1),n=e.isSwiping,o=e.isPanning,r=e.isZooming;if(e.endPoints=u(t),e.$container.removeClass("envirabox-controls--isGrabbing"),d(a).off(".eb.touch"),e.requestId&&(f(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.canTap)return e.onTap(t);e.speed=366,e.velocityX=e.distanceX/i*.5,e.velocityY=e.distanceY/i*.5,e.speedX=Math.max(.5*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityX)*e.speed)),o?e.endPanning():r?e.endZooming():e.endSwiping(n)},i.prototype.endSwiping=function(t){var e=this,i=!1;e.instance.isSliding=!1,e.sliderLastPos=null,"y"==t&&50<Math.abs(e.distanceY)?(d.envirabox.animate(e.instance.current.$slide,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,opacity:0},150),i=e.instance.close(!0,300)):"x"==t&&50<e.distanceX&&1<e.instance.group.length?i=e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50&&1<e.instance.group.length&&(i=e.instance.next(e.speedX)),!1!==i||"x"!=t&&"y"!=t||e.instance.jumpTo(e.instance.current.index,150),e.$container.removeClass("envirabox-is-sliding")},i.prototype.endPanning=function(){var t,e,i=this;i.contentLastPos&&(t=!1===i.opts.momentum?(e=i.contentLastPos.left,i.contentLastPos.top):(e=i.contentLastPos.left+i.velocityX*i.speed,i.contentLastPos.top+i.velocityY*i.speed),(e=i.limitPosition(e,t,i.contentStartPos.width,i.contentStartPos.height)).width=i.contentStartPos.width,e.height=i.contentStartPos.height,d.envirabox.animate(i.$content,e,330))},i.prototype.endZooming=function(){var t,e,i=this,n=i.instance.current,o=i.newWidth,r=i.newHeight;i.contentLastPos&&(t=i.contentLastPos.left,e=i.contentLastPos.top,d.envirabox.setTranslate(i.$content,{top:e,left:t,width:o,height:r,scaleX:1,scaleY:1}),o<i.canvasWidth&&r<i.canvasHeight?i.instance.scaleToFit(150):o>n.width||r>n.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(n=i.limitPosition(t,e,o,r),d.envirabox.setTranslate(i.content,d.envirabox.getTranslate(i.$content)),d.envirabox.animate(i.$content,n,150)))},i.prototype.onTap=function(e){function t(t){if(t=s.opts[t],t=d.isFunction(t)?t.apply(r,[s,e]):t)switch(t){case"close":r.close(n.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":1<r.group.length?r.next():r.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(l,h):r.group.length<2&&r.close(n.startEvent))}}var i,n=this,o=d(e.target),r=n.instance,s=r.current,a=e&&u(e)||n.startPoints,l=a[0]?a[0].x-n.$stage.offset().left:0,h=a[0]?a[0].y-n.$stage.offset().top:0;if(!(e.originalEvent&&2==e.originalEvent.button||r.isSliding||l>o[0].clientWidth+o.offset().left)){if(o.is(".envirabox-bg,.envirabox-inner,.envirabox-outer,.envirabox-container"))i="Outside";else if(o.is(".envirabox-slide"))i="Slide";else{if(!r.current.$content||!r.current.$content.has(e.target).length)return;i="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(h-n.tapY)||r.isSliding)return this;t("dblclick"+i)}else n.tapX=l,n.tapY=h,s.opts["dblclick"+i]&&s.opts["dblclick"+i]!==s.opts["click"+i]?n.tapped=setTimeout(function(){n.tapped=null,t("click"+i)},300):t("click"+i);return this}},d(a).on("onActivate.eb",function(t,e){e&&!e.Guestures&&(e.Guestures=new i(e))}),d(a).on("beforeClose.eb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery||i)},827:()=>{!function(f){"use strict";function v(i,t,e){if(i)return"object"===f.type(e=e||"")&&(e=f.param(e,!0)),f.each(t,function(t,e){i=i.replace("$"+t,e||"")}),e.length&&(i+=(0<i.indexOf("?")?"&":"?")+e),i}var i={youtube_playlist:{matcher:/^http:\/\/(?:www\.)?youtube\.com\/watch\?((v=[^&\s]*&list=[^&\s]*)|(list=[^&\s]*&v=[^&\s]*))(&[^&\s]*)*$/,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/videoseries?list=$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},facebook:{matcher:/facebook.com\/facebook\/videos\/(.*)\/?(.*)/,type:"genericDiv",subtype:"facebook",url:"//www.facebook.com/facebook/videos/$1"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},instagram_tv:{matcher:/(instagr\.am|instagram\.com)\/tv\/([a-zA-Z0-9_\-]+)\/?/i,type:"iframe",url:"//$1/p/$2/media/?size=l"},wistia:{matcher:/wistia.com\/medias\/(.*)\/?(.*)/,type:"iframe",url:"//fast.wistia.net/embed/iframe/$1"},twitch:{matcher:/player.twitch.tv\/[\\?&]video=([^&#]*)/,type:"iframe",url:"//player.twitch.tv/?video=$1"},videopress:{matcher:/videopress.com\/v\/(.*)\/?(.*)/,type:"iframe",url:"//videopress.com/embed/$1"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};f(document).on("onInit.eb",function(t,e){f.each(e.group,function(t,o){var e,r,s,a,l,h,c=o.src||"",d=!1,u=!1,p=!1,g=!1;o.type||(e=f.extend(!0,{},i,o.opts.media),f.each(e,function(t,e){if(s=c.match(e.matcher),h={},s){if(g=t,d=e.type,void 0!==e.subtype&&(u=e.subtype),e.paramPlace&&s[e.paramPlace]){l=(l="?"==(l=s[e.paramPlace])[0]?l.substring(1):l).split("&");for(var i=0;i<l.length;++i){var n=l[i].split("=",2);2==n.length&&(h[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return a=f.extend(!0,{},e.params,o.opts[t],h),p="function"===f.type(e.url)?e.url.call(this,s,a,o):v(e.url,s,a),r="function"===f.type(e.thumb)?e.thumb.call(this,s,a,o):v(e.thumb,s),"vimeo"===g&&(p=p.replace("&%23","#")),!1}}),d?(o.src=p,o.type=d,o.subtype=u,o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=r),"iframe"===d&&(f.extend(!0,o.opts,{iframe:{preload:!1,provider:g,attr:{scrolling:"no"}}}),o.contentProvider=g,o.opts.slideClass+=" envirabox-slide--"+("gmap_place"==g||"gmap_search"==g?"map":"video"))):o.type="image")})})}(window.jQuery)},75:()=>{!function(r,s){"use strict";function i(t){this.instance=t,this.init()}s.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var e=this;e.$button=s("[data-envirabox-play]").on("click",function(t){t.preventDefault(),e.toggle()}),(e.instance.group.length<2||!e.instance.group[e.instance.currIndex].opts.slideShow)&&e.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){1==t.isActive&&t.instance.next()},t.instance.current.opts.slideShow.speed||t.speed):(t.stop(),t.instance.idleSecondsCounter=0,t.instance.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null},start:function(){var t=this,e=t.instance.current;t.instance&&e&&(e.opts.loop||e.index<t.instance.group.length-1)&&(t.isActive=!0,t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).addClass("envirabox-button--pause"),t.$button.parent().addClass("envirabox-button--pause"),e.isComplete&&t.set())},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("envirabox-button--pause"),t.$button.parent().removeClass("envirabox-button--pause"),t.isActive=!1},toggle:function(){this.isActive?this.stop():this.start()}}),s(r).on({"onInit.eb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new i(e))},"beforeShow.eb":function(t,e,i,n){e=e&&e.SlideShow;n?e&&i.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.eb":function(t,e,i){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.eb":function(t,e,i,n,o){e=e&&e.SlideShow;!e||!i.opts.slideShow||80!==o&&32!==o||s(r.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.eb onDeactivate.eb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(r).on("visibilitychange",function(){var t=s.envirabox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(r.hidden?t.clear():t.set())})}(document,window.jQuery)},655:()=>{!function(t,s){"use strict";function i(t){this.instance=t,this.init()}s.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,objects:null,init:function(){var e=this,i=!1,t=e.instance.group[0],n=e.instance.group[1];e.$button=e.instance.$refs.toolbar.find("[data-envirabox-thumbs]"),1<e.instance.group.length&&e.instance.group[e.instance.currIndex].opts.thumbs&&("image"==t.type||t.opts.thumb||t.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(e.$button.on("touchstart click",function(t){t.stopImmediatePropagation(),"touchend"==t.type?(i=!0,e.toggle()):"click"!=t.type||i?i=!1:e.toggle()}),e.isActive=!0):(e.$button.hide(),e.isActive=!1)},create:function(){var n,o,t=this.instance,e=t.opts.thumbs,i=(this.$grid=s('<div class="envirabox-thumbs envirabox-thumbs-'+e.position+'"></div>').appendTo(t.$refs.container),"classical_dark"===t.opts.lightbox_theme||"classical_light"===t.opts.lightbox_theme?52:50),i="auto"===e.rowHeight?i:e.rowHeight,r=!1===i?"<ul>":'<ul style="height:'+i+'px">';s.each(t.group,function(t,e){var i;n=e.opts.thumb||(e.opts.$thumb?e.opts.$thumb.attr("src"):null),o=e.opts.videoPlayIcon||!1,(n=n||"image"!==e.type?n:e.src)&&n.length&&(i=void 0!==e.contentProvider?e.contentProvider:"none",r+='<li data-index="'+t+'"  tabindex="0" class="envirabox-thumbs-loading envirabox-thumb-content-provider-'+i+" envirabox-thumb-type-"+e.type+'"><img class="envirabox-thumb-image-'+e.type+" envirabox-thumb-content-provider-"+i+'" data-src="'+n+'" />',!o||"video"!=e.type&&"genericDiv"!=e.type&&"youtube"!=i&&"vimeo"!=i&&"instagram"!=i&&"twitch"!=i&&"dailymotion"!=i&&"metacafe"!=i&&"wistia"!=i&&"videopress"!=i||(r+='<div class="envira-video-play-icon">Play</div>'),r+="</li>")}),r+="</ul>",this.$list=s(r).appendTo(this.$grid).on("click touchstart","li",function(){t.jumpTo(s(this).data("index"))}),this.$list.find("img").one("load",function(){s(this).parent().removeClass("envirabox-thumbs-loading");var t=s(this).outerWidth(),e=s(this).outerHeight(),i=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=i/t,r=n/e;1<=o&&1<=r&&(r<o?(i/=r,n=e):(i=t,n/=o)),s(this).css({width:"auto",height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*e-.3*n)),"margin-left":Math.min(0,Math.floor(.5*t-.5*i))}).show()}).each(function(){this.src=s(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("envirabox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("envirabox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("envirabox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),s(t).on({"onInit.eb":function(t,e){e&&!e.Thumbs&&(e.Thumbs=new i(e))},"beforeShow.eb":function(t,e,i,n){e=e&&e.Thumbs;if(e&&e.isActive){if(i.modal)return e.$button.hide(),void e.hide();n&&!0===i.opts.thumbs.autoStart&&e.show(),e.isVisible&&e.focus()}},"afterKeydown.eb":function(t,e,i,n,o){e=e&&e.Thumbs;e&&e.isActive&&71===o&&(n.preventDefault(),e.toggle())},"beforeClose.eb":function(t,e){var i=e&&e.Thumbs;i&&i.isVisible&&!1!==e.opts.thumbs.hideOnClose&&i.close()}})}(document,window.jQuery)},746:(t,e,i)=>{i=i(311);!function(t,e){"use strict";var o=(new Date).getTime();e(t).on({"onInit.eb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,i=(new Date).getTime();n.group.length<1||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("envirabox-animated")||(t=t.originalEvent||t,i-o<250||(o=i,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jQuery||i)},962:(t,e,i)=>{i=i(311);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(g,o,f,v){"use strict";var r,s,a,l,h,c,d,u,t;function p(t){return t=t.replace("&£","&#"),t=(t=f("<textarea/>").html(t).text()).replace("&£","&#")}function i(t){var e=t.currentTarget,i=t.data?t.data.options:{},n=i.selector?f(i.selector):t.data?t.data.items:[],o=f(e).attr("data-envirabox")||"",r=0,s=f.envirabox.getInstance();t.preventDefault(),s&&s.current.opts.$orig.is(e)||(o?(r=(n=n.length?n.filter('[data-envirabox="'+o+'"]'):f('[data-envirabox="'+o+'"]')).index(e))<0&&(r=0):n=[e],f.envirabox.open(n,i,r))}g.console=g.console||{info:function(t){}},f&&(f.fn.envirabox?console.info("EnviraBox already initialized"):(r={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close","thumbs","close"],idleTime:3,smallBtn:!0,protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{envirabox:!0}}},iframe:{tpl:'<iframe id="envirabox-frame{rnd}" name="envirabox-frame{rnd}" class="envirabox-iframe {additionalClasses}" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},genericDiv:{tpl:'<div id="envirabox-generic-div{rnd}" name="envirabox-generic-div{rnd}" class="fb-video"></div>',preload:!0,provider:"facebook",css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"enviraboxSlide",baseClass:"enviraboxLayout",baseTpl:'<div class="envirabox-container" role="dialog"><div class="envirabox-bg"></div><div class="envirabox-inner"><div class="envirabox-infobar"><button data-envirabox-prev title="{{PREV}}" class="envirabox-button envirabox-button--left"></button><div class="envirabox-infobar__body"><span data-envirabox-index></span>&nbsp;/&nbsp;<span data-envirabox-count></span></div><button data-envirabox-next title="{{NEXT}}" class="envirabox-button envirabox-button--right"></button></div><div class="envirabox-toolbar">{{BUTTONS}}</div><div class="envirabox-navigation"><button data-envirabox-prev title="{{PREV}}" class="envirabox-arrow envirabox-arrow--left" /><button data-envirabox-next title="{{NEXT}}" class="envirabox-arrow envirabox-arrow--right" /></div><div class="envirabox-stage"></div><div class="envirabox-caption-wrap"><div class="envirabox-title"></div><div class="envirabox-caption"></div></div></div></div>',spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:'<div class="envirabox-error"><p>{{ERROR}}<p></div>',btnTpl:{slideShow:'<button data-envirabox-play class="envirabox-button envirabox-button--play" title="{{PLAY_START}}"></button>',fullScreen:'<button data-envirabox-fullscreen class="envirabox-button envirabox-button--fullscreen" title="{{FULL_SCREEN}}"></button>',thumbs:'<button data-envirabox-thumbs class="envirabox-button envirabox-button--thumbs" title="{{THUMBS}}"></button>',close:'<button data-envirabox-close class="envirabox-button envirabox-button--close" title="{{CLOSE}}"></button>',download:"",exif:"",smallBtn:'<button data-envirabox-close class="envirabox-close-small" title="{{CLOSE}}"></button>',arrowLeft:"",arrowRight:""},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".envirabox-container",axis:"y",rowHeight:50},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},s=f(g),a=f(o),l=0,h=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return g.setTimeout(t,1e3/60)},c=function(){var t,e=o.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(e.style[t]!==v)return i[t];return"transitionend"}(),d=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e,i){var n=this;n.opts=f.extend(!0,{index:i},r,e||{}),e&&f.isArray(e.buttons)&&(n.opts.buttons=e.buttons),n.id=n.opts.id||++l,n.group=[],n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=null,n.createGroup(t),n.group.length&&(n.$lastFocus=f(o.activeElement).blur(),n.slides={},n.init(t))},f.urlParam=function(t){t=new RegExp("[?&]"+t+"=([^&#]*)").exec(g.location.href);return null==t?null:decodeURI(t[1])||0},f.extend(u.prototype,{init:function(){var e,i,n=this,t=(f.urlParam("envira_page")&&f.urlParam("envira_page"),n.$lastFocus[0]),o=(n.group[n.currIndex]!==v&&n.group[n.currIndex].opts!==v||(n.currIndex=f("div#envira-gallery-wrap-"+t.dataset.envirabox+" div#envira-gallery-item-"+t.dataset.enviraItemId).index()),n.group[n.currIndex]!==v&&n.group[n.currIndex].opts!==v&&n.group[n.currIndex].opts);!1===o&&(t=n.opts.galleryID,n.opts.perPage,f("a.envira-gallery-"+t).length,o=n.group[n.id-1].opts,n.currIndex=n.id-1),!1!==o&&o.baseTpl!==v&&(n.scrollTop=a.scrollTop(),n.scrollLeft=a.scrollLeft(),f.envirabox.getInstance()||f.envirabox.isMobile||"hidden"===f("body").css("overflow")||(t=f("body").width(),f("html").addClass("envirabox-enabled"),1<(t=f("body").width()-t)&&f("head").append('<style id="envirabox-style-noscroll" type="text/css">.compensate-for-scrollbar, .envirabox-enabled body { margin-right: '+t+"px; }</style>")),i="",f.each(o.buttons,function(t,e){i+=o.btnTpl[e]||""}),e=f(n.translate(n,o.baseTpl.replace("{{BUTTONS}}",i))).addClass("envirabox-is-hidden").attr("id","envirabox-container-"+n.id).addClass(o.baseClass).data("EnviraBox",n).prependTo(o.parentEl),n.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","title"].forEach(function(t){n.$refs[t]=e.find(".envirabox-"+t)}),(!o.arrows||n.group.length<2)&&e.find(".envirabox-navigation").remove(),o.infobar||n.$refs.infobar.remove(),o.toolbar||n.$refs.toolbar.remove(),n.trigger("onInit"),n.activate(),n.jumpTo(n.currIndex))},translate:function(t,e){var i=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){e=i[e];return e===v?t:e})},createGroup:function(t){var h=this,t=f.makeArray(t);f.each(t,function(t,e){var i,n,o,r={},s={},a=[];if(f.isPlainObject(e))s=(r=e).opts||e;else if("object"===f.type(e)&&f(e).length){for(var l in i=f(e),a=i.data(),s="options"in a?a.options:{},s="object"===f.type(s)?s:{},r.src="src"in a?a.src:s.src||i.attr("href"),a)a.hasOwnProperty(l)&&(r[l]=a[l]);["width","height","thumb","type","filter"].forEach(function(t){t in a&&(s[t]=a[t])}),"srcset"in a&&(s.image={srcset:a.srcset}),s.$orig=i,r.type||r.src||(r.type="inline",r.src=e)}else r={type:"html",src:e+""};r.opts=f.extend(!0,{},h.opts,s),f.envirabox.isMobile&&(r.opts=f.extend(!0,{},r.opts,r.opts.mobile)),i=r.type||r.opts.type,n=r.src||"",!i&&n&&(n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":n.match(/\.(pdf)((\?|#).*)?$/i)?i="pdf":(o=n.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(i="video",r.opts.videoFormat||(r.opts.videoFormat="video/"+("ogv"===o[1]?"ogg":o[1]))):"#"===n.charAt(0)&&(i="inline")),r.type=i,r.index=h.group.length,"function"===f.type(r.opts.caption)?r.opts.caption=r.opts.caption.apply(e,[h,r]):"caption"in a?r.opts.caption=a.caption:"object"===m(r.opts)&&"string"==typeof r.opts.caption&&null!==r.opts.caption&&0<Object.keys(r.opts).length?r.opts.caption=p(r.opts.caption):r.opts.caption="",r.opts.$orig&&!r.opts.$orig.length&&delete r.opts.$orig,!r.opts.$thumb&&r.opts.$orig&&(r.opts.$thumb=r.opts.$orig.find("img:first")),r.opts.$thumb&&!r.opts.$thumb.length&&delete r.opts.$thumb,"function"===f.type(r.opts.caption)?r.opts.caption=r.opts.caption.apply(e,[h,r]):"caption"in a?r.opts.caption=a.caption:"object"===m(r.opts)&&"string"==typeof r.opts.caption&&null!==r.opts.caption&&0<Object.keys(r.opts).length?r.opts.caption=r.opts.caption:r.opts.caption="",r.opts.caption=r.opts.caption===v?"":r.opts.caption+"",null==r.opts.caption&&(r.opts.caption=""),r.opts.caption=p(r.opts.caption),"function"===f.type(r.opts.title)?r.opts.title=r.opts.title.apply(e,[h,r]):"title"in a?r.opts.title=a.title:"object"===m(r.opts)&&"string"==typeof r.opts.title&&null!==r.opts.title&&0<Object.keys(r.opts).length?r.opts.title=r.opts.title:r.opts.title="",r.opts.title=r.opts.title===v?"":r.opts.title+"",null==r.opts.title&&(r.opts.title=""),r.opts.title=p(r.opts.title),"ajax"===i&&1<(o=n.split(/\s+/,2)).length&&(r.src=o.shift(),r.opts.filter=o.shift()),r.opts.smallBtn!==v&&1==r.opts.smallBtn&&(r.opts.toolbar=!1,r.opts.smallBtn=!0),"pdf"===i&&(r.type="iframe",r.opts.iframe.preload=!1),r.opts.modal&&(r.opts=f.extend(!0,r.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),h.group.push(r)})},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.eb-close","[data-envirabox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("click.eb-prev touchend.eb-prev","[data-envirabox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("click.eb-next touchend.eb-next","[data-envirabox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}),s.on("orientationchange.eb resize.eb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?h(function(){n.update()}):(n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update()},500))}),a.on("focusin.eb",function(t){var e=f.envirabox?f.envirabox.getInstance():null;e.isClosing||!e.current||!e.current.opts.trapFocus||f(t.target).hasClass("envirabox-container")||f(t.target).is(o)||e&&"fixed"!==f(t.target).css("position")&&!e.$refs.container.has(t.target).length&&(t.stopPropagation(),e.focus(),s.scrollTop(n.scrollTop).scrollLeft(n.scrollLeft))}),a.on("keydown.eb",function(t){var e=n.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!f(t.target).is("input")&&!f(t.target).is("textarea"))return 9===i?t.shiftKey?void n.jumpTo(n.currIndex-1,1):void n.jumpTo(n.currIndex+1,1):8===i||27===i?(t.preventDefault(),void n.close(t)):37===i||38===i?(t.preventDefault(),void n.previous()):39===i||40===i?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,i)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,a.on("mousemove.eb-idle mouseenter.eb-idle mouseleave.eb-idle mousedown.eb-idle touchstart.eb-idle touchmove.eb-idle scroll.eb-idle keydown.eb-idle",function(){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=g.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){s.off("orientationchange.eb resize.eb"),a.off("focusin.eb keydown.eb .eb-idle"),this.$refs.container.off(".eb-close .eb-prev .eb-next"),this.idleInterval&&(g.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n,e){var i,o,r,s,a,l,h=this,c=h.group.length;if(!(h.isSliding||h.isClosing||h.isAnimating&&h.firstRun)){if(t=parseInt(t,10),!(a=(h.current||h).opts.loop)&&(t<0||c<=t))return!1;if(i=h.firstRun=null===h.firstRun,!(c<2&&!i&&h.isSliding)){if(r=h.current,h.prevIndex=h.currIndex,h.prevPos=h.currPos,o=h.createSlide(t),1<c&&((a||0<o.index)&&h.createSlide(t-1),(a||o.index<c-1)&&h.createSlide(t+1)),h.current=o,h.currIndex=o.index,h.currPos=o.pos,h.trigger("beforeShow",i),h.updateControls(),a=f.envirabox.getTranslate(o.$slide),o.isMoved=(0!==a.left||0!==a.top)&&!o.$slide.hasClass("envirabox-animated"),o.forcedDuration=v,f.isNumeric(n)?o.forcedDuration=n:n=o.opts[i?"animationDuration":"transitionDuration"],n=parseInt(n,10),i)return o.opts.animationEffect&&n&&h.$refs.container.css("transition-duration",n+"ms"),h.$refs.container.removeClass("envirabox-is-hidden"),d(h.$refs.container),h.$refs.container.addClass("envirabox-is-open"),o.$slide.addClass("envirabox-slide--current"),h.loadSlide(o),void h.preload();f.each(h.slides,function(t,e){f.envirabox.stop(e.$slide)}),o.$slide.removeClass("envirabox-slide--next envirabox-slide--previous").addClass("envirabox-slide--current"),o.isMoved?(s=Math.round(o.$slide.width()),f.each(h.slides,function(t,e){var i=e.pos-o.pos;f.envirabox.animate(e.$slide,{top:0,left:i*s+i*e.opts.gutter},n,function(){e.$slide.removeAttr("style").removeClass("envirabox-slide--next envirabox-slide--previous"),e.pos===h.currPos&&(o.isMoved=!1,h.complete())})})):h.$refs.stage.children().removeAttr("style"),o.isLoaded?h.revealContent(o):h.loadSlide(o),h.preload(),r.pos!==o.pos&&(l="envirabox-slide--"+(r.pos>o.pos?"next":"previous"),r.$slide.removeClass("envirabox-slide--complete envirabox-slide--current envirabox-slide--next envirabox-slide--previous"),r.isComplete=!1,n&&(o.isMoved||o.opts.transitionEffect)&&(o.isMoved?r.$slide.addClass(l):(l="envirabox-animated "+l+" envirabox-fx-"+o.opts.transitionEffect,f.envirabox.animate(r.$slide,l,n,function(){r.$slide.removeClass(l).removeAttr("style")}))))}}},createSlide:function(t){var e,i=this,n=t%i.group.length;return n=n<0?i.group.length+n:n,!i.slides[t]&&i.group[n]&&(e=f('<div class="envirabox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=f.extend(!0,{},i.group[n],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var n,o,r,s,a=this,l=a.current,h=l.$content,c=parseInt(l.$slide.width(),10),d=parseInt(l.$slide.height(),10),u=l.width,p=l.height;"image"!=l.type||l.hasError||!h||a.isAnimating||(f.envirabox.stop(h),a.isAnimating=!0,t=t===v?.5*c:t,e=e===v?.5*d:e,r=u/(l=f.envirabox.getTranslate(h)).width,s=p/l.height,n=.5*c-.5*u,o=.5*d-.5*p,c<u&&(n=0<(n=l.left*r-(t*r-t))?0:n)<c-u&&(n=c-u),d<p&&(o=0<(o=l.top*s-(e*s-e))?0:o)<d-p&&(o=d-p),a.updateCursor(u,p),f.envirabox.animate(h,{top:o,left:n,scaleX:r,scaleY:s},i||330,function(){a.isAnimating=!1}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop())},scaleToFit:function(t){var e=this,i=e.current,n=i.$content;"image"!=i.type||i.hasError||!n||e.isAnimating||(f.envirabox.stop(n),e.isAnimating=!0,i=e.getFitPos(i),e.updateCursor(i.width,i.height),f.envirabox.animate(n,{top:i.top,left:i.left,scaleX:i.width/n.width(),scaleY:i.height/n.height()},t||330,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,i,n=t.$content,o=t.width,r=t.height,t=((/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)&&matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)").matches||2===g.devicePixelRatio)&&(o*=2,r*=2),t.opts.margin);return!(!n||!n.length||!o&&!r)&&(2===(t="number"===f.type(t)?[t,t]:t).length&&(t=[t[0],t[1],t[0],t[1]]),s.width()<800&&(t=[0,30,0,30]),n=Math.abs(parseInt(this.$refs.stage.width(),10)-(t[1]+t[3])),e=Math.abs(parseInt(this.$refs.stage.height(),10)-(t[0]+t[2])),i=Math.min(1,n/o,e/r),o=Math.floor(i*o),i=Math.floor(i*r),{top:Math.floor(.5*(e-i))+t[0],left:Math.floor(.5*(n-o))+t[3],width:o,height:i})},update:function(){var i=this;f.each(i.slides,function(t,e){i.updateSlide(e)})},updateSlide:function(t){var e=t.$content;e&&(t.width||t.height)&&(f.envirabox.stop(e),f.envirabox.setTranslate(e,this.getFitPos(t)),t.pos===this.currPos&&this.updateCursor()),t.$slide.trigger("refresh"),this.trigger("onUpdate",t)},updateCursor:function(t,e){var i=this,n=i.$refs.container.removeClass("envirabox-is-zoomable envirabox-can-zoomIn envirabox-can-drag envirabox-can-zoomOut");i.current&&!i.isClosing&&(i.isZoomable()?(n.addClass("envirabox-is-zoomable"),(t!==v&&e!==v?t<i.current.width&&e<i.current.height:i.isScaledDown())?n.addClass("envirabox-can-zoomIn"):i.current.opts.touch?n.addClass("envirabox-can-drag"):n.addClass("envirabox-can-zoomOut")):i.current.opts.touch&&n.addClass("envirabox-can-drag"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing)return!!("image"===e.type&&e.isLoaded&&!e.hasError&&("zoom"===e.opts.clickContent||f.isFunction(e.opts.clickContent)&&"zoom"===e.opts.clickContent(e))&&(t=this.getFitPos(e),e.width>t.width||e.height>t.height))},isScaledDown:function(){var t=this.current,e=t.$content,i=!1;return i=e?(i=f.envirabox.getTranslate(e)).width<t.width||i.height<t.height:i},canPan:function(){var t=this.current,e=t.$content,i=!1;return e&&(i=this.getFitPos(t),i=1<Math.abs(e.width()-i.width)||1<Math.abs(e.height()-i.height)),i},loadSlide:function(i){var t,e,n,o=this;if(!i.isLoading&&!i.isLoaded){switch(i.isLoading=!0,o.trigger("beforeLoad",i),t=i.type,(e=i.$slide).off("refresh").trigger("onReset").addClass("envirabox-slide--"+(t||"unknown")).addClass(i.opts.slideClass),t){case"image":o.setImage(i);break;case"video":o.setVideo(i);break;case"iframe":o.setIframe(i);break;case"genericDiv":o.setGenericDiv(i);break;case"html":o.setContent(i,i.src||i.content);break;case"inline":f(i.src).length?o.setContent(i,f(i.src)):o.setError(i);break;case"ajax":o.showLoading(i),n=f.ajax(f.extend({},i.opts.ajax.settings,{url:i.src,success:function(t,e){"success"===e&&o.setContent(i,t)},error:function(t,e){t&&"abort"!==e&&o.setError(i)}})),e.one("onReset",function(){n.abort()});break;default:o.setError(i)}return!0}},setVideo:function(t){var e,i,n,o,r,s,a,l;this.isClosing||(this.hideLoading(t),t.$slide.empty(),n=e=o="",!(a="controls")!==t.opts.videoPlayPause&&(n+="videos_play_pause "),(i=l=!1)!==t.opts.videoProgressBar&&(n+="videos_progress "),!1!==t.opts.videoPlaybackTime&&(n+="videos_playback_time "),!1!==t.opts.videoVideoLength&&(n+="videos_video_length "),!1!==t.opts.videoVolumeControls&&(n+="videos_volume_controls "),!1!==t.opts.videoControlBar?n+="videos_controls ":(a=t.opts.videoAutoPlay!==v&&!1!==t.opts.videoAutoPlay?"autoplay playinline":"",e+="nodownload nofullscreen noremoteplayback "),!1!==t.opts.videoFullscreen&&(n+="videos_fullscreen "),!1!==t.opts.videoDownload?n+="videos_download ":e+="nodownload ",0<t.videoWidth&&(l="max-width:"+t.videoWidth+"px;"),0<t.videoHeight&&(i="max-height:"+t.videoHeight+"px;"),(l||i)&&(o='style="'+l+i+'"'),0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-content video '+n+'" '+o+'"><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').appendTo(t.$slide):t.$content=f('<div class="envirabox-content '+n+'" '+o+"></div>").appendTo(t.$slide),!0===t.opts.smallBtn&&t.$content.prepend(this.translate(t,t.opts.btnTpl.smallBtn)),!0===t.opts.insideCap&&(l=t.caption!==v?t.caption:"",i=t.title!==v?t.title:"",n=t.opts.capPosition||"",o=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow)&&t.opts.capTitleShow,r=t.enviraItemId||"",s="caption"==o&&'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+l+"</div>",s="title_caption"==o?'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+i+" "+l+"</div>":s,!1!==(s="title"==o?'<div class="envirabox-title envirabox-title-item-id-'+r+'">'+i+"</div>":s)&&s!==v&&0<s.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+n+'">'+s+"</div>")),""!=a&&(a=a+' poster="'+(t.videoPlaceholder||t.thumb)+'" '+(t.videoPlaysInline!==v?t.videoPlaysInline:"playsinline")+' controlsList="'+e+'"'),l=t.src!==v?t.src:t.link,f('<div class="envirabox-video-container"><video class="envirabox-video-player" '+a+'><source src="'+l+'" type="video/mp4">Your broswser doesn\'t support HTML5 video</video></div>').appendTo(t.$content),this.afterLoad(t))},setImage:function(t){var e,i,n,o,r,s,a,l,h,c=this,d=t.opts.image.srcset;if(d){n=g.devicePixelRatio||1,o=g.innerWidth*n,(i=d.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var i=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;i&&(n.value=i,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var u=0;u<i.length;u++){var p=i[u];if("w"===p.postfix&&p.value>=o||"x"===p.postfix&&p.value>=n){e=p;break}}(e=!e&&i.length?i[i.length-1]:e)&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value))}0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-image-wrap"><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-is-hidden").appendTo(t.$slide):t.$content=f('<div class="envirabox-image-wrap"></div>').addClass("envirabox-is-hidden").appendTo(t.$slide),!0===t.opts.smallBtn&&t.$content.prepend(c.translate(t,t.opts.btnTpl.smallBtn)),!0===t.opts.insideCap&&(d=t.caption!==v?t.caption:"",r=t.title!==v?t.title:"",s=t.opts.capPosition||"",a=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow||!1===t.opts.capTitleShow||"false"===t.opts.capTitleShow)&&t.opts.capTitleShow,l=t.enviraItemId||"",h="caption"==a&&'<div class="envirabox-caption envirabox-caption-item-id-'+l+'">'+d+"</div>",h="title_caption"==a?'<div class="envirabox-caption envirabox-caption-item-id-'+l+'">'+r+" "+d+"</div>":h,!1!==(h="title"==a?'<div class="envirabox-title envirabox-title-item-id-'+l+'">'+r+"</div>":h)&&h!==v&&0<h.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+s+'">'+h+"</div>")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=f("<img />").one("error",function(){f(this).remove(),t.$ghost=null,c.setBigImage(t)}).one("load",function(){c.afterLoad(t),c.setBigImage(t)}).addClass("envirabox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):c.setBigImage(t)},setBigImage:function(t){var e=this,i=f("<img />");t.$image=i.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&i.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.hideLoading(t),t.$ghost?t.timouts=setTimeout(function(){t.timouts=null,t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))):e.afterLoad(t))}).addClass("envirabox-image").attr("src",t.src).appendTo(t.$content);matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)").matches&&t.enviraRetina!==v&&!1!==t.enviraRetina&&""!==t.enviraRetina?t.$image.attr("srcset",t.src+" 1x, "+t.enviraRetina+" 2x"):t.src!==v&&!1!==t.src&&t.$image.attr("srcset",t.src+" 1x"),(i[0].complete||"complete"==i[0].readyState)&&i[0].naturalWidth&&i[0].naturalHeight?i.trigger("load"):i[0].error?i.trigger("error"):t.timouts=setTimeout(function(){i[0].complete||t.hasError||e.showLoading(t)},100)},frameWidth:null,frameHeight:null,setIframe:function(e){var t,i,n,o,r,s,a=this,l=e.opts.iframe,h=e.$slide;if(0!==e.opts.arrows&&"inside"==e.opts.arrow_position?e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-hidden").addClass("envirabox-iframe-hidden").css("width","640px").css("height","360px").appendTo(e.$slide):l.provider!==v?e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ></div>').addClass("envirabox-hidden").addClass("envirabox-iframe-hidden").css("width","640px").css("height","360px").appendTo(h):e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ></div>').css("width","90%").css("height","90%").appendTo(h),t=f(l.tpl.replace(/\{rnd\}/g,(new Date).getTime()).replace(/\{additionalClasses\}/g,e.contentProvider)).attr(l.attr).appendTo(e.$content).css("width",!1).css("height",!1),l.preload){a.showLoading(e),t.on("load.eb error.eb",function(t){this.isReady=1,e.$slide.trigger("refresh"),a.afterLoad(e)});var l=!1;try{l=t.contents().find("body")}catch(t){}l&&l.length&&l.children().length&&($content.css({width:"",height:""}),null===a.frameWidth&&(a.frameWidth=Math.ceil(Math.max(l[0].clientWidth,l.outerWidth(!0)))),a.frameWidth&&$content.width(a.frameWidth),null===a.frameHeight&&(a.frameHeight=Math.ceil(Math.max(l[0].clientHeight,l.outerHeight(!0)))),a.frameHeight&&$content.height(a.frameHeight),$content.removeClass("envirabox-hidden"))}else this.afterLoad(e);!0===e.opts.insideCap&&(l=e.caption!==v?e.caption:"",i=e.title!==v?e.title:"",n=e.opts.capPosition||"",o=!(!e.opts.capTitleShow||"0"===e.opts.capTitleShow)&&e.opts.capTitleShow,r=e.enviraItemId||"",s="caption"==o&&'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+l+"</div>",s="title_caption"==o?'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+i+" "+l+"</div>":s,!1!==(s="title"==o?'<div class="envirabox-title envirabox-title-item-id-'+r+'">'+i+"</div>":s)&&s!==v&&0<s.length&&e.$content.prepend('<div class="envirabox-caption-wrap '+n+'">'+s+"</div>")),t.attr("src",e.src),!0===e.opts.smallBtn&&e.$content.prepend(a.translate(e,e.opts.btnTpl.smallBtn)),h.one("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}f(this).empty(),e.isLoaded=!1})},setGenericDiv:function(t){var e,i,n,o=t.opts.genericDiv,r=t.$slide,s="640px",a="360px";0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-content'+(o.preload?" envirabox-is-hidden":" ")+" provider-"+o.provider+'" ><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-hidden").css("width",s).css("height",a).appendTo(t.$slide):("facebook"==o.provider&&(s=a="auto"),t.$content=f('<div class="envirabox-content'+(o.preload?" envirabox-is-hidden":" ")+" provider-"+o.provider+'" ></div>').addClass("envirabox-hidden").css("width",s).css("height",a).appendTo(r)),f(o.tpl.replace(/\{rnd\}/g,(new Date).getTime()).replace(/\{additionalClasses\}/g,t.contentProvider)).attr(o.attr).attr("data-href",t.src).appendTo(t.$content).css("width",s).css("height",a),this.afterLoad(t),!0===t.opts.insideCap&&(o=t.caption!==v?t.caption:"",s=t.title!==v?t.title:"",a=t.opts.capPosition||"",e=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow)&&t.opts.capTitleShow,i=t.enviraItemId||"",n="caption"==e&&'<div class="envirabox-caption envirabox-caption-item-id-'+i+'">'+o+"</div>",n="title_caption"==e?'<div class="envirabox-caption envirabox-caption-item-id-'+i+'">'+s+" "+o+"</div>":n,!1!==(n="title"==e?'<div class="envirabox-title envirabox-title-item-id-'+i+'">'+s+"</div>":n)&&n!==v&&0<n.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+a+'">'+n+"</div>")),!0===t.opts.smallBtn&&t.$content.prepend(this.translate(t,t.opts.btnTpl.smallBtn)),r.one("onReset",function(){try{f(this).find("genericDiv").hide().attr("src","//about:blank")}catch(t){}f(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var i;this.isClosing||(this.hideLoading(t),t.$slide.empty(),(i=e)&&i.hasOwnProperty&&i instanceof f&&e.parent().length?(e.parent(".envirabox-slide--inline").trigger("onReset"),t.$placeholder=f("<div></div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&3===(e=f("<div>").append(f.trim(e)).contents())[0].nodeType&&(e=f("<div>").html(e)),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1)}),t.$content=f(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=f(this.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content.filter("div").first())),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass("envirabox-slide--"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){this.isClosing||(t.isLoading=!1,t.isLoaded=!0,this.trigger("afterLoad",t),this.hideLoading(t),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.eb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="envirabox-spaceball"></div>').appendTo(t.$content)),this.revealContent(t))},revealContent:function(e){var i,t,n,o=this,r=e.$slide,s=!1,a=e.opts[o.firstRun?"animationEffect":"transitionEffect"],l=e.opts[o.firstRun?"animationDuration":"transitionDuration"];return l=parseInt(e.forcedDuration===v?l:e.forcedDuration,10),"zoom"===(a="zoom"!==(a=!e.isMoved&&e.pos===o.currPos&&l?a:!1)||e.pos===o.currPos&&l&&"image"===e.type&&!e.hasError&&(s=o.getThumbPos(e))?a:"fade")?((n=o.getFitPos(e)).scaleX=n.width/s.width,n.scaleY=n.height/s.height,delete n.width,delete n.height,(t="auto"==(t=e.opts.zoomOpacity)?.1<Math.abs(e.width/e.height-s.width/s.height):t)&&(s.opacity=.1,n.opacity=1),f.envirabox.setTranslate(e.$content.removeClass("envirabox-is-hidden"),s),d(e.$content),void f.envirabox.animate(e.$content,n,l,function(){o.complete()})):(o.updateSlide(e),a?(f.envirabox.stop(r),i="envirabox-animated envirabox-slide--"+(e.pos>o.prevPos?"next":"previous")+" envirabox-fx-"+a,r.removeAttr("style").removeClass("envirabox-slide--current envirabox-slide--next envirabox-slide--previous").addClass(i),e.$content.removeClass("envirabox-is-hidden"),d(r),void f.envirabox.animate(r,"envirabox-slide--current",l,function(t){r.removeClass(i).removeAttr("style"),e.pos===o.currPos&&o.complete()},!0)):(d(r),e.$content.removeClass("envirabox-is-hidden"),void(e.pos===o.currPos&&o.complete())))},getThumbPos:function(t){var e,i=!1,t=t.opts.$thumb,n=t?t.offset():0;return n&&t[0].ownerDocument===o&&function(t){for(var e=t[0],i=e.getBoundingClientRect(),n=[];null!==e.parentElement;)"hidden"!==f(e.parentElement).css("overflow")&&"auto"!==f(e.parentElement).css("overflow")||n.push(e.parentElement.getBoundingClientRect()),e=e.parentElement;return n.every(function(t){var e=Math.min(i.right,t.right)-Math.max(i.left,t.left),t=Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top);return 0<e&&0<t})&&0<i.bottom&&0<i.right&&i.left<f(g).width()&&i.top<f(g).height()}(t)&&(e=this.$refs.stage.offset(),i={top:n.top-e.top+parseFloat(t.css("border-top-width")||0),left:n.left-e.left+parseFloat(t.css("border-left-width")||0),width:t.width(),height:t.height(),scaleX:1,scaleY:1}),i},complete:function(){var i=this,t=i.current,n={};t.isMoved||!t.isLoaded||t.isComplete||(t.isComplete=!0,t.$slide.siblings().trigger("onReset"),d(t.$slide),t.$slide.addClass("envirabox-slide--complete"),f.each(i.slides,function(t,e){e.pos>=i.currPos-1&&e.pos<=i.currPos+1?n[e.pos]=e:e&&(f.envirabox.stop(e.$slide),e.$slide.off().remove())}),i.slides=n,i.updateCursor(),i.trigger("afterShow"),(f(o.activeElement).is("[disabled]")||t.opts.autoFocus&&"image"!=t.type&&"iframe"!==t.type)&&i.focus())},preload:function(){var t,e,i=this;i.group.length<2||(t=i.slides[i.currPos+1],e=i.slides[i.currPos-1],t&&"image"===t.type&&i.loadSlide(t),e&&"image"===e.type&&i.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(e&&e.isComplete&&((t=e.$slide.find("input[autofocus]:enabled:visible:first")).length||(t=e.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))),(t=t&&t.length?t:this.$refs.container).focus())},activate:function(){var e=this;f(".envirabox-container").each(function(){var t=f(this).data("envirabox");t&&t.uid!==e.uid&&!t.isClosing&&t.trigger("onDeactivate")}),e.current&&(0<e.$refs.container.index()&&e.$refs.container.prependTo(o.body),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function i(){a.cleanUp(t)}var n,o,r,s,a=this,l=a.current;return!a.isClosing&&(!(a.isClosing=!0)===a.trigger("beforeClose",t)?(a.isClosing=!1,h(function(){a.update()}),!1):(a.removeEvents(),l.timouts&&clearTimeout(l.timouts),r=l.$content,n=l.opts.animationEffect,e=f.isNumeric(e)?e:n?l.opts.animationDuration:0,l.$slide.off(c).removeClass("envirabox-slide--complete envirabox-slide--next envirabox-slide--previous envirabox-animated"),l.$slide.siblings().trigger("onReset").remove(),e&&a.$refs.container.removeClass("envirabox-is-open").addClass("envirabox-is-closing"),a.hideLoading(l),a.hideControls(),a.updateCursor(),"zoom"===(n="zoom"!==n||!0!==t&&r&&e&&"image"===l.type&&!l.hasError&&(s=a.getThumbPos(l))?n:"fade")?(f.envirabox.stop(r),(r=f.envirabox.getTranslate(r)).width=r.width*r.scaleX,r.height=r.height*r.scaleY,(o="auto"==(o=l.opts.zoomOpacity)?.1<Math.abs(l.width/l.height-s.width/s.height):o)&&(s.opacity=0),r.scaleX=r.width/s.width,r.scaleY=r.height/s.height,r.width=s.width,r.height=s.height,f.envirabox.setTranslate(l.$content,r),f.envirabox.animate(l.$content,s,e,i)):n&&e?!0===t?setTimeout(i,e):f.envirabox.animate(l.$slide.removeClass("envirabox-slide--current"),"envirabox-animated envirabox-slide--previous envirabox-fx-"+n,e,i):i(),!0))},cleanUp:function(t){var e=this;e.current.$slide.trigger("onReset"),e.$refs.container.empty().remove(),e.trigger("afterClose",t),e.$lastFocus&&e.current.opts.backFocus&&e.$lastFocus.focus(),e.current=null,(t=f.envirabox.getInstance())?t.activate():(s.scrollTop(e.scrollTop).scrollLeft(e.scrollLeft),f("html").removeClass("envirabox-enabled"),f("#envirabox-style-noscroll").remove())},trigger:function(t,e){var i,n=Array.prototype.slice.call(arguments,1),e=e&&e.opts?e:this.current;if(e?n.unshift(e):e=this,n.unshift(this),!1===(i=f.isFunction(e.opts[t])?e.opts[t].apply(e,n):i))return i;("afterClose"===t?a:this.$refs.container).trigger(t+".eb",n)},updateControls:function(t){var e=this,i=e.current,n=i.index,o=i.opts,r=o.caption,s=o.title,a=e.$refs.caption,l=e.$refs.title;i.$slide.trigger("refresh"),e.$caption=r&&r.length?a.html(r):null,e.$title=s&&s.length?l.html(s):null,e.isHiddenControls||e.showControls(),f("[data-envirabox-count]").html(e.group.length),f("[data-envirabox-index]").html(n+1),f("[data-envirabox-prev]").prop("disabled",!o.loop&&n<=0),f("[data-envirabox-next]").prop("disabled",!o.loop&&n>=e.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("envirabox-show-infobar envirabox-show-toolbar envirabox-show-caption envirabox-show-title envirabox-show-nav envirabox-show-exif"),this.$refs.container.addClass("envirabox-hide-exif")},showControls:function(){var t=this,e=(t.current||t).opts,i=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,i.toggleClass("envirabox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("envirabox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("envirabox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("envirabox-is-modal",!!e.modal),t.$caption?i.addClass("envirabox-show-caption "):i.removeClass("envirabox-show-caption"),t.$title?i.addClass("envirabox-show-title "):i.removeClass("envirabox-show-title"),i.addClass("envirabox-show-exif"),i.removeClass("envirabox-hide-exif")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),f.envirabox={version:"{envirabox-version}",defaults:r,getInstance:function(t){var e=f('.envirabox-container:not(".envirabox-is-closing"):first').data("envirabox"),i=Array.prototype.slice.call(arguments,1);return e instanceof u&&("string"===f.type(t)?e[t].apply(e,i):"function"===f.type(t)&&t.apply(e,i),e)},open:function(t,e,i){var n=this.getInstance();if(!n)return new u(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close())},destroy:function(){this.close(!0),a.off("click.eb-start")},isMobile:o.createTouch!==v&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:(t=o.createElement("div"),g.getComputedStyle&&g.getComputedStyle(t).getPropertyValue("transform")&&!(o.documentMode&&o.documentMode<11)),getTranslate:function(t){var e,i;return!(!t||!t.length)&&((e=(e=t.eq(0).css("transform"))&&-1!==e.indexOf("matrix")?(e=(e=e.split("(")[1]).split(")")[0]).split(","):[]).length?e=(e=10<e.length?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]]).map(parseFloat):(e=[0,0,1,1],(i=/\.*translate\((.*)px,(.*)px\)/i.exec(t.eq(0).attr("style")))&&(e[0]=parseFloat(i[2]),e[1]=parseFloat(i[1]))),{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()})},setTranslate:function(t,e){var i="",n={};if(t&&e)return e.left===v&&e.top===v||(i=(e.left===v?t.position():e).left+"px, "+(e.top===v?t.position():e).top+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),(i=e.scaleX!==v&&e.scaleY!==v?(i.length?i+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")":i).length&&(n.transform=i),e.opacity!==v&&(n.opacity=e.opacity),e.width!==v&&(n.width=e.width),e.height!==v&&(n.height=e.height),t.css(n)},animate:function(e,i,t,n,o){var r=c||"transitionend";f.isFunction(t)&&(n=t,t=null),f.isPlainObject(i)||e.removeAttr("style"),e.on(r,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(e.off(r),f.isPlainObject(i)?i.scaleX!==v&&i.scaleY!==v&&(e.css("transition-duration","0ms"),i.width=Math.round(e.width()*i.scaleX),i.height=Math.round(e.height()*i.scaleY),i.scaleX=1,i.scaleY=1,f.envirabox.setTranslate(e,i)):!0!==o&&e.removeClass(i),f.isFunction(n)&&n(t))}),f.isNumeric(t)&&e.css("transition-duration",t+"ms"),f.isPlainObject(i)?f.envirabox.setTranslate(e,i):e.addClass(i),e.data("timer",setTimeout(function(){e.trigger("transitionend")},t+16))},stop:function(t){clearTimeout(t.data("timer")),t.off(c)}},f.fn.envirabox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.eb-start",e).on("click.eb-start",e,{options:t},i):this.off("click.eb-start").on("click.eb-start",{items:this,options:t},i),this}))}(window,document,window.jQuery||i)},165:(t,e,i)=>{var n;window,n=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create,o=(i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}},i.destroy);return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e},i=[i(794)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},204:function(t,n,e){var o,i,r,s;"function"==typeof(i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(!t||!e)return;var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(-1===n.indexOf(e))n.push(e);return this},e.once=function(t,e){if(!t||!e)return;this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||[];n[e]=true;return this},e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=i.indexOf(e);if(-1!==n)i.splice(n,1);return this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=0;var o=i[n];e=e||[];var r=this._onceEvents&&this._onceEvents[t];while(o){var s=r&&r[o];if(s){this.off(t,o);delete r[o]}o.apply(this,e);n+=s?0:1;o=i[n]}return this},t})?(r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},o=i.call(r.exports,e,r.exports,r),r.loaded=!0,void 0===o&&(o=r.exports)):o=i,function(e,i){"use strict";s=[o],void 0!==(s=function(t){return i(e,t)}.apply(n,s))&&(t.exports=s)}(window,function(e,t){var n=e.jQuery,o=e.console;function r(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,i){if(!(this instanceof s))return new s(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}};var a={1:!0,9:!0,11:!0};function i(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new i(t);this.images.push(t)},s.prototype.addBackground=function(t,e){t=new l(t,e);this.images.push(t)},s.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.pendingSrc||this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(l.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.enviraImagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(n(this))})})(),s})},968:function(t,n,o){var e,i,r,s,a,l,h,c,d,u,p,g,f,v,m,b,y,x,_,w,S,C,I,T;function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(e,i){"use strict";_=[o(311)],void 0!==(w=function(t){i(e,t)}.apply(n,_))&&(t.exports=w)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(l,h,c){(c=c||e||t.jQuery)&&(h.prototype.option||(h.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,n,o,r,s,a;return"string"==typeof t?(e=i.call(arguments,1),o=e,s="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=c.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),r=void 0===r?i:r):d(s+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e):(a=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(a),i._init()):(i=new h(e,a),c.data(e,l,i))}),this)},r(c))}function r(t){t&&!t.bridget&&(t.bridget=o)}r(e||t.jQuery)}),"function"==typeof(x=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(!t||!e)return;var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1)n.push(e);return this},e.once=function(t,e){if(!t||!e)return;this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this},e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=i.indexOf(e);if(n!=-1)i.splice(n,1);return this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=0;var o=i[n];e=e||[];var r=this._onceEvents&&this._onceEvents[t];while(o){var s=r&&r[o];if(s){this.off(t,o);delete r[o]}o.apply(this,e);n+=s?0:1;o=i[n]}return this},t})?(c={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},e=x.call(c.exports,o,c.exports,c),c.loaded=!0,void 0===e&&(e=c.exports)):e=x,function(){"use strict";_=[],void 0===(i=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See http://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);o.isBoxSizeOuter=w=m(i.width)==200;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||E(t)!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:h+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(h+p);i.outerWidth=i.width+c;i.outerHeight=i.height+d;return i}return o}.apply(r={},_))&&(i=r)}(window),function(){"use strict";"function"==typeof(a=function(){"use strict";var n=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?(l={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},s=a.call(l.exports,o,l.exports,l),l.loaded=!0,void 0===s&&(s=l.exports)):s=a}(window),S=window,C=function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,r(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(t&&clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},h=i.console;return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(h&&h.error("Error parsing "+n+" on "+e.className+": "+t))}i=new s(e,t);r&&r.data(e,a,i)})})},l},_=[s],void 0===(h=function(t){return C(S,t)}.apply(c={},_))&&(h=c),window,x=[e,i],"function"==typeof(m=function(t,e){"use strict";function o(t){for(var e in t)return false;e=null;return true}var i=document.documentElement.style;var n=typeof i.transition=="string"?"transition":"WebkitTransition";var r=typeof i.transform=="string"?"transform":"WebkitTransform";var s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n];var a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function l(t,e){if(!t)return;this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var h=l.prototype=Object.create(t.prototype);h.constructor=l;h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})};h.handleEvent=function(t){var e="on"+t.type;if(this[e])this[e](t)};h.getSize=function(){this.size=e(this.element)};h.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}};h.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=this.layout.size;var s=n.indexOf("%")!=-1?parseFloat(n)/100*r.width:parseInt(n,10);var a=o.indexOf("%")!=-1?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s;a=isNaN(a)?0:a;s-=e?r.paddingLeft:r.paddingRight;a-=i?r.paddingTop:r.paddingBottom;this.position.x=s;this.position.y=a};h.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var l=n?"paddingTop":"paddingBottom";var h=n?"top":"bottom";var c=n?"bottom":"top";var d=this.position.y+t[l];e[h]=this.getYValue(d);e[c]="";this.css(e);this.emitEvent("layout",[this])};h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"};h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"};h._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=parseInt(t,10);var r=parseInt(e,10);var s=o===this.position.x&&r===this.position.y;this.setPosition(t,e);if(s&&!this.isTransitioning){this.layoutPosition();return}var a=t-i;var l=e-n;var h={};h.transform=this.getTranslate(a,l);this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})};h.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"};h.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()};h.moveTo=h._transitionTo;h.setPosition=function(t,e){this.position.x=parseInt(t,10);this.position.y=parseInt(e,10)};h._nonTransition=function(t){this.css(t.to);if(t.isCleaning)this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)};h.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning)e.clean[i]=true}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};function c(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var d="opacity,"+c(r);h.enableTransition=function(){if(this.isTransitioning)return;var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)};h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)};h.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target!==this.element)return;var e=this._transn;var i=u[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties))this.disableTransition();if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])};h.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false};h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};h.removeTransitionStyles=function(){this.css(p)};h.stagger=function(t){t=isNaN(t)?0:t;this.staggerDelay=t+"ms"};h.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])};h.remove=function(){if(!n||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()});this.hide()};h.reveal=function(){delete this.isHidden;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:true,onTransitionEnd:e})};h.onRevealTransitionEnd=function(){if(!this.isHidden)this.emitEvent("reveal")};h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i};h.hide=function(){this.isHidden=true;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:true,onTransitionEnd:e})};h.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:"none"});this.emitEvent("hide")}};h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})};return l})?void 0===(d=m.apply(g={},x))&&(d=g):d=m,function(o,r){"use strict";_=[e,i,h,d],void 0===(u=function(t,e,i,n){return r(o,t,e,i,n)}.apply(p={},_))&&(u=p)}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,l=0,h={};function c(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++l,this.element.outlayerGUID=e,(h[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}c.namespace="outlayer",c.Item=r,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function u(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=p[t]||1;return e*t}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete h[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},c.create=function(t,e){var i=u(c);return i.defaults=n.extend({},c.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},c.compatOptions),i.namespace=t,i.data=c.data,i.Item=u(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var p={ms:1,s:1e3};return c.Item=r,c}),window,_=[u],void 0!==(w="function"==typeof(x=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create,o=(i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}},i.destroy);return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e})?x.apply(n,_):x)&&(t.exports=w),window,g=[i,u],"function"==typeof(m=function(e,i){"use strict";function n(t){(this.enviratope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.enviratope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.enviratope.element);return this.enviratope.size&&t&&t.innerHeight!=this.enviratope.size.innerHeight},o._getMeasurement=function(){this.enviratope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,t=t+e,n="outer"+e;this._getMeasurement(t,n),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[n]||this.enviratope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.enviratope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.enviratope.layout.apply(this.enviratope,arguments)},o.getSize=function(){this.enviratope.getSize(),this.size=this.enviratope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n})?void 0===(f=m.apply(v={},g))&&(f=v):f=m,window,v=[u,i],"function"==typeof(m=function(t,d){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";e.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0};e.prototype.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var t=this.items[0];var e=t&&t.element;this.columnWidth=e&&d(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter;var n=this.containerWidth+this.gutter;var o=n/i;var r=i-n%i;var s=r&&r<1?"round":"floor";o=Math[s](o);this.cols=Math.max(o,1)};e.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth");var e=t?this.element.parentNode:this.element;var i=d(e);this.containerWidth=i&&i.innerWidth};e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth;var i=e&&e<1?"round":"ceil";var n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);var o=this._getColGroup(n);var r=Math.min.apply(Math,o);var s=o.indexOf(r);var a={x:this.columnWidth*s,y:r};var l=r+t.size.outerHeight;var h=this.cols+1-o.length;for(var c=0;c<h;c++)this.colYs[s+c]=l;return a};e.prototype._getColGroup=function(t){if(t<2)return this.colYs;var e=[];var i=this.cols+1-t;for(var n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e};e.prototype._manageStamp=function(t){var e=d(t);var i=this._getElementOffset(t);var n=this._getOption("originLeft");var o=n?i.left:i.right;var r=o+e.outerWidth;var s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1;a=Math.min(this.cols-1,a);var l=this._getOption("originTop");var h=(l?i.top:i.bottom)+e.outerHeight;for(var c=s;c<=a;c++)this.colYs[c]=Math.max(h,this.colYs[c])};e.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};if(this._getOption("fitWidth"))t.width=this._getContainerFitWidth();return t};e.prototype._getContainerFitWidth=function(){var t=0;var e=this.cols;while(--e){if(this.colYs[e]!==0)break;t++}return(this.cols-t)*this.columnWidth-this.gutter};e.prototype.needsResizeLayout=function(){var t=this.containerWidth;this.getContainerWidth();return t!=this.containerWidth};return e})?void 0===(y=m.apply(b={},v))&&(y=b):y=m,window,_=[f,y],void 0!==(w="function"==typeof(x=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns,s=(n.measureColumns=function(){this.items=this.enviratope.filteredItems,r.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.enviratope,arguments)},t})?x.apply(n,_):x)&&(t.exports=w),window,_=[f],void 0!==(w="function"==typeof(x=function(t){"use strict";var e=t.create("fitRows");var i=e.prototype;i._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")};i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter;var i=this.enviratope.size.innerWidth+this.gutter;if(this.x!==0&&e+this.x>i){this.x=0;this.y=this.maxY}var n={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight);this.x+=e;return n};i._getContainerSize=function(){return{height:this.maxY}};return e})?x.apply(n,_):x)&&(t.exports=w),window,_=[f],void 0!==(w="function"==typeof(x=function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0});var i=e.prototype;i._resetLayout=function(){this.y=0};i._getItemLayoutPosition=function(t){t.getSize();var e=(this.enviratope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment;var i=this.y;this.y+=t.size.outerHeight;return{x:e,y:i}};i._getContainerSize=function(){return{height:this.y}};return e})?x.apply(n,_):x)&&(t.exports=w),I=window,T=function(t,i,e,n,r,o,s){var a,l,h=t.jQuery,c=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=i.create("enviratope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),t=(d.Item=o,d.LayoutMode=s,d.prototype),u=(t._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},t.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},t._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},t._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},t.layout=function(){!this._isLayoutInited&&this._getOption("initLayout")?this.arrange():this._layout()},t._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},t.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},t._init=t.arrange,t._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},t._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},t._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},t._filter=function(t){for(var e=this.options.filter,i=[],n=[],o=[],r=this._getFilterTest(e||"*"),s=0;s<t.length;s++){var a,l=t[s];l.isIgnored||((a=r(l))&&i.push(l),a&&l.isHidden?n.push(l):a||l.isHidden||o.push(l))}return{matches:i,needReveal:n,needHide:o}},t._getFilterTest=function(e){return h&&this.options.isJQueryFiltering?function(t){return h(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},t.updateSortData=function(t){t=t?(t=r.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},t._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=u(i)}},t._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){if("string"!=typeof t)return t;var e=c(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),r=d.sortDataParsers[e[1]];return t=r?function(t){return t&&r(o(t))}:function(t){return t&&o(t)}});function p(t){return a.apply(this,arguments)}function g(t){return l.apply(this,arguments)}d.sortDataParsers={parseInt:(l=function(t){return parseInt(t,10)},g.toString=function(){return l.toString()},g),parseFloat:(a=function(t){return parseFloat(t)},p.toString=function(){return a.toString()},p)},t._sort=function(){var t,s,a,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),s=t,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<s.length;i++){var n=s[i],o=t.sortData[n],r=e.sortData[n];if(r<o||o<r)return(r<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}),e!=this.sortHistory[0]&&this.sortHistory.unshift(e))},t._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(e)return e.options=this.options[t],e;throw new Error("No layout mode: "+t)},t._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},t._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},t._manageStamp=function(t){this._mode()._manageStamp(t)},t._getContainerSize=function(){return this._mode()._getContainerSize()},t.needsResizeLayout=function(){return this._mode().needsResizeLayout()},t.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},t.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},t._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},t.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var f=t.remove;return t.remove=function(t){t=r.makeArray(t);for(var e=this.getItems(t),i=(f.call(this,t),e&&e.length),n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},t.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},t._noTransition=function(t,e){var i=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.apply(this,e));return this.options.transitionDuration=i,t},t.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d},_=[u,i,s,h,o(165),o(477),o(245),o(620),o(175)],void 0!==(w=function(t,e,i,n,o,r){return T(I,t,0,i,n,o,r)}.apply(n,_))&&(t.exports=w)},59:(t,e,i)=>{var c,n,i=i(311);function o(){return c("body").height()>c(window).height()}function r(t,e){this.settings=e,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=e.border?e.border:e.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:c('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}c=i,r.prototype.getSuffix=function(t,e){for(var i=e<t?t:e,n=0;n<this.suffixRanges.length;n++)if(i<=this.suffixRanges[n])return this.settings.sizeRangeSuffixes[this.suffixRanges[n]];return this.settings.sizeRangeSuffixes[this.suffixRanges[n-1]]},r.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},r.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},r.prototype.getUsedSuffix=function(t){for(var e in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&0!==this.settings.sizeRangeSuffixes[e].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[e]))return this.settings.sizeRangeSuffixes[e];return""},r.prototype.newSrc=function(t,e,i){var n,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,e,i):(n=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(e,i)+n),o},r.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("entry-visible"),e&&e()):t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e)},r.prototype.extractImgSrcFromImage=function(t){var e=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",e),e},r.prototype.imgFromEntry=function(t){var e=t.find("> img");return 0===(e=0===e.length?t.find("> a > img"):e).length?null:e},r.prototype.captionFromEntry=function(t){t=t.find(".caption");return 0===t.length?null:t},r.prototype.displayEntry=function(t,e,i,n,o,r){t.width(n),t.height(r),t.css("top",i),t.css("left",e);var s,a,l,h=this.imgFromEntry(t);null!==h?(h.css("width",n),h.css("height",o),h.css("margin-left",-n/2),h.css("margin-top",-o/2),s=h.attr("src"),a=this.newSrc(s,n,o),h.one("error",function(){h.attr("src",h.data("jg.originalSrc"))}),l=function(){s!==a&&h.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(s,c.proxy(function(){this.showImg(t,l),t.data("jg.loaded",!0)},this)):this.showImg(t,l)):this.showImg(t),this.displayEntryCaption(t)},r.prototype.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i=i.attr("alt"),this.isValidCaption(i)||(i=t.attr("title")),this.isValidCaption(i)&&(e=c('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0))),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(c(t.currentTarget));this.settings.cssAnimation?void 0!==t&&null!=t&&t.addClass("caption-visible").removeClass("caption-hidden"):void 0!==t&&null!=t&&t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(c(t.currentTarget));this.settings.cssAnimation?void 0!==t&&null!=t&&t.removeClass("caption-visible").removeClass("caption-hidden"):void 0!==t&&null!=t&&t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var e;void 0===t.data("jg.captionMouseEvents")&&(e={mouseenter:c.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:c.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,e.mouseenter),t.on("mouseleave",void 0,void 0,e.mouseleave),t.data("jg.captionMouseEvents",e))},r.prototype.removeCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0!==e&&(t.off("mouseenter",void 0,e.mouseenter),t.off("mouseleave",void 0,e.mouseleave),t.removeData("jg.captionMouseEvents"))},r.prototype.prepareBuildingRow=function(t){var e,i,n,o,r=!0,s=0,a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,l=a/this.buildingRow.aspectRatio,h=this.settings.rowHeight,c=this.buildingRow.width/a>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!c){for(e=0;e<this.buildingRow.entriesBuff.length;e++)i=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?i.removeClass("entry-visible"):i.stop().fadeTo(0,0);return-1}for(t&&!c&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(r=!1,0<this.rows&&(r=(h=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/a>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)o=(i=this.buildingRow.entriesBuff[e]).data("jg.width")/i.data("jg.height"),o=r?(n=e===this.buildingRow.entriesBuff.length-1?a:l*o,l):(n=h*o,h),a-=Math.round(n),i.data("jg.jwidth",Math.round(n)),i.data("jg.jheight",Math.ceil(o)),(0===e||o<s)&&(s=o);return this.settings.fixedHeight&&s>this.settings.rowHeight&&(s=this.settings.rowHeight),this.buildingRow.height=s,r},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n=!(r.prototype.flushRow=function(t){var e,i=this.settings,n=this.border,o=this.prepareBuildingRow(t);if(t&&"hide"===i.lastRow&&-1===o)this.clearBuildingRow();else{if(this.maxRowHeight.isPercentage?this.maxRowHeight.value*i.rowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value*i.rowHeight):0<this.maxRowHeight.value&&this.maxRowHeight.value<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value),"center"===i.lastRow||"right"===i.lastRow){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*i.margins,s=0;s<this.buildingRow.entriesBuff.length;s++)r-=(e=this.buildingRow.entriesBuff[s]).data("jg.jwidth");"center"===i.lastRow?n+=r/2:"right"===i.lastRow&&(n+=r)}for(s=0;s<this.buildingRow.entriesBuff.length;s++)e=this.buildingRow.entriesBuff[s],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+i.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.$gallery.height(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=i.rowHeight&&o)&&(this.offY+=this.buildingRow.height+i.margins,this.rows+=1,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))}}),r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(c.proxy(function(){var t=parseFloat(this.$gallery.width());o()===n?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.startImgAnalyzer(!0)):(n=o(),this.galleryWidth=t)},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,e=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<e.length?e.eq(t.phase).fadeTo(t.timeSlot,1):e.eq(t.phase-e.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*e.length)},t.timeSlot)},r.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.prototype.updateEntries=function(t){return this.entries=this.$gallery.find(this.settings.selector).toArray(),0!==this.entries.length&&(this.settings.filter?this.modifyEntries(this.filterArray,t):this.modifyEntries(this.resetFilters,t),c.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},r.prototype.insertToGallery=function(t){var e=this;c.each(t,function(){c(this).appendTo(e.$gallery)})},r.prototype.shuffleArray=function(t){for(var e,i,n=t.length-1;0<n;n--)e=Math.floor(Math.random()*(n+1)),i=t[n],t[n]=t[e],t[e]=i;return this.insertToGallery(t),t},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)c(t[e]).removeClass("jg-filtered");return t},r.prototype.filterArray=function(t){var e=this.settings;return"string"===c.type(e.filter)?t.filter(function(t){t=c(t);return t.is(e.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered"),!1)}):c.isFunction(e.filter)?t.filter(e.filter):void 0},r.prototype.modifyEntries=function(t,e){var i=e?this.entries.splice(this.lastAnalyzedIndex+1,this.entries.length-this.lastAnalyzedIndex-1):this.entries,i=t.call(this,i);this.entries=e?this.entries.concat(i):i},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),c.each(this.entries,c.proxy(function(t,e){var e=c(e),i=(e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry"),this.imgFromEntry(e)),i=(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),i.attr("src",i.data("jg.originalSrc")),i.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e),this.captionFromEntry(e));e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("envira-justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=c(this.entries[e]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,o=i.data("jg.width")/i.data("jg.height");if(n/(this.buildingRow.aspectRatio+o)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=o,this.buildingRow.width+=o*this.settings.rowHeight,this.lastAnalyzedIndex=e}else if("error"!==i.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(t?"jg.resize":"jg.complete"),this.$gallery.height(this.galleryHeightToSet)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},r.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,e,i){var n,o;(e||i)&&(n=new Image,o=c(n),e&&o.one("load",function(){o.off("load error"),e(n)}),i&&o.one("error",function(){o.off("load error"),i(n)}),n.src=t)},r.prototype.init=function(){var r=!1,s=!1,a=this;c.each(this.entries,function(t,e){var i=c(e),e=a.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==a.settings.rel&&i.attr("rel",a.settings.rel),null!==a.settings.target&&i.attr("target",a.settings.target),null!==e){var n=a.extractImgSrcFromImage(e);if(e.attr("src",n),!1===a.settings.waitThumbnailsLoad){var o=parseFloat(e.attr("width")),e=parseFloat(e.attr("height"));if(!isNaN(o)&&!isNaN(e))return i.data("jg.width",o),i.data("jg.height",e),i.data("jg.loaded","skipped"),s=!0,a.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),r=!0,a.isSpinnerActive()||a.startLoadingSpinnerAnimation(),a.onImageEvent(n,function(t){i.data("jg.width",i.find(".envira-gallery-image").data("envira-width")),i.data("jg.height",i.find(".envira-gallery-image").data("envira-height")),i.data("jg.loaded",!0),a.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),a.startImgAnalyzer(!1)})}else i.data("jg.loaded",!0),i.data("jg.width",i.width()|parseFloat(i.css("width"))|1),i.data("jg.height",i.height()|parseFloat(i.css("height"))|1)}),r||s||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,e){if("string"===c.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==c.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==c.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(t);for(var i={0:""},n=0;n<e.length;n++)if("string"===c.type(e[n]))try{i[parseInt(e[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[e[n]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else i[e[n]]=this.settings.sizeRangeSuffixes[e[n]];this.settings.sizeRangeSuffixes=i},r.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===c.type(this.settings.maxRowHeight))this.settings.maxRowHeight.match(/^[0-9]+%$/)?(t.value=parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100,t.isPercentage=!1):(t.value=parseFloat(this.settings.maxRowHeight),t.isPercentage=!0);else{if("number"!==c.type(this.settings.maxRowHeight))throw"maxRowHeight must be a number or a percentage";t.value=this.settings.maxRowHeight,t.isPercentage=!1}if(isNaN(t.value))throw"invalid number for maxRowHeight";return t.isPercentage?t.value<100&&(t.value=100):0<t.value&&t.value<this.settings.rowHeight&&(t.value=this.settings.rowHeight),t},r.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==c.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==c.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!==c.type(this.settings.fixedHeight))throw"fixedHeight must be a boolean";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==c.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==c.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!c.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!c.isFunction(this.settings.filter)&&"string"!==c.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.prototype.retrieveSuffixRanges=function(){var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(t,e){return e<t?1:t<e?-1:0}),e},r.prototype.updateSettings=function(t){this.settings=c.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},c.fn.justifiedGallery=function(n){return this.each(function(t,e){var e=c(e),i=(e.addClass("envira-justified-gallery"),e.data("jg.controller"));if(void 0===i){if(null!=n&&"object"!==c.type(n)){if("destroy"===n)return;throw"The argument must be an object"}i=new r(e,c.extend({},c.fn.justifiedGallery.defaults,n)),e.data("jg.controller",i)}else if("norewind"!==n){if("destroy"===n)return void i.destroy();i.updateSettings(n),i.rewind()}i.updateEntries("norewind"===n)&&i.init()})},c.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:-1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/] + $ /,refreshTime:100,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}},477:(t,e,i)=>{var n;window,n=function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,t=t+e,n="outer"+e;this._getMeasurement(t,n),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n},i=[i(131),i(794)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},620:(t,e,i)=>{var n;window,n=function(t){"use strict";var t=t.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},t},i=[i(477)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},245:(t,e,i)=>{var n;window,n=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns,s=(n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},t},i=[i(477),i(751)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},175:(t,e,i)=>{var n;window,n=function(t){"use strict";var t=t.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},t},i=[i(477)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},613:(t,e,i)=>{var n;i=[i(311)],void 0!==(e="function"==typeof(n=function(u){var t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice,g,f;if(u.event.fixHooks)for(var e=t.length;e;)u.event.fixHooks[t[--e]]=u.event.mouseHooks;var v=u.event.special.mousewheel={version:"3.1.12",setup:function t(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],n,false);else this.onmousewheel=n;u.data(this,"mousewheel-line-height",v.getLineHeight(this));u.data(this,"mousewheel-page-height",v.getPageHeight(this))},teardown:function t(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],n,false);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height");u.removeData(this,"mousewheel-page-height")},getLineHeight:function t(e){var i=u(e),n=i["offsetParent"in u.fn?"offsetParent":"parent"]();if(!n.length)n=u("body");return parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function t(e){return u(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};function n(t){var e=t||window.event,i=p.call(arguments,1),n=0,o=0,r=0,s=0,a=0,l=0;t=u.event.fix(e);t.type="mousewheel";if("detail"in e)r=e.detail*-1;if("wheelDelta"in e)r=e.wheelDelta;if("wheelDeltaY"in e)r=e.wheelDeltaY;if("wheelDeltaX"in e)o=e.wheelDeltaX*-1;if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){o=r*-1;r=0}n=r===0?o:r;if("deltaY"in e){r=e.deltaY*-1;n=r}if("deltaX"in e){o=e.deltaX;if(r===0)n=o*-1}if(r===0&&o===0)return;if(e.deltaMode===1){var h=u.data(this,"mousewheel-line-height");n*=h;r*=h;o*=h}else if(e.deltaMode===2){var c=u.data(this,"mousewheel-page-height");n*=c;r*=c;o*=c}s=Math.max(Math.abs(r),Math.abs(o));if(!f||s<f){f=s;if(b(e,s))f/=40}if(b(e,s)){n/=40;o/=40;r/=40}n=Math[n>=1?"floor":"ceil"](n/f);o=Math[o>=1?"floor":"ceil"](o/f);r=Math[r>=1?"floor":"ceil"](r/f);if(v.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=t.clientX-d.left;l=t.clientY-d.top}t.deltaX=o;t.deltaY=r;t.deltaFactor=f;t.offsetX=a;t.offsetY=l;t.deltaMode=0;i.unshift(t,n,o,r);if(g)clearTimeout(g);g=setTimeout(m,200);return(u.event.dispatch||u.event.handle).apply(this,i)}function m(){f=null}function b(t,e){return v.settings.adjustOldDeltas&&t.type==="mousewheel"&&e%120===0}u.fn.extend({mousewheel:function t(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function t(e){return this.unbind("mousewheel",e)}})})?n.apply(e,i):n)&&(t.exports=e)},362:()=>{Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),i=e.length,n=new Array(i);i--;)n[i]=[e[i],t[e[i]]];return n})},741:(t,e,i)=>{var n;!function(){"use strict";void 0!==(n="function"==typeof(n=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?n.call(e,i,e,t):n)&&(t.exports=n)}(window)},158:function(t,e,i){var n;void 0!==(i="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(!t||!e)return;var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1)n.push(e);return this},e.once=function(t,e){if(!t||!e)return;this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this},e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=i.indexOf(e);if(n!=-1)i.splice(n,1);return this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var o=0;o<i.length;o++){var r=i[o];var s=n&&n[r];if(s){this.off(t,r);delete n[r]}r.apply(this,e)}return this},e.allOff=function(){delete this._events;delete this._onceEvents},t})?n.call(e,i,e,t):n)&&(t.exports=i)},131:t=>{var e,i;e=window,i=function(){function c(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}let d=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];d.length;return function(t){if((t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){let n=getComputedStyle(t);if("none"==n.display){let e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return d.forEach(t=>{e[t]=0}),e}{let i={};i.width=t.offsetWidth,i.height=t.offsetHeight;var t=i.isBorderBox="border-box"==n.boxSizing,e=(d.forEach(t=>{var e=n[t],e=parseFloat(e);i[t]=isNaN(e)?0:e}),i.paddingLeft+i.paddingRight),o=i.paddingTop+i.paddingBottom,r=i.marginLeft+i.marginRight,s=i.marginTop+i.marginBottom,a=i.borderLeftWidth+i.borderRightWidth,l=i.borderTopWidth+i.borderBottomWidth,h=c(n.width),h=(!1!==h&&(i.width=h+(t?0:e+a)),c(n.height));return!1!==h&&(i.height=h+(t?0:o+l)),i.innerWidth=i.width-(e+a),i.innerHeight=i.height-(o+l),i.outerWidth=i.width+r,i.outerHeight=i.height+s,i}}}},t.exports?t.exports=i():e.getSize=i()},751:(t,e,i)=>{var n;window,n=function(t,a){"use strict";var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),n={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,r=e+i.col,s=i.col;s<r;s++)this.colYs[s]=o;return n},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},e._getColGroupY=function(t,e){if(e<2)return this.colYs[t];t=this.colYs.slice(t,t+e);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=i;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t},i=[i(794),i(291)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},291:(t,e,i)=>{var n;window,void 0!==(i="function"==typeof(n=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);w=Math.round(m(i.width))==200;o.isBoxSizeOuter=w;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||typeof t!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:h+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(h+p);i.outerWidth=i.width+c;i.outerHeight=i.height+d;return i}return o})?n.call(e,i,e,t):n)&&(t.exports=i)},652:(t,e,i)=>{var n;window,n=function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:i,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function s(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=s.prototype=Object.create(t.prototype);t.constructor=s,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],o=parseFloat(n),r=parseFloat(t),s=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*s.width),-1!=t.indexOf("%")&&(r=r/100*s.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=e?s.paddingLeft:s.paddingRight,r-=i?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",r=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(r),e[o]="",n?"paddingTop":"paddingBottom"),r=n?"bottom":"top",o=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(o),e[r]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var a="opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),l=(t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:a,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),h=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=l[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(h)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},s},i=[i(158),i(69)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},95:(t,e,i)=>{var n,o;n=window,o=function(i,r){"use strict";var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,h=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},l.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(h&&h.error("Error parsing "+n+" on "+e.className+": "+t))}i=new s(e,t);r&&r.data(e,a,i)})})},l},i=[i(741)],void 0!==(e=function(t){return o(n,t)}.apply(e,i))&&(t.exports=e)},69:(t,e,i)=>{var n;window,void 0!==(i="function"==typeof(n=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);w=Math.round(m(i.width))==200;o.isBoxSizeOuter=w;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||typeof t!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:h+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(h+p);i.outerWidth=i.width+c;i.outerHeight=i.height+d;return i}return o})?n.call(e,i,e,t):n)&&(t.exports=i)},794:(t,e,i)=>{var n;!function(o,r){"use strict";n=[i(158),i(69),i(95),i(652)],void 0!==(n=function(t,e,i,n){return r(o,t,e,i,n)}.apply(e,n))&&(t.exports=n)}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,l=0,h={};function c(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++l,this.element.outlayerGUID=e,(h[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}c.namespace="outlayer",c.Item=r,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function u(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=p[t]||1;return e*t}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete h[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},c.create=function(t,e){var i=u(c);return i.defaults=n.extend({},c.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},c.compatOptions),i.namespace=t,i.data=c.data,i.Item=u(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var p={ms:1,s:1e3};return c.Item=r,c})},311:t=>{"use strict";t.exports=jQuery}},n={};function b(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return i[t].call(e.exports,e,e.exports,b),e.exports}b.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return b.d(e,{a:e}),e},b.d=(t,e)=>{for(var i in e)b.o(e,i)&&!b.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},b.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);(()=>{"use strict";b(362),b(613),b(59),b(556),b(204),b(968),b(962),b(390),b(827),b(746),b(850),b(655),b(75);var t=b(496),n=b.n(t),h=b(311);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(r.push(n.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw o}}return r}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,a,e,l,u,i,p,t=function(){function r(t,e,i,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var o=this;o.data=e,o.images=i,o.id=t,o.envirabox_config=n,o.initImage=!1,o.log(o.data),o.log(o.images),o.log(o.envirabox_config),o.log(o.id),o.init()}var t,e,i;return t=r,(e=[{key:"init",value:function(){var e=this,t=e.get_config("lazy_loading");switch(e.get_config("layout")){case"automatic":e.justified(),h(document).trigger("envira_gallery_api_justified",e.data),t&&(e.load_images(),h(document).on("envira_pagination_ajax_load_completed",function(){return h("#envira-gallery-"+e.id).on("jg.complete",function(t){t.preventDefault(),e.load_images()})}));break;case"mason":setTimeout(function(){e.enviratopes()},100),t&&(e.load_images(),e.enviratopes(),h(window).scroll(function(t){e.enviratopes()}));break;default:t&&e.load_images()}(e.get_config("lightbox_enabled")||e.get_config("lightbox"))&&e.lightbox(),h(document).trigger("envira_gallery_api_init",e)}},{key:"load_images",value:function(){n().run("#envira-gallery-"+this.id)}},{key:"justified",value:function(){h("#envira-gallery-"+this.id).enviraJustifiedGallery({rowHeight:this.is_mobile()?this.get_config("mobile_justified_row_height"):this.get_config("justified_row_height"),maxRowHeight:-1,waitThumbnailsLoad:!0,selector:"> div > div",lastRow:this.get_config("justified_last_row"),border:0,margins:this.get_config("justified_margins")}),h(document).trigger("envira_gallery_api_start_justified",this),h("#envira-gallery-"+this.id).css("opacity","1")}},{key:"justified_norewind",value:function(){h("#envira-gallery-"+self.id).enviraJustifiedGallery("norewind")}},{key:"enviratopes",value:function(){var t=this;h(document).trigger("envira_gallery_api_enviratope_config",[t]),h("#envira-gallery-"+t.id).enviratope({itemSelector:".envira-gallery-item",masonry:{columnWidth:".envira-gallery-item"}}),h("#envira-gallery-"+t.id).enviraImagesLoaded().always(function(){h("#envira-gallery-"+t.id).enviratope("layout")}),h(document).trigger("envira_gallery_api_enviratope",[t])}},{key:"lightbox",value:function(){var s=this,t=s.get_config("mobile_touchwipe_close")?{vertical:!0,momentum:!0}:{vertical:!1,momentum:!1},e=!s.get_config("thumbnails_hide")||s.get_config("thumbnails_hide"),i=s.is_mobile()?this.get_config("mobile_thumbnails_height"):this.get_config("thumbnails_height"),e=!!s.get_config("thumbnails")&&{autoStart:e,hideOnClose:!0,position:s.get_lightbox_config("thumbs_position"),rowHeight:"side"!==s.get_lightbox_config("thumbs_position")&&i},i=!!s.get_config("slideshow")&&{autoStart:s.get_config("autoplay"),speed:s.get_config("ss_speed")},n=!s.get_config("fullscreen")||!s.get_config("open_fullscreen")||{autoStart:!0},o="zomm-in-out"==s.get_config("lightbox_open_close_effect")?"zoom-in-out":s.get_config("lightbox_open_close_effect"),r="zomm-in-out"==s.get_config("effect")?"zoom":s.get_config("effect"),a=[],l="";if(s.lightbox_options={selector:'[data-envirabox="'+s.id+'"]',loop:s.get_config("loop"),margin:s.get_lightbox_config("margins"),gutter:s.get_lightbox_config("gutter"),keyboard:s.get_config("keyboard"),arrows:s.get_lightbox_config("arrows"),arrow_position:s.get_lightbox_config("arrow_position"),infobar:s.get_lightbox_config("infobar"),toolbar:s.get_lightbox_config("toolbar"),idleTime:!!s.get_lightbox_config("idle_time")&&s.get_lightbox_config("idle_time"),smallBtn:s.get_lightbox_config("show_smallbtn"),protect:!1,image:{preload:!1},animationEffect:o,animationDuration:s.get_lightbox_config("animation_duration")?s.get_lightbox_config("animation_duration"):300,btnTpl:{smallBtn:s.get_lightbox_config("small_btn_template")},zoomOpacity:"auto",transitionEffect:r,transitionDuration:s.get_lightbox_config("transition_duration")?s.get_lightbox_config("transition_duration"):200,baseTpl:s.get_lightbox_config("base_template"),spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:s.get_lightbox_config("error_template"),fullScreen:!!s.get_config("fullscreen")&&n,touch:t,hash:!1,insideCap:s.get_lightbox_config("inner_caption"),capPosition:s.get_lightbox_config("caption_position"),capTitleShow:!(!s.get_config("lightbox_title_caption")||"none"==s.get_config("lightbox_title_caption")||"0"==s.get_config("lightbox_title_caption")||!1!==["classical_dark","classical_light","infinity_dark","infinity_light"].includes(s.get_config("lightbox_theme")))&&s.get_config("lightbox_title_caption"),media:{youtube:{params:{autoplay:0}}},wheel:0!=this.get_config("mousewheel"),slideShow:i,thumbs:e,lightbox_theme:s.get_config("lightbox_theme"),mobile:{clickContent:function(t,e){return s.get_lightbox_config("click_content")?s.get_lightbox_config("click_content"):"toggleControls"},clickSlide:function(t,e){return s.get_lightbox_config("click_slide")?s.get_lightbox_config("click_slide"):"close"},dblclickContent:!1,dblclickSlide:!1},clickContent:function(t,e){return!("image"!==t.type||"undefined"!==s.get_config("disable_zoom")&&"1"==s.get_config("disable_zoom")||"1"==s.get_config("zoom_hover")&&"undefined"!=typeof envira_zoom&&void 0!==envira_zoom.enviraZoomActive)&&"zoom"},clickSlide:s.get_lightbox_config("click_slide")?s.get_lightbox_config("click_slide"):"close",clickOutside:s.get_lightbox_config("click_outside")?s.get_lightbox_config("click_outside"):"toggleControls",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,videoPlayPause:!!s.get_config("videos_playpause"),videoProgressBar:!!s.get_config("videos_progress"),videoPlaybackTime:!!s.get_config("videos_current"),videoVideoLength:!!s.get_config("videos_duration"),videoVolumeControls:!!s.get_config("videos_volume"),videoControlBar:!!s.get_config("videos_controls"),videoFullscreen:!!s.get_config("videos_fullscreen"),videoDownload:!!s.get_config("videos_download"),videoPlayIcon:!!s.get_config("videos_play_icon_thumbnails"),videoAutoPlay:!!s.get_config("videos_autoplay"),onInit:function(t,e){s.initImage=!0,h(document).trigger("envirabox_api_on_init",[s,t,e])},beforeLoad:function(t,e){h(document).trigger("envirabox_api_before_load",[s,t,e])},afterLoad:function(t,e){h(document).trigger("envirabox_api_after_load",[s,t,e])},beforeShow:function(t,e){"base"==s.data.lightbox_theme&&""==l&&0<h(".envirabox-position-overlay").length&&(l=h(".envirabox-position-overlay")),s.initImage=!1,0===s.get_config("loop")&&0==t.currIndex?h(".envirabox-slide--current a.envirabox-prev").hide():h(".envirabox-slide--current a.envirabox-prev").show(),0===s.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?h(".envirabox-slide--current a.envirabox-next").hide():h(".envirabox-slide--current a.envirabox-next").show(),h(document).trigger("envirabox_api_before_show",[s,t,e])},afterShow:function(t,e){var i,n;h(".envirabox-thumbs ul").find("li").removeClass("focused"),h(".envirabox-thumbs ul").find("li.envirabox-thumbs-active").focus().addClass("focused"),null!=i&&null!=n||(n=i=!1),1!=i&&(h(".envirabox-position-overlay").each(function(){h(this).prependTo(e.$content)}),i=!0),0===s.get_config("loop")&&0==t.currIndex?h(".envirabox-outer a.envirabox-prev").hide():h(".envirabox-outer a.envirabox-prev").show(),0===s.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?h(".envirabox-outer a.envirabox-next").hide():h(".envirabox-outer a.envirabox-next").show(),void 0!==s.get_config("keyboard")&&0===s.get_config("keyboard")&&h(window).keypress(function(t){-1<[32,37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),h(".envirabox-slide--current .envirabox-title").css("visibility","visible"),0<h(".envirabox-slide--current .envirabox-caption").length&&0<h(".envirabox-slide--current .envirabox-caption").html().length?(h(".envirabox-slide--current .envirabox-caption").css("visibility","visible"),h(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","visible")):(h(".envirabox-slide--current .envirabox-caption").css("visibility","hidden"),h(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","hidden")),h(".envirabox-navigation").show(),h(".envirabox-navigation-inside").show(),void 0!==l&&""!=l&&0<h(".envirabox-slide--current .envirabox-image-wrap").length?h(".envirabox-image-wrap").prepend(l):void 0!==l&&""!=l&&0<h(".envirabox-slide--current .envirabox-content").length&&h(".envirabox-content").prepend(l),h(document).trigger("envirabox_api_after_show",[s,t,e]),void 0===t.opts.capTitleShow||"caption"!=t.opts.capTitleShow&&"title_caption"!=t.opts.capTitleShow||""!=e.caption?h(".envirabox-caption-wrap .envirabox-caption").css("visibility","visible"):h(".envirabox-caption-wrap .envirabox-caption").css("visibility","hidden")},beforeClose:function(t,e){h(document).trigger("envirabox_api_before_close",[s,t,e])},afterClose:function(t,e){h(document).trigger("envirabox_api_after_close",[s,t,e])},onActivate:function(t,e){h(document).trigger("envirabox_api_on_activate",[s,t,e])},onDeactivate:function(t,e){h(document).trigger("envirabox_api_on_deactivate",[s,t,e])}},s.is_mobile()&&1!==s.get_config("mobile_thumbnails")&&(s.lightbox_options.thumbs=!1),s.get_lightbox_config("load_all")){o=s.images;if("object"!==d(o))return;h.each(o,function(t){void 0!==this.video&&void 0!==this.video.embed_url&&(this.src=this.video.embed_url),a.push(this)})}else{r=h(".envira-gallery-"+s.id);h.each(r,function(t){a.push(this)})}h("#envira-gallery-wrap-"+s.id+" .envira-gallery-link").on("click",function(t){var i=this,n=(t.preventDefault(),t.stopImmediatePropagation(),h(this).find("img").data("envira-index")),o=h(this).find("img").attr("src"),r=!1;(1===parseInt(s.get_config("pagination"))&&0===parseInt(n)||"1"==s.get_config("sort_order"))&&(Object.entries(a).forEach(function(t){var t=c(t,2),e=t[0],t=t[1];h(t).prop("data-envira-item-src")!=o&&h(t).find("img").prop("src")!=o||(n=e,r=!0)}),!0!==r&&Object.entries(a).forEach(function(t){var t=c(t,2),e=t[0],t=t[1];t!=h(i).attr("href")&&t.src!=h(i).find("img").data("envira-item-src")||(n=e,r=!0)})),h.envirabox.open(a,s.lightbox_options,n)}),h(document).trigger("envirabox_lightbox_api",s)}},{key:"get_config",value:function(t){return this.data[t]}},{key:"get_lightbox_config",value:function(t){return this.envirabox_config[t]}},{key:"get_image",value:function(t){return this.images[t]}},{key:"is_mobile",value:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"log",value:function(t){null!=envira_gallery.debug&&envira_gallery.debug&&null!=t&&console.log(t)}}])&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(),g=b(617),g=b.n(g),f=b(311),v=window.envira_galleries||{},m=window.envira_links||{};r=f,a=window,e=document,l=t,u=g(),i=envira_gallery,p=v,r(function(){a.envira_galleries=p,a.envira_links=m,r(e).on("envira_load",function(t){t.stopPropagation(),p={},m={};var o=[];r(".envira-gallery-public").each(function(){var t=r(this),e=(t.data("envira-id"),t.data("gallery-config")),i=t.data("gallery-images"),t=t.data("lightbox-theme"),n="";void 0!==o[e.gallery_id]?(n="_"+(o[e.gallery_id]?parseInt(o[e.gallery_id])+1:2),o[e.gallery_id]=parseInt(o[e.gallery_id])+1):o[e.gallery_id]=1,p[e.gallery_id]=new l(e.gallery_id+n,e,i,t),(r("#envira-gallery-wrap-"+e.gallery_id+n+".envira-lazy-loading-disabled").length?r("#envira-gallery-wrap-"+e.gallery_id+n+".envira-lazy-loading-disabled"):r(".envira-gallery-wrap")).find(".envira-loader").remove(),r(".envira-gallery-wrap").find(".envira-layout-bnb--more-link").css("opacity","1")}),r(".envira-gallery-links").each(function(){var t=r(this),e=t.data("gallery-config"),i=t.data("gallery-images"),t=t.data("lightbox-theme");void 0===m[e.gallery_id]&&(m[e.gallery_id]=new u(e,i,t))}),r(e).trigger("envira_loaded",[p,m])}),r(e).trigger("envira_load"),void 0!==i.debug&&i.debug&&(console.log(m),console.log(p)),r("body").on("click",'div.envirabox-title a[href*="#"]:not([href="#"])',function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)return r.envirabox.close(),!1}),r(e).on("envira_image_lazy_load_complete",function(t){var e,i,n,o="";void 0!==t&&(void 0!==t.image_id&&null!==t.image_id||void 0!==t.video_id&&null!==t.video_id)&&(o=0<r("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe").length?r("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe"):0<r("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video").length?r("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video"):r("#envira-gallery-wrap-"+t.gallery_id).find("img#"+t.image_id),(r("#envira-gallery-wrap-"+t.gallery_id).length?r("#envira-gallery-wrap-"+t.gallery_id):r(".envira-gallery-wrap")).find(".envira-loader").remove(),void 0!==o&&""!==o&&(r("#envira-gallery-wrap-"+t.gallery_id).find("div.envira-gallery-public").hasClass("envira-gallery-0-columns")?r(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show():(r(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show(),e=r(o).closest("div.envira-gallery-item-inner").find(".envira-lazy").width(),i=t.naturalHeight/t.naturalWidth,e=100*((e=t.naturalHeight/e)<i?e:i),o.closest("div.envira-gallery-public").parent().hasClass("envira-gallery-theme-sleek")&&(e+=2),n=(i=r(o).closest("div.envira-gallery-item-inner").find("div.envira-lazy")).closest("div.envira-gallery-item-inner").find(".envira-gallery-captioned-data").height(),r(o).closest("div.envira-gallery-item").hasClass("enviratope-item")?(i.css("padding-bottom",e+"%").attr("data-envira-changed","true"),r(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",n),r(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",n)):(i.css("height","auto").css("padding-bottom","unset").attr("data-envira-changed","true"),r(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",n+10),r(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",n+10)),r(o).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),r(o).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible"),void 0!==a["envira_container_"+t.gallery_id]&&r("#envira-gallery-"+t.gallery_id).hasClass("enviratope")&&a["envira_container_"+t.gallery_id].on("layoutComplete",function(t,e){r(o).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),r(o).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible")}))))})})})()})();
(function ($, window, document, envira_gallery){
var envira_audio_playing=false,
envira_sound=false;
$(document).on('envirabox_api_on_init',
function (e, obj, instance, current){
if(typeof obj.id==='undefined' ||
typeof window['envira_audio_url_' + obj.id]==='undefined'
){
return;
}
if(obj.get_config('audio')===1 &&
obj.get_config('audio_file_id')!==''
){
var audio_file =
window['envira_audio_url_' + obj.id].envira_audio_url,
audio_autoplay =
obj.get_config('audio_autoplay')!==undefined &&
obj.get_config('audio_autoplay')!==0
? true
: false,
audio_loop =
obj.get_config('audio_loop')!==undefined &&
obj.get_config('audio_loop')!==0
? true
: false;
envira_sound=new Howl({
src: [audio_file],
autoplay: audio_autoplay,
loop: audio_loop,
volume: 0.8,
onplay: function (){
envira_audio_playing=true;
},
onend: function (){
envira_audio_playing=false;
},
});
if(envira_audio_playing===false&&audio_autoplay===true){
envira_sound.play();
$(
'.envirabox-container .envirabox-audio-button a',
).addClass('envirabox-button--pause');
$('.envirabox-container .envirabox-audio-button a')
.parent()
.addClass('envirabox-button--pause');
}}
$(document).on('click',
'.envirabox-container .envirabox-audio-button a',
function (event){
event.preventDefault();
var audio_file =
window['envira_audio_url_' + obj.id]
.envira_audio_url,
audio_autoplay =
obj.get_config('audio_autoplay')!==undefined &&
obj.get_config('audio_autoplay')!==0
? true
: false,
audio_loop =
obj.get_config('audio_loop')!==undefined &&
obj.get_config('audio_loop')!==0
? true
: false;
if($(this).hasClass('envirabox-button--play')){
if(envira_audio_playing===true){
envira_sound.pause();
envira_audio_playing=false;
$(this).removeClass('envirabox-button--play');
$(this).addClass('envirabox-button--pause');
$(this)
.parent()
.attr('class',
'envirabox-audio-button audio-stopped',
);
}else{
envira_sound=new Howl({
src: [audio_file],
autoplay: audio_autoplay,
loop: audio_loop,
volume: 0.8,
onplay: function (){
envira_audio_playing=true;
},
onend: function (){
envira_audio_playing=false;
},
});
envira_sound.play();
$(this).removeClass('envirabox-button--pause');
$(this).addClass('envirabox-button--play');
$(this)
.parent()
.attr('class',
'envirabox-audio-button audio-started',
);
}}else if($(this).hasClass('envirabox-button--pause')){
var audio_file =
window['envira_audio_url_' + obj.id]
.envira_audio_url,
audio_autoplay =
obj.get_config('audio_autoplay')!==undefined &&
obj.get_config('audio_autoplay')!==''
? true
: false,
audio_loop =
obj.get_config('audio_loop')!==undefined &&
obj.get_config('audio_loop')!==''
? true
: false;
envira_sound=new Howl({
src: [audio_file],
autoplay: audio_autoplay,
loop: audio_loop,
volume: 0.8,
onplay: function (){
envira_audio_playing=true;
},
onend: function (){
envira_audio_playing=false;
},
});
if(envira_audio_playing===false &&
audio_autoplay===true
){
envira_sound.play();
$(this).removeClass('envirabox-button--pause');
$(this).addClass('envirabox-button--play');
$(this)
.parent()
.attr('class',
'envirabox-audio-button audio-started',
);
}}
},
);
},
);
$(document).on('envirabox_api_after_close',
function (e, obj, instance, current){
if(typeof obj.id==='undefined' ||
typeof window['envira_audio_url_' + obj.id]==='undefined'
){
return;
}
if(obj.get_config('audio')===1 &&
obj.get_config('audio_file_id')!==''
){
if(envira_audio_playing===true){
envira_sound.pause();
envira_audio_playing=false;
}}
},
);
})(jQuery, window, document, envira_gallery);
!(function (){
'use strict';
var e=function (){
this.init();
};
e.prototype={
init: function (){
var e=this||n;
return (
(e._counter=1e3),
(e._html5AudioPool=[]),
(e.html5PoolSize=10),
(e._codecs={}),
(e._howls=[]),
(e._muted = !1),
(e._volume=1),
(e._canPlayEvent='canplaythrough'),
(e._navigator =
'undefined'!=typeof window&&window.navigator
? window.navigator
: null),
(e.masterGain=null),
(e.noAudio = !1),
(e.usingWebAudio = !0),
(e.autoSuspend = !0),
(e.ctx=null),
(e.autoUnlock = !0),
e._setup(),
e
);
},
volume: function (e){
var o=this||n;
if(((e=parseFloat(e)),
o.ctx||_(),
void 0!==e&&e >=0&&e <=1)
){
if(((o._volume=e), o._muted)) return o;
o.usingWebAudio &&
o.masterGain.gain.setValueAtTime(e, n.ctx.currentTime);
for (var t=0; t < o._howls.length; t++)
if(!o._howls[t]._webAudio)
for (
var r=o._howls[t]._getSoundIds(), a=0;
a < r.length;
a++
){
var u=o._howls[t]._soundById(r[a]);
u&&u._node&&(u._node.volume=u._volume * e);
}
return o;
}
return o._volume;
},
mute: function (e){
var o=this||n;
o.ctx||_(),
(o._muted=e),
o.usingWebAudio &&
o.masterGain.gain.setValueAtTime(e ? 0:o._volume,
n.ctx.currentTime,
);
for (var t=0; t < o._howls.length; t++)
if(!o._howls[t]._webAudio)
for (
var r=o._howls[t]._getSoundIds(), a=0;
a < r.length;
a++
){
var u=o._howls[t]._soundById(r[a]);
u&&u._node&&(u._node.muted = !!e||u._muted);
}
return o;
},
unload: function (){
for (var e=this||n, o=e._howls.length - 1; o >=0; o--)
e._howls[o].unload();
return (
e.usingWebAudio &&
e.ctx &&
void 0!==e.ctx.close &&
(e.ctx.close(), (e.ctx=null), _()),
e
);
},
codecs: function (e){
return (this||n)._codecs[e.replace(/^x-/, '')];
},
_setup: function (){
var e=this||n;
if(((e.state=e.ctx ? e.ctx.state||'suspended':'suspended'),
e._autoSuspend(),
!e.usingWebAudio)
)
if('undefined'!=typeof Audio)
try {
var o=new Audio();
void 0===o.oncanplaythrough &&
(e._canPlayEvent='canplay');
} catch (n){
e.noAudio = !0;
}
else e.noAudio = !0;
try {
var o=new Audio();
o.muted&&(e.noAudio = !0);
} catch (e){}
return e.noAudio||e._setupCodecs(), e;
},
_setupCodecs: function (){
var e=this||n,
o=null;
try {
o='undefined'!=typeof Audio ? new Audio():null;
} catch (n){
return e;
}
if(!o||'function'!=typeof o.canPlayType) return e;
var t=o.canPlayType('audio/mpeg;').replace(/^no$/, ''),
r =
e._navigator &&
e._navigator.userAgent.match(/OPR\/([0-6].)/g),
a=r&&parseInt(r[0].split('/')[1], 10) < 33;
return (
(e._codecs={
mp3: !(
a ||
(!t&&!o.canPlayType('audio/mp3;').replace(/^no$/, ''))
),
mpeg: !!t,
opus: !!o
.canPlayType('audio/ogg; codecs="opus"')
.replace(/^no$/, ''),
ogg: !!o
.canPlayType('audio/ogg; codecs="vorbis"')
.replace(/^no$/, ''),
oga: !!o
.canPlayType('audio/ogg; codecs="vorbis"')
.replace(/^no$/, ''),
wav: !!o
.canPlayType('audio/wav; codecs="1"')
.replace(/^no$/, ''),
aac: !!o.canPlayType('audio/aac;').replace(/^no$/, ''),
caf: !!o.canPlayType('audio/x-caf;').replace(/^no$/, ''),
m4a: !!(
o.canPlayType('audio/x-m4a;') ||
o.canPlayType('audio/m4a;') ||
o.canPlayType('audio/aac;')
).replace(/^no$/, ''),
mp4: !!(
o.canPlayType('audio/x-mp4;') ||
o.canPlayType('audio/mp4;') ||
o.canPlayType('audio/aac;')
).replace(/^no$/, ''),
weba: !!o
.canPlayType('audio/webm; codecs="vorbis"')
.replace(/^no$/, ''),
webm: !!o
.canPlayType('audio/webm; codecs="vorbis"')
.replace(/^no$/, ''),
dolby: !!o
.canPlayType('audio/mp4; codecs="ec-3"')
.replace(/^no$/, ''),
flac: !!(
o.canPlayType('audio/x-flac;') ||
o.canPlayType('audio/flac;')
).replace(/^no$/, ''),
}),
e
);
},
_unlockAudio: function (){
var e=this||n;
if(!e._audioUnlocked&&e.ctx){
(e._audioUnlocked = !1),
(e.autoUnlock = !1),
e._mobileUnloaded ||
44100===e.ctx.sampleRate ||
((e._mobileUnloaded = !0), e.unload()),
(e._scratchBuffer=e.ctx.createBuffer(1, 1, 22050));
var o=function (n){
for (var t=0; t < e.html5PoolSize; t++)
try {
var r=new Audio();
(r._unlocked = !0), e._releaseHtml5Audio(r);
} catch (n){
e.noAudio = !0;
}
for (var t=0; t < e._howls.length; t++)
if(!e._howls[t]._webAudio)
for (
var a=e._howls[t]._getSoundIds(), u=0;
u < a.length;
u++
){
var i=e._howls[t]._soundById(a[u]);
i &&
i._node &&
!i._node._unlocked &&
((i._node._unlocked = !0), i._node.load());
}
e._autoResume();
var d=e.ctx.createBufferSource();
(d.buffer=e._scratchBuffer),
d.connect(e.ctx.destination),
void 0===d.start ? d.noteOn(0):d.start(0),
'function'==typeof e.ctx.resume&&e.ctx.resume(),
(d.onended=function (){
d.disconnect(0),
(e._audioUnlocked = !0),
document.removeEventListener('touchstart',
o,
!0,
),
document.removeEventListener('touchend', o, !0),
document.removeEventListener('click', o, !0);
for (var n=0; n < e._howls.length; n++)
e._howls[n]._emit('unlock');
});
};
return (
document.addEventListener('touchstart', o, !0),
document.addEventListener('touchend', o, !0),
document.addEventListener('click', o, !0),
e
);
}},
_obtainHtml5Audio: function (){
var e=this||n;
if(e._html5AudioPool.length) return e._html5AudioPool.pop();
var o=new Audio().play();
return (
o &&
'undefined'!=typeof Promise &&
(o instanceof Promise||'function'==typeof o.then) &&
o.catch(function (){
console.warn('HTML5 Audio pool exhausted, returning potentially locked audio object.',
);
}),
new Audio()
);
},
_releaseHtml5Audio: function (e){
var o=this||n;
return e._unlocked&&o._html5AudioPool.push(e), o;
},
_autoSuspend: function (){
var e=this;
if(e.autoSuspend &&
e.ctx &&
void 0!==e.ctx.suspend &&
n.usingWebAudio
){
for (var o=0; o < e._howls.length; o++)
if(e._howls[o]._webAudio)
for (var t=0; t < e._howls[o]._sounds.length; t++)
if(!e._howls[o]._sounds[t]._paused) return e;
return (
e._suspendTimer&&clearTimeout(e._suspendTimer),
(e._suspendTimer=setTimeout(function (){
e.autoSuspend &&
((e._suspendTimer=null),
(e.state='suspending'),
e.ctx.suspend().then(function (){
(e.state='suspended'),
e._resumeAfterSuspend &&
(delete e._resumeAfterSuspend,
e._autoResume());
}));
}, 3e4)),
e
);
}},
_autoResume: function (){
var e=this;
if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)
return (
'running'===e.state&&e._suspendTimer
? (clearTimeout(e._suspendTimer),
(e._suspendTimer=null))
: 'suspended'===e.state
? (e.ctx.resume().then(function (){
e.state='running';
for (var n=0; n < e._howls.length; n++)
e._howls[n]._emit('resume');
}),
e._suspendTimer &&
(clearTimeout(e._suspendTimer),
(e._suspendTimer=null)))
: 'suspending'===e.state &&
(e._resumeAfterSuspend = !0),
e
);
},
};
var n=new e(),
o=function (e){
var n=this;
if(!e.src||0===e.src.length)
return void console.error('An array of source files must be passed with any new Howl.',
);
n.init(e);
};
o.prototype={
init: function (e){
var o=this;
return (
n.ctx||_(),
(o._autoplay=e.autoplay||!1),
(o._format =
'string'!=typeof e.format ? e.format:[e.format]),
(o._html5=e.html5||!1),
(o._muted=e.mute||!1),
(o._loop=e.loop||!1),
(o._pool=e.pool||5),
(o._preload='boolean'!=typeof e.preload||e.preload),
(o._rate=e.rate||1),
(o._sprite=e.sprite||{}),
(o._src='string'!=typeof e.src ? e.src:[e.src]),
(o._volume=void 0!==e.volume ? e.volume:1),
(o._xhrWithCredentials=e.xhrWithCredentials||!1),
(o._duration=0),
(o._state='unloaded'),
(o._sounds=[]),
(o._endTimers={}),
(o._queue=[]),
(o._playLock = !1),
(o._onend=e.onend ? [{ fn: e.onend }]:[]),
(o._onfade=e.onfade ? [{ fn: e.onfade }]:[]),
(o._onload=e.onload ? [{ fn: e.onload }]:[]),
(o._onloaderror=e.onloaderror ? [{ fn: e.onloaderror }]:[]),
(o._onplayerror=e.onplayerror ? [{ fn: e.onplayerror }]:[]),
(o._onpause=e.onpause ? [{ fn: e.onpause }]:[]),
(o._onplay=e.onplay ? [{ fn: e.onplay }]:[]),
(o._onstop=e.onstop ? [{ fn: e.onstop }]:[]),
(o._onmute=e.onmute ? [{ fn: e.onmute }]:[]),
(o._onvolume=e.onvolume ? [{ fn: e.onvolume }]:[]),
(o._onrate=e.onrate ? [{ fn: e.onrate }]:[]),
(o._onseek=e.onseek ? [{ fn: e.onseek }]:[]),
(o._onunlock=e.onunlock ? [{ fn: e.onunlock }]:[]),
(o._onresume=[]),
(o._webAudio=n.usingWebAudio&&!o._html5),
void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),
n._howls.push(o),
o._autoplay &&
o._queue.push({
event: 'play',
action: function (){
o.play();
},
}),
o._preload&&o.load(),
o
);
},
load: function (){
var e=this,
o=null;
if(n.noAudio)
return void e._emit('loaderror', null, 'No audio support.');
'string'==typeof e._src&&(e._src=[e._src]);
for (var r=0; r < e._src.length; r++){
var u, i;
if(e._format&&e._format[r]) u=e._format[r];
else {
if('string'!=typeof (i=e._src[r])){
e._emit('loaderror',
null,
'Non-string found in selected audio sources - ignoring.',
);
continue;
}
(u=/^data:audio\/([^;,]+);/i.exec(i)),
u||(u=/\.([^.]+)$/.exec(i.split('?', 1)[0])),
u&&(u=u[1].toLowerCase());
}
if((u ||
console.warn('No file extension was found. Consider using the "format" property or specify an extension.',
),
u&&n.codecs(u))
){
o=e._src[r];
break;
}}
return o
? ((e._src=o),
(e._state='loading'),
'https:'===window.location.protocol &&
'http:'===o.slice(0, 5) &&
((e._html5 = !0), (e._webAudio = !1)),
new t(e),
e._webAudio&&a(e),
e)
: void e._emit('loaderror',
null,
'No codec support for selected audio sources.',
);
},
play: function (e, o){
var t=this,
r=null;
if('number'==typeof e) (r=e), (e=null);
else {
if('string'==typeof e &&
'loaded'===t._state &&
!t._sprite[e]
)
return null;
if(void 0===e&&((e='__default'), !t._playLock)){
for (var a=0, u=0; u < t._sounds.length; u++)
t._sounds[u]._paused &&
!t._sounds[u]._ended &&
(a++, (r=t._sounds[u]._id));
1===a ? (e=null):(r=null);
}}
var i=r ? t._soundById(r):t._inactiveSound();
if(!i) return null;
if((r&&!e&&(e=i._sprite||'__default'),
'loaded'!==t._state)
){
(i._sprite=e), (i._ended = !1);
var d=i._id;
return (
t._queue.push({
event: 'play',
action: function (){
t.play(d);
},
}),
d
);
}
if(r&&!i._paused) return o||t._loadQueue('play'), i._id;
t._webAudio&&n._autoResume();
var _=Math.max(0, i._seek > 0 ? i._seek:t._sprite[e][0] / 1e3),
s=Math.max(0, (t._sprite[e][0] + t._sprite[e][1]) / 1e3 - _),
l=(1e3 * s) / Math.abs(i._rate),
c=t._sprite[e][0] / 1e3,
f=(t._sprite[e][0] + t._sprite[e][1]) / 1e3,
p = !(!i._loop&&!t._sprite[e][2]);
(i._sprite=e), (i._ended = !1);
var m=function (){
(i._paused = !1),
(i._seek=_),
(i._start=c),
(i._stop=f),
(i._loop=p);
};
if(_ >=f) return void t._ended(i);
var v=i._node;
if(t._webAudio){
var h=function (){
(t._playLock = !1), m(), t._refreshBuffer(i);
var e=i._muted||t._muted ? 0:i._volume;
v.gain.setValueAtTime(e, n.ctx.currentTime),
(i._playStart=n.ctx.currentTime),
void 0===v.bufferSource.start
? i._loop
? v.bufferSource.noteGrainOn(0, _, 86400)
: v.bufferSource.noteGrainOn(0, _, s)
: i._loop
? v.bufferSource.start(0, _, 86400)
: v.bufferSource.start(0, _, s),
l!==1 / 0 &&
(t._endTimers[i._id]=setTimeout(
t._ended.bind(t, i),
l,
)),
o ||
setTimeout(function (){
t._emit('play', i._id), t._loadQueue();
}, 0);
};
'running'===n.state
? h()
: ((t._playLock = !0),
t.once('resume', h),
t._clearTimer(i._id));
}else{
var y=function (){
(v.currentTime=_),
(v.muted=i._muted||t._muted||n._muted||v.muted),
(v.volume=i._volume * n.volume()),
(v.playbackRate=i._rate);
try {
var r=v.play();
if((r &&
'undefined'!=typeof Promise &&
(r instanceof Promise ||
'function'==typeof r.then)
? ((t._playLock = !0),
m(),
r
.then(function (){
(t._playLock = !1),
(v._unlocked = !0),
o ||
(t._emit('play', i._id),
t._loadQueue());
})
.catch(function (){
(t._playLock = !1),
t._emit('playerror',
i._id,
'Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.',
),
(i._ended = !0),
(i._paused = !0);
}))
: o ||
((t._playLock = !1),
m(),
t._emit('play', i._id),
t._loadQueue()),
(v.playbackRate=i._rate),
v.paused)
)
return void t._emit('playerror',
i._id,
'Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.',
);
'__default'!==e||i._loop
? (t._endTimers[i._id]=setTimeout(
t._ended.bind(t, i),
l,
))
: ((t._endTimers[i._id]=function (){
t._ended(i),
v.removeEventListener('ended',
t._endTimers[i._id],
!1,
);
}),
v.addEventListener('ended',
t._endTimers[i._id],
!1,
));
} catch (e){
t._emit('playerror', i._id, e);
}};
'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA'===v.src&&((v.src=t._src), v.load());
var g =
(window&&window.ejecta) ||
(!v.readyState&&n._navigator.isCocoonJS);
if(v.readyState >=3||g) y();
else {
t._playLock = !0;
var A=function (){
y(), v.removeEventListener(n._canPlayEvent, A, !1);
};
v.addEventListener(n._canPlayEvent, A, !1),
t._clearTimer(i._id);
}}
return i._id;
},
pause: function (e){
var n=this;
if('loaded'!==n._state||n._playLock)
return (
n._queue.push({
event: 'pause',
action: function (){
n.pause(e);
},
}),
n
);
for (var o=n._getSoundIds(e), t=0; t < o.length; t++){
n._clearTimer(o[t]);
var r=n._soundById(o[t]);
if(r &&
!r._paused &&
((r._seek=n.seek(o[t])),
(r._rateSeek=0),
(r._paused = !0),
n._stopFade(o[t]),
r._node)
)
if(n._webAudio){
if(!r._node.bufferSource) continue;
void 0===r._node.bufferSource.stop
? r._node.bufferSource.noteOff(0)
: r._node.bufferSource.stop(0),
n._cleanBuffer(r._node);
} else
(isNaN(r._node.duration) &&
r._node.duration!==1 / 0) ||
r._node.pause();
arguments[1]||n._emit('pause', r ? r._id:null);
}
return n;
},
stop: function (e, n){
var o=this;
if('loaded'!==o._state||o._playLock)
return (
o._queue.push({
event: 'stop',
action: function (){
o.stop(e);
},
}),
o
);
for (var t=o._getSoundIds(e), r=0; r < t.length; r++){
o._clearTimer(t[r]);
var a=o._soundById(t[r]);
a &&
((a._seek=a._start||0),
(a._rateSeek=0),
(a._paused = !0),
(a._ended = !0),
o._stopFade(t[r]),
a._node &&
(o._webAudio
? a._node.bufferSource &&
(void 0===a._node.bufferSource.stop
? a._node.bufferSource.noteOff(0)
: a._node.bufferSource.stop(0),
o._cleanBuffer(a._node))
: (isNaN(a._node.duration) &&
a._node.duration!==1 / 0) ||
((a._node.currentTime=a._start||0),
a._node.pause(),
a._node.duration===1 / 0 &&
o._clearSound(a._node))),
n||o._emit('stop', a._id));
}
return o;
},
mute: function (e, o){
var t=this;
if('loaded'!==t._state||t._playLock)
return (
t._queue.push({
event: 'mute',
action: function (){
t.mute(e, o);
},
}),
t
);
if(void 0===o){
if('boolean'!=typeof e) return t._muted;
t._muted=e;
}
for (var r=t._getSoundIds(o), a=0; a < r.length; a++){
var u=t._soundById(r[a]);
u &&
((u._muted=e),
u._interval&&t._stopFade(u._id),
t._webAudio&&u._node
? u._node.gain.setValueAtTime(e ? 0:u._volume,
n.ctx.currentTime,
)
: u._node&&(u._node.muted = !!n._muted||e),
t._emit('mute', u._id));
}
return t;
},
volume: function (){
var e,
o,
t=this,
r=arguments;
if(0===r.length) return t._volume;
if(1===r.length||(2===r.length&&void 0===r[1])){
t._getSoundIds().indexOf(r[0]) >=0
? (o=parseInt(r[0], 10))
: (e=parseFloat(r[0]));
} else
r.length >=2 &&
((e=parseFloat(r[0])), (o=parseInt(r[1], 10)));
var a;
if(!(void 0!==e&&e >=0&&e <=1))
return (
(a=o ? t._soundById(o):t._sounds[0]), a ? a._volume:0
);
if('loaded'!==t._state||t._playLock)
return (
t._queue.push({
event: 'volume',
action: function (){
t.volume.apply(t, r);
},
}),
t
);
void 0===o&&(t._volume=e), (o=t._getSoundIds(o));
for (var u=0; u < o.length; u++)
(a=t._soundById(o[u])) &&
((a._volume=e),
r[2]||t._stopFade(o[u]),
t._webAudio&&a._node&&!a._muted
? a._node.gain.setValueAtTime(e, n.ctx.currentTime)
: a._node &&
!a._muted &&
(a._node.volume=e * n.volume()),
t._emit('volume', a._id));
return t;
},
fade: function (e, o, t, r){
var a=this;
if('loaded'!==a._state||a._playLock)
return (
a._queue.push({
event: 'fade',
action: function (){
a.fade(e, o, t, r);
},
}),
a
);
(e=parseFloat(e)),
(o=parseFloat(o)),
(t=parseFloat(t)),
a.volume(e, r);
for (var u=a._getSoundIds(r), i=0; i < u.length; i++){
var d=a._soundById(u[i]);
if(d){
if((r||a._stopFade(u[i]), a._webAudio&&!d._muted)){
var _=n.ctx.currentTime,
s=_ + t / 1e3;
(d._volume=e),
d._node.gain.setValueAtTime(e, _),
d._node.gain.linearRampToValueAtTime(o, s);
}
a._startFadeInterval(d, e, o, t, u[i], void 0===r);
}}
return a;
},
_startFadeInterval: function (e, n, o, t, r, a){
var u=this,
i=n,
d=o - n,
_=Math.abs(d / 0.01),
s=Math.max(4, _ > 0 ? t / _:t),
l=Date.now();
(e._fadeTo=o),
(e._interval=setInterval(function (){
var r=(Date.now() - l) / t;
(l=Date.now()),
(i +=d * r),
(i=Math.max(0, i)),
(i=Math.min(1, i)),
(i=Math.round(100 * i) / 100),
u._webAudio ? (e._volume=i):u.volume(i, e._id, !0),
a&&(u._volume=i),
((o < n&&i <=o)||(o > n&&i >=o)) &&
(clearInterval(e._interval),
(e._interval=null),
(e._fadeTo=null),
u.volume(o, e._id),
u._emit('fade', e._id));
}, s));
},
_stopFade: function (e){
var o=this,
t=o._soundById(e);
return (
t &&
t._interval &&
(o._webAudio &&
t._node.gain.cancelScheduledValues(n.ctx.currentTime),
clearInterval(t._interval),
(t._interval=null),
o.volume(t._fadeTo, e),
(t._fadeTo=null),
o._emit('fade', e)),
o
);
},
loop: function (){
var e,
n,
o,
t=this,
r=arguments;
if(0===r.length) return t._loop;
if(1===r.length){
if('boolean'!=typeof r[0])
return !!(o=t._soundById(parseInt(r[0], 10)))&&o._loop;
(e=r[0]), (t._loop=e);
} else 2===r.length&&((e=r[0]), (n=parseInt(r[1], 10)));
for (var a=t._getSoundIds(n), u=0; u < a.length; u++)
(o=t._soundById(a[u])) &&
((o._loop=e),
t._webAudio &&
o._node &&
o._node.bufferSource &&
((o._node.bufferSource.loop=e),
e &&
((o._node.bufferSource.loopStart=o._start||0),
(o._node.bufferSource.loopEnd=o._stop))));
return t;
},
rate: function (){
var e,
o,
t=this,
r=arguments;
if(0===r.length) o=t._sounds[0]._id;
else if(1===r.length){
var a=t._getSoundIds(),
u=a.indexOf(r[0]);
u >=0 ? (o=parseInt(r[0], 10)):(e=parseFloat(r[0]));
} else
2===r.length &&
((e=parseFloat(r[0])), (o=parseInt(r[1], 10)));
var i;
if('number'!=typeof e)
return (i=t._soundById(o)), i ? i._rate:t._rate;
if('loaded'!==t._state||t._playLock)
return (
t._queue.push({
event: 'rate',
action: function (){
t.rate.apply(t, r);
},
}),
t
);
void 0===o&&(t._rate=e), (o=t._getSoundIds(o));
for (var d=0; d < o.length; d++)
if((i=t._soundById(o[d]))){
t.playing(o[d]) &&
((i._rateSeek=t.seek(o[d])),
(i._playStart=t._webAudio
? n.ctx.currentTime
: i._playStart)),
(i._rate=e),
t._webAudio&&i._node&&i._node.bufferSource
? i._node.bufferSource.playbackRate.setValueAtTime(e,
n.ctx.currentTime,
)
: i._node&&(i._node.playbackRate=e);
var _=t.seek(o[d]),
s =
(t._sprite[i._sprite][0] +
t._sprite[i._sprite][1]) /
1e3 -
_,
l=(1e3 * s) / Math.abs(i._rate);
(!t._endTimers[o[d]]&&i._paused) ||
(t._clearTimer(o[d]),
(t._endTimers[o[d]]=setTimeout(
t._ended.bind(t, i),
l,
))),
t._emit('rate', i._id);
}
return t;
},
seek: function (){
var e,
o,
t=this,
r=arguments;
if(0===r.length) o=t._sounds[0]._id;
else if(1===r.length){
var a=t._getSoundIds(),
u=a.indexOf(r[0]);
u >=0
? (o=parseInt(r[0], 10))
: t._sounds.length &&
((o=t._sounds[0]._id), (e=parseFloat(r[0])));
} else
2===r.length &&
((e=parseFloat(r[0])), (o=parseInt(r[1], 10)));
if(void 0===o) return t;
if('loaded'!==t._state||t._playLock)
return (
t._queue.push({
event: 'seek',
action: function (){
t.seek.apply(t, r);
},
}),
t
);
var i=t._soundById(o);
if(i){
if(!('number'==typeof e&&e >=0)){
if(t._webAudio){
var d=t.playing(o)
? n.ctx.currentTime - i._playStart
: 0,
_=i._rateSeek ? i._rateSeek - i._seek:0;
return i._seek + (_ + d * Math.abs(i._rate));
}
return i._node.currentTime;
}
var s=t.playing(o);
s&&t.pause(o, !0),
(i._seek=e),
(i._ended = !1),
t._clearTimer(o),
t._webAudio ||
!i._node ||
isNaN(i._node.duration) ||
(i._node.currentTime=e);
var l=function (){
t._emit('seek', o), s&&t.play(o, !0);
};
if(s&&!t._webAudio){
var c=function (){
t._playLock ? setTimeout(c, 0):l();
};
setTimeout(c, 0);
} else l();
}
return t;
},
playing: function (e){
var n=this;
if('number'==typeof e){
var o=n._soundById(e);
return !!o&&!o._paused;
}
for (var t=0; t < n._sounds.length; t++)
if(!n._sounds[t]._paused) return !0;
return !1;
},
duration: function (e){
var n=this,
o=n._duration,
t=n._soundById(e);
return t&&(o=n._sprite[t._sprite][1] / 1e3), o;
},
state: function (){
return this._state;
},
unload: function (){
for (var e=this, o=e._sounds, t=0; t < o.length; t++)
o[t]._paused||e.stop(o[t]._id),
e._webAudio ||
(e._clearSound(o[t]._node),
o[t]._node.removeEventListener('error',
o[t]._errorFn,
!1,
),
o[t]._node.removeEventListener(n._canPlayEvent,
o[t]._loadFn,
!1,
),
n._releaseHtml5Audio(o[t]._node)),
delete o[t]._node,
e._clearTimer(o[t]._id);
var a=n._howls.indexOf(e);
a >=0&&n._howls.splice(a, 1);
var u = !0;
for (t=0; t < n._howls.length; t++)
if(n._howls[t]._src===e._src ||
e._src.indexOf(n._howls[t]._src) >=0
){
u = !1;
break;
}
return (
r&&u && delete r[e._src],
(n.noAudio = !1),
(e._state='unloaded'),
(e._sounds=[]),
(e=null),
null
);
},
on: function (e, n, o, t){
var r=this,
a=r['_on' + e];
return (
'function'==typeof n &&
a.push(t ? { id: o, fn: n, once: t }:{ id: o, fn: n }),
r
);
},
off: function (e, n, o){
var t=this,
r=t['_on' + e],
a=0;
if(('number'==typeof n&&((o=n), (n=null)), n||o))
for (a=0; a < r.length; a++){
var u=o===r[a].id;
if((n===r[a].fn&&u)||(!n&&u)){
r.splice(a, 1);
break;
}}
else if(e) t['_on' + e]=[];
else {
var i=Object.keys(t);
for (a=0; a < i.length; a++)
0===i[a].indexOf('_on') &&
Array.isArray(t[i[a]]) &&
(t[i[a]]=[]);
}
return t;
},
once: function (e, n, o){
var t=this;
return t.on(e, n, o, 1), t;
},
_emit: function (e, n, o){
for (var t=this, r=t['_on' + e], a=r.length - 1; a >=0; a--)
(r[a].id&&r[a].id!==n&&'load'!==e) ||
(setTimeout(
function (e){
e.call(this, n, o);
}.bind(t, r[a].fn),
0,
),
r[a].once&&t.off(e, r[a].fn, r[a].id));
return t._loadQueue(e), t;
},
_loadQueue: function (e){
var n=this;
if(n._queue.length > 0){
var o=n._queue[0];
o.event===e&&(n._queue.shift(), n._loadQueue()),
e||o.action();
}
return n;
},
_ended: function (e){
var o=this,
t=e._sprite;
if(!o._webAudio &&
e._node &&
!e._node.paused &&
!e._node.ended &&
e._node.currentTime < e._stop
)
return setTimeout(o._ended.bind(o, e), 100), o;
var r = !(!e._loop&&!o._sprite[t][2]);
if((o._emit('end', e._id),
!o._webAudio&&r && o.stop(e._id, !0).play(e._id),
o._webAudio&&r)
){
o._emit('play', e._id),
(e._seek=e._start||0),
(e._rateSeek=0),
(e._playStart=n.ctx.currentTime);
var a=(1e3 * (e._stop - e._start)) / Math.abs(e._rate);
o._endTimers[e._id]=setTimeout(o._ended.bind(o, e), a);
}
return (
o._webAudio &&
!r &&
((e._paused = !0),
(e._ended = !0),
(e._seek=e._start||0),
(e._rateSeek=0),
o._clearTimer(e._id),
o._cleanBuffer(e._node),
n._autoSuspend()),
o._webAudio||r || o.stop(e._id, !0),
o
);
},
_clearTimer: function (e){
var n=this;
if(n._endTimers[e]){
if('function'!=typeof n._endTimers[e])
clearTimeout(n._endTimers[e]);
else {
var o=n._soundById(e);
o &&
o._node &&
o._node.removeEventListener('ended',
n._endTimers[e],
!1,
);
}
delete n._endTimers[e];
}
return n;
},
_soundById: function (e){
for (var n=this, o=0; o < n._sounds.length; o++)
if(e===n._sounds[o]._id) return n._sounds[o];
return null;
},
_inactiveSound: function (){
var e=this;
e._drain();
for (var n=0; n < e._sounds.length; n++)
if(e._sounds[n]._ended) return e._sounds[n].reset();
return new t(e);
},
_drain: function (){
var e=this,
n=e._pool,
o=0,
t=0;
if(!(e._sounds.length < n)){
for (t=0; t < e._sounds.length; t++)
e._sounds[t]._ended&&o++;
for (t=e._sounds.length - 1; t >=0; t--){
if(o <=n) return;
e._sounds[t]._ended &&
(e._webAudio &&
e._sounds[t]._node &&
e._sounds[t]._node.disconnect(0),
e._sounds.splice(t, 1),
o--);
}}
},
_getSoundIds: function (e){
var n=this;
if(void 0===e){
for (var o=[], t=0; t < n._sounds.length; t++)
o.push(n._sounds[t]._id);
return o;
}
return [e];
},
_refreshBuffer: function (e){
var o=this;
return (
(e._node.bufferSource=n.ctx.createBufferSource()),
(e._node.bufferSource.buffer=r[o._src]),
e._panner
? e._node.bufferSource.connect(e._panner)
: e._node.bufferSource.connect(e._node),
(e._node.bufferSource.loop=e._loop),
e._loop &&
((e._node.bufferSource.loopStart=e._start||0),
(e._node.bufferSource.loopEnd=e._stop||0)),
e._node.bufferSource.playbackRate.setValueAtTime(e._rate,
n.ctx.currentTime,
),
o
);
},
_cleanBuffer: function (e){
var o=this,
t=n._navigator&&n._navigator.vendor.indexOf('Apple') >=0;
if(n._scratchBuffer &&
e.bufferSource &&
((e.bufferSource.onended=null),
e.bufferSource.disconnect(0),
t)
)
try {
e.bufferSource.buffer=n._scratchBuffer;
} catch (e){}
return (e.bufferSource=null), o;
},
_clearSound: function (e){
/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent) ||
(e.src =
'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA');
},
};
var t=function (e){
(this._parent=e), this.init();
};
t.prototype={
init: function (){
var e=this,
o=e._parent;
return (
(e._muted=o._muted),
(e._loop=o._loop),
(e._volume=o._volume),
(e._rate=o._rate),
(e._seek=0),
(e._paused = !0),
(e._ended = !0),
(e._sprite='__default'),
(e._id=++n._counter),
o._sounds.push(e),
e.create(),
e
);
},
create: function (){
var e=this,
o=e._parent,
t=n._muted||e._muted||e._parent._muted ? 0:e._volume;
return (
o._webAudio
? ((e._node =
void 0===n.ctx.createGain
? n.ctx.createGainNode()
: n.ctx.createGain()),
e._node.gain.setValueAtTime(t, n.ctx.currentTime),
(e._node.paused = !0),
e._node.connect(n.masterGain))
: ((e._node=n._obtainHtml5Audio()),
(e._errorFn=e._errorListener.bind(e)),
e._node.addEventListener('error', e._errorFn, !1),
(e._loadFn=e._loadListener.bind(e)),
e._node.addEventListener(n._canPlayEvent, e._loadFn, !1),
(e._node.src=o._src),
(e._node.preload='auto'),
(e._node.volume=t * n.volume()),
e._node.load()),
e
);
},
reset: function (){
var e=this,
o=e._parent;
return (
(e._muted=o._muted),
(e._loop=o._loop),
(e._volume=o._volume),
(e._rate=o._rate),
(e._seek=0),
(e._rateSeek=0),
(e._paused = !0),
(e._ended = !0),
(e._sprite='__default'),
(e._id=++n._counter),
e
);
},
_errorListener: function (){
var e=this;
e._parent._emit('loaderror',
e._id,
e._node.error ? e._node.error.code:0,
),
e._node.removeEventListener('error', e._errorFn, !1);
},
_loadListener: function (){
var e=this,
o=e._parent;
(o._duration=Math.ceil(10 * e._node.duration) / 10),
0===Object.keys(o._sprite).length &&
(o._sprite={ __default: [0, 1e3 * o._duration] }),
'loaded'!==o._state &&
((o._state='loaded'), o._emit('load'), o._loadQueue()),
e._node.removeEventListener(n._canPlayEvent, e._loadFn, !1);
},
};
var r={},
a=function (e){
var n=e._src;
if(r[n]) return (e._duration=r[n].duration), void d(e);
if(/^data:[^;]+;base64,/.test(n)){
for (
var o=atob(n.split(',')[1]),
t=new Uint8Array(o.length),
a=0;
a < o.length;
++a
)
t[a]=o.charCodeAt(a);
i(t.buffer, e);
}else{
var _=new XMLHttpRequest();
_.open('GET', n, !0),
(_.withCredentials=e._xhrWithCredentials),
(_.responseType='arraybuffer'),
(_.onload=function (){
var n=(_.status + '')[0];
if('0'!==n&&'2'!==n&&'3'!==n)
return void e._emit('loaderror',
null,
'Failed loading audio file with status: ' +
_.status +
'.',
);
i(_.response, e);
}),
(_.onerror=function (){
e._webAudio &&
((e._html5 = !0),
(e._webAudio = !1),
(e._sounds=[]),
delete r[n],
e.load());
}),
u(_);
}},
u=function (e){
try {
e.send();
} catch (n){
e.onerror();
}},
i=function (e, o){
var t=function (){
o._emit('loaderror', null, 'Decoding audio data failed.');
},
a=function (e){
e&&o._sounds.length > 0
? ((r[o._src]=e), d(o, e))
: t();
};
'undefined'!=typeof Promise&&1===n.ctx.decodeAudioData.length
? n.ctx.decodeAudioData(e).then(a).catch(t)
: n.ctx.decodeAudioData(e, a, t);
},
d=function (e, n){
n&&!e._duration&&(e._duration=n.duration),
0===Object.keys(e._sprite).length &&
(e._sprite={ __default: [0, 1e3 * e._duration] }),
'loaded'!==e._state &&
((e._state='loaded'), e._emit('load'), e._loadQueue());
},
_=function (){
if(n.usingWebAudio){
try {
'undefined'!=typeof AudioContext
? (n.ctx=new AudioContext())
: 'undefined'!=typeof webkitAudioContext
? (n.ctx=new webkitAudioContext())
: (n.usingWebAudio = !1);
} catch (e){
n.usingWebAudio = !1;
}
n.ctx||(n.usingWebAudio = !1);
var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform,
),
o =
n._navigator &&
n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),
t=o ? parseInt(o[1], 10):null;
if(e&&t && t < 9){
var r=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase(),
);
((n._navigator&&n._navigator.standalone&&!r) ||
(n._navigator&&!n._navigator.standalone&&!r)) &&
(n.usingWebAudio = !1);
}
n.usingWebAudio &&
((n.masterGain =
void 0===n.ctx.createGain
? n.ctx.createGainNode()
: n.ctx.createGain()),
n.masterGain.gain.setValueAtTime(n._muted ? 0:1,
n.ctx.currentTime,
),
n.masterGain.connect(n.ctx.destination)),
n._setup();
}};
'function'==typeof define &&
define.amd &&
define([], function (){
return { Howler: n, Howl: o };}),
'undefined'!=typeof exports &&
((exports.Howler=n), (exports.Howl=o)),
'undefined'!=typeof window
? ((window.HowlerGlobal=e),
(window.Howler=n),
(window.Howl=o),
(window.Sound=t))
: 'undefined'!=typeof global &&
((global.HowlerGlobal=e),
(global.Howler=n),
(global.Howl=o),
(global.Sound=t));
})();
!function(i,a,e){i(e).on("envira_gallery_api_enviratope",(function(a,e){var t=e.data.tags_display;i("#envira-tags-filter-list-"+e.id).on("click","a.envira-tags-filter-link",(function(a){a.preventDefault();var t=i(this),r=t.attr("data-envira-filter"),l=i("#envira-tags-filter-list-"+e.id);if(!t.hasClass("envira-tags-filter-active")){if(i("#envira-gallery-"+e.id).enviratope({filter:r,transitionDuration:"0.2s",itemSelector:".envira-gallery-item",masonry:{columnWidth:".envira-gallery-item"}}),l.find(".envira-tags-filter-active").removeClass("envira-tags-filter-active"),t.addClass("envira-tags-filter-active"),r=r.slice(1),i("#envira-gallery-"+e.id+" > div.envira-gallery-item").each((function(){i(this).hasClass(r)?i("a",i(this)).attr("rel","enviragallery"+e.id):i("a",i(this)).attr("rel","")})),-1!=i(this).attr("href").indexOf("#")){var n=i(this).attr("href").split("#")[1];i("html,body").animate({scrollTop:i("#"+n).offset().top},500)}0===i("#envira-gallery-"+e.id+" > div.envira-gallery-item:visible").length?i("#envira-gallery-wrap-"+e.id+" .envira-pagination-no-images").removeClass("envira-hidden"):i("#envira-gallery-wrap-"+e.id+" .envira-pagination-no-images").addClass("envira-hidden")}})),void 0!==e.data.album_id&&void 0!==t&&t.length>0?i("#envira-tags-filter-list-"+e.id+' a[data-envira-filter=".envira-category-'+t+'"]').trigger("click"):i("#envira-tags-filter-list-"+e.id+' a[data-envira-filter=".envira-tag-'+t+'"]').trigger("click")}))}(jQuery,window,document);
!function(m,f,y){m(y).on("envirabox_api_before_show",function(e,i,t,a){m(".envirabox-caption").show(),m(".envirabox-navigation").show(),m(".envirabox-navigation-inside").show();i=y.querySelector(".envirabox-content video");null!==i&&i.pause()}),m(y).on("envirabox_api_after_show",function(e,i,t,a){var o,r,n,d=i,s=t,l=a,v=l,c=v.$content.find("video"),h=l.opts.iframe,u=l.$slide,p=u.find("iframe"),i=u.find(".fb-video"),t=(u.find("video"),l.src);function g(){var e=v.$content,i=(p.width(),p.height(),h.css.width,h.css.height,e.width()),t=e.height(),a=!1;if(void 0!==p[0]&&1!==p[0].isReady&&0===p[0].src.indexOf("vimeo"))v.$slide.trigger("afterLoad");else{if(null===p.width())if(c=e.find("video"),$generic_content=e.find("div.fb-video"),void 0!==c&&0<c.length)e=c;else{if(!(void 0!==$generic_content&&0<$generic_content.length))return;a=!0}1!==d.data.videos_enlarge||"vimeo"!=v.contentProvider&&"wistia"!=v.contentProvider&&"youtube"!=v.contentProvider&&"video"!=l.type&&"videopress"!=v.contentProvider&&"twitch"!=v.contentProvider?1==a&&e.css("max-width","80%"):"vimeo"!=v.contentProvider&&"youtube"!=v.contentProvider&&"wistia"!=v.contentProvider&&"videopress"!=v.contentProvider&&"twitch"!=v.contentProvider||(e.css("max-width","95%"),(i=u.width())>.85*m(f).height()&&(i=.85*m(f).width()),(t=u.height())>.85*m(f).height()&&(t=.85*m(f).height())),(void 0!==v.videoAspectRatio&&"16:9"==v.videoAspectRatio||1===d.data.videos_enlarge&&("video"==l.type||"wistia"==v.contentProvider||"vimeo"==v.contentProvider||"youtube"==v.contentProvider||"videopress"==v.contentProvider||"twitch"==v.contentProvider))&&(e.parent().height()<e.parent().width()?e.css("height",t).css("width",e.height()*(16/9)):e.css("width",i)).css("height",e.width()*(9/16)),s.hideLoading(v),1==a&&(m(".envirabox-container").hasClass("envirabox-theme-captioned")||m(".envirabox-container").hasClass("envirabox-theme-polaroid"))&&e.css("max-width","80%"),e.removeClass("envirabox-iframe-hidden"),e.removeClass("envirabox-hidden"),s.hideLoading(l)}}("video"==l.type||"iframe"==l.type&&-1===t.indexOf(".pdf")||"facebook"==l.subtype)&&s.showLoading(l),p.css("width","100%"),1!==d.data.videos_enlarge||"video"!=l.type&&"iframe"!=l.type?"video"!=l.type&&"iframe"!=l.type||g():(v.$slide.trigger("refresh"),g()),"facebook"!=l.subtype&&"facebook-video"!=l.subtype||(s.showLoading(l),i.attr("id"),"undefined"!=typeof FB?FB.XFBML.parse(y,function(){s.hideLoading(l),g()}):alert("Having Trouble Connecting To Facebook")),p.on("load.fb error.fb",function(e){this.isReady=1,v.$slide.trigger("refresh"),s.afterLoad(v)}),u.on("refresh.fb",function(){g()}),m(".envirabox-caption").show(),m(".envirabox-navigation").show(),m(".envirabox-navigation-inside").show(),0===d.data.videos_controls&&(d.data.videos_autoplay=1),1===d.data.videos_autoplay&&(void 0!==d.data.slideshow&&1===d.data.slideshow&&"youtube"==v.contentProvider?(r=p.attr("src"),n=p.attr("id"),r=(r=r.replace("mute=0","")+"&mute=1").replace("muted=1","")+"&muted=1",p.attr("src",r),s.SlideShow.stop(),new YT.Player(n,{playerVars:{autoplay:1,mute:0},events:{onReady:function(){},onStateChange:function(e){e.data==YT.PlayerState.ENDED&&(s.SlideShow.start(),s.next())}}})):void 0!==d.data.slideshow&&0!==d.data.slideshow||"vimeo"!=v.contentProvider?void 0!==d.data.slideshow&&1===d.data.slideshow&&"vimeo"==v.contentProvider?(r=p.attr("src"),n=p.attr("id"),r=(r=(r=r.replace("muted=0","")+"&muted=1").replace("muted=1","")+"&muted=1").replace("api=1",""),p.attr("src",r),a=y.querySelector("iframe"),t=new Vimeo.Player(a),s.SlideShow.stop(),t.on("timeupdate",function(e){1===e.percent&&(s.SlideShow.start(),s.next())})):void 0!==d.data.slideshow&&1===d.data.slideshow&&"dailymotion"==v.contentProvider?(r=(r=p.attr("src")).replace("mute=0","")+"&mute=1",p.attr("src",r)):null!==(o=y.querySelector("div.envirabox-slide--current div.envirabox-content video"))&&(o.currentTime=0,o.load(),o.play(),void 0!==d.data.slideshow&&1===d.data.slideshow&&!0===s.SlideShow.isActive&&(o.addEventListener("ended",function(e){o.currentTime=0,s.SlideShow.start(),s.next()},!1),s.SlideShow.stop())):(r=p.attr("src"),n=p.attr("id"),0<=r.indexOf("muted=")?r=(r=r.replace("muted=0","")+"&muted=1").replace("muted=1","")+"&muted=1":(r=r.replace("autoplay=1","autoplay=1&muted=1"),p.attr("allow","autoplay")),p.attr("src",r)))}),m(y).on("envirabox_api_before_close",function(e,i,t,a){}),m(f).load(function(){m("iframe.envira_facebook_embed").each(function(){var e=m(this).closest(".envira-facebook-responsive").innerHeight(),e=(m(this).attr("style","height: "+e+"px"),m(this).closest(".envira-gallery-item").attr("id")),i=m(this).closest(".envira-gallery-public").data("envira-id");m(y).trigger({type:"envira_image_lazy_load_complete",video_id:e,gallery_id:i})}),m("video.envira-video").each(function(){var e=m(this).closest(".envira-gallery-item").attr("id"),i=m(this).closest(".envira-gallery-public").data("envira-id");m(y).trigger({type:"envira_image_lazy_load_complete",video_id:e,gallery_id:i})}),m("iframe.envira_youtube_embed").each(function(){var e=m(this).closest(".envira-gallery-item").attr("id"),i=m(this).closest(".envira-gallery-public").data("envira-id");m(y).trigger({type:"envira_image_lazy_load_complete",video_id:e,gallery_id:i})}),m("iframe.envira_wistia_embed").each(function(){var e=m(this).closest(".envira-gallery-item").attr("id"),i=m(this).closest(".envira-gallery-public").data("envira-id");m(y).trigger({type:"envira_image_lazy_load_complete",video_id:e,gallery_id:i})}),m("iframe.envira_vimeo_embed").each(function(){var e=m(this).closest(".envira-gallery-item").attr("id"),i=m(this).closest(".envira-gallery-public").data("envira-id");m(y).trigger({type:"envira_image_lazy_load_complete",video_id:e,gallery_id:i})})})}(jQuery,window,document);