var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1 #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==s&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e&&null==n&&e.click()),l(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0];if(void 0===a){if(!0===(a=e.getElementsByTagName("a")[0]).classList.contains("astra-search-icon"))return;if(void 0===a)return}var n=t.getElementsByTagName("ul")[0];if(void 0===n)a.style.display="none";else{n.setAttribute("aria-expanded","false"),-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),"off-canvas"===d&&(document.getElementById("menu-toggle-close").onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))}),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))};for(var s=n.getElementsByTagName("a"),o=n.getElementsByTagName("ul"),r=0,l=o.length;r .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n1024?"no":"yes",o="",a={};function _(t){return!!a[t]&&a[t]}function s(t,e){a[t]=e;var c=JSON.stringify(a);localStorage.setItem("ht_ctc_storage",c)}localStorage.getItem("ht_ctc_storage")&&(a=localStorage.getItem("ht_ctc_storage"),a=JSON.parse(a));var i="";if("undefined"!=typeof ht_ctc_chat_var)i=ht_ctc_chat_var,h(),u();else{try{if(document.querySelector(".ht_ctc_chat_data")){var r=t(".ht_ctc_chat_data").attr("data-settings");i=JSON.parse(r),window.ht_ctc_chat_var=i}}catch(t){i={}}h(),u()}function h(){var e=document.querySelector(".ht_ctc_chat_data");e&&(o=t(".ht_ctc_chat_data").attr("data-no_number"),e.remove())}function u(){var c;document.dispatchEvent(new CustomEvent("ht_ctc_event_settings",{detail:{ctc:i}})),(c=document.querySelector(".ht-ctc-chat"))&&(document.dispatchEvent(new CustomEvent("ht_ctc_event_chat")),function(t){"yes"==i.schedule?document.dispatchEvent(new CustomEvent("ht_ctc_event_display",{detail:{ctc:i,display_chat:g,ht_ctc_chat:t}})):g(t)}(c),c.addEventListener("click",(function(){t(".ht_ctc_chat_greetings_box").length||m(c)})),t(".ht_ctc_chat_greetings_box").length&&t(document).on("click",".ht_ctc_chat_style",(function(e){t(".ht_ctc_chat_greetings_box").hasClass("ctc_greetings_opened")?l("user_closed"):d("user_opened")})),t(document).on("click",".ctc_greetings_close_btn",(function(t){l("user_closed")})),t(document).on("click",".ht_ctc_chat_greetings_box_link",(function(e){e.preventDefault(),document.querySelector("#ctc_opt")?t("#ctc_opt").is(":checked")||_("g_optin")?m(c):t(".ctc_opt_in").show(400).fadeOut("1").fadeIn("1"):m(c),document.dispatchEvent(new CustomEvent("ht_ctc_event_greetings"))})),document.querySelector("#ctc_opt")&&t("#ctc_opt").on("change",(function(e){t("#ctc_opt").is(":checked")&&(t(".ctc_opt_in").hide(100),s("g_optin","y"),setTimeout((()=>{m(c)}),500))}))),t(document).on("click",".ht-ctc-sc-chat",(function(){var t=this.getAttribute("data-number"),c=this.getAttribute("data-pre_filled");c=c.replace(/\[url]/gi,e),c=encodeURIComponent(c),i.url_structure_d&&"yes"!==n?window.open("https://web.whatsapp.com/send?phone="+t+"&text="+c,"_blank","noopener"):window.open("https://wa.me/"+t+"?text="+c,"_blank","noopener"),v(this),b(t)})),t(document).on("click",".ctc_chat, #ctc_chat",(function(e){m(this),t(this).hasClass("ctc_woo_place")&&e.preventDefault()})),t(document).on("click",'[href="#ctc_chat"]',(function(t){t.preventDefault(),m(this)}))}function d(e="open"){t(".ctc_cta_stick").remove(),t(".ht_ctc_chat_greetings_box").show(70),t(".ht_ctc_chat_greetings_box").addClass("ctc_greetings_opened").removeClass("ctc_greetings_closed"),s("g_action",e),"user_opened"==e&&s("g_user_action",e)}function l(e="close"){t(".ht_ctc_chat_greetings_box").hide(70),t(".ht_ctc_chat_greetings_box").addClass("ctc_greetings_closed").removeClass("ctc_greetings_opened"),s("g_action",e),"user_closed"==e&&s("g_user_action",e)}function g(t){var e;"yes"==n?"show"==i.dis_m&&((e=document.querySelector(".ht_ctc_desktop_chat"))&&e.remove(),t.style.cssText=i.pos_m+i.css,p(t)):"show"==i.dis_d&&((e=document.querySelector(".ht_ctc_mobile_chat"))&&e.remove(),t.style.cssText=i.pos_d+i.css,p(t))}function p(e){try{t(e).show(parseInt(i.se))}catch(t){e.style.display="block"}!function(){if(t(".ht_ctc_chat_greetings_box").length){if(i.g_device){if("yes"!==n&&"mobile"==i.g_device)return void t(".ht_ctc_chat_greetings_box").remove();if("yes"==n&&"desktop"==i.g_device)return void t(".ht_ctc_chat_greetings_box").remove()}document.dispatchEvent(new CustomEvent("ht_ctc_event_after_chat_displayed",{detail:{ctc:i,greetings_open:d,greetings_close:l}})),i.g_init&&"open"==i.g_init&&"user_closed"!==_("g_user_action")&&d("init"),t(document).on("click",'.ctc_greetings, #ctc_greetings, .ctc_greetings_now, [href="#ctc_greetings"]',(function(t){t.preventDefault(),l("element"),d("element")}))}}(),function(e){var c=t(e).hasClass("ht_ctc_entry_animation")?1200:120;setTimeout((function(){e.classList.add("ht_ctc_animation",i.ani)}),c),t(".ht-ctc-chat").hover((function(){t(".ht-ctc-chat .ht-ctc-cta-hover").show(120)}),(function(){t(".ht-ctc-chat .ht-ctc-cta-hover").hide(100)}))}(e)}function v(t){if(i.analytics&&"session"==i.analytics){if(sessionStorage.getItem("ht_ctc_analytics"))return;sessionStorage.setItem("ht_ctc_analytics","done")}document.dispatchEvent(new CustomEvent("ht_ctc_event_analytics"));var n=i.number;t.classList.contains("ht-ctc-sc")&&(n=t.getAttribute("data-number"));var o="Click to Chat for WhatsApp",a="chat: "+n,_=c+", "+e;if(i.ga||i.ga4)if("undefined"!=typeof gtag)i.ga4?gtag("event","click to chat",{number:n,title:c,url:e}):gtag("event",a,{event_category:o,event_label:_});else if("undefined"!=typeof ga&&void 0!==ga.getAll){ga.getAll()[0].send("event",o,a,_)}else"undefined"!=typeof __gaTracker&&__gaTracker("send","event",o,a,_);"undefined"!=typeof dataLayer&&dataLayer.push({event:"Click to Chat",type:"chat",number:n,title:c,url:e,event_category:o,event_label:_,event_action:a}),i.ads&&"undefined"!=typeof gtag_report_conversion&>ag_report_conversion(),i.fb&&"undefined"!=typeof fbq&&fbq("trackCustom","Click to Chat by HoliThemes",{Category:"Click to Chat for WhatsApp",return_type:"chat",ID:n,Title:c,URL:e})}function m(c){document.dispatchEvent(new CustomEvent("ht_ctc_event_number",{detail:{ctc:i}}));var a=i.number,_=i.pre_filled;if(c.hasAttribute("data-number")&&(a=c.getAttribute("data-number")),c.hasAttribute("data-pre_filled")&&(_=c.getAttribute("data-pre_filled")),_=(_=_.replaceAll("%","%25")).replace(/\[url]/gi,e),_=encodeURIComponent(decodeURI(_)),""!=a){var s="https://wa.me/"+a+"?text="+_,r=i.url_target_d?i.url_target_d:"_blank";"yes"==n?(i.url_structure_m&&(s="whatsapp://send?phone="+a+"&text="+_,r="_self"),i.custom_url_m&&""!==i.custom_url_m&&(s=i.custom_url_m)):(i.url_structure_d&&(s="https://web.whatsapp.com/send?phone="+a+"&text="+_),i.custom_url_d&&""!==i.custom_url_d&&(s=i.custom_url_d));var h="popup"==r?"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=788,height=514,left=100,top=100":"noopener";window.open(s,r,h),v(c),b(a)}else t(".ht-ctc-chat").html(o)}var f=i.hook_v?i.hook_v:"";function b(e){if(i.hook_url){var c={};if(i.hook_v){c=void 0!==f?f:i.hook_v;var n={},o=1;c.forEach((t=>{n["value"+o]=t,o++})),i.hook_v=n}document.dispatchEvent(new CustomEvent("ht_ctc_event_hook",{detail:{ctc:i,number:e}}));var a=i.hook_url;if(c=i.hook_v,i.webhook_format&&"json"==i.webhook_format)var _=c;else _=JSON.stringify(c);t.ajax({url:a,type:"POST",mode:"no-cors",data:_,success:function(t){}})}}}))}(jQuery); astraToggleSetupPro=function(e,a,t){var l,o,n,r=!1;if(0<(l="off-canvas"===e||"full-width"===e?(o=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(n=a.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):(r=!(0<(l=(n=a.classList.contains("ast-header-break-point")?(o=document.querySelectorAll("#ast-mobile-header"),document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")):(o=document.querySelectorAll("#ast-desktop-header"),document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle"))).length)))?1:l)||r)for(var s=0;s .menu-link, ul.main-header-menu .ast-menu-toggle"):o[i].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var g=0;g #ast-desktop-header .ast-desktop-header-content"),r=(o=null!=o&&""!==o?o.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)return null!==r&&""!==r&&void 0!==r&&(astraToggleClass(r,"toggle-on"),r.classList.contains("toggle-on")?r.style.display="block":r.style.display=""),astraToggleClass(o,"toggled"),void(o.classList.contains("toggled")?(a.classList.add("ast-main-header-nav-open"),"dropdown"===t&&(n.style.display="block")):(a.classList.remove("ast-main-header-nav-open"),n.style.display="none"));e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),menu_toggle_all=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),r="0",o=!1;if(null!==l.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),menu_toggle_all=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),r="0",o=!0),void 0===e[r])return!1;for(var s=e[r].querySelectorAll(".menu-item-has-children"),d=0;d",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"),o.hasClass("ast-custom-header")&&(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&&782jQuery(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);!function(n,h){var a="astExtSticky",l=h.document,r=(jQuery(h).outerWidth(),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:"
",body_padding_support:!0,html_padding_support:!0,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"},d=0;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,d,i,r,o=jQuery(e.element);jQuery(h).outerWidth();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&&0stick_upto_scroll?(s=o,c&&(r=o.closest(".ast-mobile-header-wrap"),d=o.closest("#ast-desktop-header"),r=0===r.length?o.find(".ast-mobile-header-wrap"):r,d=0===d.length?o.find("#ast-desktop-header"):d,r.find(".ast-mobile-header-content").css("top",o.outerHeight()+gutter),"ast-box-layout"==e.options.site_layout?(i=jQuery("body").width(),r.find(".ast-mobile-header-content").css("width",i)):r.find(".ast-mobile-header-content").css("width",max_width),d.find(".ast-desktop-header-content").css("top",o.outerHeight()+gutter),d.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.addClass("ast-sticky-active").stop().css({top:a?aboveHeaderSelectorValue:"unset"}),o.parent().css("min-height","unset")),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:"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")))):e.stickRelease(e)},t.prototype.update_attrs=function(){var e,a,t=this,s=jQuery(t.element),d=parseInt(t.options.gutter),i=t.options.max_width;"none"!=t.options.header_style||jQuery("body").hasClass("ast-sticky-toggled-off")?n("#masthead").length&&(e=n("#masthead"),a=e.offset().top+e.outerHeight()+100||0):a=s.offset().top||0,"ast-box-layout"!=t.options.site_layout&&(i=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(),d+=parseInt(dependent_height),a-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782 #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+C.desktop+"px; } @media (max-width: "+I+"px){ #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+C.tablet+"px; }} @media (max-width: "+A+"px){ #masthead .ast-header-sticked .site-logo-img .astra-logo-svg{ width: "+C.mobile+"px; }} ":""!=x&&(e=""),n("head").append(e)),(y||m||u)&&(n(l).on("addStickyClass",function(){var e="";"1"!=y&&"on"!=y&&"disabled"!=y||(e+=" ast-primary-sticky-header-active"),"1"!=m&&"on"!=m&&"disabled"!=m||(e+=" ast-above-sticky-header-active"),"1"!=u&&"on"!=u&&"disabled"!=u||(e+=" ast-below-sticky-header-active"),n("body").addClass(e)}),n(l).on("removeStickyClass",function(){var e="";"1"!=y&&"on"!=y&&"disabled"!=y||(e+=" ast-primary-sticky-header-active"),"1"!=m&&"on"!=m&&"disabled"!=m||(e+=" ast-above-sticky-header-active"),"1"!=u&&"on"!=u&&"disabled"!=u||(e+=" ast-below-sticky-header-active"),n("body").removeClass(e)}),"ast-box-layout"===v&&(o=parseInt(w)),jQuery(l).on("ready astLayoutWidthChanged",function(e){if("astLayoutWidthChanged"===e.type){if(!(parseInt(y)||parseInt(u)||parseInt(m)))return;jQuery("div.ast-stick-primary-below-wrapper").children().unwrap(),jQuery('div[data-stick-support="on"]').children().unwrap()}var t;"1"==f?("1"==_&&jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=m&&"on"!=m&&"disabled"!=m&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=y&&"on"!=y&&"disabled"!=y&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=u&&"on"!=u&&"disabled"!=u&&jQuery("#ast-fixed-header .ast-below-header").hide(),jQuery("#ast-fixed-header").astExtSticky({max_width:o,site_layout:v,sticky_on_device:j,header_style:"slide",hide_on_scroll:f})):"none"==Q?c?("both"===j?["desktop","mobile"]:[j]).forEach(function(e){var t;"1"!=m&&"on"!=m&&"disabled"!=m||jQuery("#masthead #ast-"+e+"-header .ast-above-header").astExtSticky({max_width:o,site_layout:v,sticky_on_device:j,header_style:Q,hide_on_scroll:f}),"1"!=y&&"on"!=y&&"disabled"!=y||"1"!=u&&"on"!=u&&"disabled"!=u?("1"!=y&&"on"!=y&&"disabled"!=y||(t=_?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead #ast-"+e+"-header .main-header-bar").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f}),jQuery("#masthead #ast-"+e+"-header .ast-custom-header").astExtSticky({max_width:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f})),"1"!=u&&"on"!=u&&"disabled"!=u||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:o,site_layout:v,sticky_on_device:j,header_style:Q,hide_on_scroll:f})):((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('
'),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:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f}))}):("1"!=m&&"on"!=m&&"disabled"!=m||jQuery("#masthead .ast-above-header").astExtSticky({max_width:o,site_layout:v,sticky_on_device:j,header_style:Q,hide_on_scroll:f}),"1"!=y&&"on"!=y&&"disabled"!=y||"1"!=u&&"on"!=u&&"disabled"!=u?("1"!=y&&"on"!=y&&"disabled"!=y||(t=_?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead .main-header-bar").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f}),jQuery("#masthead .ast-custom-header").astExtSticky({max_width:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f})),"1"!=u&&"on"!=u&&"disabled"!=u||jQuery("#masthead .ast-below-header").astExtSticky({dependent:["#masthead .main-header-bar","#masthead .ast-above-header"],max_width:o,site_layout:v,sticky_on_device:j,header_style:Q,hide_on_scroll:f})):(jQuery("#masthead .main-header-bar-wrap").wrap('
'),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:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f}))):(jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=m&&"on"!=m&&"disabled"!=m&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=y&&"on"!=y&&"disabled"!=y&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=u&&"on"!=u&&"disabled"!=u&&jQuery("#ast-fixed-header .ast-below-header").hide(),"1"!=m&&"on"!=m&&"disabled"!=m&&"1"!=y&&"on"!=y&&"disabled"!=y&&"1"!=u&&"on"!=u&&"disabled"!=u||(t=_?{padding_top:"",padding_bottom:""}:"",jQuery("#ast-fixed-header").astExtSticky({max_width:o,site_layout:v,shrink:t,sticky_on_device:j,header_style:Q,hide_on_scroll:f}))),"mobile"!=j&&"both"!=j||(jQuery("#masthead .main-header-menu-toggle").click(function(e){var t,a;jQuery("#masthead .main-header-menu-toggle").hasClass("toggled")?(i.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"==f&&jQuery("html").css({overflow:"hidden"}),("1"!=_||"1"!=y&&"on"!=y&&"disabled"!=y||"1"!=u&&"on"!=u&&"disabled"!=u?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":t-a+"px","overflow-y":"auto"}))):(i.addClass("ast-sticky-toggled-off"),jQuery("html").css({overflow:""}),("1"!=_||"1"!=y&&"on"!=y&&"disabled"!=y||"1"!=u&&"on"!=u&&"disabled"!=u?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"==f&&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":""}))}))})))}(jQuery,window);function display_mega_menu_on_load(){var e=document.querySelectorAll(".content-width-mega");if(0parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==u.parent().attr("id")&&"ast-desktop-toggle-menu"!==u.parent().attr("id")?(e=i.width(),r=i.offset(),r=(t=u.offset()).left-(r.left+parseFloat(i.css("paddingLeft"))),i=l.width(),n=l.offset(),t=t.left-(n.left+parseFloat(l.css("paddingLeft"))),u.hasClass("custom-width-mega")&&(s=(s=window.getComputedStyle(u.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),a=(s=parseInt(s))<=e?(a=parseInt(e-s),parseInt(r-a)):(a=parseInt(s-e),parseInt(r+a))),u.hasClass("menu-container-width-mega")&&(n=jQuery(d).parents(".main-navigation"),l.hasClass("ast-above-header")?n=jQuery(".ast-above-header-navigation"):l.hasClass("ast-below-header")&&(n=jQuery(".ast-below-header-actual-nav")),e=($target_container=n.length?n:u.parent("ul")).width()+"px",l=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),n=u.offset(),l=jQuery(window).width()-l-n.left,r=parseInt($target_container.width()-l)),u.hasClass("full-width-mega")?(u.find(".astra-full-megamenu-wrapper").css({left:"-"+t+"px",width:i}),u.find(".astra-megamenu").css({width:e})):u.hasClass("full-stretched-width-mega")?u.find(".astra-full-megamenu-wrapper").css({left:"-"+t+"px",width:i}):u.hasClass("custom-width-mega")?u.find(".astra-mega-menu-width-custom").css({left:"-"+a+"px",width:s+"px"}):u.find(".astra-megamenu").css({left:"-"+r+"px",width:e})):(u.find(".astra-megamenu").css({left:"",width:"","background-image":""}),u.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))})})}apply_megamenu_width_styles(),document.addEventListener("astMenuHoverStyleChanged",function(){apply_megamenu_width_styles()}),[].slice.call(items).forEach(function(d){var e=jQuery(d).parents(".ast-container"),m=e.children(),o=e.parent(),f=jQuery(d);(f.hasClass("full-width-mega")||f.hasClass("full-stretched-width-mega"))&&(m=jQuery(m).closest(".ast-container"),f.find(".astra-full-megamenu-wrapper").removeClass("ast-hidden")),f.find(".menu-link").focusin(function(e){var t,a,s,n,r,l,i,u;f.find(".sub-menu").addClass("astra-megamenu-focus"),f.find(".sub-menu").removeClass("ast-hidden"),f.find(".astra-full-megamenu-wrapper").addClass("astra-megamenu-wrapper-focus"),parseInt(jQuery(window).width())>parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==f.parent().attr("id")&&"ast-desktop-toggle-menu"!==f.parent().attr("id")?(t=m.width(),u=m.offset(),u=(s=f.offset()).left-(u.left+parseFloat(m.css("paddingLeft"))),a=o.width(),i=o.offset(),s=s.left-(i.left+parseFloat(o.css("paddingLeft"))),f.hasClass("custom-width-mega")&&(r=(r=window.getComputedStyle(f.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),n=(r=parseInt(r))<=t?(n=parseInt(t-r),parseInt(u-n)):(n=parseInt(r-t),parseInt(u+n))),f.hasClass("menu-container-width-mega")&&(i=jQuery(d).parents(".main-navigation"),o.hasClass("ast-above-header")?i=jQuery(".ast-above-header-navigation"):o.hasClass("ast-below-header")&&(i=jQuery(".ast-below-header-actual-nav")),t=($target_container=i.length?i:f.parent("ul")).width()+"px",i=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),l=f.offset(),i=jQuery(window).width()-i-l.left,u=parseInt($target_container.width()-i)),f.hasClass("full-width-mega")?(f.find(".astra-full-megamenu-wrapper").css({left:"-"+s+"px",width:a}),f.find(".astra-megamenu").css({width:t})):f.hasClass("full-stretched-width-mega")?f.find(".astra-full-megamenu-wrapper").css({left:"-"+s+"px",width:a}):f.hasClass("custom-width-mega")?f.find(".astra-mega-menu-width-custom").css({left:"-"+n+"px",width:r+"px"}):f.find(".astra-megamenu").css({left:"-"+u+"px",width:t})):(f.find(".astra-megamenu").css({left:"",width:"","background-image":""}),f.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))}),f.find(".menu-link").keydown(function(e){9==e.which&&e.shiftKey&&(f.find(".sub-menu").removeClass("astra-megamenu-focus"),f.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus"))}),jQuery(d).find(".sub-menu .menu-item").last().focusout(function(){f.find(".sub-menu").removeClass("astra-megamenu-focus"),f.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")}),jQuery(window).click(function(){f.find(".sub-menu").removeClass("astra-megamenu-focus"),f.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")}),f.click(function(e){jQuery(e.target).hasClass("menu-item")&&e.stopImmediatePropagation()})});!function(){var e,t;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)}e="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",t="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+e,document.body.className+=" "+t;for(var a=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),s=0;a.length>s;s++)a[s].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;r3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;li)?r.val(i):r.val(o+parseFloat(s)):a&&(a==o||o0&&r.val(o-parseFloat(s))}))}(jQuery),function(e){e.fn.isInViewport=function(){if(e(this).length<1)return!1;var t=e(this).offset().top,n=t+e(this).outerHeight()/2,r=e(window).scrollTop(),o=r+e(window).height()/2;return n>r&&t=0){ if(!hideDays){ brave_days=parseInt(timeRemaining / 86400); timeRemaining=(timeRemaining % 86400); } if(!hideHours){ brave_hours=parseInt(timeRemaining / 3600); timeRemaining=(timeRemaining % 3600); } brave_minutes=parseInt(timeRemaining / 60); timeRemaining=(timeRemaining % 60); brave_seconds=parseInt(timeRemaining); } var daySpan=document.getElementById('brave_rem_days-'+elementID); var hourSpan=document.getElementById('brave_rem_hours-'+elementID); var minSpan=document.getElementById('brave_rem_minutes-'+elementID); var secSpan=document.getElementById('brave_rem_seconds-'+elementID); if(daySpan){ daySpan.innerHTML=timeRemaining >=0 ? brave_days:0} if(hourSpan){ hourSpan.innerHTML=timeRemaining >=0 ? brave_hours:0} if(minSpan){ minSpan.innerHTML=timeRemaining >=0 ? brave_minutes:0} if(secSpan){ secSpan.innerHTML=timeRemaining >=0 ? brave_seconds:0}} function brave_check_field_condition(event, fieldID, formID, fieldType='input'){ var brave_form_conditions=brave_popup_formData&&brave_popup_formData[formID]&&brave_popup_formData[formID].conditionsMatch||{}; var brave_form_cond_vals=brave_popup_formData&&brave_popup_formData[formID]&&brave_popup_formData[formID].conditionsVals||{}; var conditionRules=brave_popup_formData&&brave_popup_formData[formID]&&brave_popup_formData[formID].conditions||{}; var inputData=event.target.value; if(fieldType==='checkbox'){ inputData=''; var checkBoxes=document.querySelectorAll('#brave_form_field'+fieldID+' input'); for (var index=0; index < checkBoxes.length; index++){ var checkBoxDom=checkBoxes[index]; if(!inputData&&checkBoxDom.checked){ inputData=checkBoxDom.value}} } conditionRules.forEach(function(fieldCondition){ var fieldKey=fieldCondition.field; var depKey=fieldCondition.fieldDependent; if(fieldKey===fieldID&&brave_form_conditions[depKey]){ if(inputData&&fieldCondition.action==='exist'&&!brave_form_conditions[depKey][fieldKey]){ brave_form_conditions[depKey][fieldKey]=true; } if(!inputData&&fieldCondition.action==='exist'&&brave_form_conditions[depKey][fieldKey]){ brave_form_conditions[depKey][fieldKey]=false; } if(fieldCondition.action==='equal'&&(inputData&&(brave_form_cond_vals[depKey][fieldKey].includes(inputData)))){ brave_form_conditions[depKey][fieldKey]=true; } if(fieldCondition.action==='equal'&&(!inputData||(!brave_form_cond_vals[depKey][fieldKey].includes(inputData)))){ brave_form_conditions[depKey][fieldKey]=false; } if(fieldCondition.action==='notequal'&&(inputData&&(!brave_form_cond_vals[depKey][fieldKey].includes(inputData)))&&!brave_form_conditions[depKey][fieldKey]){ brave_form_conditions[depKey][fieldKey]=true; } if(fieldCondition.action==='notequal'&&(!inputData||(brave_form_cond_vals[depKey][fieldKey].includes(inputData)))&&brave_form_conditions[depKey][fieldKey]){ brave_form_conditions[depKey][fieldKey]=false; }} }); Object.keys(brave_form_conditions).forEach(function(fieldKey){ var matchArray=Object.keys(brave_form_conditions[fieldKey]); var matchedConditionsArray=matchArray.filter(function(depKey){ if(brave_form_conditions[fieldKey][depKey]){ return true; }else{ return false; }}) var allMatched=matchedConditionsArray.length===matchArray.length; var dependantField=document.getElementById('brave_form_field'+fieldKey); if(dependantField){ if(allMatched){ dependantField.classList.remove('brave_form_field--hasCondition'); }else{ dependantField.classList.add('brave_form_field--hasCondition'); } var formFieldsWrapper=document.querySelector('#brave_form_'+formID+' .brave_form_fields'); var currentFormStep=formFieldsWrapper.dataset.step||undefined; if(currentFormStep!==undefined&&document.querySelector('#brave_form_'+formID+' .brave_form_fields .brave_form_fields_step'+currentFormStep)){ formFieldsWrapper.style.height=document.querySelector('#brave_form_'+formID+' .brave_form_fields .brave_form_fields_step'+currentFormStep).offsetHeight+'px'; }} }); } function brave_select_imageField(fieldID, optionIndex, multi=false){ var optionField=document.getElementById('brave_form_field'+fieldID+'_opt-'+optionIndex); if(optionField){ if(!multi){ var allOptsFields=document.getElementById('brave_form_field'+fieldID).querySelectorAll('input'); for (var i=0; i < allOptsFields.length; i++){ allOptsFields[i].checked=false; document.getElementById('brave_form_field'+fieldID+'_opt-'+i).classList.remove('formfield__inner__image--selected'); }} var optionFieldInput=optionField.querySelector('input'); if(optionFieldInput&&(optionFieldInput.checked===false)){ optionFieldInput.checked=true; optionField.classList.add('formfield__inner__image--selected'); }else if(optionFieldInput&&(optionFieldInput.checked===true)){ optionFieldInput.checked=false; optionField.classList.remove('formfield__inner__image--selected'); }} } function brave_select_form_ButtonGroup(fieldID, optionIndex, nextStep=false, formID='', totalSteps=0, goto=undefined){ brave_select_imageField(fieldID, optionIndex, false); if(nextStep&&formID&&totalSteps&&goto!==undefined){ brave_form_gotoStep(formID, totalSteps, goto); }} function brave_form_rating_unhover(fieldID){ var allRatingFields=document.getElementById('brave_form_field'+fieldID).querySelectorAll('.formfield__inner__ratings_star, .formfield__inner__ratings_number'); for (var i=0; i < allRatingFields.length; i++){ allRatingFields[i].classList.remove('formfield__inner__ratings--hovered'); }} function brave_form_rating_hover(fieldID, optionIndex){ var allRatingFields=document.getElementById('brave_form_field'+fieldID).querySelectorAll('.formfield__inner__ratings_star, .formfield__inner__ratings_number'); for (var i=0; i < allRatingFields.length; i++){ allRatingFields[i].classList.remove('formfield__inner__ratings--hovered'); if(i <=(optionIndex-1)){ allRatingFields[i].classList.add('formfield__inner__ratings--hovered'); }} } function brave_form_rate(fieldID, optionIndex, smiley=false){ document.getElementById('brave_form_field'+fieldID).dataset.rated=optionIndex; var allRatingFields=document.getElementById('brave_form_field'+fieldID).querySelectorAll('.formfield__inner__ratings_star, .formfield__inner__ratings_number, .formfield__inner__ratings_smiley'); for (var i=0; i < allRatingFields.length; i++){ allRatingFields[i].classList.remove('formfield__inner__ratings--selected'); if(!smiley&&(i <=(optionIndex-1))){ allRatingFields[i].querySelector('input').checked=true; allRatingFields[i].classList.add('formfield__inner__ratings--selected'); } if(smiley&&(i===(optionIndex-1))){ allRatingFields[i].querySelector('input').checked=true; allRatingFields[i].classList.add('formfield__inner__ratings--selected'); }} } function brave_form_progress(formID, goto=0, totalSteps=2){ if(document.querySelector('#'+formID+'__form_progress')){ var progressPercent=Math.round(((goto+1)/ totalSteps) * 100) ; var progStyle=document.querySelector('#'+formID+'__form_progress').dataset.style||'style1'; if(progStyle==='style2'){ progressPercent=Math.round(((goto)/ (totalSteps-1)) * 100) ;} if(document.querySelector('#'+formID+'__form_progress .bravepopupform_theProgressbar_steps')){ document.querySelector('#'+formID+'__form_progress .bravepopupform_theProgressbar_steps').innerHTML=(goto+1)+'/'+(totalSteps); document.querySelector('#'+formID+'__form_progress .bravepopupform_theProgressbar_progress').innerHTML=progressPercent+'%' ; } document.querySelector('#'+formID+'__form_progress .bravepopupform_theProgressbar__bar').style.width=progressPercent+'%'; }} function brave_form_goBack(formID, totalSteps){ var currentStep=document.querySelector('#brave_form_'+formID+' .brave_form_fields').dataset.step; currentStep=parseInt(currentStep, 10) var formBackButton=document.querySelector('#brave_form_'+formID+' .brave_form_stepBack'); var goto=currentStep - 1; document.querySelector('#brave_form_'+formID+' .brave_form_fields').dataset.step=goto; brave_popup_formData[formID].currentStep=goto; brave_form_changeHeight(formID, goto); brave_form_progress(formID, goto, totalSteps); if(goto===0){ formBackButton.classList.add('brave_form_stepBack--hide'); }else{ formBackButton.classList.remove('brave_form_stepBack--hide'); } var allformSteps=document.querySelectorAll('#brave_form_'+formID+' .brave_form_fields_step'); for (var i=0; i < allformSteps.length; i++){ if(i===goto){ allformSteps[i].classList.add('brave_form_fields_step--show'); }else{ allformSteps[i].classList.remove('brave_form_fields_step--show'); } if(currentStep===i){ var nextFieldsWithVals=allformSteps[i].querySelectorAll('.brave_form_field input, .brave_form_field select'); for (var k=0; k < nextFieldsWithVals.length; k++){ var fieldType=nextFieldsWithVals[k].getAttribute('type'); var fieldKey=nextFieldsWithVals[k].name.replace('[]'); if(['radio', 'checkbox'].includes(fieldType)&&nextFieldsWithVals[k].checked){ nextFieldsWithVals[k].checked=false; } if(fieldType==='select'&&nextFieldsWithVals[k].value){ nextFieldsWithVals[k].value='false'; } brave_check_field_condition({target:{value:''}}, fieldKey, formID, fieldType) }} } if(goto===(totalSteps - 1)){ document.querySelector('#brave_form_'+formID+' .brave_form_button').classList.remove('brave_form_button--hide'); }else{ document.querySelector('#brave_form_'+formID+' .brave_form_button').classList.add('brave_form_button--hide'); }} function brave_form_gotoStep(formID, totalSteps, goto){ var braveForm=document.getElementById('brave_form_'+formID); var fieldsData=brave_get_field_vals(braveForm, JSON.parse(brave_popup_formData[formID].fields)) var stepFieldIDs=[]; var currentStep=document.querySelector('#brave_form_'+formID+' .brave_form_fields_step'+(goto-1)); if(currentStep){ var allStepFields=currentStep.querySelectorAll('.brave_form_field'); for (var i=0; i < allStepFields.length; i++){ if(!allStepFields[i].classList.contains('brave_form_field--step')){ stepFieldIDs.push(allStepFields[i].getAttribute('id').replace('brave_form_field', '')); }} } var filteredFieldData={}; var emailFields=[]; stepFieldIDs.forEach(function(fieldID){ if(fieldsData[fieldID]){ filteredFieldData[fieldID]=fieldsData[fieldID]; if(filteredFieldData[fieldID]&&fieldsData[fieldID].required&&fieldsData[fieldID].validation==='email'&&(!bravepop_emailSuggestions[fieldID])){ emailFields.push({ID: fieldID, value: fieldsData[fieldID].value}); }} }) var formErrors=[]; Object.keys(filteredFieldData).forEach(function(fieldID){ var fieldError=brave_validate_fields(fieldID, filteredFieldData[fieldID]); if(fieldError){ formErrors.push(fieldError); } document.querySelector('#brave_form_field'+fieldID).classList.remove('brave_form_field--hasError', 'brave_form_field--hasSuggestion', 'brave_form_field--hasError-firstname', 'brave_form_field--hasError-lastname'); }); brave_display_form_error(formErrors); if(formErrors.length > 0){ return } var braveFormNextStepActions=function(){ brave_form_changeHeight(formID, goto); var allformSteps=document.querySelectorAll('#brave_form_'+formID+' .brave_form_fields_step'); for (var i=0; i < allformSteps.length; i++){ if(i===goto){ document.querySelector('#brave_form_'+formID+' .brave_form_fields').dataset.step=goto; allformSteps[i].classList.add('brave_form_fields_step--show'); document.querySelector('#brave_form_'+formID+' .brave_form_fields').style.height=allformSteps[i].offsetHeight+'px'; var formBackButton=document.querySelector('#brave_form_'+formID+' .brave_form_stepBack'); if(formBackButton){ formBackButton.classList.remove('brave_form_stepBack--hide'); } brave_popup_formData[formID].currentStep=goto; }else{ allformSteps[i].classList.remove('brave_form_fields_step--show'); }} brave_form_progress(formID, goto, totalSteps, false); if(goto===(totalSteps - 1)){ setTimeout(function(){ document.querySelector('#brave_form_'+formID+' .brave_form_button').classList.remove('brave_form_button--hide'); }, 250); }} if(bravepop_emailValidation&&emailFields.length > 0){ var ajaxurl=bravepop_global.ajaxURL; var security=document.getElementById('brave_form_security'+formID).value; var emailData={ formData: JSON.stringify(emailFields), freemailAllow: JSON.stringify(brave_popup_formData[formID].freemailAllow||false), security: security, action: 'bravepopup_validate_email'}; brave_ajax_send(ajaxurl, emailData, function(status, sentData){ var validatedData=JSON.parse(sentData); console.log('Validation response:', validatedData); var emailValidationErrors=[]; if(Array.isArray(validatedData)){ validatedData.forEach(function(field){ if(field.validation&&field.validation.status==='invalid'&&field.validation.errorMsg){ emailValidationErrors.push({id:field.ID ,message: field.validation.errorMsg, type: "required"}); } if(field.validation&&field.suggestionMsg){ emailValidationErrors.push({id:field.ID ,message: field.suggestionMsg, type: "info"}); }}); } if(emailValidationErrors.length > 0){ brave_display_form_error(emailValidationErrors); if(brave_form){ brave_form.classList.remove('brave_form_form--loading'); } if(brave_login_loader){ brave_login_loader.classList.remove('brave_form_loading--show'); }}else{ braveFormNextStepActions(); }}); }else{ braveFormNextStepActions(); }} function brave_form_changeHeight(formID, goto){ var changesFormHeight=brave_popup_formData[formID].changesFormHeight||false; if(changesFormHeight){ var braveForm=document.getElementById('brave_element-'+formID); var parentPopupStep=braveForm.closest('.brave_popup__step'); var initialHeight=brave_popup_formData[formID].heightData[0]; var diffHeight=brave_popup_formData[formID].heightData[goto] - initialHeight; var newFormHeight=brave_popup_formData[formID].heightData[goto]||initialHeight; braveForm.style.height=(parseInt(newFormHeight, 10))+'px'; if(parentPopupStep){ var parentPopupHeight=parentPopupStep.dataset.height; parentPopupStep.querySelector('.brave_popup__step__inner').style.height=(parseInt(parentPopupHeight, 10) + diffHeight)+'px'; }} } function brave_get_field_vals(braveForm, fieldOpts, quiz){ var fieldsData=fieldOpts; var firstname_val=''; for(var i=0; i 0){ var cookiesData={}; cookiesToCheck.forEach(function(cookieName){ cookiesData[cookieName]=localStorage.getItem(cookieName) ? true:false; }) finalData.cookieConditions=JSON.stringify(cookiesData); } if(window.location.href.includes('brave_popup')&&window.location.href.includes('brave_preview')&&location.search.split('brave_preview=')[1]){ finalData.brave_previewID=location.search.split('brave_preview=')[1]; } var braveSubmitForm=function(){ return brave_ajax_send(ajaxurl, finalData, function(status, sentData){ if(brave_login_loader){ brave_login_loader.classList.remove('brave_form_loading--show'); } if(brave_form){ brave_form.classList.remove('brave_form_form--loading'); } if(document.querySelector('#bravepopupform_socialOptin-'+settings.formID)){ document.querySelector('#bravepopupform_socialOptin-'+settings.formID).classList.remove('bravepopupform_socialOptin--loading'); document.querySelector('#bravepopupform_socialOptin-'+settings.formID).classList.add('bravepopupform_socialOptin--hide'); document.querySelector('#brave_element-'+settings.formID+' .brave_element__form_inner').classList.remove('brave_element__form_inner--hide'); } var response=JSON.parse(sentData); console.log(status, response); localStorage.setItem('brave_popup_'+settings.popupID+'_formsubmitted', true); var braveFormSubmitEvent=new CustomEvent('brave_form_submitted', { detail: {popupId: parseInt(settings.popupID, 10), formId: settings.formID, formData: JSON.stringify(finalFieldsData)}}); document.dispatchEvent(braveFormSubmitEvent); if(document.querySelector('#'+settings.formID+'__form_progress')){ document.querySelector('#'+settings.formID+'__form_progress').style.display='none'; } if(brave_form){ brave_form.reset(); } if(brave_popup_formData[settings.formID]&&brave_popup_formData[settings.formID].totalSteps > 0){ for (var findx=1; findx < brave_popup_formData[settings.formID].totalSteps; findx++){ brave_form_goBack(settings.formID, brave_popup_formData[settings.formID].totalStep) }} if(settings.track){ var formTrackingSettings=JSON.parse(settings.track); if(formTrackingSettings&&formTrackingSettings.enable&&formTrackingSettings.eventCategory&&formTrackingSettings.eventAction){ brave_send_ga_event(formTrackingSettings.eventCategory, formTrackingSettings.eventAction, formTrackingSettings.eventLabel||''); } if(formTrackingSettings&&formTrackingSettings.enable&&formTrackingSettings.fbq_event_type){ brave_send_fbq_event(formTrackingSettings.fbq_event_type, formTrackingSettings.fbq_content_name, formTrackingSettings.fbq_content_category, formTrackingSettings.fbq_value, formTrackingSettings.fbq_currency); }} if(brave_popup_formData[settings.formID]&&brave_popup_formData[settings.formID].goal){ brave_complete_goal(settings.popupID, 'form'); } Object.keys(fieldsData).forEach(function(fieldID){ var fieldVal=Array.isArray(fieldsData[fieldID].value) ? fieldsData[fieldID].value.join(','):fieldsData[fieldID].value; if(fieldVal&&fieldsData[fieldID]&&fieldsData[fieldID].save_cookie){ localStorage.setItem(fieldsData[fieldID].save_cookie, fieldVal)}}); if(response.sent&&response.primaryAction==='content'&&response.contentMessage){ if(brave_form){ brave_form.classList.add('brave_form_form--hide'); } document.getElementById('brave_form_custom_content'+settings.formID).innerHTML=response.contentMessage; if(response.autoclose&&response.autoclosetime){ setTimeout(function(){ var thePopID=parseInt(settings.popupID, 10); brave_close_popup(thePopID, brave_popup_data[thePopID].currentStep||0); }, parseInt(response.autoclosetime, 10) * 1000); } if(response.download&&response.downloadURL){ var downloadURI=response.downloadURL; var filename=response.downloadURL.substring(response.downloadURL.lastIndexOf('/')+1); var link=document.createElement('a'); if(typeof link.download==='string'){ document.body.appendChild(link); link.download=filename; link.href=downloadURI; link.target='_blank'; link.click(); document.body.removeChild(link); }else{ location.replace(downloadURI); }} } brave_popup_formData[settings.formID]&&brave_popup_formData[settings.formID].onSubmit(fieldsData, response); if(response.sent&&response.primaryAction==='redirect'&&response.redirectURL){ if(brave_form){ brave_form.classList.add('brave_form_form--hide'); } document.getElementById('brave_form_custom_content'+settings.formID).innerHTML=response.redirectMessage; var redirectTime=response.redirectAfter ? (response.redirectAfter *1000):6000; setTimeout(function(){ window.location.href=response.redirectURL; }, redirectTime); } if(response.sent&&response.primaryAction==='step'&&response.step&&settings.popupID){ var formStep=parseInt(response.step, 10); formStep=formStep===0 ? 0:formStep - 1; var selectedPopupStep=document.querySelector('#brave_popup_'+settings.popupID+'__step__'+(brave_popup_data[settings.popupID].currentStep||0)+' .brave_popup__step__'+brave_currentDevice) if(selectedPopupStep){ selectedPopupStep.dataset.open='false'; } brave_open_popup(settings.popupID, formStep); } if(settings.quiz){ var quizShortcodes=document.querySelectorAll('.bravepop_quizScore-'+settings.formID); if(quizShortcodes){ for (var i=0; i < quizShortcodes.length; i++){ var showTotal=quizShortcodes[i].dataset.total&&quizShortcodes[i].dataset.total==='false' ? false:true; if(settings.quizScoring==='points'){ var availableScoreVal=showTotal&&brave_popup_formData[settings.formID].availableScore&&brave_popup_formData[settings.formID].availableScore >=brave_popup_formData[settings.formID].totalScore ? '/'+brave_popup_formData[settings.formID].availableScore:''; quizShortcodes[i].innerHTML=''+brave_popup_formData[settings.formID].totalScore+''+availableScoreVal; } if(settings.quizScoring==='answer'){ var availableQuesVal=showTotal&&brave_popup_formData[settings.formID].totalQuestions ? '/'+brave_popup_formData[settings.formID].totalQuestions:''; quizShortcodes[i].innerHTML=''+brave_popup_formData[settings.formID].totalCorrect+''+availableQuesVal; }} }} }); } var braveSubmitWithEmailValidation=function(){ var emailData={ formData: JSON.stringify(emailFields), freemailAllow: JSON.stringify(brave_popup_formData[settings.formID].freemailAllow||false), security: security, action: 'bravepopup_validate_email' }; brave_ajax_send(ajaxurl, emailData, function(status, sentData){ var validatedData=JSON.parse(sentData); console.log('Validation response:', validatedData); var emailValidationErrors=[]; if(Array.isArray(validatedData)){ validatedData.forEach(function(field){ if(field.validation&&field.validation.status==='invalid'&&field.validation.errorMsg){ emailValidationErrors.push({id:field.ID ,message: field.validation.errorMsg, type: "required"}); } if(field.validation&&field.validation.suggestionMsg&&field.validation.suggestion){ emailValidationErrors.push({id:field.ID , message: field.validation.suggestionMsg, type: "suggestion", suggestion: field.validation.suggestion}); }}); } if(emailValidationErrors.length > 0){ brave_display_form_error(emailValidationErrors); if(brave_form){ brave_form.classList.remove('brave_form_form--loading'); } if(brave_login_loader){ brave_login_loader.classList.remove('brave_form_loading--show'); }}else{ braveSubmitForm(); }}); } if(settings.recaptcha&&grecaptcha){ grecaptcha.execute(settings.recaptcha, {action: 'submit'}).then(function(token){ if(token){ var recaptchaData={ token: token, security: security, action: 'bravepopup_validate_recaptcha' }; brave_ajax_send(ajaxurl, recaptchaData, function(status, valid){ console.log('Google Recaptcha Verified!'); if(valid==='true'){ if(bravepop_emailValidation&&emailFields.length > 0){ braveSubmitWithEmailValidation(); }else{ braveSubmitForm(); }}else{ console.error('Google Recaptcha Failed! Spammer Detected!'); }}); }else{ console.error('Google Recaptcha Failed! Could not Fetch Token!'); }}); }else{ if(bravepop_emailValidation&&emailFields.length > 0){ braveSubmitWithEmailValidation(); }else{ braveSubmitForm(); }} }} function brave_apply_email_suggestion(fieldID, suggestion){ document.querySelector('#brave_form_field'+fieldID+' input').value=suggestion; brave_dismiss_email_suggestion(fieldID); } function brave_dismiss_email_suggestion(fieldID){ document.querySelector('#brave_form_field'+fieldID).classList.remove('brave_form_field--hasError', 'brave_form_field--hasSuggestion'); } function brave_display_form_error(formErrors){ if(formErrors.length > 0){ formErrors.forEach(function(error){ if(error.fieldType&&error.fieldType==='name'){ if(error.firstname){ document.querySelector('#brave_form_field'+error.id).classList.add('brave_form_field--hasError-firstname'); document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error--firstname').innerHTML=error.message; } if(error.lastname){ document.querySelector('#brave_form_field'+error.id).classList.add('brave_form_field--hasError-lastname'); document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error--lastname').innerHTML=error.message; }}else{ document.querySelector('#brave_form_field'+error.id).classList.add('brave_form_field--hasError'); document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error').innerHTML=error.message; if(error.type==='suggestion'&&error.suggestion){ document.querySelector('#brave_form_field'+error.id).classList.add('brave_form_field--hasSuggestion'); var suggestionApplyBtn=''+bravepop_global.yes+''; var suggestionDismissBtn=''+bravepop_global.no+''; var suggestionActions='
'+suggestionApplyBtn+suggestionDismissBtn+'
' document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error').setAttribute('id', 'brave_form_field_error--suggestion'+error.id) document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error').classList.add('brave_form_field_error--suggestion'); document.querySelector('#brave_form_field'+error.id+' .brave_form_field_error').innerHTML=(error.message)+suggestionActions; }} }); }} function brave_validate_fields(fieldID, field){ if(!field){ return } if(field.type==='input'&&field.validation==='name'&&field.required){ if(!field.value[0]||!field.value[1]){ return {id: fieldID, type: 'required', fieldType: 'name', message: bravepop_global.field_required, firstname: !field.value[0] ? true:false, lastname: !field.value[1] ? true:false}} } if(!field.value&&field.required){ return {id: fieldID, type: 'required', message: bravepop_global.field_required}} if(field.required&&(field.type==='input'||field.type==='textarea'||field.type==='date')){ if(field.validation!=='name'&&!field.value.trim()){ return {id: fieldID, type: 'required', message: bravepop_global.field_required}} } if(field.value&&field.required&&field.type==='select'&&field.value==='none'){ return {id: fieldID, type: 'required', message: bravepop_global.field_required}} if(field.value&&((field.type==='input'&&field.validation==='text')||field.type==='textarea'||field.type==='date')){ if(brave_hasHTML(field.value)){ return {id: fieldID, type: 'ho_html', message: bravepop_global.no_html_allowed};}} if(field.value&&field.type==='input'&&field.validation==='number'){ if(brave_isNumber(field.value)===false){ return {id: fieldID, type: 'invalid', message: bravepop_global.invalid_number};}} if(field.value&&field.type==='input'&&field.validation==='url'){ if(brave_isURL(field.value)===false){ return {id: fieldID, type: 'invalid', message: bravepop_global.invalid_url};}} if(field.value&&field.type==='date'){ if(brave_isDate(field.value)===false){ return {id: fieldID, type: 'invalid', message: bravepop_global.invalid_date};}} if(field.value&&field.type==='input'&&field.validation==='email'){ if(brave_isEmail(field.value)===false){ return {id: fieldID, type: 'invalid', message: bravepop_global.invalid_email};}} } function brave_hasHTML(value){ var doc=new DOMParser().parseFromString(value, "text/html"); return Array.from(doc.body.childNodes).some(function(node){ return node.nodeType===1}); } function brave_isNumber(value){ var numberFormat=RegExp(/^[a-zA-Z]+$/); return numberFormat.test(value) ? false:true; } function brave_isEmail(value){ var mailformat=RegExp(/^\w+([\.+-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/); return mailformat.test(value) ? true:false; } function brave_isURL(value){ var urlFormat=RegExp(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g); return urlFormat.test(value) ? true:false; } function brave_isDate(value){ var dateFormat=RegExp(/\d{1,4}[-/]\d{1,2}[-/]\d{1,4}/); var dateFormatTwo=RegExp(/\d{1,4}[-/]\d{1,2}/); var matchedDate=dateFormat.test(value); if(!matchedDate){ matchedDate=dateFormatTwo.test(value); } return matchedDate ? true:false; } function brave_ajax_send(ajaxurl, ajaxData, callbackFunction){ var array=[]; Object.keys(ajaxData).forEach(function(element){ array.push(encodeURIComponent(element) + "=" + encodeURIComponent(ajaxData[element])) }); var dataToSend=array.join("&"); var request=new XMLHttpRequest(); request.open('POST', ajaxurl, true); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); request.onload=function (){ if(this.status >=200&&this.status < 400){ callbackFunction('success', this.response); }else{ callbackFunction('error', this.response); }}; request.send(dataToSend); } function brave_action_step(popupID, currentStep, stepIndex){ var selectedPopupStep=document.querySelector('#brave_popup_'+popupID+'__step__'+stepIndex+' .brave_popup__step__'+brave_currentDevice) var noMobileContent=selectedPopupStep&&selectedPopupStep.dataset.nomobilecontent==='true' ? true:false; var currentDevice=noMobileContent ? 'desktop':brave_currentDevice; var selectedPopupStep=document.querySelector('#brave_popup_'+popupID+'__step__'+currentStep+' .brave_popup__step__'+currentDevice) selectedPopupStep.dataset.open='false'; brave_open_popup(popupID, stepIndex); } function brave_init_popup(popupID, popupData){ if(!popupData){ return; } brave_responsiveness(null, popupID, popupData); if(popupData.forceLoad){ return brave_load_popup(popupID, popupData); } var triggerType=popupData.settings&&popupData.settings.trigger&&popupData.settings.trigger.triggerType ? popupData.settings.trigger.triggerType.split(','):['load']; var utmKeywords=[]; var containsKeyword=false; if(popupData.settings&&popupData.settings.placement&&popupData.settings.placement.utm&&popupData.settings.placement.utmKeywords){ utmKeywords=popupData.settings.placement.utmKeywords.split(','); } if(utmKeywords.length > 0){ var currentURL=window.location.href; utmKeywords.forEach(function(key){ if(currentURL.includes(key)){ containsKeyword=true; }}) if(containsKeyword===false){ return console.log('Does Not Match UTM Keywords'); }} if(popupData.settings&&popupData.settings.placement&&popupData.settings.placement.adblock_check&&window.brave_canRunAds){ return console.log('Visitor Doesnt have Ad Blocked Installed! Aborting..'); } if((popupData.hasDesktopEmbed||(popupData.hasMobileEmbed&&brave_currentDevice==='mobile'))&&!document.getElementById('bravepopup_embedded_'+popupID)){ return console.log('Popup shortcode is not found in current page'); } if(popupData.schedule&&popupData.schedule.active&&popupData.schedule.type){ if(popupData.schedule.type==='days'&&popupData.schedule.days.length > 0){ var currentDay=new Date().getDay(); if(!popupData.schedule.days.includes(currentDay)){ return console.log('Popup Not Scheduled for Today!'); }} if(popupData.schedule.type==='dates'&&popupData.schedule.dates.length > 0){ var thecurrentDate=new Date().getTime(); var dateInRange=false; popupData.schedule.dates.forEach(function(date){ var theTimes=[]; var timeTypes=['start', 'end']; timeTypes.forEach(function(val){ var theDate=date[val].date.split('/'); var theHour=date[val].time&&date[val].time.hour ? date[val].time.hour:'00'; var theMinutes=date[val].time&&date[val].time.minutes ? date[val].time.minutes:'00'; theTimes.push(new Date(theDate[2]+'/'+theDate[1]+'/'+theDate[0]+' '+theHour+':'+theMinutes+':00').getTime()); }) if(theTimes[0] < thecurrentDate&&theTimes[1] > thecurrentDate){ dateInRange=true; }}); if(!dateInRange){ return console.log('Popup Not Scheduled these dates!'); }} } if(popupData.settings&&popupData.settings.audience&&popupData.settings.audience.devices&&popupData.settings.audience.devices==="desktop"&&brave_currentDevice==='mobile'){ return console.log('Device Settings doesnt Match'); } if(popupData.settings&&popupData.settings.audience&&popupData.settings.audience.devices&&popupData.settings.audience.devices==="mobile"&&brave_currentDevice==='desktop'){ return console.log('Device Settings doesnt Match'); } var popVariants=brave_popup_data[popupID]&&brave_popup_data[popupID].variants ? brave_popup_data[popupID].variants:false; var popupRepeatCountType=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeatCountType||'lifetime'; var popupRepeatDelay=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeatDelay||false; var popupRepeatDelayTime=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeatDelayTime ? parseInt(popupData.settings.frequency.repeatDelayTime, 10):false; var repeatCount=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeatCount ? parseInt(popupData.settings.frequency.repeatCount, 10):3; var filterViewFreq=function(popID){ var popupOpenCount=localStorage.getItem('brave_popup_'+popID+'_viewed'); var popupOpenSessionCount=sessionStorage.getItem('brave_popup_'+popID+'_viewed'); if(popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeat&&brave_popup_adminUser===false){ if(popupRepeatCountType==='lifetime'&&parseInt(popupOpenCount, 10) >=repeatCount){ return 'Already Viewed '+repeatCount+' Times. Hiding..'; } var popupViewStat=localStorage.getItem('brave_popup_'+popID+'_view_stat'); popupViewStat=popupViewStat ? JSON.parse(popupViewStat):[]; var thecurrentDate=new Date(); var thecurrentDay=thecurrentDate.getDate(); var thecurrentHour=thecurrentDate.getHours(); var thecurrentMonth=thecurrentDate.getMonth(); var thecurrentYear=thecurrentDate.getFullYear(); var popupViewDayCount=0; var popupViewMonthCount=0; var popupView12hCount=0; var popupView6hCount=0; var popupView1hCount=0; var matchedStats=[]; if(popupViewStat){ popupViewStat.forEach(function(stat){ var statDate=new Date(stat); var statDay=statDate.getDate(); var statHour=statDate.getHours(); var statMonth=statDate.getMonth(); var statYear=statDate.getFullYear(); if((statDay===thecurrentDay)&&(statMonth===thecurrentMonth)&&(statYear===thecurrentYear)){ popupViewDayCount=popupViewDayCount + 1; } if((statMonth===thecurrentMonth)&&(statYear===thecurrentYear)){ popupViewMonthCount=popupViewMonthCount + 1; } if((thecurrentHour - statHour) < 12&&(statDay===thecurrentDay)&&(statMonth===thecurrentMonth)&&(statYear===thecurrentYear)){ popupView12hCount=popupView12hCount + 1; } if((thecurrentHour - statHour) < 6&&(statDay===thecurrentDay)&&(statMonth===thecurrentMonth)&&(statYear===thecurrentYear)){ popupView6hCount=popupView6hCount + 1; } if((thecurrentHour - statHour) < 1&&(statDay===thecurrentDay)&&(statMonth===thecurrentMonth)&&(statYear===thecurrentYear)){ popupView1hCount=popupView1hCount + 1; } if(!matchedStats.includes(stat)){ matchedStats.push(stat); }}) } matchedStats=matchedStats.sort(); var lastViewedTime=matchedStats.length > 0 ? matchedStats[matchedStats.length - 1]:0; var viewDelayMatched=popupRepeatDelay&&popupRepeatDelayTime ? (thecurrentDate.getTime() - lastViewedTime) > popupRepeatDelayTime:true; var viewCountError='Already Viewed '+repeatCount+' Times in last '+popupRepeatCountType+' Hiding..' console.log(lastViewedTime, thecurrentDate.getTime(), popupRepeatDelayTime, (thecurrentDate.getTime() - lastViewedTime) > popupRepeatDelayTime); if(viewDelayMatched){ console.log(lastViewedTime, thecurrentDate.getTime(), popupRepeatDelayTime, (thecurrentDate.getTime() - lastViewedTime) > popupRepeatDelayTime); if(popupRepeatCountType==='12h'&&(parseInt(popupView12hCount, 10) >=repeatCount)){ return viewCountError; } if(popupRepeatCountType==='6h'&&(parseInt(popupView6hCount, 10) >=repeatCount)){ return viewCountError; } if(popupRepeatCountType==='1h'&&(parseInt(popupView1hCount, 10) >=repeatCount)){ return viewCountError; } if(popupRepeatCountType==='session'&&(parseInt(popupOpenSessionCount, 10) >=repeatCount)){ return viewCountError; } if(popupRepeatCountType==='day'&&(parseInt(popupViewDayCount, 10) >=repeatCount)){ return viewCountError; } if(popupRepeatCountType==='month'&&(parseInt(popupViewMonthCount, 10) >=repeatCount)){ return viewCountError; }}else{ return 'Repeat Delay Doesnt Match! Hiding....'; }} return false; } var filterCloseFreq=function(popID){ var popupCloseStat=localStorage.getItem('brave_popup_'+popID+'_closed') ? JSON.parse(localStorage.getItem('brave_popup_'+popID+'_closed')):null; if(popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.close&&popupCloseStat&&popupCloseStat.closed){ var popupCloseCount=popupData.settings.frequency.closeCount ? popupData.settings.frequency.closeCount:2; var popupCloseFor=popupData.settings.frequency.closeFor ? parseInt(popupData.settings.frequency.closeFor, 10) * 86400 * 1000:86400 * 1000 * 30; var userCloseCount=parseInt(popupCloseStat.closed, 10); var userCloseDate=parseInt(popupCloseStat.closeTime, 10); var currentDate=new Date().getTime(); var closeTimeDiff=currentDate - userCloseDate; var closeDelayMatched=popupRepeatDelay&&popupRepeatDelayTime ? (currentDate - userCloseDate) > popupRepeatDelayTime:true; console.log('##### CLOSING STATS',userCloseCount, popupCloseFor,closeTimeDiff, closeTimeDiff >=popupCloseFor, userCloseCount >=popupCloseCount, closeDelayMatched, currentDate - userCloseDate); if((closeTimeDiff <=popupCloseFor&&(userCloseCount >=popupCloseCount))||!closeDelayMatched){ return 'Close Time Settings Do not Match'; }} } var viewFreqMatch=false; var closeFreqMatch=false; var formFreqMatch=false; goalFreqmatch=false; var hasViewFreqSetting=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeat&&brave_popup_adminUser===false; var hasCloseFreqSetting=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.close&&brave_popup_adminUser===false; var formFreqSetting=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.formSubmit&&brave_popup_adminUser===false; var goalFreqSetting=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.goalComplete&&brave_popup_adminUser===false; if(popVariants.length > 0){ popVariants.forEach(function(popID){ if(!viewFreqMatch&&hasViewFreqSetting){ var popViewFreqMatch=filterViewFreq(popID); if(popViewFreqMatch){ viewFreqMatch=popViewFreqMatch; }} if(!closeFreqMatch&&hasCloseFreqSetting){ var popCloseFreqMatch=filterCloseFreq(popID); if(popCloseFreqMatch){ closeFreqMatch=popCloseFreqMatch; }} if(!formFreqMatch&&formFreqSetting&&localStorage.getItem('brave_popup_'+popID+'_formsubmitted')){ formFreqMatch=true; } if(!goalFreqmatch&&goalFreqSetting&&localStorage.getItem('brave_popup_'+popID+'_goal_complete')){ goalFreqmatch=true; }}) }else{ if(hasViewFreqSetting){ viewFreqMatch=filterViewFreq(popupID); } if(hasCloseFreqSetting){ closeFreqMatch=filterCloseFreq(popupID); } if(!formFreqMatch&&formFreqSetting&&localStorage.getItem('brave_popup_'+popupID+'_formsubmitted')){ formFreqMatch=true; } if(!goalFreqmatch&&goalFreqSetting&&localStorage.getItem('brave_popup_'+popupID+'_goal_complete')){ goalFreqmatch=true; }} if(viewFreqMatch&&hasViewFreqSetting){ return console.log('[Viewed Frequency]', popupID, viewFreqMatch);; } if(closeFreqMatch&&hasCloseFreqSetting){ return console.log('[Closed Frequency]', popupID, closeFreqMatch);; } if(formFreqMatch&&formFreqSetting){ return console.log('[Form Frequency]', popupID, 'Form in this Popup already Submitted! Hiding..'); } if(goalFreqmatch&&goalFreqSetting){ return console.log('[Goal Frequency]', popupID, 'Popup Goal Already Completed..'); } if(popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.timerEnded&&popupData.timers.length > 0&&popupData.timers[0].ended){ return console.log('Popup Countdown Timer Ended! Hiding..'); } if(popupData.settings&&popupData.settings.filters&&popupData.settings.filters.popups_before&&popupData.settings.filters.popups.length > 0){ var popupFilterFulfilled=false; popupData.settings.filters.popups.forEach(function (popup){ if(!popupFilterFulfilled&&popup.id&&popup.action){ var popupActionNegative=popup.action.includes('not_') var popActionKey=popupActionNegative ? popup.action.replace('not_', ''):popup.action var popupActionMatched=localStorage.getItem('brave_popup_'+popup.id+'_'+popActionKey); if(!popupActionNegative&&popupActionMatched){ popupFilterFulfilled=true; } if(popupActionNegative&&!popupActionMatched){ popupFilterFulfilled=true; }} }) if(!popupFilterFulfilled){ return console.log('A selected Popup was not viewed before! Hiding..'); }} if(popupData.settings&&popupData.settings.filters&&popupData.settings.filters.cookieFilter&&popupData.settings.filters.cookies&&popupData.settings.filters.cookies.length > 0){ var cookieMatched=false; popupData.settings.filters.cookies.forEach(function(cookie){ if(!cookieMatched&&cookie.action==='has'&&cookie.key&&localStorage.getItem(cookie.key)){ cookieMatched=true; } if(!cookieMatched&&cookie.action==='nothas'&&cookie.key&&!localStorage.getItem(cookie.key)){ cookieMatched=true; } if(!cookieMatched&&cookie.action==='equal'&&cookie.key&&cookie.value&&localStorage.getItem(cookie.key)===cookie.value){ cookieMatched=true; } if(!cookieMatched&&cookie.action==='notequal'&&cookie.key&&cookie.value&&localStorage.getItem(cookie.key)!==cookie.value){ cookieMatched=true; }}) if(cookieMatched===false){ return console.log('Visitor Cookie did not match! Hiding..'); }} if(popupData.settings&&popupData.settings.filters&&((popupData.settings.filters.pages_count_filter&&popupData.settings.filters.pagecount)||(popupData.settings.filters.pages_before&&popupData.settings.filters.pages))){ var viewCountLimit=parseInt(popupData.settings.filters.pagecount, 10); var current_page_view_data=localStorage.getItem('brave_page_visited'); current_page_view_data=current_page_view_data ? JSON.parse(current_page_view_data):[]; if(popupData.settings.filters.pages_count_filter&&popupData.settings.filters.pagecount&¤t_page_view_data&&(current_page_view_data.length < viewCountLimit)){ return console.log('Visitor did not view enough pages to show the popup! Hiding..'); } var pageConditionMatch=[]; var viewConditionMatched=true; if(popupData.settings.filters.pages_before&&popupData.settings.filters.pages&&popupData.settings.filters.pages.length > 0){ var pagesmatched=[]; var braveMatchPageViewTime=function(timeLimit, viewTime){ if(!timeLimit){ return true; } if(viewTime > timeLimit){ return true; }else{ return false; }} var braveCheckIfViewedPageMatch=function(pageCond, checkExistence=true, timeLimit){ var pageCondID=pageCond.id; var pageCondType=pageCond.type; var conditionMatched=false; current_page_view_data.forEach(function(pgView){ var timeMatch=braveMatchPageViewTime(timeLimit, pgView.time); var pageMatch=pgView.PID===pageCondID&&pgView.type===pageCondType&&timeMatch; if(pageMatch&&checkExistence){ conditionMatched=true; }}) return conditionMatched; } var braveCheckIfNotViewedPageMatch=function(pageCond, checkExistence=false, timeLimit){ var pageCondID=pageCond.id; var pageCondType=pageCond.type; var conditionMatched=true; current_page_view_data.forEach(function(pgView){ var timeMatch=braveMatchPageViewTime(timeLimit, pgView.time); var pageMatch=pgView.PID===pageCondID&&pgView.type===pageCondType&&timeMatch; if(pageMatch&&!checkExistence){ conditionMatched=false; }}) return conditionMatched; } popupData.settings.filters.pages.forEach(function(pageCond){ var currentTime=new Date().getTime(); var timeLimit=currentTime - 10800000; if(pageCond.duration==='lifetime'){ timeLimit=false;} if(pageCond.duration==='1day'){ timeLimit=currentTime - 86400000;} if(pageCond.duration==='7days'){ timeLimit=currentTime - 604800000;} if(pageCond.duration==='30days'){ timeLimit=currentTime - 2592000000;} var condMatch=pageCond.action.includes('not_viewed') ? braveCheckIfNotViewedPageMatch(pageCond, false, timeLimit):braveCheckIfViewedPageMatch(pageCond, true, timeLimit); pagesmatched.push({matched: condMatch, forced: pageCond.condition==='and' ? true:false }); }) pagesmatched.forEach(function(matchItm){ if(matchItm.forced===true&&matchItm.matched===true){ pageConditionMatch.push(true); } if(matchItm.forced===true&&matchItm.matched===false){ pageConditionMatch.push(false); } if(matchItm.forced===false&&(matchItm.matched===true||matchItm.matched===false)){ pageConditionMatch.push(true); }}) pageConditionMatch.forEach(function(bool){ if(bool===false){ viewConditionMatched=false; }}) if(!viewConditionMatched){ return console.log('Visitor did not view the selected pages before to show the popup! Hiding..'); }} } if(triggerType.includes('load')){ brave_load_popup(popupID, popupData, 'load'); } if(triggerType.includes('exit')){ if(brave_currentDevice==='mobile'){ if(!popupData.settings.trigger.exitMobileFallback||(popupData.settings.trigger.exitMobileFallback&&popupData.settings.trigger.exitMobileFallback.type&&popupData.settings.trigger.exitMobileFallback.type==='load')){ brave_load_popup(popupID, popupData,'load'); } if(popupData.settings.trigger.exitMobileFallback&&popupData.settings.trigger.exitMobileFallback.type&&popupData.settings.trigger.exitMobileFallback.type==='time'){ var exitMobileDelay=popupData.settings.trigger.exitMobileFallback.time||2000; setTimeout(function(){ brave_load_popup(popupID, popupData , 'time'); }, (exitMobileDelay * 1000)); }}else{ document.addEventListener("mouseout", function(evt){ if((evt.toElement===null||evt.toElement===undefined)&&(evt.relatedTarget===null)){ brave_load_popup(popupID, popupData, 'exit'); }}); }} if(triggerType.includes('scroll')||(brave_isMobile&&popupData.settings.trigger.exitMobileFallback&&popupData.settings.trigger.exitMobileFallback.type&&popupData.settings.trigger.exitMobileFallback.type==='scroll')){ var currentPopup=document.getElementById('brave_popup_'+popupID+'__step__0'); var noMobileContent=currentPopup&¤tPopup.classList.contains('brave_popup__step--mobile-noContent')===true ? true:false; var currentDevice=noMobileContent ? 'desktop':brave_currentDevice; var scrollHide=popupData.settings&&popupData.settings.trigger&&popupData.settings.trigger.scrollHide ? true:false; var scrollTriggerPopup=function(scrollPercent, percentLimit=20, currentPopStep, currentPopStepVisible, between=false){ var scrollPercentVal=between&&percentLimit.split('-'); var startScrollPercent=scrollPercentVal&&scrollPercentVal[0]&&parseInt(scrollPercentVal[0], 10); var endScrollPercent=scrollPercentVal&&scrollPercentVal[1]&&parseInt(scrollPercentVal[1], 10); if(brave_popup_data[popupID].userClosed){ return; } if((!between&&(scrollPercent >=percentLimit))||((between&&!isNaN(startScrollPercent)&&!isNaN(endScrollPercent))&&((scrollPercent >=startScrollPercent)&&(scrollPercent <=endScrollPercent)))){ if(!brave_popup_data[popupID].loaded){ brave_load_popup(popupID, popupData, 'scroll'); }else{ if(!currentPopStepVisible){brave_open_animation(popupID, 0, currentDevice); currentPopStep.dataset.open=true; }} }else{ if((between||scrollHide)&¤tPopStepVisible){ brave_close_animation(popupID, 0, currentDevice); currentPopStep.dataset.open=false; }} } document.addEventListener("scroll", function(evt){ var h=document.documentElement, b=document.body, st='scrollTop', sh='scrollHeight'; var scrollPercent=(h[st]||b[st]) / ((h[sh]||b[sh]) - h.clientHeight) * 100; var currentPopStep=document.querySelector('#brave_popup_'+popupID+'__step__0 .brave_popup__step__'+currentDevice); var currentPopStepVisible=currentPopStep&¤tPopStep.dataset.open==='true' ? true:false; if(brave_isMobile&&(popupData.settings.trigger.exitMobileFallback&&popupData.settings.trigger.exitMobileFallback.type&&popupData.settings.trigger.exitMobileFallback.type==='scroll')){ var exitMobielScroll=popupData.settings.trigger.exitMobileFallback.scroll||15; if(scrollPercent >=exitMobielScroll){ brave_load_popup(popupID, popupData, 'scroll'); }} if(popupData.settings&&popupData.settings.trigger.scrolltype&&popupData.settings.trigger.scrolltype!=='between'){ var srollTargetAmnt=0; if(popupData.settings.trigger.scrolltype==='ten'){ srollTargetAmnt=10} if(popupData.settings.trigger.scrolltype==='twenty'){ srollTargetAmnt=20} if(popupData.settings.trigger.scrolltype==='thirty'){ srollTargetAmnt=30} if(popupData.settings.trigger.scrolltype==='forty'){ srollTargetAmnt=40} if(popupData.settings.trigger.scrolltype==='half'){ srollTargetAmnt=50} if(popupData.settings.trigger.scrolltype==='sixty'){ srollTargetAmnt=60} if(popupData.settings.trigger.scrolltype==='seventy'){ srollTargetAmnt=70} if(popupData.settings.trigger.scrolltype==='eighty'){ srollTargetAmnt=80} if(popupData.settings.trigger.scrolltype==='end'){ srollTargetAmnt=95} scrollTriggerPopup(scrollPercent, srollTargetAmnt, currentPopStep, currentPopStepVisible); } if(popupData.settings&&popupData.settings.trigger&&popupData.settings.trigger.scrolltype==='between'&&popupData.settings.trigger.scrollBetween&&popupData.settings.trigger.scrollBetween.includes('-')){ scrollTriggerPopup(scrollPercent, popupData.settings.trigger.scrollBetween, currentPopStep, currentPopStepVisible, true); } if(popupData.settings&&popupData.settings.trigger.scrolltype&&popupData.settings.trigger.scrollto&&popupData.settings.trigger.scrolltype==='custom'){ var scrollToIDs=popupData.settings.trigger.scrollto||''; var scrolltoElms=scrollToIDs&&document.querySelectorAll(scrollToIDs); if(scrollToIDs&&scrolltoElms){ for (var i=0; i < scrolltoElms.length; i++){ var scrolltoElm=scrolltoElms[i]; if(scrolltoElm&&brave_is_in_view(scrolltoElm)){ brave_load_popup(popupID, popupData, 'scroll'); }} }} }, {passive: true}); } if(popupData.settings&&popupData.settings.content&&popupData.settings.content.highlight){ document.addEventListener("scroll", function(evt){ var contentElm=document.querySelector('.bravepopup_embedded--highlight_'+popupID); var contenthlElm=document.getElementById('bravepopup_embedded__bg_'+popupID); var contentAlreadyHighlighted=false; if(popupData.settings.content.highlight==='once'){ contentAlreadyHighlighted=contentElm.classList.contains('bravepopup_embedded__highlight--done') ? true:false;} if(contentElm&&(popupData.settings.content.highlight==='always'||(!contentAlreadyHighlighted&&popupData.settings.content.highlight==='once'))){ var embeddedContentRect=contentElm.getBoundingClientRect(); var embeddedViewRatio=(embeddedContentRect.top / document.documentElement.clientHeight)*100; if((embeddedViewRatio < 50&&embeddedViewRatio > -20)&&!contenthlElm.classList.contains('bravepopup_embedded__bg--active')){ contenthlElm.classList.add('bravepopup_embedded__bg--active'); contentElm.classList.add('bravepopup_embedded__highlight--active'); } if((embeddedViewRatio < -20||embeddedViewRatio > 50)&&contenthlElm.classList.contains('bravepopup_embedded__bg--active')){ contenthlElm.classList.remove('bravepopup_embedded__bg--active'); contentElm.classList.remove('bravepopup_embedded__highlight--active'); if(popupData.settings.content.highlight){ contentElm.classList.add('bravepopup_embedded__highlight--done'); }} }}, {passive: true}); } if(triggerType.includes('click')&&popupData.settings&&popupData.settings.trigger.clickElements){ var clickElms=document.querySelectorAll(popupData.settings.trigger.clickElements); if(clickElms){ for (var i=0; i < clickElms.length; i++){ var clickElm=clickElms[i]; clickElm.addEventListener("click", function(evt){ evt.preventDefault(); document.getElementById('brave_popup_'+popupID).style.zIndex=9999999999; brave_load_popup(popupID, popupData, 'click'); }); }} } if(triggerType.includes('time')&&popupData.settings&&popupData.settings.trigger.time&&(popupData.settings.trigger.time.hours||popupData.settings.trigger.time.minutes||popupData.settings.trigger.time.seconds)){ var triggerHours=popupData.settings.trigger.time.hours ? parseInt(popupData.settings.trigger.time.hours, 10):0; var triggerMinutes=popupData.settings.trigger.time.minutes ? parseInt(popupData.settings.trigger.time.minutes, 10):0; var triggerSeconds=popupData.settings.trigger.time.seconds ? parseInt(popupData.settings.trigger.time.seconds, 10):0; var totalTriggerDelay=(triggerHours * 3600) + (triggerMinutes * 60) + (triggerSeconds); totalTriggerDelay=totalTriggerDelay * 1000; setTimeout(function(){ brave_load_popup(popupID, popupData , 'time'); }, totalTriggerDelay); }} function brave_load_popup(popupID, popupData, triggerType='load'){ if(brave_popup_data[popupID]&&brave_popup_data[popupID].ajaxLoad&&!brave_popup_data[popupID].ajaxLoaded){ var loadData={ popupID: popupID, type: brave_popup_data[popupID].type, security: bravepop_global.security, current_url: location.href ,action: 'bravepop_ajax_load_popup_content' }; brave_ajax_send(bravepop_global.ajaxURL, loadData, function(status, sentData){ brave_popup_data[popupID].ajaxLoaded=true; var selectedPopup=document.getElementById('brave_popup_'+popupID); if(selectedPopup){ selectedPopup.innerHTML=sentData; brave_process_open_popup(popupID, popupData, triggerType); }}); }else{ brave_process_open_popup(popupID, popupData, triggerType); }} function brave_process_open_popup(popupID, popupData, triggerType='load'){ var selectedPopup=document.getElementById('brave_popup_'+popupID); var popupLoadStatus=selectedPopup ? selectedPopup.dataset.loaded:'false'; if(popupLoadStatus==='false'){ if(popupData.hasYoutube){ var YTtag=document.createElement('script'); YTtag.src="https://www.youtube.com/iframe_api"; var PageFirstScript_YT=document.getElementsByTagName('script')[0]; PageFirstScript_YT.parentNode.insertBefore(YTtag, PageFirstScript_YT); } if(popupData.hasVimeo){ var VimTag=document.createElement('script'); VimTag.src="https://player.vimeo.com/api/player.js"; var PageFirstScript_Vim=document.getElementsByTagName('script')[0]; PageFirstScript_Vim.parentNode.insertBefore(VimTag, PageFirstScript_Vim); } var dateFields=document.querySelectorAll('.brave_form_field--date'); if(window.brave_initPikaday&&dateFields&&dateFields.length > 0){ for (var i=0, len=dateFields.length; i < len; i++){ var dateField=dateFields[i]; var startDate=dateField.dataset.startdate ? dateField.dataset.startdate:''; var endDate=dateField.dataset.enddate ? dateField.dataset.enddate:''; var dateInput=dateField.querySelector('input'); brave_initPikaday(dateInput, startDate, endDate); }} selectedPopup.dataset.loaded=true; } let step=popupData.forceLoad&&popupData.forceStep? parseInt(popupData.forceStep, 10) - 1:0; if(brave_popup_data[popupID].settings&&brave_popup_data[popupID].settings.frequency&&brave_popup_data[popupID].settings.frequency.rememberLastStep){ let foundLastStep=localStorage.getItem('brave_popup_'+popupID+'_last_viewed_step'); if(foundLastStep!==undefined&&foundLastStep!==null){ step=foundLastStep; }} if(triggerType==='exit'||triggerType==='scroll'||triggerType==='time'){ var triggerFulFilled=document.getElementById('brave_popup_'+popupID).dataset.triggerfulfilled; if(!triggerFulFilled){ document.getElementById('brave_popup_'+popupID).dataset.triggerfulfilled=true; brave_open_popup(popupID, step); }}else{ brave_open_popup(popupID, step); } if(brave_popup_data[popupID]&&!brave_popup_data[popupID].loaded){ brave_popup_data[popupID].loaded=true; }} function brave_open_popup(popupID, step=0){ var popupData=brave_popup_data[popupID]; var selectedPopupStep=document.querySelector('#brave_popup_'+popupID+'__step__'+step+' .brave_popup__step__'+brave_currentDevice) var noMobileContent=selectedPopupStep&&selectedPopupStep.dataset.nomobilecontent==='true' ? true:false; var currentDevice=noMobileContent ? 'desktop':brave_currentDevice; var selectedPopupStep=document.querySelector('#brave_popup_'+popupID+'__step__'+step+' .brave_popup__step__'+currentDevice); var popupStepOpen=selectedPopupStep ? selectedPopupStep.dataset.open:'false'; var hasLockScroll=selectedPopupStep.dataset.scrollock ? true:false; var stickyBar=selectedPopupStep&&selectedPopupStep.dataset.layout==='float'&&selectedPopupStep.dataset.position==='top_center' ? true:false; if(popupStepOpen!=='false'){ return } if(!popupData){ return } console.log('Opening ', popupID, step, popupStepOpen, stickyBar, noMobileContent, currentDevice); brave_popup_data[popupID].currentStep=step; if(window.location.href.includes('brave_popup')===false&&window.location.href.includes('braveshot')===false&&!brave_popup_data[popupID].viewStatSent){ var viewDate=new Date(); var viewYear=viewDate.getFullYear(); var viewMonth=brave_number_padding(viewDate.getMonth() + 1); var viewDate=brave_number_padding(viewDate.getDate()); var goalIsFirstView=false; if(brave_popup_data[popupID]&&brave_popup_data[popupID].settings&&brave_popup_data[popupID].settings.goalAction && brave_popup_data[popupID].settings.goalAction.type==='step'&&brave_popup_data[popupID].settings.goalAction.step===0){ goalIsFirstView=true; } var viewData={ popupID: popupID, date: viewYear+'-'+viewMonth+'-'+viewDate, goalIsFirstView: goalIsFirstView, pageURL: window.location, goalUTCTime: new Date().toUTCString(), security: bravepop_global.security, action: 'bravepop_ajax_popup_viewed' }; brave_ajax_send(bravepop_global.ajaxURL, viewData, function(status, sentData){ brave_popup_data[popupID].viewStatSent=true; }); } var currentPopupStat=localStorage.getItem('brave_popup_'+popupID+'_viewed'); localStorage.setItem('brave_popup_'+popupID+'_viewed', currentPopupStat ? parseInt(currentPopupStat, 10) + 1:1); var popupRepeat=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeat var popupRepeatCountType=popupData.settings&&popupData.settings.frequency&&popupData.settings.frequency.repeatCountType||'lifetime'; if(popupRepeat&&popupRepeatCountType!=='lifetime'){ var theViewStat=localStorage.getItem('brave_popup_'+popupID+'_view_stat'); theViewStat=theViewStat ? JSON.parse(theViewStat):[]; theViewStat.push(new Date().getTime()); localStorage.setItem('brave_popup_'+popupID+'_view_stat', JSON.stringify(theViewStat)); } if(popupRepeat&&popupRepeatCountType==='session'){ var currentSessionPopupViews=sessionStorage.getItem('brave_popup_'+popupID+'_viewed')||0; sessionStorage.setItem('brave_popup_'+popupID+'_viewed', parseInt(currentSessionPopupViews, 10)+1); } if(hasLockScroll){ document.body.classList.add('brave_scroll_lock') } if(stickyBar){ var popupHeight=selectedPopupStep.dataset.height; document.documentElement.style.setProperty('margin-top', popupHeight+'px', 'important'); } if(popupData.type!=='content'){ var allImages=selectedPopupStep.querySelectorAll('img'); for (var i=0; i < allImages.length; i++){ if(allImages[i].dataset.lazy){ allImages[i].src=allImages[i].dataset.lazy; }} } if(brave_popup_videos&&brave_popup_videos[popupID]&&Object.keys(brave_popup_videos).length > 0){ Object.keys(brave_popup_videos[popupID]).forEach(function(playerID){ if(playerID.includes('youtube')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].stopVideo){ brave_popup_videos[popupID][playerID].stopVideo(); } if(playerID.includes('vimeo')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].pause){ brave_popup_videos[popupID][playerID].pause(); } if(playerID.includes('custom')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].pause){ brave_popup_videos[popupID][playerID].pause(); }}); } if(popupData.videoData&&popupData.videoData[step]&&popupData.videoData[step][currentDevice]){ var videoObj=popupData.videoData[step][currentDevice]; var videoType=videoObj.videoType ? videoObj.videoType:'youtube'; var videoURL=videoObj.videoUrl ? videoObj.videoUrl:'youtube'; var videoTracking=videoObj.action&&videoObj.action.track&&videoObj.action.trackData ? videoObj.action.trackData:null; var videoSettings={id: videoObj.id, autoplay: videoObj.autoplay||false, controls: videoObj.controls||false, mute: videoObj.mute||false, tracking: videoTracking } brave_load_video(videoType, videoURL, videoSettings, popupID); } var elmsWithCookie=selectedPopupStep&&selectedPopupStep.querySelectorAll('.brave_element--text_hasCookie .brave_element__text_inner'); if(elmsWithCookie&&elmsWithCookie.length > 0){ brave_replace_dynamic_text_cookie(elmsWithCookie); } var hasAnimation=popupData.hasAnimation ? popupData.hasAnimation:false; var advancedAnimation=popupData.advancedAnimation ? popupData.advancedAnimation:false; var hasContAnim=popupData.hasContAnim ? popupData.hasContAnim:false; var animationData=popupData.animationData ? popupData.animationData:{}; var selectedStep=document.getElementById('brave_popup_'+popupID+'__step__'+step); if(!selectedStep){ return;} var focusableElm=selectedStep.querySelector('.brave_popup--popup .brave_popupMargin__wrap'); var closableFocus=selectedStep.querySelector('.brave_popup--popup .brave_popup__close'); if(closableFocus){ closableFocus.tabIndex=0; } if(focusableElm){ focusableElm.tabIndex=0; setTimeout(()=> { focusableElm.focus(); }, 200); } if(selectedStep){ var allSteps=document.querySelectorAll('#brave_popup_'+popupID+' .brave_popup__step_wrap'); if(allSteps){ for (var i=0; i < allSteps.length; i++){ allSteps[i].classList.remove('brave_popup__step_wrap--show'); }} var braveOpenEvent=new CustomEvent('brave_popup_open', { detail: {popupId: parseInt(popupID, 10), step: step}}); document.dispatchEvent(braveOpenEvent); if(!advancedAnimation){ brave_open_animation(popupID, step, currentDevice); } if(advancedAnimation&&hasAnimation&&animationData){ selectedStep.classList.add('brave_popup__step_wrap--show'); brave_animate_popup(animationData, popupID, step, 'load'); } if(hasContAnim&&animationData&&animationData[step][currentDevice]&&animationData[step][currentDevice].elements){ var initialDelay=(animationData[step][currentDevice].totalDuration||0) + 1200; animationData[step][currentDevice].elements.forEach(function(element){ if(element&&element.animation&&element.animation.continious){ var theElement=element.id==='popup' ? document.querySelector('#brave_popup_'+popupID+'__step__'+step+' .brave_popup__step__inner .brave_popupSections__wrap'):document.getElementById('brave_element-'+element.id); var elementID=element.id==='popup' ? popupID:element.id; var contAnimType=element.animation.continious.preset||'none'; var contAnimDuration=element.animation.continious.duration||500; var contAnimDelay=element.animation.continious.delay||0; if(theElement){ setTimeout(function(){ theElement.classList.add('brave_element-'+elementID+'_contAnim'); if(contAnimDelay > 0){ setInterval(function(){ theElement.classList.add('brave_element-'+elementID+'_contAnim'); setTimeout(function(){ theElement.classList.remove('brave_element-'+elementID+'_contAnim'); }, contAnimDuration); }, ((contAnimDelay > contAnimDuration) ? contAnimDelay:contAnimDuration + contAnimDelay)) }}, initialDelay); }} }) }} setTimeout(function(){ var currentPopupDimension=selectedPopupStep.querySelector('.brave_popup__step__inner').getBoundingClientRect(); if((window.innerHeight < currentPopupDimension.height)&&selectedPopupStep.classList.contains('brave_popup__step--boxed')&&selectedPopupStep.classList.contains('position_center')){ selectedPopupStep.classList.add('brave_popup_exceeds_windowHeight'); selectedPopupStep.classList.add('brave_popup_show_scrollbar'); }}, 100); if(popupData.close[0]&&popupData.close[0][currentDevice]&&popupData.close[0][currentDevice].autoClose&&popupData.close[0][currentDevice].autoCloseDuration){ setTimeout(function(){ if(!brave_popup_data[popupID].autoClosed){ brave_close_popup(popupID, step); if(popupData.close[0][currentDevice].closeStep!=='undefined'&&Number.isInteger(popupData.close[0][currentDevice].closeStep)){ brave_open_popup(popupID, popupData.close[0][currentDevice].closeStep); }} brave_popup_data[popupID].autoClosed=true; }, parseInt(popupData.close[0][currentDevice].autoCloseDuration) * 1000); } selectedPopupStep.dataset.open=true; brave_popup_data[popupID].opened=new Date().getTime(); if((popupData.settings&&!popupData.settings.goalAction)||(popupData.settings&&popupData.settings.goalAction&&popupData.settings.goalAction.type&&popupData.settings.goalAction.type==='step'&&popupData.settings.goalAction.step!==undefined)){ var goalStep=popupData.settings.goalAction&&popupData.settings.goalAction.step ? popupData.settings.goalAction.step.toString().split(',') :['0']; if(goalStep.includes(step.toString())&&step!==0){ brave_complete_goal(popupID, 'view'); }} var allCodeElmGoals=document.querySelectorAll('.brave_element__code--goaled form'); if(allCodeElmGoals.length > 0){ for (var i=0; i < allCodeElmGoals.length; ++i){ allCodeElmGoals[i].addEventListener('submit', function (){ brave_complete_goal(popupID, 'form'); }) }} if(brave_popup_data[popupID].settings&&brave_popup_data[popupID].settings.frequency&&brave_popup_data[popupID].settings.frequency.rememberLastStep){ localStorage.setItem('brave_popup_'+popupID+'_last_viewed_step', step); }} function brave_open_animation(popupID, step, currentDevice){ var totalDuration=brave_popup_data[popupID].animationData[step][currentDevice].totalDuration; var openAnimData=brave_popup_data[popupID].animationData[step][currentDevice].elements ? brave_popup_data[popupID].animationData[step][currentDevice].elements:[]; var hasAnimation=brave_popup_data[popupID].hasAnimation; var selectedStep=document.querySelector('#brave_popup_'+popupID+'__step__'+step); if(window.location.href.includes('braveshot')===true&&window.location.href.includes('brave_id')===true){ return selectedStep.classList.add('brave_popup__step_wrap--show'); } var brave_animateElement=function(elementID, selectedStep, elementDom, step, animType){ selectedStep.classList.add('brave_popup__step_wrap--show'); if(animType==='text'){ var selected_text_element=document.querySelector('#brave_element-'+elementID+' .brave_element__text_inner'); var selected_text_element_HTML=selected_text_element.innerHTML; var selected_text_element_content=selected_text_element.textContent; var newHTLArray=selected_text_element_content.toString().split(''); var selected_text_element_clone=selected_text_element; selected_text_element_clone.innerHTML=''; for (var i=0;i<=(newHTLArray.length - 1);i++){ (function(ind){ setTimeout(function(){ selected_text_element_clone.innerHTML=selected_text_element_clone.innerHTML+newHTLArray[ind]; }, 1000 + (50 * ind)); })(i); } setTimeout(function(){ selected_text_element_clone.innerHTML=selected_text_element_HTML; }, 1000 + (50 * (newHTLArray.length -1))); }else{ if(!elementDom.classList.contains('brave_element-'+elementID+'_'+step+'_openAnim')){ elementDom.classList.add('brave_element-'+elementID+'_'+step+'_openAnim'); }} } if(hasAnimation&&openAnimData.length > 0){ selectedStep.classList.add('brave_popup__step_wrap--show'); openAnimData.forEach(function(element){ if(element.animation&&element.animation.load&&element.animation.load.preset){ var animType=element.animation.load.preset; var animDuration=element.animation.load.duration; var animDelay=element.animation.load.delay||0; var elementID=element.id==='popup' ? popupID:element.id; var elementDom=element.id==='popup' ? selectedStep.querySelector('.brave_popup__step__'+currentDevice+' .brave_popupSections__wrap'):selectedStep.querySelector('.brave_popup__step__'+currentDevice+' #brave_element-'+element.id); elementDom.style.opacity=0; selectedStep.classList.remove('brave_popup__step_wrap--show'); if(animDelay){ brave_animateElement(elementID, selectedStep, elementDom, step, animType); }else{ brave_animateElement(elementID, selectedStep, elementDom, step, animType); } if(element.id==='popup'){ animDelay=0; } setTimeout(function(){ elementDom.style.opacity=''; }, animDelay+ animDuration - 100); setTimeout(function(){ elementDom.classList.remove('brave_element-'+elementID+'_'+step+'_openAnim'); }, animDelay+ animDuration + 500); }}) }else{ selectedStep.classList.add('brave_popup__step_wrap--show'); }} function brave_close_animation(popupID, step, currentDevice){ var selectedStep=document.getElementById('brave_popup_'+popupID+'__step__'+step); var selectedStepDevice=selectedStep.querySelector('.brave_popup__step__'+currentDevice); var exitAnimation=selectedStepDevice.dataset.exitanimtype||''; var exitAnimationDuration=selectedStepDevice.dataset.exitanimlength ? parseFloat(selectedStepDevice.dataset.exitanimlength, 10):0.5; var hasAnimation=brave_popup_data[popupID].hasAnimation ? brave_popup_data[popupID].hasAnimation:false; var advancedAnimation=brave_popup_data[popupID].advancedAnimation ? brave_popup_data[popupID].advancedAnimation:false; var animationData=brave_popup_data[popupID].animationData ? brave_popup_data[popupID].animationData:{}; var hasCustomExitAnimation=animationData[step][currentDevice].totalDuration['exit']; if(selectedStep){ if(exitAnimation){ selectedStepDevice.querySelector('.brave_popupSections__wrap').classList.add('brave_element-'+popupID+'_'+step+'_exitAnim'); setTimeout(function(){ selectedStep.classList.remove('brave_popup__step_wrap--show');}, (exitAnimationDuration * 1000)); setTimeout(function(){ selectedStepDevice.querySelector('.brave_popupSections__wrap').classList.remove('brave_element-'+popupID+'_'+step+'_exitAnim'); }, (exitAnimationDuration * 1000)+500); if(selectedStep.querySelector('.brave_popup__step__'+currentDevice+' .brave_popup__step__overlay')){ setTimeout(function(){ selectedStepDevice.querySelector('.brave_popup__step__overlay').classList.add('brave_popup__step__overlay--hide'); }, (exitAnimationDuration > 0.3 ? ((exitAnimationDuration * 1000) - 200):200)); setTimeout(function(){ selectedStepDevice.querySelector('.brave_popup__step__overlay').classList.remove('brave_popup__step__overlay--hide'); }, (exitAnimationDuration * 1000)+500); }}else if(advancedAnimation&&hasCustomExitAnimation){ if(advancedAnimation&&hasAnimation&&animationData){ brave_animate_popup(animationData, popupID, step, 'exit'); }}else{ selectedStep.classList.add('brave_popup__step_wrap--hide'); setTimeout(function(){ selectedStep.classList.remove('brave_popup__step_wrap--show');}, 500); setTimeout(function(){ selectedStep.classList.remove('brave_popup__step_wrap--hide');}, 800); }} } function brave_close_popup(popupID, step=0, gotoStep=false, updateStat=true){ var selectedStep=document.getElementById('brave_popup_'+popupID+'__step__'+step); var selectedPopupStep=selectedStep.querySelector('.brave_popup__step__'+brave_currentDevice); var noMobileContent=selectedPopupStep.dataset.nomobilecontent==='true' ? true:false; var currentDevice=noMobileContent ? 'desktop':brave_currentDevice; var hasLockScroll=selectedStep.querySelector('.brave_popup__step__'+currentDevice)&&selectedStep.querySelector('.brave_popup__step__'+currentDevice).dataset.scrollock ? true:false; var exitAnimation=selectedStep.querySelector('.brave_popup__step__'+currentDevice).dataset.exitanimtype||''; var exitAnimationDuration=selectedStep.dataset.exitanimlength ? parseFloat(selectedStep.dataset.exitanimlength, 10):0.5; if(hasLockScroll){ document.body.classList.remove('brave_scroll_lock') } if(selectedStep){ if(updateStat){ var currentPopupCloseStat=localStorage.getItem('brave_popup_'+popupID+'_closed') ? JSON.parse(localStorage.getItem('brave_popup_'+popupID+'_closed')):{}; var newCloseStat={closed: currentPopupCloseStat.closed ? currentPopupCloseStat.closed + 1:1, closeTime: new Date().getTime()} localStorage.setItem('brave_popup_'+popupID+'_closed', JSON.stringify(newCloseStat)); } var selectedPopupStep=selectedStep.querySelector('.brave_popup__step__'+currentDevice); selectedPopupStep.dataset.open='false'; if(brave_popup_videos&&Object.keys(brave_popup_videos).length > 0){ Object.keys(brave_popup_videos).forEach(function(popupID){ Object.keys(brave_popup_videos[popupID]).forEach(function(playerID){ if(brave_popup_videos[popupID][playerID]){ if(playerID.includes('youtube')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].stopVideo){ brave_popup_videos[popupID][playerID].stopVideo(); } if(playerID.includes('vimeo')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].pause){ brave_popup_videos[popupID][playerID].pause(); } if(playerID.includes('custom')&&brave_popup_videos[popupID][playerID]&&brave_popup_videos[popupID][playerID].pause){ brave_popup_videos[popupID][playerID].pause(); }} }); }); } brave_popup_data[popupID].userClosed=true; var braveCloseEvent=new CustomEvent('brave_popup_close', { detail: {popupId: parseInt(popupID, 10), step: step}}); document.dispatchEvent(braveCloseEvent); brave_close_animation(popupID, step, currentDevice); setTimeout(function(){ if(gotoStep!==false&&gotoStep >=0){ var targetStep=document.getElementById('brave_popup_'+popupID+'__step__'+gotoStep); targetStep.querySelector('.brave_popup__step__desktop').dataset.open=false; targetStep.querySelector('.brave_popup__step__mobile').dataset.open=false; brave_open_popup(popupID, gotoStep); } var stickyBar=selectedPopupStep.dataset.layout==='float'&&selectedPopupStep.dataset.position==='top_center' ? true:false; if(stickyBar){ var newHeight=document.querySelector('body.admin-bar') ? '32px':'0px'; document.documentElement.style.setProperty('margin-top', newHeight, 'important'); } document.getElementById('brave_popup_'+popupID).style.zIndex=9999999999; },(exitAnimation&&exitAnimationDuration ? (exitAnimationDuration * 1000):10)); }} function brave_send_ga_event(eventCategory, eventAction, eventLabel){ if("ga" in window&&eventCategory&&eventAction){ var tracker=ga.getAll()[0]; if(tracker){ tracker.send('event', eventCategory, eventAction, eventLabel); }} } function brave_send_fbq_event(eventType, fbq_content_name, fbq_content_category, fbq_value, fbq_currency){ if(window.fbq&&eventType){ var fbqData={}; if(fbq_content_name){ fbqData.content_name=fbq_content_name } if(fbq_content_category){ fbqData.content_category=fbq_content_category } if(fbq_value){ fbqData.value=parseFloat(fbq_value, 10) } if(fbq_currency){ fbqData.currency=fbq_currency } if(eventType==='Contact'){ fbq('track', 'Contact'); } if(eventType==='Lead'){ fbq('track', 'Lead', fbqData); console.log(fbqData); }} } function brave_load_video(videoType, videoURL, videoSettings, popupID){ var elmID=videoSettings.id.replace(/[^a-zA-Z0-9]+/g, ''); if(!brave_popup_videos[popupID]){ brave_popup_videos[popupID]={}} if(videoType==='custom'){ brave_popup_videos[popupID]['video_'+videoType+elmID]=document.getElementById('brave_video_custom_'+videoSettings.id); if(videoSettings.autoplay){ brave_play_video(popupID, videoSettings.id, 'custom', videoSettings.tracking); }} if(videoType==='youtube'){ var youtube_regex=new RegExp(/^.*(youtu\.be\/|vi?\/|u\/\w\/|embed\/|\?vi?=|\\&vi?=)([^#\\&\\?]*).*/); var parsed=videoURL.match(youtube_regex); var videoID=parsed&&parsed[2] ? parsed[2]:null; if(!brave_popup_videos[popupID]['video_'+videoType+elmID]){ setTimeout(function(){ brave_popup_videos[popupID]['video_'+videoType+elmID]=new YT.Player('brave_video_iframe'+elmID, { videoId: videoID, playerVars: { 'autoplay': false, 'controls': videoSettings.controls ? 1:0, mute: videoSettings.mute ? videoSettings.mute:false }, events: { 'onReady': function(){ return videoSettings.autoplay&&brave_play_video(popupID, videoSettings.id, 'youtube', videoSettings.tracking) }} }); }, 1000); }else{ if(videoSettings.autoplay){ brave_play_video(popupID, videoSettings.id, 'youtube', videoSettings.tracking); }} } if(videoType==='vimeo'){ var vimeo_regex=new RegExp(/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/); var parsed=videoURL.match(vimeo_regex); var videoID=parsed&&parsed[3] ? parsed[3]:null; if(!brave_popup_videos[popupID]['video_'+videoType+elmID]){ setTimeout(function(){ brave_popup_videos[popupID]['video_'+videoType+elmID]=new Vimeo.Player('brave_video_iframe'+elmID, { id: videoID, background: videoSettings.controls===false ? true:false }); setTimeout(function(){ if(videoSettings.mute){ brave_popup_videos[popupID]['video_'+videoType+elmID].setVolume(0); } if(videoSettings.autoplay){ brave_play_video(popupID, videoSettings.id, 'vimeo', videoSettings.tracking); }}, 2000); }, 1000); }else{ if(videoSettings.autoplay){ brave_play_video(popupID, videoSettings.id, 'vimeo', videoSettings.tracking); }} }} function brave_play_video(popupID, elmentID, videoType, track=null, inline=false){ console.log('brave_play_video', elmentID, videoType, track); var elmID=elmentID.replace(/[^a-zA-Z0-9]+/g, ''); if(!brave_popup_videos[popupID]['video_'+videoType+elmID]){ return; } if(document.getElementById("brave_element-"+elmentID)){ document.getElementById("brave_element-"+elmentID).classList.add('brave_element--video-show'); } if(videoType==='custom'){ brave_popup_videos[popupID]['video_'+videoType+elmID].muted=true; brave_popup_videos[popupID]['video_'+videoType+elmID].play(); var videoMuted=brave_popup_videos[popupID]['video_'+videoType+elmID].classList.contains('brave_video_muted'); if(!videoMuted){ setTimeout(function(){ brave_popup_videos[popupID]['video_'+videoType+elmID].muted=false; brave_popup_videos[popupID]['video_'+videoType+elmID].volume=1; brave_popup_videos[popupID]['video_'+videoType+elmID].play(); }, 100); }} if(videoType==='youtube'||videoType==='vimeo'){ if(videoType==='youtube'&&brave_popup_videos[popupID]['video_'+videoType+elmID]){ brave_popup_videos[popupID]['video_'+videoType+elmID].playVideo(); } if(videoType==='vimeo'&&brave_popup_videos[popupID]['video_'+videoType+elmID]){ brave_popup_videos[popupID]['video_'+videoType+elmID].play().then(); }} if(inline&&!track){ var playButton=document.getElementById('brave_play_video-'+elmentID) if(playButton){ var eventCategory=playButton.dataset.trackcategory||''; var eventAction=playButton.dataset.trackcategory||''; var eventLabel=playButton.dataset.tracklabel||''; track={eventCategory: eventCategory, eventAction:eventAction, eventLabel: eventLabel}} } if(track&&track.eventCategory&&track.eventAction){ brave_send_ga_event(track.eventCategory, track.eventAction, track.eventLabel||''); }} function brave_complete_goal(popupID, goalType='view', auto=false){ if(window.location.href.includes('brave_popup')===false&&!brave_popup_data[popupID].goaled){ var goalDate=new Date(); var goalYear=goalDate.getFullYear(); var goalMonth=brave_number_padding(goalDate.getMonth() + 1); var goalDay=brave_number_padding(goalDate.getDate()); var goalData={ popupID: popupID, pageURL: window.location, security: bravepop_global.security, goalType: goalType, views: localStorage.getItem('brave_popup_'+popupID+'_viewed')||1, goalTime: new Date().getTime(), goalDate: goalYear+'-'+goalMonth+'-'+goalDay, goalUTCTime: new Date().toUTCString(), device: brave_currentDevice, auto: auto, action: 'bravepop_ajax_popup_complete_goal' }; brave_ajax_send(bravepop_global.ajaxURL, goalData, function(status, sentData){ brave_popup_data[popupID].goaled=true; console.log('Goal Complete!!!!!!', sentData); }); localStorage.setItem('brave_popup_'+popupID+'_goal_complete', true); var braveGoalCompletEvent=new CustomEvent('brave_goal_complete', { detail: {popupId: parseInt(popupID, 10), goalType: goalType}}); document.dispatchEvent(braveGoalCompletEvent); if(brave_popup_data[popupID].settings&&brave_popup_data[popupID].settings.notification&&brave_popup_data[popupID].settings.notification.analyticsGoal){ setTimeout(function(){ brave_send_ga_event('popup', 'goal', brave_popup_data[popupID].title+' ('+popupID+')'||popupID); }, 2000); }} } function brave_load_fonts(fontArray){ var googleFonts=[]; var customFonts=[]; fontArray.forEach(function(font){ const inCustomFontList=bravepop_global&&bravepop_global.customFonts.find((fnt)=> fnt.name===font); if(inCustomFontList){ customFonts.push(font); }else{ googleFonts.push(font); }}) if(googleFonts.length > 0){ WebFontConfig={ google: { families: googleFonts }}; (function(){ if(!document.getElementById('bravePopu_webfontLoader')){ var wf=document.createElement('script'); wf.setAttribute("id", "bravePopu_webfontLoader"); wf.src=('https:'==document.location.protocol ? 'https':'http') +'://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; wf.type='text/javascript'; wf.async='true'; var s=document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); }})(); } if(bravepop_global.customFonts.length > 0&&customFonts.length > 0){ customFonts.map((font)=> { var foundFont=bravepop_global.customFonts.find((fnt)=> font===fnt.name); if(foundFont&&foundFont.url&&foundFont.url!=='UAF'&&foundFont.name&&foundFont.name.includes('brave_custom-')){ var custom_font=new FontFace(foundFont.name, 'url('+foundFont.url+')'); custom_font.load().then(function(loaded_face){ document.fonts.add(loaded_face) }).catch(function(error){ console.error(error); }); }}) }}; function brave_is_in_view(elem){ var rect=elem.getBoundingClientRect(); return (rect.bottom >=0&&rect.right >=0&&rect.top <=(window.innerHeight||document.documentElement.clientHeight)&&rect.left <=(window.innerWidth||document.documentElement.clientWidth)); }; function brave_save_visitor_pageviews(){ if(brave_popup_pageInfo.type==='front'||brave_popup_pageInfo.pageID){ var brave_page_visited=localStorage.getItem('brave_page_visited'); var currentPageType='page'; if(brave_popup_pageInfo.type==='front'){ currentPageType='front'; } var brave_page_visited_new={type: brave_popup_pageInfo.type==='front'? 'front' :(brave_popup_pageInfo.singleType||brave_popup_pageInfo.type), PID: brave_popup_pageInfo.pageID, time: new Date().getTime() }; if(brave_page_visited){ var brave_page_visited_newData=JSON.parse(brave_page_visited); brave_page_visited_newData.push(brave_page_visited_new); localStorage.setItem('brave_page_visited', JSON.stringify(brave_page_visited_newData)); }else{ localStorage.setItem('brave_page_visited', JSON.stringify([brave_page_visited_new])); }} } function brave_add_to_cart(elementID){ brave_tooltip_open(elementID, 'Adding to Cart...', 'top'); setTimeout(function(){ brave_tooltip_close(); }, 2000); } function brave_close_on_add_to_cart(popupID){ setTimeout(function(){ popupID&&brave_close_popup(popupID); }, 2000); } function brave_apply_woo_coupon(coupon, popupID, elementID, onCouponApply){ if(elementID){ document.querySelector('#brave_button_loading_'+elementID).classList.add('brave_button_loading--show') } brave_ajax_send(location.href+'/?wc-ajax=apply_coupon', { coupon_code: coupon, security: bravepop_global.couponSecurity}, function(status, response){ if(onCouponApply==='reload'){ location.reload(); } if(onCouponApply==='close'&&popupID){ brave_close_popup(popupID); } if(onCouponApply==='cart'&&bravepop_global.cartURL){ location.href=bravepop_global.cartURL} if(elementID){ document.querySelector('#brave_button_loading_'+elementID).classList.remove('brave_button_loading--show') }}) } function brave_copy_to_clipboard(elementID, tooltipData, position){ var copyText=document.getElementById('bravepopup_text_copy-'+elementID); copyText.select(); copyText.setSelectionRange(0, 99999); document.execCommand ("copy"); brave_tooltip_open(elementID, '✓ '+tooltipData, position); setTimeout(function(){ brave_tooltip_close(); }, 2000); } function brave_tooltip_open(elementID, tooltipData, position){ var tooltipDiv=document.getElementById('bravepop_element_tooltip'); var tooltipElm=document.getElementById('brave_element-'+elementID); var elmPos=tooltipElm.getBoundingClientRect(); if(tooltipDiv){ tooltipDiv.innerHTML=tooltipData; tooltipDiv.className='bravepop_element_tooltip-show bravepop_element_tooltip-'+position; var tooltipWidth=tooltipDiv.offsetWidth; tooltipDiv.style.top=(elmPos.top + (elmPos.height/2) - 10)+'px'; tooltipDiv.style.left=(elmPos.left - (tooltipWidth) - 8)+'px'; if(position==='right'){ tooltipDiv.style.left=(elmPos.left + elmPos.width + 8)+'px'; } if(position==='top'){ tooltipDiv.style.top=(elmPos.top - (tooltipDiv.offsetHeight) - 4)+'px'; tooltipDiv.style.left=(elmPos.left - (tooltipWidth/2) + (elmPos.width/2) - 4)+'px'; } if(position==='bottom'){ tooltipDiv.style.top=(elmPos.top + elmPos.height + 8)+'px'; tooltipDiv.style.left=(elmPos.left - (tooltipWidth/2) + (elmPos.width/2) + 8)+'px'; }} } function brave_tooltip_close(){ var tooltipDiv=document.getElementById('bravepop_element_tooltip'); if(tooltipDiv){ tooltipDiv.innerHTML=''; tooltipDiv.className=''; tooltipDiv.style.left=''; tooltipDiv.style.top=''; }} function brave_lightbox_open(elementID, contentType, content){ var bravelightbox=document.getElementById('bravepop_element_lightbox'); var bravelightboxContent=document.getElementById('bravepop_element_lightbox_content'); if(contentType==='image'&&bravelightboxContent){ bravelightboxContent.innerHTML='';bravelightbox.classList.add('bravepop_element_lightbox--open');}} function brave_lightbox_close(){ var bravelightbox=document.getElementById('bravepop_element_lightbox'); var bravelightboxContent=document.getElementById('bravepop_element_lightbox_content'); if(bravelightbox&&bravelightboxContent){ bravelightbox.classList.remove('bravepop_element_lightbox--open'); bravelightboxContent.innerHTML=''; }} function brave_responsiveness(event, popupID, popupData){ if(window.location.href.includes('braveshot')===true&&window.location.href.includes('brave_id')===true){ return; } var stepsWithNoMobile=document.querySelectorAll('.brave_popup__step--mobile-noContent'); if(brave_isTab||(brave_currentDevice==='mobile'&&document.body.clientWidth < 350)){ stepsWithNoMobile=document.querySelectorAll('.brave_popup__step_wrap'); } for (var i=0; i < stepsWithNoMobile.length; i++){ var desktopStep=stepsWithNoMobile[i].querySelector('.brave_popup__step__desktop'); var mobileStep=stepsWithNoMobile[i].querySelector('.brave_popup__step__mobile'); var popupLayout=desktopStep.dataset.layout; var popupPosition=popupLayout==='landing' ? 'top_center' :desktopStep.dataset.position; var popupWidth=parseInt(desktopStep.dataset.width, 10); var popupHeight=parseInt(desktopStep.dataset.height, 10); var windowWidth=document.body.clientWidth||window.innerWidth; //window.innerWidth var windowHeight=window.innerHeight; if(brave_currentDevice==='mobile'||brave_isTab){ if(((windowWidth < popupWidth)&&popupLayout=='boxed')){ var scale=desktopStep ? windowWidth/ desktopStep.dataset.width:0; var tansformOrigin=popupPosition.includes('top') ? 'top':'center'; desktopStep.querySelector('.brave_popup__step__inner').style.transform='scale('+((scale*95)/100)+')'; desktopStep.querySelector('.brave_popup__step__inner').style.transformOrigin=((scale*95)/2)+'px '+tansformOrigin; if(windowWidth < popupWidth&&windowHeight < popupHeight){ desktopStep.querySelector('.brave_popup__step__inner').style.transformOrigin='left top'; desktopStep.querySelector('.brave_popup__step__inner').style.marginTop=0; desktopStep.querySelector('.brave_popup__step__inner').style.top=0; } if(popupPosition.includes('center')){ var widthRemainder=windowWidth - (popupWidth * (scale*95)/100) ; var heightRemainder=windowHeight - (popupHeight * (scale*95)/100) ; desktopStep.querySelector('.brave_popup__step__inner').style.left=widthRemainder > 0 ? (widthRemainder/2)+'px':'0'; }} if(brave_currentDevice==='mobile'&&windowWidth < 321&&((290 < popupWidth)||windowHeight < popupHeight)&&(popupLayout=='boxed')&&(popupPosition==='bottom_right')){ desktopStep.querySelector('.brave_popup__step__inner').style.transform='scale(0.8)'; desktopStep.querySelector('.brave_popup__step__inner').style.transformOrigin='100% bottom'; } if(brave_currentDevice==='mobile'&&(popupLayout=='float')&&windowWidth < 750){ desktopStep.querySelector('.brave_popup__step__elements').style.transform='scale('+(((windowWidth / 1024)*100)/100)+')'; desktopStep.querySelector('.brave_popup__step__elements').style.transformOrigin=(((windowWidth / 1024)*100)/2)+'px center'; } if(popupLayout=='float'&&((brave_isTab&&windowWidth < 1024&&windowWidth > 760)||(brave_currentDevice==='mobile'&&windowWidth < 360&&mobileStep))){ if(brave_isTab&&windowWidth < 1024&&windowWidth > 760){ popupWidth=1024; } var scale=desktopStep ? windowWidth/ popupWidth:0; if(!brave_isTab&&windowWidth < 360&&mobileStep){ popupWidth=360; scale=windowWidth / popupWidth; desktopStep=mobileStep; } desktopStep.querySelector('.brave_popup__step__elements').style.transform='scale('+((scale*100)/100)+')'; desktopStep.querySelector('.brave_popup__step__elements').style.transformOrigin=((scale*100)/2)+'px center'; }} } var allPopups=document.querySelectorAll('.brave_popup__step'); for (var i=0; i < allPopups.length; i++){ var aPopupHeight=allPopups[i].dataset.height ? parseInt(allPopups[i].dataset.height, 10):400; var aPopupPosition=allPopups[i].dataset.position; var aPopupLayout=allPopups[i].dataset.layout; if((window.innerHeight < aPopupHeight)&&aPopupPosition.includes('center')&&aPopupLayout==='boxed'&&!allPopups[i].classList.contains('brave_popup_show_scrollbar')){ allPopups[i].classList.add('brave_popup_show_scrollbar', 'brave_popup_exceeds_windowHeight'); }} var allEmbeddedPopups=document.querySelectorAll('.bravepopup_embedded'); for (var x=0; x < allEmbeddedPopups.length; x++){ var popupID=allEmbeddedPopups[x].dataset.popupid; var parentElm=allEmbeddedPopups[x].parentNode; var popup_parent_width=parentElm.clientWidth; var allEmbeddedSteps=allEmbeddedPopups[x].querySelectorAll('.brave_popup__step_wrap'); for (var i=0; i < allEmbeddedSteps.length; i++){ var currentDevice=allEmbeddedSteps[i].classList.contains('brave_popup__step--mobile-noContent') ? 'desktop':brave_currentDevice; var selectedStep=allEmbeddedSteps[i].querySelector('.brave_popup__step__'+currentDevice+'.brave_popup__step--embedded'); if(selectedStep){ var stepWidth=parseInt(selectedStep.dataset.width, 10); var stepHeight=parseInt(selectedStep.dataset.height, 10); if(popup_parent_width&&(popup_parent_width < stepWidth)){ var scale=Math.min(popup_parent_width / stepWidth); selectedStep.querySelector('.brave_popup__step__inner').style.transform='scale('+((scale*98)/100)+')'; selectedStep.querySelector('.brave_popup__step__inner').style.transformOrigin='left top'; selectedStep.querySelector('.brave_popup__step__inner').parentNode.classList.add('brave_popup__step__inner--scaled'); selectedStep.style.height=((stepHeight * (scale*98)/100))+'px'; }} }} } function brave_click_open_popups(){ var braveFoundOpenElems=document.querySelectorAll('a[href*="#brave_open_popup_"]'); if(braveFoundOpenElems.length > 0){ for (var i=0; i < braveFoundOpenElems.length; i++){ var rawOpenElmHref=braveFoundOpenElems[i].href; var braveOpenPopupID=rawOpenElmHref&&rawOpenElmHref.split('#brave_open_popup_')[1] ? parseInt(rawOpenElmHref.split('#brave_open_popup_')[1], 10):false; if(braveOpenPopupID&&brave_popup_data[braveOpenPopupID]&&document.getElementById('brave_popup_'+braveOpenPopupID)){ braveFoundOpenElems[i].addEventListener('click', function(event){ event.preventDefault(); if(document.getElementById('brave_popup_'+braveOpenPopupID)) document.getElementById('brave_popup_'+braveOpenPopupID).style.zIndex=9999999999; }); braveFoundOpenElems[i].setAttribute('onclick','brave_load_popup('+braveOpenPopupID+', brave_popup_data['+parseInt(braveOpenPopupID, 10)+'])'); }} }} function brave_replace_dynamic_text_cookie(elmsWithCookie){ if(elmsWithCookie.length > 0){ for (var i=0; i < elmsWithCookie.length; i++){ var finalContent=elmsWithCookie[i].innerHTML; var allShortCodes=finalContent.match(/({{cookie-)+([a-zA-Z0-9_]).+?}}/gi); if(allShortCodes&&allShortCodes.length > 0){ allShortCodes.forEach(function(shortcode){ var theShortcode=shortcode.replace('{{cookie-', '').replace('}}', ''); var cookieVal=localStorage.getItem(theShortcode); finalContent=finalContent.replace(shortcode, cookieVal ? cookieVal:''); }) elmsWithCookie[i].innerHTML=finalContent; }} }} function brave_lazyLoad_content_images(emebeddedCampain){ if(emebeddedCampain&&!emebeddedCampain.classList.contains('bravepopup_embedded--lazyload_done')&&brave_is_in_view(emebeddedCampain)){ var allImages=emebeddedCampain.querySelectorAll('img'); for (var i=0; i < allImages.length; i++){ if(allImages[i].dataset.lazy){ allImages[i].src=allImages[i].dataset.lazy; }} emebeddedCampain.classList.add('bravepopup_embedded--lazyload_done'); }} function brave_after_page_load(){ var allBraveFonts=[] if(!brave_popup_data){ return; } Object.keys(brave_popup_data).forEach(function(popID){ brave_popup_data[popID].fonts.forEach(function(fontName){ if(!allBraveFonts.includes(fontName)){ allBraveFonts.push(fontName); }}) }); brave_save_visitor_pageviews(); brave_load_fonts(allBraveFonts); brave_click_open_popups(); var emebddedContent=document.querySelectorAll('.bravepopup_embedded'); if(emebddedContent&&emebddedContent.length > 0){ for (var i=0; i < emebddedContent.length; i++){ var emebeddedCampain=emebddedContent[i]; if(emebeddedCampain){ brave_lazyLoad_content_images(emebeddedCampain); document.addEventListener("scroll", function(){ brave_lazyLoad_content_images(emebeddedCampain) }, {passive: true}); }} }} window.addEventListener('DOMContentLoaded', brave_after_page_load); window.addEventListener('resize', brave_responsiveness); (function(de,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define("uikit",fe):(de=typeof globalThis<"u"?globalThis:de||self,de.bdtUIkit=fe())})(this,function(){"use strict";const{hasOwnProperty:de,toString:fe}=Object.prototype;function Nt(t,e){return de.call(t,e)}const Un=/\B([A-Z])/g,Mt=nt(t=>t.replace(Un,"-$1").toLowerCase()),tr=/-(\w)/g,Yt=nt(t=>t.replace(tr,hs)),wt=nt(t=>t.length?hs(null,t.charAt(0))+t.slice(1):"");function hs(t,e){return e?e.toUpperCase():""}function lt(t,e){return t==null||t.startsWith==null?void 0:t.startsWith(e)}function Gt(t,e){return t==null||t.endsWith==null?void 0:t.endsWith(e)}function g(t,e){return t==null||t.includes==null?void 0:t.includes(e)}function bt(t,e){return t==null||t.findIndex==null?void 0:t.findIndex(e)}const{isArray:st,from:bi}=Array,{assign:xt}=Object;function dt(t){return typeof t=="function"}function At(t){return t!==null&&typeof t=="object"}function Pt(t){return fe.call(t)==="[object Object]"}function Dt(t){return At(t)&&t===t.window}function pe(t){return yi(t)===9}function xi(t){return yi(t)>=1}function Xt(t){return yi(t)===1}function yi(t){return!Dt(t)&&At(t)&&t.nodeType}function Le(t){return typeof t=="boolean"}function O(t){return typeof t=="string"}function Jt(t){return typeof t=="number"}function Et(t){return Jt(t)||O(t)&&!isNaN(t-parseFloat(t))}function ge(t){return!(st(t)?t.length:At(t)?Object.keys(t).length:!1)}function Y(t){return t===void 0}function $i(t){return Le(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function _t(t){const e=Number(t);return isNaN(e)?!1:e}function y(t){return parseFloat(t)||0}function V(t){return b(t)[0]}function b(t){return t&&(xi(t)?[t]:Array.from(t).filter(xi))||[]}function Kt(t){var e;if(Dt(t))return t;t=V(t);const i=pe(t)?t:(e=t)==null?void 0:e.ownerDocument;return i?.defaultView||window}function me(t,e){return t===e||At(t)&&At(e)&&Object.keys(t).length===Object.keys(e).length&&yt(t,(i,s)=>i===e[s])}function ki(t,e,i){return t.replace(new RegExp(e+"|"+i,"g"),s=>s===e?i:e)}function ve(t){return t[t.length-1]}function yt(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function We(t,e){return t.slice().sort((i,s)=>{let{[e]:n=0}=i,{[e]:r=0}=s;return n>r?1:r>n?-1:0})}function cs(t,e){const i=new Set;return t.filter(s=>{let{[e]:n}=s;return i.has(n)?!1:i.add(n)})}function U(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),Math.min(Math.max(_t(t)||0,e),i)}function E(){}function Si(){for(var t=arguments.length,e=new Array(t),i=0;i{let[n,r]=s;return Math.min(...e.map(o=>{let{[n]:a}=o;return a}))-Math.max(...e.map(o=>{let{[r]:a}=o;return a}))>0})}function je(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Ti(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function us(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Ti(t,i,e[i]):t;return t}function er(t,e){t=us(t,e);for(const i in t)t=t[i]e[i]||(e[i]=t(i))}class Re{constructor(){this.promise=new Promise((e,i)=>{this.reject=i,this.resolve=e})}}function k(t,e,i){if(At(e)){for(const n in e)k(t,n,e[n]);return}if(Y(i)){var s;return(s=V(t))==null?void 0:s.getAttribute(e)}else for(const n of b(t))dt(i)&&(i=i.call(n,k(n,e))),i===null?be(n,e):n.setAttribute(e,i)}function Bt(t,e){return b(t).some(i=>i.hasAttribute(e))}function be(t,e){const i=b(t);for(const s of e.split(" "))for(const n of i)n.removeAttribute(s)}function rt(t,e){for(const i of[e,"data-"+e])if(Bt(t,i))return k(t,i)}const ir={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Ci(t){return b(t).some(e=>ir[e.tagName.toLowerCase()])}function q(t){return b(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const xe="input,select,textarea,button";function Ii(t){return b(t).some(e=>H(e,xe))}const qe=xe+",a[href],[tabindex]";function Ve(t){return H(t,qe)}function A(t){var e;return(e=V(t))==null?void 0:e.parentElement}function ye(t,e){return b(t).filter(i=>H(i,e))}function H(t,e){return b(t).some(i=>i.matches(e))}function ot(t,e){return lt(e,">")&&(e=e.slice(1)),Xt(t)?t.closest(e):b(t).map(i=>ot(i,e)).filter(Boolean)}function F(t,e){return O(e)?H(t,e)||!!ot(t,e):t===e||V(e).contains(V(t))}function $e(t,e){const i=[];for(;t=A(t);)(!e||H(t,e))&&i.push(t);return i}function D(t,e){t=V(t);const i=t?b(t.children):[];return e?ye(i,e):i}function Qt(t,e){return e?b(t).indexOf(V(e)):D(A(t)).indexOf(t)}function $t(t,e){return Ai(t,fs(t,e))}function ke(t,e){return Se(t,fs(t,e))}function Ai(t,e){return V(ps(t,e,"querySelector"))}function Se(t,e){return b(ps(t,e,"querySelectorAll"))}const sr=/(^|[^\\],)\s*[!>+~-]/,ds=nt(t=>t.match(sr));function fs(t,e){return e===void 0&&(e=document),O(t)&&ds(t)||pe(e)?e:e.ownerDocument}const nr=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,rr=nt(t=>t.replace(nr,"$1 *"));function ps(t,e,i){if(e===void 0&&(e=document),!t||!O(t))return t;if(t=rr(t),ds(t)){const s=ar(t);t="";for(let n of s){let r=e;if(n[0]==="!"){const o=n.substr(1).trim().split(" ");if(r=ot(A(e),o[0]),n=o.slice(1).join(" ").trim(),!n.length&&s.length===1)return r}if(n[0]==="-"){const o=n.substr(1).trim().split(" "),a=(r||e).previousElementSibling;r=H(a,n.substr(1))?a:null,n=o.slice(1).join(" ")}r&&(t+=(t?",":"")+lr(r)+" "+n)}e=document}try{return e[i](t)}catch{return null}}const or=/.*?[^\\](?:,|$)/g,ar=nt(t=>t.match(or).map(e=>e.replace(/,$/,"").trim()));function lr(t){const e=[];for(;t.parentNode;){const i=k(t,"id");if(i){e.unshift("#"+Pi(i));break}else{let{tagName:s}=t;s!=="HTML"&&(s+=":nth-child("+(Qt(t)+1)+")"),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Pi(t){return O(t)?CSS.escape(t):""}function T(){for(var t=arguments.length,e=new Array(t),i=0;i1&&(o=cr(o)),a!=null&&a.self&&(o=ur(o)),r&&(o=hr(r,o));for(const l of n)for(const h of s)h.addEventListener(l,o,a);return()=>Ut(s,n,o,a)}function Ut(){for(var t=arguments.length,e=new Array(t),i=0;i{const d=!l||l(u);d&&(h(),o(u,d))},a);return h}function p(t,e,i){return _i(t).every(s=>s.dispatchEvent(zt(e,!0,!0,i)))}function zt(t,e,i,s){return e===void 0&&(e=!0),i===void 0&&(i=!1),O(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ei(t){return t[0]=_i(t[0]),O(t[1])&&(t[1]=t[1].split(" ")),dt(t[2])&&t.splice(2,0,!1),t}function hr(t,e){return i=>{const s=t[0]===">"?Se(t,i.currentTarget).reverse().filter(n=>F(i.target,n))[0]:ot(i.target,t);s&&(i.current=s,e.call(this,i))}}function cr(t){return e=>st(e.detail)?t(e,...e.detail):t(e)}function ur(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function gs(t){return t&&"addEventListener"in t}function dr(t){return gs(t)?t:V(t)}function _i(t){return st(t)?t.map(dr).filter(Boolean):O(t)?Se(t):gs(t)?[t]:b(t)}function kt(t){return t.pointerType==="touch"||!!t.touches}function te(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}function ms(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:E,responseType:"",...e};return Promise.resolve().then(()=>i.beforeSend(i)).then(()=>fr(t,i))}function fr(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const r in e)if(r in n)try{n[r]=e[r]}catch{}n.open(e.method.toUpperCase(),t);for(const r in e.headers)n.setRequestHeader(r,e.headers[r]);T(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s(xt(Error(n.statusText),{xhr:n,status:n.status}))}),T(n,"error",()=>s(xt(Error("Network Error"),{xhr:n}))),T(n,"timeout",()=>s(xt(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}function vs(t,e,i){return new Promise((s,n)=>{const r=new Image;r.onerror=o=>{n(o)},r.onload=()=>{s(r)},i&&(r.sizes=i),e&&(r.srcset=e),r.src=t})}const pr={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function c(t,e,i,s){s===void 0&&(s="");const n=b(t);for(const r of n)if(O(e)){if(e=Oi(e),Y(i))return getComputedStyle(r).getPropertyValue(e);r.style.setProperty(e,Et(i)&&!pr[e]?i+"px":i||Jt(i)?i:"",s)}else if(st(e)){const o={};for(const a of e)o[a]=c(r,a);return o}else At(e)&&(s=i,yt(e,(o,a)=>c(r,a,o,s)));return n[0]}const gr=/^\s*(["'])?(.*?)\1\s*$/;function Ye(t,e){return e===void 0&&(e=document.documentElement),c(e,"--bdt-"+t).replace(gr,"$2")}const Oi=nt(t=>mr(t)),ws=["webkit","moz"];function mr(t){if(t[0]==="-")return t;t=Mt(t);const{style:e}=document.documentElement;if(t in e)return t;let i=ws.length,s;for(;i--;)if(s="-"+ws[i]+"-"+t,s in e)return s}function w(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s1?e-1:0),s=1;s(i||"").replace(new RegExp("\\b"+e+"\\b","g"),""))}function Mi(t){!(arguments.length<=1)&&arguments[1]&&_(t,arguments.length<=1?void 0:arguments[1]),!(arguments.length<=2)&&arguments[2]&&w(t,arguments.length<=2?void 0:arguments[2])}function S(t,e){return[e]=Di(e),!!e&&b(t).some(i=>i.classList.contains(e))}function R(t,e,i){const s=Di(e);Y(i)||(i=!!i);for(const n of b(t))for(const r of s)n.classList.toggle(r,i)}function bs(t,e,i){e=e.reduce((s,n)=>s.concat(Di(n)),[]);for(const s of b(t))s.classList[i](...e)}function Di(t){return String(t).split(/\s|,/).filter(Boolean)}function xs(t,e,i,s){return i===void 0&&(i=400),s===void 0&&(s="linear"),Promise.all(b(t).map(n=>new Promise((r,o)=>{for(const l in e){const h=c(n,l);h===""&&c(n,l,h)}const a=setTimeout(()=>p(n,"transitionend"),i);j(n,"transitionend transitioncanceled",l=>{let{type:h}=l;clearTimeout(a),_(n,"bdt-transition"),c(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),h==="transitioncanceled"?o():r(n)},{self:!0}),w(n,"bdt-transition"),c(n,{transitionProperty:Object.keys(e).map(Oi).join(","),transitionDuration:i+"ms",transitionTimingFunction:s,...e})})))}const I={start:xs,stop(t){return p(t,"transitionend"),Promise.resolve()},cancel(t){p(t,"transitioncanceled")},inProgress(t){return S(t,"bdt-transition")}},Te="bdt-animation-";function Bi(t,e,i,s,n){return i===void 0&&(i=200),Promise.all(b(t).map(r=>new Promise((o,a)=>{p(r,"animationcanceled");const l=setTimeout(()=>p(r,"animationend"),i);j(r,"animationend animationcanceled",h=>{let{type:u}=h;clearTimeout(l),u==="animationcanceled"?a():o(r),c(r,"animationDuration",""),Ni(r,Te+"\\S*")},{self:!0}),c(r,"animationDuration",i+"ms"),w(r,e,Te+(n?"leave":"enter")),lt(e,Te)&&(s&&w(r,"bdt-transform-origin-"+s),n&&w(r,Te+"reverse"))})))}const vr=new RegExp(Te+"(enter|leave)"),ft={in:Bi,out(t,e,i,s){return Bi(t,e,i,s,!0)},inProgress(t){return vr.test(k(t,"class"))},cancel(t){p(t,"animationcanceled")}},Ht={width:["left","right"],height:["top","bottom"]};function $(t){const e=Xt(t)?V(t).getBoundingClientRect():{height:L(t),width:Ie(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function C(t,e){const i=$(t);if(t){const{scrollY:n,scrollX:r}=Kt(t),o={height:n,width:r};for(const a in Ht)for(const l of Ht[a])i[l]+=o[a]}if(!e)return i;const s=c(t,"position");yt(c(t,["left","top"]),(n,r)=>c(t,r,e[r]-i[r]+y(s==="absolute"&&n==="auto"?Ge(t)[r]:n)))}function Ge(t){let{top:e,left:i}=C(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:r}=V(t);let o=r||n;for(;o&&(o===s||o===n)&&c(o,"position")==="static";)o=o.parentNode;if(Xt(o)){const a=C(o);e-=a.top+y(c(o,"borderTopWidth")),i-=a.left+y(c(o,"borderLeftWidth"))}return{top:e-y(c(t,"marginTop")),left:i-y(c(t,"marginLeft"))}}function Ce(t){const e=[0,0];t=V(t);do if(e[0]+=t.offsetTop,e[1]+=t.offsetLeft,c(t,"position")==="fixed"){const i=Kt(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}while(t=t.offsetParent);return e}const L=ys("height"),Ie=ys("width");function ys(t){const e=wt(t);return(i,s)=>{if(Y(s)){if(Dt(i))return i["inner"+e];if(pe(i)){const n=i.documentElement;return Math.max(n["offset"+e],n["scroll"+e])}return i=V(i),s=c(i,t),s=s==="auto"?i["offset"+e]:y(s)||0,s-ee(i,t)}else return c(i,t,!s&&s!==0?"":+s+ee(i,t)+"px")}}function ee(t,e,i){return i===void 0&&(i="border-box"),c(t,"boxSizing")===i?Ht[e].map(wt).reduce((s,n)=>s+y(c(t,"padding"+n))+y(c(t,"border"+n+"Width")),0):0}function Xe(t){for(const e in Ht)for(const i in Ht[e])if(Ht[e][i]===t)return Ht[e][1-i];return t}function Z(t,e,i,s){return e===void 0&&(e="width"),i===void 0&&(i=window),s===void 0&&(s=!1),O(t)?br(t).reduce((n,r)=>{const o=yr(r);return o&&(r=$r(o==="vh"?L(Kt(i)):o==="vw"?Ie(Kt(i)):s?i["offset"+wt(e)]:$(i)[e],r)),n+y(r)},0):y(t)}const wr=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,br=nt(t=>t.toString().replace(/\s/g,"").match(wr)||[]),xr=/(?:v[hw]|%)$/,yr=nt(t=>(t.match(xr)||[])[0]);function $r(t,e){return t*y(e)/100}function zi(t){if(document.readyState!=="loading"){t();return}j(document,"DOMContentLoaded",t)}function pt(t,e){var i;return(t==null||(i=t.tagName)==null?void 0:i.toLowerCase())===e.toLowerCase()}function kr(t){return Hi(t,"")}function Ot(t,e){return Y(e)?m(t).innerHTML:Hi(t,e)}const Hi=Ae("replaceChildren"),Sr=Ae("prepend"),G=Ae("append"),Fi=Ae("before"),Je=Ae("after");function Ae(t){return function(e,i){var s;const n=b(O(i)?Ft(i):i);return(s=m(e))==null||s[t](...n),ks(n)}}function ht(t){b(t).forEach(e=>e.remove())}function Ke(t,e){for(e=V(Fi(t,e));e.firstChild;)e=e.firstChild;return G(e,t),e}function $s(t,e){return b(b(t).map(i=>i.hasChildNodes()?Ke(b(i.childNodes),e):G(i,e)))}function Ze(t){b(t).map(A).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const Tr=/^\s*<(\w+|!)[^>]*>/,Cr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Ft(t){const e=Cr.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("div");return Tr.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,ks(i.childNodes)}function ks(t){return t.length>1?t:t[0]}function St(t,e){if(!!Xt(t))for(e(t),t=t.firstElementChild;t;){const i=t.nextElementSibling;St(t,e),t=i}}function m(t,e){return Ss(t)?V(Ft(t)):Ai(t,e)}function N(t,e){return Ss(t)?b(Ft(t)):Se(t,e)}function Ss(t){return O(t)&<(t.trim(),"<")}const Lt=typeof window<"u",J=Lt&&k(document.documentElement,"dir")==="rtl",Wt=Lt&&"ontouchstart"in window,ie=Lt&&window.PointerEvent,ct=ie?"pointerdown":Wt?"touchstart":"mousedown",se=ie?"pointermove":Wt?"touchmove":"mousemove",gt=ie?"pointerup":Wt?"touchend":"mouseup",jt=ie?"pointerenter":Wt?"":"mouseenter",ne=ie?"pointerleave":Wt?"":"mouseleave",re=ie?"pointercancel":"touchcancel",B={reads:[],writes:[],read(t){return this.reads.push(t),Wi(),t},write(t){return this.writes.push(t),Wi(),t},clear(t){Cs(this.reads,t),Cs(this.writes,t)},flush:Li};function Li(t){Ts(B.reads),Ts(B.writes.splice(0)),B.scheduled=!1,(B.reads.length||B.writes.length)&&Wi(t+1)}const Ir=4;function Wi(t){B.scheduled||(B.scheduled=!0,t&&tLi(t)):requestAnimationFrame(()=>Li(1)))}function Ts(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Cs(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}function ji(){}ji.prototype={positions:[],init(){this.positions=[];let t;this.unbind=T(document,"mousemove",e=>t=te(e)),this.interval=setInterval(()=>{!t||(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),this.interval&&clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:i,right:s,top:n,bottom:r}=e,[o]=this.positions,a=ve(this.positions),l=[o,a];return je(a,e)?!1:[[{x:i,y:n},{x:s,y:r}],[{x:i,y:r},{x:s,y:n}]].some(u=>{const d=Ar(l,u);return d&&je(d,e)})}};function Ar(t,e){let[{x:i,y:s},{x:n,y:r}]=t,[{x:o,y:a},{x:l,y:h}]=e;const u=(h-a)*(n-i)-(l-o)*(r-s);if(u===0)return!1;const d=((l-o)*(s-a)-(h-a)*(i-o))/u;return d<0?!1:{x:i+d*(n-i),y:s+d*(r-s)}}function oe(t,e,i,s){s===void 0&&(s=!0);const n=new IntersectionObserver(s?(r,o)=>{r.some(a=>a.isIntersecting)&&e(r,o)}:e,i);for(const r of b(t))n.observe(r);return n}const Pr=Lt&&window.ResizeObserver;function Ri(t,e,i){return i===void 0&&(i={box:"border-box"}),Pr?As(ResizeObserver,t,e,i):(Er(),Pe.add(e),{disconnect(){Pe.delete(e)}})}let Pe;function Er(){if(Pe)return;Pe=new Set;let t;const e=()=>{if(!t){t=!0,B.read(()=>t=!1);for(const i of Pe)i()}};T(window,"load resize",e),T(document,"loadedmetadata load",e,!0)}function Is(t,e,i){return As(MutationObserver,t,e,i)}function As(t,e,i,s){const n=new t(i);for(const r of b(e))n.observe(r,s);return n}const Q={};Q.events=Q.created=Q.beforeConnect=Q.connected=Q.beforeDisconnect=Q.disconnected=Q.destroy=qi,Q.args=function(t,e){return e!==!1&&qi(e||t)},Q.update=function(t,e){return We(qi(t,dt(e)?{read:e}:e),"order")},Q.props=function(t,e){if(st(e)){const i={};for(const s of e)i[s]=String;e=i}return Q.methods(t,e)},Q.computed=Q.methods=function(t,e){return e?t?{...t,...e}:e:t},Q.data=function(t,e,i){return i?Ps(t,e,i):e?t?function(s){return Ps(t,e,s)}:e:t};function Ps(t,e,i){return Q.computed(dt(t)?t.call(i,i):t,dt(e)?e.call(i,i):e)}function qi(t,e){return t=t&&!st(t)?[t]:t,e?t?t.concat(e):st(e)?e:[e]:t}function _r(t,e){return Y(e)?t:e}function ae(t,e,i){const s={};if(dt(e)&&(e=e.options),e.extends&&(t=ae(t,e.extends,i)),e.mixins)for(const r of e.mixins)t=ae(t,r,i);for(const r in t)n(r);for(const r in e)Nt(t,r)||n(r);function n(r){s[r]=(Q[r]||_r)(t[r],e[r],i)}return s}function Ee(t,e){e===void 0&&(e=[]);try{return t?lt(t,"{")?JSON.parse(t):e.length&&!g(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,r]=s.split(/:(.*)/);return n&&!Y(r)&&(i[n.trim()]=r.trim()),i},{}):{}}catch{return{}}}function Es(t){if(Ue(t)&&Vi(t,{func:"playVideo",method:"play"}),Qe(t))try{t.play().catch(E)}catch{}}function _s(t){Ue(t)&&Vi(t,{func:"pauseVideo",method:"pause"}),Qe(t)&&t.pause()}function Os(t){Ue(t)&&Vi(t,{func:"mute",method:"setVolume",value:0}),Qe(t)&&(t.muted=!0)}function Ns(t){return Qe(t)||Ue(t)}function Qe(t){return pt(t,"video")}function Ue(t){return pt(t,"iframe")&&(Ms(t)||Ds(t))}function Ms(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Ds(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function Vi(t,e){await Nr(t),Bs(t,e)}function Bs(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const Yi="_ukPlayer";let Or=0;function Nr(t){if(t[Yi])return t[Yi];const e=Ms(t),i=Ds(t),s=++Or;let n;return t[Yi]=new Promise(r=>{e&&j(t,"load",()=>{const o=()=>Bs(t,{event:"listening",id:s});n=setInterval(o,100),o()}),j(window,"message",r,!1,o=>{let{data:a}=o;try{return a=JSON.parse(a),a&&(e&&a.id===s&&a.event==="onReady"||i&&Number(a.player_id)===s)}catch{}}),t.src=""+t.src+(g(t.src,"?")?"&":"?")+(e?"enablejsapi=1":"api=1&player_id="+s)}).then(()=>clearInterval(n))}function ti(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=0),q(t)?Si(...Tt(t).map(s=>{const{top:n,left:r,bottom:o,right:a}=ut(s);return{top:n-e,left:r-i,bottom:o+e,right:a+i}}).concat(C(t))):!1}function Rt(t,e){if(Dt(t)||pe(t)?t=_e(t):t=V(t),Y(e))return t.scrollTop;t.scrollTop=e}function Gi(t,e){let{offset:i=0}=e===void 0?{}:e;const s=q(t)?Tt(t):[];return s.reduce((a,l,h)=>{const{scrollTop:u,scrollHeight:d,offsetHeight:f}=l,v=ut(l),P=d-v.height,{height:x,top:K}=s[h-1]?ut(s[h-1]):C(t);let M=Math.ceil(K-v.top-i+u);return i>0&&fP?(i-=M-P,M=P):M<0&&(i-=M,M=0),()=>n(l,M-u).then(a)},()=>Promise.resolve())();function n(a,l){return new Promise(h=>{const u=a.scrollTop,d=r(Math.abs(l)),f=Date.now();(function v(){const P=o(U((Date.now()-f)/d));Rt(a,u+l*P),P===1?h():requestAnimationFrame(v)})()})}function r(a){return 40*Math.pow(a,.375)}function o(a){return .5*(1-Math.cos(Math.PI*a))}}function Xi(t,e,i){if(e===void 0&&(e=0),i===void 0&&(i=0),!q(t))return 0;const[s]=Tt(t,/auto|scroll/,!0),{scrollHeight:n,scrollTop:r}=s,{height:o}=ut(s),a=n-o,l=Ce(t)[0]-Ce(s)[0],h=Math.max(0,l-o+e),u=Math.min(a,l+t.offsetHeight-i);return U((r-h)/(u-h))}function Tt(t,e,i){e===void 0&&(e=/auto|scroll|hidden/),i===void 0&&(i=!1);const s=_e(t);let n=$e(t).reverse();n=n.slice(n.indexOf(s)+1);const r=bt(n,o=>c(o,"position")==="fixed");return~r&&(n=n.slice(r)),[s].concat(n.filter(o=>e.test(c(o,"overflow"))&&(!i||o.scrollHeight>ut(o).height))).reverse()}function ut(t){let e=zs(t);e===_e(e)&&(e=document.documentElement);let i=C(e);for(let[s,n,r,o]of[["width","x","left","right"],["height","y","top","bottom"]])Dt(zs(e))||(i[r]+=y(c(e,"border"+wt(r)+"Width"))),i[s]=i[n]=(Dt(e)?_e(e):e)["client"+wt(s)],i[o]=i[s]+i[r];return i}function _e(t){const{document:{scrollingElement:e}}=Kt(t);return e}function zs(t){return t===_e(t)?window:t}const Ct=[["width","x","left","right"],["height","y","top","bottom"]];function Hs(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i};const s=i.flip?Ls(t,e,i):Fs(t,e,i);C(t,s)}function Fs(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i};const r=C(t),o=C(e);for(const[a,[l,h,u,d]]of Object.entries(Ct))r[u]=r[h]=o[u]+Ws(s.target[a],d,o[l])-Ws(s.element[a],d,r[l])+ +n[a],r[d]=r[u]+r[l];return r}function Ls(t,e,i){const s=Fs(t,e,i),n=C(e);let{flip:r,attach:{element:o,target:a},offset:l,boundary:h,viewport:u,viewportPadding:d}=i,f=Tt(t);h===e&&(f=f.filter(x=>x!==h));const[v]=f;f.push(u);const P={...s};for(const[x,[K,M,z,at]]of Object.entries(Ct)){if(r!==!0&&!g(r,M))continue;const Kn=!Rs(s,n,x)&&Rs(s,n,1-x);u=js(...f.filter(Boolean).map(ut)),d&&(u[z]+=d,u[at]-=d),h&&!Kn&&s[K]<=C(h)[K]&&(u=js(u,C(h)));const Zn=s[z]>=u[z],Qn=s[at]<=u[at];if(Zn&&Qn)continue;let ue;if(Kn){if(o[x]===at&&Zn||o[x]===z&&Qn)continue;if(ue=(o[x]===z?-s[K]:o[x]===at?s[K]:0)+(a[x]===z?n[K]:a[x]===at?-n[K]:0)-l[x]*2,!Ji({...s,[z]:s[z]+ue,[at]:s[at]+ue},v,x)){if(Ji(s,v,x))continue;if(i.recursion)return!1;const ls=Ls(t,e,{...i,attach:{element:o.map(qs).reverse(),target:a.map(qs).reverse()},offset:l.reverse(),flip:r===!0?r:[...r,Ct[1-x][1]],recursion:!0});if(ls&&Ji(ls,v,1-x))return ls}}else ue=U(U(s[z],u[z],u[at]-s[K]),n[z]-s[K]+l[x],n[at]-l[x])-s[z];P[z]=s[M]=s[z]+ue,P[at]+=ue}return P}function Ws(t,e,i){return t==="center"?i/2:t===e?i:0}function js(){let t={};for(var e=arguments.length,i=new Array(e),s=0;s=s[r]&&t[o]<=s[o]}function Rs(t,e,i){const[,,s,n]=Ct[i];return t[n]>e[s]&&e[n]>t[s]}function qs(t){for(let e=0;es(o[e],r))};let i;Object.defineProperty(t,"container",{get(){return i||document.body},set(n){i=m(n)}});function s(n,r){if(!!n)for(const o in n)n[o]._connected&&n[o]._callUpdate(r)}}function Br(t){t.prototype._callHook=function(s){var n;(n=this.$options[s])==null||n.forEach(r=>r.call(this))},t.prototype._callConnected=function(){this._connected||(this._data={},this._computed={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObservers(),this._callHook("connected"),this._callUpdate())},t.prototype._callDisconnected=function(){!this._connected||(this._callHook("beforeDisconnect"),this._disconnectObservers(),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1,delete this._watch)},t.prototype._callUpdate=function(s){s===void 0&&(s="update"),this._connected&&((s==="update"||s==="resize")&&this._callWatches(),this.$options.update&&(this._updates||(this._updates=new Set,B.read(()=>{this._connected&&e.call(this,this._updates),delete this._updates})),this._updates.add(s.type||s)))},t.prototype._callWatches=function(){if(this._watch)return;const s=!Nt(this,"_watch");this._watch=B.read(()=>{this._connected&&i.call(this,s),this._watch=null})};function e(s){for(const{read:n,write:r,events:o=[]}of this.$options.update){if(!s.has("update")&&!o.some(l=>s.has(l)))continue;let a;n&&(a=n.call(this,this._data,s),a&&Pt(a)&&xt(this._data,a)),r&&a!==!1&&B.write(()=>r.call(this,this._data,s))}}function i(s){const{$options:{computed:n}}=this,r={...this._computed};this._computed={};for(const o in n){const{watch:a,immediate:l}=n[o];a&&(s&&l||Nt(r,o)&&!me(r[o],this[o]))&&a.call(this,this[o],r[o])}}}function zr(t){let e=0;t.prototype._init=function(i){i=i||{},i.data=Wr(i,this.constructor.options),this.$options=ae(this.constructor.options,i,this),this.$el=null,this.$props={},this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),i.el&&this.$mount(i.el)},t.prototype._initData=function(){const{data:i={}}=this.$options;for(const s in i)this.$props[s]=this[s]=i[s]},t.prototype._initMethods=function(){const{methods:i}=this.$options;if(i)for(const s in i)this[s]=i[s].bind(this)},t.prototype._initComputeds=function(){const{computed:i}=this.$options;if(this._computed={},i)for(const s in i)Hr(this,s,i[s])},t.prototype._initProps=function(i){let s;i=i||Vs(this.$options,this.$name);for(s in i)Y(i[s])||(this.$props[s]=i[s]);const n=[this.$options.computed,this.$options.methods];for(s in this.$props)s in i&&Fr(n,s)&&(this[s]=this.$props[s])},t.prototype._initEvents=function(){this._events=[];for(const i of this.$options.events||[])if(Nt(i,"handler"))ei(this,i);else for(const s in i)ei(this,i[s],s)},t.prototype._unbindEvents=function(){this._events.forEach(i=>i()),delete this._events},t.prototype._initObservers=function(){this._observers=[Rr(this)],this.$options.computed&&this.registerObserver(jr(this))},t.prototype.registerObserver=function(i){this._observers.push(i)},t.prototype._disconnectObservers=function(){this._observers.forEach(i=>i?.disconnect())}}function Vs(t,e){const i={},{args:s=[],props:n={},el:r}=t;if(!n)return i;for(const a in n){const l=Mt(a);let h=rt(r,l);Y(h)||(h=n[a]===Boolean&&h===""?!0:Ki(n[a],h),!(l==="target"&&(!h||lt(h,"_")))&&(i[a]=h))}const o=Ee(rt(r,e),s);for(const a in o){const l=Yt(a);n[l]!==void 0&&(i[l]=Ki(n[l],o[a]))}return i}function Hr(t,e,i){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:r}=t;return Nt(s,e)||(s[e]=(i.get||i).call(t,n,r)),s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,Y(n[e])&&delete n[e]}})}function ei(t,e,i){Pt(e)||(e={name:i,handler:e});let{name:s,el:n,handler:r,capture:o,passive:a,delegate:l,filter:h,self:u}=e;if(n=dt(n)?n.call(t):n||t.$el,st(n)){n.forEach(d=>ei(t,{...e,el:d},i));return}!n||h&&!h.call(t)||t._events.push(T(n,s,l?O(l)?l:l.call(t):null,O(r)?t[r]:r.bind(t),{passive:a,capture:o,self:u}))}function Fr(t,e){return t.every(i=>!i||!Nt(i,e))}function Ki(t,e){return t===Boolean?$i(e):t===Number?_t(e):t==="list"?Lr(e):t?t(e):e}function Lr(t){return st(t)?t:O(t)?t.split(/,(?![^(]*\))/).map(e=>Et(e)?_t(e):$i(e.trim())):[t]}function Wr(t,e){let{data:i={}}=t,{args:s=[],props:n={}}=e;st(i)&&(i=i.slice(0,s.length).reduce((r,o,a)=>(Pt(o)?xt(r,o):r[s[a]]=o,r),{}));for(const r in i)Y(i[r])?delete i[r]:n[r]&&(i[r]=Ki(n[r],i[r]));return i}function jr(t){const{el:e}=t.$options,i=new MutationObserver(()=>t.$emit());return i.observe(e,{childList:!0,subtree:!0}),i}function Rr(t){const{$name:e,$options:i,$props:s}=t,{attrs:n,props:r,el:o}=i;if(!r||n===!1)return;const a=st(n)?n:Object.keys(r),l=a.map(u=>Mt(u)).concat(e),h=new MutationObserver(u=>{const d=Vs(i,e);u.some(f=>{let{attributeName:v}=f;const P=v.replace("data-","");return(P===e?a:[Yt(P),Yt(v)]).some(x=>!Y(d[x])&&d[x]!==s[x])})&&t.$reset()});return h.observe(o,{attributes:!0,attributeFilter:l.concat(l.map(u=>"data-"+u))}),h}function qr(t){const e=t.data;t.prototype.$create=function(s,n,r){return t[s](n,r)},t.prototype.$mount=function(s){const{name:n}=this.$options;s[e]||(s[e]={}),!s[e][n]&&(s[e][n]=this,this.$el=this.$options.el=this.$options.el||s,F(s,document)&&this._callConnected())},t.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},t.prototype.$destroy=function(s){s===void 0&&(s=!1);const{el:n,name:r}=this.$options;n&&this._callDisconnected(),this._callHook("destroy"),n!=null&&n[e]&&(delete n[e][r],ge(n[e])||delete n[e],s&&ht(this.$el))},t.prototype.$emit=function(s){this._callUpdate(s)},t.prototype.$update=function(s,n){s===void 0&&(s=this.$el),t.update(s,n)},t.prototype.$getComponent=t.getComponent;const i=nt(s=>t.prefix+Mt(s));Object.defineProperties(t.prototype,{$container:Object.getOwnPropertyDescriptor(t,"container"),$name:{get(){return i(this.$options.name)}}})}function Vr(t){const e=t.data,i={};t.component=function(s,n){const r=Mt(s);if(s=Yt(r),!n)return Pt(i[s])&&(i[s]=t.extend(i[s])),i[s];t[s]=function(a,l){const h=t.component(s);return h.options.functional?new h({data:Pt(a)?a:[...arguments]}):a?N(a).map(u)[0]:u();function u(d){const f=t.getComponent(d,s);if(f)if(l)f.$destroy();else return f;return new h({el:d,data:l})}};const o=Pt(n)?{...n}:n.options;return o.name=s,o.install==null||o.install(t,o,s),t._initialized&&!o.functional&&B.read(()=>t[s]("[bdt-"+r+"],[data-bdt-"+r+"]")),i[s]=Pt(n)?o:n},t.getComponents=s=>s?.[e]||{},t.getComponent=(s,n)=>t.getComponents(s)[n],t.connect=s=>{if(s[e])for(const n in s[e])s[e][n]._callConnected();for(const n of s.attributes){const r=Ys(n.name);r&&r in i&&t[r](s)}},t.disconnect=s=>{for(const n in s[e])s[e][n]._callDisconnected()}}const Ys=nt(t=>lt(t,"bdt-")||lt(t,"data-bdt-")?Yt(t.replace("data-bdt-","").replace("bdt-","")):!1),et=function(t){this._init(t)};et.util=Mr,et.data="__uikit__",et.prefix="bdt-",et.options={},et.version="3.14.1",Dr(et),Br(et),zr(et),Vr(et),qr(et);function Yr(t){const{connect:e,disconnect:i}=t;if(!Lt||!window.MutationObserver)return;B.read(function(){document.body&&St(document.body,e),new MutationObserver(r=>r.forEach(s)).observe(document,{childList:!0,subtree:!0}),new MutationObserver(r=>r.forEach(n)).observe(document,{attributes:!0,subtree:!0}),t._initialized=!0});function s(r){let{addedNodes:o,removedNodes:a}=r;for(const l of o)St(l,e);for(const l of a)St(l,i)}function n(r){var o;let{target:a,attributeName:l}=r;const h=Ys(l);if(!(!h||!(h in t))){if(Bt(a,l)){t[h](a);return}(o=t.getComponent(a,h))==null||o.$destroy()}}}var tt={connected(){!S(this.$el,this.$name)&&w(this.$el,this.$name)}},Oe={methods:{lazyload(t,e){t===void 0&&(t=this.$el),e===void 0&&(e=this.$el),this.registerObserver(oe(t,(i,s)=>{for(const n of b(dt(e)?e():e))N('[loading="lazy"]',n).forEach(r=>be(r,"loading"));for(const n of i.filter(r=>{let{isIntersecting:o}=r;return o}).map(r=>{let{target:o}=r;return o}))s.unobserve(n)}))}}},It={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"bdt-togglabe-enter",clsLeave:"bdt-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:"",boxShadow:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,boxShadow:"none"}},computed:{hasAnimation(t){let{animation:e}=t;return!!e[0]},hasTransition(t){let{animation:e}=t;return this.hasAnimation&&e[0]===!0}},methods:{toggleElement(t,e,i){return new Promise(s=>Promise.all(b(t).map(n=>{const r=Le(e)?e:!this.isToggled(n);if(!p(n,"before"+(r?"show":"hide"),[this]))return Promise.reject();const o=(dt(i)?i:i===!1||!this.hasAnimation?this._toggle:this.hasTransition?Gs(this):Gr(this))(n,r),a=r?this.clsEnter:this.clsLeave;w(n,a),p(n,r?"show":"hide",[this]);const l=()=>{_(n,a),p(n,r?"shown":"hidden",[this]),this.$update(n)};return o?o.then(l,()=>(_(n,a),Promise.reject())):l()})).then(s,E))},isToggled(t){return t===void 0&&(t=this.$el),[t]=b(t),S(t,this.clsEnter)?!0:S(t,this.clsLeave)?!1:this.cls?S(t,this.cls.split(" ")[0]):q(t)},_toggle(t,e){if(!t)return;e=Boolean(e);let i;this.cls?(i=g(this.cls," ")||e!==S(t,this.cls),i&&R(t,this.cls,g(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),N("[autofocus]",t).some(s=>q(s)?s.focus()||!0:s.blur()),i&&(p(t,"toggled",[e,this]),this.$update(t))}}};function Gs(t){let{isToggled:e,duration:i,velocity:s,initProps:n,hideProps:r,transition:o,_toggle:a}=t;return(l,h)=>{const u=I.inProgress(l),d=l.hasChildNodes()?y(c(l.firstElementChild,"marginTop"))+y(c(l.lastElementChild,"marginBottom")):0,f=q(l)?L(l)+(u?0:d):0;I.cancel(l),e(l)||a(l,!0),L(l,""),B.flush();const v=L(l)+(u?0:d);return i=s*l.offsetHeight+i,L(l,f),(h?I.start(l,{...n,overflow:"hidden",height:v},Math.round(i*(1-f/v)),o):I.start(l,r,Math.round(i*(f/v)),o).then(()=>a(l,!1))).then(()=>c(l,n))}}function Gr(t){return(e,i)=>{ft.cancel(e);const{animation:s,duration:n,_toggle:r}=t;return i?(r(e,!0),ft.in(e,s[0],n,t.origin)):ft.out(e,s[1]||s[0],n,t.origin).then(()=>r(e,!1))}}var Xs={mixins:[tt,Oe,It],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"bdt-open",toggle:"> .bdt-accordion-title",content:"> .bdt-accordion-content",offset:0},computed:{items:{get(t,e){let{targets:i}=t;return N(i,e)},watch(t,e){if(e||S(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},immediate:!0},toggles(t){let{toggle:e}=t;return this.items.map(i=>m(e,i))},contents:{get(t){let{content:e}=t;return this.items.map(i=>m(e,i))},watch(t){for(const e of t)ii(e,!S(this.items.find(i=>i.contains(e)),this.clsOpen))},immediate:!0}},connected(){this.lazyload()},events:[{name:"click",delegate(){return this.targets+" "+this.$props.toggle},handler(t){t.preventDefault(),this.toggle(Qt(this.toggles,t.current))}}],methods:{toggle(t,e){let i=[this.items[Zt(t,this.items)]];const s=ye(this.items,"."+this.clsOpen);if(!this.multiple&&!g(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&!ye(i,":not(."+this.clsOpen+")").length))for(const n of i)this.toggleElement(n,!S(n,this.clsOpen),async(r,o)=>{R(r,this.clsOpen,o),k(m(this.$props.toggle,r),"aria-expanded",o);const a=m((r._wrapper?"> * ":"")+this.content,r);if(e===!1||!this.hasTransition){ii(a,!o);return}if(r._wrapper||(r._wrapper=Ke(a,"")),ii(a,!1),await Gs(this)(r._wrapper,o),ii(a,!o),delete r._wrapper,Ze(a),o){const l=m(this.$props.toggle,r);B.read(()=>{ti(l)||Gi(l,{offset:this.offset})})}})}}};function ii(t,e){t&&(t.hidden=e)}var Xr={mixins:[tt,It],args:"animation",props:{close:String},data:{animation:[!0],selClose:".bdt-alert-close",duration:150,hideProps:{opacity:0,...It.data.hideProps}},events:[{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}}],methods:{async close(){await this.toggleElement(this.$el),this.$destroy(!0)}}},Js={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView=this.autoplay==="inview",this.inView&&!Bt(this.$el,"preload")&&(this.$el.preload="none"),this.automute&&Os(this.$el),this.registerObserver(oe(this.$el,()=>this.$emit(),{},!1))},update:{read(){return Ns(this.$el)?{visible:q(this.$el)&&c(this.$el,"visibility")!=="hidden",inView:this.inView&&ti(this.$el)}:!1},write(t){let{visible:e,inView:i}=t;!e||this.inView&&!i?_s(this.$el):(this.autoplay===!0||this.inView&&i)&&Es(this.$el)}}},mt={connected(){var t;this.registerObserver(Ri(((t=this.$options.resizeTargets)==null?void 0:t.call(this))||this.$el,()=>this.$emit("resize")))}},Jr={mixins:[mt,Js],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},resizeTargets(){return[this.$el,A(this.$el)]},update:{read(){const{ratio:t,cover:e}=we,{$el:i,width:s,height:n}=this;let r={width:s,height:n};if(!r.width||!r.height){const h={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};r.width?r=t(h,"width",r.width):n?r=t(h,"height",r.height):r=h}const{offsetHeight:o,offsetWidth:a}=Kr(i)||A(i),l=e(r,{width:a+(a%2?1:0),height:o+(o%2?1:0)});return!l.width||!l.height?!1:l},write(t){let{height:e,width:i}=t;c(this.$el,{height:e,width:i})},events:["resize"]}};function Kr(t){for(;t=A(t);)if(c(t,"position")!=="static")return t}var le={props:{container:Boolean},data:{container:!0},computed:{container(t){let{container:e}=t;return e===!0&&this.$container||e&&m(e)}}},Ks={props:{pos:String,offset:null,flip:Boolean},data:{pos:"bottom-"+(J?"right":"left"),flip:!0,offset:!1,viewportPadding:10},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),this.axis=g(["top","bottom"],this.pos[0])?"y":"x"},methods:{positionAt(t,e,i){const[s,n]=this.pos;let{offset:r}=this;if(!Et(r)){const a=m(r);r=a?C(a)[this.axis==="x"?"left":"top"]-C(e)[this.axis==="x"?"right":"bottom"]:0}r=Z(r)+Z(Ye("position-offset",t)),r=[g(["left","top"],s)?-r:+r,0];const o={element:[Xe(s),n],target:[s,n]};if(this.axis==="y"){for(const a in o)o[a]=o[a].reverse();r=r.reverse()}Hs(t,e,{attach:o,offset:r,boundary:i,viewportPadding:this.boundaryAlign?0:this.viewportPadding,flip:this.flip})}}};let X;var Zs={mixins:[le,Oe,Ks,It],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,display:String,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:!0,boundaryAlign:!1,delayShow:0,delayHide:800,display:null,clsDrop:!1,animation:["bdt-animation-fade"],cls:"bdt-open",container:!1},created(){this.tracker=new ji},beforeConnect(){this.clsDrop=this.$props.clsDrop||"bdt-"+this.$options.name},connected(){w(this.$el,this.clsDrop),this.toggle&&!this.target&&(this.target=this.$create("toggle",$t(this.toggle,this.$el),{target:this.$el,mode:this.mode}).$el,k(this.target,"aria-haspopup",!0),this.lazyload(this.target))},disconnected(){this.isActive()&&(X=null)},events:[{name:"click",delegate(){return"."+this.clsDrop+"-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate(){return'a[href^="#"]'},handler(t){let{defaultPrevented:e,current:{hash:i}}=t;!e&&i&&!F(i,this.$el)&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e?.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e?.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),H(this.$el,":focus,:hover")||this.hide()}},{name:jt+" focusin",filter(){return g(this.mode,"hover")},handler(t){kt(t)||this.clearTimers()}},{name:ne+" focusout",filter(){return g(this.mode,"hover")},handler(t){!kt(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){!e||(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){X=this,this.tracker.init();for(const t of[T(document,ct,e=>{let{target:i}=e;return!F(i,this.$el)&&j(document,gt+" "+re+" scroll",s=>{let{defaultPrevented:n,type:r,target:o}=s;!n&&r===gt&&i===o&&!(this.target&&F(i,this.target))&&this.hide(!1)},!0)}),T(document,"keydown",e=>{e.keyCode===27&&this.hide(!1)}),...this.display==="static"?[]:(()=>{const e=()=>this.$emit();return[T(window,"resize",e),T(document,"scroll",e,!0),(()=>{const i=Ri(Tt(this.$el),e);return()=>i.disconnect()})()]})()])j(this.$el,"hide",t,{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler(t){let{target:e}=t;if(this.$el!==e){X=X===null&&F(e,this.$el)&&this.isToggled()?this:X;return}X=this.isActive()?null:X,this.tracker.cancel()}}],update:{write(){this.isToggled()&&!S(this.$el,this.clsEnter)&&this.position()}},methods:{show(t,e){if(t===void 0&&(t=this.target),e===void 0&&(e=!0),this.isToggled()&&t&&this.target&&t!==this.target&&this.hide(!1),this.target=t,this.clearTimers(),!this.isActive()){if(X){if(e&&X.isDelaying){this.showTimer=setTimeout(()=>H(t,":hover")&&this.show(),10);return}let i;for(;X&&i!==X&&!F(this.$el,X.$el);)i=X,X.hide(!1)}this.container&&A(this.$el)!==this.container&&G(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t){t===void 0&&(t=!0);const e=()=>this.toggleElement(this.$el,!1,!1);this.clearTimers(),this.isDelaying=Zr(this.$el).some(i=>this.tracker.movesTo(i)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(e,this.delayHide):e()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return X===this},position(){_(this.$el,this.clsDrop+"-stack"),R(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);const t=$t(this.boundary,this.$el),[e]=Tt(this.$el),i=ut(e),s=t?C(t):i;c(this.$el,"maxWidth","");const n=i.width-(this.boundaryAlign?0:2*this.viewportPadding);if(this.pos[1]==="justify"){const r=this.axis==="y"?"width":"height",o=C(this.target),a=this.boundaryAlign?s:o;c(this.$el,r,a[r])}else this.$el.offsetWidth>n&&w(this.$el,this.clsDrop+"-stack");c(this.$el,"maxWidth",n),this.positionAt(this.$el,t&&this.boundaryAlign?t:this.target,t)}}};function Zr(t){const e=[];return St(t,i=>c(i,"position")!=="static"&&e.push(i)),e}var Qr={mixins:[tt],args:"target",props:{target:Boolean},data:{target:!1},computed:{input(t,e){return m(xe,e)},state(){return this.input.nextElementSibling},target(t,e){let{target:i}=t;return i&&(i===!0&&A(this.input)===e&&this.input.nextElementSibling||m(i,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let s;const n=Ii(e)?"value":"textContent",r=e[n],o=(t=i.files)!=null&&t[0]?i.files[0].name:H(i,"select")&&(s=N("option",i).filter(a=>a.selected)[0])?s.textContent:i.value;r!==o&&(e[n]=o)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return ot(this.$el,"form")},handler(){this.$emit()}}]},Qs={mixins:[mt],props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},resizeTargets(){return[this.$el,...bi(this.$el.children)]},connected(){this.registerObserver(Is(this.$el,()=>this.$reset(),{childList:!0}))},update:{read(){const t=Zi(this.$el.children);return{rows:t,columns:Ur(t)}},write(t){let{columns:e,rows:i}=t;for(const s of i)for(const n of s)R(n,this.margin,i[0]!==s),R(n,this.firstColumn,e[0].includes(n))},events:["resize"]}};function Zi(t){return Us(t,"top","bottom")}function Ur(t){const e=[];for(const i of t){const s=Us(i,"left","right");for(let n=0;n=0;o--){const a=s[o];if(!a[0]){a.push(n);break}let l;if(a[0].offsetParent===n.offsetParent?l=si(a[0]):(r=si(n,!0),l=si(a[0],!0)),r[e]>=l[i]-1&&r[e]!==l[e]){s.push([n]);break}if(r[i]-1>l[e]||r[e]===l[e]){a.push(n);break}if(o===0){s.unshift([n]);break}}}return s}function si(t,e){e===void 0&&(e=!1);let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:r}=t;return e&&([i,s]=Ce(t)),{top:i,left:s,bottom:i+n,right:s+r}}var Ne={connected(){to(this._uid,()=>this.$emit("scroll"))},disconnected(){eo(this._uid)}};const ni=new Map;let Me;function to(t,e){Me=Me||T(window,"scroll",()=>ni.forEach(i=>i()),{passive:!0,capture:!0}),ni.set(t,e)}function eo(t){ni.delete(t),Me&&!ni.size&&(Me(),Me=null)}var io={extends:Qs,mixins:[tt,Ne],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"bdt-grid-margin",clsStack:"bdt-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&w(this.$el,"bdt-flex-top bdt-flex-wrap-top")},update:[{write(t){let{columns:e}=t;R(this.$el,this.clsStack,e.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||tn(this.$el))return t.translates=!1,!1;let s=!1;const n=D(this.$el),r=ro(e),o=no(n,this.margin)*(i.length-1),a=Math.max(...r)+o;this.masonry&&(e=e.map(h=>We(h,"offsetTop")),s=so(i,e));let l=Math.abs(this.parallax);return l&&(l=r.reduce((h,u,d)=>Math.max(h,u+o+(d%2?l:l/8)-a),0)),{padding:l,columns:e,translates:s,height:s?a:""}},write(t){let{height:e,padding:i}=t;c(this.$el,"paddingBottom",i||""),e!==!1&&c(this.$el,"height",e)},events:["resize"]},{read(){return this.parallax&&tn(this.$el)?!1:{scrolled:this.parallax?Xi(this.$el)*Math.abs(this.parallax):!1}},write(t){let{columns:e,scrolled:i,translates:s}=t;i===!1&&!s||e.forEach((n,r)=>n.forEach((o,a)=>c(o,"transform",!i&&!s?"":"translateY("+((s&&-s[r][a])+(i?r%2?i:i/8:0))+"px)")))},events:["scroll","resize"]}]};function tn(t){return D(t).some(e=>c(e,"position")==="absolute")}function so(t,e){const i=t.map(s=>Math.max(...s.map(n=>n.offsetHeight)));return e.map(s=>{let n=0;return s.map((r,o)=>n+=o?i[o-1]-s[o-1].offsetHeight:0)})}function no(t,e){const[i]=t.filter(s=>S(s,e));return y(i?c(i,"marginTop"):c(t[0],"paddingLeft"))}function ro(t){return t.map(e=>e.reduce((i,s)=>i+s.offsetHeight,0))}var oo={mixins:[mt],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements:{get(t,e){let{target:i}=t;return N(i,e)},watch(){this.$reset()}}},resizeTargets(){return[this.$el,...this.elements]},update:{read(){return{rows:(this.row?Zi(this.elements):[this.elements]).map(ao)}},write(t){let{rows:e}=t;for(const{heights:i,elements:s}of e)s.forEach((n,r)=>c(n,"minHeight",i[r]))},events:["resize"]}};function ao(t){if(t.length<2)return{heights:[""],elements:t};c(t,"minHeight","");let e=t.map(lo);const i=Math.max(...e);return{heights:t.map((s,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function lo(t){let e=!1;q(t)||(e=t.style.display,c(t,"display","block","important"));const i=$(t).height-ee(t,"height","content-box");return e!==!1&&c(t,"display",e),i}var ho={mixins:[tt,mt],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},resizeTargets(){return[this.$el,document.documentElement]},update:{read(t){let{minHeight:e}=t;if(!q(this.$el))return!1;let i="";const s=ee(this.$el,"height","content-box");if(this.expand)i=Math.max(L(window)-($(document.documentElement).height-$(this.$el).height)-s,0);else{if(i="calc(100vh",this.offsetTop){const{top:n}=C(this.$el);i+=n>0&&n{if(this._connected){const e=po(t,this.$el);return this.svgEl&&e!==this.svgEl&&ht(this.svgEl),this.applyAttributes(e,t),this.svgEl=e}},E),this.strokeAnimation&&this.svg.then(t=>{this._connected&&(nn(t),this.registerObserver(oe(t,(e,i)=>{nn(t),i.disconnect()})))})},disconnected(){this.svg.then(t=>{this._connected||(Ci(this.$el)&&(this.$el.hidden=!1),ht(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){return pt(this.$el,"img")&&!this.$el.complete&&this.$el.loading==="lazy"?new Promise(t=>j(this.$el,"load",()=>t(this.getSvg()))):uo(await co(this.src),this.icon)||Promise.reject("SVG not found.")},applyAttributes(t,e){for(const r in this.$options.props)g(this.include,r)&&r in this&&k(t,r,this[r]);for(const r in this.attributes){const[o,a]=this.attributes[r].split(":",2);k(t,o,a)}this.id||be(t,"id");const i=["width","height"];let s=i.map(r=>this[r]);s.some(r=>r)||(s=i.map(r=>k(e,r)));const n=k(e,"viewBox");n&&!s.some(r=>r)&&(s=n.split(" ").slice(2)),s.forEach((r,o)=>k(t,i[o],y(r)*this.ratio||null))}}};const co=nt(async t=>t?lt(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject());function uo(t,e){var i;return e&&g(t,"/g,ri={};function fo(t,e){if(!ri[t]){ri[t]={},sn.lastIndex=0;let i;for(;i=sn.exec(t);)ri[t][i[3]]='"}return ri[t][e]}function nn(t){const e=rn(t);e&&t.style.setProperty("--bdt-animation-stroke",e)}function rn(t){return Math.ceil(Math.max(0,...N("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}function po(t,e){if(Ci(e)||pt(e,"canvas")){e.hidden=!0;const s=e.nextElementSibling;return on(t,s)?s:Je(e,t)}const i=e.lastElementChild;return on(t,i)?i:G(e,t)}function on(t,e){return pt(t,"svg")&&pt(e,"svg")&&an(t)===an(e)}function an(t){return(t.innerHTML||new XMLSerializer().serializeToString(t).replace(/(.*?)<\/svg>/g,"$1")).replace(/\s/g,"")}var go='',mo='',vo='',wo='',bo='',xo='',yo='',$o='',ko='',So='',To='',Co='',Io='',Ao='',Po='',Eo='';const oi={spinner:Po,totop:Eo,marker:vo,"close-icon":go,"close-large":mo,"navbar-toggle-icon":wo,"overlay-icon":bo,"pagination-next":xo,"pagination-previous":yo,"search-icon":$o,"search-large":ko,"search-navbar":So,"slidenav-next":To,"slidenav-next-large":Co,"slidenav-previous":Io,"slidenav-previous-large":Ao},Qi={install:Mo,extends:en,args:"icon",props:["icon"],data:{include:["focusable"]},isIcon:!0,beforeConnect(){w(this.$el,"bdt-icon")},methods:{async getSvg(){const t=Do(this.icon);if(!t)throw"Icon not found.";return t}}},vt={args:!1,extends:Qi,data:t=>({icon:Mt(t.constructor.options.name)}),beforeConnect(){w(this.$el,this.$name)}},ln={extends:vt,beforeConnect(){w(this.$el,"bdt-slidenav");const t=this.$props.icon;this.icon=S(this.$el,"bdt-slidenav-large")?t+"-large":t}},_o={extends:vt,beforeConnect(){this.icon=S(this.$el,"bdt-search-icon")&&$e(this.$el,".bdt-search-large").length?"search-large":$e(this.$el,".bdt-search-navbar").length?"search-navbar":this.$props.icon}},Oo={extends:vt,beforeConnect(){this.icon="close-"+(S(this.$el,"bdt-close-large")?"large":"icon")}},No={extends:vt,methods:{async getSvg(){const t=await Qi.methods.getSvg.call(this);return this.ratio!==1&&c(m("circle",t),"strokeWidth",1/this.ratio),t}}},ai={};function Mo(t){t.icon.add=(e,i)=>{const s=O(e)?{[e]:i}:e;yt(s,(n,r)=>{oi[r]=n,delete ai[r]}),t._initialized&&St(document.body,n=>yt(t.getComponents(n),r=>{r.$options.isIcon&&r.icon in s&&r.$reset()}))}}function Do(t){return oi[t]?(ai[t]||(ai[t]=m((oi[Bo(t)]||oi[t]).trim())),ai[t].cloneNode(!0)):null}function Bo(t){return J?ki(ki(t,"left","right"),"previous","next"):t}const zo=Lt&&"loading"in HTMLImageElement.prototype;var Ho={args:"dataSrc",props:{dataSrc:String,sources:String,offsetTop:String,offsetLeft:String,target:String,loading:String},data:{dataSrc:"",sources:!1,offsetTop:"50vh",offsetLeft:"50vw",target:!1,loading:"lazy"},connected(){if(this.loading!=="lazy"){this.load();return}const t=[this.$el,...ke(this.$props.target,this.$el)];zo&&li(this.$el)&&(this.$el.loading="lazy",Ui(this.$el),t.length===1)||(Ro(this.$el),this.registerObserver(oe(t,(e,i)=>{this.load(),i.disconnect()},{rootMargin:Z(this.offsetTop,"height")+"px "+Z(this.offsetLeft,"width")+"px"})))},disconnected(){this._data.image&&(this._data.image.onload="")},methods:{load(){if(this._data.image)return this._data.image;const t=li(this.$el)?this.$el:Lo(this.$el,this.dataSrc,this.sources);return be(t,"loading"),Ui(this.$el,t.currentSrc),this._data.image=t}}};function Ui(t,e){if(li(t)){const i=A(t);(qo(i)?D(i):[t]).forEach(n=>hn(n,n))}else e&&!g(t.style.backgroundImage,e)&&(c(t,"backgroundImage","url("+Pi(e)+")"),p(t,zt("load",!1)))}const Fo=["data-src","data-srcset","sizes"];function hn(t,e){Fo.forEach(i=>{const s=rt(t,i);s&&k(e,i.replace(/^(data-)+/,""),s)})}function Lo(t,e,i){const s=new Image;return Wo(s,i),hn(t,s),s.onload=()=>{Ui(t,s.currentSrc)},k(s,"src",e),s}function Wo(t,e){if(e=jo(e),e.length){const i=Ft("");for(const s of e){const n=Ft("");k(n,s),G(i,n)}G(i,t)}}function jo(t){if(!t)return[];if(lt(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=Ee(t);return st(t)||(t=[t]),t.filter(e=>!ge(e))}function Ro(t){li(t)&&!Bt(t,"src")&&k(t,"src",'data:image/svg+xml;utf8,')}function qo(t){return pt(t,"picture")}function li(t){return pt(t,"img")}var hi={props:{media:Boolean},data:{media:!1},connected(){const t=Vo(this.media);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,p(this.$el,zt("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=T(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Vo(t){if(O(t)){if(lt(t,"@")){const e="breakpoint-"+t.substr(1);t=y(Ye(e))}else if(isNaN(t))return t}return t&&Et(t)?"(min-width: "+t+"px)":""}var Yo={mixins:[tt,hi,mt],props:{fill:String},data:{fill:"",clsWrapper:"bdt-leader-fill",clsHide:"bdt-leader-hide",attrFill:"data-fill"},computed:{fill(t){let{fill:e}=t;return e||Ye("leader-fill-content")}},connected(){[this.wrapper]=$s(this.$el,'')},disconnected(){Ze(this.wrapper.childNodes)},update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write(t){let{width:e,fill:i,hide:s}=t;R(this.wrapper,this.clsHide,s),k(this.wrapper,this.attrFill,new Array(e).join(i))},events:["resize"]}};const it=[];var ts={mixins:[tt,le,It],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"bdt-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(t,e){let{selPanel:i}=t;return m(i,e)},transitionElement(){return this.panel},bgClose(t){let{bgClose:e}=t;return e&&this.panel}},beforeDisconnect(){g(it,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===g(it,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(g(it,this))return!1;!this.stack&&it.length?(Promise.all(it.map(e=>e.hide())).then(this.show),t.preventDefault()):it.push(this)}},{name:"show",self:!0,handler(){const t=document.documentElement;Ie(window)>t.clientWidth&&this.overlay&&c(document.body,"overflowY","scroll"),this.stack&&c(this.$el,"zIndex",y(c(this.$el,"zIndex"))+it.length),w(t,this.clsPage),this.bgClose&&j(this.$el,"hide",T(document,ct,e=>{let{target:i}=e;ve(it)!==this||this.overlay&&!F(i,this.$el)||F(i,this.panel)||j(document,gt+" "+re+" scroll",s=>{let{defaultPrevented:n,type:r,target:o}=s;!n&&r===gt&&i===o&&this.hide()},!0)}),{self:!0}),this.escClose&&j(this.$el,"hide",T(document,"keydown",e=>{e.keyCode===27&&ve(it)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){Ve(this.$el)||k(this.$el,"tabindex","-1"),m(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){g(it,this)&&it.splice(it.indexOf(this),1),it.length||c(document.body,"overflowY",""),c(this.$el,"zIndex",""),it.some(t=>t.clsPage===this.clsPage)||_(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&A(this.$el)!==this.container?(G(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,cn(this))},hide(){return this.toggleElement(this.$el,!1,cn(this))}}};function cn(t){let{transitionElement:e,_toggle:i}=t;return(s,n)=>new Promise((r,o)=>j(s,"show hide",()=>{s._reject==null||s._reject(),s._reject=o,i(s,n);const a=j(e,"transitionstart",()=>{j(e,"transitionend transitioncancel",r,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),r()},Go(c(e,"transitionDuration")))})).then(()=>delete s._reject)}function Go(t){return t?Gt(t,"ms")?y(t):y(t)*1e3:0}var Xo={install:Jo,mixins:[ts],data:{clsPage:"bdt-modal-page",selPanel:".bdt-modal-dialog",selClose:".bdt-modal-close, .bdt-modal-close-default, .bdt-modal-close-outside, .bdt-modal-close-full"},events:[{name:"show",self:!0,handler(){S(this.panel,"bdt-margin-auto-vertical")?w(this.$el,"bdt-flex"):c(this.$el,"display","block"),L(this.$el)}},{name:"hidden",self:!0,handler(){c(this.$el,"display",""),_(this.$el,"bdt-flex")}}]};function Jo(t){let{modal:e}=t;e.dialog=function(s,n){const r=e('
'+s+"
",n);return r.show(),T(r.$el,"hidden",async()=>{await Promise.resolve(),r.$destroy(!0)},{self:!0}),r},e.alert=function(s,n){return i(r=>{let{labels:o}=r;return'
'+(O(s)?s:Ot(s))+'
"},n,r=>r.resolve())},e.confirm=function(s,n){return i(r=>{let{labels:o}=r;return'
'+(O(s)?s:Ot(s))+'
"},n,r=>r.reject())},e.prompt=function(s,n,r){return i(o=>{let{labels:a}=o;return'
"},r,o=>o.resolve(null),o=>m("input",o.$el).value)},e.labels={ok:"Ok",cancel:"Cancel"};function i(s,n,r,o){n={bgClose:!1,escClose:!0,labels:e.labels,...n};const a=e.dialog(s(n),n),l=new Re;let h=!1;return T(a.$el,"submit","form",u=>{u.preventDefault(),l.resolve(o?.(a)),h=!0,a.hide()}),T(a.$el,"hide",()=>!h&&r(l)),l.promise.dialog=a,l.promise}}var Ko={extends:Xs,data:{targets:"> .bdt-parent",toggle:"> a",content:"> ul"}},Zo={mixins:[tt,le],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number},data:{dropdown:".bdt-navbar-nav > li > a, .bdt-navbar-item, .bdt-navbar-toggle",align:J?"right":"left",clsDrop:"bdt-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1},computed:{boundary(t,e){let{boundary:i}=t;return i===!0?e:i},dropbarAnchor(t,e){let{dropbarAnchor:i}=t;return $t(i,e)},pos(t){let{align:e}=t;return"bottom-"+e},dropbar:{get(t){let{dropbar:e}=t;return e?(e=this._dropbar||$t(e,this.$el)||m("+ .bdt-navbar-dropbar",this.$el),e||(this._dropbar=m("
"))):null},watch(t){w(t,"bdt-navbar-dropbar")},immediate:!0},dropContainer(t,e){return this.container||e},dropdowns:{get(t,e){let{clsDrop:i}=t;const s=N("."+i,e);if(this.dropContainer!==e)for(const r of N("."+i,this.dropContainer)){var n;const o=(n=this.getDropdown(r))==null?void 0:n.target;!g(s,r)&&o&&F(o,this.$el)&&s.push(r)}return s},watch(t){this.$create("drop",t.filter(e=>!this.getDropdown(e)),{...this.$props,boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset})},immediate:!0},toggles:{get(t,e){let{dropdown:i}=t;return N(i,e)},watch(){const t=S(this.$el,"bdt-navbar-justify");for(const e of N(".bdt-navbar-nav, .bdt-navbar-left, .bdt-navbar-right",this.$el))c(e,"flexGrow",t?N(this.dropdown,e).length:"")},immediate:!0}},disconnected(){this.dropbar&&ht(this.dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate(){return this.dropdown},handler(t){let{current:e}=t;const i=this.getActive();i&&g(i.mode,"hover")&&i.target&&!F(i.target,e)&&!i.isDelaying&&i.hide(!1)}},{name:"keydown",delegate(){return this.dropdown},handler(t){const{current:e,keyCode:i}=t,s=this.getActive();i===qt.DOWN&&Bt(e,"aria-expanded")&&(t.preventDefault(),!s||s.target!==e?(e.click(),j(this.dropContainer,"show",n=>{let{target:r}=n;return dn(r)})):dn(s.$el)),un(t,this.toggles,s)}},{name:"keydown",el(){return this.dropContainer},delegate(){return"."+this.clsDrop},handler(t){const{current:e,keyCode:i}=t;if(!g(this.dropdowns,e))return;const s=this.getActive(),n=N(qe,e),r=bt(n,a=>H(a,":focus"));if(i===qt.UP&&(t.preventDefault(),r>0&&n[r-1].focus()),i===qt.DOWN&&(t.preventDefault(),rH(e,":hover"))&&t.hide()}},{name:"beforeshow",el(){return this.dropContainer},filter(){return this.dropbar},handler(t,e){let{$el:i}=e;!S(i,this.clsDrop)||(A(this.dropbar)||Je(this.dropbarAnchor||this.$el,this.dropbar),w(i,this.clsDrop+"-dropbar"))}},{name:"show",el(){return this.dropContainer},filter(){return this.dropbar},handler(t,e){let{$el:i,pos:[s]=[]}=e;!S(i,this.clsDrop)||s==="bottom"&&this.transitionTo(C(i).bottom-C(this.dropbar).top+y(c(i,"marginBottom")),i)}},{name:"beforehide",el(){return this.dropContainer},filter(){return this.dropbar},handler(t,e){let{$el:i}=e;const s=this.getActive();H(this.dropbar,":hover")&&s?.$el===i&&!this.toggles.some(n=>s.target!==n&&H(n,":focus"))&&t.preventDefault()}},{name:"hide",el(){return this.dropContainer},filter(){return this.dropbar},handler(t,e){let{$el:i}=e;if(!S(i,this.clsDrop))return;const s=this.getActive();(!s||s?.$el===i)&&this.transitionTo(0)}}],methods:{getActive(){return X&&F(X.target,this.$el)&&X},transitionTo(t,e){const{dropbar:i}=this,s=q(i)?L(i):0;return e=s{c(e,{clip:""}),this.$update(i)})},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")}}};function un(t,e,i){const{current:s,keyCode:n}=t,r=i?.target||s,o=e.indexOf(r);n===qt.LEFT&&o>0&&(i?.hide(!1),e[o-1].focus()),n===qt.RIGHT&&o{const{x:n,y:r}=te(s);(s.type!=="scroll"&&i&&n&&Math.abs(e.x-n)>100||r&&Math.abs(e.y-r)>100)&&setTimeout(()=>{p(i,"swipe"),p(i,"swipe"+Qo(e.x,e.y,n,r))})})}})}};function Qo(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}var Uo={mixins:[ts,fn],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"bdt-offcanvas-page",clsContainer:"bdt-offcanvas-container",selPanel:".bdt-offcanvas-bar",clsFlip:"bdt-offcanvas-flip",clsContainerAnimation:"bdt-offcanvas-container-animation",clsSidebarAnimation:"bdt-offcanvas-bar-animation",clsMode:"bdt-offcanvas",clsOverlay:"bdt-offcanvas-overlay",selClose:".bdt-offcanvas-close",container:!1},computed:{clsFlip(t){let{flip:e,clsFlip:i}=t;return e?i:""},clsOverlay(t){let{overlay:e,clsOverlay:i}=t;return e?i:""},clsMode(t){let{mode:e,clsMode:i}=t;return i+"-"+e},clsSidebarAnimation(t){let{mode:e,clsSidebarAnimation:i}=t;return e==="none"||e==="reveal"?"":i},clsContainerAnimation(t){let{mode:e,clsContainerAnimation:i}=t;return e!=="push"&&e!=="reveal"?"":i},transitionElement(t){let{mode:e}=t;return e==="reveal"?A(this.panel):this.panel}},update:{read(){this.isToggled()&&!q(this.$el)&&this.hide()},events:["resize"]},events:[{name:"click",delegate(){return'a[href^="#"]'},handler(t){let{current:{hash:e},defaultPrevented:i}=t;!i&&e&&m(e,document.body)&&this.hide()}},{name:"touchstart",passive:!0,el(){return this.panel},handler(t){let{targetTouches:e}=t;e.length===1&&(this.clientY=e[0].clientY)}},{name:"touchmove",self:!0,passive:!1,filter(){return this.overlay},handler(t){t.cancelable&&t.preventDefault()}},{name:"touchmove",passive:!1,el(){return this.panel},handler(t){if(t.targetTouches.length!==1)return;const e=t.targetTouches[0].clientY-this.clientY,{scrollTop:i,scrollHeight:s,clientHeight:n}=this.panel;(n>=s||i===0&&e>0||s-i<=n&&e<0)&&t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){this.mode==="reveal"&&!S(A(this.panel),this.clsMode)&&(Ke(this.panel,"
"),w(A(this.panel),this.clsMode)),c(document.documentElement,"overflowY",this.overlay?"hidden":""),w(document.body,this.clsContainer,this.clsFlip),c(document.body,"touch-action","pan-y pinch-zoom"),c(this.$el,"display","block"),w(this.$el,this.clsOverlay),w(this.panel,this.clsSidebarAnimation,this.mode!=="reveal"?this.clsMode:""),L(document.body),w(document.body,this.clsContainerAnimation),this.clsContainerAnimation&&ta()}},{name:"hide",self:!0,handler(){_(document.body,this.clsContainerAnimation),c(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&ea(),this.mode==="reveal"&&Ze(this.panel),_(this.panel,this.clsSidebarAnimation,this.clsMode),_(this.$el,this.clsOverlay),c(this.$el,"display",""),_(document.body,this.clsContainer,this.clsFlip),c(document.documentElement,"overflowY","")}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&Gt(t.type,"Left")^this.flip&&this.hide()}}]};function ta(){pn().content+=",user-scalable=0"}function ea(){const t=pn();t.content=t.content.replace(/,user-scalable=0$/,"")}function pn(){return m('meta[name="viewport"]',document.head)||G(document.head,'')}var ia={mixins:[tt,mt],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".bdt-modal",selContent:".bdt-modal-dialog",minHeight:150},computed:{container(t,e){let{selContainer:i}=t;return ot(e,i)},content(t,e){let{selContent:i}=t;return ot(e,i)}},resizeTargets(){return[this.container,this.content]},update:{read(){return!this.content||!this.container||!q(this.$el)?!1:{max:Math.max(this.minHeight,L(this.container)-($(this.content).height-L(this.$el)))}},write(t){let{max:e}=t;c(this.$el,{minHeight:this.minHeight,maxHeight:e})},events:["resize"]}},sa={mixins:[mt],props:["width","height"],resizeTargets(){return[this.$el,A(this.$el)]},connected(){w(this.$el,"bdt-responsive-width")},update:{read(){return q(this.$el)&&this.width&&this.height?{width:Ie(A(this.$el)),height:this.height}:!1},write(t){L(this.$el,we.contain({height:this.height,width:this.width},t).height)},events:["resize"]}},na={props:{offset:Number},data:{offset:0},methods:{async scrollTo(t){t=t&&m(t)||document.body,p(this.$el,"beforescroll",[this,t])&&(await Gi(t,{offset:this.offset}),p(this.$el,"scrolled",[this,t]))}},events:{click(t){t.defaultPrevented||(t.preventDefault(),this.scrollTo(gn(this.$el)))}}};function gn(t){return document.getElementById(decodeURIComponent(t.hash).substring(1))}var ra={mixins:[Ne],args:"cls",props:{cls:String,target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"bdt-scrollspy-inview"}),computed:{elements:{get(t,e){let{target:i}=t;return i?N(i,e):[e]},watch(t,e){this.hidden&&c(ye(t,":not(."+this.inViewClass+")"),"visibility","hidden"),me(t,e)||this.$reset()},immediate:!0}},connected(){this._data.elements=new Map,this.registerObserver(oe(this.elements,t=>{const e=this._data.elements;for(const{target:i,isIntersecting:s}of t){e.has(i)||e.set(i,{cls:rt(i,"bdt-scrollspy-class")||this.cls});const n=e.get(i);!this.repeat&&n.show||(n.show=s)}this.$emit()},{rootMargin:Z(this.offsetTop,"height")-1+"px "+(Z(this.offsetLeft,"width")-1)+"px"},!1))},disconnected(){for(const[t,e]of this._data.elements.entries())_(t,this.inViewClass,e?.cls||"")},update:[{write(t){for(const[e,i]of t.elements.entries())i.show&&!i.inview&&!i.queued?(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then(()=>new Promise(s=>setTimeout(s,this.delay))).then(()=>{this.toggle(e,!0),setTimeout(()=>{i.queued=!1,this.$emit()},300)})):!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1)}}],methods:{toggle(t,e){const i=this._data.elements.get(t);if(i.off==null||i.off(),c(t,"visibility",!e&&this.hidden?"hidden":""),R(t,this.inViewClass,e),R(t,i.cls),/\bbdt-animation-/.test(i.cls)){const s=()=>Ni(t,"bdt-animation-[\\w-]+");e?i.off=j(t,"animationcancel animationend",s):s()}p(t,e?"inview":"outview"),i.inview=e,this.$update(t)}}},oa={mixins:[Ne],props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"bdt-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:{get(t,e){return N('a[href^="#"]',e).filter(i=>i.hash)},watch(t){this.scroll&&this.$create("scroll",t,{offset:this.offset||0})},immediate:!0},elements(t){let{closest:e}=t;return ot(this.links,e||"*")}},update:[{read(){const t=this.links.map(gn).filter(Boolean),{length:e}=t;if(!e||!q(this.$el))return!1;const[i]=Tt(t,/auto|scroll/,!0),{scrollTop:s,scrollHeight:n}=i,r=ut(i),o=n-r.height;let a=!1;if(s===o)a=e-1;else{for(let l=0;l0);l++)a=+l;a===!1&&this.overflow&&(a=0)}return{active:a}},write(t){let{active:e}=t;const i=e!==!1&&!S(this.elements[e],this.cls);this.links.forEach(s=>s.blur());for(let s=0;s
'),this.isFixed=!1,this.setActive(!1)},disconnected(){this.isFixed&&(this.hide(),_(this.selTarget,this.clsInactive)),ht(this.placeholder),this.placeholder=null},events:[{name:"resize",el(){return window},handler(){this.$emit("resize")}},{name:"load hashchange popstate",el(){return window},filter(){return this.targetOffset!==!1},handler(){!location.hash||Rt(window)===0||setTimeout(()=>{const t=C(m(location.hash)),e=C(this.$el);this.isFixed&&Si(t,e)&&Rt(window,t.top-e.height-Z(this.targetOffset,"height",this.placeholder)-Z(this.offset,"height",this.placeholder))})}}],update:[{read(t,e){let{height:i,margin:s}=t;if(this.inactive=!this.matchMedia||!q(this.$el),this.inactive)return!1;const n=this.active&&e.has("resize");n&&(c(this.selTarget,"transition","0s"),this.hide()),this.active||(i=C(this.$el).height,s=c(this.$el,"margin")),n&&(this.show(),requestAnimationFrame(()=>c(this.selTarget,"transition","")));const r=this.isFixed?this.placeholder:this.$el,o=L(window);let a=this.position;this.overflowFlip&&i>o&&(a=a==="top"?"bottom":"top");let l=Z(this.offset,"height",r);a==="bottom"&&(i300||n!==r)&&(t.initScroll=o,t.initTimestamp=f),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-o)<=30&&Math.abs(a-o)<=10))if(this.inactive||oo&&(ft.cancel(this.$el),this.hide());return}this.isFixed=!1,this.animation&&o>u?(ft.cancel(this.$el),ft.out(this.$el,this.animation).then(()=>this.hide(),E)):this.hide()}else this.isFixed?this.update():this.animation&&o>u?(ft.cancel(this.$el),this.show(),ft.in(this.$el,this.animation).catch(E)):this.show()},events:["resize","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){this.setActive(!1),_(this.$el,this.clsFixed,this.clsBelow),c(this.$el,{position:"",top:"",width:""}),this.placeholder.hidden=!0},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:s=0,start:n,end:r,offset:o,topOffset:a,height:l,offsetParentTop:h}=this._data;const u=n!==0||e>n;let d="fixed";e>r&&(o+=r-h,d="absolute"),i&&(o-=s),c(this.$el,{position:d,top:o+"px",width:t}),this.setActive(u),R(this.$el,this.clsBelow,e>a+l),w(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(Mi(this.selTarget,this.clsInactive,this.clsActive),e!==t&&p(this.$el,"active")):(Mi(this.selTarget,this.clsActive,this.clsInactive),e!==t&&p(this.$el,"inactive"))}}};function mn(t,e,i,s){if(!t)return 0;if(Et(t)||O(t)&&t.match(/^-?\d/))return i+Z(t,"height",e,!0);{const n=t===!0?A(e):$t(t,e);return C(n).bottom-(s&&n&&F(e,n)?y(c(n,"paddingBottom")):0)}}function vn(t){return t==="true"?!0:t==="false"?!1:t}var wn={mixins:[Oe,fn,It],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number},data:{connect:"~.bdt-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"bdt-active",attrItem:"bdt-switcher-item"},computed:{connects:{get(t,e){let{connect:i}=t;return ke(i,e)},watch(t){this.swiping&&c(t,"touch-action","pan-y pinch-zoom");const e=this.index();this.connects.forEach(i=>D(i).forEach((s,n)=>R(s,this.cls,n===e)))},immediate:!0},toggles:{get(t,e){let{toggle:i}=t;return N(i,e).filter(s=>!H(s,".bdt-disabled *, .bdt-disabled, [disabled]"))},watch(t){const e=this.index();this.show(~e?e:t[this.active]||t[0])},immediate:!0},children(){return D(this.$el).filter(t=>this.toggles.some(e=>F(e,t)))},swipeTarget(){return this.connects}},connected(){this.lazyload(this.$el,this.connects),zi(()=>this.$emit())},events:[{name:"click",delegate(){return this.toggle},handler(t){t.preventDefault(),this.show(t.current)}},{name:"click",el(){return this.connects.concat(this.itemNav?ke(this.itemNav,this.$el):[])},delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(t){t.preventDefault(),this.show(rt(t.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler(t){let{type:e}=t;this.show(Gt(e,"Left")?"next":"previous")}}],methods:{index(){return bt(this.children,t=>S(t,this.cls))},show(t){const e=this.index(),i=Zt(t,this.toggles,e),s=Zt(this.children[i],D(this.$el));D(this.$el).forEach((r,o)=>{R(r,this.cls,s===o),k(this.toggles[o],"aria-expanded",s===o)});const n=e>=0&&e!==i;this.connects.forEach(async r=>{let{children:o}=r;await this.toggleElement(b(o).filter(a=>S(a,this.cls)),!1,n),await this.toggleElement(o[s],!0,n)})}}},la={mixins:[tt],extends:wn,props:{media:Boolean},data:{media:960,attrItem:"bdt-tab-item"},connected(){const t=S(this.$el,"bdt-tab-left")?"bdt-tab-left":S(this.$el,"bdt-tab-right")?"bdt-tab-right":!1;t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};const ha=32;var ca={mixins:[Oe,hi,It],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:{get(t,e){let{href:i,target:s}=t;return s=ke(s||i,e),s.length&&s||[e]},watch(){this.updateAria()},immediate:!0}},connected(){!g(this.mode,"media")&&!Ve(this.$el)&&k(this.$el,"tabindex","0"),this.lazyload(this.$el,this.target),zi(()=>this.$emit())},events:[{name:ct,filter(){return g(this.mode,"hover")},handler(t){!kt(t)||this._showState||(p(this.$el,"focus"),j(document,ct,()=>p(this.$el,"blur"),!0,e=>!F(e.target,this.$el)),g(this.mode,"click")&&(this._preventClick=!0))}},{name:jt+" "+ne+" focus blur",filter(){return g(this.mode,"hover")},handler(t){if(kt(t))return;const e=g([jt,"focus"],t.type),i=k(this.$el,"aria-expanded");if(!(!e&&(t.type===ne&&H(this.$el,":focus")||t.type==="blur"&&H(this.$el,":hover")))){if(this._showState&&e&&i!==this._showState){e||(this._showState=null);return}this._showState=e?i:null,this.toggle("toggle"+(e?"show":"hide"))}}},{name:"keydown",filter(){return g(this.mode,"click")&&!pt(this.$el,"input")},handler(t){t.keyCode===ha&&(t.preventDefault(),this.$el.click())}},{name:"click",handler(t){let e;if((ot(t.target,'a[href="#"], a[href=""]')||(e=ot(t.target,"a[href]"))&&(k(this.$el,"aria-expanded")!=="true"||e.hash&&H(this.target,e.hash)))&&t.preventDefault(),this._preventClick)return this._preventClick=null;!g(this.mode,"click")||this.toggle()}},{name:"toggled",self:!0,el(){return this.target},handler(t,e){t.target===this.target[0]&&this.updateAria(e)}},{name:"mediachange",filter(){return g(this.mode,"media")},el(){return this.target},handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!p(this.target,t||"toggle",[this]))return;if(!this.queued)return this.toggleElement(this.target);const e=this.target.filter(s=>S(s,this.clsLeave));if(e.length){for(const s of this.target){const n=g(e,s);this.toggleElement(s,n,n)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1),await this.toggleElement(this.target.filter(s=>!g(i,s)),!0)},updateAria(t){g(this.mode,"media")||k(this.$el,"aria-expanded",Le(t)?t:this.isToggled(this.target))}}},ua=Object.freeze({__proto__:null,Accordion:Xs,Alert:Xr,Cover:Jr,Drop:Zs,Dropdown:Zs,FormCustom:Qr,Grid:io,HeightMatch:oo,HeightViewport:ho,Icon:Qi,Img:Ho,Leader:Yo,Margin:Qs,Modal:Xo,Nav:Ko,Navbar:Zo,Offcanvas:Uo,OverflowAuto:ia,Responsive:sa,Scroll:na,Scrollspy:ra,ScrollspyNav:oa,Sticky:aa,Svg:en,Switcher:wn,Tab:la,Toggle:ca,Video:Js,Close:Oo,Spinner:No,SlidenavNext:ln,SlidenavPrevious:ln,SearchIcon:_o,Marker:vt,NavbarToggleIcon:vt,OverlayIcon:vt,PaginationNext:vt,PaginationPrevious:vt,Totop:vt});yt(ua,(t,e)=>et.component(e,t)),Yr(et);const da=["days","hours","minutes","seconds"];var fa={mixins:[tt],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".bdt-countdown-%unit%"},connected(){this.date=Date.parse(this.$props.date),this.start()},disconnected(){this.stop()},events:[{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}}],methods:{start(){this.stop(),this.update(),this.timer=setInterval(this.update,1e3)},stop(){clearInterval(this.timer)},update(){const t=pa(this.date);(!this.date||t.total<=0)&&(this.stop(),t.days=t.hours=t.minutes=t.seconds=0);for(const e of da){const i=m(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=String(Math.trunc(t[e]));s=s.length<2?"0"+s:s,i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Ot(i,s.map(()=>"").join("")),s.forEach((n,r)=>i.children[r].textContent=n))}}}};function pa(t){const e=t-Date.now();return{total:e,seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24}}const es="bdt-transition-leave",is="bdt-transition-enter";function bn(t,e,i,s){s===void 0&&(s=0);const n=ci(e,!0),r={opacity:1},o={opacity:0},a=u=>()=>n===ci(e)?u():Promise.reject(),l=a(()=>(w(e,es),Promise.all(yn(e).map((u,d)=>new Promise(f=>setTimeout(()=>I.start(u,o,i/2,"ease").then(f),d*s)))).then(()=>_(e,es)))),h=a(()=>{const u=L(e);return w(e,is),t(),c(D(e),{opacity:0}),new Promise(d=>requestAnimationFrame(()=>{const f=D(e),v=L(e);c(e,"alignContent","flex-start"),L(e,u);const P=yn(e);c(f,o);const x=P.map((K,M)=>new Promise(z=>setTimeout(()=>I.start(K,r,i/2,"ease").then(z),M*s)));u!==v&&x.push(I.start(e,{height:v},i/2+P.length*s,"ease")),Promise.all(x).then(()=>{_(e,is),n===ci(e)&&(c(e,{height:"",alignContent:""}),c(f,{opacity:""}),delete e.dataset.transition),d()})}))});return S(e,es)?xn(e).then(h):S(e,is)?xn(e).then(l).then(h):l().then(h)}function ci(t,e){return e&&(t.dataset.transition=1+ci(t)),_t(t.dataset.transition)||0}function xn(t){return Promise.all(D(t).filter(I.inProgress).map(e=>new Promise(i=>j(e,"transitionend transitioncanceled",i))))}function yn(t){return Zi(D(t)).reduce((e,i)=>e.concat(We(i.filter(s=>ti(s)),"offsetLeft")),[])}function ga(t,e,i){return new Promise(s=>requestAnimationFrame(()=>{let n=D(e);const r=n.map(a=>$n(a,!0)),o=c(e,["height","padding"]);I.cancel(e),n.forEach(I.cancel),kn(e),t(),n=n.concat(D(e).filter(a=>!g(n,a))),Promise.resolve().then(()=>{B.flush();const a=c(e,["height","padding"]),[l,h]=ma(e,n,r);n.forEach((u,d)=>h[d]&&c(u,h[d])),c(e,{display:"block",...o}),requestAnimationFrame(()=>{const u=n.map((d,f)=>A(d)===e&&I.start(d,l[f],i,"ease")).concat(I.start(e,a,i,"ease"));Promise.all(u).then(()=>{n.forEach((d,f)=>A(d)===e&&c(d,"display",l[f].opacity===0?"none":"")),kn(e)},E).then(s)})})}))}function $n(t,e){const i=c(t,"zIndex");return q(t)?{display:"",opacity:e?c(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?Qt(t):i,...Sn(t)}:!1}function ma(t,e,i){const s=e.map((r,o)=>A(r)&&o in i?i[o]?q(r)?Sn(r):{opacity:0}:{opacity:q(r)?1:0}:!1),n=s.map((r,o)=>{const a=A(e[o])===t&&(i[o]||$n(e[o]));if(!a)return!1;if(!r)delete a.opacity;else if(!("opacity"in r)){const{opacity:l}=a;l%1?r.opacity=1:delete a.opacity}return a});return[s,n]}function kn(t){c(t.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),c(t,{height:"",display:"",padding:""})}function Sn(t){const{height:e,width:i}=C(t),{top:s,left:n}=Ge(t),{marginLeft:r,marginTop:o}=c(t,["marginTop","marginLeft"]);return{top:s,left:n,height:e,width:i,marginLeft:r,marginTop:o,transform:""}}var Tn={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e){e===void 0&&(e=this.$el);const i=this.animation;return(i==="fade"?bn:i==="delayed-fade"?function(){for(var n=arguments.length,r=new Array(n),o=0;o(t(),Promise.resolve()))(t,e,this.duration).then(()=>this.$update(e,"resize"),E)}}},va={mixins:[Tn],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"bdt-filter-control",cls:"bdt-active",duration:250},computed:{toggles:{get(t,e){let{attrItem:i}=t;return N("["+i+"],[data-"+i+"]",e)},watch(){if(this.updateState(),this.selActive!==!1){const t=N(this.selActive,this.$el);this.toggles.forEach(e=>R(e,this.cls,g(t,e)))}},immediate:!0},children:{get(t,e){let{target:i}=t;return N(i+" > *",e)},watch(t,e){e&&!ya(t,e)&&this.updateState()},immediate:!0}},events:[{name:"click",delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(t){t.preventDefault(),this.apply(t.current)}}],methods:{apply(t){const e=this.getState(),i=In(t,this.attrItem,this.getState());wa(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>S(t,this.cls)).reduce((t,e)=>In(e,this.attrItem,t),{filter:{"":""},sort:[]})},setState(t,e){e===void 0&&(e=!0),t={filter:{"":""},sort:[],...t},p(this.$el,"beforeFilter",[this,t]),this.toggles.forEach(i=>R(i,this.cls,!!xa(i,this.attrItem,t))),Promise.all(N(this.target,this.$el).map(i=>{const s=()=>{ba(t,i,D(i)),this.$update(this.$el)};return e?this.animate(s,i):s()})).then(()=>p(this.$el,"afterFilter",[this]))},updateState(){B.write(()=>this.setState(this.getState(),!1))}}};function Cn(t,e){return Ee(rt(t,e),["filter"])}function wa(t,e){return["filter","sort"].every(i=>me(t[i],e[i]))}function ba(t,e,i){const s=$a(t);i.forEach(o=>c(o,"display",s&&!H(o,s)?"none":""));const[n,r]=t.sort;if(n){const o=ka(i,n,r);me(o,i)||G(e,o)}}function In(t,e,i){const s=Cn(t,e),{filter:n,group:r,sort:o,order:a="asc"}=s;return(n||Y(o))&&(r?n?(delete i.filter[""],i.filter[r]=n):(delete i.filter[r],(ge(i.filter)||""in i.filter)&&(i.filter={"":n||""})):i.filter={"":n||""}),Y(o)||(i.sort=[o,a]),i}function xa(t,e,i){let{filter:s={"":""},sort:[n,r]}=i;const{filter:o="",group:a="",sort:l,order:h="asc"}=Cn(t,e);return Y(l)?a in s&&o===s[a]||!o&&a&&!(a in s)&&!s[""]:n===l&&r===h}function ya(t,e){return t.length===e.length&&t.every(i=>e.includes(i))}function $a(t){let{filter:e}=t,i="";return yt(e,s=>i+=s||""),i}function ka(t,e,i){return[...t].sort((s,n)=>rt(s,e).localeCompare(rt(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}var ss={slide:{show(t){return[{transform:W(t*-100)},{transform:W()}]},percent(t){return De(t)},translate(t,e){return[{transform:W(e*-100*t)},{transform:W(e*100*(1-t))}]}}};function De(t){return Math.abs(c(t,"transform").split(",")[4]/t.offsetWidth)||0}function W(t,e){return t===void 0&&(t=0),e===void 0&&(e="%"),t+=t?e:"","translate3d("+t+", 0, 0)"}function he(t){return"scale3d("+t+", "+t+", 1)"}var An={...ss,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:he(1-.2)},{opacity:1,transform:he(1)}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,transform:he(1-.2*t)},{opacity:t,transform:he(1-.2+.2*t)}]}}};function Sa(t,e,i,s){let{animation:n,easing:r}=s;const{percent:o,translate:a,show:l=E}=n,h=l(i),u=new Re;return{dir:i,show(d,f,v){f===void 0&&(f=0);const P=v?"linear":r;return d-=Math.round(d*U(f,-1,1)),this.translate(f),ui(e,"itemin",{percent:f,duration:d,timing:P,dir:i}),ui(t,"itemout",{percent:1-f,duration:d,timing:P,dir:i}),Promise.all([I.start(e,h[1],d,P),I.start(t,h[0],d,P)]).then(()=>{this.reset(),u.resolve()},E),u.promise},cancel(){I.cancel([e,t])},reset(){for(const d in h[0])c([e,t],d,"")},forward(d,f){return f===void 0&&(f=this.percent()),I.cancel([e,t]),this.show(d,f,!0)},translate(d){this.reset();const f=a(d,i);c(e,f[1]),c(t,f[0]),ui(e,"itemtranslatein",{percent:d,dir:i}),ui(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t?.offsetWidth}}}function ui(t,e,i){p(t,zt(e,!1,!1,i))}var Ta={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){k(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!m(":focus",this.$el))&&(!this.pauseOnHover||!H(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}},Ca={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=te(i).x*(J?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:ct,delegate(){return this.selSlides},handler(t){!this.draggable||!kt(t)&&Ia(t.target)||ot(t.target,xe)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,T(document,se,this.move,{passive:!1}),T(document,gt+" "+re+" input",this.end,!0),c(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)o;)this.drag-=o*this.dir,s=r,n-=o,r=this.getIndex(s+this.dir,s),o=this._getDistance(s,r)||i[s].offsetWidth;this.percent=n/o;const a=i[s],l=i[r],h=this.index!==r,u=s===r;let d;[this.index,this.prevIndex].filter(f=>!g([r,s],f)).forEach(f=>{p(i[f],"itemhidden",[this]),u&&(d=!0,this.prevIndex=s)}),(this.index===s&&this.prevIndex!==s||d)&&p(i[this.index],"itemshown",[this]),h&&(this.prevIndex=s,this.index=r,!u&&p(a,"beforeitemhide",[this]),p(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l),h&&(!u&&p(a,"itemhide",[this]),p(l,"itemshow",[this]))},end(){if(Ut(document,se,this.move,{passive:!1}),Ut(document,gt+" "+re+" input",this.end,!0),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(J?this.dir*(J?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}c(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function Ia(t){return!t.children.length&&t.childNodes.length}var Aa={data:{selNav:!1},computed:{nav(t,e){let{selNav:i}=t;return m(i,e)},selNavItem(t){let{attrItem:e}=t;return"["+e+"],[data-"+e+"]"},navItems(t,e){return N(this.selNavItem,e)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&Ot(this.nav,this.slides.map((t,e)=>"
  • ').join("")),this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(t){t.preventDefault(),this.show(rt(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=rt(e,this.attrItem);R(e,this.clsActive,_t(i)===t),R(e,"bdt-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},Pn={mixins:[Ta,Ca,Aa,mt],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"bdt-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){_(this.slides,this.clsActive)},computed:{duration(t,e){let{velocity:i}=t;return En(e.offsetWidth/i)},list(t,e){let{selList:i}=t;return m(i,e)},maxIndex(){return this.length-1},selSlides(t){let{selList:e,selSlides:i}=t;return e+" "+(i||"> *")},slides:{get(){return N(this.selSlides,this.$el)},watch(){this.$reset()}},length(){return this.slides.length}},methods:{show(t,e){if(e===void 0&&(e=!1),this.dragging||!this.length)return;const{stack:i}=this,s=e?0:i.length,n=()=>{i.splice(s,1),i.length&&this.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),o=S(this.slides,this.clsActive)&&this.slides[r],a=this.getIndex(t,this.index),l=this.slides[a];if(o===l){n();return}if(this.dir=Pa(t,r),this.prevIndex=r,this.index=a,o&&!p(o,"beforeitemhide",[this])||!p(l,"beforeitemshow",[this,o])){this.index=this.prevIndex,n();return}const h=this._show(o,l,e).then(()=>(o&&p(o,"itemhidden",[this]),p(l,"itemshown",[this]),new Promise(u=>{B.write(()=>{i.shift(),i.length?this.show(i.shift(),!0):this._transitioner=null,u()})})));return o&&p(o,"itemhide",[this]),p(l,"itemshow",[this]),h},getIndex(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.index),U(Zt(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.prevIndex),this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e,i){e===void 0&&(e=this.prevIndex),i===void 0&&(i=this.index);const s=this._getTransitioner(e!==i?e:!1,i);return s.translate(t),s},_getTransitioner(t,e,i,s){return t===void 0&&(t=this.prevIndex),e===void 0&&(e=this.index),i===void 0&&(i=this.dir||1),s===void 0&&(s=this.transitionOptions),new this.Transitioner(Jt(t)?this.slides[t]:t,Jt(e)?this.slides[e]:e,i*(J?-1:1),s)}}};function Pa(t,e){return t==="next"?1:t==="previous"||t({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"bdt-open",clsPage:"bdt-lightbox-page",selList:".bdt-lightbox-items",attrItem:"bdt-lightbox-item",selClose:".bdt-close-large",selCaption:".bdt-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:An,template:'
      '}),created(){const t=m(this.template),e=m(this.selList,t);this.items.forEach(()=>G(e,"
    • ")),this.$mount(G(this.container,t))},computed:{caption(t,e){let{selCaption:i}=t;return m(i,e)}},events:[{name:se+" "+ct+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),_(this.slides,this.clsActive),I.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(t){if(!(!this.isToggled(this.$el)||!this.draggable))switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=An.scale,_(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){Ot(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:n="",poster:r,attrs:o={}}=e;if(this.setItem(e,""),!i)return;let a;const l={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","bdt-responsive":"","bdt-video":""+this.videoAutoplay};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:h,height:u}=await vs(i,o.srcset,o.size);this.setItem(e,Be("img",{src:i,width:h,height:u,alt:n,...o}))}catch{this.setError(e)}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const h=Be("video",{src:i,poster:r,controls:"",playsinline:"","bdt-video":""+this.videoAutoplay,...o});T(h,"loadedmetadata",()=>{k(h,{width:h.videoWidth,height:h.videoHeight}),this.setItem(e,h)}),T(h,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,Be("iframe",{src:i,frameborder:"0",allowfullscreen:"",class:"bdt-lightbox-iframe",...o}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,Be("iframe",{src:"https://www.youtube"+(a[1]||"")+".com/embed/"+a[2]+(a[3]?"?"+a[3]:""),width:1920,height:1080,...l,...o}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:h,width:u}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(i),{credentials:"omit"})).json();this.setItem(e,Be("iframe",{src:"https://player.vimeo.com/video/"+a[1]+(a[2]?"?"+a[2]:""),width:u,height:h,...l,...o}))}catch{this.setError(e)}}}],methods:{loadItem(t){t===void 0&&(t=this.index);const e=this.getItem(t);this.getSlide(e).childElementCount||p(this.$el,"itemload",[e])},getItem(t){return t===void 0&&(t=this.index),this.items[Zt(t,this.slides)]},setItem(t,e){p(this.$el,"itemloaded",[this,Ot(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),w(this.$el,"bdt-active","bdt-transition-active")},hideControls(){_(this.$el,"bdt-active","bdt-transition-active")}}};function Be(t,e){const i=Ft("<"+t+">");return k(i,e),i}var Ea={install:_a,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get(t,e){let{toggle:i}=t;return N(i,e)},watch(){this.hide()}}},disconnected(){this.hide()},events:[{name:"click",delegate(){return this.toggle+":not(.bdt-disabled)"},handler(t){t.preventDefault(),this.show(t.current)}}],methods:{show(t){const e=cs(this.toggles.map(Nn),"source");if(Xt(t)){const{source:i}=Nn(t);t=bt(e,s=>{let{source:n}=s;return i===n})}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),T(this.panel.$el,"hidden",()=>this.panel=!1),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function _a(t,e){t.lightboxPanel||t.component("lightboxPanel",On),xt(e.props,t.component("lightboxPanel").options.props)}function Nn(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=rt(t,i);return e.attrs=Ee(e.attrs),e}var Oa={mixins:[le],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"bdt-notification",clsClose:"bdt-notification-close",clsMsg:"bdt-notification-message"},install:Na,computed:{marginProp(t){let{pos:e}=t;return"margin"+(lt(e,"top")?"Top":"Bottom")},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=m("."+this.clsContainer+"-"+this.pos,this.container)||G(this.container,'
      ');this.$mount(G(t,'
      '+this.message+"
      "))},async connected(){const t=y(c(this.$el,this.marginProp));await I.start(c(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){ot(t.target,'a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[jt](){this.timer&&clearTimeout(this.timer)},[ne](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=A(i);p(i,"close",[this]),ht(i),s!=null&&s.hasChildNodes()||ht(s)};this.timer&&clearTimeout(this.timer),t||await I.start(this.$el,this.startProps),e(this.$el)}}};function Na(t){t.notification.closeAll=function(e,i){St(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}const di={x:fi,y:fi,rotate:fi,scale:fi,color:rs,backgroundColor:rs,borderColor:rs,blur:Vt,hue:Vt,fopacity:Vt,grayscale:Vt,invert:Vt,saturate:Vt,sepia:Vt,opacity:Da,stroke:Ba,bgx:Dn,bgy:Dn},{keys:ns}=Object;var Mn={mixins:[hi],props:Hn(ns(di),"list"),data:Hn(ns(di),void 0),computed:{props(t,e){return ns(di).reduce((i,s)=>(Y(t[s])||(i[s]=di[s](s,e,t[s].slice())),i),{})}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))c(this.$el,t,"")},getCss(t){const e={transform:"",filter:""};for(const i in this.props)this.props[i](e,t);return e}}};function fi(t,e,i){let s=gi(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t="translate"+wt(t),n=r=>y(y(r).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=r=>gi([r])?Z(r,"width",e,!0)/e.offsetWidth:r),i.length===1&&i.unshift(t==="scale"?1:0),i=ce(i,n),(r,o)=>{r.transform+=" "+t+"("+ze(i,o)+s+")"}}function rs(t,e,i){return i.length===1&&i.unshift(He(e,t,"")),i=ce(i,s=>Ma(e,s)),(s,n)=>{const[r,o,a]=zn(i,n),l=r.map((h,u)=>(h+=a*(o[u]-h),u===3?y(h):parseInt(h,10))).join(",");s[t]="rgba("+l+")"}}function Ma(t,e){return He(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(y)}function Vt(t,e,i){i.length===1&&i.unshift(0);const s=gi(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=ce(i),(n,r)=>{const o=ze(i,r);n.filter+=" "+t+"("+(o+s)+")"}}function Da(t,e,i){return i.length===1&&i.unshift(He(e,t,"")),i=ce(i),(s,n)=>{s[t]=ze(i,n)}}function Ba(t,e,i){i.length===1&&i.unshift(0);const s=gi(i),n=rn(e);return i=ce(i.reverse(),r=>(r=y(r),s==="%"?r*n/100:r)),i.some(r=>{let[o]=r;return o})?(c(e,"strokeDasharray",n),(r,o)=>{r.strokeDashoffset=ze(i,o)}):E}function Dn(t,e,i){i.length===1&&i.unshift(0),t=t.substr(-1);const s=t==="y"?"height":"width";i=ce(i,r=>Z(r,s,e));const n=He(e,"background-position-"+t,"");return He(e,"backgroundSize","")==="cover"?za(t,e,i,n,s):Bn(t,i,n)}function za(t,e,i,s,n){const r=Ha(e);if(!r.width)return E;const o=i.map(M=>{let[z]=M;return z}),a=Math.min(...o),l=Math.max(...o),h=o.indexOf(a)u){const M=f[n]/Z(s,n,e,!0);M&&(d-=(P-u)/M)}const x=we.cover(r,f),K=Bn(t,i,d+"px");return(M,z)=>{K(M,z),M.backgroundSize=x.width+"px "+x.height+"px",M.backgroundRepeat="no-repeat"}}function Bn(t,e,i){return function(s,n){s["background-position-"+t]="calc("+i+" + "+ze(e,n)+"px)"}}const pi={};function Ha(t){const e=c(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(pi[e])return pi[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{pi[e]=os(i),p(t,zt("load",!1))},os(i)):pi[e]=os(i)}function os(t){return{width:t.naturalWidth,height:t.naturalHeight}}function ce(t,e){e===void 0&&(e=y);const i=[],{length:s}=t;let n=0;for(let r=0;r0;u--)i[r-u][1]=l+h*(n-u+1);n=0}}return i}function zn(t,e){const i=bt(t.slice(1),s=>{let[,n]=s;return e<=n})+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function ze(t,e){const[i,s,n]=zn(t,e);return Jt(i)?i+Math.abs(i-s)*n*(i(i[s]=e,i),{})}var La={mixins:[Mn,mt,Ne],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target(t,e){let{target:i}=t;return Fn(i&&$t(i,e)||e)},start(t){let{start:e}=t;return Z(e,"height",this.target,!0)},end(t){let{end:e,viewport:i}=t;return Z(e||(i=(1-i)*100)&&i+"vh+"+i+"%","height",this.target,!0)}},update:{read(t,e){let{percent:i}=t;if(e.has("scroll")||(i=!1),!this.matchMedia)return;const s=i;return i=Wa(Xi(this.target,this.start,this.end),this.easing),{percent:i,style:s===i?!1:this.getCss(i)}},write(t){let{style:e}=t;if(!this.matchMedia){this.reset();return}e&&c(this.$el,e)},events:["scroll","resize"]}};function Wa(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,-e+1)}function Fn(t){return t?"offsetTop"in t?t:Fn(A(t)):document.documentElement}var Ln={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);(!~this.prevIndex||this.index!==t)&&this.show(t)},events:["resize"]}},Wn={mixins:[Oe],connected(){this.lazyload(this.slides,this.getAdjacentSlides)}};function ja(t,e,i,s){let{center:n,easing:r,list:o}=s;const a=new Re,l=t?Fe(t,o,n):Fe(e,o,n)+$(e).width*i,h=e?Fe(e,o,n):l+$(t).width*i*(J?-1:1);return{dir:i,show(u,d,f){d===void 0&&(d=0);const v=f?"linear":r;return u-=Math.round(u*U(d,-1,1)),this.translate(d),d=t?d:U(d,0,1),as(this.getItemIn(),"itemin",{percent:d,duration:u,timing:v,dir:i}),t&&as(this.getItemIn(!0),"itemout",{percent:1-d,duration:u,timing:v,dir:i}),I.start(o,{transform:W(-h*(J?-1:1),"px")},u,v).then(a.resolve,E),a.promise},cancel(){I.cancel(o)},reset(){c(o,"transform","")},forward(u,d){return d===void 0&&(d=this.percent()),I.cancel(o),this.show(u,d,!0)},translate(u){const d=this.getDistance()*i*(J?-1:1);c(o,"transform",W(U(-h+(d-d*u),-mi(o),$(o).width)*(J?-1:1),"px"));const f=this.getActives(),v=this.getItemIn(),P=this.getItemIn(!0);u=t?U(u,-1,1):0;for(const x of D(o)){const K=g(f,x),M=x===v,z=x===P,at=M||!z&&(K||i*(J?-1:1)===-1^vi(x,o)>vi(t||e));as(x,"itemtranslate"+(at?"in":"out"),{dir:i,percent:z?1-u:M?u:K?1:0})}},percent(){return Math.abs((c(o,"transform").split(",")[4]*(J?-1:1)+l)/(h-l))},getDistance(){return Math.abs(h-l)},getItemIn(u){u===void 0&&(u=!1);let d=this.getActives(),f=Rn(o,Fe(e||t,o,n));if(u){const v=d;d=f,f=v}return f[bt(f,v=>!g(d,v))]},getActives(){return Rn(o,Fe(t||e,o,n))}}}function Fe(t,e,i){const s=vi(t,e);return i?s-Ra(t,e):Math.min(s,jn(e))}function jn(t){return Math.max(0,mi(t)-$(t).width)}function mi(t){return D(t).reduce((e,i)=>$(i).width+e,0)}function Ra(t,e){return $(e).width/2-$(t).width/2}function vi(t,e){return t&&(Ge(t).left+(J?$(t).width-$(e).width:0))*(J?-1:1)||0}function Rn(t,e){e-=1;const i=$(t).width,s=e+i+2;return D(t).filter(n=>{const r=vi(n,t),o=r+Math.min($(n).width,i);return r>=e&&o<=s})}function as(t,e,i){p(t,zt(e,!1,!1,i))}var qa={mixins:[tt,Pn,Ln,Wn],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"bdt-slider-item",selList:".bdt-slider-items",selNav:".bdt-slider-nav",clsContainer:"bdt-slider-container",Transitioner:ja},computed:{avgWidth(){return mi(this.list)/this.length},finite(t){let{finite:e}=t;return e||Math.ceil(mi(this.list)){if(t>=e)return!0;t+=$(s).width});return~i?i:this.length-1},sets(t){let{sets:e}=t;if(!e)return;let i=0;const s=[],n=$(this.list).width;for(let r=0;rn&&(i=0),this.center?in/2&&(s.push(+r),i=n/2-o/2):i===0&&s.push(Math.min(+r,this.maxIndex)),i+=o}if(s.length)return s},transitionOptions(){return{center:this.center,list:this.list}}},connected(){R(this.$el,this.clsContainer,!m("."+this.clsContainer,this.$el))},update:{write(){for(const t of this.navItems){const e=_t(rt(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!g(this.sets,e))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!g(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.indexthis.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let s=0;s0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=En(this.avgWidth/this.velocity)*($(this.slides[i]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&w(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){c(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,r)=>c(n,"order",this.dir>0&&r=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=$(this.list).width/2-$(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),r=this.slides[n];c(r,"order",n>t?-2:-1),i-=$(r).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),e=[this.clsActive,(!this.sets||g(this.sets,y(this.index)))&&this.clsActivated||""];for(const i of this.slides)R(i,e,g(t,i))},getValidIndex(t,e){if(t===void 0&&(t=this.index),e===void 0&&(e=this.prevIndex),t=this.getIndex(t,e),!this.sets)return t;let i;do{if(g(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=$(this.list),e=-t,i=t*2,s=$(this.slides[this.index]).width,n=this.center?t/2-s/2:0,r=new Set;for(const o of[-1,1]){let a=n+(o>0?s:0),l=0;do{const h=this.slides[this.getIndex(this.index+o+l++*o)];a+=$(h).width*o,r.add(h)}while(this.slides.length>l&&a>e&&a$(e).width))}var qn={mixins:[Mn],data:{selItem:"!li"},beforeConnect(){this.item=$t(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler(t){let{type:e,detail:{percent:i,duration:s,timing:n,dir:r}}=t;B.read(()=>{const o=this.getCss(Yn(e,r,i)),a=this.getCss(Vn(e)?.5:r>0?1:0);B.write(()=>{c(this.$el,o),I.start(this.$el,a,s,n).catch(E)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){I.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler(t){let{type:e,detail:{percent:i,dir:s}}=t;B.read(()=>{const n=this.getCss(Yn(e,s,i));B.write(()=>c(this.$el,n))})}}]};function Vn(t){return Gt(t,"in")}function Yn(t,e,i){return i/=2,Vn(t)^e<0?i:1-i}var Ya={...ss,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:he(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,transform:he(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:W(30),zIndex:-1},{transform:W(),zIndex:0}]:[{transform:W(-100),zIndex:0},{transform:W(),zIndex:-1}]},percent(t,e,i){return i<0?1-De(e):De(t)},translate(t,e){return e<0?[{transform:W(30*t),zIndex:-1},{transform:W(-100*(1-t)),zIndex:0}]:[{transform:W(-t*100),zIndex:0},{transform:W(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:W(100),zIndex:0},{transform:W(),zIndex:-1}]:[{transform:W(-30),zIndex:-1},{transform:W(),zIndex:0}]},percent(t,e,i){return i>0?1-De(e):De(t)},translate(t,e){return e<0?[{transform:W(t*100),zIndex:0},{transform:W(-30*(1-t)),zIndex:-1}]:[{transform:W(-30*t),zIndex:-1},{transform:W(100*(1-t)),zIndex:0}]}}},Ga={mixins:[tt,_n,Ln,Wn],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".bdt-slideshow-items",attrItem:"bdt-slideshow-item",selNav:".bdt-slideshow-nav",Animations:Ya},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-ee(this.list,"height","content-box")}},write(t){let{height:e}=t;e>0&&c(this.list,"minHeight",e)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},Xa={mixins:[tt,Tn],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"bdt-sortable-item",clsPlaceholder:"bdt-sortable-placeholder",clsDrag:"bdt-sortable-drag",clsDragState:"bdt-drag",clsBase:"bdt-sortable",clsNoDrag:"bdt-sortable-nodrag",clsEmpty:"bdt-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const t of["init","start","move","end"]){const e=this[t];this[t]=i=>{xt(this.pos,te(i)),e(i)}}},events:{name:ct,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return D(this.target)},isEmpty:{get(){return ge(this.items)},watch(t){R(this.target,this.clsEmpty,t)},immediate:!0},handles:{get(t,e){let{handle:i}=t;return i?N(i,e):this.items},watch(t,e){c(e,{touchAction:"",userSelect:""}),c(t,{touchAction:Wt?"none":"",userSelect:"none"})},immediate:!0}},update:{write(t){if(!this.drag||!A(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:r}=this;c(this.drag,{top:i-s,left:e-n});const o=this.getSortable(document.elementFromPoint(e,i));if(!o)return;const{items:a}=o;if(a.some(I.inProgress))return;const l=Qa(a,{x:e,y:i});if(a.length&&(!l||l===r))return;const h=this.getSortable(r),u=Ua(o.target,l,r,e,i,o===h&&t.moved!==l);u!==!1&&(u&&r===u||(o!==h?(h.remove(r),t.moved=l):delete t.moved,o.insert(r,u),this.touched.add(o)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(r=>F(e,r));!n||s||i>0||Ii(e)||F(e,"."+this.clsNoDrag)||this.handle&&!F(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:Qt(n),...this.pos},T(document,se,this.move),T(document,gt,this.end),this.threshold||this.start(t))},start(t){this.drag=Za(this.$container,this.placeholder);const{left:e,top:i}=this.placeholder.getBoundingClientRect();xt(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),w(this.drag,this.clsDrag,this.clsCustom),w(this.placeholder,this.clsPlaceholder),w(this.items,this.clsItem),w(document.documentElement,this.clsDragState),p(this.$el,"start",[this,this.placeholder]),Ja(this.pos),this.move(t)},move(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end(){if(Ut(document,se,this.move),Ut(document,gt,this.end),!this.drag)return;Ka();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==Qt(this.placeholder)&&p(this.$el,"moved",[this,this.placeholder]):(p(t.$el,"added",[t,this.placeholder]),p(this.$el,"removed",[this,this.placeholder])),p(this.$el,"stop",[this,this.placeholder]),ht(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)_(s.items,e,i);this.touched=null,_(document.documentElement,this.clsDragState)},insert(t,e){w(this.items,this.clsItem);const i=()=>e?Fi(e,t):G(this.target,t);this.animate(i)},remove(t){!F(t,this.target)||this.animate(()=>ht(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=A(t))}}};let Gn;function Ja(t){let e=Date.now();Gn=setInterval(()=>{let{x:i,y:s}=t;s+=Rt(window);const n=(Date.now()-e)*.3;e=Date.now(),Tt(document.elementFromPoint(i,t.y),/auto|scroll/).reverse().some(r=>{let{scrollTop:o,scrollHeight:a}=r;const{top:l,bottom:h,height:u}=ut(r);if(ls)o-=n;else if(h>s&&h-350&&o$)/g,"$1div$2"));return c(i,"margin","0","important"),c(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:c(e,"padding")}),L(i.firstElementChild,L(e.firstElementChild)),i}function Qa(t,e){return t[bt(t,i=>je(e,i.getBoundingClientRect()))]}function Ua(t,e,i,s,n,r){if(!D(t).length)return;const o=e.getBoundingClientRect();if(!r)return tl(t,i)||no[f]-v?!1:e}function tl(t,e){const i=D(t).length===1;i&&G(t,e);const s=D(t),n=s.some((r,o)=>{const a=r.getBoundingClientRect();return s.slice(o+1).some(l=>{const h=l.getBoundingClientRect();return!Xn([a.left,a.right],[h.left,h.right])})});return i&&ht(e),n}function Xn(t,e){return t[1]>e[0]&&e[1]>t[0]}var el={mixins:[le,It,Ks],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["bdt-animation-scale-up"],duration:100,cls:"bdt-active"},beforeConnect(){this._hasTitle=Bt(this.$el,"title"),k(this.$el,"title",""),this.updateAria(!1),il(this.$el)},disconnected(){this.hide(),k(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(this._unbind=j(document,"show keydown "+ct,this.hide,!1,t=>t.type===ct&&!F(t.target,this.$el)||t.type==="keydown"&&t.keyCode===27||t.type==="show"&&t.detail[0]!==this&&t.detail[0].$name===this.$name),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){H(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),ht(this.tooltip),this.tooltip=null,this._unbind()))},_show(){this.tooltip=G(this.container,'
      '+this.title+"
      "),T(this.tooltip,"toggled",(t,e)=>{if(this.updateAria(e),!e)return;this.positionAt(this.tooltip,this.$el);const[i,s]=sl(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?Xe(i)+"-"+s:s+"-"+Xe(i)}),this.toggleElement(this.tooltip,!0)},updateAria(t){k(this.$el,"aria-expanded",t)}},events:{focus:"show",blur:"hide",[jt+" "+ne](t){kt(t)||this[t.type===jt?"show":"hide"]()},[ct](t){kt(t)&&this.show()}}};function il(t){Ve(t)||k(t,"tabindex","0")}function sl(t,e,i){let[s,n]=i;const r=C(t),o=C(e),a=[["left","right"],["top","bottom"]];for(const h of a){if(r[h[0]]>=o[h[1]]){s=h[1];break}if(r[h[1]]<=o[h[0]]){s=h[0];break}}const l=g(a[0],s)?a[1]:a[0];return r[l[0]]===o[l[0]]?n=l[0]:r[l[1]]===o[l[1]]?n=l[1]:n="center",[s,n]}var nl={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"bdt-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:E,beforeAll:E,beforeSend:E,complete:E,completeAll:E,error:E,fail:E,load:E,loadEnd:E,loadStart:E,progress:E},events:{change(t){!H(t.target,'input[type="file"]')||(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){wi(t);const e=t.dataTransfer;!(e!=null&&e.files)||(_(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){wi(t)},dragover(t){wi(t),w(this.$el,this.clsDragover)},dragleave(t){wi(t),_(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=bi(t),!t.length)return;p(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3{const n=new FormData;s.forEach(r=>n.append(this.name,r));for(const r in this.params)n.append(r,this.params[r]);try{const r=await ms(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:o=>{const{xhr:a}=o;a.upload&&T(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])T(a,l.toLowerCase(),this[l]);return this.beforeSend(o)}});this.complete(r),e.length?await i(e.shift()):this.completeAll(r)}catch(r){this.error(r)}};await i(e.shift())}}};function Jn(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function rl(t,e){const i=[];for(let s=0;set.component(e,t)),et}); (()=>{"use strict";var e,r,_,t,i,a={},n={};function __webpack_require__(e){var r=n[e];if(void 0!==r)return r.exports;var _=n[e]={exports:{}};return a[e](_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=a,e=[],__webpack_require__.O=(r,_,t,i)=>{if(!_){var a=1/0;for(c=0;c=i)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](_[o])))?_.splice(o--,1):(n=!1,i0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[_,t,i]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);__webpack_require__.r(i);var a={};r=r||[null,_({}),_([]),_(_)];for(var n=2&t&&e;"object"==typeof n&&!~r.indexOf(n);n=_(n))Object.getOwnPropertyNames(n).forEach((r=>a[r]=()=>e[r]));return a.default=()=>e,__webpack_require__.d(i,a),i},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,_)=>(__webpack_require__.f[_](e,r),r)),[])),__webpack_require__.u=e=>723===e?"lightbox.062e482fd73fca037d19.bundle.min.js":48===e?"text-path.b1be1b4899a9ff20217b.bundle.min.js":209===e?"accordion.8799675460c73eb48972.bundle.min.js":745===e?"alert.cbc2a0fee74ee3ed0419.bundle.min.js":120===e?"counter.02cef29c589e742d4c8c.bundle.min.js":192===e?"progress.ca55d33bb06cee4e6f02.bundle.min.js":520===e?"tabs.c2af5be7f9cb3cdcf3d5.bundle.min.js":181===e?"toggle.31881477c45ff5cf9d4d.bundle.min.js":791===e?"video.d86bfd0676264945e968.bundle.min.js":268===e?"image-carousel.e02695895b33b77d89de.bundle.min.js":357===e?"text-editor.2c35aafbe5bf0e127950.bundle.min.js":52===e?"wp-audio.75f0ced143febb8cd31a.bundle.min.js":413===e?"container.0fe1d3abe4a4fd76f033.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},i="elementor:",__webpack_require__.l=(e,r,_,a)=>{if(t[e])t[e].push(r);else{var n,o;if(void 0!==_)for(var u=document.getElementsByTagName("script"),c=0;c{n.onerror=n.onload=null,clearTimeout(p);var i=t[e];if(delete t[e],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((e=>e(_))),r)return r(_)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=onScriptComplete.bind(null,n.onerror),n.onload=onScriptComplete.bind(null,n.onload),o&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");_.length&&(e=_[_.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={162:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(162!=r){var i=new Promise(((_,i)=>t=e[r]=[_,i]));_.push(t[2]=i);var a=__webpack_require__.p+__webpack_require__.u(r),n=new Error;__webpack_require__.l(a,(_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var i=_&&("load"===_.type?"missing":_.type),a=_&&_.target&&_.target.src;n.message="Loading chunk "+r+" failed.\n("+i+": "+a+")",n.name="ChunkLoadError",n.type=i,n.request=a,t[1](n)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,i,[a,n,o]=_,u=0;if(a.some((r=>0!==e[r]))){for(t in n)__webpack_require__.o(n,t)&&(__webpack_require__.m[t]=n[t]);if(o)var c=o(__webpack_require__)}for(r&&r(_);u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{t=Array.isArray(t)?t:[t];for(const r of t)if(e.constructor.name===r.prototype[Symbol.toStringTag])return!0;return!1}},8135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),(r=>{t[r]=e.attributes[r]}))}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each(((e,t)=>setTimeout((()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",(()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))})):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2821:(e,t,r)=>{"use strict";var n=r(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3090));class SwiperHandlerBase extends o.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},3090:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:()=>!0,findElement(e){var t=this.$element;return t.find(e).filter((function(){return jQuery(this).parent().closest(".elementor-element").is(t)}))},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let r="change";"global"!==t&&(r+=":"+t),e.editorListeners.push({event:r,to:elementor.channels.editor,callback(t,r){e.getUniqueHandlerID(r.model.cid,r.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,r)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(t,r){if(r.model.cid!==e.getModelCID())return;const n=Object.keys(t.changed)[0];e.onEditSettingsChange(n,t.changed[n])}}),["page"].forEach((function(t){var r="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[r]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback(t){e[r](t.changed)}})}))},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)}))},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)}))},getElementType(){return this.$element.data("element_type")},getWidgetType(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(e){let t={};const r=this.getModelCID();if(this.isEdit&&r){const e=elementorFrontend.config.elements.data[r],n=e.attributes;let o=n.widgetType||n.elType;n.isInner&&(o="inner-"+o);let i=elementorFrontend.config.elements.keys[o];i||(i=elementorFrontend.config.elements.keys[o]=[],jQuery.each(e.controls,((e,t)=>{t.frontend_available&&i.push(e)}))),jQuery.each(e.getActiveControls(),(function(e){if(-1!==i.indexOf(e)){let r=n[e];r.toJSON&&(r=r.toJSON()),t[e]=r}}))}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},6412:(e,t,r)=>{"use strict";var n=r(3203),o=n(r(5955)),i=n(r(8135)),s=n(r(5658)),a=n(r(3090)),u=n(r(2821));o.default.frontend={Document:i.default,tools:{StretchElement:s.default},handlers:{Base:a.default,SwiperBase:u.default}}},5658:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window}}),getDefaultElements(){return{$element:jQuery(this.getSettings("element"))}},stretch(){var e,t=this.getSettings("selectors.container");try{e=jQuery(t)}catch(e){}e&&e.length||(e=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var r=this.elements.$element,n=e.innerWidth(),o=r.offset().left,i="fixed"===r.css("position"),s=i?0:o;if(window!==e[0]){var a=e.offset().left;i&&(s=a),o>a&&(s=o-a)}i||(elementorFrontend.config.is_rtl&&(s=n-(r.outerWidth()+s)),s=-s);var u={};u.width=n+"px",u[this.getSettings("direction")]=s+"px",r.css(u)},reset(){var e={width:""};e[this.getSettings("direction")]="",this.elements.$element.css(e)}})},2618:(e,t,r)=>{"use strict";var n=r(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(740);var o=n(r(7597)),i=n(r(381));class ArgsObject extends o.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,r),typeof r[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,r),!(r[e]instanceof t||(0,i.default)(r[e],t)))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(e,r),r[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0,r(740);class ForceMethodImplementation extends Error{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=e=>{const t=Error().stack.split("\n")[2].trim(),r=t.startsWith("at new")?"constructor":t.split(" ")[1],n={};if(n.functionName=r,n.fullName=r,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n,e)}},7597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach((e=>this instanceof e))}}t.default=InstanceType},1192:(e,t,r)=>{"use strict";r(740);const Module=function(){const e=jQuery,t=arguments,r=this,n={};let o;const ensureClosureMethods=function(){e.each(r,(function(e){const t=r[e];"function"==typeof t&&(r[e]=function(){return t.apply(r,arguments)})}))},initSettings=function(){o=r.getDefaultSettings();const n=t[0];n&&e.extend(!0,o,n)},init=function(){r.__construct.apply(r,t),ensureClosureMethods(),initSettings(),r.trigger("init")};this.getItems=function(e,t){if(t){const r=t.split("."),n=r.splice(0,1);if(!r.length)return e[n];if(!e[n])return;return this.getItems(e[n],r.join("."))}return e},this.getSettings=function(e){return this.getItems(o,e)},this.setSettings=function(t,n,i){if(i||(i=o),"object"==typeof t)return e.extend(i,t),r;const s=t.split("."),a=s.splice(0,1);return s.length?(i[a]||(i[a]={}),r.setSettings(s.join("."),n,i[a])):(i[a]=n,r)},this.getErrorMessage=function(e,t){let r;if("forceMethodImplementation"===e)r=`The method '${t}' must to be implemented in the inheritor child.`;else r="An error occurs";return r},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,o){if("object"==typeof t)return e.each(t,(function(e){r.on(e,this)})),r;return t.split(" ").forEach((function(e){n[e]||(n[e]=[]),n[e].push(o)})),r},this.off=function(e,t){if(!n[e])return r;if(!t)return delete n[e],r;const o=n[e].indexOf(t);return-1!==o&&(delete n[e][o],n[e]=n[e].filter((e=>e))),r},this.trigger=function(t){const o="on"+t[0].toUpperCase()+t.slice(1),i=Array.prototype.slice.call(arguments,1);r[o]&&r[o].apply(r,i);const s=n[t];return s?(e.each(s,(function(e,t){t.apply(r,i)})),r):r},init()};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,r=this,child=function(){return r.apply(this,arguments)};return t.extend(child,r),(child.prototype=Object.create(t.extend({},r.prototype,e))).constructor=child,child.__super__=r.prototype,child},e.exports=Module},6516:(e,t,r)=>{"use strict";var n=r(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2640)).default.extend({getDefaultSettings:()=>({container:null,items:null,columnsCount:3,verticalSpaceBetween:30}),getDefaultElements(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run(){var e=[],t=this.elements.$container.position().top,r=this.getSettings(),n=r.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each((function(o){var i=Math.floor(o/n),s=jQuery(this),a=s[0].getBoundingClientRect().height+r.verticalSpaceBetween;if(i){var u=s.position(),c=o%n,l=u.top-t-e[c];l-=parseInt(s.css("margin-top"),10),l*=-1,s.css("margin-top",l+"px"),e[c]+=a}else e.push(a)}))}});t.default=o},400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Scroll{static scrollObserver(e){let t=0;const r={root:e.root||null,rootMargin:e.offset||"0px",threshold:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=[];if(e>0&&e<=100){const r=100/e;for(let e=0;e<=100;e+=r)t.push(e/100)}else t.push(0);return t}(e.sensitivity)};return new IntersectionObserver((function handleIntersect(r){const n=r[0].boundingClientRect.y,o=r[0].isIntersecting,i=n1&&void 0!==arguments[1]?arguments[1]:{};const r=e[0].getBoundingClientRect(),n=t.start||0,o=t.end||0,i=window.innerHeight*n/100,s=window.innerHeight*o/100,a=r.top-window.innerHeight,u=0-a+i,c=r.top+i+e.height()-a+s,l=Math.max(0,Math.min(u/c,1));return parseFloat((100*l).toFixed(2))}static getPageScrollPercentage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const r=e.start||0,n=e.end||0,o=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,i=o*r/100,s=o+i+o*n/100;return(document.documentElement.scrollTop+document.body.scrollTop+i)/s*100}}},2640:(e,t,r)=>{"use strict";var n=r(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1192)).default.extend({elements:null,getDefaultElements:()=>({}),bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}});t.default=o},5955:(e,t,r)=>{"use strict";var n=r(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(1192)),i=n(r(2640)),s=n(r(2618)),a=n(r(6516)),u=n(r(400)),c=n(r(869)),l=window.elementorModules={Module:o.default,ViewModule:i.default,ArgsObject:s.default,ForceMethodImplementation:c.default,utils:{Masonry:a.default,Scroll:u.default}};t.default=l},5089:(e,t,r)=>{var n=r(930),o=r(9268),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},1378:(e,t,r)=>{var n=r(930),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},6112:(e,t,r)=>{var n=r(8759),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},6198:(e,t,r)=>{var n=r(4088),o=r(7740),i=r(2871),createMethod=function(e){return function(t,r,s){var a,u=n(t),c=i(u),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},2306:(e,t,r)=>{var n=r(4130),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},375:(e,t,r)=>{var n=r(2371),o=r(930),i=r(2306),s=r(211)("toStringTag"),a=Object,u="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:u?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},8474:(e,t,r)=>{var n=r(9606),o=r(6095),i=r(4399),s=r(7826);e.exports=function(e,t,r){for(var a=o(t),u=s.f,c=i.f,l=0;l{var n=r(5283),o=r(7826),i=r(5736);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5736:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1343:(e,t,r)=>{var n=r(930),o=r(7826),i=r(3712),s=r(9444);e.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&i(r,c,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},9444:(e,t,r)=>{var n=r(2086),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5283:(e,t,r)=>{var n=r(3677);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7886:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},821:(e,t,r)=>{var n=r(2086),o=r(8759),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},4999:(e,t,r)=>{var n=r(563);e.exports=n("navigator","userAgent")||""},1448:(e,t,r)=>{var n,o,i=r(2086),s=r(4999),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},8684:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79:(e,t,r)=>{var n=r(8240),o=Error,i=n("".replace),s=String(o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);e.exports=function(e,t){if(u&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},2114:(e,t,r)=>{var n=r(3677),o=r(5736);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},1695:(e,t,r)=>{var n=r(2086),o=r(4399).f,i=r(2585),s=r(1343),a=r(9444),u=r(8474),c=r(7189);e.exports=function(e,t){var r,l,f,p,d,g=e.target,h=e.global,m=e.stat;if(r=h?n:m?n[g]||a(g,{}):(n[g]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(r,l))&&d.value:r[l],!c(h?l:g+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),s(r,l,p,e)}}},3677:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7258:(e,t,r)=>{var n=r(6059),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6059:(e,t,r)=>{var n=r(3677);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9413:(e,t,r)=>{var n=r(6059),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},4398:(e,t,r)=>{var n=r(5283),o=r(9606),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function something(){}.name,c=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},4130:(e,t,r)=>{var n=r(6059),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},8240:(e,t,r)=>{var n=r(2306),o=r(4130);e.exports=function(e){if("Function"===n(e))return o(e)}},563:(e,t,r)=>{var n=r(2086),o=r(930),aFunction=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?aFunction(n[e]):n[e]&&n[e][t]}},2964:(e,t,r)=>{var n=r(5089),o=r(1858);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2086:(e,t,r)=>{var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},9606:(e,t,r)=>{var n=r(8240),o=r(3060),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(o(e),t)}},7153:e=>{e.exports={}},6761:(e,t,r)=>{var n=r(5283),o=r(3677),i=r(821);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5974:(e,t,r)=>{var n=r(8240),o=r(3677),i=r(2306),s=Object,a=n("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s},5070:(e,t,r)=>{var n=r(930),o=r(8759),i=r(7530);e.exports=function(e,t,r){var s,a;return i&&n(s=t.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(e,a),e}},9277:(e,t,r)=>{var n=r(8240),o=r(930),i=r(4489),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},8945:(e,t,r)=>{var n=r(8759),o=r(2585);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},3278:(e,t,r)=>{var n,o,i,s=r(640),a=r(2086),u=r(8759),c=r(2585),l=r(9606),f=r(4489),p=r(8944),d=r(7153),g="Object already initialized",h=a.TypeError,m=a.WeakMap;if(s||f.state){var v=f.state||(f.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw h(g);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");d[y]=!0,n=function(e,t){if(l(e,y))throw h(g);return t.facade=e,c(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw h("Incompatible receiver, "+e+" required");return r}}}},930:(e,t,r)=>{var n=r(7886),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},7189:(e,t,r)=>{var n=r(3677),o=r(930),i=/#|\.prototype\./,isForced=function(e,t){var r=a[s(e)];return r==c||r!=u&&(o(t)?n(t):!!t)},s=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=isForced.data={},u=isForced.NATIVE="N",c=isForced.POLYFILL="P";e.exports=isForced},1858:e=>{e.exports=function(e){return null==e}},8759:(e,t,r)=>{var n=r(930),o=r(7886),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},3296:e=>{e.exports=!1},2071:(e,t,r)=>{var n=r(563),o=r(930),i=r(5516),s=r(1876),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},2871:(e,t,r)=>{var n=r(4005);e.exports=function(e){return n(e.length)}},3712:(e,t,r)=>{var n=r(3677),o=r(930),i=r(9606),s=r(5283),a=r(4398).CONFIGURABLE,u=r(9277),c=r(3278),l=c.enforce,f=c.get,p=Object.defineProperty,d=s&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),g=String(String).split("String"),h=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&r&&i(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=g.join("string"==typeof t?t:"")),e};Function.prototype.toString=h((function toString(){return o(this)&&f(this).source||u(this)}),"toString")},5681:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?r:t)(n)}},1879:(e,t,r)=>{var n=r(4059);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},7826:(e,t,r)=>{var n=r(5283),o=r(6761),i=r(8202),s=r(6112),a=r(2258),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=n?i?function defineProperty(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:f in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function defineProperty(e,t,r){if(s(e),t=a(t),s(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4399:(e,t,r)=>{var n=r(5283),o=r(9413),i=r(7446),s=r(5736),a=r(4088),u=r(2258),c=r(9606),l=r(6761),f=Object.getOwnPropertyDescriptor;t.f=n?f:function getOwnPropertyDescriptor(e,t){if(e=a(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return s(!o(i.f,e,t),e[t])}},62:(e,t,r)=>{var n=r(1352),o=r(8684).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,o)}},6952:(e,t)=>{t.f=Object.getOwnPropertySymbols},5516:(e,t,r)=>{var n=r(8240);e.exports=n({}.isPrototypeOf)},1352:(e,t,r)=>{var n=r(8240),o=r(9606),i=r(4088),s=r(6198).indexOf,a=r(7153),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&u(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~s(l,r)||u(l,r));return l}},7446:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r},7530:(e,t,r)=>{var n=r(8240),o=r(6112),i=r(1378);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function setPrototypeOf(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},7999:(e,t,r)=>{var n=r(9413),o=r(930),i=r(8759),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw s("Can't convert object to primitive value")}},6095:(e,t,r)=>{var n=r(563),o=r(8240),i=r(62),s=r(6952),a=r(6112),u=o([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=i.f(a(e)),r=s.f;return r?u(t,r(e)):t}},1632:(e,t,r)=>{var n=r(7826).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},9586:(e,t,r)=>{var n=r(1858),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},8944:(e,t,r)=>{var n=r(9197),o=r(5422),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4489:(e,t,r)=>{var n=r(2086),o=r(9444),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},9197:(e,t,r)=>{var n=r(3296),o=r(4489);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5558:(e,t,r)=>{var n=r(1448),o=r(3677);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7740:(e,t,r)=>{var n=r(9502),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},4088:(e,t,r)=>{var n=r(5974),o=r(9586);e.exports=function(e){return n(o(e))}},9502:(e,t,r)=>{var n=r(5681);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},4005:(e,t,r)=>{var n=r(9502),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},3060:(e,t,r)=>{var n=r(9586),o=Object;e.exports=function(e){return o(n(e))}},1288:(e,t,r)=>{var n=r(9413),o=r(8759),i=r(2071),s=r(2964),a=r(7999),u=r(211),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=s(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2258:(e,t,r)=>{var n=r(1288),o=r(2071);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2371:(e,t,r)=>{var n={};n[r(211)("toStringTag")]="z",e.exports="[object z]"===String(n)},4059:(e,t,r)=>{var n=r(375),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},9268:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},5422:(e,t,r)=>{var n=r(8240),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},1876:(e,t,r)=>{var n=r(5558);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8202:(e,t,r)=>{var n=r(5283),o=r(3677);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},640:(e,t,r)=>{var n=r(2086),o=r(930),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},211:(e,t,r)=>{var n=r(2086),o=r(9197),i=r(9606),s=r(5422),a=r(5558),u=r(1876),c=o("wks"),l=n.Symbol,f=l&&l.for,p=u?l:l&&l.withoutSetter||s;e.exports=function(e){if(!i(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&i(l,e)?c[e]=l[e]:c[e]=u&&f?f(t):p(t)}return c[e]}},1557:(e,t,r)=>{"use strict";var n=r(563),o=r(9606),i=r(2585),s=r(5516),a=r(7530),u=r(8474),c=r(1632),l=r(5070),f=r(1879),p=r(8945),d=r(79),g=r(2114),h=r(5283),m=r(3296);e.exports=function(e,t,r,v){var y="stackTraceLimit",b=v?2:1,x=e.split("."),S=x[x.length-1],E=n.apply(null,x);if(E){var w=E.prototype;if(!m&&o(w,"cause")&&delete w.cause,!r)return E;var I=n("Error"),O=t((function(e,t){var r=f(v?t:e,void 0),n=v?new E(e):new E;return void 0!==r&&i(n,"message",r),g&&i(n,"stack",d(n.stack,2)),this&&s(w,this)&&l(n,this,O),arguments.length>b&&p(n,arguments[b]),n}));if(O.prototype=w,"Error"!==S?a?a(O,I):u(O,I,{name:!0}):h&&y in E&&(c(O,E,y),c(O,E,"prepareStackTrace")),u(O,E),!m)try{w.name!==S&&i(w,"name",S),w.constructor=O}catch(e){}return O}}},740:(e,t,r)=>{var n=r(1695),o=r(2086),i=r(7258),s=r(1557),a="WebAssembly",u=o.WebAssembly,c=7!==Error("e",{cause:7}).cause,exportGlobalErrorCauseWrapper=function(e,t){var r={};r[e]=s(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},exportWebAssemblyErrorCauseWrapper=function(e,t){if(u&&u[e]){var r={};r[e]=s("WebAssembly."+e,t,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},r)}};exportGlobalErrorCauseWrapper("Error",(function(e){return function Error(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("EvalError",(function(e){return function EvalError(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("RangeError",(function(e){return function RangeError(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("ReferenceError",(function(e){return function ReferenceError(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("SyntaxError",(function(e){return function SyntaxError(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("TypeError",(function(e){return function TypeError(t){return i(e,this,arguments)}})),exportGlobalErrorCauseWrapper("URIError",(function(e){return function URIError(t){return i(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("CompileError",(function(e){return function CompileError(t){return i(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("LinkError",(function(e){return function LinkError(t){return i(e,this,arguments)}})),exportWebAssemblyErrorCauseWrapper("RuntimeError",(function(e){return function RuntimeError(t){return i(e,this,arguments)}}))},3203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{var t;t=6412,e(e.s=t)}]); !function(){"use strict";function Waypoint(options){if(!options)throw new Error("No options passed to Waypoint constructor");if(!options.element)throw new Error("No element option passed to Waypoint constructor");if(!options.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+keyCounter,this.options=Waypoint.Adapter.extend({},Waypoint.defaults,options),this.element=this.options.element,this.adapter=new Waypoint.Adapter(this.element),this.callback=options.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=Waypoint.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=Waypoint.Context.findOrCreateByElement(this.options.context),Waypoint.offsetAliases[this.options.offset]&&(this.options.offset=Waypoint.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),allWaypoints[this.key]=this,keyCounter+=1}var keyCounter=0,allWaypoints={};Waypoint.prototype.queueTrigger=function(direction){this.group.queueTrigger(this,direction)},Waypoint.prototype.trigger=function(args){this.enabled&&this.callback&&this.callback.apply(this,args)},Waypoint.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete allWaypoints[this.key]},Waypoint.prototype.disable=function(){return this.enabled=!1,this},Waypoint.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},Waypoint.prototype.next=function(){return this.group.next(this)},Waypoint.prototype.previous=function(){return this.group.previous(this)},Waypoint.invokeAll=function(method){var allWaypointsArray=[];for(var waypointKey in allWaypoints)allWaypointsArray.push(allWaypoints[waypointKey]);for(var i=0,end=allWaypointsArray.length;iaxis.oldScroll,direction=isForward?axis.forward:axis.backward;for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey];if(null!==waypoint.triggerPoint){var wasBeforeTriggerPoint=axis.oldScroll=waypoint.triggerPoint,crossedForward=wasBeforeTriggerPoint&&nowAfterTriggerPoint,crossedBackward=!wasBeforeTriggerPoint&&!nowAfterTriggerPoint;(crossedForward||crossedBackward)&&(waypoint.queueTrigger(direction),triggeredGroups[waypoint.group.id]=waypoint.group)}}}for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers();this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}},Context.prototype.innerHeight=function(){return this.element==this.element.window?Waypoint.viewportHeight():this.adapter.innerHeight()},Context.prototype.remove=function(waypoint){delete this.waypoints[waypoint.axis][waypoint.key],this.checkEmpty()},Context.prototype.innerWidth=function(){return this.element==this.element.window?Waypoint.viewportWidth():this.adapter.innerWidth()},Context.prototype.destroy=function(){var allWaypoints=[];for(var axis in this.waypoints)for(var waypointKey in this.waypoints[axis])allWaypoints.push(this.waypoints[axis][waypointKey]);for(var i=0,end=allWaypoints.length;i-1&&(adjustment=Math.ceil(axis.contextDimension*adjustment/100))),contextModifier=axis.contextScroll-axis.contextOffset,waypoint.triggerPoint=Math.floor(elementOffset+contextModifier-adjustment),wasBeforeScroll=oldTriggerPoint=axis.oldScroll,triggeredBackward=wasBeforeScroll&&nowAfterScroll,triggeredForward=!wasBeforeScroll&&!nowAfterScroll,!freshWaypoint&&triggeredBackward?(waypoint.queueTrigger(axis.backward),triggeredGroups[waypoint.group.id]=waypoint.group):!freshWaypoint&&triggeredForward?(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group):freshWaypoint&&axis.oldScroll>=waypoint.triggerPoint&&(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group)}}return Waypoint.requestAnimationFrame(function(){for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers()}),this},Context.findOrCreateByElement=function(element){return Context.findByElement(element)||new Context(element)},Context.refreshAll=function(){for(var contextId in contexts)contexts[contextId].refresh()},Context.findByElement=function(element){return contexts[element.waypointContextKey]},window.onload=function(){oldWindowLoad&&oldWindowLoad(),Context.refreshAll()},Waypoint.requestAnimationFrame=function(callback){var requestFn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||requestAnimationFrameShim;requestFn.call(window,callback)},Waypoint.Context=Context}(),function(){"use strict";function byTriggerPoint(a,b){return a.triggerPoint-b.triggerPoint}function byReverseTriggerPoint(a,b){return b.triggerPoint-a.triggerPoint}function Group(options){this.name=options.name,this.axis=options.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),groups[this.axis][this.name]=this}var groups={vertical:{},horizontal:{}},Waypoint=window.Waypoint;Group.prototype.add=function(waypoint){this.waypoints.push(waypoint)},Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},Group.prototype.flushTriggers=function(){for(var direction in this.triggerQueues){var waypoints=this.triggerQueues[direction],reverse="up"===direction||"left"===direction;waypoints.sort(reverse?byReverseTriggerPoint:byTriggerPoint);for(var i=0,end=waypoints.length;i-1&&this.waypoints.splice(index,1)},Group.prototype.first=function(){return this.waypoints[0]},Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},Group.findOrCreate=function(options){return groups[options.axis][options.name]||new Group(options)},Waypoint.Group=Group}(),function(){"use strict";function JQueryAdapter(element){this.$element=$(element)}var $=window.jQuery,Waypoint=window.Waypoint;$.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(i,method){JQueryAdapter.prototype[method]=function(){var args=Array.prototype.slice.call(arguments);return this.$element[method].apply(this.$element,args)}}),$.each(["extend","inArray","isEmptyObject"],function(i,method){JQueryAdapter[method]=$[method]}),Waypoint.adapters.push({name:"jquery",Adapter:JQueryAdapter}),Waypoint.Adapter=JQueryAdapter}(),function(){"use strict";function createExtension(framework){return function(){var waypoints=[],overrides=arguments[0];return framework.isFunction(arguments[0])&&(overrides=framework.extend({},arguments[1]),overrides.handler=arguments[0]),this.each(function(){var options=framework.extend({},overrides,{element:this});"string"==typeof options.context&&(options.context=framework(this).closest(options.context)[0]),waypoints.push(new Waypoint(options))}),waypoints}}var Waypoint=window.Waypoint;window.jQuery&&(window.jQuery.fn.elementorWaypoint=createExtension(window.jQuery)),window.Zepto&&(window.Zepto.fn.elementorWaypoint=createExtension(window.Zepto))}(); !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.2", x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
      ")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(8135));class _default extends elementorModules.ViewModule{constructor(){super(...arguments),this.documents={},this.initDocumentClasses(),this.attachDocumentsClasses()}getDefaultSettings(){return{selectors:{document:".elementor"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$documents:jQuery(e.document)}}initDocumentClasses(){this.documentClasses={base:s.default},elementorFrontend.hooks.doAction("elementor/frontend/documents-manager/init-classes",this)}addDocumentClass(e,t){this.documentClasses[e]=t}attachDocumentsClasses(){this.elements.$documents.each(((e,t)=>this.attachDocumentClass(jQuery(t))))}attachDocumentClass(e){const t=e.data(),n=t.elementorId,i=t.elementorType,s=this.documentClasses[i]||this.documentClasses.base;this.documents[n]=new s({$element:e,id:n})}}t.default=_default},9804:(e,t,n)=>{"use strict";var i=n(3203),s=i(n(6397)),o=i(n(8704)),r=i(n(4985)),a=i(n(7537)),l=i(n(355)),d=i(n(2804)),c=i(n(3384));e.exports=function(e){var t=this;const i={};this.elementsHandlers={"accordion.default":()=>n.e(209).then(n.bind(n,8470)),"alert.default":()=>n.e(745).then(n.bind(n,9269)),"counter.default":()=>n.e(120).then(n.bind(n,7884)),"progress.default":()=>n.e(192).then(n.bind(n,1351)),"tabs.default":()=>n.e(520).then(n.bind(n,9459)),"toggle.default":()=>n.e(181).then(n.bind(n,2)),"video.default":()=>n.e(791).then(n.bind(n,5363)),"image-carousel.default":()=>n.e(268).then(n.bind(n,5914)),"text-editor.default":()=>n.e(357).then(n.bind(n,1327)),"wp-widget-media_audio.default":()=>n.e(52).then(n.bind(n,7602))};const addElementsHandlers=()=>{this.elementsHandlers.section=[d.default,...o.default,l.default,c.default],this.elementsHandlers.container=[...o.default],elementorFrontend.isEditMode()&&this.elementsHandlers.container.push(...r.default),this.elementsHandlers.column=a.default,e.each(this.elementsHandlers,((e,t)=>{const n=e.split(".");e=n[0];const i=n[1]||null;this.attachHandler(e,t,i)}))},isClassHandler=e=>e.prototype?.getUniqueHandlerID;this.addHandler=function(t,n){const s=n.$element.data("model-cid");let o;if(s){o=t.prototype.getConstructorID(),i[s]||(i[s]={});const e=i[s][o];e&&e.onDestroy()}const r=new t(n);elementorFrontend.hooks.doAction(`frontend/element_handler_ready/${n.elementName}`,n.$element,e),s&&(i[s][o]=r)},this.attachHandler=(e,n,i)=>{Array.isArray(n)||(n=[n]),n.forEach((n=>function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";i=i?"."+i:"";const s=e+i;elementorFrontend.hooks.addAction(`frontend/element_ready/${s}`,(e=>{if(isClassHandler(n))t.addHandler(n,{$element:e,elementName:s},!0);else{const i=n();if(!i)return;i instanceof Promise?i.then((n=>{let{default:i}=n;t.addHandler(i,{$element:e,elementName:s},!0)})):t.addHandler(i,{$element:e,elementName:s},!0)}}))}(e,n,i)))},this.getHandler=function(e){const t=this.elementsHandlers[e];return isClassHandler(t)?t:new Promise((e=>{t().then((t=>{let{default:n}=t;e(n)}))}))},this.getHandlers=function(e){return elementorDevTools.deprecation.deprecated("getHandlers","3.1.0","elementorFrontend.elementsHandler.getHandler"),e?this.getHandler(e):this.elementsHandlers},this.runReadyTrigger=function(t){if(elementorFrontend.config.is_static)return;const n=jQuery(t),i=n.attr("data-element_type");if(i&&(elementorFrontend.hooks.doAction("frontend/element_ready/global",n,e),elementorFrontend.hooks.doAction(`frontend/element_ready/${i}`,n,e),"widget"===i)){const t=n.attr("data-widget_type");elementorFrontend.hooks.doAction(`frontend/element_ready/${t}`,n,e)}},this.init=()=>{elementorFrontend.hooks.addAction("frontend/element_ready/global",s.default),addElementsHandlers()}}},5654:(e,t,n)=>{"use strict";var i=n(3203);n(59);var s=i(n(9220)),o=i(n(5107)),r=i(n(3308)),a=i(n(1604)),l=i(n(1911)),d=i(n(4773)),c=i(n(2064)),u=i(n(8628)),h=i(n(8646)),m=i(n(6866)),g=i(n(4375)),p=i(n(6404)),f=i(n(6046)),v=n(6028);const b=n(9469),_=n(9804),y=n(3346);class Frontend extends elementorModules.ViewModule{constructor(){super(...arguments),this.config=elementorFrontendConfig,this.config.legacyMode={get elementWrappers(){return elementorFrontend.isEditMode()&&window.top.elementorDevTools.deprecation.deprecated("elementorFrontend.config.legacyMode.elementWrappers","3.1.0","elementorFrontend.config.experimentalFeatures.e_dom_optimization"),!elementorFrontend.config.experimentalFeatures.e_dom_optimization}},this.populateActiveBreakpointsConfig()}get Module(){return this.isEditMode()&&parent.elementorDevTools.deprecation.deprecated("elementorFrontend.Module","2.5.0","elementorModules.frontend.handlers.Base"),elementorModules.frontend.handlers.Base}getDefaultSettings(){return{selectors:{elementor:".elementor",adminBar:"#wpadminbar"}}}getDefaultElements(){const e={window,$window:jQuery(window),$document:jQuery(document),$head:jQuery(document.head),$body:jQuery(document.body),$deviceMode:jQuery("",{id:"elementor-device-mode",class:"elementor-screen-only"})};return e.$body.append(e.$deviceMode),e}bindEvents(){this.elements.$window.on("resize",(()=>this.setDeviceModeData()))}getElements(e){return this.getItems(this.elements,e)}getPageSettings(e){const t=this.isEditMode()?elementor.settings.page.model.attributes:this.config.settings.page;return this.getItems(t,e)}getGeneralSettings(e){return this.isEditMode()&&parent.elementorDevTools.deprecation.deprecated("getGeneralSettings","3.0.0","getKitSettings and remove the `elementor_` prefix"),this.getKitSettings(`elementor_${e}`)}getKitSettings(e){return this.getItems(this.config.kit,e)}getCurrentDeviceMode(){return getComputedStyle(this.elements.$deviceMode[0],":after").content.replace(/"/g,"")}getDeviceSetting(e,t,n){if("widescreen"===e)return this.getWidescreenSetting(t,n);const i=elementorFrontend.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0});let s=i.indexOf(e);for(;s>0;){const e=t[n+"_"+i[s]];if(e||0===e)return e;s--}return t[n]}getWidescreenSetting(e,t){const n=t+"_widescreen";let i;return i=e[n]?e[n]:e[t],i}getCurrentDeviceSetting(e,t){return this.getDeviceSetting(elementorFrontend.getCurrentDeviceMode(),e,t)}isEditMode(){return this.config.environmentMode.edit}isWPPreviewMode(){return this.config.environmentMode.wpPreview}initDialogsManager(){let e;this.getDialogsManager=()=>(e||(e=new DialogsManager.Instance),e)}initOnReadyComponents(){this.utils={youtube:new a.default,vimeo:new l.default,baseVideoLoader:new d.default,anchors:new y,get lightbox(){return h.default.getLightbox()},urlActions:new c.default,swiper:u.default,environment:r.default,assetsLoader:new m.default,escapeHTML:v.escapeHTML,events:p.default},this.modules={StretchElement:elementorModules.frontend.tools.StretchElement,Masonry:elementorModules.utils.Masonry},this.elementsHandler.init(),this.isEditMode()?elementor.once("document:loaded",(()=>this.onDocumentLoaded())):this.onDocumentLoaded()}initOnReadyElements(){this.elements.$wpAdminBar=this.elements.$document.find(this.getSettings("selectors.adminBar"))}addUserAgentClasses(){for(const[e,t]of Object.entries(r.default))t&&this.elements.$body.addClass("e--ua-"+e)}setDeviceModeData(){this.elements.$body.attr("data-elementor-device-mode",this.getCurrentDeviceMode())}addListenerOnce(e,t,n,i){if(i||(i=this.elements.$window),this.isEditMode())if(this.removeListeners(e,t,i),i instanceof jQuery){const s=t+"."+e;i.on(s,n)}else i.on(t,n,e);else i.on(t,n)}removeListeners(e,t,n,i){if(i||(i=this.elements.$window),i instanceof jQuery){const s=t+"."+e;i.off(s,n)}else i.off(t,n,e)}debounce(e,t){let n;return function(){const i=this,s=arguments,later=()=>{n=null,e.apply(i,s)},o=!n;clearTimeout(n),n=setTimeout(later,t),o&&e.apply(i,s)}}waypoint(e,t,n){n=jQuery.extend({offset:"100%",triggerOnce:!0},n);return e.elementorWaypoint((function(){const e=this.element||this,i=t.apply(e,arguments);return n.triggerOnce&&this.destroy&&this.destroy(),i}),n)}muteMigrationTraces(){jQuery.migrateMute=!0,jQuery.migrateTrace=!1}initModules(){const e={shapes:f.default};elementorFrontend.trigger("elementor/modules/init:before"),elementorFrontend.trigger("elementor/modules/init/before"),Object.entries(e).forEach((e=>{let[t,n]=e;this.modulesHandlers[t]=new n}))}populateActiveBreakpointsConfig(){this.config.responsive.activeBreakpoints={},Object.entries(this.config.responsive.breakpoints).forEach((e=>{let[t,n]=e;n.is_enabled&&(this.config.responsive.activeBreakpoints[t]=n)}))}init(){this.hooks=new b,this.breakpoints=new g.default(this.config.responsive),this.storage=new o.default,this.elementsHandler=new _(jQuery),this.modulesHandlers={},this.addUserAgentClasses(),this.setDeviceModeData(),this.initDialogsManager(),this.isEditMode()&&this.muteMigrationTraces(),p.default.dispatch(this.elements.$window,"elementor/frontend/init"),this.initModules(),this.initOnReadyElements(),this.initOnReadyComponents()}onDocumentLoaded(){this.documentsManager=new s.default,this.trigger("components:init"),new h.default}}window.elementorFrontend=new Frontend,elementorFrontend.isEditMode()||jQuery((()=>elementorFrontend.init()))},4058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BackgroundSlideshow extends elementorModules.frontend.handlers.SwiperBase{getDefaultSettings(){return{classes:{swiperContainer:"elementor-background-slideshow swiper-container",swiperWrapper:"swiper-wrapper",swiperSlide:"elementor-background-slideshow__slide swiper-slide",swiperPreloader:"swiper-lazy-preloader",slideBackground:"elementor-background-slideshow__slide__image",kenBurns:"elementor-ken-burns",kenBurnsActive:"elementor-ken-burns--active",kenBurnsIn:"elementor-ken-burns--in",kenBurnsOut:"elementor-ken-burns--out"}}}getSwiperOptions(){const e=this.getElementSettings(),t={grabCursor:!1,slidesPerView:1,slidesPerGroup:1,loop:"yes"===e.background_slideshow_loop,speed:e.background_slideshow_transition_duration,autoplay:{delay:e.background_slideshow_slide_duration,stopOnLastSlide:!e.background_slideshow_loop},handleElementorBreakpoints:!0,on:{slideChange:()=>{e.background_slideshow_ken_burns&&this.handleKenBurns()}}};switch("yes"===e.background_slideshow_loop&&(t.loopedSlides=this.getSlidesCount()),e.background_slideshow_slide_transition){case"fade":t.effect="fade",t.fadeEffect={crossFade:!0};break;case"slide_down":t.autoplay.reverseDirection=!0,t.direction="vertical";break;case"slide_up":t.direction="vertical"}return"yes"===e.background_slideshow_lazyload&&(t.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),t}buildSwiperElements(){const e=this.getSettings("classes"),t=this.getElementSettings(),n="slide_left"===t.background_slideshow_slide_transition?"ltr":"rtl",i=jQuery("
      ",{class:e.swiperContainer,dir:n}),s=jQuery("
      ",{class:e.swiperWrapper}),o=t.background_slideshow_ken_burns,r="yes"===t.background_slideshow_lazyload;let a=e.slideBackground;if(o){a+=" "+e.kenBurns;const n="in"===t.background_slideshow_ken_burns_zoom_direction?"kenBurnsIn":"kenBurnsOut";a+=" "+e[n]}r&&(a+=" swiper-lazy"),this.elements.$slides=jQuery(),t.background_slideshow_gallery.forEach((t=>{const n=jQuery("
      ",{class:e.swiperSlide});let i;if(r){const n=jQuery("
      ",{class:e.swiperPreloader});i=jQuery("
      ",{class:a,"data-background":t.url}),i.append(n)}else i=jQuery("
      ",{class:a,style:'background-image: url("'+t.url+'");'});n.append(i),s.append(n),this.elements.$slides=this.elements.$slides.add(n)})),i.append(s),this.$element.prepend(i),this.elements.$backgroundSlideShowContainer=i}async initSlider(){if(1>=this.getSlidesCount())return;const e=this.getElementSettings(),t=elementorFrontend.utils.swiper;this.swiper=await new t(this.elements.$backgroundSlideShowContainer,this.getSwiperOptions()),this.elements.$backgroundSlideShowContainer.data("swiper",this.swiper),e.background_slideshow_ken_burns&&this.handleKenBurns()}activate(){this.buildSwiperElements(),this.initSlider()}deactivate(){this.swiper&&(this.swiper.destroy(),this.elements.$backgroundSlideShowContainer.remove())}run(){"slideshow"===this.getElementSettings("background_background")?this.activate():this.deactivate()}onInit(){super.onInit(),this.getElementSettings("background_slideshow_gallery")&&this.run()}onDestroy(){super.onDestroy(),this.deactivate()}onElementChange(e){"background_background"===e&&this.run()}}t.default=BackgroundSlideshow},9501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BackgroundVideo extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{backgroundVideoContainer:".elementor-background-video-container",backgroundVideoEmbed:".elementor-background-video-embed",backgroundVideoHosted:".elementor-background-video-hosted"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$backgroundVideoContainer:this.$element.find(e.backgroundVideoContainer)};return t.$backgroundVideoEmbed=t.$backgroundVideoContainer.children(e.backgroundVideoEmbed),t.$backgroundVideoHosted=t.$backgroundVideoContainer.children(e.backgroundVideoHosted),t}calcVideosSize(e){let t="16:9";"vimeo"===this.videoType&&(t=e[0].width+":"+e[0].height);const n=this.elements.$backgroundVideoContainer.outerWidth(),i=this.elements.$backgroundVideoContainer.outerHeight(),s=t.split(":"),o=s[0]/s[1],r=n/i>o;return{width:r?n:i*o,height:r?n/o:i}}changeVideoSize(){if("hosted"!==this.videoType&&!this.player)return;let e;if("youtube"===this.videoType?e=jQuery(this.player.getIframe()):"vimeo"===this.videoType?e=jQuery(this.player.element):"hosted"===this.videoType&&(e=this.elements.$backgroundVideoHosted),!e)return;const t=this.calcVideosSize(e);e.width(t.width).height(t.height)}startVideoLoop(e){if(!this.player.getIframe().contentWindow)return;const t=this.getElementSettings(),n=t.background_video_start||0,i=t.background_video_end;if(!t.background_play_once||e){if(this.player.seekTo(n),i){setTimeout((()=>{this.startVideoLoop(!1)}),1e3*(i-n+1))}}else this.player.stopVideo()}prepareVimeoVideo(e,t){const n=this.getElementSettings(),i={url:t,width:this.elements.$backgroundVideoContainer.outerWidth().width,autoplay:!0,loop:!n.background_play_once,transparent:!1,background:!0,muted:!0};n.background_privacy_mode&&(i.dnt=!0),this.player=new e.Player(this.elements.$backgroundVideoContainer,i),this.handleVimeoStartEndTimes(n),this.player.ready().then((()=>{jQuery(this.player.element).addClass("elementor-background-video-embed"),this.changeVideoSize()}))}handleVimeoStartEndTimes(e){e.background_video_start&&this.player.on("play",(t=>{0===t.seconds&&this.player.setCurrentTime(e.background_video_start)})),this.player.on("timeupdate",(t=>{e.background_video_end&&e.background_video_end{e.background_video_start&&!e.background_video_end&&t.seconds>n-.5&&this.player.setCurrentTime(e.background_video_start)}))}))}prepareYTVideo(e,t){const n=this.elements.$backgroundVideoContainer,i=this.getElementSettings();let s=e.PlayerState.PLAYING;window.chrome&&(s=e.PlayerState.UNSTARTED);const o={videoId:t,events:{onReady:()=>{this.player.mute(),this.changeVideoSize(),this.startVideoLoop(!0),this.player.playVideo()},onStateChange:t=>{switch(t.data){case s:n.removeClass("elementor-invisible elementor-loading");break;case e.PlayerState.ENDED:this.player.seekTo(i.background_video_start||0),i.background_play_once&&this.player.destroy()}}},playerVars:{controls:0,rel:0,playsinline:1}};i.background_privacy_mode&&(o.host="https://www.youtube-nocookie.com",o.origin=window.location.hostname),n.addClass("elementor-loading elementor-invisible"),this.player=new e.Player(this.elements.$backgroundVideoEmbed[0],o)}activate(){let e,t=this.getElementSettings("background_video_link");const n=this.getElementSettings("background_play_once");if(-1!==t.indexOf("vimeo.com")?(this.videoType="vimeo",this.apiProvider=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(this.videoType="youtube",this.apiProvider=elementorFrontend.utils.youtube),this.apiProvider)e=this.apiProvider.getVideoIDFromURL(t),this.apiProvider.onApiReady((n=>{"youtube"===this.videoType&&this.prepareYTVideo(n,e),"vimeo"===this.videoType&&this.prepareVimeoVideo(n,t)}));else{this.videoType="hosted";const e=this.getElementSettings("background_video_start"),i=this.getElementSettings("background_video_end");(e||i)&&(t+="#t="+(e||0)+(i?","+i:"")),this.elements.$backgroundVideoHosted.attr("src",t).one("canplay",this.changeVideoSize.bind(this)),n&&this.elements.$backgroundVideoHosted.on("ended",(()=>{this.elements.$backgroundVideoHosted.hide()}))}elementorFrontend.elements.$window.on("resize",this.changeVideoSize)}deactivate(){"youtube"===this.videoType&&this.player.getIframe()||"vimeo"===this.videoType?this.player.destroy():this.elements.$backgroundVideoHosted.removeAttr("src").off("ended"),elementorFrontend.elements.$window.off("resize",this.changeVideoSize)}run(){const e=this.getElementSettings();(e.background_play_on_mobile||"mobile"!==elementorFrontend.getCurrentDeviceMode())&&("video"===e.background_background&&e.background_video_link?this.activate():this.deactivate())}onInit(){super.onInit(...arguments),this.changeVideoSize=this.changeVideoSize.bind(this),this.run()}onElementChange(e){"background_background"===e&&this.run()}}t.default=BackgroundVideo},8704:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(4058)),o=i(n(9501)),r=[s.default,o.default];t.default=r},7537:(e,t,n)=>{"use strict";var i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=[i(n(4058)).default];t.default=s},4985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=[()=>n.e(413).then(n.bind(n,2929)),()=>n.e(413).then(n.bind(n,343))];t.default=i},6397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class GlobalHandler extends elementorModules.frontend.handlers.Base{getWidgetType(){return"global"}animate(){const e=this.$element,t=this.getAnimation();if("none"===t)return void e.removeClass("elementor-invisible");const n=this.getElementSettings(),i=n._animation_delay||n.animation_delay||0;e.removeClass(t),this.currentAnimation&&e.removeClass(this.currentAnimation),this.currentAnimation=t,setTimeout((()=>{e.removeClass("elementor-invisible").addClass("animated "+t)}),i)}getAnimation(){return this.getCurrentDeviceSetting("animation")||this.getCurrentDeviceSetting("_animation")}onInit(){if(super.onInit(...arguments),this.getAnimation()){const e=elementorModules.utils.Scroll.scrollObserver({callback:t=>{t.isInViewport&&(this.animate(),e.unobserve(this.$element[0]))}});e.observe(this.$element[0])}}onElementChange(e){/^_?animation/.test(e)&&this.animate()}}t.default=e=>{elementorFrontend.elementsHandler.addHandler(GlobalHandler,{$element:e})}},355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class HandlesPosition extends elementorModules.frontend.handlers.Base{isActive(){return elementorFrontend.isEditMode()}isFirstSection(){return this.$element[0]===document.querySelector(".elementor-edit-mode .elementor-top-section")}isOverflowHidden(){return"hidden"===this.$element.css("overflow")}getOffset(){if("body"===elementor.config.document.container)return this.$element.offset().top;const e=jQuery(elementor.config.document.container);return this.$element.offset().top-e.offset().top}setHandlesPosition(){const e=elementor.documents.getCurrent();if(!e||!e.container.isEditable())return;const t="elementor-section--handles-inside";if(elementor.settings.page.model.attributes.scroll_snap)return void this.$element.addClass(t);const n=this.isOverflowHidden();if(!n&&!this.isFirstSection())return;const i=n?0:this.getOffset();if(i<25){this.$element.addClass(t);const e=this.$element.find("> .elementor-element-overlay > .elementor-editor-section-settings");i<-5?e.css("top",-i):e.css("top","")}else this.$element.removeClass(t)}onInit(){this.isActive()&&(this.setHandlesPosition(),this.$element.on("mouseenter",this.setHandlesPosition.bind(this)))}}t.default=HandlesPosition},3384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Shapes extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:"> .elementor-shape-%s"},svgURL:elementorFrontend.config.urls.assets+"shapes/"}}getDefaultElements(){const e={},t=this.getSettings("selectors");return e.$topContainer=this.$element.find(t.container.replace("%s","top")),e.$bottomContainer=this.$element.find(t.container.replace("%s","bottom")),e}isActive(){return elementorFrontend.isEditMode()}getSvgURL(e,t){let n=this.getSettings("svgURL")+t+".svg";return elementor.config.additional_shapes&&e in elementor.config.additional_shapes&&(n=elementor.config.additional_shapes[e],-1{i.empty().append(e.childNodes[0])})),this.setNegative(e)}setNegative(e){this.elements["$"+e+"Container"].attr("data-negative",!!this.getElementSettings("shape_divider_"+e+"_negative"))}onInit(){this.isActive(this.getSettings())&&(super.onInit(...arguments),["top","bottom"].forEach((e=>{this.getElementSettings("shape_divider_"+e)&&this.buildSVG(e)})))}onElementChange(e){const t=e.match(/^shape_divider_(top|bottom)$/);if(t)return void this.buildSVG(t[1]);const n=e.match(/^shape_divider_(top|bottom)_negative$/);n&&(this.buildSVG(n[1]),this.setNegative(n[1]))}}t.default=Shapes},2804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class StretchedSection extends elementorModules.frontend.handlers.Base{bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass("elementor-section-stretched")}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.$element,selectors:{container:this.getStretchContainer()}})}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}stretch(){this.getElementSettings("stretch_section")&&this.stretchElement.stretch()}onInit(){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...arguments),this.stretch())}onElementChange(e){"stretch_section"===e&&(this.getElementSettings("stretch_section")?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedSection},3346:(e,t,n)=>{"use strict";var i=n(6028);e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({scrollDuration:500,selectors:{links:'a[href*="#"]',targets:".elementor-element, .elementor-menu-anchor",scrollable:(0,i.isScrollSnapActive)()?"body":"html, body"}}),getDefaultElements(){return{$scrollable:jQuery(this.getSettings("selectors").scrollable)}},bindEvents(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),this.handleAnchorLinks)},handleAnchorLinks(e){var t,n=e.currentTarget,s=location.pathname===n.pathname;if(location.hostname===n.hostname&&s&&!(n.hash.length<2)){try{t=jQuery(n.hash).filter(this.getSettings("selectors.targets"))}catch(e){return}if(t.length){var o=t.offset().top,r=elementorFrontend.elements.$wpAdminBar,a=jQuery(".elementor-section.elementor-sticky--active:visible");r.length>0&&(o-=r.height()),a.length>0&&(o-=Math.max.apply(null,a.map((function(){return jQuery(this).outerHeight()})).get())),e.preventDefault(),o=elementorFrontend.hooks.applyFilters("frontend/handlers/menu_anchor/scroll_top_distance",o),(0,i.isScrollSnapActive)()&&elementorFrontend.elements.$body.css("scroll-snap-type","none"),this.elements.$scrollable.animate({scrollTop:o},this.getSettings("scrollDuration"),"linear",(()=>{(0,i.isScrollSnapActive)()&&elementorFrontend.elements.$body.css("scroll-snap-type","")}))}}},onInit(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments)}})},6866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class AssetsLoader{getScriptElement(e){const t=document.createElement("script");return t.src=e,t}getStyleElement(e){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}load(e,t){const n=AssetsLoader.assets[e][t];return n.loader||(n.loader=new Promise((t=>{const i="style"===e?this.getStyleElement(n.src):this.getScriptElement(n.src);i.onload=()=>t(!0);const s="head"===n.parent?n.parent:"body";document[s].appendChild(i)}))),n.loader}}t.default=AssetsLoader;const n=elementorFrontendConfig.environmentMode.isScriptDebug?"":".min";AssetsLoader.assets={script:{dialog:{src:`${elementorFrontendConfig.urls.assets}lib/dialog/dialog${n}.js?ver=4.9.0`},"share-link":{src:`${elementorFrontendConfig.urls.assets}lib/share-link/share-link${n}.js?ver=${elementorFrontendConfig.version}`},swiper:{src:`${elementorFrontendConfig.urls.assets}lib/swiper/swiper${n}.js?ver=5.3.6`}},style:{}}},8646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class LightboxManager extends elementorModules.ViewModule{static getLightbox(){const e=new Promise((e=>{n.e(723).then(n.t.bind(n,3896,23)).then((t=>{let{default:n}=t;return e(new n)}))})),t=elementorFrontend.utils.assetsLoader.load("script","dialog"),i=elementorFrontend.utils.assetsLoader.load("script","share-link");return Promise.all([e,t,i]).then((()=>e))}getDefaultSettings(){return{selectors:{links:"a, [data-elementor-lightbox]"}}}getDefaultElements(){return{$links:jQuery(this.getSettings("selectors.links"))}}isLightboxLink(e){if("a"===e.tagName.toLowerCase()&&(e.hasAttribute("download")||!/^[^?]+\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(e.href))&&!e.dataset.elementorLightboxVideo)return!1;const t=elementorFrontend.getKitSettings("global_image_lightbox"),n=e.dataset.elementorOpenLightbox;return"yes"===n||t&&"no"!==n}async onLinkClick(e){const t=e.currentTarget,n=jQuery(e.target),i=elementorFrontend.isEditMode(),s=i&&elementor.$previewContents.find("body").hasClass("elementor-editor__ui-state__color-picker"),o=!!n.closest(".elementor-edit-area").length;if(!this.isLightboxLink(t))return void(i&&o&&e.preventDefault());if(e.preventDefault(),i&&!elementor.getPreferences("lightbox_in_editor"))return;if(s)return;(this.isOptimizedAssetsLoading()?await LightboxManager.getLightbox():elementorFrontend.utils.lightbox).createLightbox(t)}isOptimizedAssetsLoading(){return elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading}bindEvents(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),(e=>this.onLinkClick(e)))}onInit(){super.onInit(...arguments),this.isOptimizedAssetsLoading()&&!elementorFrontend.isEditMode()&&this.elements.$links.each(((e,t)=>{if(this.isLightboxLink(t))return LightboxManager.getLightbox(),!1}))}}t.default=LightboxManager},8628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Swiper{constructor(e,t){return this.config=t,this.config.breakpoints&&(this.config=this.adjustConfig(t)),jQuery(e).closest(".elementor-widget-wrap").addClass("e-swiper-container"),jQuery(e).closest(".elementor-widget").addClass("e-widget-swiper"),new Promise((t=>{if(!elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading)return t(this.createSwiperInstance(e,this.config));elementorFrontend.utils.assetsLoader.load("script","swiper").then((()=>t(this.createSwiperInstance(e,this.config))))}))}createSwiperInstance(e,t){const n=window.Swiper;return n.prototype.adjustConfig=this.adjustConfig,new n(e,t)}adjustConfig(e){if(!e.handleElementorBreakpoints)return e;const t=elementorFrontend.config.responsive.activeBreakpoints,n=elementorFrontend.breakpoints.getBreakpointValues();return Object.keys(e.breakpoints).forEach((i=>{const s=parseInt(i);let o;if(s===t.mobile.value||s+1===t.mobile.value)o=0;else if(!t.widescreen||s!==t.widescreen.value&&s+1!==t.widescreen.value){const e=n.findIndex((e=>s===e||s+1===e));o=n[e-1]}else o=s;e.breakpoints[o]=e.breakpoints[i],e.breakpoints[i]={slidesPerView:e.slidesPerView,slidesPerGroup:e.slidesPerGroup?e.slidesPerGroup:1}})),e}}},2064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(5719);class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{links:'a[href^="%23elementor-action"], a[href^="#elementor-action"]'}}}bindEvents(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),this.runLinkAction.bind(this))}initActions(){this.actions={lightbox:async e=>{const t=await elementorFrontend.utils.lightbox;e.slideshow?t.openSlideshow(e.slideshow,e.url):(e.id&&(e.type="image"),t.showModal(e))}}}addAction(e,t){this.actions[e]=t}runAction(e){const t=(e=decodeURIComponent(e)).match(/action=(.+?)&/);if(!t)return;const n=this.actions[t[1]];if(!n)return;let i={};const s=e.match(/settings=(.+)/);s&&(i=JSON.parse(atob(s[1])));for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScrollSnapActive=t.escapeHTML=void 0;t.escapeHTML=e=>{const t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,(e=>t[e]||e))};t.isScrollSnapActive=()=>"yes"===(elementorFrontend.isEditMode()?elementor.settings.page.model.attributes?.scroll_snap:elementorFrontend.config.settings.page?.scroll_snap)},4773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BaseLoader extends elementorModules.ViewModule{getDefaultSettings(){return{isInserted:!1,selectors:{firstScript:"script:first"}}}getDefaultElements(){return{$firstScript:jQuery(this.getSettings("selectors.firstScript"))}}insertAPI(){this.elements.$firstScript.before(jQuery("