void 0===TCB_Front.js_modules.divider&&TCB_Front.setModuleLoadedStatus("divider",!1),((t,d)=>{if(TCB_Front.isModuleLoaded("divider"))return;const e={init(){d.addResizeCallback(e.customDividerStyle),e.customDividerStyle()},customDividerStyle(){t(".thrv-divider").each((function(){const i=t(this),s=i.find("hr");TCB_Front.Utils.windowWidth()>1023?e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","desktop")):TCB_Front.Utils.windowWidth()>767?e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","tablet")):e.removeOldClass(s).addClass(d.getMediaAttr(i,"data-style","mobile"))}))},removeOldClass:t=>(t.removeClass((function(t,d){return(d.match(/(^|\s)tve_sep-\S+/g)||[]).join(" ")})),t)};t(window).on("tcb_after_dom_ready",(()=>e.init())),window.addEventListener("load",(()=>e.init())),TCB_Front.setModuleLoadedStatus("divider",!0)})(ThriveGlobal.$j,TCB_Front);; !function(){var t={94698:function(t,e,o){((e,n)=>{const s=o(47617),a=o(90333),i={init:()=>{TCB_Front.Utils.isEditorPage()||(e(".thrv_social.thrv_social_custom").each(((t,o)=>i.initUI(e(o)))),i.initButtons(),e("body").on("click",".thrv_social_custom:not(.thrv_social_follow) .tve_s_item",(function(){const t=e(this),o=t.attr("data-s");a[o]&&a[o](t)})),e(".thrv_social_follow").each(((t,o)=>{let n=!0;e(o).find(".tve_s_item").each(((t,o)=>{const s=e(o);s.find("a").attr("href")?n=!1:s.hide()})),n&&o.style.setProperty("display","none","important")}))),s.initShareCounts()},initUI:t=>{const e=n.Utils.jsonParse(t,"data-device-config"),o=n.getDisplayType();if(e[o]){const n=e[o],s=n.button_type||"tve_social_itb",a=1===parseInt(n.isFullWidth),i=n.showCount,r=1===parseInt(n.isVertical),c=t.find(".tve_social_items").attr("class").replace(/(tve_social_items|tve_social_custom)/g,"").match(/(\s+)?tve_social_([a-z]{2,3})/),d=c?"tve_social_"+c[2]:"tve_social_itb";d!==s&&t.find(".tve_social_items").removeClass(d).addClass(s),a&&t.toggleClass("tcb-social-full-width",a),0===parseInt(i)&&t.find(".tve_s_share_count").remove(),n.isVertical&&t.toggleClass("tcb-social-vertical",r)}},initButtons:()=>{window.FB&&setTimeout((function(){e(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each((function(){FB.XFBML.parse(this)}))}),200)}};window.TCB_Front.onSocialCustomClick=a,t.exports=i})(ThriveGlobal.$j,TCB_Front)},90333:function(t){const e={wnd(t,e,o){const n=void 0!==window.screenLeft?window.screenLeft:screen.left,s=void 0!==window.screenTop?window.screenTop:screen.top;let a,i;a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,i=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;const r=a/2-e/2+n,c=i/2-o/2+s,d=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+o+", top="+c+", left="+r);return window.focus&&d.focus(),d},fb_share(t){const o=t.data();if(o.href||(o.href=location.href),o.type&&"feed"!==o.type)e.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o.href),650,500);else{let t="";o.name&&(t+="&title="+encodeURIComponent(o.name)),o.description&&(t+="&description="+encodeURIComponent(o.description)),o.href&&(t+="&u="+encodeURIComponent(o.href)),o.caption&&(t+="&caption="+encodeURIComponent(o.caption)),o.image&&(t+="&picture="+encodeURIComponent(o.image)),t="?"+t.substr(1),e.wnd("https://www.facebook.com/sharer.php"+t,650,500)}return!1},t_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(o.href)+(o.tweet?"&text="+encodeURIComponent(o.tweet):"")+(o.via?"&via="+o.via:""),550,450)},x_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(o.href)+(o.post?"&text="+encodeURIComponent(o.post):"")+(o.via?"&via="+o.via:""),550,450)},in_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(o.href),550,400)},pin_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(o.href)+(o.media?"&media="+encodeURIComponent(o.media):"")+(o.description?"&description="+encodeURIComponent(o.description):""),600,600)},xing_share(t){const o=t.data();o.href||(o.href=location.href),e.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(o.href),600,500)}};t.exports=e},47617:function(t){(e=>{const o={initShareCounts:()=>{!window.TVE_Dash||TVE_Dash.ajax_sent?o.getShareCounts():TCB_Front.$document.on("tve-dash.load",(function(){const t=o.getShareCounts(e("body"),{},!0);t&&TVE_Dash.add_load_item("tcb_social",t[0],t[1])}))},getShareCounts:(t,o,n)=>{const s=(t=t||e("body")).find(".tve_social_items.tve_social_custom");if(!s.length)return;const a={action:"tve_social_count",for:[]};if(void 0!==o?e.each(o,(function(t,e){a[t]=e})):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(a.post_id=tve_path_params.post_id),s.each((function(t){const o=e(this),n={};if(o.data("tve-social-counts")||!o.hasClass("tve_social_cb")&&"1"!==o.parent().attr("data-counts"))return void o.data("tve-social-counts",1);o.data("tve-social-counts",1);const s=o.prev(".tve_s_share_count"),i=o.children(".tve_s_item").each((function(){const t=e(this).addClass("tve_count_loading");n[t.attr("data-s")]=t.attr("data-href")}));if(n.hasOwnProperty("t_share")&&1===i.length)return i.removeClass("tve_count_loading"),s.remove(),void o.parent().removeAttr("data-counts");a.for[t]=n})),!a.for.length)return null;TCB_Front.total_share_counts={};const i=function(t){t&&t.counts&&t.totals&&s.each((function(o){const n=e(this),s=n.prev(".tve_s_share_count"),a=n.children(".tve_s_item");e.each(t.counts[o],(function(t,e){a.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)})),a.removeClass("tve_count_loading");let i=s.length?window.getComputedStyle(s[0]).display:"flex";if(t.totals&&t.totals[o]&&"1"===n.parent().attr("data-counts")){let e=parseInt(n.parent().attr("data-minShares"));e=isNaN(e)?0:e,s.find(".tve_s_cnt").html(t.totals[o].formatted),parseInt(tve_frontend_options.is_editor_page)||(i=e{if(TCB_Front.isModuleLoaded("social-share"))return;const e=o(94698);t(window).on("tcb_after_dom_ready",(()=>e.init())),TCB_Front.setModuleLoadedStatus("social-share",!0)})(ThriveGlobal.$j)}();; !function(){var t={26195:function(t,e,i){const n=i(71504);var a,o;a=ThriveGlobal.$j,o=TCB_Front,a.fn.tcbTabsToggle=function(){const t=this.parents(".thrv-tabbed-content").first(),e="1"===t.attr("data-progress-style");if(this.is(".tve_tS.tve-state-expanded")&&!e)return void this.siblings().removeClass("tve_tS tve-state-expanded");const i=this,a=i.closest(".tve_scT"),s=i.index(),r=a.find("> ul li"),c=a.find('> .tve_scTC[style*="block"]'),d=c.data("contentHeight")||c.height(),l=a.find("> .tve_scTC").eq(s),u=a.find("> ul .tve_tS"),h=u.attr("data-tve-custom-colour"),v=i.attr("data-tve-custom-colour"),f=u.index();let b=t.attr("data-animation");b&&f>=0&&"carousel"===b&&(b=f{c.finish().hide()})),r.removeClass("tve_tS tve-state-expanded"),c.removeClass("tve-tc-visible"),i.siblings().removeClass("tve_tS tve-state-expanded"),TCB_Front.Utils.handleContent(c,!1),i.addClass("tve_tS tve-state-expanded"),l.addClass("tve-tc-visible"),o.$window.trigger("tve-tab-hide",c),p.hide(c,"medium").promise().done((()=>{o.$window.trigger("tve-tab-show",l),p.show(l,"medium"),TCB_Front.Utils.handleContent(l),o.$window.trigger("resize")})),e&&r.filter((t=>t{i.css("height","100%")})),t.show()},n=function(t){return t.data("contentHeight",t.height()),t.hide()};break;case"swing-up":i=function(t){return t.css({transform:"rotateX(-20deg)",opacity:0}).animate({transform:"rotateX(0)",opacity:1},300).promise().done((()=>{t.css({transform:"rotateX(0)",opacity:1})})),t.show()},n=function(t){return t.hide()};break;case"slide-fade":i=function(t,e){return t.animate({opacity:"toggle",height:"toggle"},e)},n=function(t,e){return t.animate({opacity:"hide",height:"hide"},e)};break;default:i=function(t){return t.show()},n=function(t){return t.hide()}}return{show:i,hide:n}}}}},e={};function i(n){var a=e[n];if(void 0!==a)return a.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}void 0===TCB_Front.js_modules.tabs&&TCB_Front.setModuleLoadedStatus("tabs",!1),(t=>{if(TCB_Front.isModuleLoaded("tabs"))return;i(26195),t(window).on("tcb_after_dom_ready",(()=>{t(".tve_scT").each(((i,n)=>e.init(t(n)))),t(TCB_Front.Utils.isEditorPage()?"#tve_editor":"body").on("click",".tve_scT > ul li",(function(){const e=t(this);e.hasClass("tve_tab_title_item")&&TCB_Front.Utils.isEditorPage()&&!e.closest(".tve-prevent-content-edit").length||e.tcbTabsToggle()}))}));const e={init(t){let e=0;if("static"===t.attr("data-tab-type"))e=parseInt(t.attr("data-selected"));else{const i=t.attr("data-dynamic-type"),n=t.attr("data-tab-variable"),a=t.attr("data-fallback-tab");e="url-query-string"===i?TCB_Front.queryString.get(n):"cookie"===i?TCB_Front.getCookie(n):tve_frontend_options.post_request_data[n],e=parseInt(e),this.isValidTab(t,e)||(e=a)}if(!t.data("initDone")){t.data("initDone",!0);let i=t.find("> ul li").eq(isNaN(e)?0:e);i.length||(i=t.find("> ul li").first()),i.tcbTabsToggle()}},isValidTab(t,e){const i=t.find(" > ul > .tve_tab_title_item");return e>=0&&e{h&&e.hasClass("tve-state-expanded")&&!TCB_Front.isInViewport(e)&&n("html, body").scrollTop(e.offset().top),TCB_Front.Utils.handleContent(a,"show"===t),r.$window.trigger("resize")}))}))}},71504:function(t){ThriveGlobal.$j,TCB_Front,t.exports=class{static getAnimationFunctions(t,e){let o,i;switch(t){case"appear":o=function(t){return t.children(".tve-cb").removeAttr("style"),t.show()},i=function(t){return t.hide()};break;case"fade":o=function(t,e){return t.removeAttr("style").fadeIn(e)},i=function(t,e){return t.fadeOut(e)};break;case"slide-up":o=function(t){return t.children(".tve-cb").removeAttr("style").css({bottom:"100%",opacity:"0"}).animate({bottom:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({bottom:"0",opacity:"1"}).animate({bottom:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-down":o=function(t){return t.children(".tve-cb").removeAttr("style").css({top:"100%",opacity:"0"}).animate({top:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({top:"0",opacity:"1"}).animate({top:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide":o=function(t,e){return t.removeAttr("style").slideDown(e)},i=function(t,e){return t.slideUp(e)};break;case"slide-right":o=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",left:"100%"}).animate({left:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",left:"0"}).animate({left:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-left":o=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",right:"100%"}).animate({right:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",right:"100%"}).animate({right:"0",opacity:"0"}).hide(),t.hide()};break;case"smooth-resize":o=function(t){const o=t.children(),i=t.data("contentHeight")||t.height();return o.css({height:e}).animate({height:i},500).promise().done((()=>{o.css("height","100%")})),t.show()},i=function(t){return t.data("contentHeight",t.height()),t.hide()};break;case"swing-up":o=function(t){return t.css({transform:"rotateX(-20deg)",opacity:0}).animate({transform:"rotateX(0)",opacity:1},300).promise().done((()=>{t.css({transform:"rotateX(0)",opacity:1})})),t.show()},i=function(t){return t.hide()};break;case"slide-fade":o=function(t,e){return t.animate({opacity:"toggle",height:"toggle"},e)},i=function(t,e){return t.animate({opacity:"hide",height:"hide"},e)};break;default:o=function(t){return t.show()},i=function(t){return t.hide()}}return{show:o,hide:i}}}}},e={};function o(i){var n=e[i];if(void 0!==n)return n.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,o),r.exports}void 0===TCB_Front.js_modules.toggle&&TCB_Front.setModuleLoadedStatus("toggle",!1),(t=>{if(TCB_Front.isModuleLoaded("toggle"))return;o(63011);const e={init(){const o=t(TCB_Front.Utils.isEditorPage()?"#tve_editor":"body");if(e.initOnClick(o),e.initToggleCompat(o),t(".thrv_toggle_shortcode").each(((e,o)=>{TCB_Front.$window.trigger("tve_after_content_toggle",[t(o)])})),t(".thrv_toggle").each(((e,o)=>{const i=t(o);if(!i.data("tcbToggleInit")){let t=i.find(".thrv_toggle_item.tve-default-state-expanded");i.hasClass("tve-toggle-auto-collapse")&&(t=t.first()),t.find("> .tve_faqI > .thrv_toggle_title").tcbToggle("show"),i.data("tcbToggleInit",1)}})),!TCB_Front.Utils.isEditorPage()&&location.hash)try{const e=t(location.hash);e.closest(".thrv_toggle").length&&!e.hasClass("tve-state-expanded")&&e.trigger("click")}catch(t){}},initOnClick(e){e.off("click.tvetoggleelemold").on("click.tvetoggleelemold",".thrv_toggle_shortcode .tve_faqB",(function(){const e=t(this).closest(".tve_faq"),o=t(this),i=t(o).siblings(".tve_faqC");i.is(":visible")?(TCB_Front.$window.trigger("tve_after_content_toggle",[i,!1]),t(window).trigger("tcb_toggle_close",i),i.slideUp("fast",(function(){i.trigger("lbresize")})),e.removeClass("tve_oFaq"),e.find(".tve_toggle").first().removeClass("tve_toggle_open"),e.find("h4").first().removeClass("tve_toggle_open_text")):(i.slideDown("fast",(function(){i.trigger("lbresize")})),t(window).trigger("tcb_toggle_open",i),TCB_Front.$window.trigger("tve_after_content_toggle",[i]),e.addClass("tve_oFaq"),e.find(".tve_toggle").first().addClass("tve_toggle_open"),e.find("h4").first().addClass("tve_toggle_open_text"))}))},initToggleCompat(e){e.off("click.tvetoggleelem").on("click.tvetoggleelem",".thrv_toggle:not(.toggle-edit-mode) .thrv_toggle_title",(function(){const e=t(this),o=e.closest(".thrv_toggle");!e.hasClass("tve-state-expanded")&&o.hasClass("tve-toggle-auto-collapse")&&o.find(".thrv_toggle_title").tcbToggle("hide"),e.tcbToggle()}))}};t(window).on("tcb_after_dom_ready",(()=>e.init())),TCB_Front.setModuleLoadedStatus("toggle",!0)})(ThriveGlobal.$j)}();; !function(){var t={9218:function(t){!function(e){const o={};let i,a=!1;function n(t,e){const o=e?t.parents(".safari-ios-decoration-fix"):t.parents(".safari-ios-decoration-fix-none");t.toggleClass("tcb-no-perspective",e),o.toggleClass("safari-ios-decoration-fix",!e).toggleClass("safari-ios-decoration-fix-none",e)}function r(t,e){const o=t.parents(".tve_ea_thrive_animation");o.length&&o.toggleClass("tcb-no-transform",e)}o.init=function(){i=o.videoScrolled.bind(this),document.addEventListener("scroll",i),e(".tcb-float-close-button").each(((t,e)=>{e.addEventListener("click",o.closeFloatVideo.bind(this,e),!1)}))},o.destroyFloating=function(){document.removeEventListener("scroll",i),e(".tcb-float-close-button").each(((t,e)=>{e.removeEventListener("click",o.closeFloatVideo.bind(this,e))}))},o.closeFloatVideo=function(t){e(t).parent(".tcb-video-float-container").addClass("tcb-float-closed"),o.videoScrolled()},o.videoScrolled=function(){e('.thrv_responsive_video[data-float="true"] .tcb-video-float-container iframe, .thrv_responsive_video[data-float="true"] .tcb-video-float-container video, .thrv_responsive_video[data-float="true"] .tcb-video-float-container .tve_responsive_video-no_video').each(((t,o)=>{const i=e(o),s=i.parents(".tcb-video-float-container"),d=i.parents(".thrv_responsive_video"),c=d.attr("data-float-position"),l=d.find(".video_overlay_image").attr("style")||"";let u=TCB_Front.getDisplayType()[0],p=parseInt(e("#wpadminbar").height());if(s.hasClass("tcb-float-closed")||!function(t){if(t.parents(".tcb-post-list").length)return!1;const e="true"===t.attr("data-float"),o=t.attr("data-float-visibility");if(e&&!o)return!0;const i=TCB_Front.getDisplayType();return-1===o.indexOf(i)}(d)||TCB_Front.isInViewport(i.parents(".thrv_responsive_video"),parseInt(i.width))){if(s.removeClass(c).css({width:"",height:"","margin-top":""}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",""),d.find(".video_overlay_image").removeClass(c).css({cssText:l,height:"",width:""}),!a){const t=d.position().left,e={left:t,right:t+d.width()};c.includes("top")||c.includes("keep")?(e.top=-parseInt(d.attr(`data-float-width-${u}`)),s.css(e)):c.includes("bottom")&&(e.bottom=parseInt(TCB_Front.Utils.windowWidth()),s.css(e)),d.find(".video_overlay_image").css({top:"",left:"",bottom:"",right:"","margin-top":""}),a=!0}n(d,!1),r(d,!1)}else{void 0===d.attr(`data-float-width-${u}`)&&("m"===u&&(d.attr("data-float-width-m",TCB_Front.$window.width()+"px;"),d.attr("data-float-padding1-m",0),d.attr("data-float-padding2-m",0),p=0),"t"===u&&(u="d"));const t="height: "+function(t){const e=parseFloat(t.height()/t.width()).toFixed(2),o=TCB_Front.getDisplayType()[0],i=t.attr(`data-float-width-${o}`)||t.attr("data-float-width-d"),a=parseInt(i)*e;return i.includes("px")?a+"px":a*TCB_Front.$body.width()/100+"px"}(d)+" !important;",e="width: "+d.attr(`data-float-width-${u}`)+" !important;";let o="";if(c.includes("keep-original")){const t=d.attr(`data-float-padding1-${u}`);TCB_Front.Utils.hasAdminBar()&&p&&(o+=`margin-top: ${p}px;`),o+=`top: ${t} !important; `}else c.split("-").forEach(((t,e)=>{const i=d.attr(`data-float-padding${e+1}-${u}`);TCB_Front.Utils.hasAdminBar()&&t.includes("top")&&p&&(o+=`margin-top: ${p}px;`),o+=`${t}: ${i} !important; `}));c&&(s.addClass(c).css({cssText:e+t+o}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",(TCB_Front.highestZIndex||0)+10),i.css("height",""),d.find("video").length&&function(t){t.find("video").css({"object-fit":"cover",height:"100%"})}(d),d.find(".video_overlay_image").addClass(c).css({cssText:l+e+t+"z-index:100000 !important; top:inherit; left:inherit; bottom:inherit; right: inherit; margin-top: inherit;"}),n(d,!0),r(s,!0),a=!1)}}))},o.restoreFloatingVideos=function(){e(".thrv_responsive_video").each(((t,o)=>{const i=e(o),a=i.find(".tcb-video-float-container"),n=i.attr("data-float-position"),r=i.find(".video_overlay_image").attr("style")||"";a.removeClass(n).css({width:"",height:""}),i.find(".video_overlay_image").removeClass(n).css({cssText:r,height:"",width:"",top:"",left:"",bottom:"",right:"","margin-top":""})}))},t.exports=o}(ThriveGlobal.$j)},2739:function(t,e,o){t.exports=(t,e)=>{const i='.tcb-video-cover:not([data-preload="1"]) .tcb-video-cover-image',a=o(79947)(t,e),n=o(10141),r=[];class s{static initVideoLazyLoad(e){const o=e.find(".thrv_responsive_video.tcb-lazy-load");0!==o.length&&(TCB_Front.add_scroll_callback((e=>{e>0&&o.each(((e,o)=>{const a=t(o);if(s.hasVideoCover(a)){const t=a.find(i);t.length>0&&s.lazyLoadThumbnail(t)}else s.lazyLoadVideo(a,"external"===o.dataset.type)}))})),o.each(((e,o)=>{const i=t(o);i.off("click").on("pointerover",(()=>s.preconnectAssets(i))).on("click",(()=>s.lazyLoadVideo(i,"external"===o.dataset.type,!0)))})))}static preventIframeLoad(e,o,i){const a=t(o).closest(".thrv_responsive_video");return i&&!TCB_Front.Utils.isEditorPage()&&s.shouldLazyLoad(a)&&(e=!0),e}static shouldLazyLoad(t){return t.hasClass("tcb-lazy-load")&&(s.hasVideoCover(t)||!TCB_Front.isInViewport(t,-150)||s.isInsideScreenFiller(t))}static isInsideScreenFiller(t){return"hidden"===t.closest(".tve-leads-screen-filler").css("visibility")}static hasVideoCover(t){return t.find(".video_overlay_image, .tcb-video-cover").length>0}static lazyLoadVideo(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.find(o?"source":"iframe"),n=a.attr("src");if(a.hasClass("tcb-video-lazy-loaded")||n&&n.length>0||!e.is(":visible")||s.isInsideScreenFiller(a)||!TCB_Front.isInViewport(e,-150)&&!i)return;a.hasClass("vooplayer")&&!TCB_Front.vooplayerScriptsLoaded&&(t.getScript("https://s3.spotlightr.com/assets/vooplayer.js"),TCB_Front.vooplayerScriptsLoaded=1);let r=a.attr("data-src");r&&"null"!==r&&(r=TCB_Front.Hooks.applyFilters("tcb.video.lazy_load.src",r,e),a.attr("src",r),o&&a.closest("video")[0].load()),a.removeAttr("data-src").addClass("tcb-dr-done tcb-video-lazy-loaded"),i&&TCB_Front.onVideoClick(e)}static lazyLoadThumbnails(e){e.find(i).each(((e,o)=>{const i=t(o);i.closest(".tcb-lazy-load").length>0&&s.lazyLoadThumbnail(i)}))}static lazyLoadThumbnail(t){if(!TCB_Front.Utils.isEditorPage()&&(t.hasClass("tcb-src-loaded")||!t.is(":visible")||!TCB_Front.isInViewport(t.closest(".thrv_responsive_video"),-250)))return;const e=t.attr("data-src");e&&"null"!==e&&t.attr("src",e),t.removeAttr("data-src"),TCB_Front.Utils.isEditorPage()||t.addClass("tcb-src-loaded")}static preconnectAssets(t){const e=t.attr("data-type");if(r.includes(e))return;let o=[];switch(e){case"youtube":o=a.getAssetsToPreconnect();break;case"vimeo":o=s.getVimeoAssetsToPreconnect();break;case"wistia":o=s.getWistiaAssetsToPreconnect();break;case"external":const e=t.find("source").attr("data-src");void 0!==e&&(o=[new URL(e).origin]);break;case"vooplayer":o=n.getAssetsToPreconnect()}o.forEach((t=>s.addPreconnectLink(t))),r.push(e)}static addPreconnectLink(t){const e=document.createElement("link");e.rel="preconnect",e.href=t,document.head.append(e)}static getVimeoAssetsToPreconnect(){return["https://f.vimeocdn.com","https://player.vimeo.com","https://i.vimeocdn.com"]}static getWistiaAssetsToPreconnect(){return["https://fast.wistia.net"]}}return s}},58850:function(t,e,o){t.exports=(t,e)=>{const i=o(46046),a=o(79947)(t,e),n=o(10141),r=o(31150)(t,e),s=o(2739)(t,e);class d{static get identifier(){return".thrv_responsive_video"}static init(){d.initHooks()}static initHooks(){t(e).on("tcb_after_dom_ready",(()=>d.onDomReady())).on("tcb_after_lightbox_open",((e,o)=>{t(o).find(`${d.identifier}:not([data-type="dynamic"])`).each(((e,o)=>d.autoplayVideo(t(o))))})).on("tcb_before_lightbox_close",((e,o)=>d.pauseVideos(t(o)))).on("tcb_on_content_hide",((e,o)=>d.pauseVideos(t(o)))).on("tve-content-revealed",((e,o)=>d.maybeAutoplayVideo(t(o)))).on("tcb_toggle_open",((e,o)=>d.maybeAutoplayVideo(t(o)))).on("tcb_toggle_close",((e,o)=>d.pauseVideos(t(o)))).on("tcb_on_content_show",((e,o)=>d.maybeAutoplayVideo(t(o)))).on("tve_after_content_toggle",((t,e,o)=>{o&&s.lazyLoadThumbnails(e)})),TCB_Front.Hooks.addFilter("tcb.is_iframe_load_prevented",s.preventIframeLoad)}static onDomReady(){const e=t("body");d.pauseVideos(t(".tve_p_lb_content")),d.pauseVideos(t(`${d.identifier}:hidden`)),a.onDomReady(),TCB_Front.Utils.isEditorPage()||(r.init(),d.maybeAutoplayVideo(e),d.initOnClickEvent(),s.initVideoLazyLoad(e)),n.onDOMReady(),t(".tcb-video-background-el").each(((t,e)=>e.parentNode.classList.add("tcb-video-background-parent")))}static initOnClickEvent(){t(d.identifier).off("click.thumbnail").on("click.thumbnail",(e=>d.onClick(t(e.currentTarget),e)))}static onClick(t,e){const o=t.find(".video_overlay_image, .tcb-video-cover"),n=t.find(".tcb-video-float-container.tcb-float-closed").length>0;let r=t.find(".tcb-responsive-video").attr("data-provider");if(r||(r=t.attr("data-type")),TCB_Front.Hooks.doAction("tcb.video.before_autoplay",t,r),i.isCustomProvider(r)){if(!n)switch(r){case"youtube":a.play(t);break;case"vimeo":i.playIframeVideo(t,o,d.vimeoAutoplayString);break;case"wistia":i.playIframeVideo(t,o,d.wistiaAutoplayString)}}else i.isSelfHosted(r)&&d.toggleHtmlVideoPlay(t,e);o.length>0&&o.fadeOut()}static toggleHtmlVideoPlay(e,o){if((e.find(".tcb-video-cover:visible").length>0||!TCB_Front.browser.safari)&&(void 0===o||0===t(o.target).closest(".tcb-float-close-button").length)){const i=e.find("video").get(0);function a(t){setTimeout((function(){i[t]()}))}a(i.paused?"play":"pause")}}static maybeAutoplayVideo(e){let o;o=void 0===e?t(`${d.identifier}:not([data-type="dynamic"])`):e.find(`${d.identifier}:not([data-type="dynamic"])`),o.each(((e,o)=>{const i=t(o);0===i.parents(".tve_p_lb_content").length&&d.autoplayVideo(i)}))}static autoplayVideo(t){if(1!==parseInt(t.attr("data-autoplay")))return;const e=t.attr("data-type");let o="";switch(e){case"youtube":o=`&${a.autoplayString}&${a.mutedString}`;break;case"vimeo":o=`&${d.vimeoAutoplayString}&${d.vimeoMutedString}`;break;case"wistia":o=`&${d.wistiaAutoplayString}&${d.wistiaMutedString}`}if(i.isCustomProvider(e)){const e=t.find("iframe");let i=e.attr("src")||e.attr("data-src");i&&0!==i.length&&-1===i.indexOf(o)&&(i.includes("?")?"?"===i.slice(-1)&&(o=o.substring(1)):o=`?${o.substring(1)}`,i+=o,e.attr({src:i,"data-src":i}))}else if(i.isSelfHosted(e)){const e=t.find("video").get(0);e&&(e.muted=!0,e.paused&&e.play())}}static pauseVideos(t){t.find("video").each(((t,e)=>e.pause()))}static get vimeoAutoplayString(){return"autoplay=1"}static get vimeoMutedString(){return"muted=1"}static get wistiaAutoplayString(){return"autoPlay=true"}static get wistiaMutedString(){return"muted=true"}}return window.TCB_Front.playBackgroundYoutube=a.playBackgroundVideos,window.TCB_Front.refreshBackgroundYoutube=a.refreshBackgroundVideos,window.TCB_Front.onVideoClick=d.onClick,window.TCB_Front.changeAutoplayVideo=d.maybeAutoplayVideo,window.TCB_Front.makeAutoplayVideo=d.autoplayVideo,window.TCB_Front.Video=d,window.TCB_Front.floating=o(9218),d}},31150:function(t,e,o){t.exports=(t,e)=>{const i=o(79947)(t,e);class a{static init(){t('div[data-reporting-enabled="1"], iframe[data-reporting-enabled="1"]').each(((e,o)=>a.initVideo(t(o)))),TCB_Front.Hooks.addAction("tcb.video.init_reporting",(t=>a.initVideo(t)))}static initVideo(t){const e=t.attr("data-type");let o,n=0,r=0,s=["custom","external"].includes(e)?t.find("source").attr("src"):t.attr("data-url");s=s.replace("#t=0.1","");const d=()=>(a.saveRange(n,n+5,s),n+=5,n),c={onPlay:t=>{r||(r=1,a.triggerVideoStart(s)),n=t,clearInterval(o),o=setInterval(d,5e3)},onPause:t=>{clearInterval(o),0!==t&&n{a.saveRange(n,t,s),clearInterval(o),TCB_Front.Hooks.doAction("tcb.video.on_end")},onBuffer:()=>{clearInterval(o),o=setInterval(d,5e3)}};switch(e){case"youtube":i.initReportingEvents(t,c);break;case"vimeo":a.initVimeoEvents(t,c);break;case"wistia":a.initWistiaEvents(t,c);break;case"custom":case"external":a.initHtmlEvents(t,c)}}static initVimeoEvents(o,i){if(void 0===e.Vimeo)return void t.getScript("https://player.vimeo.com/api/player.js",(()=>a.initVimeoEvents(o,i)));const n=0===o.find("iframe").length?o:o.find("iframe"),r=new e.Vimeo.Player(n);r.on("play",(()=>r.getCurrentTime().then(i.onPlay))),r.on("pause",(()=>r.getCurrentTime().then(i.onPause))),r.on("ended",(()=>r.getCurrentTime().then(i.onEnd))),r.on("seeking",(()=>r.getCurrentTime().then(i.onBuffer)))}static initWistiaEvents(o,i){const n=o.find("iframe");let r=n.attr("data-code");if(0!==n.length)n.addClass("wistia_embed");else{const t=o.attr("data-url");r=t.substring(t.lastIndexOf("/")+1)}void 0!==e._wq?e._wq.push({id:r,onReady(t){t.bind("play",(()=>i.onPlay(t.time()))).bind("pause",(()=>i.onPause(t.time()))).bind("end",(()=>i.onEnd(t.time()))).bind("seek",(()=>i.onBuffer(t.time())))}}):t.getScript("//fast.wistia.com/assets/external/E-v1.js",(()=>a.initWistiaEvents(o,i)))}static initHtmlEvents(t,e){const o=t.find("video"),i=()=>o[0].currentTime;o.on("play",(()=>e.onPlay(i()))).on("pause",(()=>e.onPause(i()))).on("ended",(()=>e.onEnd(i())))}static triggerVideoStart(t){TCB_Front.Utils.restAjax({route:tve_frontend_options.routes.video_reporting+"/video_started",data:{video_url:t,user_id:tve_frontend_options.current_user.id,post_id:tve_frontend_options.post_id}})}static saveRange(t,e,o){TCB_Front.Utils.restAjax({route:tve_frontend_options.routes.video_reporting+"/save_range",data:{video_url:o,user_id:tve_frontend_options.current_user.id,post_id:tve_frontend_options.post_id,range_start:Math.round(t),range_end:Math.round(e)}}).done((t=>{TCB_Front.Hooks.doAction("tcb.video.after_save_range",t)}))}}return a}},46046:function(t){const e=["youtube","vimeo","wistia"],o=["self","external","custom"];t.exports=class{static isCustomProvider(t){return e.includes(t)}static isSelfHosted(t){return o.includes(t)}static playIframeVideo(t,e,o){const i=t.find("iframe"),a=document.createElement("iframe"),n=TCB_Front.Utils.getAttr(i);i.remove(),n.allow="autoplay",n.src=`${n.src}${n.src.includes("?")?"&":"?"}${o}`;for(const t in n)try{a.setAttribute(t,n[t])}catch(e){console.warn(`${t} is an invalid attribute name`)}e.replaceWith(a),a.focus()}}},10141:function(t){(e=>{class o{static onDOMReady(){document.addEventListener("vooPlayerReady",o.playBackgroundVoo,!1),document.addEventListener("vooPlayerReady",o.changeVooOnPlay,!1),TCB_Front.Utils.isEditorPage()?e(".tcb-video-background-el iframe.tcb-voo-bg").each((function(){const t=TVE.inner_$(this),e=t.attr("src");t.attr("src",e)})):(e('.thrv_responsive_video[data-type="vooplayer"]').each(((t,o)=>{const i=e(o),a=i.outerHeight(),n=i.find(".tcb-video-cover,.video_overlay_image"),r=i.find("iframe");n.length>0&&r.length>0&&(i.find(".video-skin-player").css("z-index","-1"),r.before(n.css({height:r.height(),"max-height":a})),r.css("max-height",a))})),TCB_Front.floating.init()),TCB_Front.Hooks.addAction("tcb.video.before_autoplay",((t,e)=>{"vooplayer"===e&&t.find(".video-skin-player").css("z-index","")}))}static playBackgroundVoo(){e("iframe.tcb-voo-bg").each(((t,e)=>{const o=()=>{vooAPI(e.dataset.playerid,"onEnded",null,o),vooAPI(e.dataset.playerid,"play"),vooAPI(e.dataset.playerid,"volume",[0])};o()}))}static changeVooOnPlay(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TCB_Front.$body;t&&t.jquery||(t=TCB_Front.$body),t.find("iframe.video-player-container").each(((t,o)=>{const i=()=>{e(o).css("pointer-events",""),e(o).parent().find("#theImg").remove()};o.src?i():vooAPI(o.dataset.playerid,"onPlay",null,(()=>{i()}))}))}static getAssetsToPreconnect(){return["https://s3.spotlightr.com"]}}t.exports=o,window.TCB_Front.changeVooOnPlay=o.changeVooOnPlay})(ThriveGlobal.$j)},60688:function(t){t.exports=(t,e)=>{class o{static initialize(t){e.onYouTubeIframeAPIReady=()=>{TCB_Front.youtubeApiFetched=1,t()},o.fetchIframeApi()}static isApiInitialized(){return 1===TCB_Front.youtubeApiFetched||void 0!==e.YT&&void 0!==e.YT.Player}static fetchIframeApi(){t.ajax({url:"https://www.youtube.com/iframe_api",type:"get",crossDomain:!0,cache:!0,dataType:"script"})}static getDefaultPlayerParameters(t){const e={autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,playsinline:1,rel:0,showinfo:0,playlist:t};return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e.loop=1,e.listType="playlist"),e}static isPlaylist(t){return t&&34===t.length}static getAssetsToPreconnect(){return["https://www.youtube.com","https://www.google.com","https://googleads.g.doubleclick.net","https://static.doubleclick.net","https://www.gstatic.com"]}}return o}},56896:function(t,e,o){t.exports=(t,e)=>{const i=o(60688)(t,e),a=".tcb-yt-bg";class n{static resetVideo(t){const e=t.find(a);if(e.length>0){const t=e.closest(".tcb-video-background-el"),o=TVE.Components.background.controls.video.video_settings.get_embed_code("background");t.html(o),n.play(t.find(a))}}static play(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t("div.tcb-yt-bg:visible");e.length&&(i.isApiInitialized()?e.each(((e,o)=>{const a=o.getAttribute("data-yt-id");let n;n=i.isPlaylist(a)?new YT.Player(o.id,{playerVars:i.getDefaultPlayerParameters(a,!0),events:{onReady:t=>t.target.mute(),onStateChange:t=>t.target.mute()}}):new YT.Player(o.id,{videoId:a,playerVars:i.getDefaultPlayerParameters(a),events:{onReady:t=>{t.target.mute(),t.target.playVideo()},onStateChange:t=>{t.target&&t.target.mute&&t.target.mute(),t.data===(YT.PlayerState.ENDED||0)&&t.target.playVideo()}}}),TCB_Front.latestYoutubeBackgroundPlayerInstance=n,t(n.getIframe()).data("tcb-yt-player",n)})):i.initialize((()=>n.play(e))))}static refreshVideos(){e.YT&&e.YT.Player&&t("iframe.tcb-yt-bg").each(((e,o)=>{const i=t(o);i.data("tcb-yt-player")||n.play(i)}))}}return n}},79947:function(t,e,o){t.exports=(t,e)=>{const i=o(56896)(t,e),a=o(60688)(t,e);class n{static onDomReady(){n.initHooks(),n.playBackgroundVideos()}static initHooks(){TCB_Front.Utils.isEditorPage()?(TVE.add_action("tcb.element.duplicate",((t,e)=>i.resetVideo(e))),["sync","activate","create_display"].forEach((t=>TVE.add_action(`tve.conditional_display.${t}`,(t=>i.resetVideo(t)))))):(TCB_Front.Hooks.addFilter("tcb.video.lazy_load.src",((t,e)=>(t.includes("&enablejsapi=1")||"youtube"!==e.attr("data-type")||(t+="&enablejsapi=1"),t))),TCB_Front.Hooks.addAction("tcb.video.before_autoplay",((e,o)=>{if("youtube"!==o)return;const i=e.find("iframe")[0];t.each(i.attributes,((t,e)=>{let o=!1;e&&e.name.includes("data-gtm-yt-inspected")&&(i.removeAttribute(e.name),o=!0),o&&i.removeAttribute("id")}))})))}static play(e){if(!a.isApiInitialized())return void a.initialize((()=>n.play(e)));const o=e.find("iframe"),i=t("
"),r=TCB_Front.Utils.getAttr(o),s=new URL(TCB_Front.Utils.addHttp(o.attr("src"))),d=o.attr("data-code")?o.attr("data-code"):s.pathname.replace("/embed/",""),c=Object.fromEntries(s.searchParams.entries());c.autoplay=1,o.remove(),e.find(".video_overlay_image, .tcb-video-cover").replaceWith(i),1===parseInt(e.attr("data-reporting-enabled"))&&TCB_Front.Hooks.doAction("tcb.video.init_reporting",e),TCB_Front.latestYoutubePlayerInstance=n.initYoutubePlayer(i,d,c),delete r.src;const l=e.find("iframe")[0];for(const t in r)try{l.setAttribute(t,r[t])}catch(e){console.warn(`${t} is an invalid attribute name`)}}static initYoutubePlayer(t,e,o){return new YT.Player(t[0],{videoId:e,playerVars:o,width:"100%",events:{onReady:t=>t.target.playVideo(),onError:t=>console.warn(t)}})}static initReportingEvents(t,e){if(!a.isApiInitialized())return void a.initialize((()=>n.initReportingEvents(t,e)));let o=t.find("iframe")[0];if(0===t.find("iframe").length){const e=t.attr("src")+"&enablejsapi=1";t.attr("src",e),o=t[0]}new YT.Player(o,{events:{onStateChange:t=>{var o,i;const a=t.data,n=(null==t||null===(o=t.target)||void 0===o||null===(i=o.playerInfo)||void 0===i?void 0:i.currentTime)||0;switch(a){case YT.PlayerState.PLAYING:e.onPlay(n);break;case YT.PlayerState.PAUSED:e.onPause(n);break;case YT.PlayerState.ENDED:e.onEnd(n);break;case YT.PlayerState.BUFFERING:e.onBuffer(n)}}}})}static playBackgroundVideos(t){i.play(t)}static refreshBackgroundVideos(){i.refreshVideos()}static getAssetsToPreconnect(){return a.getAssetsToPreconnect()}static get autoplayString(){return"autoplay=1"}static get mutedString(){return"mute=1"}}return window.TCB_Front.Youtube=n,n}}},e={};function o(i){var a=e[i];if(void 0!==a)return a.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,o),n.exports}void 0===TCB_Front.js_modules.video&&TCB_Front.setModuleLoadedStatus("video",!1),(t=>{if(TCB_Front.isModuleLoaded("video"))return;const e=o(58850)(t,window);e.init(),window.TCB_Front.video=e,TCB_Front.setModuleLoadedStatus("video",!0)})(ThriveGlobal.$j)}();; !function(){if(window.TVE_Dash=window.TVE_Dash||{},!e||!e.$j){var a=window.$,e={$j:jQuery.noConflict()};a&&(window.$=a)}!function(a){TVE_Dash.ajax_sent=!1;var t={},s={};TVE_Dash.add_load_item=function(e,n,o){var r;if("function"!=typeof o&&(o=a.noop),TVE_Dash.ajax_sent){var i={},_={};return i[e]=n,_[e]=o,this.send_ajax(i,_),!0}return n?(t[e]&&"function"==typeof(null===(r=console)||void 0===r?void 0:r.warn)&&console.warn(e+" ajax action already defined"),t[e]=n,s[e]=o,!0):(console.error&&console.error("missing ajax data"),!1)},TVE_Dash.ajax_load_css=function(e){a.each(e,(function(e,t){a("link#"+(e+="-css")).length||a('').appendTo("head")}))},TVE_Dash.ajax_load_js=function(e){var t=document.body;a.each(e,(function(s,n){if(-1!==s.indexOf("_before"))return!0;var o=document.createElement("script");e[s+"_before"]&&a('