void 0===TCB_Front.js_modules.audio&&TCB_Front.setModuleLoadedStatus("audio",!1),(t=>{if(TCB_Front.isModuleLoaded("audio"))return;const a=".thrv_audio";t(window).on("tcb_after_dom_ready",()=>{tve_frontend_options.is_editor_page||(o.maybeAutoplayAudio(t("body")),t(a).each((t,a)=>{a.querySelector(".tve_audio-no_audio")&&a.remove()}))}).on("tcb_after_lightbox_open",(e,d)=>{t(d).find(`${a}:not([data-type="dynamic"]) audio, ${a}[data-type="soundcloud"][data-auto_play="1"]`).each((t,a)=>o.autoplayAudio(a))}).on("tcb_before_lightbox_close",(a,o)=>{t(o).find("audio").each((t,a)=>a.pause())});const o={maybeAutoplayAudio(o){o.find(`${a}:not([data-type="dynamic"]) audio, ${a}[data-type="soundcloud"][data-auto_play="1"]`).each((a,o)=>{0===t(o).parents(".tve_p_lb_content").length&&this.autoplayAudio(o)})},autoplayAudio(a){if("audio"===a.tagName.toLowerCase()&&a.hasAttribute("data-autoplay")){const t=a.play();null!==t&&t.catch(()=>{a.play()})}else t(a).find("iframe").each((t,a)=>{let o=a.getAttribute("src")||a.getAttribute("data-src");o=`${o.replace("&auto_play=0","")}&auto_play=1`,a.setAttribute("src",o)})}};TCB_Front.setModuleLoadedStatus("audio",!0)})(ThriveGlobal.$j);
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);
(()=>{var t={23814:t=>{(e=>{class i{static onDOMReady(){document.addEventListener("vooPlayerReady",i.playBackgroundVoo,!1),document.addEventListener("vooPlayerReady",i.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,i)=>{const a=e(i),o=a.outerHeight(),n=a.find(".tcb-video-cover,.video_overlay_image"),r=a.find("iframe");n.length>0&&r.length>0&&(a.find(".video-skin-player").css("z-index","-1"),r.before(n.css({height:r.height(),"max-height":o})),r.css("max-height",o))}),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 i=()=>{vooAPI(e.dataset.playerid,"onEnded",null,i),vooAPI(e.dataset.playerid,"play"),vooAPI(e.dataset.playerid,"volume",[0])};i()})}static changeVooOnPlay(t=TCB_Front.$body){t&&t.jquery||(t=TCB_Front.$body),t.find("iframe.video-player-container").each((t,i)=>{const a=()=>{e(i).css("pointer-events",""),e(i).parent().find("#theImg").remove()};i.src?a():vooAPI(i.dataset.playerid,"onPlay",null,()=>{a()})})}static getAssetsToPreconnect(){return["https://s3.spotlightr.com"]}}t.exports=i,window.TCB_Front.changeVooOnPlay=i.changeVooOnPlay})(ThriveGlobal.$j)},42166:t=>{const e=["youtube","vimeo","wistia","bunnynet"],i=["self","external","custom"];t.exports=class{static isCustomProvider(t){return e.includes(t)}static isSelfHosted(t){return i.includes(t)}static playIframeVideo(t,e,i){const a=t.find("iframe"),o=a.parent(),n=document.createElement("iframe"),r=TCB_Front.Utils.getAttr(a);a.remove(),r.allow?r.allow.toLowerCase().includes("autoplay")||(r.allow=`${r.allow}; autoplay`):r.allow="autoplay";let s=r.src||r["data-src"]||"";const c=i.split("=")[0];if(s){const t=new RegExp(`([?&])${c}=([^&#]*)`,"i");s=s.replace(t,(t,e)=>"?"===e&&s.substring(s.indexOf(t)+t.length).startsWith("&")?"?":""),s=s.replace(/\?&/,"?").replace(/[?&]$/,"")}const d=s.includes("?")?"&":"?",l=`${s}${s?d:""}${i}`;r.src=l,r["data-src"]=l;for(const t in r)try{n.setAttribute(t,r[t])}catch(e){console.warn(`${t} is an invalid attribute name`)}let u=!1;if(o.length)try{o.append(n),u=!0}catch(t){}if(!u)try{e.replaceWith(n),u=!0}catch(t){}if(u||t.find(".tve_responsive_video_container,.tcb-video-float-container").first().append(n),e.length)try{e.remove()}catch(t){}n.focus()}}},49814:(t,e,i)=>{t.exports=(t,e)=>{const a=i(42166),o=i(82368)(t,e),n=i(23814),r=i(70025)(t,e),s=i(93890)(t,e);class c{static get identifier(){return".thrv_responsive_video"}static init(){c.initHooks()}static initHooks(){t(e).on("tcb_after_dom_ready",()=>c.onDomReady()).on("tcb_after_lightbox_open",(e,i)=>{t(i).find(`${c.identifier}:not([data-type="dynamic"])`).each((e,i)=>c.autoplayVideo(t(i)))}).on("tcb_before_lightbox_close",(e,i)=>c.pauseVideos(t(i))).on("tcb_on_content_hide",(e,i)=>c.pauseVideos(t(i))).on("tve-content-revealed",(e,i)=>c.maybeAutoplayVideo(t(i))).on("tcb_toggle_open",(e,i)=>c.maybeAutoplayVideo(t(i))).on("tcb_toggle_close",(e,i)=>c.pauseVideos(t(i))).on("tcb_on_content_show",(e,i)=>c.maybeAutoplayVideo(t(i))).on("tve_after_content_toggle",(t,e,i)=>{i&&s.lazyLoadThumbnails(e)}),TCB_Front.Hooks.addFilter("tcb.is_iframe_load_prevented",s.preventIframeLoad)}static onDomReady(){const e=t("body");c.pauseVideos(t(".tve_p_lb_content")),c.pauseVideos(t(`${c.identifier}:hidden`)),o.onDomReady(),TCB_Front.Utils.isEditorPage()||(r.init(),c.maybeAutoplayVideo(e),c.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(c.identifier).off("click.thumbnail").on("click.thumbnail",e=>c.onClick(t(e.currentTarget),e)),TCB_Front.$document.off("click.tcb-video-delegate").on("click.tcb-video-delegate",`${c.identifier}, ${c.identifier} *`,e=>{if(e.tcbVideoHandled)return;const i=t(e.target).closest(c.identifier);i.length&&(e.tcbVideoHandled=!0,c.onClick(i,e))})}static onClick(t,e){const i=t.find(c.overlaySelector),n=t.find(".tcb-video-float-container.tcb-float-closed").length>0,r=i.length>0&&i.is(":visible");let s=c.detectProvider(t);if(TCB_Front.Hooks.doAction("tcb.video.before_autoplay",t,s),a.isCustomProvider(s)){if(!r)return;if(n)return void(i.length>0&&i.fadeOut());switch(s){case"youtube":o.play(t);break;case"vimeo":a.playIframeVideo(t,i,c.vimeoAutoplayString);break;case"wistia":t.find("iframe").length>0?a.playIframeVideo(t,i,c.wistiaAutoplayString):c.playWistiaScriptEmbed(t);break;case"bunnynet":a.playIframeVideo(t,i,`${c.bunnynetAutoplayString}&${c.bunnynetMutedString}`)}const e=t.find('[data-reporting-enabled="1"]');e.length>0&&TCB_Front.Hooks.doAction("tcb.video.init_reporting",e)}else a.isSelfHosted(s)&&c.toggleHtmlVideoPlay(t,e);i.length>0&&i.fadeOut()}static toggleHtmlVideoPlay(e,i){if((e.find(".tcb-video-cover:visible").length>0||!TCB_Front.browser.safari)&&(void 0===i||0===t(i.target).closest(".tcb-float-close-button").length)){const a=e.find("video").get(0);function o(t){setTimeout(function(){a[t]()})}o(a.paused?"play":"pause")}}static maybeAutoplayVideo(e){let i;i=void 0===e?t(`${c.identifier}:not([data-type="dynamic"])`):e.find(`${c.identifier}:not([data-type="dynamic"])`),i.each((e,i)=>{const a=t(i);0===a.parents(".tve_p_lb_content").length&&c.autoplayVideo(a)})}static autoplayVideo(t){if(1!==parseInt(t.attr("data-autoplay")))return;const e=t.attr("data-type");let i="";switch(e){case"youtube":i=`&${o.autoplayString}&${o.mutedString}`;break;case"vimeo":i=`&${c.vimeoAutoplayString}&${c.vimeoMutedString}`;break;case"wistia":i=`&${c.wistiaAutoplayString}&${c.wistiaMutedString}`;break;case"bunnynet":i=`&${c.bunnynetAutoplayString}&${c.bunnynetMutedString}`}if(a.isCustomProvider(e)){const e=t.find("iframe");let a=e.attr("src")||e.attr("data-src");a&&0!==a.length&&-1===a.indexOf(i)&&(a.includes("?")?"?"===a.slice(-1)&&(i=i.substring(1)):i=`?${i.substring(1)}`,a+=i,e.attr({src:a,"data-src":a}))}else if(a.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()),c.pauseProviderIframes(t)}static pauseProviderIframes(t){t.find("iframe").each((t,e)=>{try{const t=(e.getAttribute("src")||"").toLowerCase();(t.includes("youtube.com/embed")||t.includes("youtu.be"))&&e.contentWindow&&e.contentWindow.postMessage(JSON.stringify({event:"command",func:"pauseVideo",args:""}),"*")}catch(t){}}),t.find("iframe").each((t,e)=>{try{(e.getAttribute("src")||"").toLowerCase().includes("vimeo.com")&&e.contentWindow&&e.contentWindow.postMessage('{"method":"pause"}',"*")}catch(t){}}),t.find('.wistia_embed,[class*="wistia_async_"]').each((t,i)=>{try{const t=i.getAttribute("class")||"";let a=null;const o=t.match(/wistia_async_([a-zA-Z0-9]+)/);if(o&&(a=o[1]),!a){const t=(i.getAttribute("data-url")||"").match(/\/iframe\/([a-zA-Z0-9]+)/);t&&(a=t[1])}if(!a)return;if(e.Wistia&&"function"==typeof e.Wistia.api){let t;try{t=e.Wistia.api(a)}catch(t){}if(!t){const a=i.getAttribute("id");if(a)try{t=e.Wistia.api(a)}catch(t){}}if(t&&"function"==typeof t.pause){try{t.pause()}catch(t){}return}}e._wq=e._wq||[],e._wq.push({id:a,onReady:function(t){try{t.pause()}catch(t){}}})}catch(t){}});try{t.find(".wistia_embed video").each((t,e)=>{try{e.pause()}catch(t){}})}catch(t){}}static get vimeoAutoplayString(){return"autoplay=1"}static get vimeoMutedString(){return"muted=1"}static get wistiaAutoplayString(){return"autoPlay=true"}static get wistiaMutedString(){return"muted=true"}static get bunnynetAutoplayString(){return"autoplay=true"}static get bunnynetMutedString(){return"muted=false"}static get overlaySelector(){return".video_overlay_image, .tcb-video-cover"}static detectProvider(t){let e=t.find(".tcb-responsive-video").attr("data-provider")||t.attr("data-type");if(e&&"dynamic"!==e)return e;const i=(t.find("iframe").attr("src")||t.find("source").attr("src")||"").toLowerCase();return i.includes("youtube")||i.includes("youtu.be")?"youtube":i.includes("vimeo")?"vimeo":i.includes("wistia")?"wistia":i.includes("bunnycdn")||i.includes("mediadelivery")?"bunnynet":t.find('.wistia_embed,[class*="wistia_async_"]').length>0?"wistia":e}static playWistiaScriptEmbed(t){const i=t.find('.wistia_embed,[class*="wistia_async_"]').first();if(0!==i.length){e._wq=e._wq||[];try{const a=i.attr("class")||"";let o=null;const n=a.match(/wistia_async_([a-zA-Z0-9]+)/);if(n&&(o=n[1]),!o){const e=(i.attr("data-url")||t.attr("data-url")||"").match(/\/iframe\/([a-zA-Z0-9]+)/);e&&(o=e[1])}if(o&&e.Wistia&&"function"==typeof e.Wistia.api){let t;try{t=e.Wistia.api(o)}catch(t){}if(!t){const a=i.attr("id");if(a)try{t=e.Wistia.api(a)}catch(t){}}if(t){try{"function"==typeof t.unmute?t.unmute():"function"==typeof t.volume&&t.volume(1)}catch(t){}try{t.play()}catch(t){}return}}o&&e._wq.push({id:o,onReady:function(t){try{"function"==typeof t.unmute?t.unmute():"function"==typeof t.volume&&t.volume(1)}catch(t){}try{t.play()}catch(t){}}})}catch(t){}}}}return window.TCB_Front.playBackgroundYoutube=o.playBackgroundVideos,window.TCB_Front.refreshBackgroundYoutube=o.refreshBackgroundVideos,window.TCB_Front.onVideoClick=c.onClick,window.TCB_Front.changeAutoplayVideo=c.maybeAutoplayVideo,window.TCB_Front.makeAutoplayVideo=c.autoplayVideo,window.TCB_Front.Video=c,window.TCB_Front.floating=i(65017),c}},65017:t=>{!function(e){const i={};let a,o=!1;function n(t,e){const i=e?t.parents(".safari-ios-decoration-fix"):t.parents(".safari-ios-decoration-fix-none");t.toggleClass("tcb-no-perspective",e),i.toggleClass("safari-ios-decoration-fix",!e).toggleClass("safari-ios-decoration-fix-none",e)}function r(t,e){const i=t.parents(".tve_ea_thrive_animation");i.length&&i.toggleClass("tcb-no-transform",e)}i.init=function(){a=i.videoScrolled.bind(this),document.addEventListener("scroll",a),e(".tcb-float-close-button").each((t,e)=>{e.addEventListener("click",i.closeFloatVideo.bind(this,e),!1)})},i.destroyFloating=function(){document.removeEventListener("scroll",a),e(".tcb-float-close-button").each((t,e)=>{e.removeEventListener("click",i.closeFloatVideo.bind(this,e))})},i.closeFloatVideo=function(t){e(t).parent(".tcb-video-float-container").addClass("tcb-float-closed"),i.videoScrolled()},i.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,i)=>{const a=e(i),s=a.parents(".tcb-video-float-container"),c=a.parents(".thrv_responsive_video"),d=c.attr("data-float-position"),l=c.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"),i=t.attr("data-float-visibility");if(e&&!i)return!0;const a=TCB_Front.getDisplayType();return-1===i.indexOf(a)}(c)||TCB_Front.isInViewport(a.parents(".thrv_responsive_video"),parseInt(a.width))){if(s.removeClass(d).css({width:"",height:"","margin-top":""}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",""),c.find(".video_overlay_image").removeClass(d).css({cssText:l,height:"",width:""}),!o){const t=c.position().left,e={left:t,right:t+c.width()};d.includes("top")||d.includes("keep")?(e.top=-parseInt(c.attr(`data-float-width-${u}`)),s.css(e)):d.includes("bottom")&&(e.bottom=parseInt(TCB_Front.Utils.windowWidth()),s.css(e)),c.find(".video_overlay_image").css({top:"",left:"",bottom:"",right:"","margin-top":""}),o=!0}n(c,!1),r(c,!1)}else{void 0===c.attr(`data-float-width-${u}`)&&("m"===u&&(c.attr("data-float-width-m",TCB_Front.$window.width()+"px;"),c.attr("data-float-padding1-m",0),c.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),i=TCB_Front.getDisplayType()[0],a=t.attr(`data-float-width-${i}`)||t.attr("data-float-width-d"),o=parseInt(a)*e;return a.includes("px")?o+"px":o*TCB_Front.$body.width()/100+"px"}(c)+" !important;",e="width: "+c.attr(`data-float-width-${u}`)+" !important;";let i="";if(d.includes("keep-original")){const t=c.attr(`data-float-padding1-${u}`);TCB_Front.Utils.hasAdminBar()&&p&&(i+=`margin-top: ${p}px;`),i+=`top: ${t} !important; `}else d.split("-").forEach((t,e)=>{const a=c.attr(`data-float-padding${e+1}-${u}`);TCB_Front.Utils.hasAdminBar()&&t.includes("top")&&p&&(i+=`margin-top: ${p}px;`),i+=`${t}: ${a} !important; `});d&&(s.addClass(d).css({cssText:e+t+i}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",(TCB_Front.highestZIndex||0)+10),a.css("height",""),c.find("video").length&&function(t){t.find("video").css({"object-fit":"cover",height:"100%"})}(c),c.find(".video_overlay_image").addClass(d).css({cssText:l+e+t+"z-index:100000 !important; top:inherit; left:inherit; bottom:inherit; right: inherit; margin-top: inherit;"}),n(c,!0),r(s,!0),o=!1)}})},i.restoreFloatingVideos=function(){e(".thrv_responsive_video").each((t,i)=>{const a=e(i),o=a.find(".tcb-video-float-container"),n=a.attr("data-float-position"),r=a.find(".video_overlay_image").attr("style")||"";o.removeClass(n).css({width:"",height:""}),a.find(".video_overlay_image").removeClass(n).css({cssText:r,height:"",width:"",top:"",left:"",bottom:"",right:"","margin-top":""})})},t.exports=i}(ThriveGlobal.$j)},65465:t=>{t.exports=(t,e)=>{class i{static initialize(t){e.onYouTubeIframeAPIReady=()=>{TCB_Front.youtubeApiFetched=1,t()},i.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,e=!1){const i={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 e&&(i.loop=1,i.listType="playlist"),i}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 i}},69997:(t,e,i)=>{t.exports=(t,e)=>{const a=i(65465)(t,e),o=".tcb-yt-bg";class n{static resetVideo(t){const e=t.find(o);if(e.length>0){const t=e.closest(".tcb-video-background-el"),i=TVE.Components.background.controls.video.video_settings.get_embed_code("background");t.html(i),n.play(t.find(o))}}static play(e=t(`div${o}:visible`)){e.length&&(a.isApiInitialized()?e.each((e,i)=>{const o=i.getAttribute("data-yt-id");let n;n=a.isPlaylist(o)?new YT.Player(i.id,{playerVars:a.getDefaultPlayerParameters(o,!0),events:{onReady:t=>t.target.mute(),onStateChange:t=>t.target.mute()}}):new YT.Player(i.id,{videoId:o,playerVars:a.getDefaultPlayerParameters(o),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)}):a.initialize(()=>n.play(e)))}static refreshVideos(){e.YT&&e.YT.Player&&t(`iframe${o}`).each((e,i)=>{const a=t(i);a.data("tcb-yt-player")||n.play(a)})}}return n}},70025:(t,e,i)=>{t.exports=(t,e)=>{const a=i(82368)(t,e);let o=null;class n{static init(){t('div[data-reporting-enabled="1"], iframe[data-reporting-enabled="1"]').each((e,i)=>n.initVideo(t(i))),TCB_Front.Hooks.addAction("tcb.video.init_reporting",t=>n.initVideo(t))}static initVideo(t){if(t.data("tcb-video-initialized"))return;t.data("tcb-video-initialized",1);const e=t.attr("data-type");let i,r=0,s=0,c=["custom","external"].includes(e)?t.find("source").attr("src"):t.attr("data-url"),d=null;c=c.replace("#t=0.1","");const l=()=>{const t="function"==typeof d?d():r+5,e=t=>{const e=Math.max(Number(t)||0,r);n.saveRange(r,e,c),r=e};t&&"function"==typeof t.then?t.then(e).catch(()=>{const t=r+5;n.saveRange(r,t,c),r=t}):e(t)},u={setCurrentTimeGetter:t=>{d=t},onPlay:t=>{s||(s=1,n.triggerVideoStart(c)),r=t,clearInterval(i),i=setInterval(l,5e3)},onPause:t=>{clearInterval(i),t>r&&n.saveRange(r,t,c)},onEnd:t=>{n.saveRange(r,t,c),clearInterval(i),TCB_Front.Hooks.doAction("tcb.video.on_end",o)},onBuffer:t=>{r=t,clearInterval(i),i=setInterval(l,5e3)}};switch(e){case"youtube":a.initReportingEvents(t,u);break;case"vimeo":n.initVimeoEvents(t,u);break;case"wistia":n.initWistiaEvents(t,u);break;case"custom":case"external":n.initHtmlEvents(t,u)}}static initVimeoEvents(i,a){if(void 0===e.Vimeo)return void t.getScript("https://player.vimeo.com/api/player.js",()=>n.initVimeoEvents(i,a));const o=0===i.find("iframe").length?i:i.find("iframe"),r=new e.Vimeo.Player(o);a.setCurrentTimeGetter(()=>r.getCurrentTime()),r.on("play",()=>r.getCurrentTime().then(a.onPlay)),r.on("pause",()=>r.getCurrentTime().then(a.onPause)),r.on("ended",()=>r.getCurrentTime().then(a.onEnd)),r.on("seeking",()=>r.getCurrentTime().then(a.onBuffer))}static initWistiaEvents(i,a){const o=i.find("iframe");let r=o.attr("data-code");if(0!==o.length)o.addClass("wistia_embed");else{const t=i.attr("data-url");r=t.substring(t.lastIndexOf("/")+1)}void 0!==e._wq?e._wq.push({id:r,onReady(t){a.setCurrentTimeGetter(()=>t.time()),t.bind("play",()=>a.onPlay(t.time())).bind("pause",()=>a.onPause(t.time())).bind("end",()=>a.onEnd(t.time())).bind("seek",()=>a.onBuffer(t.time()))}}):t.getScript("//fast.wistia.com/assets/external/E-v1.js",()=>n.initWistiaEvents(i,a))}static initHtmlEvents(t,e){const i=t.find("video"),a=()=>i[0].currentTime;e.setCurrentTimeGetter(a),i.on("play",()=>e.onPlay(a())).on("pause",()=>e.onPause(a())).on("ended",()=>e.onEnd(a()))}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,i){var a;TCB_Front.Utils.restAjax({route:tve_frontend_options.routes.video_reporting+"/save_range",data:{video_url:i,user_id:null!==(a=tve_frontend_options.current_user.id)&&void 0!==a?a:0,post_id:tve_frontend_options.post_id,range_start:Math.round(t),range_end:Math.round(e)}}).done(t=>{o=t,TCB_Front.Hooks.doAction("tcb.video.after_save_range",t)})}}return n}},82368:(t,e,i)=>{t.exports=(t,e)=>{const a=i(69997)(t,e),o=i(65465)(t,e);class n{static onDomReady(){n.initHooks(),n.playBackgroundVideos()}static initHooks(){TCB_Front.Utils.isEditorPage()?(TVE.add_action("tcb.element.duplicate",(t,e)=>a.resetVideo(e)),["sync","activate","create_display"].forEach(t=>TVE.add_action(`tve.conditional_display.${t}`,t=>a.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,i)=>{if("youtube"!==i)return;const a=e.find("iframe")[0];t.each(a.attributes,(t,e)=>{let i=!1;e&&e.name.includes("data-gtm-yt-inspected")&&(a.removeAttribute(e.name),i=!0),i&&a.removeAttribute("id")})}))}static play(e){if(!o.isApiInitialized())return void o.initialize(()=>n.play(e));const i=e.find("iframe"),a=t("<div>"),r=TCB_Front.Utils.getAttr(i),s=new URL(TCB_Front.Utils.addHttp(i.attr("src"))),c=i.attr("data-code")?i.attr("data-code"):s.pathname.replace("/embed/",""),d=Object.fromEntries(s.searchParams.entries());d.autoplay=1,i.remove(),e.find(".video_overlay_image, .tcb-video-cover").replaceWith(a),1===parseInt(e.attr("data-reporting-enabled"))&&TCB_Front.Hooks.doAction("tcb.video.init_reporting",e),TCB_Front.latestYoutubePlayerInstance=n.initYoutubePlayer(a,c,d),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,i){return new YT.Player(t[0],{videoId:e,playerVars:i,width:"100%",events:{onReady:t=>t.target.playVideo(),onError:t=>console.warn(t)}})}static initReportingEvents(t,e){if(!o.isApiInitialized())return void o.initialize(()=>n.initReportingEvents(t,e));let i=t.find("iframe")[0];if(0===t.find("iframe").length){const e=t.attr("src")+"&enablejsapi=1";t.attr("src",e),i=t[0]}new YT.Player(i,{events:{onStateChange:t=>{var i,a;const o=t.data,n=(null==t||null===(i=t.target)||void 0===i||null===(a=i.playerInfo)||void 0===a?void 0:a.currentTime)||0;switch(e&&"function"==typeof e.setCurrentTimeGetter&&t&&t.target&&"function"==typeof t.target.getCurrentTime&&e.setCurrentTimeGetter(()=>t.target.getCurrentTime()),o){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){a.play(t)}static refreshBackgroundVideos(){a.refreshVideos()}static getAssetsToPreconnect(){return o.getAssetsToPreconnect()}static get autoplayString(){return"autoplay=1"}static get mutedString(){return"mute=1"}}return window.TCB_Front.Youtube=n,n}},93890:(t,e,i)=>{t.exports=(t,e)=>{const a='.tcb-video-cover:not([data-preload="1"]) .tcb-video-cover-image',o=i(82368)(t,e),n=i(23814),r=[];class s{static initVideoLazyLoad(e){const i=e.find(".thrv_responsive_video.tcb-lazy-load");0!==i.length&&(TCB_Front.add_scroll_callback(e=>{e>0&&i.each((e,i)=>{const o=t(i);if(s.hasVideoCover(o)){const t=o.find(a);t.length>0&&s.lazyLoadThumbnail(t)}else s.lazyLoadVideo(o,"external"===i.dataset.type)})}),i.each((e,i)=>{const a=t(i);a.off("click").on("pointerover",()=>s.preconnectAssets(a)).on("click",()=>s.lazyLoadVideo(a,"external"===i.dataset.type,!0))}))}static preventIframeLoad(e,i,a){const o=t(i).closest(".thrv_responsive_video");return a&&!TCB_Front.Utils.isEditorPage()&&s.shouldLazyLoad(o)&&(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,i=!1,a=!1){const o=e.find(i?"source":"iframe"),n=o.attr("src");if(o.hasClass("tcb-video-lazy-loaded")||n&&n.length>0||!e.is(":visible")||s.isInsideScreenFiller(o)||!TCB_Front.isInViewport(e,-150)&&!a)return;o.hasClass("vooplayer")&&!TCB_Front.vooplayerScriptsLoaded&&(t.getScript("https://s3.spotlightr.com/assets/vooplayer.js"),TCB_Front.vooplayerScriptsLoaded=1);let r=o.attr("data-src");r&&"null"!==r&&(r=TCB_Front.Hooks.applyFilters("tcb.video.lazy_load.src",r,e),o.attr("src",r),i&&o.closest("video")[0].load()),o.removeAttr("data-src").addClass("tcb-dr-done tcb-video-lazy-loaded"),a&&TCB_Front.onVideoClick(e)}static lazyLoadThumbnails(e){e.find(a).each((e,i)=>{const a=t(i);a.closest(".tcb-lazy-load").length>0&&s.lazyLoadThumbnail(a)})}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 i=[];switch(e){case"youtube":i=o.getAssetsToPreconnect();break;case"vimeo":i=s.getVimeoAssetsToPreconnect();break;case"wistia":i=s.getWistiaAssetsToPreconnect();break;case"external":const e=t.find("source").attr("data-src");void 0!==e&&(i=[new URL(e).origin]);break;case"vooplayer":i=n.getAssetsToPreconnect()}i.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}}},e={};function i(a){var o=e[a];if(void 0!==o)return o.exports;var n=e[a]={exports:{}};return t[a](n,n.exports,i),n.exports}void 0===TCB_Front.js_modules.video&&TCB_Front.setModuleLoadedStatus("video",!1),(t=>{if(TCB_Front.isModuleLoaded("video"))return;const e=i(49814)(t,window);e.init(),window.TCB_Front.video=e,TCB_Front.setModuleLoadedStatus("video",!0)})(ThriveGlobal.$j)})();
(()=>{window.TL_Front=window.TL_Front||{},window.ThriveGlobal=window.ThriveGlobal||{$j:jQuery.noConflict()};var t=".thrv_responsive_video iframe, .thrv_custom_html_shortcode iframe",e=".thrv_responsive_video video source",o=!1;TL_Front.add_page_css=function(t){ThriveGlobal.$j.each(t,(function(t,e){if(t+="-css",-1!==(e=e.replace(/^http(s)?:\/\//,"//")).indexOf("thrive_flat")){var o=document.createElement("div");if(o.classList.add("tve-cb"),document.body.append(o),"both"===getComputedStyle(o).clear)return void o.remove();o.remove()}ThriveGlobal.$j("#"+t).length||ThriveGlobal.$j('link[href="http:'+e+'"]').length||ThriveGlobal.$j('link[href="https:'+e+'"]').length||ThriveGlobal.$j('<link rel="stylesheet" id="'+t+'" type="text/css" href="'+e+'"/>').prependTo("head")}))},TL_Front.lightspeed_assets=function(t){var e=function(){return ThriveGlobal.$j('link[href*="thrive_flat.css"]').length>0},r=[];if(t.css){if(t.css.files)for(var n in t.css.files){var a="flat"===n;(!e()&&a||!a)&&ThriveGlobal.$j('<link rel="stylesheet" href="'+t.css.files[n]+'"/>').prependTo("head")}t.css.inline&&t.css.inline.length&&t.css.inline.forEach((function(t){e()||ThriveGlobal.$j(t).prependTo("head")}))}if(t.js)for(var i in t.js)TCB_Front&&!TCB_Front.isModuleLoaded(i)&&r.push(i);!function e(){if(r.length){var n=r.shift();TL_Front.add_head_script(t.js[n],"tl-lightspeed-"+n,e)}else o=!0}()},TL_Front.conditional_display=function(t){void 0!==t&&t.lazy_load_conditional_preview&&tcb_condition_sets&&t.lazy_load_conditional_preview.forEach((function(t){-1===tcb_condition_sets.findIndex((function(e){return e.key===t.key}))&&tcb_condition_sets.push(t)}))},TL_Front.$document=ThriveGlobal.$j(document),TL_Front.extendConst=function(t){TL_Const.current_screen&&delete t.current_screen,ThriveGlobal.$j.extend(!0,TL_Const,t)},TL_Front.document_write=function(t){ThriveGlobal.$j("body").append(t)},TL_Front.add_head_script=function(t,e,o){var r=document.createElement("script"),n=ThriveGlobal.$j("head")[0];r.async=!0,"function"==typeof o&&(r.onload=r.onreadystatechange=o),void 0!==e&&(r.id=e),r.src=t,n.insertBefore(r,n.firstChild)},TL_Front.add_page_js=function(t,e){"function"!=typeof e&&(e=function(){});var o=0;ThriveGlobal.$j.each(t,(function(t,e){if("tve_frontend"===t&&"undefined"!=typeof TCB_Front)return!0;if(t+="-js",e&&!ThriveGlobal.$j("#"+t).length&&!ThriveGlobal.$j('script[src="'+e+'"]').length){if(o++,-1!==e.indexOf("connect.facebook.net"))return TL_Front.add_head_script(e,t,(function(){o--})),!0;ThriveGlobal.$j.getScript(e,(function(){o--}))}})),function t(){0!==o?setTimeout(t,50):e()}()},TL_Front.send_impression=function(t,e){if(t){e=e||{};var o={security:TL_Const.security,action:TL_Const.action_impression,tl_data:t,current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){o[t]=e})),e.useBatching&&window.TVE_Dash&&!TVE_Dash.ajax_sent?TVE_Dash.add_load_item("tl_impression",o):ThriveGlobal.$j.post(TL_Const.ajax_url,o)}else console.log("No form to register impression for!")},TL_Front.do_impression=function(){TL_Front.send_impression(TL_Front.impressions_data,{useBatching:!0})},TL_Front.do_two_step_impression=function(t){if(TL_Const&&TL_Const.forms&&TL_Const.forms[t]){var e=TL_Const.forms[t],o={};o[t]={group_id:e.main_group_id,form_type_id:e.form_type_id,variation_key:e._key,active_test_id:e.active_test_id||null},TL_Front.send_impression(o)}},TL_Front.maybe_track_two_step_impression=function(t){if(t&&-1!==t.indexOf("2step-")&&TL_Const&&TL_Const.forms){var e=t.replace("tve-leads-track-2step-","");console.log("data.form_id",t,"variationKey",e);var o=Object.keys(TL_Const.forms).find((function(t){return 0===t.indexOf("two_step_")&&TL_Const.forms[t]._key===e}));o&&TL_Front.do_two_step_impression(o)}},ThriveGlobal.$j((function(){if("undefined"!=typeof TL_Const){if(ThriveGlobal.$j(".tve-leads-screen-filler iframe, .tve-leads-ribbon iframe").not(".thrv_social_default iframe").not(".tcb-dr-done").each((function(){var t=ThriveGlobal.$j(this).addClass("tcb-dr-done");t.attr("src")&&t.attr("data-src",t.attr("src")),t.attr("src","")})),"undefined"!=typeof TCB_Front&&ThriveGlobal.$j(TCB_Front).on("content_loaded.thrive",(function(t,e){e.find(".tve-tl-anim").each((function(){var t=ThriveGlobal.$j(this);ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:t})}))})),ThriveGlobal.$j(window).on("tcb_after_dom_ready",(function(){if(!tve_frontend_options.is_editor_page){var t=TCB_Front.queryString.get("post_type");t&&"tve_lead_2s_lightbox"===t&&setTimeout((function(){TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"))}),100)}})),ThriveGlobal.$j(TL_Front).on("showform.thriveleads",(function(o,r){var n,a=r.$target?r.$target:ThriveGlobal.$j("."+r.form_id);a.length&&(r.TargetEvent&&"exit"===r.TargetEvent.tve_trigger&&a.data("shown-on-exit")||(r.first&&(a=a.first()),a.attr("data-s-state")&&(a=a.closest(".tl-states-root").find('[data-state="'+a.attr("data-s-state")+'"] .tl-lb-target')),r&&r.$parentStateEl&&a.closest(".tl-style").first().data("parentStateEl",r.$parentStateEl),n=a.hasClass("tve-tl-anim")?a:a.find(".tve-tl-anim"),a.css("display",""),setTimeout((function(){n.addClass("tve-leads-triggered"),TL_Front.handle_typefocus(n,"start"),ThriveGlobal.$j(".tve_post_grid_masonry").length&&TCB_Front.postGridLayout()}),0),TL_Front.maybe_track_two_step_impression(r.form_id),"function"==typeof TL_Front["open_"+r.form_type]?TL_Front["open_"+r.form_type](a,r.TargetEvent):a.show(),TCB_Front.resizePageSection(),a.on("switchstate",(function(t,e){e.offset().top-ThriveGlobal.$j(window).scrollTop()+e.outerHeight()<0&&ThriveGlobal.$j("html, body").animate({scrollTop:e.offset().top+"px"},50),TCB_Front.resizePageSection()})),setTimeout((function(){a.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))}))}),200)))})),ThriveGlobal.$j("body").on("click",".tve-ribbon-close",(function(){var o=ThriveGlobal.$j(this).closest(".tve-leads-ribbon"),r=o.data("position");o.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),o.removeClass("tve-leads-triggered"),"top"===r?ThriveGlobal.$j("body").animate({marginTop:0},200,(function(){document.body.style.removeProperty("margin-top"),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")})):"bottom"===r&&ThriveGlobal.$j("body").animate({marginBottom:"0px"},200,(function(){document.body.style.removeProperty("margin-bottom")})),TL_Front.handle_typefocus(o,"pause"),setTimeout((function(){o.css(r,"")}),400),ThriveGlobal.$j("#tve-lg-error-container").hide()})),ThriveGlobal.$j(window).on("conditional_display_loaded",(function(){var t=Object.keys(TL_Front.contentHtml||{});t.length&&t.forEach((function(t){var e=ThriveGlobal.$j(".tl-placeholder-f-type-".concat(t));if(e.length){var o=ThriveGlobal.$j(TL_Front.contentHtml[t]);e.replaceWith(o),setTimeout((function(){ThriveGlobal.$j(TL_Front).trigger("showform.thriveleads",{$target:o})}))}}))})),TL_Const.ajax_load||TL_Front.do_impression(),TL_Front.ajax_load_callback=function(t,e){if(e&&TL_Front.conditional_display(e),t&&t.res&&t.js&&t.html){var n,i;if(TL_Front.lightspeed_assets(t.lightspeed||{}),TL_Front.add_page_css(t.res.css),TL_Front.add_page_css(t.res.fonts),t.html&&(t.html.widget||ThriveGlobal.$j(".tl-widget-container").remove(),ThriveGlobal.$j.each(t.html,(function(e,o){if(!o)return!0;if(TL_Front.contentHtml=TL_Front.contentHtml||{},TL_Front.contentHtml[e]=o,"in_content"===e){var r=parseInt(t.in_content_pos),n="after",a=ThriveGlobal.$j(".tve-tl-cnt-wrap");a.length||(a=ThriveGlobal.$j("#tve_editor.tar-main-content")),a.length||(a=ThriveGlobal.$j("#post_content"));var i=a.find("p").filter(":visible").not(".thrv_table p, form p, .tcb-post-list p, .thrv_text_element div p, p.wp-caption-text, .thrv_responsive_video p, .thrv_header p");0===i.length&&0===r?a.prepend(o):(0===r&&(r=1,n="before"),i.eq(r-1)[n](o))}else{var s=ThriveGlobal.$j(".tl-placeholder-f-type-"+e);if(t.js[e]&&t.js[e].content_locking){var l=s.parents(".tve_content_lock").first();if(t.js[e].has_conversion)return s.remove(),l.removeClass("tve_lock_hide"),!0;"tve_lock_blur"===t.js[e].lock&&l.removeClass("tve_lock_hide").addClass(t.js[e].lock)}"widget"===e?s.hasClass("tl-preload-form")?s.first().replaceWith(ThriveGlobal.$j(o).addClass("tve-leads-triggered")):(s.replaceWith(o),ThriveGlobal.$j(".tl-widget-container").children().unwrap()):s.replaceWith(o),0===e.indexOf("two_step")&&(c=e,ThriveGlobal.$j(".tl-2step-trigger-".concat(c.replace("two_step_",""))).show())}var c})),i=-1,"Microsoft Internet Explorer"==navigator.appName?(n=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(n=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(n)&&(i=parseFloat(RegExp.$1))),i>0&&setTimeout((function(){var t="";ThriveGlobal.$j("body style.tve_custom_style").each((function(){t=this.innerText,this.innerText=t}))}))),t.body_end){var s=ThriveGlobal.$j(t.body_end);s.find(".tve_wistia_popover").each((function(){ThriveGlobal.$j("#"+this.id).length&&this.parentNode.removeChild(this)})),s.filter("link[href]").each((function(){ThriveGlobal.$j('link[href="'+this.getAttribute("href")+'"]').length&&(s=s.not(this))})),s.filter("script[src]").each((function(){ThriveGlobal.$j('script[src="'+this.getAttribute("src")+'"]').length&&(s=s.not(this))}));try{ThriveGlobal.$j("body").append(s)}catch(t){console.log("Body append: "+t)}}void 0!==t.js.TVO_Form&&(TVO_Form=t.js.TVO_Form),TL_Front.add_page_js(t.res.js,(function(){r=!0})),setTimeout((function t(){r&&o?(TCB_Front.event_triggers(ThriveGlobal.$j("body")),TCB_Front.onDOMReady(),a(),ThriveGlobal.$j(TCB_Front).trigger("tl-ajax-loaded"),TCB_Front.add_scroll_callback((function(){var t=ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]'),e=t.find(".tve_shortcode_editor"),o=t.is(":visible")&&Number(t.css("opacity"))?Math.max(t.outerHeight(),e.outerHeight()):0,r=ThriveGlobal.$j('[data-elementor-type="header"] .elementor-top-section.elementor-sticky.elementor-sticky--active');r.length||(r=ThriveGlobal.$j(".she-header")),r.length&&r[0].style.setProperty("margin-top",o+"px","important")}))):setTimeout(t,50)}),50),TL_Const.forms=t.js,setTimeout((function(){ThriveGlobal.$j(".tl-preload-form").remove()}),1e3)}},TL_Const.ajax_load){var r=!1,n=(ThriveGlobal.$j(".tve-leads-two-step-trigger").hide(),{tcb_js:"undefined"!=typeof TCB_Front?1:0,main_group_id:TL_Const.main_group_id,shortcode_ids:TL_Const.shortcode_ids,two_step_ids:TL_Const.two_step_ids,action:"tve_leads_ajax_load_forms",security:TL_Const.security,display_options:TL_Const.display_options,current_screen:TL_Const.current_screen});return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){n[t]=e})),void(window.TVE_Dash&&!TVE_Dash.ajax_sent?ThriveGlobal.$j(document).on("tve-dash.load",(function(t){TVE_Dash.add_load_item("tl_lazy_load",n,TL_Front.ajax_load_callback)})):ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,type:"post",dataType:"json",data:n,xhrFields:{withCredentials:!0}}).done(TL_Front.ajax_load_callback))}a()}function a(){if(!TL_Const.forms)return!1;function t(t){if(t.find('[data-validation="email"]').length)return t.find('[data-validation="email"]').val();var e="";return t.find("input").each((function(){if(this.name&&this.name.match(/email/i))return e=this.value,!1})),e}ThriveGlobal.$j("body").on("submit",".tve-leads-conversion-object form",(function(e){var o=ThriveGlobal.$j(this),r=o.parents(".tve-leads-conversion-object").first().attr("data-tl-type"),n={};if(o.data("tve-force-submit")||o.closest(".thrv_custom_html_shortcode").length||o.data("tl-do-submit")||!r||!TL_Const.forms[r]||function(t){var e=t.attr("id"),o=window.fluentFormVars,r=!1;return o&&o.forms&&(r=o.forms.some((function(t){return t.form_id_selector===e}))),r}(o)||function(t){var e=t.attr("id");return e&&e.includes("happyforms")&&window.HappyForms}(o))return!0;o.tve_form_loading(),o.find("input").each((function(){var t=ThriveGlobal.$j(this),e=t.attr("name");void 0!==e&&-1===TL_Const.ignored_fields.indexOf(e)&&(n[t.attr("name")]=t.val())}));var a={security:TL_Const.security,action:TL_Const.action_conversion,type:r,tl_data:TL_Const.forms[r],custom_fields:n,email:t(o),current_screen:TL_Const.current_screen};return ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){a[t]=e})),ThriveGlobal.$j.ajax({url:TL_Const.ajax_url,data:a,type:"post",xhrFields:{withCredentials:!0}}).always((function(){void 0===o.attr("action")?location.reload():o.data("tve-force-submit",!0).submit()})),!1})),ThriveGlobal.$j("body").on("form_conversion.tcb",".tve-leads-conversion-object form",(function(t){var e=ThriveGlobal.$j(this).parents(".tve-leads-conversion-object").first().attr("data-tl-type");if(!e||!TL_Const.hasOwnProperty("forms")||!TL_Const.forms[e])return!0;var o={type:e,tl_data:TL_Const.forms[e],current_screen:TL_Const.current_screen};ThriveGlobal.$j.each(TL_Const.custom_post_data,(function(t,e){o[t]=e})),t.post_data=t.post_data||{},t.post_data.thrive_leads=o})).on("lead_conversion_success.tcb",".tve_lead_lock_shortcode form, .tve_post_lightbox form",(function(t){var e=ThriveGlobal.$j(this),o=e.parents(".tve_content_lock");if(e.closest(".tve_post_lightbox").length){var r=e.closest(".tve-leads-conversion-object").attr("data-tl-type");TL_Front.parent_state&&TL_Front.parent_state.parent().hasClass("tve-leads-track-"+r)&&(o=TL_Front.parent_state.closest(".tve_content_lock"))}o.length&&o.hasClass("tve_content_lock")&&(o.removeClass("tve_lead_lock").find(".tve_lead_lock_shortcode").remove(),o.find(".tve_lead_locked_overlay").remove(),t.content_unlocked=!0)})).on("leads_states.tcb",".tve-leads-conversion-object form",(function(t,e){var o=ThriveGlobal.$j(this);switch(o.find("#_form_type").val()){case"ribbon":var r=o.parents(".tve-leads-ribbon");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_ribbon(r);break;case"lightbox":case"tve_lead_2s_lightbox":o.parents(".tve_p_lb_control").empty().html(e);break;case"widget":case"in-content":case"post-footer":case"php-insert":o.parents(".tve_shortcode_editor").empty().html(e);break;case"slide-in":var n=o.parents(".tve-leads-slide-in");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_slide_in(n);break;case"screen-filler-lightbox":var a=o.parents(".tve-leads-screen-filler");o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_screen_filler(a);break;case"scroll-mat":r=o.parents(".tve-leads-greedy_ribbon"),o.parents(".tve_shortcode_editor").empty().html(e),TL_Front.open_ribbon(r);break;case"tve_lead_shortcode":o.parents(".tve-leads-shortcode").empty().html(e);break;default:t.change_states=!1}t.change_states=!0})).on("leads_messages.tcb",".tve-leads-conversion-object form",(function(t){var e=ThriveGlobal.$j(this);switch(e.find("#_form_type").val()){case"tve_lead_shortcode":t.lightbox_state&&e.parents(".tve-leads-shortcode").hide();break;case"ribbon":e.parents(".thrv-ribbon").find(".tve-ribbon-close").click();break;case"lightbox":case"tve_lead_2s_lightbox":e.parents(".tve_p_lb_content").find(".tve_p_lb_close").click(),e.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"slide-in":e.parents(".thrv-leads-slide-in").find(".tve-leads-close").click();break;case"screen-filler-lightbox":e.parents(".tve-leads-screen-filler").find(".tve-screen-filler-close").click();break;case"scroll-mat":e.parents(".thrv-greedy-ribbon").find(".tve_et_click").click();break;default:e.find('input:not(:hidden):not([type="checkbox"]):not([type="radio"])').val("")}e.parents(".tve-leads-conversion-object").find(".tve_ea_thrive_leads_form_close").click(),TL_Front.parent_state&&TL_Front.close_form(TL_Front.parent_state)})),TL_Front.$document.on("switchstate",(function(t,e){e.find("script.tcb-lazyload-template").each((function(){ThriveGlobal.$j(this).replaceWith(this.innerHTML)}))}))}})),TL_Front.switch_lightbox_state=function(t,e){return t.find(".tve_p_lb_overlay").css("opacity","0.8"),t.find(".tve_p_lb_content").css("top",e.find(".tve_p_lb_content").css("top")).addClass("tve-leads-triggered"),window.tve_lb_switch_state=!0,TL_Front.open_lightbox(t.find(".tl-lb-target"))},TL_Front.close_lightbox=function(){var o=ThriveGlobal.$j("body"),r=ThriveGlobal.$j("html"),n="tve-o-hidden tve-l-open tve-hide-overflow",a=arguments[0]||o.data("tl-open-lightbox");a&&a.length&&(a.find(".tve-tl-anim").removeClass("tve-leads-triggered"),window.tve_lb_switch_state||(1===ThriveGlobal.$j(".tve_lb_open").length&&(o.removeClass(n).css("padding-right",""),r.removeClass(n),a.data("doc-scroll-top")?(document.documentElement.scrollTop=a.data("doc-scroll-top"),a.data("doc-scroll-top","")):a.data("bdy-scroll-top")&&(document.body.scrollTop=a.data("bdy-scroll-top"),a.data("bdy-scroll-top",""))),r.removeClass(r.data("tl-anim-class"))),window.tve_lb_switch_state=!1,setTimeout((function(){a.addClass("tve_lb_closing"),a.removeClass("tve_lb_open tve_lb_opening tve_lb_closing tve_p_lb_background").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")}),200),a.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);"SOURCE"===this.tagName&&t.parent("video").trigger("pause"),t.attr("data-src",t.attr("src")),t.attr("src","")})),TL_Front.handle_typefocus(a,"pause"),ThriveGlobal.$j("#tve-lg-error-container").hide())},TL_Front.open_lightbox=function(o,r){if(!o.hasClass("tve_lb_open")&&!o.hasClass("tve_lb_opening")){var n=window.tve_lb_switch_state;ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.close_lightbox(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open")),o.css({visibility:"",position:"",left:"",display:""}).parents(".tl-style").css({visibility:"",position:"",left:"",display:""});var a,i,s,l,c,d=ThriveGlobal.$j("body"),_=ThriveGlobal.$j("html"),v="tve-o-hidden tve-l-open tve-hide-overflow",h=(a=ThriveGlobal.$j,i={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},s=a("<div>").css(a.extend({},i)),l=a("<div>").css(a.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},i)).append(s).appendTo("body").scrollLeft(1e3).scrollTop(1e3),c={height:l.offset().top-s.offset().top||0,width:l.offset().left-s.offset().left||0},l.remove(),c).width,p=parseInt(d.css("paddingRight")),f=ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open").length;isNaN(p)&&(p=0),o.find(".tve_p_lb_close").off().on("click",(function(){return TL_Front.close_lightbox(),!1})),d.off("keyup.tve_lb_close").on("keyup.tve_lb_close",(function(t){if(27==t.which)return TL_Front.close_lightbox(),!1})),o.find(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",(function(){return TL_Front.close_lightbox(),!1})),d.data("tl-open-lightbox",o),o.addClass("tve_p_lb_background"),o.data("doc-scroll-top",document.documentElement.scrollTop),o.data("bdy-scroll-top",document.body.scrollTop),d.addClass(v),_.addClass(v);var b=window.innerHeight<ThriveGlobal.$j(document).height();!n&&b&&d.css("padding-right",p+h+"px"),o.find(t+", "+e).each((function(){var t=jQuery(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))})),o.find(".thrv_responsive_video").each((function(){var t=ThriveGlobal.$j(this);TCB_Front.makeAutoplayVideo(t)}));var T="";ThriveGlobal.$j.each(o.parents(".tl-states-root").attr("class").split(" "),(function(t,e){if(0===e.indexOf("tl-anim"))return T=e,!1})),_.addClass(T).data("tl-anim-class",T),setTimeout((function(){function t(){var t=o.find(".tve_p_lb_content").outerHeight(!0)+2*parseInt(o.css("padding-top")),e=o.find(".tve_p_lb_content"),r=window.innerHeight,n=(r-t)/2;o.find(".tve_p_lb_overlay").css({height:t+80+"px","min-height":r+"px"}),f?e.animate({top:n<40?40:n},100):e.css("top",(n<40?40:n)+"px"),t+40>r&&o.addClass("tve-scroll")}setTimeout((function(){o.addClass("tve_lb_opening")}),0),o.find("iframe").not(".thrv_social_default iframe").each((function(){var t=ThriveGlobal.$j(this);!t.data("tve_ifr_loaded")&&t.attr("data-src")&&t.data("tve_ifr_loaded",1).attr("src",t.attr("data-src"))})),TCB_Front.resizePageSection(),t(),ThriveGlobal.$j(window).on("resize",t)}),20),setTimeout((function(){o.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open"),o.find("form").each((function(){ThriveGlobal.$j(this).find('input[required], textarea[required], select[required], input[data-required="true"], textarea[data-required="true"], select[data-required="true"]').each((function(){var t=ThriveGlobal.$j(this);"none"===t.css("display")&&t.show(),"hidden"===t.css("visibility")&&t.css("visibility","visible"),t.parentsUntil(".tve_p_lb_content").filter((function(){return"none"===ThriveGlobal.$j(this).css("display")||"hidden"===ThriveGlobal.$j(this).css("visibility")})).show().css("visibility","visible");var e=t.attr("tabindex");e&&parseInt(e)<0&&t.removeAttr("tabindex")}))})),ThriveGlobal.$j(window).trigger("scroll")}),300),r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation()),o.parents(".tl-states-root").off("switchstate").on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_lightbox_state.apply(TL_Front,o)})),r&&"exit"===r.tve_trigger&&o.data("shown-on-exit",!0),TCB_Front.$window.trigger("tl_after_lightbox_open",o),setTimeout((function(){TCB_Front.$window.trigger("tve_after_content_toggle",[o])}),500)}},TL_Front.open_two_step_lightbox=TL_Front.open_lightbox,TL_Front.open_ribbon=function(t){function e(){t.addClass("tve-leads-triggered");var e=t.find(".tve_shortcode_editor"),o=e.length?e.outerHeight():0,r=t.attr("data-position")||"top";switch(r){case"above":t.css("bottom","auto");case"top":t.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");break;case"bottom":t.css("bottom","0px"),t.css("top","auto")}var n=0,a=Math.max(t.outerHeight(),o),i=setInterval((function(){n++;var e=Math.max(t.outerHeight(),o);e==a&&10!=n||clearInterval(i),"top"===r?(ThriveGlobal.$j("body").animate({"margin-top":e+"px"},200,(function(){document.body.style.setProperty("margin-top",e+"px","important")})),TCB_Front&&TCB_Front.$window&&TCB_Front.$window.trigger("scroll")):"bottom"===r&&ThriveGlobal.$j("body").animate({"margin-bottom":e+"px"},200)}),100),s=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(s.length&&"top"===r){var l=parseFloat(TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset"))||0;TCB_Front.inlineCssVariable(s,"--tcb-header-extra-offset",l+a+"px")}t.off("switchstate").on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_ribbon_state.apply(TL_Front,o)}))}TL_Const.forms.greedy_ribbon?(TL_Const.close_callbacks=TL_Const.close_callbacks||{},TL_Const.close_callbacks.greedy_ribbon=[e]):e()},TL_Front.switch_ribbon_state=function(t){var e=t.outerHeight(!0),o={};o["top"===t.parent().attr("data-position")?"margin-top":"margin-bottom"]=e+"px",t.find(".tve-tl-anim").removeClass((function(t,e){return(e.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),ThriveGlobal.$j("body").animate(o,200)},TL_Front.open_greedy_ribbon=function(o){var r=ThriveGlobal.$j("body"),n=ThriveGlobal.$j(window),a=r.css("position");n.scrollTop(0),r.css("position","static"),r.addClass("tve-tl-gr-anim"),TCB_Front.$window.trigger("scroll"),o.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px");var i=o.outerHeight();r[0].style.setProperty("margin-top",i+"px","important");var s=1;setTimeout((function(){ThriveGlobal.$j('.tve-leads-ribbon[data-position="top"]').removeClass("tve-leads-triggered")}),50),n.scroll((function(){var l=r.hasClass("tve-tl-gr-anim");if(s&&l){var c=n.scrollTop();if(c>i){(o.find(".tve_ea_thrive_wistia").length||o.find(".tve_with_wistia_popover"))&&ThriveGlobal.$j(".wistia_placebo_close_button").trigger("click"),r.removeClass("tve-tl-gr-anim"),o.addClass("tve-no-animation");var d=c-i;o.removeClass("tve-leads-triggered"),o.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),r.css("margin-top",""),r.css("position",a),n.scrollTop(d),o.removeClass("tve-no-animation"),s=0,TL_Front.form_closed("greedy_ribbon"),TL_Const.forms.greedy_ribbon.allow_callbacks=!1}}})),o.off("switchstate").on("switchstate",(function(t,e){}))},TL_Front.open_screen_filler=function(o,r){var n="tve-so-hidden tve-sl-open tve-s-hide-overflow",a=ThriveGlobal.$j("html,body"),i=ThriveGlobal.$j("html");if(ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),o.css("top",ThriveGlobal.$j("#wpadminbar").length?"32px":"0px").css("visibility",""),!0===o.hasClass("stl-anim-slip_from_top")){var s=ThriveGlobal.$j(window).scrollTop();o.css("top",s).css("visibility","")}o.find(".tve-screen-filler-close").on("click",(function(){c(o)})),o.data("doc-scroll-top",document.documentElement.scrollTop),o.data("bdy-scroll-top",document.body.scrollTop),"none"!==o.find(".thrv-leads-screen-filler.thrv_wrapper ").css("display")&&a.addClass(n);var l="";function c(o){o.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),o.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(o,"pause"),ThriveGlobal.$j(document).off("keyup.close-screenfiller"),0==ThriveGlobal.$j.find(".tve-leads-ribbon").length&&ThriveGlobal.$j("body").animate({"margin-top":"0px"},200),a.removeClass(n),i.removeClass(i.data("tl-s-anim-class")),setTimeout((function(){o.css("top","").hide(),"none"===o.css("display")&&(a.removeClass(n),o.removeClass("tve-leads-triggered"))}),400),o.data("doc-scroll-top")?(document.documentElement.scrollTop=o.data("doc-scroll-top"),o.data("doc-scroll-top","")):o.data("bdy-scroll-top")&&(document.body.scrollTop=o.data("bdy-scroll-top"),o.data("bdy-scroll-top","")),ThriveGlobal.$j("#tve-lg-error-container").hide()}ThriveGlobal.$j.each(o.attr("class").split(" "),(function(t,e){if(0===e.indexOf("stl-anim"))return l=e,!1})),i.addClass(l).data("tl-s-anim-class",l);var d=o.find("> .tl-style").hide(),_=o.find('> .tl-style[data-form-state="already_subscribed"]');_.length?_.show():d.first().show(),TL_Front.close_screen_filler=c,r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation()),ThriveGlobal.$j(document).off("keyup.close-screenfiller").on("keyup.close-screenfiller",(function(t){27==t.which&&c(o)})),o.find(t+", "+e).each((function(){var t=jQuery(this);t.attr("data-src")&&t.attr("src",t.attr("data-src"))})),setTimeout((function(){TCB_Front.resizePageSection()}),500)},TL_Front.switch_slide_in_state=function(t){t.find(".tve-tl-anim").removeClass((function(t,e){return(e.match(/(^|\s)tl-anim-\S+/g)||[]).join(" ")})).removeClass("tve-tl-anim"),TL_Front.slide_in_position(t.find(".thrv-leads-slide-in"))},TL_Front.slide_in_position=function(t){var e=ThriveGlobal.$j(window),o=t.outerHeight();if(e.width()<=782||e.height()<o){t.parents(".tve-leads-slide-in").addClass("tve-lb");var r=e.height();setTimeout((function(){var e;e=t.parents(".tve-leads-slide-in").is('[class*="bot"]')?r-o:0,t.closest(".tve-leads-slide-in").data("doc-scroll-top",document.documentElement.scrollTop).data("bdy-scroll-top",document.body.scrollTop),t.parents(".tve-leads-conversion-object").first().css({height:o+80+"px","min-height":r+"px"}),t.css("top",(e<40?40:e)+"px"),o+40>r&&t.parents(".tve-leads-slide-in").css("overflow-y","scroll")}),0)}},TL_Front.open_slide_in=function(o,r){var n="tve-o-hidden tve-l-open tve-hide-overflow",a=ThriveGlobal.$j("body"),i=ThriveGlobal.$j("html");function s(r){r.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(r,"pause"),ThriveGlobal.$j(document).off("keyup.close-slidein"),ThriveGlobal.$j(".tve_lb_open").length||(a.removeClass(n),i.removeClass(n)),r.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),ThriveGlobal.$j("#tve-lg-error-container").hide(),o.data("doc-scroll-top")?(document.documentElement.scrollTop=o.data("doc-scroll-top"),o.data("doc-scroll-top","")):o.data("bdy-scroll-top")&&(document.body.scrollTop=o.data("bdy-scroll-top"),o.data("bdy-scroll-top",""))}ThriveGlobal.$j.fn.thrive_iphone_placeholder&&o.find("input[placeholder]").thrive_iphone_placeholder(),TL_Front.slide_in_position(o.find(".thrv-leads-slide-in").filter(":visible")),o.off().on("click",".tve-leads-close",(function(){s(o)})),o.find(".tve_ea_thrive_leads_form_close").on("click",(function(){s(o)})),o.on("switchstate",(function(t,e){var o=Array.prototype.slice.call(arguments,1);TL_Front.switch_slide_in_state.apply(TL_Front,o)})),ThriveGlobal.$j(document).off("keyup.close-slidein").on("keyup.close-slidein",(function(t){27==t.which&&s(o)})),r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation())},TL_Front.close_form=function(o,r,n,a){var i=ThriveGlobal.$j(o).parents(".tve-leads-triggered"),s=i.attr("data-tl-type");if(void 0===s&&i.hasClass("tve-leads-widget"))s="widget";else if(void 0===s&&i.hasClass("tve-leads-post-footer"))s="post-footer";else if(void 0===s&&i.hasClass("tve-leads-slide-in"))s="slide-in";else if(void 0===s&&i.hasClass("tve-leads-in-content"))s="in-content";else if(void 0===s&&i.hasClass("tve-leads-shortcode"))s="shortcode";else if(void 0===s&&i.hasClass("tve-leads-greedy_ribbon"))s="greedy_ribbon";else{if(void 0===s&&i.hasClass("tve_p_lb_content"))return TL_Front.close_lightbox(),!1;if(void 0===s&&i.hasClass("tve-leads-screen-filler"))return TL_Front.close_screen_filler(i),!1}switch(i.removeClass("tve-leads-triggered"),TL_Front.handle_typefocus(i,"pause"),s){case"ribbon":var l=i.find(".tve-ribbon-close");l.length||(l=jQuery('<span class="tve-ribbon-close" style="display: none"></span>').appendTo(i)),l.trigger("click");var c=ThriveGlobal.$j("body").find(".thrv_header.tve-scroll-sticky");if(c.length&&"top"===i.attr("data-position")){var d=parseFloat(TCB_Front.inlineCssVariable(c,"--tcb-header-extra-offset"))-i.outerHeight(!0)+"px";TCB_Front.inlineCssVariable(c,"--tcb-header-extra-offset",d)}break;case"slide-in":i.find(".tve_ea_thrive_leads_form_close").trigger("click"),i.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")}));break;case"post-footer":case"in-content":case"shortcode":i.fadeOut(200,(function(){TL_Front.form_closed(s)}));break;case"widget":i.parent().slideUp(200);break;case"greedy_ribbon":var _=ThriveGlobal.$j("body"),v=ThriveGlobal.$j(window),h=_.css("margin-top");_[0].style.removeProperty("margin-top"),i.find(t+", "+e).each((function(){var t=ThriveGlobal.$j(this);t.attr("data-src",t.attr("src")),t.attr("src","")})),_.css("margin-top",h),v.scrollTop(0),_.animate({"margin-top":"0px"},300,"linear",(function(){TL_Front.form_closed(s)})).removeClass("tve-tl-gr-anim")}},TL_Front.form_closed=function(t){TL_Const.close_callbacks&&TL_Const.close_callbacks[t]&&ThriveGlobal.$j.each(TL_Const.close_callbacks[t],(function(t,e){ThriveGlobal.$j.isFunction(e)&&e()}))},TL_Front.handle_typefocus=function(t,e){t.find(".tve_typefocus").each((function(){jQuery(this).attr("data-typefocus",e)}))}})();
(()=>{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('<link rel="stylesheet" id="'+e+'" type="text/css" href="'+t+'"/>').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('<script type="text/javascript">'+e[s+"_before"]+"<\/script>").after(t.lastChild),s&&(o.id=s+"-script"),o.src=n,t.appendChild(o)})},TVE_Dash.send_ajax=function(t,s){a.ajax({url:tve_dash_front.ajaxurl,xhrFields:{withCredentials:!0},data:{post_id:tve_dash_front.post_id,action:"tve_dash_front_ajax",tve_dash_data:t},dataType:"json",type:"post"}).done(function(t){t&&a.isPlainObject(t)&&(t.__resources&&(t.__resources.css&&TVE_Dash.ajax_load_css(t.__resources.css),t.__resources.js&&TVE_Dash.ajax_load_js(t.__resources.js),delete t.__resources),a.each(t,function(a,e){if("function"!=typeof s[a])return!0;s[a].call(null,e,t)}),e.$j(window).trigger("tve_after_ajax_load"))})},TVE_Dash.forceImageLoad=function(a){Array.prototype.forEach.call(a.getElementsByTagName("img"),a=>{a.getAttribute("src").includes("data:image")&&a.setAttribute("src",a.getAttribute("data-opt-src")||a.getAttribute("data-src"))})},a(function(){window.TVE_Dash=window.TVE_Dash||TVE_Dash,setTimeout(function(){var e=new a.Event("tve-dash.load");return a(document).trigger(e),!a.isEmptyObject(t)&&!(!tve_dash_front.force_ajax_send&&tve_dash_front.is_crawler)&&(TVE_Dash.send_ajax(t,s),void(TVE_Dash.ajax_sent=!0))})})}(e.$j)})();
(()=>{var e={69158:e=>{void 0===TCB_Front.js_modules["search-form"]&&TCB_Front.setModuleLoadedStatus("search-form",!1),((t,i)=>{if(TCB_Front.isModuleLoaded("search-form"))return;const s=".thrv-search-form",a=e=>{try{new n(t(e),!!TCB_Front.Utils.isEditorPage())}catch(e){}};window.addEventListener("load",()=>{i.$body.find(s).each((e,t)=>{a(t)})}),t(window).on("tcb_after_dom_ready",()=>{t(s).each((e,t)=>{a(t)})});class n{constructor(e,t=!0){e.is(s)&&!e.hasClass("thrv-sticky-search")&&(e.data("tcb.search")&&!t||(this.$element=e,this.$form=e.find("form"),this.$input=e.find(".thrv-sf-input"),this.$submit=e.find(".thrv-sf-submit"),this.$submitButton=this.$submit.find("button"),this.isEditor=t,this.$input.removeClass("thrv-sf-input-hide"),this.onResize(),this.isEditor?this.$form.off("submit").on("submit",()=>!1):this.bindEvents(),this.$element.attr("id")&&this.$element.attr("data-selector",`${s}#${this.$element.attr("id")}`),e.data("tcb.search",this)))}onResize(){this.readData(),this.closeAnimation(),this.$input.toggle(!["expand","overlay"].includes(this.currentDisplay)),this.isEditor&&this.isElementEditable()&&this.$element.attr("data-editor-preview")&&this.startAnimation()}readData(){this.currentDisplay=i.getMediaAttr(this.$element,"data-display"),this.currentPosition=i.getMediaAttr(this.$element,"data-position"),this.wrapperSize=this.$element.outerWidth(),this.submitImage=i.inlineCssVariable(this.$submitButton,"background-image"),this.submitColor=i.inlineCssVariable(this.$submitButton,"background-color")}startAnimation(){switch(this.currentDisplay||i.getMediaAttr(this.$element,"data-display")){case"expand":this.showExpand ();break;case"overlay":this.showOverlay();break;case"tooltip-click":case"tooltip-hover":this.showTooltip();break;default:clearTimeout(this.hideExpandTimeout),this.$input.show(),i.inlineCssVariable(this.$element,"--tve-applied-max-width","")}}closeAnimation(e=!1){switch(this.currentDisplay||i.getMediaAttr(this.$element,"data-display")){case"expand":this.hideExpand (e);break;case"overlay":this.hideOverlay();break;case"tooltip-click":case"tooltip-hover":this.hideTooltip();break;default:i.inlineCssVariable(this.$element,"--tve-applied-max-width",""),i.inlineCssVariable(this.$input,{transition:"",transform:"",display:"block"})}}bindEvents(){const e=this.onResize.bind(this);i.addResizeCallback(e),this.$submit.off("click.search").on("click.search",()=>{if(this.isEditor)return!1;switch(this.currentDisplay){case"expand":if(this.isInputHidden())return this.showExpand (),!1;break;case"overlay":return this.showOverlay(),!1;case"tooltip-click":if(this.isInputHidden())return this.showTooltip(),!1}}),i.$body.on("click.search",e=>{const i=t(e.target);if(i.length&&this.isOpened)switch(this.currentDisplay){case"expand":this.isInsideElement(this.$element,i)||this.hideExpand ();break;case"overlay":this.$element.data("$$clone")&&!this.isInsideElement(this.$element.data("$$clone"),i)&&this.hideOverlay();break;case"tooltip-click":case"tooltip-hover":this.isInsideElement(this.$element,i)||this.hideTooltip()}}),"overlay"!==this.currentDisplay&&this.bindMouseEvents()}bindMouseEvents(){const e=()=>{this.hideInputTimeout=setTimeout(()=>{"expand"===this.currentDisplay?this.hideExpand ():this.hideTooltip()},5e3)};this.$submit.off("mouseenter.search").on("mouseenter.search",()=>{this.isHoverTooltip()&&this.showTooltip(),clearTimeout(this.hideInputTimeout)}),this.$input.off("mouseenter.search_input").on("mouseenter.search_input",()=>{clearTimeout(this.hideInputTimeout)}),this.$submit.off("mouseleave.search").on("mouseleave.search",e),this.$input.off("mouseleave.search_input").on("mouseleave.search_input",e)}isHoverTooltip(){return"desktop"===i.getDisplayType()&&"tooltip-hover"===this.$element.attr("data-display-d")}bindCloseSticky(){!this.isEditor&&this.$element.data("$$clone")&&this.$element.data("$$clone").jquery&&this.$element.data("$$clone").find(".tcb-sf-close-icon").off("click.close_search").on("click.close_search",()=>{this.hideOverlay()})}toggleOverlay(e=!0){this[(e?"show":"hide")+"Overlay"]()}toggleTooltip(e=!0){this[(e?"show":"hide")+"Tooltip"]()}toggleExpand (e=!0){this[(e?"show":"hide")+"Expand"]()}showOverlay(){if(!this.$element.data("$$clone")){const e=this.$element.attr("id").replace("tve-sf-","tve-sf-overlay-"),s=this.$element.clone(),a=t(`<div id="${e}" data-selector=".tve-sf-overlay-container#${e}" class="thrv_wrapper tve-sf-overlay-container tve_no_icons tve_no_drag"><div class="tve-content-box-background" data-selector="#${e} .tve-content-box-background"></div><div class="tve-cb" data-selector="#${e} .tve-cb"></div></div>`),n=a.find(".tve-cb");this.$element.hasClass("overlay-icon")?a.prepend(`<div class="thrv_wrapper tcb-sf-close-icon thrv_icon tve_no_drag tve_no_icons tcb-icon-inherit-style tcb-icon-display" data-selector="#${e} .tcb-sf-close-icon"></svg>${i.icons.get("cross").replace("tcb-cross","tcb-icon tcb-cross")}</div>`):s.prepend(`<div class="thrv_wrapper tcb-sf-close-icon thrv_icon tve_no_drag tve_no_icons tcb-icon-inherit-style tcb-icon-display" data-selector=".thrv-search-form#${this.$element.attr("id")} .tcb-sf-close-icon"></svg>${i.icons.get("cross").replace("tcb-cross","tcb-icon tcb-cross")}</div>`),s.addClass("thrv-sticky-search tve_no_icons"),n.append(s),this.$element.closest(i.identifiers.pageStickyParent).append(a),this.$element.data("$$clone",s),this.$element.data("$$overlayWrapper",a),a.data("$$parent",this.$element),s.data("$$parent",this.$element),s.attr("id",this.$element.attr("id")),s.find(".thrv-sf-input").show(),this.bindCloseSticky()}this.$element.hasClass("tcb-compact-edit-mode")&&this.$element.data("$$clone")&&this.$element.data("$$clone").find(".tve-prevent-content-edit").removeClass("tve-prevent-content-edit"),this.zIndexOrder(),i.$body.addClass("tcb-body-search-overlay"),this.$element.data("$$clone").removeClass("tcb-permanently-hidden canvas-mode tcb-compact-element"),this.$element.data("$$overlayWrapper").removeClass("tcb-permanently-hidden canvas-mode tcb-compact-element").css({top:"-500px",opacity:"0"}).animate({top:TCB_Front.bodyOffsetTop(),opacity:"1"}),this.isOpened=!0,t(window).trigger("tcb_search_overlay_show",[this.$element])}hideOverlay(){i.$body.removeClass("tcb-body-search-overlay"),this.$element.data("$$overlayWrapper")?this.isEditor?(this.$element.data("$$overlayWrapper").remove(),this.$element.removeData("$$overlayWrapper"),this.$element.removeData("$$clone")):this.$element.data("$$overlayWrapper").css({top:TCB_Front.bodyOffsetTop(),opacity:"1"}).animate({top:"-1000px",opacity:"0"},{done:()=>{this.zIndexOrder(!1),this.$element.data("$$overlayWrapper").addClass("tcb-permanently-hidden")}}):this.zIndexOrder(!1),i.isModuleLoaded("menu")&&i.menu.zIndexOrder(),this.isOpened=!1}zIndexOrder(e=!0){("overlay"===this.currentDisplay?this.$element.parentsUntil("body,#wrapper"):this.$element).each(function(){const i=t(this);e?"static"===i.css("position")||i.hasClass("thrv_header")||i.css("z-index",101).addClass("tcb-sfp"):i.css("z-index","").removeClass("tcb-sfp")})}showExpand (){let e=parseFloat(i.inlineCssVariable(this.$element,"--tve-applied-max-width"));e="left"===this.currentPosition?Math.min(parseInt(this.$element.offset().left),e):Math.min(parseInt(i.$window.width()-(this.$element.offset().left+this.$element.outerWidth())),e),i.inlineCssVariable(this.$element,"--tve-applied-max-width",`${e}px`,"important"),i.inlineCssVariable(this.$input,{top:this.$element.css("padding-top"),transform:"none",transition:"width 0.5s",["left"===this.currentPosition?"right":"left"]:"100%",[this.currentPosition]:"auto"}),this.$input.show().addClass("tcb-sf-expand"),this.zIndexOrder(),clearTimeout(this.hideExpandTimeout),this.isOpened=!0}hideExpand (e=!1){const t=()=>{i.inlineCssVariable(this.$element,"--tve-applied-max-width",""),i.inlineCssVariable(this.$input,{top:"",transition:"",left:"",right:"",transform:""}),this.$input.hide()};this.$input.removeClass("tcb-sf-expand"),e?t():this.hideExpandTimeout=setTimeout(t,350),this.zIndexOrder(!1),this.isOpened=!1}showTooltip(){i.inlineCssVariable(this.$element,"--tve-applied-max-width","");let e=parseFloat(i.inlineCssVariable(this.$element,"--tve-applied-max-width"));const t=this.$element.outerWidth();e="left"===this.currentPosition?Math.min(parseInt(this.$element.offset().left+t),e):Math.min(parseInt(i.$window.width()-this.$element.offset().left),e),i.inlineCssVariable(this.$element,"--tve-applied-max-width",`${e}px`,"important"),this.$element.addClass("tcb-sf-show-tooltip"),i.inlineCssVariable(this.$input,{"--tcb-sf-bg-img":this.submitImage,"--tcb-sf-bg-color":this.submitColor,display:"",[this.currentPosition]:"auto",["left"===this.currentPosition?"right":"left"]:"0","--tve-sf-after-left":"left"===this.currentPosition?"auto":this.wrapperSize/2-10+"px","--tve-sf-after-right":"right"===this.currentPosition?"auto":this.wrapperSize/2-10+"px"}),this.zIndexOrder(),this.isOpened=!0}hideTooltip(){i.inlineCssVariable(this.$element,"--tve-applied-max-width",""),i.inlineCssVariable(this.$input,{left:"",right:""}),this.$element.removeClass("tcb-sf-show-tooltip"),this.zIndexOrder(!1),this.isOpened=!1}isInputHidden(){return"none"===this.$input.css("display")||!this.$input.outerHeight()||!this.$input.outerWidth()}isInsideElement(e,t){return e.is(t)||e.find(t).length}isElementEditable(){let e=!1;try{TVE&&TVE.CONST&&TVE.Editor_Page&&(TVE.CONST.theme&&TVE.CONST.theme.is_theme_template&&0!==this.$element.closest(".tcb-post-content").length||(e=!!TVE.Editor_Page.selection_manager.isElementEditable(this.$element)&&(this.$element.closest(".tve-ham-wrap.tcb-compact-edit-mode").length||!this.$element.closest(".tve-ham-wrap").length)))}catch(e){}return e}}window.TCB_Front.TARSearch=n,e.exports=n,TCB_Front.setModuleLoadedStatus("search-form",!0)})(ThriveGlobal.$j,TCB_Front)}},t={};!function i(s){var a=t[s];if(void 0!==a)return a.exports;var n=t[s]={exports:{}};return e[s](n,n.exports,i),n.exports}(69158)})();
(()=>{var e={74208:e=>{void 0===TCB_Front.js_modules.menu&&TCB_Front.setModuleLoadedStatus("menu",!1),function(t,n){if(TCB_Front.isModuleLoaded("menu"))return;const o=e=>["auto","scroll","hidden"].includes(e.css("overflow"));let i;function s(e){return t(e).closest(".thrv_widget_menu")}const a={init(){tve_frontend_options.is_editor_page||a.frontendInit(),a.customMenuSwitchIcon(),i||(i=a.customMenuSwitchIcon.bind(this,!1),n.addResizeCallback(i)),a.zIndexOrder(),t(".thrv_widget_menu").each((e,t)=>{a.addMutationListener(t)}),a.handleHiddenItems()},handleHiddenItems(){t(".thrv_widget_menu ul").each((e,n)=>{const o=t(n),i=o.closest("li").find("> a .tve-item-dropdown-trigger"),s=this.hasVisibleItems(o);s||n.style.setProperty("display","none","important"),i.toggle(s)})},hasVisibleItems(e){let t=!1;return e.find("> li").each((e,n)=>{getComputedStyle(n).getPropertyValue("display").includes("none")||(t=!0)}),t},zIndexOrder(){const e=t("ul.tve_w_menu");n.highestZIndex=e.length+6;let o=n.highestZIndex;e.each(function(){this.style.zIndex=o+5;const e=t(this),n=e.closest("#content");e.find("ul").css("z-index",o+6).parent().addClass("menu-item-has-children"),e.parentsUntil("body,#wrapper,#tve_editor").each(function(){const e=t(this);let n=parseInt(e.css("z-index"));isNaN(n)&&(n=0),n=800===n?o+7:Math.max(n,o+7),"static"!==e.css("position")&&(this.style.setProperty("z-index",n,"important"),this.classList.add("tcb-mp"))}),n.length&&"static"!==n.css("position")&&n.css("z-index",o+7).addClass("tcb-mp"),o--})},frontendInit(e){const i=this;function s(e,o){const i=e.attr("href"),s=e[0]?e[0].hash:"",a=e.attr("target");if(s){let o;try{o=t(s)}catch(e){}o&&o.length&&n.jumpScrollTo(o,e[0])}a||o.ctrlKey||o.metaKey?window.open(i,a||"_blank"):location.href=i}(e=e||n.$document).off("click.menu-disable-links").on("click.menu-disable-links",".tve-active-disabled .tve_w_menu .tve-state-active",function(e){const n=t(this).closest("li");if(!a.isHamburger(this)||!n.hasClass("menu-item-has-children"))return e.tvePreventNavigation=!0,!1}),e.off("menu_item_anchor_clicked").on("menu_item_anchor_clicked",".tve_w_menu li",function(){const e=t(this);a.isHamburger(e)&&requestAnimationFrame(()=>{a.toggleState(e,!1)})}),e.off("click.menu_item_click").on("click.menu_item_click",".tve_w_menu li:not(.tve-regular .tcb-mega-drop li)",function(e){if(e.tvePreventNavigation)return!0;if(e.stopPropagation(),t(e.target).closest(".tve-regular .tcb-mega-drop").length)return!0;const n=t(this),r=n.children("a").first(),l=r[0],c=!!n.find("ul").length,d=t(e.target).closest(".tve-item-dropdown-trigger").length||t(e.clickedTarget).closest(".tve-item-dropdown-trigger").length,u=n.closest(".thrv_widget_menu").attr("class").includes("tve-custom-menu-switch-icon-"),h=n.closest(".tve_w_menu").hasClass("tve_vertical");if((u||h)&&c){if(!d&&n.hasClass("expand-children")&&function(e){const t=e.attr("href");return t&&"#"!==t&&0!==t.indexOf("javascript:")}(r))return r.hasClass("tve-jump-scroll")?r.trigger("click"):s(r,e),!1;n.toggleClass("expand-children");const t=n.find("ul").first(),a=n.hasClass("expand-children");i.hasVisibleItems(t)&&t[a?"slideDown":"slideUp"](100);const l=t.closest(".section-content,.tve-cb");if(o(l)){let e={top:"",left:"",width:""};if(a){const{top:n,left:o,width:i}=t[0].getBoundingClientRect();e={top:n,left:o,width:i},t.data("fixed-position",{top:n,scrollTop:l.scrollTop()})}t.toggleClass("fixed-menu-item",a).css(e)}return!1}if(c&&d)return!1;const m=n.children(".tve_et_click");return m.length>0?(m.trigger("click"),!0):!!r.attr("href")&&(r.hasClass("tve-jump-scroll")?(r.trigger("click"),!0):(s(r,e),void(a.isHamburger(n)&&l.pathname===window.location.pathname&&l.host===window.location.host&&l.protocol===window.location.protocol&&requestAnimationFrame(()=>{a.toggleState(n,!1)}))))}),e.off("click.prevent_navigation").on("click.prevent_navigation",".tve_w_menu li a:not(.thrv_text_element a):not(.tve-regular .tcb-mega-drop a)",function(e){e.preventDefault()}),e.off("click.custom_menu").on("click.custom_menu",".tve-m-trigger",function(){return a.toggleState(this),!1}),e.off("mousedown.close_menu").on("mousedown.close_menu",e=>{t(e.target).closest(".thrv_widget_menu").length||a.closeAll()}),n.addResizeCallback(a.customMenuResponsive),n.addResizeCallback(a.mobileResponsiveToggle),a.customMenuResponsive(),a.refreshActiveStates(e),TCB_Front.$window.off("hashchange.tcb").on("hashchange.tcb",a.refreshActiveStates.bind(a,TCB_Front.$body)),a.positionLogo(e),a.mobileResponsiveToggle(),e.find(".section-content,.tve-cb").each((e,n)=>{const i=t(n);o(i)&&i.off("scroll.menu").on("scroll.menu",e=>{i.find(".fixed-menu-item").each((n,o)=>{const i=t(o),s=i.data("fixed-position"),a=parseInt(s.top)+(s.scrollTop-e.currentTarget.scrollTop);i.css("top",`${a}px`)})})})},mobileResponsiveToggle(){"mobile"===n.getDisplayType()?(n.$body.find(".vmd-right").attr("data-toggle-dir","vmd-right").removeClass("vmd-right").addClass("vmd-toggle"),n.$body.find(".vmd-left").attr("data-toggle-dir","vmd-left").removeClass("vmd-left").addClass("vmd-toggle")):n.$body.find(".vmd-toggle").each((e,t)=>{const n=t.getAttribute("data-toggle-dir");n&&(t.classList.remove("vmd-toggle"),t.classList.add(n))})},refreshActiveStates(e=TCB_Front.$body){e.find(".tve-custom-menu-type li > a").each(function(){if(!this.getAttribute("href")||"#"===this.getAttribute("href")||0===this.getAttribute("href").indexOf("javascript"))return;const e=t(this),n=location.protocol===this.protocol&&location.hostname===this.hostname&&location.pathname===this.pathname&&location.hash===this.hash;e.toggleClass("tve-state-active",n),e.parent().toggleClass("tve-state-active",n)})},customMenuResponsive(){t(".tve-m-trigger:visible").length?t(".tve-m-trigger").each(function(){const e=t(this).parent().find("> ul");if(!e.data("tve-colors-added")&&e.find("ul a").attr("data-tve-custom-colour")){const n=e.find("ul a").attr("data-tve-custom-colour");e.find("> li > a").each(function(){const e=t(this);e.attr("data-tve-custom-colour")&&(e.attr("data-o-color",e.attr("data-tve-custom-colour")),e.attr("data-tve-custom-colour",n))})}e.data("tve-colors-added",!0)}):(t(".tve-m-expanded").removeClass("tve-m-expanded"),t(".tve-m-trigger").each(function(){const e=t(this).parent().find("> ul");if(!e.data("tve-colors-added")&&e.find("> li > a").attr("data-o-color")){const t=e.find("> li > a"),n=t.attr("data-o-color");t.attr("data-tve-custom-colour",n).removeAttr("data-o-color")}e.data("tve-colors-added",!1)}))},customMenuSwitchIcon(e=!0){const o=n.getDisplayType();t(".thrv_widget_menu").each(function(){const n=t(this),i=n.attr("data-tve-allhoriz");let s=n.attr("data-tve-switch-icon"),r=!1;const l=n.data("tve-frontend-init");n.data("tve-frontend-init",!0),s||i||(s="tablet,mobile");const c=s.split(","),d=n.hasClass("tve-regular")||!l&&!n.find(".tve-m-trigger").is(":visible");if(n.removeClass("tve-custom-menu-switch-icon-desktop tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),e&&n.find("ul:not(.tcb-masonry.masonry)").removeAttr("style"),c.includes(o)?n.addClass(`tve-custom-menu-switch-icon-${o}`):r=!0,n.toggleClass("tve-regular",r),n.toggleClass("tve-dropdown",!r),n.find("li.menu-item").toggleClass("tcb-menu-img-hamburger",!r),l&&r&&d)return void a.ensureOnScreenDropdown(n);n.toggleClass("tve-regular",r),n.toggleClass("tve-dropdown",!r);const u=n.find(":not(.tve-ham-wrap) > ul.tve_w_menu, .tve-ham-wrap");if(r)a.ensureRegularLogoSplit(n),n.find("ul").removeAttr("style"),n.find("li").removeClass("expand-children"),n.find(".tve-m-expanded").removeClass("tve-m-expanded"),u.removeAttr("style"),setTimeout(()=>n.find(".tcb-masonry").masonry(),1e3);else{if(a.ensureHamburgerLogoSplit(n),n.find(".tcb-masonry").each(function(){const e=t(this);e.data("masonry")&&e.masonry("destroy")}),!n.data("calc-dimensions")){n.find(".sub-menu").slideDown(0).slideUp(0).removeAttr("style"),n.data("calc-dimensions",!0);const e=u.attr("style","height: auto !important;max-height:none !important").outerHeight();u.removeAttr("style"),n.data("calc-height",e)}e?a.toggleState(n,!1):a.reposition(n)}a.ensureOnScreenDropdown(n)})},isHamburger(e){const t=s(e);return t.length>0&&t.attr("class").includes("tve-custom-menu-switch-icon-")},isVertical(e){const t=s(e);return t.length>0&&t.find(".tve_vertical").length>0},toggleState(e,t,o=100){const i=s(e),r=i.find("ul").first();let l=i.find(".tve-ham-wrap");0===l.length&&(l=r);const c=l.hasClass("tve-m-expanded");let d=!c;if(!this.hasVisibleItems(r))return i;if(void 0!==t&&(d=t),d===c)return i;if(i.hasClass("tve-mobile-side-fullscreen")&&n.$body.toggleClass("tve-fullscreen-menu",d),i.find(".tve-m-trigger").toggleClass("tve-triggered-icon",t),d?i.parents(".tcb-mp").addBack().css("z-index",800):setTimeout(()=>{a.zIndexOrder()},100),!i.hasClass("tve-mobile-dropdown")){if(d&&tve_frontend_options.is_editor_page){const e=i.find(".tve-m-trigger");e.hasClass("close-offscreen-icon-available")||e.append(e.find(".tcb-icon-close").clone().removeClass("tcb-icon-close").addClass("tcb-icon-close-offscreen")).addClass("close-offscreen-icon-available ")}return l.toggleClass("tve-m-expanded",t).removeAttr("style"),i}if(d){l.css("display","flex");const e=this.getMenuPositionalParent(i),t=parseInt(i.data("calc-height")||"500")+"px",n=e.outerWidth(),s=this.getMenuDropdownPosition(i,l,n);l.attr("style",`visibility: visible;display: flex;margin-left: 0 !important;${s}width:${n}px !important;max-height:${t}px`),l.addClass("tve-m-expanded"),setTimeout(()=>{l.css("max-height","none")},o)}else i.data("calc-height",l.outerHeight()),l.stop().slideUp(o,()=>{l.removeClass("tve-m-expanded").removeAttr("style"),l.css("visibility","hidden")});return i},getMenuDropdownPosition(e,t,o){const i=n.getDisplayType();let s=n.getMediaAttr(e,"data-dropdown-position",i);const a=e.find(".tve-m-trigger .tcb-icon-close"),r=a.offset(),l=e.offset();let c="";switch(t.is("ul")&&(t=this.getMenuPositionalParent(e),s="full"),"mobile"===i&&(s="full"),s){case"left":c=`right: ${parseInt(l.left+e.outerWidth()-r.left-a.outerWidth())}px;left: unset;`;break;case"right":c=`left: ${parseInt(r.left-l.left)}px;right:unset;`;break;case"full":c=`left:${this.getMenuPositionalParent(e).offset().left-l.left}px;`;break;default:if(void 0!==s&&1===parseInt(e.attr("data-offscreen-width-setup"))){let e=t.css("max-width");(e.includes("%")||"none"===e)&&(e=t.outerWidth()),o=Math.min(o,parseInt(e))}c=`left: ${parseInt(r.left-l.left-o/2+a.outerWidth()/2)}px;right:unset;`}return c},getMenuPositionalParent:e=>e.closest(".tve-page-section-in, #tve_editor, #wrapper, .section-content"),reposition(e){const t=s(e),n=t.find(".tve-m-expanded").first(),o=n.length>0;if(t.find(".tve-m-trigger").toggleClass("tve-triggered-icon",o&&t.attr("class").includes("tve-mobile-")),o&&t.hasClass("tve-mobile-dropdown")){const e=this.getMenuPositionalParent(t),o=parseInt(t.data("calc-height")||"500")+"px",i=e.outerWidth(),s=this.getMenuDropdownPosition(t,n,i);let a=n.css("display");"none"===a&&(a="flex"),n.attr("style",`visibility: visible;margin-left: 0 !important;${s}width:${i}px !important;max-height:${o}px;display:${a}`),setTimeout(()=>{n.css("max-height","none")},100)}return t},closeAll(){t(".thrv_widget_menu").each((e,t)=>{a.toggleState(t,!1)})},positionLogo(e){(e||n.$body).find(".tcb-menu-logo-wrap").each((e,n)=>{const o=t(n),i=o.siblings(),s=Math.floor(i.length/2);i.eq(s).before(o)})},ensureLogoSplit(e){const t=s(e);t.hasClass("tcb-logo-split")&&(a.isHamburger(t)?a.ensureHamburgerLogoSplit(e):a.ensureRegularLogoSplit(e))},ensureHamburgerLogoSplit(e,n=s(e).find("li.tcb-menu-logo-wrap")){const o=s(e);if(n.children().length){o.find(".tcb-hamburger-logo").remove();const e=t('<div class="tcb-hamburger-logo"></div>');e.append(n.children()),o.find(".thrive-shortcode-html").prepend(e)}},ensureRegularLogoSplit(e){const t=s(e),n=t.find(".tcb-hamburger-logo .tcb-logo"),o=t.find("li.tcb-menu-logo-wrap");n.length&&o.length&&o.empty().append(n),a.handleLogoOverflow(t)},handleLogoOverflow(e){const t=e.find("li.tcb-menu-logo-wrap");if(t.length)if(a.menuOverflows(e)){const e=t.outerHeight(!0),n=t.outerWidth();t.closest(".thrive-shortcode-html").css("padding-top",e+"px"),t.css({top:`-${e}px`,left:`calc(50% - ${Math.round(n/2)}px)`,position:"absolute"})}else t.removeAttr("style"),t.closest(".thrive-shortcode-html").css("padding-top","");else e.find(".thrive-shortcode-html").css("padding-top","")},menuOverflows(e){let n=0;return e.find(".tve_w_menu > li").each(function(){n+=t(this).outerWidth(!0)}),n>e.parent().width()-5},addMutationListener(e){const t=s(e);let o;const i=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(a.handleLogoOverflow.bind(this,t))};if(window.ResizeObserver){const e=t.find("ul.tve_w_menu")[0];if(!e)return;const o=new ResizeObserver(i);if(!t.data("resize-observer")){o.observe(e),t.data("resize-observer",o);const n=new MutationObserver(e=>{Array.from(e).forEach(e=>{e.target.classList.contains("tcb-menu-logo-wrap")||"UL"===e.target.tagName&&"childList"===e.type&&e.addedNodes.length&&Array.from(e.addedNodes).forEach(e=>n.observe(e,{attributes:!0}))}),t.hasClass("tve-regular")&&i()});t.find(".tve_w_menu > li:not(.tcb-menu-logo-wrap)").each((e,t)=>{n.observe(t,{attributes:!0})})}const s=t.find("li.tcb-menu-logo-wrap");if(s.length&&!s.data("resize-observer")&&(s.data("resize-observer",o),o.observe(s[0])),t.hasClass("tcb-mega-std")&&!t.data("mega-resize-observer")){let e;const o=new ResizeObserver(()=>{cancelAnimationFrame(e),e=requestAnimationFrame(a.handleMegaMenuPosition.bind(this,t))});t.find(".tcb-mega-drop").each((e,t)=>{n.inlineCssVariable(t,"top","var(--mega-menu-top,100%)")}),o.observe(t[0]),t.data("mega-resize-observer",o)}}},handleMegaMenuPosition(e){const t=e.find(".tve_w_menu");if(t.length){const o=e[0].getBoundingClientRect().bottom,i=getComputedStyle(t[0]),s=parseInt(i.getPropertyValue("border-bottom-width"));e.find(".menu-item.menu-item-has-children.lvl-0").each((e,t)=>{const i=t.getBoundingClientRect().bottom,a=o-i-s;a>0?n.inlineCssVariable(t,"--mega-menu-top",`calc(100% - ${a}px)`):n.inlineCssVariable(t,"--mega-menu-top","")})}},ensureOnScreenDropdown(e){const o=s(e),i=o.hasClass("tve-regular"),a=o.hasClass("tve-vertical-menu"),r=o.offset().left+o.outerWidth();o.find("li:last-child > ul").each((e,n)=>{const o=t(n),s=o.offset().left+o.outerWidth();Math.ceil(s-r)>=0&&i&&s<o.outerWidth()?o.css({left:"auto",right:"0px"}):o.css({left:"",right:""})}),i||a?o.find(".tve_w_menu > li li").each((e,t)=>{let o;a&&(o=t.parentNode.closest("li"),o&&o.classList.add("expand-children"));const s=t.getBoundingClientRect();let r=parseFloat(t.getAttribute("data-init-width"));if(r||(r=s.width,t.setAttribute("data-init-width",r)),r+s.left>document.body.offsetWidth){const e=document.body.offsetWidth-s.left,o=r-e;i&&r>e&&n.inlineCssVariable(t.parentNode,{left:`calc(100% - ${o}px)`})}else n.inlineCssVariable(t,{"max-width":"","min-width":""});o&&o.classList.remove("expand-children")}):o.find(".tve_w_menu > li li").each((e,t)=>{n.inlineCssVariable(t,{"max-width":"","min-width":""})})}};t(window).on("tcb_after_dom_ready",()=>a.init()),window.addEventListener("load",()=>a.init()),window.TCB_Front.menu=a,e.exports=a,TCB_Front.setModuleLoadedStatus("menu",!0)}(ThriveGlobal.$j,TCB_Front)}},t={};!function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}(74208)})();
(()=>{var o;o=jQuery,window.BorlabsCookie=function(){"use strict";var e,t,n="#BorlabsCookieBox input[type='checkbox']",i="#BorlabsCookieBox",a="#BorlabsCookieBoxWrap",s="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",c="._brlbs-btn-switch-status",r="data-borlabs-cookie-uid",l="data-borlabs-cookie-consent-history",d=".BorlabsCookie",u={},b={},h={},k={},p={scriptBlockerId:{},jsHandle:{}},f=!1,v={consents:{},expires:null,uid:"anonymous",version:null},g="borlabs-cookie",m={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null},x=null,C=!1,y=null;function B(o,e){if(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=Array.from(t).filter((function(o){return 0!==o.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===o.key||9===o.keyCode)&&(o.shiftKey?document.activeElement===i&&(o.preventDefault(),a.focus()):document.activeElement===a&&(o.preventDefault(),i.focus()))}}function w(o){o.addEventListener("keydown",(function(e){return B(e,o)}),!0)}function O(o){o.removeEventListener("keydown",(function(e){return B(e,o)}),!0)}function L(){o(i).attr("aria-modal",!1)}var S,_=function(t){o(i).attr("aria-modal",!0),o("body").addClass("borlabs-position-fix"),w(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var a=o(s),c=null;Object.keys(v.consents).length?(o("[data-borlabs-cookie-group]").each((function(){-1===Object.keys(v.consents).indexOf(this.dataset.borlabsCookieGroup)&&o(this).addClass("borlabs-hide")})),a.length&&"1"===e.boxLayoutAdvanced&&a.each((function(){c=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof v.consents[c]?o(this).prop("checked",!0):o(this).prop("checked",!1))}))):a.length&&a.each((function(){c=this.value,"1"===e.boxLayoutAdvanced&&"1"===e.ignorePreSelectStatus&&!1===f&&"essential"!==c&&(o(this).prop("checked",!1),o(n+"[name='cookies["+c+"][]']").prop("checked",!1).trigger("change"))})),e.blockContent?(o("#BorlabsCookieBox > div").addClass("_brlbs-block-content"),e.animation?(o("#BorlabsCookieBox > div").addClass("_brlbs-bg-animation"),setTimeout((function(){o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")}),25)):o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),o("#BorlabsCookieBox > div").css("display",""),o("#BorlabsCookieBox > div").addClass("show-cookie-box"),e.animation&&o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass("_brlbs-animated "+e.animationIn+(t&&e.animationDelay?" delay-1s":""));const r=o("#BorlabsCookieBox > div")[0];return r.offsetWidth,r.offsetHeight,o("#CookieBoxSaveButton")[0].focus({preventScroll:!0}),y=o("._brlbs-"+e.boxLayout+"-wrap")[0].offsetWidth+"px",!0},j=function(){return L(),O(document.querySelector(".cookie-box")),e.animation&&(o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass("delay-1s "),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass(e.animationOut)),o("#BorlabsCookieBox > div").addClass("borlabs-hide"),e.blockContent?o("#BorlabsCookieBox > div").removeClass("_brlbs-bg-dark"):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){o("._brlbs-"+e.boxLayout+"-wrap").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").removeAttr("style"),e.animation&&(o("._brlbs-"+e.boxLayout).removeClass("_brlbs-animated"),o("._brlbs-"+e.boxLayout).removeClass("delay-1s"),o("._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("._brlbs-"+e.boxLayout).removeClass(e.animationOut)),o("#BorlabsCookieBox > div").removeClass("show-cookie-box"),e.blockContent&&o("#BorlabsCookieBox > div").removeClass("_brlbs-block-content")}),e.animation?1e3:0),o("body").removeClass("borlabs-position-fix"),!0},D=function(){O(document.querySelector(".cookie-box")),w(document.querySelector(".cookie-preference"));var t=o(s),i=null;t.length&&t.each((function(){i=this.value,Object.keys(v.consents).length?!1===f&&(void 0!==v.consents[i]?(o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){-1!==v.consents[i].indexOf(this.value)?o(this).prop("checked",!0):o(this).prop("checked",!1),o(this).trigger("change")}))):(o(this).prop("checked",!1),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))):("1"===e.ignorePreSelectStatus&&!1===f&&(o(this).prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide")),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){"1"===e.ignorePreSelectStatus&&!1===f&&o(this).prop("checked",!1),o(this).trigger("change")})))})),o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!1),o("#CookiePrefSave")[0].focus({preventScroll:!0}),o("._brlbs-"+e.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-preference .container")[0].scrollHeight;o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},I=function(){O(document.querySelector(".cookie-preference")),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!1),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+"-wrap").animate({maxWidth:"box"===e.boxLayout?y:"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),o("#CookieBoxSaveButton")[0].focus()}))},T=function(t){return void 0!==t&&t.preventDefault(),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back]").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back] + span._brlbs-separator").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("height",0),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("opacity",0),o("._brlbs-"+e.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"}),_(!1),setTimeout((function(){D()}),500),!0},E=function(){o("[data-cookie-accordion]").on("click","[data-cookie-accordion-target]",(function(e){e.preventDefault();var t=o(this).closest("[data-cookie-accordion]");t.find("[data-cookie-accordion-parent]:visible").length&&(t.find("[data-cookie-accordion-status='hide']").addClass("borlabs-hide"),t.find("[data-cookie-accordion-status='show']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent]:visible").slideUp()),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(o(this).children("[data-cookie-accordion-status='show']").addClass("borlabs-hide"),o(this).children("[data-cookie-accordion-status='hide']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},A=function(){var e=o(s),t=null;e.length&&e.each((function(){t=this.value,o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+t+"][]']").each((function(){o(this).prop("checked",!0),o(this).trigger("change")}))})),N(),j()},U=function(){o(document).on("click",s,(function(){f=!0,this.checked?(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!0),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").removeClass("borlabs-hide")):(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide"))}))},P=function(){o(document).on("click",n+"[name^='cookies']",(function(){f=!0,this.checked&&(o(s+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},H=function(){!0===this.checked?(o(this).parent().parent().children(c).children().last().css("display","none"),o(this).parent().parent().children(c).children().first().css("display","inline-block")):(o(this).parent().parent().children(c).children().first().css("display","none"),o(this).parent().parent().children(c).children().last().css("display","inline-block"))},N=function(){var t={essential:e.cookies.essential},i=o(s+":checked"),a=o(n+"[name^='cookies']:checked");if(i.length&&(i.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),a.length&&a.each((function(){this.value.length&&"string"==typeof this.dataset.cookieGroup&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup)&&t[this.dataset.cookieGroup].push(this.value)}))),Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&K(v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])K(l);if(Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&Q(c,v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])Q(c,l);J(t,!1),"1"!==e.reloadAfterConsent&&(V(),F(),Y(),document.dispatchEvent(m.codeUnblockedAfterConsent),document.dispatchEvent(m.codeUnblocked))},R=function(){var o=!1;return"string"==typeof v.version&&(v.version===e.cookieVersion?o=!0:v.consents={}),o},G=function(){if(document.cookie.length)for(var o=document.cookie.split(";"),t=0;t<o.length;t++)try{o[t]=decodeURIComponent(o[t]);var n=o[t].split("="),i=void 0!==n[0]?n[0].trim():"",a=void 0!==n[1]?n[1].trim():"";if(i===g){var s=JSON.parse(decodeURIComponent(a));void 0!==s.domainPath?s.domainPath===e.cookieDomain+e.cookiePath&&(v=s):v=s}}catch(e){console.log("The cookie is spoiled:"),console.dir(o[t]),console.dir(e)}return v},J=function(o,t){var n={},i="",a=[],s=e.cookieLifetime;if(1===Object.keys(o).length&&void 0!==e.cookieLifetimeEssentialOnly&&(s=e.cookieLifetimeEssentialOnly),!1===t||!1===R()){var c=new Date;c.setTime(c.getTime()+24*parseInt(s)*60*60*1e3),i=c.toUTCString()}else i=v.expires;n.consents=o,n.domainPath=e.cookieDomain+e.cookiePath,n.expires=i,n.uid=v.uid,n.version=e.cookieVersion,void 0===n.consents.essential&&(n.consents.essential=e.cookies.essential);var r=!0;1===Object.keys(o).length?(n.uid="anonymous",("anonymous"!==v.uid||1===Object.keys(v.consents).length)&&(r=!1)):"anonymous"===v.uid?(n.uid=$(),1===Object.keys(v.consents).length&&(r=!1)):"anonymous"!==v.uid&&(r=!1),a.push(g+"="+encodeURIComponent(JSON.stringify(n))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&a.push("domain="+e.cookieDomain),a.push("path="+e.cookiePath),a.push("expires="+i),a.push("SameSite="+e.cookieSameSite),e.cookieSecure&&a.push("secure"),document.cookie=a.join(";"),G(),no(r),ao(r),document.dispatchEvent(m.consentSaved)},M=function(o,t,n){var i,a="",s=[],c="",r=new Date;return null==t||!1===t?""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&(a=e.cookieDomain):a=t,void 0===n&&(n=!1),i=function(o,e){var t={name:"",value:""};if(void 0===e&&(e=!1),e&&(o=o.replace("*","")),document.cookie.length)for(var n=document.cookie.split(";"),i=0;i<n.length;i++)try{n[i]=decodeURIComponent(n[i]);var a=n[i].split("="),s=void 0!==a[0]?a[0].trim():"",c=void 0!==a[1]?a[1].trim():"";e?-1!==s.indexOf(o)&&(t.name=s,t.value=c):s===o&&(t.name=s,t.value=c)}catch(o){console.log("The cookie is spoiled:"),console.dir(n[i]),console.dir(o)}return t}(o,n),i.name.length&&(s.push(i.name+"="),""!==a&&s.push("domain="+a),s.push("path="+e.cookiePath),r.setTime(r.getTime()-864e5),c=r.toUTCString(),s.push("expires="+c),document.cookie=s.join(";")),!0},z=function(o,e){return function(o,e){"string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)&&(void 0===v.consents[o]&&(v.consents[o]=[]),"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&-1===v.consents[o].indexOf(e)&&v.consents[o].push(e)),J(v.consents,!0)}(o,e),!0},W=function(o,e){return function(o,e){if("string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)){var t=!0;"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&void 0!==v.consents[o]&&-1!==v.consents[o].indexOf(e)&&(v.consents[o].splice(v.consents[o].indexOf(e),1),t=!1),!0===t&&void 0!==v.consents[o]&&delete v.consents[o]}Object.keys(v.consents).length&&J(v.consents,!0)}(o,e),K(e),Q(o,e),!0},q=function(o){var e=!1;for(var t in v.consents)-1!==v.consents[t].indexOf(o)&&(e=!0);return e},$=function(){function o(){var o="";if("object"==typeof window.crypto){var e=0,t=new Uint32Array(4);for(window.crypto.getRandomValues(t);e<4;e++)o+="abcdefhgihjklmnopqrstuvwxyz0123456789"[t[e]%37]}else o=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return o}return o()+o()+"-"+o()+o()+"-"+o()+o()+"-"+o()+o()},V=function(){for(var e in v.consents)for(var n in v.consents[e]){var i=v.consents[e][n];void 0!==u[e]&&void 0!==u[e][i]&&(void 0!==t[e]&&void 0!==t[e][i]&&(o("body").append(to(t[e][i])),delete t[e][i]),void 0!==u[e][i].optInJS&&(o("body").append(to(u[e][i].optInJS)),u[e][i].optInJS=""))}},F=function(){o("[data-borlabs-cookie-type='cookie-group']").each((function(){if(void 0!==v.consents[this.dataset.borlabsCookieId]){var t;t="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(t):o(this).parent().prepend(t),this.parentNode.removeChild(this)}}))},Y=function(){o("[data-borlabs-cookie-type='cookie']").each((function(){for(var t in v.consents)if(-1!==v.consents[t].indexOf(this.dataset.borlabsCookieId)){var n;n="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(n):o(this).parent().prepend(n),this.parentNode.removeChild(this)}}))},K=function(o){null===x&&(x=[],C=!0),x.push(o)},Q=function(e,t){if(void 0!==u[e]&&void 0!==u[e][t]&&void 0!==u[e][t].optOutJS){var n=to(u[e][t].optOutJS);void 0!==u[e][t].settings.asyncOptOutCode&&"1"===u[e][t].settings.asyncOptOutCode||(n+="<script>window.BorlabsCookie.optOutDone('"+t+"')<\/script>"),o("body").append(n),u[e][t].optOutJS=""}},X=function(t){t.preventDefault();var n,i,a=o(this).parents(".BorlabsCookie"),s=!1;if(n=a.find("[data-borlabs-cookie-type='content-blocker']")[0].dataset.borlabsCookieId,void 0!==b[n]&&void 0!==b[n].settings.unblockAll&&"1"===b[n].settings.unblockAll&&(s=!0),(i=a.find("input[type='checkbox'][name='unblockAll']")).length&&(s=!!i[0].checked),s)for(var c in o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+n+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))})),e.cookies)-1!==e.cookies[c].indexOf(n)&&z(c,n);else Z(a)},Z=function(o){var t=o.find("[data-borlabs-cookie-type='content-blocker']"),n="";if(t.length){var i;n=t[0].dataset.borlabsCookieId,void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"1"===b[n].settings.executeGlobalCodeBeforeUnblocking&&void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),i="javascript"===e.cookieBoxIntegration?to(t[0].firstChild.innerHTML):to(t[0].innerHTML);var a=setInterval((function(){var e=!0;void 0!==k[n]&&(void 0!==k[n].scriptBlockerId&&Object.entries(k[n].scriptBlockerId).forEach((o=>{var t=o[0];!0!==eo(k[n].scriptBlockerId[t],"scriptBlockerId")&&(e=!1)})),void 0!==k[n].jsHandle&&Object.entries(k[n].jsHandle).forEach((o=>{var t=o[0];!0!==eo(k[n].jsHandle[t],"jsHandle")&&(e=!1)}))),!0===e&&(clearInterval(a),o.prev().length?o.prev().after(i):o.parent().prepend(i),void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"0"!==b[n].settings.executeGlobalCodeBeforeUnblocking||void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),b[n].init(o.prev()[0],b[n]),o[0].parentNode.removeChild(o[0]))}),50)}},oo=function(e,t,n){var i=o(e)[0];if(void 0!==i){var a=document.createElement("script");for(var s of i.attributes)-1===s.name.indexOf("borlabs")&&-1===s.name.indexOf("type")&&a.setAttribute(s.name,s.value);"string"==typeof i.dataset.borlabsScriptBlockerSrc?(a.src=i.dataset.borlabsScriptBlockerSrc,a.onload=function(){p[n][t]--,oo(e,t,n)},i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i)):(a.type="text/javascript",a.innerHTML=i.innerHTML,i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i),p[n][t]--,oo(e,t,n))}return!0},eo=function(o,e){var t=!1;return void 0!==p[e][o]&&0===p[e][o]&&(t=!0),t},to=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)})).join(""))},no=function(t){!1===/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())&&o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",language:e.language,cookieData:v,essentialStatistic:t}}).done((function(){e.reloadAfterConsent&&Object.keys(v.consents).length>0&&location.reload(!0),C&&bo()}))},io=function(){o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:e.language,uid:v.uid}}).done((function(e){(e=o.parseJSON(e)).length&&o.each(e,(function(e,t){o("["+l+"] table").append("<tr><td>"+t.stamp+"</td><td>"+t.version+"</td><td>"+t.consent+"</td></tr>")}))}))},ao=function(t){e.crossDomainCookie.length&&Object.entries(e.crossDomainCookie).forEach((n=>{var i=e.crossDomainCookie[n[0]];o("body").append('<iframe class="borlabs-hide" src="'+i+"?__borlabsCookieCall=cDC&cookieLang="+e.language+"&cookieData="+encodeURIComponent(JSON.stringify(v))+"&essentialStatistic="+(t?1:0)+'"></iframe>')}))},so=function(){o(".BorlabsCookie [name^='borlabsCookie']").each((function(){q(this.value)?this.checked=!0:this.checked=!1,o(this).trigger("change")})),o(document).on("change",".BorlabsCookie [name^='borlabsCookie']",(function(){this.checked?z(this.dataset.cookieGroup,this.value):W(this.dataset.cookieGroup,this.value)}))},co=window.scrollY||document.documentElement.scrollTop,ro=null,lo=null,uo=document.getElementById("BorlabsCookieBoxWidget");uo&&window.addEventListener("scroll",(function(){(S=window.scrollY||document.documentElement.scrollTop)>co?ro="up":S<co&&(ro="down"),ro!==lo&&("up"===ro?(uo.classList.add("_brlbs-hide-mobile"),lo=ro):"down"===ro&&(uo.classList.remove("_brlbs-hide-mobile"),lo=ro)),co=S}));var bo=function(){C=!1,0===x.length&&(x=null,e.reloadAfterOptOut&&window.location.reload())};return{addConsent:z,allocateScriptBlockerToContentBlocker:function(o,e,t){"scriptBlockerId"!==t&&"jsHandle"!==t||(void 0===k[o]&&(k[o]={scriptBlockerId:[],jsHandle:[]}),-1===k[o][t].indexOf(e)&&k[o][t].push(e))},callWhenLoaded:function(o,e){var t=function(){!0===window.hasOwnProperty(o)?e(e):window.setTimeout(t,1e3)};t()},checkCookieConsent:q,checkCookieGroupConsent:function(o){var e=!1;return void 0!==v.consents[o]&&(e=!0),e},deleteCookie:M,getCookie:G,hideCookieBox:j,init:function(n,i,c,h){return"about:blank"!==window.location.href&&(e=o.extend({ajaxURL:"",language:"en",animation:"1",animationDelay:"",animationIn:"fadeIn",animationOut:"fadeOut",blockContent:"",boxLayout:"box",boxLayoutAdvanced:"0",automaticCookieDomainAndPath:"",cookieDomain:"",cookiePath:"",cookieSameSite:"Lax",cookieSecure:!0,cookieLifetime:"365",crossDomainCookie:[],cookieBeforeConsent:"",cookiesForBots:"1",cookieVersion:"1",hideCookieBoxOnPages:[],respectDoNotTrack:"",reloadAfterConsent:"",reloadAfterOptOut:"1",showCookieBox:"1",cookieBoxIntegration:"javascript",ignorePreSelectStatus:"1",cookies:[]},n),t=h,u=i,b=c,m.consentSaved=document.createEvent("Event"),m.consentSaved.initEvent("borlabs-cookie-consent-saved",!0,!0),m.codeUnblocked=document.createEvent("Event"),m.codeUnblocked.initEvent("borlabs-cookie-code-unblocked",!0,!0),m.codeUnblockedAfterConsent=document.createEvent("Event"),m.codeUnblockedAfterConsent.initEvent("borlabs-cookie-code-unblocked-after-consent",!0,!0),G(),function(){if(Object.keys(u).length)for(var o in u)if(Object.keys(u[o]).length)for(var e in u[o])if(void 0!==u[o][e].settings&&void 0!==u[o][e].settings.blockCookiesBeforeConsent&&"1"===u[o][e].settings.blockCookiesBeforeConsent&&void 0!==u[o][e].cookieNameList&&!1===q(e))for(var t in u[o][e].cookieNameList)M(t,null,-1!==t.indexOf("*")),M(t,"",-1!==t.indexOf("*"))}(),e.cookieBeforeConsent&&(null!==v.uid&&"anonymous"!==v.uid||(v.uid=$()),"function"==typeof Object&&(void 0===Object.entries&&(Object.entries=function(o){for(var e=Object.keys(o),t=e.length,n=new Array(t);t--;)n[t]=[e[t],o[e[t]]];return n}),0===Object.entries(v.consents).length&&null===v.expires&&(function(){var o={},t=[],n=e.cookieLifetimeEssentialOnly,i=new Date;i.setTime(i.getTime()+24*parseInt(n)*60*60*1e3);var a=i.toUTCString();o.consents={},o.domainPath=e.cookieDomain+e.cookiePath,o.expires=a,o.uid=v.uid,o.version=null,t.push(g+"="+encodeURIComponent(JSON.stringify(o))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&t.push("domain="+e.cookieDomain),t.push("path="+e.cookiePath),t.push("expires="+a),t.push("SameSite="+e.cookieSameSite),e.cookieSecure&&t.push("secure"),document.cookie=t.join(";"),G()}(),no(!0)))),o(a).length&&"SCRIPT"===o(a)[0].tagName&&o(a).after(o(a).html()),o(document).on("click","[data-cookie-accept]",(function(o){o.preventDefault(),N(),j()})),o(document).on("click","[data-cookie-accept-all]",(function(o){o.preventDefault(),A()})),o(document).on("click","[data-cookie-back]",(function(o){o.preventDefault(),I()})),o(document).on("click","[data-cookie-individual]",(function(o){o.preventDefault(),D()})),o(document).on("click","[data-cookie-refuse]",(function(e){e.preventDefault();var t=[];o(s+":checked").each((function(){-1===t.indexOf(this.value)&&(o(this).trigger("click"),t.push(this.value))})),N(),j()})),E(),U(),P(),!0===R()?(V(),F(),Y(),document.dispatchEvent(m.codeUnblocked),L()):e.showCookieBox?0===e.hideCookieBoxOnPages.length||-1===e.hideCookieBoxOnPages.indexOf(window.location.protocol+"//"+window.location.host+window.location.pathname)?e.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())?(J(e.cookies,!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):e.respectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?(J({essential:e.cookies.essential},!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):_(!0):(V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):L(),o(document).on("click","[data-borlabs-cookie-unblock]",X),o(document).on("click","[data-borlabs-cookie-preference]",T),o(document).on("click",".borlabs-cookie-preference",T),o(document).on("change","[data-borlabs-cookie-switch]",H),o(document).on("keydown",(function(e){9===e.keyCode&&o(d).addClass("_brlbs-keyboard")})),o(document).on("mousedown",(function(e){o(d).is(":visible")&&o(d).removeClass("_brlbs-keyboard")})),o("body").on("focus",".BorlabsCookie._brlbs-keyboard input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).addClass("_brlbs-focused")})),o(d).on("blur","input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).removeClass("_brlbs-focused")})),o("["+l+"]").length&&io(),so(),o("["+r+"]").length&&o("["+r+"]").each((function(){o(this).html(v.uid)})),!0)},initConsentHistoryTable:io,initSwitchConsentButtonStatus:so,openCookiePreference:T,removeConsent:W,showCookieBox:_,unblockContentId:function(e){o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+e+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))}))},unblockScriptBlockerId:function(e){var t="[data-borlabs-script-blocker-id='"+e+"']";return o(t).length&&(p.scriptBlockerId[e]=o(t).length,oo(t,e,"scriptBlockerId")),!0},unblockScriptBlockerJSHandle:function(e){var t="[data-borlabs-script-blocker-js-handle='"+e+"']";return o(t).length&&(p.jsHandle[e]=o(t).length,oo(t,e,"jsHandle")),!0},optOutDone:function(o){null!==x?x.length!==(x=x.filter((function(e,t,n){return e!==o}))).length?0!==x.length||C||(x=null,e.reloadAfterOptOut&&window.location.reload()):console.log('No opt out found for cookie "'+o+'"'):console.log("No opt out has been initialized")}}}()})();