var existingAcceptrics=window.acceptrics||{};function gtag(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}window.acceptrics={...existingAcceptrics,conf:localStorage.getItem("__acceptrics_conf"),analytics:"unset",advertising:"unset",cb:document.createElement("div"),cm:document.createElement("div"),sbb:document.createElement("button"),removedScripts:[],su:"https://acceptrics.com/assets/theme.css",tu:"https://translations.acceptrics.com/",ec:"https://ec.acceptrics.com/",isEU:!1,ver:"2.10",gcb:{analytics:[],ads:[],marketing:[],functional:[],necessary:[]},cc:{analytics:["_ga","_gid","_gat"],ads:["_gac_","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb"]},defaultBannerText:"We use cookies and similar technologies on our website to enhance your experience and personalize content and ads. By continuing to use our website/app, you consent to the use of these technologies and the processing of your personal data for personalized and non-personalized advertising. By clicking 'Accept', you consent to the use of cookies and the processing of your data as described above.",defaultGpcNoticeText:"Your Global Privacy Control signal was honored. You are opted out of analytics and advertising tracking.",backgroundColor:"#333",fontColor:"#fff",presetsUrl:"https://acceptrics.com/assets/presets-generated.js",presetsLoading:!1,presetsLoaded:!1,presetsLoadPromise:null,lcss:function(){var e=document.head||document.getElementsByTagName("head")[0],t=(e||(e=document.createElement("head"),document.documentElement.insertBefore(e,document.documentElement.firstChild)),document.createElement("link"));t.rel="stylesheet",t.href=this.su,t.type="text/css",e.appendChild(t)},loadPresetsAsync:function(){return this.presetsLoaded?Promise.resolve():(this.presetsLoadPromise||(this.presetsLoadPromise=new Promise((e,c)=>{if(window.acceptrics.presetsGenerated||this.presetsGenerated)this.presetsLoaded=!0,e();else{var o=localStorage.getItem("__acceptrics_presets_cache");if(o)try{var n=JSON.parse(o);return window.acceptrics.presetsGenerated=n,this.presetsGenerated=n,this.presetsLoaded=!0,void e()}catch(e){localStorage.removeItem("__acceptrics_presets_cache")}let t=null;try{var a=JSON.parse(localStorage.getItem("__acceptrics_conf"));a&&a.presetsUrl&&(t=a.presetsUrl)}catch(e){}if(!t){var s=document.getElementsByTagName("script");for(let e=0;e<s.length;e++){var i=s[e].src;if(i&&(i.includes("banner-eu.js")||i.includes("banner-ww.js"))){t=i.replace(/banner-(eu|ww)\.js$/,"presets-generated.js");break}}t=t||this.presetsUrl}o=document.createElement("script");o.src=t,o.async=!0,o.onload=()=>{if(window.acceptrics.presetsGenerated){this.presetsGenerated=window.acceptrics.presetsGenerated;try{localStorage.setItem("__acceptrics_presets_cache",JSON.stringify(window.acceptrics.presetsGenerated))}catch(e){}this.presetsLoaded=!0,e()}else c(new Error("Presets not found after loading script"))},o.onerror=()=>{c(new Error("Failed to load presets"))};const r=document.head||document.getElementsByTagName("head")[0];r||(r=document.createElement("head"),document.documentElement.insertBefore(r,document.documentElement.firstChild)),r.appendChild(o)}}).catch(()=>(this.presetsLoadPromise=null,Promise.resolve()))),this.presetsLoadPromise)},lt:function(){var e=null;try{localStorage.getItem("__acceptrics_translations_ver")===this.ver&&(e=localStorage.getItem("__acceptrics_translations"))}catch(e){}if(null==e){var t=document.head||document.getElementsByTagName("head")[0],c=(t||(t=document.createElement("head"),document.documentElement.insertBefore(t,document.documentElement.firstChild)),document.createElement("script"));c.src=this.tu,c.type="text/javascript",t.appendChild(c)}else{try{this.languages=JSON.parse(e)||{}}catch(e){this.languages={}}this.ht()}},lec:function(){var e=document.head||document.getElementsByTagName("head")[0],t=(e||(e=document.createElement("head"),document.documentElement.insertBefore(e,document.documentElement.firstChild)),document.createElement("script")),e=(t.src=this.ec,t.type="text/javascript",e.appendChild(t),sessionStorage.getItem("__acceptrics_ec"));e&&(e=JSON.parse(e)||{},window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}(),gtag("set","user_data",e))},attachEventListeners:function(){var e=document.getElementById("acceptricsRejectAllBtn"),t=document.getElementById("acceptricsChooseSettingsBtn"),c=document.getElementById("acceptricsAcceptAllBtn"),e=(e&&e.addEventListener("click",function(){window.acceptrics.setConsent(!1)}),t&&t.addEventListener("click",function(){window.acceptrics.chooseSettings()}),c&&c.addEventListener("click",function(){window.acceptrics.setConsent()}),document.getElementById("acceptricsSaveSettingsBtn")),t=document.getElementById("acceptricsCloseModalBtn"),c=(e&&e.addEventListener("click",function(){window.acceptrics.ss()}),t&&t.addEventListener("click",function(){window.acceptrics.closeModal()}),document.getElementById("acceptricsModalRejectBtn")),e=document.getElementById("acceptricsModalAcceptBtn"),o=(c&&c.addEventListener("click",function(){window.acceptrics.closeModal(),window.acceptrics.setConsent(!1)}),e&&e.addEventListener("click",function(){window.acceptrics.closeModal(),window.acceptrics.setConsent()}),document.getElementById("acceptricsCookieModal"));o&&(o.addEventListener("click",function(e){"INPUT"===e.target.tagName&&"checkbox"===e.target.type||e.target.closest(".acceptricsSwitch")||(e.target===o?window.acceptrics.closeModal():(e=e.target.closest("[data-accordion-toggle]"))&&(e=e.getAttribute("data-accordion-toggle"),window.acceptrics.toggleAccordion(e)))},!0),o.addEventListener("keydown",function(e){var t;"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||e.target.closest(".acceptricsSwitch")||(t=e.target.closest("[data-accordion-toggle]"))&&(e.preventDefault(),window.acceptrics.toggleAccordion(t.getAttribute("data-accordion-toggle")))})),document.addEventListener("keydown",function(e){"Escape"!==e.key&&"Esc"!==e.key||(e=document.getElementById("acceptricsCookieModal"))&&"none"!==e.style.display&&window.acceptrics.closeModal()})},icons:{cookie:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5Z"/><path d="M8.5 9.5h.01"/><path d="M15 14h.01"/><path d="M9.5 15.5h.01"/></svg>',close:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>',chevron:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>'},categoryRow:function(e,t,c,o){o=!(!o||!o.locked);return`
                        <div class="acceptricsModalCategory acceptrics${e.charAt(0).toUpperCase()+e.slice(1)}Section" data-category="${e}">
                            <div class="acceptricsAccordionHeader" data-accordion-toggle="${e}" role="button" tabindex="0" aria-expanded="false" aria-controls="acceptricsPanel-${e}">
                                <span class="acceptricsAccordionIcon" aria-hidden="true">${this.icons.chevron}</span>
                                <span class="acceptricsCategoryText">
                                    <span class="acceptricsCategoryName">${t}<span class="acceptricsCategoryCount" data-count-for="${e}" hidden></span></span>
                                    <span class="acceptricsCategoryDesc">${c}</span>
                                </span>
                                <label class="acceptricsSwitch${o?" acceptricsSwitchLocked":""}">
                                    <input type="checkbox" id="${e}"${o?" checked disabled":""} aria-label="${t}">
                                    <span class="acceptricsSwitchTrack" aria-hidden="true"></span>
                                </label>
                            </div>
                            <div class="acceptricsAccordionContent" id="acceptricsPanel-${e}" data-accordion="${e}">
                                <div class="acceptricsCookieList" data-cookie-category="${e}"></div>
                            </div>
                        </div>`},abd:function(){var e;document.getElementById("acceptricsCookieBanner")||(this.cb.id="acceptricsCookieBanner",e=[],this.conf.bannerStyle&&e.push(this.conf.bannerStyle),this.conf.theme&&e.push(this.conf.theme),this.cb.classList=e.join(" ")||"",this.cb.style.display="none",this.cb.style.backgroundColor=this.conf.backgroundColor,this.cb.style.fontColor=this.conf.fontColor,this.cb.innerHTML=`
            <span id="acceptricsBannerText">${window.acceptrics.defaultBannerText}</span>
            <div class="acceptricsButtonRow">
                <button id="acceptricsRejectAllBtn">Reject All</button>
                <button id="acceptricsChooseSettingsBtn">Choose Settings</button>
                <button id="acceptricsAcceptAllBtn">Accept All</button>
            </div>
            <a href="https://acceptrics.com" target="_blank" rel="noopener noreferrer" class="acceptrics-attribution">Powered by Acceptrics</a>
        `,this.cm=document.createElement("div"),this.cm.id="acceptricsCookieModal",this.cm.style.display="none",this.cm.innerHTML=`
            <div id="acceptricsModalContent" role="dialog" aria-modal="true" aria-labelledby="acceptricsModalTitle">
                <div class="acceptricsModalTop">
                    <span class="acceptricsModalBadge" aria-hidden="true">${this.icons.cookie}</span>
                    <div class="acceptricsModalTitles">
                        <div class="acceptricsModalHeader" id="acceptricsModalTitle">Cookie Preferences</div>
                        <p class="acceptricsModalSubhead">Choose what we may use. Change it any time.</p>
                    </div>
                    <button type="button" id="acceptricsCloseModalBtn" class="acceptricsModalClose" aria-label="Close" title="Close">${this.icons.close}</button>
                </div>
                <div class="acceptricsModalBody">
                    <div class="acceptricsCategoryGroup">
                        ${this.categoryRow("necessary","Necessary","Required for the site to work. Always on.",{locked:!0})}
                        ${this.categoryRow("functional","Functional","Remembers your choices, like language and layout.")}
                        ${this.categoryRow("analytics","Analytics","Helps us understand how the site is used.")}
                        ${this.categoryRow("marketing","Advertising","Used to measure and personalise the ads you see.")}
                    </div>
                </div>
                <div class="acceptricsModalFooter">
                    <div class="acceptricsModalActions">
                        <button type="button" id="acceptricsModalRejectBtn" class="acceptricsBtnGhost">Reject all</button>
                        <button type="button" id="acceptricsModalAcceptBtn" class="acceptricsBtnGhost">Accept all</button>
                    </div>
                    <button type="button" id="acceptricsSaveSettingsBtn" class="acceptricsBtnPrimary">Save Settings</button>
                    <div class="acceptricsPoweredBy">powered by <a href="https://acceptrics.com" target="_blank" rel="noopener noreferrer">Acceptrics</a></div>
                </div>
            </div>
        `,document.body.appendChild(this.cb),document.body.appendChild(this.cm),this.attachEventListeners(),this.conf.useTranslation&&this.lt())},initializeSettings:function(e=""){this.conf=""!=e?JSON.parse(atob(e)):JSON.parse(localStorage.getItem("__acceptrics_conf")),this.lcss();let t={};t.bannerStyle=this.conf.bannerStyle||"",this.conf.theme&&(t.theme=this.conf.theme),t.geoArea=this.conf.geoArea||"worldwide",t.gcmAdvanced=!0===this.conf.gcmAdvanced||"true"===this.conf.gcmAdvanced,t.autoIncludeAllCookies=!0===this.conf.autoIncludeAllCookies||"true"===this.conf.autoIncludeAllCookies,t.respectGPC=!1!==this.conf.respectGPC&&"false"!==this.conf.respectGPC,void 0!==this.conf.bannerText&&(t.bannerText=this.conf.bannerText),this.conf.backgroundColor=(null!=this.conf.backgroundColor?this.conf:this).backgroundColor,t.backgroundColor=this.conf.backgroundColor,this.conf.fontColor=(null!=this.conf.fontColor?this.conf:this).fontColor,t.fontColor=this.conf.fontColor,this.conf.customCookies&&(t.customCookies=this.conf.customCookies),this.conf.categoryOverrides&&(t.categoryOverrides=this.conf.categoryOverrides),this.conf.ec&&this.lec(),aasb=function(){window.acceptrics.abd();var e=window.acceptrics.applyGPC();("addButton"in window.acceptrics.conf||e)&&window.acceptrics.addButton(),null!=window.acceptrics.conf.bannerText&&(document.querySelector("#acceptricsCookieBanner span").innerText=window.acceptrics.conf.bannerText),!0===t.autoIncludeAllCookies&&window.acceptrics.loadPresetsAsync().catch(function(e){}),e||"unset"!=JSON.parse(localStorage.getItem("__acceptrics_settings")).purposes.ads&&null!=localStorage.getItem("__acceptrics_settings")||!("eea"==t.geoArea&&acceptrics.isEU||"worldwide"==t.geoArea)||window.acceptrics.showBanner()},document.addEventListener("__acceptrics_consent_updated",function(e){window.acceptrics.updateConsent()}),document.addEventListener("__acceptrics_translations_ready",function(e){try{localStorage.setItem("__acceptrics_translations_ver",window.acceptrics.ver)}catch(e){}window.acceptrics.ht()}),"gcmAdvanced"in this.conf&&!this.conf.gcmAdvanced&&(t.gcmAdvanced=!1),"__acceptrics_settings"in localStorage||localStorage.setItem("__acceptrics_settings",JSON.stringify({purposes:{functional:"unset",analytics:"unset",ads:"unset"},consent:{functionality_storage:"unset",analytics_storage:"unset",ad_storage:"unset",ad_user_data:"unset",ad_personalization:"unset"}})),localStorage.setItem("__acceptrics_conf",JSON.stringify(t)),this.conf={...this.conf,...t},"loading"!==document.readyState?aasb():document.addEventListener("DOMContentLoaded",aasb),document.dispatchEvent(new Event("__acceptrics_ini_complete")),window.acceptrics.initializeSettingsCalled=!0},ht:function(){var e;window.acceptrics.conf.useTranslation&&(lc=navigator.language.split("-")[0],window.acceptrics.conf.bannerText=window.acceptrics.conf.bannerText||(window.acceptrics.conf.useTranslation&&window.acceptrics.languages[lc]?window.acceptrics.languages[lc].t:window.acceptrics.defaultBannerText),-1==Object.keys(window.acceptrics.languages).indexOf(lc)?window.acceptrics.conf.useTranslation=!1:(window.acceptrics.conf.translations=window.acceptrics.languages[lc],document.querySelector("#acceptricsSaveSettingsBtn").innerText=window.acceptrics.conf.translations.s,(e=document.querySelector("#acceptricsCloseModalBtn")).setAttribute("aria-label",window.acceptrics.conf.translations.c),e.setAttribute("title",window.acceptrics.conf.translations.c),document.querySelector("#acceptricsModalRejectBtn").innerText=window.acceptrics.conf.translations.r,document.querySelector("#acceptricsModalAcceptBtn").innerText=window.acceptrics.conf.translations.a,document.querySelector("#acceptricsRejectAllBtn").innerText=window.acceptrics.conf.translations.r,document.querySelector("#acceptricsChooseSettingsBtn").innerText=window.acceptrics.conf.translations.m,document.querySelector("#acceptricsAcceptAllBtn").innerText=window.acceptrics.conf.translations.a),document.querySelector("#acceptricsCookieBanner span").innerText=window.acceptrics.conf.bannerText,(e=document.querySelector("#acceptricsGpcNoticeText"))&&window.acceptrics.conf.translations&&window.acceptrics.conf.translations.g&&(e.innerText=window.acceptrics.conf.translations.g),window.acceptrics.applyDirection(lc))},rtlLanguages:["ar","fa","he","ur"],applyDirection:function(e){try{for(var t=-1!==this.rtlLanguages.indexOf(e)?"rtl":"ltr",c=["acceptricsCookieBanner","acceptricsCookieModal","acceptricsGpcNotice"],o=0;o<c.length;o++){var n=document.getElementById(c[o]);n&&(n.setAttribute("dir",t),n.setAttribute("lang",e))}}catch(e){}},consentWasLate:function(){return!!window.google_tag_data?.ics?.wasSetLate},diagnoseSequencingOrder:function(){return this.consentWasLate()?"Consent mode was sent late: a Google tag initialized before the consent default was set. Identify the late tag: https://acceptrics.com/docs#gtg-late-consent Then, first verify whether the late tag has adopted Google tag gateway (GTG): https://acceptrics.com/docs#gtg-enrollment If it has, follow our Google tag gateway documentation: https://acceptrics.com/docs#gtg-overview":"Consent mode sent on time or Google tags not used."},uc:function(){var e,t=localStorage.getItem("__acceptrics_settings");"consent"in(t=JSON.parse(t))&&("functional"in t.purposes&&(e=document.getElementById("functional"))&&(e.checked="rejected"!==t.purposes.functional),"analytics"in t.purposes&&(e=document.getElementById("analytics"))&&(e.checked="rejected"!==t.purposes.analytics),"ads"in t.purposes)&&(e=document.getElementById("marketing"))&&(e.checked="rejected"!==t.purposes.ads)},setConsent:function(e=!0){var t=localStorage.getItem("__acceptrics_settings"),t=JSON.parse(t),c=Object.assign({},t.purposes),o=e?"accepted":"rejected";t.purposes.functional=o,t.purposes.analytics=o,t.purposes.ads=o,t.consent.functionality_storage=o,t.consent.analytics_storage=o,t.consent.ad_storage=o,t.consent.ad_user_data=o,t.consent.ad_personalization=o,localStorage.setItem("__acceptrics_settings",JSON.stringify(t)),this.close(),this.consentLog.send(c,t.purposes,e?"accept_all":"reject_all","banner"),e?(this.observer.disconnect(),this.rgc(),this.restoreBlockedScripts()):(this.rc("functional"),this.rc("analytics"),this.rc("marketing"),this.rc("ads"),this.removeExistingScripts(),this.observer.observe(document.documentElement,{childList:!0,subtree:!0}));try{document.dispatchEvent(new CustomEvent("__acceptrics_consent_updated",{s:t}))}catch(e){}},applyGPC:function(){var e=JSON.parse(localStorage.getItem("__acceptrics_conf"));if(!e||!0!==e.respectGPC)return!1;if(!0!==navigator.globalPrivacyControl)return!1;e=JSON.parse(localStorage.getItem("__acceptrics_settings"));if(!e||"unset"!==e.purposes.ads)return!1;var t=Object.assign({},e.purposes);e.purposes.analytics="rejected",e.purposes.ads="rejected",e.consent.analytics_storage="rejected",e.consent.ad_storage="rejected",e.consent.ad_user_data="rejected",e.consent.ad_personalization="rejected",e.consentSource="gpc",localStorage.setItem("__acceptrics_settings",JSON.stringify(e)),this.consentLog.send(t,e.purposes,null,"gpc");try{this.rc("analytics"),this.rc("marketing"),this.rc("ads"),this.removeExistingScripts(),this.observer.observe(document.documentElement,{childList:!0,subtree:!0})}catch(e){}try{document.dispatchEvent(new CustomEvent("__acceptrics_consent_updated",{s:e}))}catch(e){}try{this.showGPCNotice()}catch(e){}return!0},gpcNoticeText:function(){try{var e=(navigator.language||"en").split("-")[0],t=this.languages||JSON.parse(localStorage.getItem("__acceptrics_translations"))||{};if(this.conf&&this.conf.useTranslation&&t[e]&&t[e].g)return t[e].g}catch(e){}return this.defaultGpcNoticeText},showGPCNotice:function(){var e,t,c;document.getElementById("acceptricsGpcNotice")||((e=document.createElement("div")).id="acceptricsGpcNotice",e.className="acceptricsGpcNotice",e.setAttribute("role","status"),e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M12 2 4 5v6c0 5 3.4 8.6 8 10 4.6-1.4 8-5 8-10V5l-8-3z" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><path d="M9 12l2 2 4-4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg><span id="acceptricsGpcNoticeText"></span><button id="acceptricsGpcNoticeClose" aria-label="Dismiss">&times;</button>',e.querySelector("#acceptricsGpcNoticeText").innerText=this.gpcNoticeText(),this.conf&&this.conf.backgroundColor&&(e.style.backgroundColor=this.conf.backgroundColor),this.conf&&this.conf.fontColor&&(e.style.color=this.conf.fontColor),c=(navigator.language||"en").split("-")[0],-1!==this.rtlLanguages.indexOf(c)&&(e.setAttribute("dir","rtl"),e.setAttribute("lang",c)),t=function(){e.classList.add("acceptricsGpcNoticeHide"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},450)},e.querySelector("#acceptricsGpcNoticeClose").addEventListener("click",function(e){e.stopPropagation(),t()}),e.addEventListener("click",function(){window.acceptrics.chooseSettings()}),setTimeout(t,12e3),c=function(){document.body.appendChild(e)},document.body?c():document.addEventListener("DOMContentLoaded",c))},updateConsent:function(){var e=JSON.parse(localStorage.getItem("__acceptrics_settings"));if(e&&e.consent){var t=JSON.parse(localStorage.getItem("__acceptrics_conf"));if(void 0!==gtag&&t&&(gtag("consent","update",{functionality_storage:"accepted"==e.consent.functionality_storage?"granted":"denied",analytics_storage:"accepted"==e.consent.analytics_storage?"granted":"denied",ad_storage:"accepted"==e.consent.ad_storage?"granted":"denied",ad_user_data:"accepted"==e.consent.ad_user_data?"granted":"denied",ad_personalization:"accepted"==e.consent.ad_personalization?"granted":"denied"}),window.uetq.push("consent","update",{ad_storage:"accepted"==e.consent.ad_storage?"granted":"denied"})),"function"==typeof fbq&&t)try{fbq("consent","accepted"==e.consent.ad_storage?"grant":"revoke")}catch(e){}if(t&&("false"==t.gcmAdvanced||0==t.gcmAdvanced||!1===t.gcmAdvanced))try{window.acceptrics.removeAndBackupGoogleCookies(),window.acceptrics.rgc()}catch(e){}}},chooseSettings:function(){window.acceptrics.uc(),this.updateModalCookieLists(),document.getElementById("acceptricsCookieModal").style.display="flex"},ss:function(e){let t,c,o;o=e&&"object"==typeof e?(t=e.analytics?"accepted":"rejected",c=e.marketing?"accepted":"rejected",e.functional?"accepted":"rejected"):(a=document.getElementById("analytics"),s=document.getElementById("marketing"),n=document.getElementById("functional"),t=a&&a.checked?"accepted":"rejected",c=s&&s.checked?"accepted":"rejected",n&&n.checked?"accepted":"rejected");var n,a=localStorage.getItem("__acceptrics_settings"),a=JSON.parse(a),s=Object.assign({},a.purposes);a.purposes.functional=o,a.purposes.analytics=t,a.purposes.ads=c,a.consent.functionality_storage=o,a.consent.analytics_storage=t,a.consent.ad_storage=c,a.consent.ad_user_data=c,a.consent.ad_personalization=c,localStorage.setItem("__acceptrics_settings",JSON.stringify(a)),"rejected"===o&&this.rc("functional"),"rejected"===t&&this.rc("analytics"),"rejected"===c&&(this.rc("marketing"),this.rc("ads")),"accepted"!==o&&"accepted"!==t&&"accepted"!==c||(this.rgc(),this.restoreBlockedScripts()),e||(this.closeModal(),this.close()),this.consentLog.send(s,a.purposes,"save_preferences",e?"api":"modal"),this.observer.disconnect();try{this.updateConsent()}catch(e){}},closeModal:function(){document.getElementById("acceptricsCookieModal").style.display="none"},lastAccordionToggle:0,toggleAccordion:function(e){var t,c=Date.now();c-this.lastAccordionToggle<100||(this.lastAccordionToggle=c,(c=document.querySelector(`[data-accordion="${e}"]`))&&(t=(e=c.previousElementSibling)?e.querySelector(".acceptricsAccordionIcon"):null,c.classList.contains("acceptricsAccordionExpanded")?(c.classList.remove("acceptricsAccordionExpanded"),c.style.setProperty("max-height","0","important"),c.style.setProperty("height","0","important"),c.style.setProperty("min-height","0","important"),c.style.setProperty("overflow","hidden","important"),c.style.setProperty("padding","0 16px","important"),c.style.setProperty("opacity","0","important"),c.style.setProperty("visibility","hidden","important"),t&&t.style.setProperty("transform","rotate(0deg)","important"),e&&(e.setAttribute("aria-expanded","false"),e.classList.remove("acceptricsAccordionHeaderOpen"))):(c.classList.add("acceptricsAccordionExpanded"),c.style.setProperty("visibility","visible","important"),c.style.setProperty("overflow","visible","important"),c.style.setProperty("max-height","none","important"),c.style.setProperty("height","auto","important"),c.style.setProperty("min-height","0","important"),c.style.setProperty("padding","0 16px 14px","important"),c.style.setProperty("display","block","important"),c.style.setProperty("opacity","1","important"),c.style.setProperty("position","relative","important"),c.style.setProperty("z-index","1","important"),t&&t.style.setProperty("transform","rotate(180deg)","important"),e&&(e.setAttribute("aria-expanded","true"),e.classList.add("acceptricsAccordionHeaderOpen")))))},showBanner:function(){document.getElementById("acceptricsCookieBanner").style.display="flex"},close:function(){document.getElementById("acceptricsCookieBanner").style.display="none"},consentLog:{A:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",ulid:function(){for(var e=Date.now(),t="",c=9;0<=c;c--)t=this.A[e%32]+t,e=Math.floor(e/32);var o=new Uint8Array(16);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(o);else for(c=0;c<16;c++)o[c]=Math.floor(256*Math.random());for(c=0;c<16;c++)t+=this.A[o[c]%32];return t},classify:function(e,t,c){var o;return"gpc"===c?"gpc_auto":(c=e&&"unset"!==e.ads,t=(o=function(e){return e&&("accepted"===e.analytics||"accepted"===e.ads||"accepted"===e.functional)})(t),c&&o(e)&&!t?"withdraw":c?"update":t?"grant":"reject")},SIGNALS:{accepted:"granted",rejected:"denied",unset:"unset"},toConsentMode:function(e){var t,c={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(c[t]=this.SIGNALS[e[t]]||e[t]);return c},send:function(e,t,c,o){var n=window.acceptrics;try{var a,s,i,r=n.conf||{};r.consentEndpoint&&r.accountNum&&(a=JSON.parse(localStorage.getItem("__acceptrics_settings"))||{},s=this.ulid(),i={account:r.accountNum,cid:s,prev:a.cid||null,event:this.classify(e,t,o),surface:o,action:c,purposes:t,consent:this.toConsentMode(a.consent),url:window.location.href,config_hash:r.confHash||null,engine:n.ver,lang:(navigator.language||"en").split("-")[0],gpc:!0===navigator.globalPrivacyControl,eu_region:!0===n.isEU},a.cid=s,localStorage.setItem("__acceptrics_settings",JSON.stringify(a)),this.post(r.consentEndpoint,JSON.stringify(i)))}catch(e){}},post:function(t,c){try{fetch(t,{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:c,keepalive:!0,mode:"cors"}).catch(function(){})}catch(e){navigator.sendBeacon&&navigator.sendBeacon(t,new Blob([c],{type:"text/plain;charset=UTF-8"}))}}},addButton:function(){document.getElementById("showBannerButton")||(this.sbb.classList.add("acceptrics-cookie-settings-btn"),this.sbb.id="showBannerButton",this.sbb.textContent="🍪",this.sbb.setAttribute("aria-label","Cookie settings"),this.sbb.setAttribute("title","Cookie settings"),this.sbb.addEventListener("click",function(){window.acceptrics.chooseSettings()}),document.body.appendChild(this.sbb))},removeScript:function(e){var t=e.getAttribute("src"),c=e.textContent;this.removedScripts.push({src:t,scriptContent:c}),e.parentNode&&e.parentNode.removeChild(e)},isFirstPartyDomain:function(e){var t;return!!e&&((e=e.replace(/^\./,""))===(t=window.location.hostname)||t.endsWith("."+e))},getBlockedHostnames:function(){let c=new Set,o=window.location.hostname;try{var e=JSON.parse(localStorage.getItem("__acceptrics_conf")||"{}").customCookies||{};Object.values(e).forEach(e=>{Array.isArray(e)&&e.forEach(e=>{if(e.sourceUrl&&!this.isFirstPartyDomain(e.domain))try{var t=new URL(e.sourceUrl).hostname;t&&t!==o&&c.add(t)}catch(e){}})})}catch(e){}return c},removeExistingScripts:function(){var e=document.querySelectorAll("script");let n=this.getBlockedHostnames();e.forEach(e=>{var t=e.getAttribute("src"),c=e.textContent;if(t&&t.includes("https://www.googletagmanager.com/gtag/js")||t&&t.includes("https://www.googletagmanager.com/gtm.js"))this.removeScript(e);else{if(t&&0<n.size)try{var o=new URL(t).hostname;if(n.has(o))return void this.removeScript(e)}catch(e){}c&&(c.includes("gtag(")||c.includes("googletagmanager.com/gtm.js"))&&this.removeScript(e)}})},removeAndBackupGoogleCookies:function(){var e=localStorage.getItem("__acceptrics_settings");"accepted"!=(e=JSON.parse(e)).purposes.analytics&&(window.acceptrics.rc("analytics"),this.removeExistingScripts(),this.observer.observe(document.documentElement,{childList:!0,subtree:!0})),"accepted"!=e.purposes.ads&&(window.acceptrics.rc("ads"),this.removeExistingScripts(),this.observer.observe(document.documentElement,{childList:!0,subtree:!0}))},rc:function(e){var o=document.cookie;if(o&&""!==o.trim()){o=o.split(";");let i="ads"===e?"marketing":e,t=!1,c=!1;try{var n=JSON.parse(localStorage.getItem("__acceptrics_conf"));t=n&&!0===n.autoIncludeAllCookies,c=n&&n.customCookies&&0<Object.keys(n.customCookies).length}catch(e){t=!1,c=!1}n=this.presetsGenerated||window.acceptrics&&window.acceptrics.presetsGenerated;let r=t&&n||c?this.getCookieRules(i):null,d="marketing"===i?"ads":e,l=r?r.map(e=>e.pattern):this.cc[d]||[];o.forEach(e=>{if(e&&""!==e.trim()){let t=e.split("=")[0].trim();e=e.split("=")[1];if(t)if(r?l.some(e=>this.matchPattern(t,e)):l.some(e=>t.includes(e))){var c=void 0!==window.acceptrics.gcb[i]?i:d;window.acceptrics.gcb[c].push({name:t,value:e});var o,n=location.pathname.split("/").filter(Boolean),c=n[n.length-1],a=(c&&c.includes(".")&&n.pop(),["/"]);for(let e=0;e<n.length;e++){var s="/"+n.slice(0,e+1).join("/");a.push(s),a.push(s+"/")}for(o of a)document.cookie=t+"=deleted; max-age=0; path="+o,document.cookie=t+"=; max-age=-1; path="+o,document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path="+o,document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path="+o,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=`+location.hostname,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=.`+location.hostname,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=.google.com`,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=.www.google.com`,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=.facebook.com`,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${o}; domain=.microsoft.com`}}})}},rgc:function(){var e=localStorage.getItem("__acceptrics_settings"),e=JSON.parse(e);let t=location.hostname;var c=e=>{document.cookie=e.name+`=${e.value}; path=/`,document.cookie=e.name+`=${e.value}; path=/; domain=`+t,document.cookie=e.name+`=${e.value}; path=/; domain=.`+t};"accepted"==e.purposes.functional&&window.acceptrics.gcb.functional&&window.acceptrics.gcb.functional.forEach(c),"accepted"==e.purposes.analytics&&window.acceptrics.gcb.analytics&&window.acceptrics.gcb.analytics.forEach(c),"accepted"==e.purposes.ads&&(window.acceptrics.gcb.ads&&window.acceptrics.gcb.ads.forEach(c),window.acceptrics.gcb.marketing)&&window.acceptrics.gcb.marketing.forEach(c)},restoreBlockedScripts:function(){this.removedScripts.forEach(e=>{var t=document.createElement("script");e.src?(t.src=e.src,t.async=!0):e.scriptContent&&(t.textContent=e.scriptContent),document.body.appendChild(t)}),this.removedScripts.length=0},getAllGeneratedCookies:function(e){var t=this.presetsGenerated||window.acceptrics&&window.acceptrics.presetsGenerated;if(!t)return[];var c,o,n=[];for([c,o]of Object.entries(t)){var a=o.cookies?.[e]||[];n.push(...a)}return n},getMovedCookies:function(t,c,e){let o=[],n={};try{var a=localStorage.getItem("__acceptrics_conf");a?n=JSON.parse(a):"string"==typeof this.conf?n=JSON.parse(this.conf):this.conf&&"object"==typeof this.conf&&(n=this.conf)}catch(e){n={}}var s,i=(e=void 0===e?!0===n.autoIncludeAllCookies:e)?this.presetsGenerated||window.acceptrics&&window.acceptrics.presetsGenerated:null;for(s of["necessary","functional","analytics","marketing"])if(s!==t){if(i)for(var[r,d]of Object.entries(i))(d.cookies?.[s]||[]).forEach(e=>{c[e.pattern]===t&&o.push(e)});(n.customCookies?.[s]||[]).forEach(e=>{c[e.pattern]===t&&o.push(e)})}return o},getCookieRules:function(t){let c={};try{var e=localStorage.getItem("__acceptrics_conf");e?c=JSON.parse(e):"string"==typeof this.conf?c=JSON.parse(this.conf):this.conf&&"object"==typeof this.conf&&(c=this.conf)}catch(e){c={}}var e=c.customCookies&&Object.keys(c.customCookies).some(e=>Array.isArray(c.customCookies[e])&&0<c.customCookies[e].length),o=!0===c.autoIncludeAllCookies&&!e;!o||this.presetsLoaded||this.presetsLoadPromise||this.loadPresetsAsync().catch(function(e){});let n=[],a=(e?n=c.customCookies[t]||[]:o&&(n=this.getAllGeneratedCookies(t)),c.categoryOverrides||{});n=n.filter(e=>{e=a[e.pattern];return!e||e===t});e=this.getMovedCookies(t,a,o);return[...n,...e]},matchPattern:function(e,t){t="^"+t.replace(/\*/g,".*")+"$";return new RegExp(t).test(e)},scanDetectedCookies:function(){var e=document.cookie;let o={necessary:[],functional:[],analytics:[],marketing:[]};e&&""!==e.trim()&&e.split(";").forEach(e=>{var t,c;e&&""!==e.trim()&&(t=e.split("=")[0].trim(),e=e.split("=")[1],t)&&(c=this.matchCookieToCategory(t))&&o[c.category].push({name:t,value:e,pattern:c.pattern,description:c.description||"",platform:c.platform||"Unknown",privacyUrl:c.privacyUrl||""})});try{let t=JSON.parse(localStorage.getItem("__acceptrics_conf"));if(t){var c=["necessary","functional","analytics","marketing"];if(t.customCookies&&Object.keys(t.customCookies).some(e=>Array.isArray(t.customCookies[e])&&0<t.customCookies[e].length))for(let e of c)(t.customCookies[e]||[]).forEach(t=>{o[e].some(e=>e.pattern===t.pattern)||o[e].push({name:t.pattern,value:"",pattern:t.pattern,description:t.description||"",platform:"Custom",privacyUrl:t.privacyUrl||""})});else if(!0===t.autoIncludeAllCookies)for(let e of c)this.getAllGeneratedCookies(e).forEach(t=>{o[e].some(e=>e.pattern===t.pattern)||o[e].push({name:t.pattern,value:"",pattern:t.pattern,description:t.description||"",platform:this.findPlatformForCookie(t.pattern),privacyUrl:t.privacyUrl||""})});else{var n=this.getGoogleOnlyCookies();for(let e of c)(n[e]||[]).forEach(t=>{o[e].some(e=>e.pattern===t.pattern)||o[e].push({name:t.pattern,value:"",pattern:t.pattern,description:t.description||"",platform:t.platform||"Google",privacyUrl:t.privacyUrl||""})})}}}catch(e){}return o},matchCookieToCategory:function(e){var t=this.presetsGenerated||window.acceptrics&&window.acceptrics.presetsGenerated;let c=!1;try{var o="string"==typeof this.conf?JSON.parse(this.conf):this.conf||{};c=!!o.customCookies}catch(e){c=!1}if(t||c){var n,a;for(n of["necessary","functional","analytics","marketing"])for(a of this.getCookieRules(n))if(this.matchPattern(e,a.pattern))return{category:n,pattern:a.pattern,description:a.description||"",platform:this.findPlatformForCookie(a.pattern),privacyUrl:a.privacyUrl||""}}return null},isOnlyGoogleMode:function(){try{let t=JSON.parse(localStorage.getItem("__acceptrics_conf"));var e,c;return t?(e=!0===t.autoIncludeAllCookies,c=t.customCookies&&Object.keys(t.customCookies).some(e=>Array.isArray(t.customCookies[e])&&0<t.customCookies[e].length),!e&&!c):!0}catch(e){return!0}},getGoogleOnlyCookies:function(){var e="https://business.safety.google/privacy/";return{necessary:[],functional:[],analytics:[{pattern:"_ga",description:"Distinguishes unique users by assigning a randomly generated number as a client identifier",platform:"Google Analytics",privacyUrl:e},{pattern:"_ga_*",description:"Used to persist session state",platform:"Google Analytics",privacyUrl:e},{pattern:"_gid",description:"Distinguishes users for analytics purposes",platform:"Google Analytics",privacyUrl:e},{pattern:"_gat",description:"Used to throttle request rate to Google Analytics",platform:"Google Analytics",privacyUrl:e},{pattern:"_gat_*",description:"Used to throttle request rate for specific properties",platform:"Google Analytics",privacyUrl:e}],marketing:[{pattern:"_gcl_au",description:"Used to store and track conversions",platform:"Google Ads",privacyUrl:e},{pattern:"_gcl_aw",description:"Stores click information from Google Ads campaigns",platform:"Google Ads",privacyUrl:e},{pattern:"_gcl_dc",description:"Used by DoubleClick to track conversions",platform:"Google Ads",privacyUrl:e},{pattern:"_gcl_gb",description:"Used for Google Ads conversion tracking",platform:"Google Ads",privacyUrl:e},{pattern:"_gac_*",description:"Contains campaign related information for the user",platform:"Google Ads",privacyUrl:e}]}},findPlatformForCookie:function(t){var e,c,o,n=this.presetsGenerated||window.acceptrics&&window.acceptrics.presetsGenerated;if(!n)return"Unknown";for([e,c]of Object.entries(n))for(o of["necessary","functional","analytics","marketing"])if((c.cookies?.[o]||[]).some(e=>e.pattern===t))return c.displayName||e;return"Custom"},updateModalCookieLists:function(){var e=this.scanDetectedCookies();this.updateCategoryList("analytics",e.analytics),this.updateCategoryList("marketing",e.marketing),this.updateCategoryList("functional",e.functional),this.updateCategoryList("necessary",e.necessary)},updateCategoryList:function(e,t){let n=document.querySelector(`[data-cookie-category="${e}"]`);if(!n){var c=this.findCategorySection(e);if(!c)return;(n=document.createElement("div")).className="acceptricsCookieList",n.setAttribute("data-cookie-category",e),c.appendChild(n)}n.innerHTML="";var c=document.querySelector(`[data-count-for="${e}"]`);c&&(0<t.length?(c.textContent=t.length,c.removeAttribute("hidden")):(c.textContent="",c.setAttribute("hidden",""))),0<t.length&&((c=document.createElement("div")).className="acceptricsCookieCount",c.setAttribute("data-category",e),c.setAttribute("data-cookie-count",t.length),c.textContent=t.length+` cookie${1!==t.length?"s":""} in this category`,n.appendChild(c),t.forEach(e=>{var t=document.createElement("div"),c=(t.className="acceptricsCookieItem",t.setAttribute("data-cookie-name",e.name),document.createElement("strong")),o=(c.className="acceptricsCookieName",c.textContent=e.name,document.createElement("span"));o.className="acceptricsCookieMeta",e.platform&&"Unknown"!==e.platform?(o.textContent=""+e.platform,e.description&&(o.textContent+=" - "+e.description)):e.description&&(o.textContent=e.description),t.appendChild(c),o.textContent&&t.appendChild(o),e.privacyUrl&&((c=document.createElement("a")).href=e.privacyUrl,c.textContent="Privacy Policy",c.target="_blank",c.rel="noopener noreferrer",c.className="acceptricsCookieLink",t.appendChild(c)),n.appendChild(t)}))},findCategorySection:function(e){e={analytics:"analytics",marketing:"marketing",ads:"marketing",functional:"functional",necessary:"necessary"}[e];if(!e)return null;e=document.getElementById(e);if(!e)return null;let t=e.parentElement;for(;t&&!t.classList.contains("acceptricsModalCategory");)t=t.parentElement;return t},observer:new MutationObserver(e=>{let n=window.acceptrics.getBlockedHostnames();for(var t of e)"childList"===t.type&&t.addedNodes.forEach(e=>{if("SCRIPT"===e.tagName){var t=e.getAttribute("src"),c=e.textContent;if(t&&t.includes("https://www.googletagmanager.com/gtag/js")||t&&t.includes("https://www.googletagmanager.com/gtm.js"))window.acceptrics.removeScript(e);else{if(t&&0<n.size)try{var o=new URL(t).hostname;if(n.has(o))return void window.acceptrics.removeScript(e)}catch(e){}c&&(c.includes("gtag(")||c.includes("googletagmanager.com/gtm.js"))&&window.acceptrics.removeScript(e)}}})})},window.uetq=window.uetq||[],document.addEventListener("__acceptrics_ini_complete",()=>{var e=JSON.parse(localStorage.getItem("__acceptrics_conf")),t={functionality_storage:"denied",analytics_storage:"denied",ad_storage:"denied",ad_personalization:"denied",ad_user_data:"denied"};if(gtag("set","developer_id.dYWU2OD",!0),"eea"==e.geoArea&&1!=window.acceptrics.isEU){var c=!0===e.respectGPC&&!0===navigator.globalPrivacyControl;if(gtag("consent","default",{functionality_storage:"granted",analytics_storage:c?"denied":"granted",ad_storage:c?"denied":"granted",ad_personalization:c?"denied":"granted",ad_user_data:c?"denied":"granted"}),window.uetq.push("consent","default",{ad_storage:c?"denied":"granted"}),"function"==typeof fbq)try{fbq("consent",c?"revoke":"grant")}catch(e){}}if("gcmAdvanced"in e&&e.gcmAdvanced){if("eea"==e.geoArea&&1==window.acceptrics.isEU){if(gtag("consent","default",{...t,region:["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"]}),window.uetq.push("consent","default",{ad_storage:"denied"}),"function"==typeof fbq)try{fbq("consent","revoke")}catch(e){}}else if("worldwide"==e.geoArea&&(gtag("consent","default",t),window.uetq.push("consent","default",{ad_storage:"denied"}),"function"==typeof fbq))try{fbq("consent","revoke")}catch(e){}}else("eea"==e.geoArea&&1==window.acceptrics.isEU||"worldwide"==e.geoArea)&&(window.uetq.push("consent","default",{ad_storage:"denied"}),window.acceptrics.removeAndBackupGoogleCookies());"__acceptrics_settings"in localStorage&&("unset"==(p=JSON.parse(localStorage.getItem("__acceptrics_settings")).purposes).ads&&"unset"==p.analytics||window.acceptrics.updateConsent())}),setTimeout(()=>{window.acceptrics.initializeSettingsCalled||window.acceptrics.initializeSettings()},500),document.dispatchEvent(new Event("__acceptrics_loaded")),Math.random()<.05&&setTimeout(()=>{r="00000000",window.acceptrics.consentWasLate()&&(r|="00000001"),document.querySelector('link[href*="wp-content/"], link[href*="wp-includes/"], meta[name="generator"][content*="WordPress"]')&&"function"!=typeof window.wp_set_consent&&(r|="00000010"),(window.Shopify||document.querySelector('link[href*=".myshopify.com/"], link[href*="cdn.shopify.com/"], meta[name="shopify-checkout-api-token"]'))&&"function"!=typeof window.Shopify.customerPrivacy&&(r|="00000100"),"00000000"!=r&&fetch("https://zc25d7jezg.execute-api.us-west-2.amazonaws.com/unhealthyBanner",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.href,reason:r,site_key:window.acceptrics.conf.accountNum||0})})},5e3);