// source --> https://www.scarpabaleno.it/wp-content/plugins/webtoffee-cookie-consent/lite/frontend/js/script.min.js?ver=3.5.1 
!function(){const _wccStore=window._wccConfig,_wccStyle=window._wccStyles;let currentLaw=window._wccConfig._lawSelected[0],showBanner=!0;_wccStore._backupNodes=[],_wccStore._resetConsentID=!1,_wccStore._bannerState=!1,_wccStore._preferenceOriginTag=!1,_wccStore._poweredByHidden=!1,_wccStore._consentDetailsHidden=!1,_wccStore._cookiePath=function(){try{const currentPathname=window.location.pathname;if(_wccStore._publicURL)try{const publicPathname=new URL(_wccStore._publicURL).pathname.replace(/\/+$/,"");if(publicPathname&&"/"!==publicPathname&&currentPathname.startsWith(publicPathname))return publicPathname+"/"}catch(e){}return"/"}catch(e){return console.warn("Failed to detect cookie path:",e),"/"}}(),window.webtoffee=window.webtoffee||{};const ref=window.webtoffee;ref._wccConsentStore=new Map,ref._wccGetCookieMap=function(){const cookieMap={};try{document.cookie.split(";").forEach((cookie=>{const[key,value]=cookie.split("=");if(!key)return;const trimmedKey=key.trim();"wt_consent"===trimmedKey&&cookieMap[trimmedKey]||(cookieMap[trimmedKey]=value)}))}catch(error){}return cookieMap};const currentCookieMap=ref._wccGetCookieMap();ref._wccGetFromStore=function(key){return ref._wccConsentStore.get(key)||""},ref._wccSetInStore=function(key,value){ref._wccConsentStore.set(key,value);const consentPath=_wccStore._enableConsentSharing?"/":_wccStore._cookiePath;ref._wccConsentStore.set("cookie_path",consentPath);const cookieStringArray=Array.from(ref._wccConsentStore,(([k,v])=>`${k}:${v}`)),scriptExpiry=_wccStore?._bannerConfig?.[currentLaw]?.settings?.consentExpiry||365;ref._wccSetCookie("wt_consent",cookieStringArray.join(","),scriptExpiry,void 0,void 0,consentPath)};const webtoffeeConsentMap=(currentCookieMap.wt_consent||"").split(",").reduce(((prev,curr)=>{if(!curr)return prev;const[key,value]=curr.split(":");return prev[key]=value,prev}),{}),cookiePath=webtoffeeConsentMap.cookie_path,isCorrectPath=!(!_wccStore._enableConsentSharing||!currentCookieMap.wt_consent)||(cookiePath?cookiePath===_wccStore._cookiePath:"/"===_wccStore._cookiePath&&currentCookieMap.wt_consent),consentKeys=["consent","action"].concat(_wccStore._categories.map((({slug:slug})=>slug))),consentValue=isCorrectPath?item=>webtoffeeConsentMap[item]||"":()=>"";function _wccGetElementByTag(tag){const item=document.querySelector("[data-tag="+tag+"]");return item||!1}function _wccEscapeRegex(literal){return literal.replace(/[.*+?^${}()[\]\\]/g,"\\$&")}function _wccAttachListener(selector,fn){const item=_wccFindElement(selector);item&&item.addEventListener("click",fn)}function _wccClassAction(action,selector,className,forParent=!0){const item=_wccFindElement(selector,forParent);return item&&item.classList[action](className)}function _wccFindElement(selector,forParent){let createdSelector=selector;if(!0===selector.startsWith("="))createdSelector=`[data-tag="${selector.substring(1)}"]`;const element=document.querySelector(createdSelector);return!element||forParent&&!element.parentElement?null:forParent?element.parentElement:element}function _wccRemoveBanner(){_wccHideBanner(),!0===_wccStore._bannerConfig[currentLaw].config.revisitConsent.status&&_wccShowRevisit(),"popup"===_wccGetType()&&(_wccHideOverLay(),document.body&&document.body.classList.contains("wcc-popup-overflow")&&document.body.classList.remove("wcc-popup-overflow"))}async function _wccInitOperations(){await async function(){const bannerConfig=_wccStore._bannerConfig,availableLaws=Object.keys(bannerConfig);let country="",is_eu=!1,region_code="",ccpaAllowedRegions=_wccStore._ccpaAllowedRegions,gdprAllowedRegions=_wccStore._gdprAllowedRegions;if(availableLaws.some((law=>"ALL"!==bannerConfig[law].settings.selectedRegion))){const visitor=await async function(){const apiUrl=_wccStore._restApiUrl,response=await fetch(apiUrl);return await response.json()}();visitor&&(country=visitor.country,is_eu=visitor.in_eu,region_code=visitor.region_code)}if(1===availableLaws.length){currentLaw=availableLaws[0],_wccBannerEnabled()||(showBanner=!1)}else currentLaw="EU"===country||is_eu?"GDPR":"US"===country?"CCPA":availableLaws[0];let selectedRegion=_wccStore._bannerConfig[currentLaw].settings.selectedRegion,bannerEnabled=_wccBannerEnabled();"GDPR"===currentLaw?bannerEnabled?"ALL"!==selectedRegion&&(showBanner=Array.isArray(gdprAllowedRegions)&&gdprAllowedRegions.length>0?gdprAllowedRegions.includes(country):is_eu):showBanner=!1:"CCPA"===currentLaw&&(bannerEnabled?"ALL"!==selectedRegion&&(showBanner=Array.isArray(ccpaAllowedRegions)&&ccpaAllowedRegions.length>0?"US"===country&&ccpaAllowedRegions.includes(region_code):function(country,region_code){return _wccStore._restrictToCA?"US"===country&&"CA"===region_code:"US"===country}(country,region_code)):showBanner=!1)}(),function(){if(document.getElementById("wcc-style")||!_wccStyle)return;document.head.insertAdjacentHTML("beforeend",` <style id="wcc-style">${_wccStyle.css[currentLaw]}</style>`)}(),function(){const shortCodes=_wccStore._tags;Array.prototype.forEach.call(shortCodes,(function(shortcode){document.querySelectorAll("[data-tag="+shortcode.tag+"]").forEach((function(item){let styles="";for(const key in shortcode.styles)styles+=`${key}: ${shortcode.styles[key]};`;item.style.cssText=styles}))}))}(),async function(){const myEvent=new CustomEvent("_wccBannerVisible",{detail:{bannerVisibility:showBanner,currentLaw:currentLaw},bubbles:!0,cancelable:!0,composed:!1});if(setTimeout((()=>{document.body.dispatchEvent(myEvent)}),0),currentLaw&&showBanner){const template=document.getElementById(`wccBannerTemplate_${currentLaw}`);if(template){const templateHtml=template.innerHTML,doc=(new DOMParser).parseFromString(templateHtml,"text/html");!function($doc){const footer=$doc.querySelector('[data-tag="detail"] .wcc-footer-shadow'),preference=$doc.querySelector('[data-tag="detail"]');if(!footer)return;const background=preference&&preference.style.backgroundColor||"#ffffff";footer.style.background=`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ${background} 100%)`}(doc),document.body.insertAdjacentHTML("afterbegin",doc.body.innerHTML)}}_wccSetPreferenceCheckBoxStates(),function(){for(const{slug:slug}of _wccStore._categories)_wccAttachListener("detail-category-title",(()=>document.getElementById(`wccCategory${slug}`).classList.toggle("wcc-tab-active")));_wccAttachListener("=settings-button",(()=>_wccSetPreferenceAction("settings-button"))),_wccAttachListener("=detail-close",(()=>_wccHidePreferenceCenter())),_wccAttachListener("=optout-cancel-button",(()=>_wccHidePreferenceCenter())),_wccAttachListener("=close-button",(()=>{_wccAcceptReject(_wccStore._closeButtonAction)()})),_wccAttachListener("=donotsell-button",(()=>_wccSetPreferenceAction("donotsell-button"))),_wccAttachListener("=reject-button",_wccAcceptReject("reject")),_wccAttachListener("=accept-button",_wccAcceptReject("all")),_wccAttachListener("=detail-accept-button",_wccAcceptReject("all")),_wccAttachListener("=detail-save-button",_wccAcceptReject()),_wccAttachListener("=detail-category-preview-save-button",_wccAcceptReject()),_wccAttachListener("=optout-confirm-button",_wccAcceptReject()),_wccAttachListener("=detail-reject-button",_wccAcceptReject("reject")),_wccAttachListener("=revisit-consent",(()=>_revisitWccConsent())),_wccAttachListener("=optout-close",(()=>_wccHidePreferenceCenter())),_wccAttachListener("=category-tab",(()=>_wccShowTab("wccIABSectionCookie"))),_wccAttachListener("=purpose-tab",(()=>_wccShowTab("wccIABSectionPurpose"))),_wccAttachListener("=vendor-tab",(()=>_wccShowTab("wccIABSectionVendor"))),_wccAttachListener("#wcc-iab-notice-toggle",(()=>_wccShowPreferenceCenter())),function(){_wccIabInnerAccordionClickListener("wccIABSectionPurpose"),_wccIabInnerAccordionClickListener("wccIABSectionVendor"),document.querySelectorAll(".wcc-child-accordion .wcc-child-accordion-item").forEach((item=>item.addEventListener("click",(function(event){if("checkbox"===event.target.type)return;const accordion=this.parentNode,body=accordion.querySelector(".wcc-child-accordion-body"),isActive=accordion.classList.toggle("wcc-child-accordion-active");accordion.setAttribute("aria-expanded",isActive?"true":"false"),body&&body.setAttribute("aria-hidden",isActive?"false":"true")}))));document.querySelectorAll(".wcc-consents-checkbox").forEach((function(checkbox){checkbox.addEventListener("change",wcc_enable_disable_consent)}))}(),document.querySelectorAll(".wcc-preference-btn").forEach((button=>{const uniqueID=ref._wccRandomString(8,!1);button.id=uniqueID,button.addEventListener("click",(function(){_revisitWccConsent()}))})),function(){if(!_wccStore._bannerConfig[currentLaw].config.auditTable.status)return;const categoryNames=_wccStore._categories.map((({slug:slug})=>slug));categoryNames.map((category=>{const selector=`#wccDetailCategory${category}`;_wccAttachListener(selector,(({target:{id:id}})=>{if(id===`wccSwitch${category}`)return;const accordion=document.querySelector(selector),body=accordion.querySelector(".wcc-accordion-body"),isActive=accordion.classList.toggle("wcc-accordion-active");accordion.setAttribute("aria-expanded",isActive),body&&body.setAttribute("aria-hidden",!isActive),categoryNames.filter((categoryName=>categoryName!==category)).map((filteredName=>{const otherAccordion=document.querySelector(`#wccDetailCategory${filteredName}`),otherBody=otherAccordion.querySelector(".wcc-accordion-body");otherAccordion.classList.remove("wcc-accordion-active"),otherAccordion.setAttribute("aria-expanded","false"),otherBody&&otherBody.setAttribute("aria-hidden","true")}))}))}))}()}(),function(){const toggle=_wccStore._bannerConfig[currentLaw].config.optOption.toggle,activeColor=toggle.states.active.styles["background-color"],inactiveColor=toggle.states.inactive.styles["background-color"];!function(){_wccClassAction("remove",...arguments)}("=optout-option","wcc-disabled",!1);const toggleDataCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_optout_toggle_label"===code.key)),optOutTitle=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_optout_option_title"===code.key)),formattedLabel=toggleDataCode.content.replace("[wcc_optout_option_title]",optOutTitle.content);let checked=_wccGPCEnabled()||"yes"===ref._wccGetFromStore("consent"),isDisabled=_wccGPCEnabled();!function(boxElem,formattedLabel,{checked:checked,disabled:disabled,addListeners:addListeners},{activeColor:activeColor,inactiveColor:inactiveColor},isCCPA=!1){if(!boxElem)return;isCCPA&&addListeners&&_wccAttachListener("=optout-option-title",(()=>boxElem.click()));if(boxElem.checked=checked,boxElem.disabled=disabled,boxElem.style.backgroundColor=checked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,checked,formattedLabel,isCCPA),!addListeners)return;boxElem.addEventListener("change",(({currentTarget:elem})=>{const isChecked=elem.checked;elem.style.backgroundColor=isChecked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel,isCCPA)}))}(document.getElementById("wccCCPAOptOut"),formattedLabel,{checked:checked,disabled:isDisabled,addListeners:!isDisabled},{activeColor:activeColor,inactiveColor:inactiveColor},!0);const gpcWrapper=document.querySelector('[data-tag="optout-gpc-option"]');gpcWrapper&&(_wccGPCEnabled()?gpcWrapper.style.display="":gpcWrapper.style.display="none");if(_wccGPCEnabled()){const optOutCheckbox=document.getElementById("wccCCPAOptOut");if(optOutCheckbox){optOutCheckbox.checked=!0,optOutCheckbox.disabled=!0;const checkboxWrapper=optOutCheckbox.closest('[data-tag="optout-option"], .wcc-opt-out-checkbox-wrapper');checkboxWrapper&&(checkboxWrapper.style.cursor="no-drop");const checkboxContainer=optOutCheckbox.closest('.wcc-opt-out-checkbox, [data-tag="optout-gpc-option"]');checkboxContainer&&(checkboxContainer.style.pointerEvents="none",checkboxContainer.style.opacity="0.6");const optOutTitle=document.querySelector('[data-tag="optout-option-title"]');optOutTitle&&(optOutTitle.style.pointerEvents="none"),optOutCheckbox.style.cursor="no-drop"}}}(),function(){const status=_wccStore._bannerConfig[currentLaw].config.videoPlaceholder.status,styles=_wccStore._bannerConfig[currentLaw].config.videoPlaceholder.styles;if(!status)return;if(!status)return;const placeHolders=document.querySelectorAll('[data-tag="placeholder-title"]');if(placeHolders.length<1)return;Array.from(placeHolders).forEach((placeHolder=>{placeHolder.style.display="block",placeHolder.addEventListener("click",(()=>{ref._wccGetFromStore("action")&&_revisitWccConsent()}));for(const style in styles)styles[style]&&(placeHolder.style[style]=styles[style])}))}(),function(){const readMoreButton=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_readmore"===code.key));if(!readMoreButton.status)return;const content=readMoreButton.content,styles=_wccStore._bannerConfig[currentLaw].config.readMore.styles,readMoreElement=document.querySelector('[data-tag="description"]');if(!readMoreElement)return;if(readMoreElement.childNodes.length>1){const innerElement=document.querySelector('[data-tag="description"] p:last-child');innerElement&&innerElement.insertAdjacentHTML("beforeend",`&nbsp;${content}`)}else readMoreElement.insertAdjacentHTML("beforeend",`&nbsp;${content}`);const placeHolders=document.querySelectorAll('[data-tag="readmore-button"]');if(placeHolders.length<1)return;Array.from(placeHolders).forEach((placeHolder=>{for(const style in styles)styles[style]&&(placeHolder.style[style]=styles[style])}))}(),function(){const item=document.getElementById("wcc-style-inline");item&&item.remove()}(),function(){const notice=_wccGetElementByTag("notice");if(!notice)return!1;const container=notice.closest(".wcc-consent-container");if(!container)return!1;const type=_wccStore._bannerConfig[currentLaw].settings.type;let position=_wccStore._bannerConfig[currentLaw].settings.position;"popup"===type&&(position="center",_wccShowOverLay(),document.body.classList.add("wcc-popup-overflow"));const noticeClass="wcc-"+type+"-"+position;container.classList.add(noticeClass);const revisitConsent=_wccGetElementByTag("revisit-consent");if(!revisitConsent)return!1;const revisitPosition=`wcc-revisit-${_wccStore._bannerConfig[currentLaw].config.revisitConsent.position}`;revisitConsent.classList.add(revisitPosition)}(),function(){if(!_wccStore._rtl)return;["notice","detail","optout-popup","revisit-consent","video-placeholder"].forEach((function(item){_wccGetElementByTag(item)&&_wccGetElementByTag(item).classList.add("wcc-rtl")}))}(),function(){const poweredByStatus=_wccStore._bannerConfig[currentLaw].config.preferenceCenter.poweredBy.status;_wccStore._poweredByHidden=!poweredByStatus;const styles=poweredByStatus?{display:"flex",justifyContent:"flex-end",alignItems:"center"}:{display:"none"};["detail-powered-by","optout-powered-by"].forEach((key=>{const element=document.querySelector(`[data-tag="${key}"]`);element&&Object.assign(element.style,styles)}))}(),_wccSetConsentDetails(),_wccSetFooterWrapperStyles()}(),function(){const activeLaw=_wccGetLaw(),showCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_show_desc"===code.key)),hideCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_hide_desc"===code.key));if(!showCode||!hideCode)return;const hideButtonContent=hideCode.content,showButtonContent=showCode.content,contentLimit=window.innerWidth<376?150:300,element=document.querySelector(`[data-tag="${"gdpr"===activeLaw?"detail":"optout"}-description"]`);if(!element)return;if(element.textContent.length<contentLimit)return;const contentHTML=element.innerHTML,innerElements=(new DOMParser).parseFromString(contentHTML,"text/html").querySelectorAll("body > p");if(innerElements.length<=1)return;let strippedContent="";for(let index=0;index<innerElements.length;index++){if(index===innerElements.length-1)return;const element=innerElements[index];if(`${strippedContent}${element.outerHTML}`.length>contentLimit&&element.insertAdjacentHTML("beforeend",`...&nbsp;${showButtonContent}`),strippedContent=`${strippedContent}${element.outerHTML}`,strippedContent.length>contentLimit)break}function showMoreHandler(){element.innerHTML=`${contentHTML}${hideButtonContent}`,_wccAttachListener("=hide-desc-button",showLessHandler)}function showLessHandler(){element.innerHTML=strippedContent,_wccAttachListener("=show-desc-button",showMoreHandler)}showLessHandler()}();let renew_date=_wccStore._renewConsent;const consent_time=function(cookieName){const cookieValue=document.cookie.split(";").map((cookie=>cookie.trim())).find((row=>row.startsWith(`${cookieName}=`)));if(cookieValue){const cookiePairs=cookieValue.substring(cookieName.length+1).split(",");for(const pair of cookiePairs){const[key,value]=pair.split(":");if("consent_time"===key){const lastModifiedTime=Number(value);if(!isNaN(lastModifiedTime))return lastModifiedTime}}}return null}("wt_consent");!ref._wccGetFromStore("action")||function(){let params=new URL(document.location).searchParams;return params.get("wcc_preview")&&"true"===params.get("wcc_preview")}()||renew_date&&renew_date>consent_time?(_wccShowBanner(),function(){const activeLaw=_wccGetLaw();ref._wccSetInStore("consent","no");const ccpaCheckBoxValue=_wccFindCheckBoxValue(),responseCategories={accepted:[],rejected:[]};for(const category of _wccStore._categories){let valueToSet="yes";showBanner&&("gdpr"===activeLaw&&!category.isNecessary&&!category.defaultConsent.gdpr||"ccpa"===activeLaw&&ccpaCheckBoxValue&&!category.defaultConsent.ccpa)&&(valueToSet="no"),"no"===valueToSet?responseCategories.rejected.push(category.slug):responseCategories.accepted.push(category.slug),ref._wccSetInStore(`${category.slug}`,valueToSet)}_wccUnblock(),_wccSendConsentEvent(responseCategories)}(),renew_date&&renew_date>consent_time&&(_wccAcceptReject("reject"),ref._wccSetInStore("action",""))):_wccRemoveBanner()}async function _wccInit(){try{_wccInitOperations(),function(){for(const category of _wccStore._categories)"yes"!==ref._wccGetFromStore(category.slug)&&_wccRemoveDeadCookies(category)}(),document.querySelector("body").addEventListener("click",(event=>{const selector=".wcc-banner-element, .wcc-banner-element *";(event.target.matches?event.target.matches(selector):event.target.msMatchesSelector(selector))&&_revisitWccConsent()}))}catch(err){console.error(err)}}var callback;function wcc_enable_disable_consent(){let el=this.getAttribute("data-tag");const nestedInputs=document.querySelectorAll(".wcc-"+el+"-checkbox, .wcc-"+el+"-legitimate-interests-checkbox"),isChecked=this.checked;nestedInputs.forEach((input=>{input.checked=isChecked}))}function _wccIabInnerAccordionClickListener(containerId){document.querySelectorAll(`#${containerId} .wcc-accordion .wcc-accordion-iab-item`).forEach((item=>{item.addEventListener("click",(function(event){if("checkbox"===event.target.type)return;this.parentNode.classList.toggle("wcc-accordion-active"),this.parentNode.setAttribute("aria-expanded","true");const accordion=this.parentNode,body=accordion.querySelector(".wcc-accordion-body"),isActive=accordion.classList.toggle("wcc-child-accordion-active");accordion.setAttribute("aria-expanded",isActive?"true":"false"),body&&body.setAttribute("aria-hidden",isActive?"false":"true")}))}))}function _wccGetLaw(){return _wccStore._bannerConfig[currentLaw].settings.applicableLaw}function _wccBannerEnabled(){return _wccStore._bannerConfig[currentLaw].settings.bannerEnabled}function _wccGetType(){return _wccStore._bannerConfig[currentLaw].settings.type}function _wccGetBanner(){const notice=_wccGetElementByTag("notice"),container=notice&&notice.closest(".wcc-consent-container")||!1;return container&&container||!1}function _wccHideBanner(){const notice=_wccGetBanner();notice&&notice.classList.add("wcc-hide")}function _wccShowBanner(){const notice=_wccGetBanner();notice&&notice.classList.remove("wcc-hide")}function _wccHideOverLay(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.add("wcc-hide")}function _wccShowOverLay(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.remove("wcc-hide")}function _wccGetPreferenceCenter(){if("classic"===_wccGetType())return _wccGetBanner();let element="ccpa"===_wccGetLaw()?_wccGetElementByTag("optout-popup"):_wccGetElementByTag("detail");return element&&element.closest(".wcc-modal")||!1}function _wccHidePreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.remove(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&(_wccHideOverLay(),ref._wccGetFromStore("action")||_wccShowBanner()),ref._wccGetFromStore("action")&&_wccShowRevisit();const origin=_wccStore._preferenceOriginTag;origin&&function(tagName){const element=_wccGetElementByTag(tagName);if(!element)return;element.focus()}(origin)}function _wccShowPreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.add(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&(_wccShowOverLay(),_wccHideBanner())}function _wccTogglePreferenceCenter(){const element=_wccGetPreferenceCenter();element&&element.classList.toggle(_wccGetPreferenceClass()),"classic"!==_wccGetType()&&function(){const overlay=document.querySelector(".wcc-overlay");overlay&&overlay.classList.toggle("wcc-hide")}()}function _wccGetPreferenceClass(){return"classic"===_wccGetType()?"wcc-consent-bar-expand":"wcc-modal-open"}function _wccGetRevisit(){const revisit=_wccGetElementByTag("revisit-consent");return revisit&&revisit||!1}function _wccShowRevisit(){const revisit=_wccGetRevisit();revisit&&revisit.classList.remove("wcc-revisit-hide")}function _wccSetPreferenceAction(tagName=!1){_wccStore._preferenceOriginTag=tagName,"classic"===_wccGetType()?_wccTogglePreferenceCenter():_wccShowPreferenceCenter()}consentKeys.forEach((item=>ref._wccConsentStore.set(item,consentValue(item)))),isCorrectPath&&ref._wccConsentStore.set("cookie_path",_wccStore._enableConsentSharing?"/":_wccStore._cookiePath),ref._wccGetCookie=function(name){const cookies=document.cookie.split(";");for(let i=0;i<cookies.length;i++){const cookie=cookies[i].trim();if(cookie.startsWith(name+"="))return decodeURIComponent(cookie.substring(name.length+1))}return null},ref._wccSetCookie=function(name,value,days=0,domain=_wccStore._rootDomain,ssl=_wccStore._ssl,path=_wccStore._cookiePath){const date=new Date,domainStr=domain?`domain=${domain}`:"",sslStr=ssl?"secure":"",toSetTime=0===days?0:date.setTime(date.getTime()+24*days*60*60*1e3);document.cookie=`${name}=${value}; expires=${new Date(toSetTime).toUTCString()}; path=${path};${domainStr}; SameSite=Strict;${sslStr};`},_revisitWccConsent=function(){"classic"===_wccGetType()&&_wccShowBanner(),_wccSetPreferenceAction(),function(force=!1){const revisit=_wccGetRevisit();revisit&&(!0===force?_wccRevisitHide():revisit.classList.toggle("wcc-revisit-hide"))}()},ref._wccRandomString=function(length,allChars=!0){const chars=(allChars?"0123456789":"")+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz",response=[];for(let i=0;i<length;i++)response.push(chars[Math.floor(Math.random()*chars.length)]);return allChars?btoa(response.join("")).replace(/\=+$/,""):response.join("")},callback=async function(){try{await _wccInit()}catch(err){console.error(err)}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",callback):callback());const sectionNames=["wccIABSectionCookie","wccIABSectionPurpose","wccIABSectionVendor"];function _wccShowTab(tagName=!1){sectionNames.forEach((validTagName=>{!function(){const buttons=document.querySelectorAll(".wcc-iab-nav-item");buttons.forEach((button=>{button.addEventListener("click",(function(){buttons.forEach((btn=>btn.classList.remove("wcc-iab-nav-item-active"))),this.classList.add("wcc-iab-nav-item-active")}))}))}();const tab=function(tagName=!1){const tab=_wccGetElementByTag(tagName);return tab&&tab||!1}(validTagName);validTagName===tagName?tab&&tab.classList.remove("wcc-hide"):tab&&tab.classList.add("wcc-hide")}))}function _wccRemoveDeadCookies({cookies:cookies}){const currentCookieMap=ref._wccGetCookieMap();for(const{cookieID:cookieID,domain:domain}of cookies)for(const existingCookieID in currentCookieMap){(existingCookieID===cookieID||cookieID.includes("*")&&new RegExp(`^${cookieID.replace("*",".*")}$`).test(existingCookieID))&&[domain,""].map((cookieDomain=>ref._wccSetCookie(existingCookieID,"",0,cookieDomain)))}}function _wccSetPreferenceCheckBoxStates(revisit=!1){for(const category of _wccStore._categories){const cookieValue=ref._wccGetFromStore(category.slug);_wccSetCheckboxes(category,"yes"===cookieValue||!cookieValue&&category.defaultConsent[_wccGetLaw()]||category.isNecessary,category.isNecessary,_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_category_toggle_label"===code.key)).content.replace("[wcc_preference_{{category_slug}}_title]",category.name),revisit),_wccSetPreferenceState(category)}}function _wccSetCheckboxes(category,checked,disabled,formattedLabel,revisit=!1){const toggle=_wccStore._bannerConfig[currentLaw].config.preferenceCenter.toggle,activeColor=toggle.states.active.styles["background-color"],inactiveColor=toggle.states.inactive.styles["background-color"];["wccCategoryDirect","wccSwitch"].map((key=>{const boxElem=document.getElementById(`${key}${category.slug}`);boxElem&&(!function(element,category={},revisit=!1){if(revisit)return;"detail-category-toggle"===element.parentElement.getAttribute("data-tag")?function(element,category){let toggleContainer=element.closest(".wcc-accordion-item");if(!toggleContainer)return;const toggleSwitch=toggleContainer.querySelector(".wcc-switch"),necessaryText=toggleContainer.querySelector(".wcc-always-active");category.isNecessary?toggleSwitch&&toggleSwitch.remove():(necessaryText&&necessaryText.remove(),("classic"===_wccGetType()&&_wccStore._bannerConfig[currentLaw].config.categoryPreview.status||category.cookies&&0===category.cookies.length&&!category.foundNoCookieScript)&&toggleSwitch&&toggleSwitch.remove())}(element,category):"detail-category-preview-toggle"===element.parentElement.getAttribute("data-tag")&&function(element,category){category.cookies&&0===category.cookies.length&&!category.isNecessary&&element.parentElement.parentElement.remove()}(element,category)}(boxElem,category,revisit),boxElem.checked=checked,boxElem.disabled=disabled,boxElem.style.backgroundColor=checked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,checked,formattedLabel),revisit||boxElem.addEventListener("change",(({currentTarget:elem})=>{const isChecked=elem.checked;elem.style.backgroundColor=isChecked?activeColor:inactiveColor,_wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel)})))}))}function _wccSetPreferenceState(category){if(!1===_wccStore._bannerConfig[currentLaw].config.auditTable.status){const tableElement=document.querySelector(`#wccDetailCategory${category.slug} [data-tag="audit-table"]`);tableElement&&tableElement.remove();const chevronElement=document.querySelector(`#wccDetailCategory${category.slug} .wcc-accordion-chevron`);chevronElement&&chevronElement.classList.add("wcc-accordion-chevron-hide")}}function _wccSetCheckBoxAriaLabel(boxElem,isChecked,formattedLabel,isCCPA=!1){if(!boxElem)return;const keyName=isChecked?"disable":"enable",textCode=`wcc_${keyName}_${isCCPA?"optout":"category"}_label`,shortCodeData=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>code.key===textCode));if(!shortCodeData)return;const labelText=formattedLabel.replace(/{{status}}/g,keyName).replace(`[${textCode}]`,shortCodeData.content);boxElem.setAttribute("aria-label",labelText)}function _wccAcceptReject(option="custom"){return()=>{!function(choice="all"){const activeLaw=_wccGetLaw(),ccpaCheckBoxValue=_wccFindCheckBoxValue();ref._wccSetInStore("action","yes"),"gdpr"===activeLaw?ref._wccSetInStore("consent","reject"===choice?"no":"yes"):ref._wccSetInStore("consent",ccpaCheckBoxValue?"yes":"no");const responseCategories={accepted:[],rejected:[]};for(const category of _wccStore._categories){let valueToSet="no";valueToSet="gdpr"===activeLaw?category.isNecessary||"reject"!==choice&&("custom"!==choice||_wccFindCheckBoxValue(category.slug))?"yes":"no":ccpaCheckBoxValue&&!category.defaultConsent.ccpa||!category.isNecessary&&"CCPA"===currentLaw&&"reject"===choice?"no":"yes",ref._wccSetInStore(`${category.slug}`,valueToSet),"no"===valueToSet?(responseCategories.rejected.push(category.slug),_wccRemoveDeadCookies(category)):responseCategories.accepted.push(category.slug)}let customEventSupport=_wccStore._customEvents;window.dataLayer&&customEventSupport&&window.dataLayer.push({event:"cookie_consent_updated"});_wccUnblock(),_wccSendConsentEvent(responseCategories,choice)}(option),function(){if(ref._wccGetFromStore("consentid"))return;const consentID=ref._wccRandomString(32);ref._wccSetInStore("consentid",consentID),_wccStore._resetConsentID=!0}(),function(){const consentTime=(new Date).getTime();ref._wccSetInStore("consent_time",consentTime)}(),_wccRemoveBanner(),_wccHidePreferenceCenter(),async function(){if(!_wccStore._logConsent)return;try{const data={log:JSON.stringify(_wccStore._categories.map((({slug:slug})=>({name:slug,status:ref._wccGetFromStore(slug)||"no"}))).concat([{name:"Cookie Consent",status:"ccpa"===_wccStore._bannerConfig.activeLaw?"yes":ref._wccGetFromStore("consent")||"no"}])),consent_id:ref._wccGetFromStore("consentid")};let request=new XMLHttpRequest;request.open("POST",`${_wccApi.base}consent_logs`,!0),request.setRequestHeader("Content-type","application/json"),request.setRequestHeader("X-WP-Nonce",_wccApi.nonce),request.send(JSON.stringify(data))}catch(err){console.error(err)}}(),function(){"gdpr"===_wccGetLaw()&&_wccSetPreferenceCheckBoxStates(!0);_wccSetConsentDetails(),_wccSetFooterWrapperStyles(),!0===_wccStore._bannerConfig[currentLaw].behaviours.reloadBannerOnAccept&&window.location.reload()}()}}const _wccCreateElementBackup=document.createElement;function _wccUnblock(){if(1===navigator.doNotTrack)return;const consent=ref._wccGetFromStore("consent");("gdpr"!==_wccGetLaw()||consent&&"yes"===consent||!showBanner)&&(_wccStore._backupNodes=_wccStore._backupNodes.filter((({position:position,node:node,uniqueID:uniqueID})=>{try{if(_wccShouldBlockProvider(node.src))return!0;const frame=document.getElementById(uniqueID);if("BLOCKQUOTE"===node.nodeName&&node.classList.contains("tiktok-embed")&&frame){frame.parentNode.insertBefore(node,frame);const script=document.createElement("script");return script.src="https://www.tiktok.com/embed.js",script.async=!0,document.body.appendChild(script),frame.parentNode.removeChild(frame),!1}if(node.src&&node.type&&node.type.startsWith("javascript")){const scriptNode=document.createElement("script");scriptNode.src=node.src,scriptNode.type="text/javascript",scriptNode.async=!0;return("head"===position?document.head:document.body).appendChild(scriptNode),frame&&frame.parentNode.removeChild(frame),!1}if(frame)if(void 0!==node.frameBorder&&node.hasAttribute&&node.hasAttribute("allow"))frame.parentNode.insertBefore(node,frame),frame.parentNode.removeChild(frame);else if("VIDEO"===node.nodeName)frame.parentNode.insertBefore(node,frame),frame.parentNode.removeChild(frame);else{const iframe=document.createElement("iframe");iframe.src=node.src,iframe.width=frame.offsetWidth,iframe.height=frame.offsetHeight,frame.parentNode.insertBefore(iframe,frame),frame.parentNode.removeChild(frame)}return!1}catch(error){return console.error(error),!1}})))}function _wccAddProviderToList(node,cleanedHostname){const categoryName=node.hasAttribute("data-wcc")&&node.getAttribute("data-wcc");if(!categoryName)return;for(const category of _wccStore._categories)if(category.isNecessary&&category.slug===categoryName&&!0===category.defaultConsent[currentLaw])return;const provider=_wccStore._providersToBlock.find((({re:re})=>re===cleanedHostname));provider?provider.isOverriden?provider.categories.includes(categoryName)||provider.categories.push(categoryName):(provider.categories=[categoryName],provider.isOverriden=!0):_wccStore._providersToBlock.push({re:cleanedHostname,categories:[categoryName],fullPath:!1})}document.createElement=(...args)=>{const createdElement=_wccCreateElementBackup.call(document,...args);if("script"!==createdElement.nodeName.toLowerCase())return createdElement;const originalSetAttribute=createdElement.setAttribute.bind(createdElement);return Object.defineProperties(createdElement,{src:{get:function(){return createdElement.getAttribute("src")},set:function(value){return _wccShouldChangeType(createdElement,value)&&originalSetAttribute("type","javascript/blocked"),originalSetAttribute("src",value),!0}},type:{get:function(){return createdElement.getAttribute("type")},set:function(value){return value=_wccShouldChangeType(createdElement)?"javascript/blocked":value,originalSetAttribute("type",value),!0}}}),createdElement.setAttribute=(name,value)=>{if("type"===name||"src"===name)return createdElement[name]=value;originalSetAttribute(name,value),"data-wcc"!==name||_wccShouldChangeType(createdElement)||originalSetAttribute("type","text/javascript")},createdElement};const _nodeListObserver=new MutationObserver((function(mutations){if(!new URLSearchParams(window.location.search).has("wcc_bypass"))for(const{addedNodes:addedNodes}of mutations)for(const node of addedNodes)try{if("BLOCKQUOTE"===node.nodeName&&node.classList.contains("tiktok-embed")){const videoId=node.getAttribute("data-video-id");if(!videoId)continue;const uniqueID=ref._wccRandomString(8,!1),pseudoIframe={nodeName:"iframe",src:`https://www.tiktok.com/embed/${videoId}`,offsetWidth:parseInt(node.style.maxWidth)||605,offsetHeight:parseInt(node.style.minHeight)||700,insertAdjacentHTML:function(position,html){node.insertAdjacentHTML(position,html)}},cleanedHostname=_wccCleanHostName("tiktok.com");if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;_wccAddPlaceholder(pseudoIframe,uniqueID,_wccGetCategoryFromBlockedScript(node,cleanedHostname));const tiktokScript=document.querySelector('script[src*="tiktok.com/embed.js"]');tiktokScript&&tiktokScript.remove(),node.remove(),_wccStore._backupNodes.push({position:"body",node:node.cloneNode(!0),uniqueID:uniqueID});continue}if(1===node.nodeType&&node.classList.contains("elementor-video")){const widgetContainer=node.closest(".elementor-widget-video");if(!widgetContainer)continue;const settings=widgetContainer.getAttribute("data-settings");if(!settings)continue;try{const parsed=JSON.parse(settings.replace(/&quot;/g,'"')),videoType=parsed.video_type||"youtube";let videoUrl="",hostname="",videoId="",embedUrl="",externalUrlEnabled=!1;switch(videoType){case"youtube":if(videoUrl=parsed.youtube_url,!videoUrl||"string"!=typeof videoUrl)continue;const ytMatch=videoUrl.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/))([\w-]{11})/);if(!ytMatch)continue;videoId=ytMatch[1],hostname="youtube.com",embedUrl=`https://www.youtube.com/embed/${videoId}`;break;case"vimeo":if(videoUrl=parsed.vimeo_url,!videoUrl||"string"!=typeof videoUrl)continue;const vimeoMatch=videoUrl.match(/(?:vimeo\.com\/)(\d+)/);if(!vimeoMatch)continue;videoId=vimeoMatch[1],hostname="vimeo.com",embedUrl=`https://player.vimeo.com/video/${videoId}`;break;case"dailymotion":if(videoUrl=parsed.dailymotion_url,!videoUrl||"string"!=typeof videoUrl)continue;const dmMatch=videoUrl.match(/(?:dailymotion\.com\/video\/)([a-zA-Z0-9]+)/);if(!dmMatch)continue;videoId=dmMatch[1],hostname="dailymotion.com",embedUrl=`https://www.dailymotion.com/embed/video/${videoId}`;break;case"videopress":if(videoUrl=parsed.videopress_url,!videoUrl||"string"!=typeof videoUrl)continue;const vpMatch=videoUrl.match(/(?:videopress\.com\/v\/)([a-zA-Z0-9]+)/);if(!vpMatch)continue;videoId=vpMatch[1],hostname="videopress.com",embedUrl=`https://videopress.com/embed/${videoId}`;break;case"hosted":const externalUrl=parsed.external_url;if(externalUrlEnabled="yes"===parsed.external_url_enabled,externalUrlEnabled&&externalUrl&&"string"==typeof externalUrl)try{hostname=new URL(externalUrl).hostname,embedUrl=externalUrl}catch(urlError){continue}else{const videoSrc=node.src||node.getAttribute("src");if(!videoSrc||"string"!=typeof videoSrc)continue;try{const url=new URL(videoSrc);if(node.hasAttribute("data-wcc")&&"necessary"===node.getAttribute("data-wcc"))continue;hostname=`${url.hostname}${url.pathname}`,embedUrl=videoSrc}catch(urlError){continue}}break;default:continue}if(!embedUrl||!hostname)continue;const uniqueID=ref._wccRandomString(8,!1),realIframe=document.createElement("iframe");realIframe.src=embedUrl,realIframe.width=widgetContainer.offsetWidth||560,realIframe.height=widgetContainer.offsetHeight||315,realIframe.frameBorder=0,"youtube.com"===hostname?realIframe.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"):"vimeo.com"===hostname?realIframe.setAttribute("allow","autoplay; fullscreen; picture-in-picture"):realIframe.setAttribute("allow","autoplay; fullscreen");const pseudoIframe={nodeName:"iframe",src:realIframe.src,offsetWidth:realIframe.width,offsetHeight:realIframe.height,insertAdjacentHTML:function(position,html){node.insertAdjacentHTML(position,html)}},cleanedHostname=_wccCleanHostName(hostname);if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;_wccAddPlaceholder(pseudoIframe,uniqueID,_wccGetCategoryFromBlockedScript(node,cleanedHostname));const backupNode="hosted"!==videoType||externalUrlEnabled?realIframe.cloneNode(!0):node.cloneNode(!0);node.remove(),_wccStore._backupNodes.push({position:"body",node:backupNode,uniqueID:uniqueID})}catch(e){console.error("Error processing Elementor video:",e)}continue}if(!node.src||!node.nodeName||!["script","iframe"].includes(node.nodeName.toLowerCase()))continue;try{let hostname,pathname,urlToParse=node.src;if(urlToParse.match(/^\/[a-zA-Z0-9]+\/?$/))hostname=window.location.hostname,pathname=urlToParse;else try{const url=new URL(urlToParse.startsWith("//")?`${window.location.protocol}${urlToParse}`:urlToParse.startsWith("/")?`${window.location.origin}${urlToParse}`:urlToParse.match(/^https?:\/\//)?urlToParse:`${window.location.origin}/${urlToParse}`);hostname=url.hostname,pathname=url.pathname}catch(urlError){hostname=window.location.hostname,pathname=urlToParse.startsWith("/")?urlToParse:`/${urlToParse}`}const cleanedHostname=_wccCleanHostName(`${hostname}${pathname}`);if(_wccAddProviderToList(node,cleanedHostname),node.hasAttribute("data-wcc")&&!_wccIsCategoryToBeBlocked(node.getAttribute("data-wcc")))continue;if(!_wccShouldBlockProvider(cleanedHostname))continue;const uniqueID=ref._wccRandomString(8,!1);if("iframe"===node.nodeName.toLowerCase()){const category=_wccGetCategoryFromBlockedScript(node,cleanedHostname);_wccAddPlaceholder(node,uniqueID,category)}else{node.type="javascript/blocked";const scriptEventListener=function(event){event.preventDefault(),node.removeEventListener("beforescriptexecute",scriptEventListener)};node.addEventListener("beforescriptexecute",scriptEventListener)}const position=document.head.compareDocumentPosition(node)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";node.remove(),_wccStore._backupNodes.push({position:position,node:node.cloneNode(),uniqueID:uniqueID})}catch(error){console.log("Script processing error:",{src:node.src,nodeType:node.nodeName,error:error.message});continue}}catch(error){console.error("Error in mutation observer:",error)}}));function _wccCleanHostName(name){return name.replace(/^www./,"")}function _wccIsCategoryToBeBlocked(category){const cookieValue=ref._wccGetFromStore(category),normalizedLaw=currentLaw.toLowerCase();return"no"===cookieValue||!cookieValue&&_wccStore._categories.some((cat=>cat.slug===category&&!cat.isNecessary&&!cat.defaultConsent[normalizedLaw]))}function _wccShouldBlockProvider(formattedRE){const provider=_wccStore._providersToBlock.find((({re:re})=>new RegExp(_wccEscapeRegex(re)).test(formattedRE)));return provider&&provider.categories.some((category=>_wccIsCategoryToBeBlocked(category)))}function _wccGetCategoryFromBlockedScript(element,cleanedHostname){if(element.hasAttribute&&element.hasAttribute("data-wcc")){const dataWcc=element.getAttribute("data-wcc");if(dataWcc&&"necessary"!==dataWcc)return[dataWcc]}if(cleanedHostname&&_wccStore._providersToBlock){const provider=_wccStore._providersToBlock.find((({re:re})=>new RegExp(_wccEscapeRegex(re)).test(cleanedHostname)));if(provider&&provider.categories&&provider.categories.length>0){const blockedCategories=provider.categories.filter((category=>_wccIsCategoryToBeBlocked(category)));return blockedCategories.length>0?blockedCategories:provider.categories}}return null}function _wccShouldChangeType(element,src){return element.hasAttribute("data-wcc")&&_wccIsCategoryToBeBlocked(element.getAttribute("data-wcc"))||_wccShouldBlockProvider(src||element.src)}function _wccSendConsentEvent(responseCategories,status="initial"){const consentUpdate=new CustomEvent("wcc_consent_update",{detail:{status:status,categories:responseCategories,currentLaw:currentLaw}});document.dispatchEvent(consentUpdate),window.dataLayer&&window.dataLayer.push({event:"wcc_cookie_consent_update",cookie_consent_status:status,cookie_consent_categories:responseCategories})}function _wccFindCheckBoxValue(id=""){return(id?["wccSwitch","wccCategoryDirect"]:["wccCCPAOptOut"]).some((key=>{const checkBox=document.getElementById(`${key}${id}`);return checkBox&&checkBox.checked}))}function _wccAddPlaceholder(htmlElm,uniqueID,category=null){const videoPlaceHolderDataCode=_wccStore._bannerConfig[currentLaw].settings.shortcodes.find((code=>"wcc_video_placeholder"===code.key)).content,{offsetWidth:offsetWidth,offsetHeight:offsetHeight}=htmlElm;if(0===offsetWidth||0===offsetHeight)return;htmlElm.insertAdjacentHTML?htmlElm.insertAdjacentHTML("beforebegin",`${videoPlaceHolderDataCode}`.replace("[UNIQUEID]",uniqueID)):document.body.insertAdjacentHTML("beforeend",`${videoPlaceHolderDataCode}`.replace("[UNIQUEID]",uniqueID));const addedNode=document.getElementById(uniqueID);addedNode.style.width=`${offsetWidth}px`,addedNode.style.height=`${offsetHeight}px`;const innerTextElement=document.querySelector(`#${uniqueID} .video-placeholder-text-normal`);innerTextElement.style.display="none";const isTikTok=htmlElm.src.includes("tiktok.com"),youtubeID=!isTikTok&&function(src){const match=src.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!!(match&&Array.isArray(match)&&match[2]&&11===match[2].length)&&match[2]}(htmlElm.src);if(youtubeID?(addedNode.classList.replace("video-placeholder-normal","video-placeholder-youtube"),addedNode.style.backgroundImage=`linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/${youtubeID}/maxresdefault.jpg')`,innerTextElement.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube")):isTikTok&&(addedNode.classList.replace("video-placeholder-text-normal","video-placeholder-tiktok"),innerTextElement.classList.replace("video-placeholder-text-tiktok","video-placeholder-text-normal")),"GDPR"===currentLaw&&innerTextElement){const originalText=innerTextElement.textContent||innerTextElement.innerText;if(originalText?.includes("{category}")){let categoryNames="";if(Array.isArray(category))categoryNames=category.map((catSlug=>{const foundCategory=_wccStore._categories?.find((cat=>cat.slug===catSlug));return foundCategory?.name||catSlug||""})).filter((name=>name)).join(", ");else if(category){const foundCategory=_wccStore._categories?.find((cat=>cat.slug===category));categoryNames=foundCategory?.name||category||""}innerTextElement.textContent=originalText.replace("{category}",categoryNames.toLowerCase())}}}function _wccGPCEnabled(){return!0===navigator.globalPrivacyControl&&_wccStore._bannerConfig[currentLaw].config.optOption.gpcOption}function _wccSetConsentDetails(){const consentDetailsWrappers=document.querySelectorAll('[data-tag="consent-details"]');if(!consentDetailsWrappers||0===consentDetailsWrappers.length)return void(_wccStore._consentDetailsHidden=!0);const action=ref._wccGetFromStore("action"),consent=ref._wccGetFromStore("consent"),hasConsent="yes"===action||"yes"===consent;_wccStore._consentDetailsHidden=!hasConsent,consentDetailsWrappers.forEach((wrapper=>{if(!hasConsent)return void wrapper.classList.add("wcc-hide");wrapper.classList.remove("wcc-hide");const cookieValue=ref._wccGetCookie("wt_consent");let consentID="",consentTime="";if(cookieValue)try{const cookiePairs=cookieValue.split(",");for(const pair of cookiePairs){const[key,value]=pair.split(":");"consentid"===key&&value?consentID=value:"consent_time"===key&&value&&(consentTime=value)}}catch(e){consentID=ref._wccGetFromStore("consentid")||"",consentTime=ref._wccGetFromStore("consent_time")||""}else consentID=ref._wccGetFromStore("consentid")||"",consentTime=ref._wccGetFromStore("consent_time")||"";let formattedTime="";if(consentTime)try{const timeValue=parseInt(consentTime,10);if(!isNaN(timeValue)){const date=new Date(timeValue);formattedTime=function(date,format){if(!date||!(date instanceof Date)||isNaN(date.getTime()))return"";const formatMap={Y:()=>date.getFullYear(),y:()=>String(date.getFullYear()).slice(-2),m:()=>String(date.getMonth()+1).padStart(2,"0"),n:()=>String(date.getMonth()+1),d:()=>String(date.getDate()).padStart(2,"0"),j:()=>String(date.getDate()),H:()=>String(date.getHours()).padStart(2,"0"),h:()=>{const hours=date.getHours()%12||12;return String(hours).padStart(2,"0")},G:()=>String(date.getHours()),g:()=>{const hours=date.getHours()%12||12;return String(hours)},i:()=>String(date.getMinutes()).padStart(2,"0"),s:()=>String(date.getSeconds()).padStart(2,"0"),A:()=>date.getHours()>=12?"PM":"AM",a:()=>date.getHours()>=12?"pm":"am"};let formatted="",i=0;for(;i<format.length;){if("\\"===format[i]&&i+1<format.length){formatted+=format[i+1],i+=2;continue}let matched=!1;for(const[token,formatter]of Object.entries(formatMap))if(format.substr(i,token.length)===token){formatted+=formatter(),i+=token.length,matched=!0;break}matched||(formatted+=format[i],i++)}return formatted}(date,_wccStore._bannerConfig&&_wccStore._bannerConfig[currentLaw]&&_wccStore._bannerConfig[currentLaw].settings&&_wccStore._bannerConfig[currentLaw].settings.consentDetails&&_wccStore._bannerConfig[currentLaw].settings.consentDetails.dateFormat?_wccStore._bannerConfig[currentLaw].settings.consentDetails.dateFormat:"Y-m-d H:i:s")}}catch(e){formattedTime=consentTime}const consentIdElement=wrapper.querySelector('[data-tag="consent-id"]'),consentTimeElement=wrapper.querySelector('[data-tag="consent-time"]');consentIdElement&&(consentIdElement.textContent=consentID||"N/A"),consentTimeElement&&(consentTimeElement.textContent=formattedTime||"N/A");const accordion=wrapper.querySelector("#wccConsentDetails");if(accordion){accordion.querySelector(".wcc-accordion-body");const accordionHeaderWrapper=accordion.querySelector(".wcc-accordion-header-wrapper");if(accordionHeaderWrapper){const newHeaderWrapper=accordionHeaderWrapper.cloneNode(!0);accordionHeaderWrapper.parentNode.replaceChild(newHeaderWrapper,accordionHeaderWrapper);const freshAccordion=wrapper.querySelector("#wccConsentDetails"),freshAccordionBody=freshAccordion?freshAccordion.querySelector(".wcc-accordion-body"):null,freshAccordionHeaderWrapper=freshAccordion?freshAccordion.querySelector(".wcc-accordion-header-wrapper"):null;freshAccordionHeaderWrapper&&freshAccordion&&freshAccordionHeaderWrapper.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const isActive=freshAccordion.classList.toggle("wcc-accordion-active");freshAccordion.setAttribute("aria-expanded",isActive),freshAccordionBody&&freshAccordionBody.setAttribute("aria-hidden",!isActive)}))}}}))}function _wccSetFooterWrapperStyles(){const poweredByHidden=_wccStore._poweredByHidden,consentDetailsHidden=_wccStore._consentDetailsHidden;if(poweredByHidden&&consentDetailsHidden){const footerWrapper=document.querySelector(".wcc-footer-bottom-wrapper");footerWrapper&&(footerWrapper.style.display="none")}else{const footerWrapper=document.querySelector(".wcc-footer-bottom-wrapper");footerWrapper&&(footerWrapper.style.display="flex")}}_nodeListObserver.observe(document.documentElement,{childList:!0,subtree:!0}),window.revisitWccConsent=()=>_revisitWccConsent(),window.getWccConsent=function(){const cookieConsent={currentLaw:"",categories:{},isUserActionCompleted:!1,consentID:"",languageCode:""};try{cookieConsent.currentLaw=_wccGetLaw(),_wccStore._categories.forEach((category=>{cookieConsent.categories[category.slug]="yes"===ref._wccGetFromStore(category.slug)})),cookieConsent.isUserActionCompleted="yes"===ref._wccGetFromStore("action"),cookieConsent.consentID=ref._wccGetFromStore("consentid")||"",cookieConsent.languageCode=_wccStore._language||""}catch(e){}return cookieConsent}}();
// source --> https://www.scarpabaleno.it/wp-content/plugins/webtoffee-cookie-consent/lite/frontend/js/gcm.min.js?ver=3.5.1 
!function(){const data=window._wccGCMConfig;let setDefaultSetting=!0;const regionSettings=data._regions||[],waitForTime=data.wait_for_update,wcc_bypass=!!data._wccBypass,wcc_gcm_debug=!!data._debugMode,is_gtm_template=!!data._isGTMTemplate;function gtag(){dataLayer.push(arguments)}function setConsentInitStates(consentData){waitForTime>0&&(consentData.wait_for_update=waitForTime),gtag("consent","default",consentData)}if(window.dataLayer=window.dataLayer||[],is_gtm_template||gtag("set","developer_id.dZDk4Nz",!0),"advanced"!==data._mode||is_gtm_template||gtag("set","url_passthrough",!!data._urlPassthrough),!is_gtm_template)if(regionSettings.length)for(let index=0;index<regionSettings.length;index++){const regionSetting=regionSettings[index],convertConsent=value=>"Allowed"===value||"Granted"===value?"granted":"denied",consentRegionData={ad_storage:convertConsent(regionSetting.ad_storage),analytics_storage:convertConsent(regionSetting.analytics_storage),functionality_storage:convertConsent(regionSetting.functionality_storage),personalization_storage:convertConsent(regionSetting.personalization_storage),security_storage:convertConsent(regionSetting.security_storage),ad_user_data:convertConsent(regionSetting.ad_user_data),ad_personalization:convertConsent(regionSetting.ad_personalization)};let regionsToSetFor=[];Array.isArray(regionSetting.region)?regionsToSetFor=regionSetting.region.map((region=>region.trim())):"string"==typeof regionSetting.region&&(regionsToSetFor=regionSetting.region.split(",").map((region=>region.trim())).filter((region=>region))),regionsToSetFor.length>0&&"all"!==regionsToSetFor[0].toLowerCase()?consentRegionData.region=regionsToSetFor:(setDefaultSetting=!1,setDefaultConsents()),setConsentInitStates(consentRegionData)}else setDefaultConsents();function setDefaultConsents(){setDefaultSetting&&setConsentInitStates({ad_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",ad_user_data:"denied",ad_personalization:"denied"})}function update_consent_status(categories,is_refresh=!1){const categoryMap={advertisement:"wcc_ad_storage",analytics:"wcc_analytics_storage",functional:"wcc_functionality_storage"};Object.keys(categoryMap).forEach((category=>{window[categoryMap[category]]="denied"})),categories.accepted.forEach((category=>{categoryMap[category]&&(window[categoryMap[category]]="granted")})),wcc_bypass&&(Object.keys(categoryMap).forEach((category=>{window[categoryMap[category]]="granted"})),wcc_waiting_period=100),is_refresh&&is_gtm_template||gtag("consent","update",{ad_storage:wcc_ad_storage,ad_user_data:wcc_ad_storage,ad_personalization:wcc_ad_storage,analytics_storage:wcc_analytics_storage,functionality_storage:wcc_functionality_storage,personalization_storage:wcc_functionality_storage,security_storage:"granted"}),("advanced"===data._mode||is_gtm_template)&&function(wcc_ad_storage){if(data._redactData){gtag("set","ads_data_redaction","granted"!==wcc_ad_storage)}}(wcc_ad_storage);const consentUpdateEvent=new CustomEvent("wcc_gcm_updated",{detail:{ad_storage:wcc_ad_storage,analytics_storage:wcc_analytics_storage,functionality_storage:wcc_functionality_storage,personalization_storage:wcc_functionality_storage}});document.dispatchEvent(consentUpdateEvent),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"wcc_gcm_consent_update",ad_storage:wcc_ad_storage,analytics_storage:wcc_analytics_storage,functionality_storage:wcc_functionality_storage,personalization_storage:wcc_functionality_storage})}function isConsentGiven(){let wcc_consent_exist=getCookieValue("wt_consent","action");return"yes"===wcc_consent_exist||"no"===wcc_consent_exist}function getCookieValue(name,key){const cookies=document.cookie.split(";");for(const cookie of cookies){const[cookieName,cookieValue]=cookie.split("=");if(cookieName.trim()===name){const keyValuePairs=cookieValue.split(",");for(const pair of keyValuePairs){const[pairKey,pairValue]=pair.split(":");if(pairKey.trim()===key)return pairValue.trim()}}}return!1}function setConsentStatus(){function getConsentStatus(status){return void 0===status?"missing":status?"granted":"denied"}try{if(console.log("Debugging Google Consent Mode:\n"),!window.google_tag_data||!google_tag_data.ics||!google_tag_data.ics.entries)return console.log("\n\tNo Consent Mode data found");let messageToPrint="";const consentModeData=google_tag_data.ics.entries;let defaultMissing=!1;for(const consentItem in consentModeData){const currentItem=consentModeData[consentItem],defaultValue=getConsentStatus(currentItem.default);messageToPrint=`${messageToPrint}\n\t${consentItem}:\n\t\tDefault: ${defaultValue}\n\t\tUpdate: ${getConsentStatus(currentItem.update)}\n\n`,"missing"===defaultValue&&(defaultMissing=!0)}defaultMissing&&(messageToPrint+="%c\n\tWarning: Some categories are missing a default value.\n"),google_tag_data.ics.wasSetLate?messageToPrint+="%c\n\tWarning: A tag read consent before a default was set.\n":messageToPrint+="%c\n\tConsent mode states were set correctly.",defaultMissing||google_tag_data.ics.wasSetLate?console.log(messageToPrint,"color: #C00"):console.log(messageToPrint,"color: #0C0")}catch(error){return console.log("\n\nWarning: Error detecting consent mode status")}}document.addEventListener("_wccBannerVisible",(function(event){let is_banner_visible=event.detail.bannerVisibility,currentLaw=event.detail.currentLaw,categories={};if(!is_banner_visible||wcc_bypass)categories={accepted:["necessary","functional","analytics","performance","advertisement","others"],rejected:[]};else if(is_banner_visible){let accepted=["necessary"],rejected=[];["functional","analytics","performance","advertisement","others"].forEach((function(category){let cookieValue=getCookieValue("wt_consent",category);"yes"===cookieValue?accepted.push(category):"no"===cookieValue&&rejected.push(category)})),categories={accepted:accepted,rejected:rejected}}(categories&&(isConsentGiven()||!is_banner_visible)||"CCPA"===currentLaw)&&update_consent_status(categories,!0),wcc_gcm_debug&&!is_gtm_template&&setConsentStatus()})),document.addEventListener("wcc_consent_update",(function(eventData){const categories=eventData.detail.categories;categories&&isConsentGiven()&&(update_consent_status(categories),wcc_gcm_debug&&!is_gtm_template&&setConsentStatus())}))}();
// source --> https://www.scarpabaleno.it/wp-content/plugins/google-analytics-premium/assets/js/frontend-gtag.min.js?ver=10.1.1 
;var MonsterInsights=function(){var e=[],i='',r=!1;this.setLastClicked=function(t,n,i){t=typeof t!=='undefined'?t:[];n=typeof n!=='undefined'?n:[];i=typeof i!=='undefined'?i:!1;e.valuesArray=t;e.fieldsArray=n};this.getLastClicked=function(){return e};this.setInternalAsOutboundCategory=function(e){i=e};this.getInternalAsOutboundCategory=function(){return i};this.sendEvent=function(e,t,n){b(e,t,n,[])};function d(){if(window.monsterinsights_debug_mode){return!0}
else{return!1}};function v(e,t,n){var l={};for(var i in e){if(!e.hasOwnProperty(i)){continue};if(t&&t.indexOf(i)===-1){continue};if(n&&n.indexOf(i)>-1){continue};l[i]=e[i]};return l};function y(e,t,n){if(!monsterinsights_frontend.v4_id||e!=='event'){return};var i=n.event_category||'',a=['event_name','event_category','event_label','value',],l=v(n,null,a);l.action=t;l.send_to=monsterinsights_frontend.v4_id;let hitType=i.replace('-','_');if(i.indexOf('outbound-link')!==-1){hitType='click'}
else if(i==='download'){hitType='file_download'};__gtagTracker(e,hitType,l)};function l(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};y(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function b(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};__gtagTracker(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function t(t){t=typeof t!=='undefined'?t:[];e.valuesArray=t;e.fieldsArray=[];e.tracked=!1;n('Not Tracked: '+t.exit);n(e)};function n(e){if(d()){console.dir(e)}};function o(e){return e.replace(/^\s+|\s+$/gm,'')};function u(){var n=0,e=document.domain,i=e.split('.'),t='_gd'+(new Date()).getTime();while(n<(i.length-1)&&document.cookie.indexOf(t+'='+t)==-1){e=i.slice(-1-(++n)).join('.');document.cookie=t+'='+t+';domain='+e+';'};document.cookie=t+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain='+e+';';return e};function c(e){e=e.toString();e=e.substring(0,(e.indexOf('#')==-1)?e.length:e.indexOf('#'));e=e.substring(0,(e.indexOf('?')==-1)?e.length:e.indexOf('?'));e=e.substring(e.lastIndexOf('/')+1,e.length);if(e.length>0&&e.indexOf('.')!==-1){e=e.substring(e.lastIndexOf('.')+1);return e}
else{return''}};function x(e){return e.which==1||e.which==2||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey};function h(){var e=[];if(typeof monsterinsights_frontend.download_extensions=='string'){e=monsterinsights_frontend.download_extensions.split(',')};return e};function g(){var e=[];if(typeof monsterinsights_frontend.inbound_paths=='string'){e=JSON.parse(monsterinsights_frontend.inbound_paths)};return e};function w(e){if(e.which==1){return'event.which=1'}
else if(e.which==2){return'event.which=2'}
else if(e.metaKey){return'metaKey'}
else if(e.ctrlKey){return'ctrlKey'}
else if(e.shiftKey){return'shiftKey'}
else if(e.altKey){return'altKey'}
else{return''}};function A(e){var f=h(),l=g(),t='unknown',d=e.href,p=c(e.href),k=u(),r=e.hostname,a=e.protocol,m=e.pathname;d=d.toString();var s,v,y=e.getAttribute('data-vars-ga-category');if(y){return y};if(d.match(/^javascript\:/i)){t='internal'}
else if(a&&a.length>0&&(o(a)=='tel'||o(a)=='tel:')){t='tel'}
else if(a&&a.length>0&&(o(a)=='mailto'||o(a)=='mailto:')){t='mailto'}
else if(r&&k&&r.length>0&&k.length>0&&!r.endsWith('.'+k)&&r!==k){t='external'}
else if(m&&JSON.stringify(l)!='{}'&&m.length>0){var b=l.length;for(var n=0;n<b;n++){if(l[n].path&&l[n].label&&l[n].path.length>0&&l[n].label.length>0&&m.startsWith(l[n].path)){t='internal-as-outbound';i='outbound-link-'+l[n].label;break}}}
else if(r&&window.monsterinsights_experimental_mode&&r.length>0&&document.domain.length>0&&r!==document.domain){t='cross-hostname'};if(p&&(t==='unknown'||'external'===t)&&f.length>0&&p.length>0){for(s=0,v=f.length;s<v;++s){if(f[s].length>0&&(d.endsWith(f[s])||f[s]==p)){t='download';break}}};if(t==='unknown'){t='internal'};return t};function T(e,t){var n=(e.target&&!e.target.match(/^_(self|parent|top)$/i))?e.target:!1;if(t.ctrlKey||t.shiftKey||t.metaKey||t.which==2){n='_blank'};return n};function k(e){if(e.getAttribute('data-vars-ga-label')&&e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')){return e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')}
else if(e.title&&e.title.replace(/\n/ig,'')){return e.title.replace(/\n/ig,'')}
else if(e.innerText&&e.innerText.replace(/\n/ig,'')){return e.innerText.replace(/\n/ig,'')}
else if(e.getAttribute('aria-label')&&e.getAttribute('aria-label').replace(/\n/ig,'')){return e.getAttribute('aria-label').replace(/\n/ig,'')}
else if(e.alt&&e.alt.replace(/\n/ig,'')){return e.alt.replace(/\n/ig,'')}
else if(e.textContent&&e.textContent.replace(/\n/ig,'')){return e.textContent.replace(/\n/ig,'')}
else if(e.firstChild&&e.firstChild.tagName=='IMG'){return e.firstChild.src}
else if(e.href){return e.href}
else{return undefined}};function O(e){var i=e.children,l=0,a,n;for(var t=0;t<i.length;t++){a=i[t];n=k(a);if(n){return n};if(l==99){return undefined};l++};return undefined};function p(n){var a=n.srcElement||n.target,e=[],m;e.el=a;e.click_type=w(n);if('undefined'===typeof __gtagTracker||!x(n)){e.exit='loaded';t(e);return}
while(a&&(typeof a.tagName=='undefined'||a.tagName.toLowerCase()!='a'||!a.href)){a=a.parentNode};if(a&&a.href&&!a.hasAttribute('xlink:href')){var p=a.href,M=c(a.href),N=h(),S=g(),D=monsterinsights_frontend.home_url,L=u(),o=A(a),K=T(a,n),y=a.getAttribute('data-vars-ga-action'),f=a.getAttribute('data-vars-ga-label');e.el=a;e.el_href=a.href;e.el_protocol=a.protocol;e.el_hostname=a.hostname;e.el_port=a.port;e.el_pathname=a.pathname;e.el_search=a.search;e.el_hash=a.hash;e.el_host=a.host;e.el_classes=a.getAttribute('class');e.el_id=a.id;e.debug_mode=d();e.download_extensions=N;e.inbound_paths=S;e.home_url=D;e.link=p;e.extension=M;e.type=o;e.target=K;e.title=k(a);if(!e.label&&!e.title){e.title=O(a)};if(o!=='internal'&&o!=='javascript'){var b=!1,v=function(){if(b){return};s();b=!0;if(a.attributes.download){var e=document.createElement('a');e.href=a.href;e.download=a.download;e.click()}
else{window.location.href=p}},E=function(){e.exit='external';t(e)},C=function(){e.exit='internal-as-outbound';t(e)},I=function(){e.exit='cross-hostname';t(e)};if(K||o=='mailto'||o=='tel'){if(o=='download'){m={event_category:'download',event_label:f||e.title,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='tel'){m={event_category:'tel',event_label:f||e.title.replace('tel:',''),tel_number:p.replace('tel:',''),link_text:f||e.title,link_url:p,link_type:'tel',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='mailto'){m={event_category:'mailto',event_label:f||e.title.replace('mailto:',''),email_address:p.replace('mailto:',''),link_text:f||e.title.replace('mailto:',''),link_url:p,link_type:'mailto',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='internal-as-outbound'){m={event_category:i,event_label:f||e.title,event_name:'click',is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='external'){m={event_category:'outbound-link',event_label:f||e.title,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='cross-hostname'){m={event_category:'cross-hostname',event_label:f||e.title,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}};if(m){l('event',y||p,m,e)}
else{if(o&&o!='internal'){m={event_category:o,event_label:f||e.title,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else{e.exit='type';t(e)}}}
else{if(o!='cross-hostname'&&o!='external'&&o!='internal-as-outbound'){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}}};if(o=='download'){m={event_category:'download',event_label:f||e.title,event_callback:v,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else if(o=='internal-as-outbound'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}};m={event_category:i,event_label:f||e.title,event_callback:v,is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}
else if(o=='external'){r=!0;window.onbeforeunload=function(t){m={event_category:'outbound-link',event_label:f||e.title,event_callback:v,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e)}}
else if(o=='cross-hostname'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}};m={event_category:'cross-hostname',event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}
else{if(o&&o!=='internal'){m={event_category:o,event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else{e.exit='type';t(e)}};if(o!='external'&&o!='cross-hostname'&&o!='internal-as-outbound'){setTimeout(v,1000)}
else{if(o=='external'){setTimeout(E,1100)}
else if(o=='cross-hostname'){setTimeout(I,1100)}
else{setTimeout(C,1100)}};setTimeout(s,100)}}
else{s();e.exit='internal';t(e)}}
else{e.exit='notlink';t(e)}};var f=window.location.hash;function m(){if(monsterinsights_frontend.hash_tracking==='true'&&f!=window.location.hash&&monsterinsights_frontend.v4_id){f=window.location.hash;__gtagTracker('config',monsterinsights_frontend.v4_id,{page_path:location.pathname+location.search+location.hash,});n('Hash change to: '+location.pathname+location.search+location.hash)}
else{n('Hash change to (untracked): '+location.pathname+location.search+location.hash)}};function s(){if(r){window.onbeforeunload=null}};var a=window;if(a.addEventListener){a.addEventListener('load',function(){document.body.addEventListener('click',p,!1)},!1);window.addEventListener('hashchange',m,!1)}
else{if(a.attachEvent){a.attachEvent('onload',function(){document.body.attachEvent('onclick',p)});window.attachEvent('onhashchange',m)}};if(typeof String.prototype.endsWith!=='function'){String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}};if(typeof String.prototype.startsWith!=='function'){String.prototype.startsWith=function(e){return this.indexOf(e)===0}};if(typeof Array.prototype.lastIndexOf!=='function'){Array.prototype.lastIndexOf=function(e){'use strict';if(this===void 0||this===null){throw new TypeError()};var t,n,l=Object(this),i=l.length>>>0;if(i===0){return-1};t=i-1;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}
else if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}};for(n=t>=0?Math.min(t,i-1):i-Math.abs(t);n>=0;n--){if(n in l&&l[n]===e){return n}};return-1}}},MonsterInsightsObject=new MonsterInsights();