/*! For license information please see __enzuzo-cookiebar.js.LICENSE.txt */ window.__ENZUZO_STARTED__?console.warn("[enzuzo] more than one cookie banner was attempted to be loaded"):(function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports):"function"==typeof def&&def.amd?def("enzuzo-consent",["exports"],t):t((e=typeof globalThis<"u"?globalThis:e||self)["@enzuzo/consent-banner"]={})}(this,(function(e){"use strict";var t,n,o,i,a,s,c,r,l,d=Object.defineProperty,u=(e,t,n)=>((e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const p="enzuzo",f="cookiebar",g="__enzuzo_",m="ez",h="cookies",b="apiHost",y="analyticsPayload",v=`${p}.com`,z=`__${p}-${f}`,k=`/scripts/${f}`,w=`https://gvl.${p}.com/v3/`,C=`${p}-tc-string`,x=`${p}-custom-tc`,$=1e5,_=`${m}-cb-id`,A=`${m}-cb-cat`,S=`${m}-cb-desc`,E=`${S}-`,L=`${m}-type`,T="#cookie_banner",B=["cookie_banner","cookie-banner"],I="#do_not_sell",M=[`${g}manage_cookies`,"manage_cookies","manage-cookies"],R="#forget_consent",N={language:"en",product:"shopify",background:"#f8f8f8",textColor:"#5a5a5a",linkColor:"#006fc6",buttonBackgroundColor:"#1a1a1a",buttonBackgroundColorHover:"#000",buttonTextColor:"#fff",hidePoweredBy:!1,bannerStyle:{label:"bottom",display:"LABEL_BANNER_BOTTOM",class:"default"},managerIconStyle:{label:"bottom-left",display:"LABEL_BANNER_BOTTOM_LEFT",class:"default"},bannerSize:{label:"medium",display:"LABEL_BANNER_MEDIUM",class:"medium"},buttonStyle:{label:"default",display:"LABEL_BUTTON_DEFAULT",class:"default"},animateStyle:{label:"none",display:"LABEL_ANIMATE_NONE",class:"none"},shadowStyle:{label:"no-shadow",class:""},bannerMode:"opt-in",cssText:"",showCategoryServices:!0,managerAccordion:!0,hasCookieList:!1,usedByHierophant:!1,bannerRegions:[{worldwide:!0,type:"dontshow"},{area:"EU",type:"optin"},{country:"GB",type:"optin"},{country:"SA",type:"optin"},{country:"CH",type:"optin"},{country:"CA",state:"QC",type:"optin"},{country:"US",state:"CA",type:"optin"},{country:"US",state:"CO",type:"optout"},{country:"US",state:"CT",type:"optout"},{country:"US",state:"TX",type:"optout"},{country:"US",state:"VA",type:"optout"},{country:"US",state:"OR",type:"optout"},{country:"US",state:"MT",type:"optout"},{country:"US",state:"DE",type:"optout"},{country:"US",state:"NE",type:"optout"},{country:"US",state:"NH",type:"optout"},{country:"US",state:"NJ",type:"optout"},{country:"US",state:"MN",type:"optout"},{country:"US",state:"MD",type:"optout"},{country:"US",state:"KY",type:"optout"},{country:"US",state:"RI",type:"optout"},{country:"US",state:"TN",type:"optout"},{country:"US",state:"IN",type:"optout"},{country:"US",state:"IA",type:"optout"},{country:"US",state:"UT",type:"optout"}],bannerRegionsEuOnly:[{worldwide:!0,type:"dontshow"},{area:"EU",type:"optin"},{country:"GB",type:"optin"}]},O=["analytics","functional","marketing","preferences"],H="Enzuzo Consent Banner",P=`${H}: Unable to proxy logging.`,D=`data:image/svg+xml;base64,${btoa('')}`,F=e=>`\n padding: 2px 5px 2px;\n margin-right: 5px;\n font-weight: 400;\n color: #fff;\n background-color: ${e};\n `,j=e=>`border-radius: ${e?"4px":"0 4px 4px 0"};`,U={badges:{[H]:F("#00899A"),[`${H} (Error)`]:F("#C30000"),arguments:F("#007281"),build:F("#BB5100"),change:F("#0E8A00"),mount:F("#0059D1"),new:F("#0C7800"),old:F("#943636"),unmount:F("#5E5E5E"),value:F("#8A6F00")},bold:"font-weight: 700;",logo:`\n padding: 2px 5px 2px;\n color: #fff;\n background-color: #000;\n border-radius: 4px 0 0 4px;\n background-image: url(${D});\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n `,regular:"font-weight: 400;"};const V=window.__enzuzoConfig??{},G=e=>ie().get(e),q=e=>V[e],Z=navigator??{},W=window??{},Y=document??{};function K(e){let t,n="";return"object"==typeof e&&Object.entries(e).forEach((([e,t])=>{Number.parseInt(e)>=0&&(n+=t)})),n.length>0&&(e=n),"string"!=typeof e&&(e=""),t=(null==e?void 0:e.length)<=0||/^(http|https):\/\//iu.test(e)?e:e.startsWith("/")?e.replace(/^\/+/,"/"):`https://${e}`,t}function Q(e){return(null==e?void 0:e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent))??""}function X(){const{doNotTrack:e,external:t}=W,n="msTrackingProtectionEnabled",o=e||Z.doNotTrack||Z.msDoNotTrack||t&&n in t&&t[n]();return"1"===o||1===o||"yes"===o||"0"!==o&&0!==o&&"no"!==o&&null}const J=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","IS","LI","LV","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","EU","UK","GB"];function ee(e,t){try{return new Function(`return \`${e}\`;`).call(t)}catch(e){return $ez_d("fillTemplate error",e),""}}function te(e,t){if(t)for(const n of t)if(n.id===e&&n.value)try{return Ce(n.value)}catch{return null}return null}function ne(e){return!0===function(e){return!0===J.includes(e)}(e)?"EU":null}function oe(e){try{return W.localStorage[e]||""}catch{return""}}function ie(){var e;return new URLSearchParams((null==(e=W.location)?void 0:e.search)??"")}function ae(){return W.location}function se(e){return null!==Y.querySelector(`script[src="${e}"]`)}function ce(e,t=0,n=0,o=0){if(!e)return"";if(e.includes("rgb")){let[i,a,s,c]=e.replaceAll(" ","").replace("rgb(","").replace("rgba(","").replace(")","").split(",");return i=Number.parseInt(i,16)-t,a=Number.parseInt(a,16)-n,s=Number.parseInt(s,16)-o,`rgba(${i},${a},${s},${c||"1"})`}let i=e.replace("#","").toUpperCase();3===i.length&&(i=`${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}`);return`rgba(${Number.parseInt(i.substring(0,2),16)-t},${Number.parseInt(i.substring(2,4),16)-n},${Number.parseInt(i.substring(4,6),16)-o},1)`}function re(e){const t=ke("script");(function(e,t){var n;e.innerHTML=t;const o=e.getElementsByTagName("script"),i=[];for(let e=0;o.length>e;e++)i.push(o[e]);for(let e=0;i.length>e;e++){const t=i[e],o=ke("script");for(let e=0;e{for(const t of N.bannerRegions)if(Object.keys(t).every((n=>"type"===n||"type"!==n&&t[n]===e[n])))return!0;return!1},fe=e=>{const t=null!=$ez&&$ez.isSSR?[...q("groups")??[]]:[];if(!Array.isArray(t))return{regions:[]};let n;var o;(o=n||(n={}))[o.Unspecified=0]="Unspecified",o[o.Worldwide=1]="Worldwide",o[o.Area=2]="Area",o[o.Country=3]="Country",o[o.State=4]="State";let i=1,a={regions:[]};for(const n of t)for(const t of n.regions){if(t.country&&`${t.country}-${t.state}`==`${e.country}-${e.state}`){a=n;break}t.country&&!t.state&&t.country===e.country&&i<3?(a=n,i=3):t.area===e.area&&i<2?(a=n,i=2):t.worldwide&&i<1&&(a=n,i=1)}return a};function ge(e){return!0===["optin","optout","dontshow"].includes(e)}function me(e,t){const n={...e};return ue(e)&&ue(t)?(Object.keys(t).forEach((o=>{ue(t[o])?o in e?n[o]=me(e[o],t[o]):(n[o]=me(e[o],t[o]),Object.assign(n,{[o]:t[o]})):Object.assign(n,{[o]:t[o]})})),n):e}function he(e){return 0===Object.keys(e??{}).length}function be(e){let t=null;if("string"==typeof e){const[n,o]=e.includes("-")?e.split("-"):[e,""],i=[];i.push(n?n.toLowerCase():null),i.push(o?o.toUpperCase():null);const a=i.filter((e=>e)).join("-");t=a.length>0?a:null}return t}const ye=[{name:"Facebook Pixel",category:"marketing",shortName:"fbp",rules:[{extractor:"script_src",matcher:"regex",patterns:[/^(?:https?:)?\/\/connect\.facebook\.net\/signals\/config\/([0-9]+)/],onmatch:"match"},{extractor:"img_src",matcher:"regex",patterns:[/^(?:https?:)?\/\/www\.facebook\.com\/tr\?id=([0-9]+)/],onmatch:"match"}]},{name:"HubSpot",category:"marketing",shortName:"hubspot",rules:[{extractor:"script_src",matcher:"regex",patterns:[/\/\/js\.hs-scripts\.com\/([0-9]+).js/]}]}];function ve(e){["zh-tw","zh-hk","zh-hant-tw","zh-hant"].includes(e.toLowerCase())&&(e="zh-hk"===e.toLowerCase()?"zhtw-hk":"zhtw-tw");const[t,n]=e.split("-");return{language:t?t.toLowerCase():null,country:n?n.toUpperCase():null}}const ze={TOS:{checkBoxId:"check-agreement",id:"accept-tos",nameId:"checkout.tosLabel",to:"/apps/enzuzo/tos",validationMessageId:"checkout.tosAgreeMsgBeforeCheckout"},PRIVACY:{checkBoxId:"check-policy",id:"accept-privacy",nameId:"checkout.privacyLabel",to:"/apps/enzuzo/privacy",validationMessageId:"checkout.privacyAgreeMsgBeforeCheckout"}};function ke(e){return Y.createElement(e)}const we=e=>JSON.stringify(e),Ce=e=>JSON.parse(e),xe=e=>"true"===e||!0===e,$e=e=>"false"===e||!1===e,_e=e=>xe(e)||$e(e),Ae=e=>"true"===e||!0===e,Se={en:{"cookie.shopify":"Shopify uses cookies that enable basic functionality, which are essential for this website to work.","cookie.ga":"Google Analytics allow website owners to measure how users interact with content on their site.","cookie.gtm":"Google Tag Manager assists the website owners in deploying secure tracking tools.","cookie.fbp":"Facebook Pixels improves your experience by showing ads that are more relevant to you.","cookie.hubspot":"HubSpot uses a number of tracking cookies that aim to learn more about a user base in order to improve their experience.","cookie.enzuzo":"Enzuzo uses cookies that enable basic functionality, which are essential for this cookie banner to work.","checkout.agree":"I agree to the","checkout.tosLabel":"Terms and Conditions","checkout.privacyAgreeLabel":"","checkout.privacyLabel":"Privacy Policy","checkout.tosAgreeMsgBeforeCheckout":"Please agree to the terms and conditions to proceed to checkout.","checkout.privacyAgreeMsgBeforeCheckout":"Please agree to the privacy policy to proceed to checkout.","notification.accept":"Allow All","notification.ok":"OK","notification.confirm":"Save & Accept","notification.decline":"Decline","notification.dismiss":"Dismiss Banner","notification.gpcMessage":"We detected a Global Privacy Control signal from your web browser. You will automatically be opted-out of the use of non-essential services and cookies.","notification.message":"This website uses cookies to ensure you get the best experience on our website.","notification.message.523":'We use cookies to optimize your browsing experience for the purpose of personalizing and measuring the effectiveness of ads. By clicking "Allow All", you consent to our use of cookies.',"notification.policy":"Learn More ↗","notification.policy.523":"Privacy Policy ↗","notification.preferences":"Manage Cookies","notification.forget-consent":"Forget My Consent","notification.always-active":"Always Active","notification.cookieIcon":"Cookie Icon","notification.gpcInfoIcon":"Info Icon","preferences.managerIcon":"Cookie Manager Icon","preferences.description":"This website uses the following types of services. Learn more from our","preferences.empty":"This website does not use any services.","preferences.accept":"Allow All","preferences.reject":"Decline","preferences.close":"Close","preferences.toggleGroup":"Accordion Toggle Group","preferences.toggleOpen":"Accordion Toggle Open","preferences.toggleClose":"Accordion Toggle Close","preferences.companyLogo":"Company Logo","preferences.manager_poweredby":"${this.link}","preferences.manager_learnmore":"Learn more about ${this._a_learn}website compliance and data privacy","purposes.cookie-name":"Service","purposes.cookie-description":"Description","purposes.cookie-list-group":"Group","purposes.cookie-list-domain":"Domain","purposes.cookie-list-name":"Name","purposes.cookie-list-type":"Type","purposes.third-party":"Third Party","purposes.first-party":"First Party","purposes.analytics.description":"Analytics cookies serve to improve the performance and functionality of this website by collecting and reporting information anonymously.\n","purposes.analytics.name":"Analytics","purposes.functional.description":"Strictly Necessary cookies are absolutely necessary for core functions such as navigating the page or accessing secure areas. The website cannot function properly without these cookies.\n","purposes.functional.name":"Strictly Necessary","purposes.marketing.description":"Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.\n","purposes.marketing.name":"Marketing","purposes.preferences.description":"Preference cookies are used to remember settings and customizations that change the way the website behaves or looks.\n","purposes.preferences.name":"Preferences","manager.show":"Show Services","manager.hide":"Hide Services","manager.showCookies":"Show Cookies","manager.hideCookies":"Hide Cookies","manager.unavailable":"Description not available","preferences.learnMore":"Learn more from our","preferences.cookiePolicy":"Cookie Policy","preferences.cookiePreferences":"Cookie Preferences",toggle:"Toggle","gpc.tooltip":"Check GPC settings in your browser to change behaviour.","gpc.tooltipLink":"See here for more information",elementBlockTitle:"Content is blocked",elementBlockBody:"You denied the use of cookies or similar technologies for the purpose of {{purpose}}. To view this content, please update your consent preferences.",elementBlockButton:"Update","tcf.notification.messageVendorsLink":"our ${this.numVendors} partners","tcf.notification.message":"We and ${this.vendorsLink} may use, with your consent, cookies or similar technologies to store and process your personal data, such as unique identifiers and your visits to this website. Your consent applies to this website. Some vendors may collect your data based on legitimate interest without your consent. You may withdraw your consent or object to any legitimate interests at any time by clicking on Manage Preferences.","tcf.notification.resurface":"To withdraw your consent or manage your preferences after this banner closes, you can re-open your preferences by clicking on the floating cookie icon.","tcf.notification.iconTopLeft":"top left of the page","tcf.notification.iconTopRight":"top right of the page","tcf.notification.iconBottomLeft":"bottom left of the page","tcf.notification.iconBottomRight":"bottom right of the page","tcf.notification.purposeIntro":"Our partners collect your information for the following purposes: ","tcf.notification.specialFeaturesIntro":"They also use the following special features: ","tcf.notification.preferences":"Manage preferences","tcf.manager.legInt":"Legitimate Interests","tcf.manager.consent":"Consent","tcf.manager.purposes":"Purposes","tcf.manager.specialFeatures":"Special Features","tcf.manager.features":"Features","tcf.manager.dataCategories":"Personal Data Categories","tcf.manager.usesCookies":"This vendor uses cookies.","tcf.manager.cookieMaxAge":"Max age in days:","tcf.manager.cookieRefresh":"Storage duration may be refreshed.","tcf.manager.nonCookieAccess":"This vendor uses non-cookie storage.","tcf.manager.vendorPrivacy":"Privacy Policy","tcf.manager.vendorLegInt":"Legitimate Interest Information","tcf.manager.vendorInfo":"More info","tcf.manager.retention":"Retention in days: ","tcf.manager.servicesTab":"Cookies","tcf.manager.purposesTab":"TCF Purposes & Features","tcf.manager.vendorsTab":"TCF Vendors","tcf.manager.vendors":"Vendor","tcf.manager.purposeNumVendors":"Vendors (consent):","tcf.manager.purposeNumLegInts":"Vendors (legitimate interests):","tcf.preferences.title":"Privacy Preferences","tcf.preferences.description":"You may consent for the following purposes, special features, and vendors, and object to legitimate interest for certain purposes and vendors. You can also consent for other non-TCF services. Learn more from our","preferences.gcmGooglePolicyMessage":"For more information on how Google processes your data, visit the following link:","preferences.gcmGooglePolicyLinkText":"Google Privacy Policy","donotsell.title":"Do not sell or share my personal information","donotsell.description":"

As described in our Privacy Policy, we collect personal information from your interactions with us and our website, including through cookies and similar technologies. We may also share this personal information with third parties, including advertising partners. We do this in order to show you ads on other websites that are more relevant to your interests and for other reasons outlined in our privacy policy.

Sharing of personal information for targeted advertising based on your interaction on different websites may be considered “sales”, “sharing”, or “targeted advertising” under certain U.S. state privacy laws. Depending on where you live, you may have the right to opt out of these activities. If you would like to exercise this opt-out right, please follow the instructions below.

If you visit our website with the Global Privacy Control opt-out preference signal enabled, depending on where you are, we will treat this as a request to opt-out of activity that may be considered a “sale” or “sharing” of personal information or other uses that may be considered targeted advertising for the device and browser you used to visit our website.

By clicking “opt out”, the browser on this device will be opted out of sharing personal data.

","donotsell.optoutSuccess":"You have opted out on this browser.","donotsell.optout":"Opt Out"}},Ee=async e=>await(await fetch(`https://${Le.apiHost??ae().hostname}/__${p}-${f}-locale.${e??"en"}.json`)).json(),Le={apiHost:null,vendors:null,cookieList:[],customer:null,consentQueue:null,forgotServerSideConsent:!1,gcmGooglePolicyEnabled:!1,gpcCbRan:!1,prefix:"cookies",cookieAttributes:{expires:365},domains:[],cookies:{},lang:"en",fallbackLang:"en",type:"opt-in",supportDoNotTrack:!1,services:[],geo:{},gpc:{enabled:!1,banner:!1},activeRegion:null,regions:N.bannerRegions,gcmEnabled:!1,notification:{cookiePrivacyURL:"",hidden:!1,position:"bottom-center-floating",animateStyle:"slide",shadowStyle:"enzuzo-shadow",size:"medium",acceptButton:"default",usingOld:!1,showManager:!0,acceptMode:!0,showDecline:!0,showAccept:!0,showLearnMore:!0,showCookieIcon:!1,showCloseButton:!0,reverseButtonOrder:!1,policyUrl:"/cookie-policy",noConsentModeEnabled:!1,cssText:"",styles:{allowButtonBackgroundColor:"",allowButtonBackgroundColorHover:"",allowButtonBorderColor:"",allowButtonTextColor:"",background:"#FFFFFF",bannerTop:!1,border:"",buttonBackgroundColor:"#222222",buttonBackgroundColorHover:"#1A1A1A",buttonTextColor:"#FFFFFF",declineButtonBackgroundColor:"",declineButtonBackgroundColorHover:"",declineButtonBorderColor:"",declineButtonTextColor:"",linkColor:"#1082EC",textColor:"#222"},bannerTop:!1,managerIcon:!1,iconPosition:"bottom-left"},preferences:{logo:"",styles:{acceptSelectedBackground:"",acceptSelectedBackgroundHover:"",acceptSelectedBorder:"",acceptSelectedText:"",allowBackground:"",allowBackgroundHover:"",allowBorder:"",allowText:"",background:"",border:"",declineBackground:"",declineBackgroundHover:"",declineBorder:"",declineText:"",link:"",textColor:"#222",toggleBackground:"#FFFFFF",toggleBorder:"#F3F2F2"},hidePoweredBy:!1,manager_poweredby:"",manager_learnmore:""},translations:(Te=Se,Ce(we(Te))),additionalLanguages:[],purposes:["functional"],containedServiceCategories:[],integrations:[],majorIntegrations:[],userRules:[],dismissAcceptsAll:!1,enforceCookieBar:!1,preventScroll:!1,categoryInitializationCompleted:!1,showCategoryServices:!0,managerAccordion:!0,hasCookieList:!1,categoriesToggle:{analytics:!1,marketing:!1,preferences:!1},autoBlocking:"false",autoBlockingCookies:"allow",usedByHierophant:!1,declineAll:!0,acceptAll:!1,backlink:"",customerVersion:0,customerProduct:"",customerData:null,consent:null,api:{failCount_cca:0,failCount_tpc:0},tcfApi:null,autoGtmConsent:!1,refreshOnDeclineOptOut:!1};var Te;function Be(){const e=Oe();return"optout"===e||"dontshow"===e}function Ie(e,t,n){var o,i;const a=[];null==n||n.split(",").map((e=>e.replace(/;.*$/,""))).map((e=>e.trim())).map((e=>be(e))),null!=(o=window.Shopify)&&o.locale&&a.push(be(null==(i=window.Shopify)?void 0:i.locale));const s=Y.documentElement.lang;s&&a.push(be(s)),t&&a.push(be(t));return ve(a.find((e=>e))||e).language||e}function Me(){const e=Pe(Ne());let t=!1;for(const n in e)if(Object.keys(e[n]).length>0){t=!0;break}return t}async function Re(e,t){const n={...t};for(const e in n)n[e].text=Ue(Ce(n[e].text??"{}"));e.forEach((e=>{if(e.enabled)if("page"===e.type)if(e.locationRegex&&function(e){return new RegExp(e).test(ae().pathname)}(e.locationRegex)){const t=ze[e.scriptName],o="PRIVACY"===e.scriptName?n.privacy:n.tos;void 0!==t&&function(e,t){var n;const{checkBoxId:o,id:i,nameId:a,to:s,validationMessageId:c}=e,r=ke("div");let l=null,d=!1;r.id=i,r.innerHTML=`\n

\n \n  \n \n

\n `;const u=Y.getElementsByName("checkout");for(const e of u.values())"submit"===e.getAttribute("type")&&(l=e);const p=null==(n=null==l?void 0:l.parentNode)?void 0:n.parentNode;null==p||p.insertBefore(r,p.firstChild);const f=Y.getElementById(o);null==f||f.addEventListener("change",(function(){d=!!this.checked})),null==l||l.addEventListener("click",(e=>(!1===d&&(alert(je(c)),e.preventDefault()),d)))}(t,o)}else e.location&&e.location===ae().pathname&&re(e.script);else $ez_d("Unknown webpage rule",e)}))}function Ne(){return Le.purposes??["functional"]}function Oe(){var e;const t=G(`${g}banner_mode`),n=q("bannerMode"),o=null==(e=Le.activeRegion)?void 0:e.type;for(const e of[t,n])if(e){if(ge(e))return e;if("tcf"===e)return"optin"}return o&&ge(o)?o:("tcf"===o||($ez_d("Invalid banner mode:",o),$ez_d("Defaulting to `optin` banner mode.")),"optin")}function He(e){var t,n;let o=!0;null!=$ez&&$ez.cookies&&(o=$ez.cookies.state.read,$ez.cookies.state.read=!0);const i=e;if("boolean"==typeof(null==(t=null==$ez?void 0:$ez.consents)?void 0:t[e])&&!0===(null==(n=Le.consent)?void 0:n.enabled))return null!=$ez&&$ez.consents[e]?"true":"false";let a;if(Y.cookie&&""!==Y.cookie){const t=Y.cookie.split(";");for(let n=0;nt.name.en===e))[0]&&(null!=Le&&Le.majorIntegrations.includes(t[e]??"")||(n[o]=n[o].filter((t=>t.name.en!==e))));for(const e of Le.integrations){if(n[e.category]||(n[e.category]=[]),!e.name&&!e.desc)continue;const t={};e.name&&"object"==typeof e.name?Object.entries(e.name).forEach((([e,n])=>{"string"==typeof n&&Number.isNaN(Number.parseInt(e,10))&&(t[e]=n)})):t[Le.lang]=e.name??"";const o={};e.desc&&"object"==typeof e.desc?Object.entries(e.desc).forEach((([e,t])=>{"string"==typeof t&&Number.isNaN(Number.parseInt(e,10))&&(o[e]=t)})):o[Le.lang]=e.desc??"",n[e.category].push({name:{...t},desc:{...o}})}return n}(t);(null!=Le&&Le.usedByHierophant?"shopify"!==(null==Le?void 0:Le.customerProduct):void 0===window.Shopify||"object"!=typeof window.Shopify)&&(null==(n=o.functional)||delete n.Shopify);for(const t in o)e.includes(t)||delete o[t];return o}function De(e){var t,n;try{if(null!=Le&&Le.usedByHierophant&&localStorage.lang)return(null==(t=ve(localStorage.lang.replaceAll('"',"")))?void 0:t.language)||""}catch{}return(null==(n=ve(e))?void 0:n.language)||""}function Fe(e){var t,n;const o=localStorage.getItem(`${p}_feature_${e}`);let i=!1;return i=null!==o?"false"!==o:(null==(n=null==(t=Le.customer??Le.customerData)?void 0:t.features)?void 0:n.some((({name:t})=>t===e)))??!1,i}function je(e){var t,n,o,i;let a=(null==(t=window.Shopify)?void 0:t.locale)||(null==Le?void 0:Le.lang);null!=Le&&Le.usedByHierophant&&localStorage.lang&&(a=localStorage.lang),a=a.replaceAll('"',"");let s=null==(n=null==Le?void 0:Le.translations[a])?void 0:n[e];if(s)return s;const c=De(a);return s=null==(o=null==Le?void 0:Le.translations[c])?void 0:o[e],s||(null==(i=null==Le?void 0:Le.translations[null==Le?void 0:Le.fallbackLang])?void 0:i[e])||""}function Ue(e,t){var n;let o="";if(!e)return o;return o=e[t||(null==(n=window.Shopify)?void 0:n.locale)||(null==Le?void 0:Le.lang)||"en"],o}function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ge={exports:{}};!function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,n,o=[],i=window,a=i;a;){try{if(a.frames.__tcfapiLocator){e=a;break}}catch{}if(a===i.top)break;a=a.parent}e||(function e(){var t=i.document,n=!!i.frames.__tcfapiLocator;if(!n)if(t.body){var o=t.createElement("iframe");o.style.cssText="display:none",o.name="__tcfapiLocator",t.body.appendChild(o)}else setTimeout(e,5);return!n}(),i.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),i=0;i3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(n=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):o.push(t)},i.addEventListener("message",(function(e){var n="string"==typeof e.data,o={};if(n)try{o=JSON.parse(e.data)}catch{}else o=e.data;var i="object"===t(o)&&null!==o?o.__tcfapiCall:null;i&&window.__tcfapi(i.command,i.version,(function(t,o){var a={__tcfapiReturn:{returnValue:t,success:o,callId:i.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(n?JSON.stringify(a):a,"*")}),i.parameter)}),!1))}}(Ge);const qe=Ve(Ge.exports);class Ze{constructor(e,t,n){u(this,"tcfCmpApi"),u(this,"tcfCoreApi"),u(this,"cmpApi"),u(this,"vendorList"),u(this,"tcModel"),u(this,"reconsentNeeded",!1),u(this,"loadTcModel",(()=>{const e=sn.get(C),t=sn.get(x);if(t)try{const e=JSON.parse(atob(decodeURIComponent(t)));Le.customVendorsConsent=e}catch(e){Le.customVendorsConsent={consents:[],legitInterests:[]},$ez_d(String(e))}if(e){const t=this.tcfCoreApi.TCString.decode(e,this.tcModel);if(this.vendorList.tcfPolicyVersion===t.policyVersion)return this.tcModel=t,e;$ez_d(`TCF policy mismatch. Stored: ${t.policyVersion} - current: ${t.policyVersion}. Reconsent required.`),this.reconsentNeeded=!0}return this.tcModel.cmpId=418,this.tcModel.cmpVersion=1,this.tcModel.consentScreen=0,this.tcModel.vendorLegitimateInterests.setAll(this.vendorList.vendors),this.tcModel.purposeLegitimateInterests.setAll(this.vendorList.purposes),this.tcfCoreApi.TCString.encode(this.tcModel)})),this.tcfCmpApi=e,this.tcfCoreApi=t,this.cmpApi=new this.tcfCmpApi.CmpApi(418,1,!1,{getTCData:(e,t,n)=>{"object"==typeof t&&(t.enableAdvertiserConsentMode=!0),e(t,n)}}),this.vendorList=n,this.tcModel=new this.tcfCoreApi.TCModel(n);const o=this.loadTcModel();this.cmpApi.update(o,!1)}static async init(e){var t;const[n,o]=await Promise.all([import("https://cdn.jsdelivr.net/npm/@iabtechlabtcf/cmpapi@1.5.15/+esm"),import("https://cdn.jsdelivr.net/npm/@iabtechlabtcf/core@1.5.15/+esm")]);o.GVL.baseUrl=w;const i=new o.GVL,a=e.toUpperCase(),s=o.GVL.consentLanguages.has(a);return s||$ez_d("Unsupported TCF locale:",a),"EN"!==a&&s&&($ez_d("Changing TCF locale:",a),await i.changeLanguage(a)),await i.readyPromise,(null==(t=Le.vendors)?void 0:t.length)>0?i.narrowVendorsTo(Array.from(Le.vendors.flatMap((e=>e.id)))):i.narrowVendorsTo([]),new Ze(n,o,i)}setInVector(e,t,n){t?n.set(e):n.unset(e)}applyConsentToCategory(e,t,n,o){for(const i of t)"boolean"==typeof e.consents?this.setInVector(+i,e.consents,n):this.setInVector(+i,e.consents[i],n),o&&e.legitInterests&&("boolean"==typeof e.legitInterests?this.setInVector(+i,e.legitInterests,o):this.setInVector(+i,e.legitInterests[i],o));if(n.maxId>$||o&&o.maxId>$){const e=Le.customVendors.map((e=>e.id));n.unset(e),null==o||o.unset(e)}}getCustomVendorConsentCookie(e){var t;const n=new Set(null==(t=Le.customVendors)?void 0:t.map((e=>e.id)))??[],o=e=>e?Object.entries(e).filter((([e,t])=>n.has(+e)&&t)).map((([e])=>+e)):[],i="boolean"==typeof e.consents?e.consents?[...n]:[]:o(e.consents),a="boolean"==typeof e.legitInterests?e.legitInterests?[...n]:[]:o(e.legitInterests);return Le.customVendorsConsent={consents:i,legitInterests:a},encodeURIComponent(btoa(JSON.stringify(Le.customVendorsConsent)))}arrayToVector(e,t){const n=e;return null==t||t.forEach((e=>n.set(e))),n}setConsentString(e,t,n){this.tcModel.consentScreen=e;let o="";n&&(this.applyConsentToCategory(n.purposes,Object.keys(this.vendorList.purposes),this.tcModel.purposeConsents,this.tcModel.purposeLegitimateInterests),this.applyConsentToCategory(n.vendors,Object.keys(this.vendorList.vendors),this.tcModel.vendorConsents,this.tcModel.vendorLegitimateInterests),this.applyConsentToCategory(n.specialFeatures,Object.keys(this.vendorList.specialFeatures),this.tcModel.specialFeatureOptins),Le.customVendors&&(o=this.getCustomVendorConsentCookie(n.vendors)));const i=this.tcfCoreApi.TCString.encode(this.tcModel);$ez_d("TCF consent string set. UI visible:",t),this.cmpApi.update(i,t??!1),sn.setFirstParty(C,i,{expires:365}),o&&sn.setFirstParty(x,o,{expires:365})}onBannerShow(){}onBannerAccept(){this.setConsentString(2,!1,{purposes:{consents:!0,legitInterests:!0},vendors:{consents:!0,legitInterests:!0},specialFeatures:{consents:!0}})}onBannerDecline(){this.setConsentString(2,!1,{purposes:{consents:!1,legitInterests:!0},vendors:{consents:!1,legitInterests:!0},specialFeatures:{consents:!1}})}onManagerOpen(){}onManagerAcceptSelected(e){this.setConsentString(1,!1,e)}onManagerAcceptAll(){this.setConsentString(1,!1,{purposes:{consents:!0,legitInterests:!0},vendors:{consents:!0,legitInterests:!0},specialFeatures:{consents:!0}})}onManagerDeclineAll(){this.setConsentString(1,!1,{purposes:{consents:!1,legitInterests:!0},vendors:{consents:!1,legitInterests:!0},specialFeatures:{consents:!1}})}getStacks(){return this.vendorList.stacks}getPurposesConsents(){return this.tcModel.purposeConsents}getPurposesLegInts(){return this.tcModel.purposeLegitimateInterests}getPurposeNumVendors(e){return Object.keys(this.vendorList.getVendorsWithConsentPurpose(e)).length}getPurposeNumLegInts(e){return Object.keys(this.vendorList.getVendorsWithLegIntPurpose(e)).length}doesPurposeHaveLegInts(e){return[2,7,8,9,10,11].includes(e)}getPurposes(){return this.vendorList.purposes}getOnlyUsedPurposes(){const e={};for(const t of Object.keys(this.vendorList.purposes))this.getPurposeNumVendors(+t)>0&&void 0!==this.vendorList.purposes[t]&&(e[t]=this.vendorList.purposes[t]);return e}getVendorConsents(){var e;return this.arrayToVector(this.tcModel.vendorConsents,null==(e=Le.customVendorsConsent)?void 0:e.consents)}getVendorLegInts(){var e;return this.arrayToVector(this.tcModel.vendorLegitimateInterests,null==(e=Le.customVendorsConsent)?void 0:e.legitInterests)}doesVendorHaveLegInts(e){return this.vendorList.vendors[e]?this.vendorList.vendors[e].legIntPurposes.length>0:null}getVendors(){return this.vendorList.vendors}getPurpose(e){return this.vendorList.purposes[e]}getFeature(e){return this.vendorList.features[e]}getNumVendors(){return this.vendorList.vendorIds.size}getSpecialFeatures(){return this.vendorList.specialFeatures}getSpecialFeature(e){return this.vendorList.specialFeatures[e]}getSpecialFeatureConsents(){return this.tcModel.specialFeatureOptins}getDataDeclaration(e){if(this.vendorList.dataCategories)return this.vendorList.dataCategories[e]}isReconsentNeeded(){return this.reconsentNeeded}}const We=e=>{if(oe(`${p}_override_tcf`))return!0;const t=G(`${g}banner_mode`);if(t)return"tcf"===t;const n=q("bannerMode");if(n)return"tcf"===n;const o=fe(Le.geo);return void 0!==o.mode?"tcf"===o.mode:function(){var e;const t=G(`${g}banner_mode`),n=q("bannerMode");for(const e of[t,n])if(e)return"tcf"===e;return"tcf"===(null==(e=Le.activeRegion)?void 0:e.type)}()||!!te("tcfEnabled",e)},Ye=e=>null!==e.tcfApi,Ke=444,Qe=502,Xe=523,Je="tcf.notification.",et=e=>{var t,n,o,i;if(!Le.tcfApi)return;const a=ee(je(`${Je}messageVendorsLink`),{numVendors:(null==(t=Le.vendors)?void 0:t.length)??(null==(n=null==Le?void 0:Le.tcfApi)?void 0:n.getNumVendors())}),s=`${a}`,c=ee(je(`${Je}message`),{vendorsLink:s}),r=(e=>{const t=`${Je}icon`;switch(e){case"top-left":return je(`${t}TopLeft`);case"top-right":return je(`${t}TopRight`);case"bottom-left":return je(`${t}BottomLeft`);case"bottom-right":return je(`${t}BottomRight`)}})(e),l=ee(je(`${Je}resurface`),{iconPosition:r}),d=Object.values(null==(o=null==Le?void 0:Le.tcfApi)?void 0:o.getOnlyUsedPurposes()).map((e=>e.name)).join(", ");return[c,l,`${je(`${Je}purposeIntro`)+(d||"None")}.`,`${je(`${Je}specialFeaturesIntro`)+Object.values(null==(i=null==Le?void 0:Le.tcfApi)?void 0:i.getSpecialFeatures()).map((e=>e.name)).join(", ")}.`].join("

")};class tt{static getBannerTextFromHierophant(){window.__enzuzo=window.__enzuzo??{},window.__enzuzo.hierophantTcfBannerText=async e=>{const t=e.replaceAll('"',"");localStorage.lang=t,$ez_d("Dynamically loading translations for ",t);try{Le.translations[t]=await Ee(t)}catch(e){$ez_d("Error: Loading translations for",t,e)}return et("bottom-left")}}static create(){var e,t;if(!Y.getElementById(`${p}_cb_css`)){const e=ke("style");e.type="text/css",e.setAttribute(`${m}-style`,"true"),e.id=`${p}_cb_css`,e.appendChild(Y.createTextNode((e=>`\n body {\n --${m}-body-lock-z-index: ${e.bannerTop?"2147483600":"2400"};\n }\n\n .${m}-consent {\n --${m}-banner-text-color: ${e.styles.textColor};\n --${m}-banner-link-color: ${e.styles.linkColor};\n --${m}-banner-background-color: ${e.styles.background};\n --${m}-banner-border: ${e.styles.border?`1px solid ${e.styles.border}`:""};\n --${m}-banner-border-color: ${e.styles.border};\n\n --${m}-banner-allow-all-text-color: ${e.styles.allowButtonTextColor||e.styles.buttonTextColor};\n --${m}-banner-allow-all-background-color: ${e.styles.allowButtonBackgroundColor||e.styles.buttonBackgroundColor};\n --${m}-banner-allow-all-background-color-hover: ${e.styles.allowButtonBackgroundColorHover||e.styles.buttonBackgroundColorHover};\n --${m}-banner-allow-all-border-color: ${e.styles.allowButtonBorderColor};\n\n --${m}-banner-decline-text-color: ${e.styles.declineButtonTextColor||e.styles.buttonTextColor};\n --${m}-banner-decline-background-color: ${e.styles.declineButtonBackgroundColor||e.styles.buttonBackgroundColor};\n --${m}-banner-decline-background-color-hover: ${e.styles.declineButtonBackgroundColorHover||e.styles.buttonBackgroundColorHover};\n --${m}-banner-decline-border-color: ${e.styles.declineButtonBorderColor};\n }\n `)(Le.notification))),Y.head.appendChild(e)}if((null==(e=Le.notification.cssText)?void 0:e.length)>0&&!Y.getElementById(`${p}_cb_custom_css`)){const e=ke("style");e.type="text/css",e.id=`${p}_cb_custom_css`,e.appendChild(Y.createTextNode(Le.notification.cssText)),Y.head.appendChild(e)}if(!Y.getElementById(`${m}-cookie-notification`)){const e=ke("div");e.className=`${m}-consent`;const n=Ye(Le);e.innerHTML=(e=>{tt.getBannerTextFromHierophant(),e.showTcfUi&&!Le.tcfApi&&(Le.tcfApi=e.tcfApi);const{options:t}=e,n=``,o=t.showDecline?``:"",i=t.showAccept?``:"";return`\n ${e.showManagerIcon?n:""}\n\n \n `})({options:Le.notification,showTcfUi:n,enforceCookieBar:Le.enforceCookieBar??!1,notificationText:n?et(Le.notification.iconPosition)??"":Le.customerVersion>=Xe?je("notification.message.523"):je("notification.message"),preferencesText:je(n?`${Je}preferences`:"notification.preferences"),showManagerIcon:Le.notification.managerIcon??!1,learnMoreText:Le.customerVersion>=Xe?je("notification.policy.523"):je("notification.policy"),learnMoreUrl:K(Le.notification.policyUrl),acceptText:je("notification.accept"),declineText:je("notification.decline"),gpcEnabled:null==(t=Le.gpc)?void 0:t.enabled,gpcText:je("notification.gpcMessage"),dismissText:je("notification.dismiss"),infoIconText:je("notification.gpcInfoIcon"),cookieIconText:je("notification.cookieIcon"),cookieManagerIconText:je("preferences.managerIcon"),gpcOkText:je("notification.ok")}),Y.body.appendChild(e)}}}const nt=new class{constructor(){u(this,"counter",0),u(this,"subscriptions",{})}emit(e,t){if(void 0!==this.subscriptions[e])for(const n of Object.keys(this.subscriptions[e]))this.subscriptions[e][n](t)}on(e,t){this.counter+=1;const n=this.counter;return void 0===this.subscriptions[e]&&(this.subscriptions[e]={}),this.subscriptions[e][n]=t,{unsubscribe:()=>{var t,o;null!=(o=null==(t=this.subscriptions)?void 0:t[e])&&o[n]&&delete this.subscriptions[e][n]}}}},ot=()=>{Le.lastAction="page-view",on("cookies-functional","true")};class it{constructor(e){u(this,"cookieManager"),u(this,"cookieNotification",null),u(this,"cookieManagerNotification",null),u(this,"cookiesAccept",null),u(this,"cookiesDecline",null),u(this,"cookiesDismiss",null),u(this,"cookiesOK",null),u(this,"listenerAttached",!1),u(this,"urlParams",ie()),this.cookieManager=e.cookieManager}acceptAll(e){var t,n;window.__enzuzoApi.control.acceptAll(e),this.showCookieManagerButton();const{body:o}=Y;null!=(t=o.classList)&&t.contains(`${m}-body-lock`)&&(null==(n=o.classList)||n.remove(`${m}-body-lock`,`${m}-no-scroll`))}declineAll(e){var t,n;const{body:o}=Y,i=()=>this.declineAll(e);o?(window.removeEventListener("DOMContentLoaded",i),window.__enzuzoApi.control.declineAll(e),Le.gpc.enabled||this.showCookieManagerButton(),null!=(t=o.classList)&&t.contains(`${m}-body-lock`)&&(null==(n=o.classList)||n.remove(`${m}-body-lock`,`${m}-no-scroll`))):window.addEventListener("DOMContentLoaded",i)}getBannerTextFromHierophant(){tt.getBannerTextFromHierophant()}init(e=!1){var t,n,o,i,a,s,c,r,l;const{body:d}=Y;this.cookieNotification=Y.getElementById(`${m}-cookie-notification`),this.cookieManagerNotification=Y.getElementById(`${m}-cookie-manager-button`),(!this.cookieNotification||!this.cookieManagerNotification)&&(tt.create(),this.cookieNotification=Y.getElementById(`${m}-cookie-notification`),this.cookieManagerNotification=Y.getElementById(`${m}-cookie-manager-button`)),null==(t=this.cookieManagerNotification)||t.addEventListener("click",(()=>nt.emit("openCookieManager"))),this.cookiesOK=Y.getElementById(`${m}-cookie-notification__ok`),this.cookiesAccept=Y.getElementById(`${m}-cookie-notification__accept`),this.cookiesDecline=Y.getElementById(`${m}-cookie-notification__decline`),this.cookiesDismiss=Y.getElementById("close-notification"),(!Le.notification.noConsentModeEnabled&&this.cookieNotification&&!this.cookieManager.hasAllCookiesSet()&&!Le.gpc.enabled||null!=(n=Le.tcfApi)&&n.isReconsentNeeded())&&this.showCookieNotification(),Le.notification.noConsentModeEnabled&&this.cookieManager.enableAllCookies({interactive:!1}),Le.gpc.enabled&&"dontshow"!==Oe()&&(Le.gpc.banner&&gn.shouldShowBanner()&&this.showCookieNotification(),gn.onlyShowBannerOnce(Le.gpc.bannerOnce)),null==(o=this.cookiesOK)||o.addEventListener("click",(e=>{var t,n;e.preventDefault(),this.hideCookieNotification(),this.showCookieManagerButton(),null!=(t=d.classList)&&t.contains(`${m}-body-lock`)&&(null==(n=d.classList)||n.remove(`${m}-body-lock`,`${m}-no-scroll`))}));const u=()=>{var e,t;window.__enzuzoApi.control.acceptAll({interactive:!0}),this.hideCookieNotification(),this.showCookieManagerButton(),null!=(e=d.classList)&&e.contains(`${m}-body-lock`)&&(null==(t=d.classList)||t.remove(`${m}-body-lock`,`${m}-no-scroll`))},p=()=>{if(Le.dismissAcceptsAll)u(),nt.emit("close-banner",{interactive:!0});else{Le.lastAction="close-banner",nt.emit("close-banner",{interactive:!0}),on("cookies-functional","true");const e=Y.getElementById(`${m}-cookie-notification`);e&&(e.style.display="none")}},f=()=>{var e,t;window.__enzuzoApi.control.declineAll({interactive:!0}),this.hideCookieNotification(),this.showCookieManagerButton(),null!=(e=d.classList)&&e.contains(`${m}-body-lock`)&&(null==(t=d.classList)||t.remove(`${m}-body-lock`,`${m}-no-scroll`))},g=Y.getElementById("notificationManagerLink");null==g||g.addEventListener("click",(e=>{var t,n,o;e.preventDefault(),window.__enzuzoApi.prefCenter.show(),null==(o=null==(n=null==(t=window.__enzuzoConfig)?void 0:t.callbacks)?void 0:n.prefCenter)||o.call(n)}));const h=null!=$ez&&$ez.isSSR&&Fe("FEATURE_BANNER_APIV2")?null==(a=null==(i=fe(Le.activeRegion).appearance)?void 0:i.banner)?void 0:a.buttons:void 0;null==(s=this.cookiesAccept)||s.addEventListener("click",(e=>{var t;if(e.preventDefault(),Le.gpc.enabled)u();else switch(null==(t=null==h?void 0:h.second)?void 0:t.action){case"decline":f();break;case"dismiss":p();break;default:u()}})),null==(c=this.cookiesDismiss)||c.addEventListener("click",(e=>{var t,n;if(e.preventDefault(),!Le.gpc.enabled||Le.dismissAcceptsAll){if(Le.dismissAcceptsAll&&(null==(t=null==h?void 0:h.dismiss)||!t.action))return u(),void nt.emit("close-banner",{interactive:!0});switch(null==(n=null==h?void 0:h.dismiss)?void 0:n.action){case"decline":f();break;case"accept-all":u();break;default:p()}}else p()})),null==(r=this.cookiesDecline)||r.addEventListener("click",(e=>{var t;if(e.preventDefault(),Le.gpc.enabled)f();else switch(null==(t=null==h?void 0:h.first)?void 0:t.action){case"dismiss":p();break;case"accept-all":u();break;default:f()}})),this.cookieManager.hasAllCookiesSet()&&!Le.gpc.enabled&&this.showCookieManagerButton(),"dontshow"===(null==(l=Le.activeRegion)?void 0:l.type)&&this.showCookieManagerButton();this.listenerAttached||(window.addEventListener("hashchange",(()=>{ae().hash.replaceAll("-","_")===T&&this.showCookieNotification(),ae().hash.replaceAll("-","_")===I&&(this.declineAll({interactive:!0}),this.hideCookieNotification(),this.showCookieManagerButton())})),this.listenerAttached=!0),(ae().hash.replaceAll("-","_")===T||B.some((e=>"string"==typeof this.urlParams.get(e))))&&this.showCookieNotification(),"dontshow"===Oe()&&this.hideCookieNotification(),this.isCookieNotificationVisible()?this.hideCookieManagerButton():this.showCookieManagerButton(),e||ot(),window.addEventListener("locationchange",(()=>{Le.spa_timer=setTimeout((()=>{clearTimeout(Le.spa_timer)}),60)}))}showCookieNotification(){var e;this.cookieNotification&&(this.cookieNotification.style.display=this.cookieNotification.dataset.display||"flex",this.cookieNotification.classList.remove("hv-notification--hidden"),null==(e=Le.tcfApi)||e.onBannerShow())}hideCookieNotification(){this.cookieNotification&&(this.cookieNotification.style.display="none")}isCookieNotificationVisible(){var e,t;return"none"!==(null==(t=null==(e=this.cookieNotification)?void 0:e.style)?void 0:t.display)}showCookieManagerButton(){this.cookieManagerNotification&&!0===Le.notification.managerIcon&&(this.cookieManagerNotification.style.display="flex")}hideCookieManagerButton(){this.cookieManagerNotification&&"dontshow"!==Oe()&&(this.cookieManagerNotification.style.display="none")}}const at=class e{constructor(e,t){u(this,"acceptAll"),u(this,"acceptSelected"),u(this,"decline"),u(this,"dismiss"),u(this,"doNotSell"),u(this,"initCb"),this.acceptAll=this.getCallback("acceptAll",e,t),this.acceptSelected=this.getCallback("acceptSelected",e,t),this.decline=this.getCallback("decline",e,t),this.dismiss=this.getCallback("dismiss",e,t),this.doNotSell=this.getCallback("doNotSell",e,t),this.initCb=this.getCallback("init",e,t)}getCallback(e,t,n){var o;return(null==(o=null==t?void 0:t.callbacks)?void 0:o[e])||(()=>{})}static onAcceptAll(t,n){var o;null==(o=e.instance)||o.acceptAll(t,n)}static onAcceptSelected(t,n){var o;null==(o=e.instance)||o.acceptSelected(t,n)}static onDecline(t,n){var o;null==(o=e.instance)||o.decline(t,n)}static onDismiss(t,n){var o;null==(o=e.instance)||o.dismiss(t,n)}static onDoNotSell(t,n){var o;null==(o=e.instance)||o.doNotSell(t,n)}static onInit(t,n){var o;null==(o=e.instance)||o.initCb(t,n)}static init(t,n){e.instance=new e(t,n)}};u(at,"instance");let st=at;function ct(){var e,t;if(null!=(e=window.__enzuzo)&&e.url){const e=document.createElement("script");return e.src=null==(t=window.__enzuzo)?void 0:t.url,e}return[...Y.querySelectorAll("script")??[]].filter((function(e){var t;const{src:n}=e??{},o=[z,k],i=[v,"localhost"];return window.Shopify&&null!=(t=window.Shopify)&&t.shop&&i.push(window.Shopify.shop),!0===i.some((e=>null==n?void 0:n.includes(e)))&&!0===o.some((e=>null==n?void 0:n.includes(e)))?e:null})).at(0)??null}function rt(){const e=ct();let t=null;return null!==e&&(t=new URL(e.src).searchParams),t}const lt="https://business.safety.google/",dt={ar:`${lt}privacy`,bg:`${lt}intl/bg/privacy/`,cs:`${lt}intl/cs/privacy/`,da:`${lt}intl/da/privacy/`,de:`${lt}intl/de/privacy/`,el:`${lt}intl/el/privacy/`,en:`${lt}privacy`,es:`${lt}intl/es/privacy/`,et:`${lt}intl/et/privacy/`,fi:`${lt}intl/fi/privacy/`,fr:`${lt}intl/fr/privacy/`,hr:`${lt}intl/hr/privacy/`,hu:`${lt}intl/hu/privacy/`,it:`${lt}intl/it/privacy/`,ja:`${lt}privacy`,ko:`${lt}privacy`,lt:`${lt}intl/lt/privacy/`,lv:`${lt}intl/lv/privacy/`,nl:`${lt}intl/nl/privacy/`,no:`${lt}intl/no/privacy/`,pl:`${lt}intl/pl/privacy/`,pt:`${lt}intl/pt/privacy/`,ro:`${lt}intl/ro/privacy/`,sk:`${lt}intl/sk/privacy/`,sl:`${lt}intl/sl/privacy/`,sv:`${lt}intl/sv/privacy/`,zh:`${lt}privacy/`,zhtw:`${lt}privacy/`};function ut(e,t){var n,o;let i;[...Y.querySelectorAll("script[nonce]")].filter((e=>e.src)).forEach((e=>{(e.src.includes(`__${p}-${f}.js`)||e.src.includes(k)&&e.src.includes(`${p}.com`))&&(i=e.nonce)}));const a=null==(n=Y.getElementsByTagName("script"))?void 0:n[0],s=ke("script"),{attributes:c}=e;for(const e of c)s.setAttribute(e.nodeName,e.nodeValue??"");s.type="text/javascript",i&&(s.nonce=i),s.text=e.text,t&&s.setAttribute(`${m}-svc-uuid`,t),((null==(o=s.text)?void 0:o.length)>1||s.src)&&null!=a&&a.parentNode&&a.parentNode.insertBefore(s,a)}const pt=()=>{var e;const t=(null==(e=window.Shopify)?void 0:e.locale)||Le.lang,n=De(t),o=Le.fallbackLang,i={};try{for(const e of Le.cookieList){if(!1===e.added||!0===e.ignored)continue;const t="Unknown",n={},o=["Functional","Marketing","Analytics","Preferences"];e.category.flat().forEach((e=>{n[o.includes(e)?e.toLowerCase():"unknown"]=!0}));for(const o of Object.keys(n))i[o]||(i[o]={}),i[o][e.domain??t]||(i[o][e.domain??t]=[]),i[o][e.domain??t].filter((t=>t.name===e.name)).length<=0&&i[o][e.domain??t].push(e)}}catch{}const a=[...new Set([...Le.purposes,...Object.keys(i??{}).filter((e=>"functional"!==e&&"unknown"!==e))])].filter((e=>"uncategorized"!==e)),s=Me(),c=Pe(a,t||n||o),r=!1!==Le.managerAccordion,l=!1!==Le.showCategoryServices;return`\n ${s?`\n
\n ${a.map(((e,t=1)=>{var n,o;const a=i[e]??{},s=c[e],d=Object.keys(a).length>0,u=s.length>0;return d||u?`\n
\n
\n ${r?`\n \n \n \n `:""}\n
\n

${je(`purposes.${e}.name`)}

\n
\n\n ${null!=(n=Le.gpc)&&n.enabled||"functional"===e?"":`\n `}\n\n ${null!=(o=Le.gpc)&&o.enabled&&"functional"!==e?`\n
\n
\n GPC\n
\n\n \n \n \n \n \n \n
`:""}\n\n ${"functional"===e?`
${je("notification.always-active")}
`:""}\n
\n\n ${u&&!d?`\n `:""}\n\n ${Le.hasCookieList&&d?`\n `:""}\n
\n `:""})).join("")}\n
`:""}\n `},ft=class e{static create(t){const n=ke("style");n.type="text/css",n.setAttribute(`${m}-style`,"true"),n.id=`${p}_cb_pref_css`,n.appendChild(Y.createTextNode(`\n .${m}-consent {\n --${m}-preferences-layer: ${Le.usedByHierophant?"2400":"2147483647"};\n --${m}-preferences-switch: #fff;\n --${m}-preferences-switch-on: #219653;\n --${m}-preferences-background-secondary-color: ${ce(Le.preferences.styles.background||"#FFF",5,5,5)};\n --${m}-preferences-background-secondary-alt-color: ${"rgba(255,255,255,1)"===ce(Le.preferences.styles.background)?"#fff":ce(Le.preferences.styles.background,5,5,5)||"#fff"};\n --${m}-preferences-background-tertiary-color: ${ce(Le.preferences.styles.background||"#FFF",12,13,13)};\n\n --${m}-preferences-text-color: ${Le.preferences.styles.textColor||"#222"};\n --${m}-preferences-link-color: ${Le.preferences.styles.link||"#1082EC"};\n --${m}-preferences-background-color: ${Le.preferences.styles.background||"#FFF"};\n --${m}-preferences-border-color: ${Le.preferences.styles.border||"#E0E0E0"};\n\n --${m}-preferences-allow-all-text-color: ${Le.preferences.styles.allowText||"#222"};\n --${m}-preferences-allow-all-background-color: ${Le.preferences.styles.allowBackground||"#FFF"};\n --${m}-preferences-allow-all-background-color-hover: ${Le.preferences.styles.allowBackgroundHover||"#FFF"};\n --${m}-preferences-allow-all-border-color: ${Le.preferences.styles.allowBorder||"#222"};\n\n --${m}-preferences-decline-all-text-color: ${Le.preferences.styles.declineText||"#222"};\n --${m}-preferences-decline-all-background-color: ${Le.preferences.styles.declineBackground||"#FFF"};\n --${m}-preferences-decline-all-background-color-hover: ${Le.preferences.styles.declineBackgroundHover||"#FFF"};\n --${m}-preferences-decline-all-border-color: ${Le.preferences.styles.declineBorder||"#222"};\n\n --${m}-preferences-allow-selected-text-color: ${Le.preferences.styles.acceptSelectedText||"#FFF"};\n --${m}-preferences-allow-selected-background-color: ${Le.preferences.styles.acceptSelectedBackground||"#222"};\n --${m}-preferences-allow-selected-background-color-hover: ${Le.preferences.styles.acceptSelectedBackgroundHover||"#1a1a1a"};\n --${m}-preferences-allow-selected-border-color: ${Le.preferences.styles.acceptSelectedBorder||"transparent"};\n }\n `)),Y.head.appendChild(n);const o=Y.getElementById(`${m}-cookie-preferences-wrapper`);o&&o.remove();const i=ke("div");i.id=`${m}-cookie-preferences-wrapper`,i.innerHTML=pt(),t.appendChild(i),Ye(Le)&&(window.onhashchange=()=>{e.handlePreferencesHashChange()},Yt.on("changeTcfTab",(t=>{const n=Object.values(e.PREFERENCE_TABS).find((e=>e.tabId===t));n&&e.displayTab(n)})),e.handlePreferencesHashChange())}static getTitle(e){return je("prefs-tcf"===e?"tcf.preferences.title":"prefs"===e?"preferences.cookiePreferences":"donotsell.title")}static getDescription(e,t){return je(e?"tcf.preferences.description":t?"preferences.description":"preferences.empty")}static createModal(t="prefs"){var n,o,i,a,s,c,r;const l="donotsell"===t,d=Me(),u=Ye(Le)&&!l,f=e.getTitle(u?"prefs-tcf":t),g=e.getDescription(u,d??!1),h=function(){if(Le.preferences.hidePoweredBy)return"";const e=` `;return ee(je("preferences.manager_poweredby"),{link:e})}(),b=`\n \n `,y=Y.getElementById(`${p}-${l?"donotsell-":""}modal-wrap`);if(y)Le.usedByHierophant&&(y.innerHTML=b);else{const e=ke("div");e.className=`${m}-consent`;const t=ke("div");t.id=`${p}-${l?"donotsell-":""}modal-wrap`,t.classList.add(`${p}-modal-wrapper`),t.innerHTML=b,e.appendChild(t),Y.body.appendChild(e)}const v=Y.getElementById(`${m}-${l?"donotsell":"cookie"}-preferences`);if(null!==v)if(l){const e=fe(Le.activeRegion).appearance,t=null==(i=null==e?void 0:e.doNotSell)?void 0:i.bodyLabel,n=t?null==(c=null==(s=null==(a=q("translations"))?void 0:a.strings)?void 0:s[t])?void 0:c[Le.lang]:void 0;v.innerHTML=(n??je("donotsell.description"))+`

${je("donotsell.optoutSuccess")}

`}else e.create(v)}};u(ft,"PREFERENCE_TABS",{SERVICES:{contentId:`${m}-cookie-preferences`,hash:"services",tabId:`${p}-preference-tab-services`,titleId:"tcf.manager.servicesTab"},PURPOSES:{contentId:`${p}-tcf-purposes-content`,hash:"purposes",tabId:`${p}-preference-tab-purposes`,titleId:"tcf.manager.purposesTab"},VENDORS:{contentId:`${p}-tcf-purposes-vendors`,hash:"vendors",tabId:`${p}-preference-tab-vendors`,titleId:"tcf.manager.vendorsTab"}}),u(ft,"getTabFromHash",(e=>{const[,t]=e.split("/");return t})),u(ft,"getEnabledTab",(()=>{const e=ft.getTabFromHash(ae().hash);return Object.values(ft.PREFERENCE_TABS).find((t=>t.hash===e))??ft.PREFERENCE_TABS.SERVICES})),u(ft,"displayTab",(e=>{for(const t of Object.values(ft.PREFERENCE_TABS))t.hash===e.hash?(Y.getElementById(t.contentId).style.display="block",Y.getElementById(t.tabId).classList.add("enabled")):(Y.getElementById(t.contentId).style.display="none",Y.getElementById(t.tabId).classList.remove("enabled"))})),u(ft,"handlePreferencesHashChange",(()=>{ft.displayTab(ft.getEnabledTab())})),u(ft,"createTabLink",(e=>`${je(e.titleId)}`));let gt=ft;class mt{constructor(e,t,n){u(this,"consentCheckboxes",{}),u(this,"legitInterestCheckboxes",{});for(const[o,i]of Object.entries(t)){const t=n(+o,i);e.appendChild(t.root),this.consentCheckboxes[Number.parseInt(o,10)]=t.consentToggle,t.legitInterestToggle&&(this.legitInterestCheckboxes[Number.parseInt(o,10)]=t.legitInterestToggle,t.legitInterestToggle.checked=!0)}}getConsentMap(){return Object.fromEntries(Object.entries(this.consentCheckboxes).map((([e,t])=>[e,!!t&&t.checked])))}getLegIntMap(){return Object.fromEntries(Object.entries(this.legitInterestCheckboxes).map((([e,t])=>[e,t.checked])))}setStateFromTcModel(e,t){for(const[t,n]of Object.entries(this.consentCheckboxes))n&&(n.checked=e.has(+t));if(t)for(const[e,n]of Object.entries(this.legitInterestCheckboxes))n.checked=t.has(+e)}}const ht=(e,t)=>{var n,o,i,a,s;const c=ke("div");c.className=`${p}-preferences-card ${p}-hv-preference`;const r=`${p}-tcf-purpose-toggle--${e}`,l=`${p}-tcf-legit-interest-purpose-toggle--${e}`,d={consent:new Set,legInt:new Set};null==(n=Le.customVendors)||n.forEach((t=>{var n,o;return null!=(n=t.purposes)&&n.includes(e)&&d.consent.add(t.id),(null==(o=t.legIntPurposes)?void 0:o.includes(e))&&d.legInt.add(t.id)}));const u=(null==(o=Le.tcfApi)?void 0:o.doesPurposeHaveLegInts(e))??!1,f=((null==(i=Le.tcfApi)?void 0:i.getPurposeNumVendors(e))??0)+(d.consent.size??0),g=((null==(a=Le.tcfApi)?void 0:a.getPurposeNumLegInts(e))??0)+(d.legInt.size??0);return c.innerHTML=`\n
\n
\n

${t.name}

\n

${je("tcf.manager.purposeNumVendors")} ${f}

\n\n ${u?`

${je("tcf.manager.purposeNumLegInts")} ${g}

`:""}\n\n

${t.description}

\n\n
    \n ${(null==(s=t.illustrations)?void 0:s.map((e=>`
  • ${e}
  • `)).join("\n"))??""}\n
      \n
\n\n \n\n \n
\n `,{root:c,consentToggle:c.querySelector(`#${r}`),legitInterestToggle:c.querySelector(`#${l}`)}},bt=(e,t)=>{const n=ke("div");n.className=`${p}-preferences-card ${p}-hv-preference`;const o=`${p}-tcf-feature-toggle--${e}`;return n.innerHTML=`\n
\n
\n

${t.name}

\n

${t.description}

\n
\n\n \n
\n `,{root:n,consentToggle:n.querySelector(`#${o}`)}},yt=e=>`${p}-tcf-vendor-info-content--${e}`,vt=e=>`${p}-tcf-vendor-info-toggle--${e}`,zt=e=>{if(!e.usesCookies)return"";const t=function(e){return e>=0?Math.round(e/86400):0}(e.cookieMaxAgeSeconds??0);return`

${je("tcf.manager.usesCookies")} ${e.cookieRefresh?je("tcf.manager.cookieRefresh"):""} (${je("tcf.manager.cookieMaxAge")} ${t})

`},kt=(e,t,n,o)=>{if(0===t.length)return"";return`

${e}

\n
    \n ${t.map((e=>{if(!e)return"";const t=(null==n?void 0:n[e.id])||o?`(${je("tcf.manager.retention")} ${(null==n?void 0:n[e.id])??o})`:"";return`
  • ${null==e?void 0:e.name} ${t}
  • `})).join("\n")}\n
`},wt=(e,t)=>{var n,o,i;const a=ke("div");a.className=`${p}-preferences-card ${p}-hv-preference`;const s=`${p}-tcf-vendor-toggle--${e}`,c=`${p}-tcf-vendor-legit-interest-toggle--${e}`,r=vt(e),l=yt(e),d=t.purposes.map((e=>{var t;return null==(t=Le.tcfApi)?void 0:t.getPurpose(e)})),u=t.legIntPurposes.map((e=>{var t;return null==(t=Le.tcfApi)?void 0:t.getPurpose(e)})),f=t.purposes.map((e=>{var t;return null==(t=null==Le?void 0:Le.tcfApi)?void 0:t.getFeature(e)})).filter((e=>void 0!==e)),g=t.specialFeatures.map((e=>{var t;return null==(t=null==Le?void 0:Le.tcfApi)?void 0:t.getSpecialFeature(e)})),m=(null==(n=null==Le?void 0:Le.tcfApi)?void 0:n.doesVendorHaveLegInts(e))??Le.customVendors.some((t=>t.id===e&&Array.isArray(t.legIntPurposes)&&t.legIntPurposes.length>0)),h=((e,t)=>{var n,o,i;const a=t??"en";return(null==(n=e.urls)?void 0:n.find((e=>e.langId===a)))||(null==(o=e.urls)||o.sort(((e,t)=>e.langId.localeCompare(t.langId))),null==(i=e.urls)?void 0:i[0])})(t,"en");a.innerHTML=`\n
\n
\n \n \n \n\n \n\n

${t.name}

\n
\n\n \n\n \n
\n\n
\n ${null!=h&&h.privacy?`

${je("tcf.manager.vendorPrivacy")}

`:""}\n ${null!=h&&h.legIntClaim?`

${je("tcf.manager.vendorLegInt")}

`:""}\n ${zt(t)}\n ${t.usesNonCookieAccess?`

${je("tcf.manager.nonCookieAccess")}

`:""}\n ${kt(je("tcf.manager.purposes"),d,null==(o=t.dataRetention)?void 0:o.purposes,null==(i=t.dataRetention)?void 0:i.stdRetention)}\n ${kt(je("tcf.manager.legInt"),u)}\n ${kt(je("tcf.manager.features"),f)}\n ${kt(je("tcf.manager.specialFeatures"),g)}\n ${kt(je("tcf.manager.dataCategories"),(e=>e.dataDeclaration?e.dataDeclaration.map((e=>{var t;return null==(t=null==Le?void 0:Le.tcfApi)?void 0:t.getDataDeclaration(e)})).filter((e=>e)):[])(t))}\n
\n `;const b=a.querySelector(`#${vt(e)}`),y=`${p}-tcf-vendor-info-arrow--${e}`,v=a.querySelector(`#${y}_on`),z=a.querySelector(`#${y}_off`),k=a.querySelector(`#${yt(e)}`);return null==b||b.addEventListener("click",(e=>{e.stopPropagation(),k.classList.contains(`${p}-content-active`)?(k.classList.remove(`${p}-content-active`),k.classList.add(`${p}-content-inactive`),k.style.maxHeight="0",k.style.margin="0",v&&(v.style.display=""),z&&(z.style.display="none")):(k.classList.add(`${p}-content-active`),k.classList.remove(`${p}-content-inactive`),k.style.maxHeight=2*k.scrollHeight+"px",k.style.margin="0 0 0 0",v&&(v.style.display="none"),z&&(z.style.display=""))})),{root:a,consentToggle:a.querySelector(`#${s}`),legitInterestToggle:a.querySelector(`#${c}`)}},Ct=e=>{var t,n;try{null==(n=null==(t=window.Shopify)?void 0:t.customerPrivacy)||n.setTrackingConsent({analytics:e.analytics??!1,marketing:e.marketing??!1,preferences:e.preferences??!1},(()=>{}))}catch(e){$ez_d("Error: setTrackingConsent",e)}},xt=()=>{const e=gn.getServiceCookies();Ct(e)};function $t(e,t){return-1!==e.indexOf(t,e.length-t.length)}const _t=class e{static block(e){}static unblock(e){}static change(e){}static get state(){return e._state}static get list(){return Et._list}static set list(e){Et._list=e}static get exclusions(){return Et._exclusions}static set exclusions(e){Et._exclusions=e}static accept(){}static acceptWait(){}static declineWait(){}static async decline(e){}static inList(e){return!0}static alwaysAllowCookie(e){return!0}static on(e,t){}static off(e,t){}static emit(e,t){}static allowIfCookieNotKnown(){}static denyIfCookieNotKnown(){}};u(_t,"timer",null),u(_t,"dtimer",null),u(_t,"_state",{read:!0,write:!0,scriptSuspension:!1,mode:"allow-if-not-known"}),u(_t,"_alwaysAllow",{"cookies-functional":!0,"cookies-analytics":!0,"cookies-marketing":!0,"cookies-preferences":!0,[C]:!0,[x]:!0});let At=_t;const St=class e{static block(t){e.change({write:!1}),e._state.mode="defer",e._deferQueueCb=t}static unblock(t){e._deferQueueCb&&e._deferQueueCb(t),e._deferQueueCb=void 0;for(const t of e._deferQueue)e._writeCookie(t);e._deferQueue=[]}static _fromScript(){var e,t,n,o,i;let a={};try{throw new Error("")}catch(s){try{if(!(s instanceof Error))return{};if(null!=(e=s.stack)&&e.includes(""))for(let e of s.stack.split("\n"))if(e.includes("")){const t=e.replace("at ","").replace(" (","").replace(")","").replace("","").split(":");return{script:"dev-tools",func:(t[0]||"dev-tools").trim(),line:t[1],col:t[2]}}const c=null==(o=null==(n=null==(t=s.stack)?void 0:t.split("\n").at(2))?void 0:n.split("at ").at(1))?void 0:o.split(" (");if(c){const e=null==(i=c.at(1))?void 0:i.replace(")","").replace("http://","").replace("https://","").split(":");a={script:null==e?void 0:e.at(0),function:c.at(0),line:null==e?void 0:e.at(1),col:null==e?void 0:e.at(2)}}}catch{}}return a}static _writeCookie(t){var n,o,i,a;let s=!1;if("defer"!==e._state.mode)if("allow-if-not-known"===e._state.mode?s=!e.inList(t):"deny-if-not-known"===e._state.mode?s=!1:("allow"===e._state.mode||"decline"===e._state.mode)&&(s=e._state.write),(e.alwaysAllowCookie(t)||"allow-if-not-known"===e.state.mode&&!e.inList(t))&&(s=!0,e._state.write=!0),!1===e._state.write||!1===s){const i=e._fromScript(),a=e._queue.filter((e=>e.value===t)).at(0);if(a)a.processed=!1,e._queue=[...e._queue.filter((e=>e.value!==t)),a];else{e._queue.push({value:t,fromScript:i}),e.emit("queue",{value:t,fromScript:i});const[a]=t.split("=").map((e=>e.trim())),s=e._getListItemFromCookieName(a);if(s&&e._shouldAcceptCookie(s))return void(null==(o=null==(n=e._original)?void 0:n.set)||o.call(Y,t))}e.list.length>0&&e.emit("queueProcess")}else{const n=e._fromScript();e.emit("write",{value:t,fromScript:n}),null==(a=null==(i=e._original)?void 0:i.set)||a.call(Y,t)}else e._deferQueue.includes(t)||e._deferQueue.push(t)}static _readCookie(){var t,n,o,i;const a=e._fromScript();return e.emit("read",{fromScript:a}),e._state.read?null==(n=null==(t=e._original)?void 0:t.get)?void 0:n.call(Y):null==(i=null==(o=e._original)?void 0:o.get)?void 0:i.call(Y)}static change(t){const{read:n,write:o,scriptSuspension:i}=t??{};e._setup||Object.defineProperty(document,"cookie",{configurable:!0,get:e._readCookie,set:e._writeCookie}),e._state={...e._state,read:n??!1,write:o??!1,scriptSuspension:i??!1},e.emit("change",e._state)}static get state(){return e._state}static get list(){return e._list}static set list(t){e._list=t}static get exclusions(){return e._exclusions}static set exclusions(t){e._exclusions=t}static _shouldAcceptCookie(e){if(!e)return!1;if(!e.category||e.category.some((e=>{var t;return 1===e.length&&"functional"===(null==(t=e[0])?void 0:t.toLowerCase())})))return!0;const t={Functional:sn.get("cookies-functional"),Marketing:sn.get("cookies-marketing"),Analytics:sn.get("cookies-analytics"),Preferences:sn.get("cookies-preferences"),"":void 0};if(e.category.some((e=>e.every((e=>"true"===t[e])))))return!0;const n=e.category.some((e=>e.every((e=>"false"!==t[e]))));return Be()&&n}static _doesMatchPrefixPattern(e,t,n){if($t(t.name,e)){const o=t.name.replace(e,"");if(n.startsWith(o))return!0}return!1}static _doesItemMatchName(t,n){return void 0!==n&&!(t.name!==n&&!e._doesMatchPrefixPattern("*",t,n)&&!e._doesMatchPrefixPattern("#",t,n))}static _getListItemFromCookieName(t){for(const n of e._list)if(e._doesItemMatchName(n,t))return n;return null}static accept(){e._state.read=!0,e._state.write=!0,e._state.mode="allow";for(const t of e._queue){let n=!1;for(const o of e.list){const{value:i,resolver:a,fromScript:s}=t;t.processed=!0;const[c]=i.split("=").map((e=>e.trim()));let r;e._doesItemMatchName(o,c)&&(r=o,n=!0),e._shouldAcceptCookie(r)&&(e.emit("accept",{value:i,fromScript:s}),Y.cookie=i,a&&a())}!n&&O.every((e=>"true"===sn.get(`cookies-${e.toLowerCase()}`)))&&(e.emit("accept",{value:t.value,fromScript:t.fromScript}),Y.cookie=t.value,t.resolver&&t.resolver())}e._state.read=!0,e._state.write=!1,e._state.mode="allow-if-not-known"}static acceptWait(){!sn.get("cookies-functional")||"true"!==sn.get("cookies-analytics")&&"true"!==sn.get("cookies-marketing")&&"true"!==sn.get("cookies-preferences")?setTimeout((()=>{e.acceptWait()}),60):e.accept()}static declineWait(){!sn.get("cookies-functional")||"false"!==sn.get("cookies-analytics")&&"false"!==sn.get("cookies-marketing")&&"false"!==sn.get("cookies-preferences")?setTimeout((()=>{e.declineWait()}),60):e.decline(!1)}static _getAllCookieDomains(e){const t=[];let n=-1;for(;-1!==(n=e.indexOf("."));)t.push(e),e=e.substring(n+1);return t}static async decline(t){var n;e.change({read:!0,write:!0}),e._state.mode="decline";const o=null==(n=Y.cookie)?void 0:n.split(";").reduce(((e,t)=>{const[n,o]=t.split("=").map((e=>e.trim()));return n&&o&&(e[n]=decodeURIComponent(o)),e}),{});const i=await async function(){const t=[];return Object.fromEntries(Y.cookie.split(/; */).map((n=>{const o=n.indexOf("="),i=n.slice(0,o),a=n.slice(o+1),s=e._getAllCookieDomains(`.${ae().host}`);for(const e of s)t.push({name:i,value:a,domain:e,path:"/"});return[]}))),t}(),a={Functional:sn.get("cookies-functional"),Marketing:sn.get("cookies-marketing"),Analytics:sn.get("cookies-analytics"),Preferences:sn.get("cookies-preferences"),"":void 0},s=e=>(null==e?void 0:e.category)&&!(1===e.category.length&&(!e.category[0]||1===e.category[0].length&&""===e.category[0][0]))&&e.category.every((e=>e.some((e=>"false"===a[e]))))||(null==e?void 0:e.category)&&!t&&e.category.every((e=>e.some((e=>!a[e]))));for(const{}of e.list)for(const t of e._queue){const{value:n,resolver:o,fromScript:a}=t;t.processed=!0;const[c]=n.split("=").map((e=>e.trim())),r=e._getListItemFromCookieName(c);if(r&&s(r)){for(const e of i)e.name===c&&(Y.cookie=`${e.name}=;domain=${e.domain};path=${e.path};max-age=0`);e.emit("decline",{value:n,fromScript:a}),o&&o()}}for(const{}of e.list)for(const[t,n]of Object.entries(o)){if(e.alwaysAllowCookie(`${t}=${n}`))continue;const o=new Date(Date.now()+-864e5).toUTCString(),i=e._getListItemFromCookieName(t);i&&s(i)&&(Y.cookie=`${t}=''; expires=${o}`,e.emit("decline",{value:`${t}=${n}`,fromScript:{script:"document.cookie",line:0,col:0}}))}e._state.read=!1,e._state.write=!1,e._state.mode="allow-if-not-known"}static inList(t){const[n]=t.split("=").map((e=>e.trim()));for(const t of e.list)if(n&&e._doesItemMatchName(t,n))return!0;return!1}static alwaysAllowCookie(t){const[n]=t.split("=").map((e=>e.trim()));return!!e._alwaysAllow[n]}static on(t,n){const o=e._events.get(t);o?o.push(n):e._events.set(t,[n])}static off(t,n){const o=e._events.get(t);o?o.splice(o.indexOf(n)>>>0,1):e._events.set(t,[])}static emit(t,n){let o=e._events.get(t);null==o||o.slice().forEach((e=>{e(n)})),o=e._events.get("*"),o&&o.slice().map((e=>{e(t,n)}))}static allowIfCookieNotKnown(){e.change({read:!1,write:!1}),e._state.mode="allow-if-not-known"}static denyIfCookieNotKnown(){e.change({read:!1,write:!1}),e._state.mode="deny-if-not-known"}};u(St,"timer",null),u(St,"dtimer",null),u(St,"_list",[]),u(St,"_alwaysAllow",{"cookies-functional":!0,"cookies-analytics":!0,"cookies-marketing":!0,"cookies-preferences":!0,[C]:!0,[x]:!0}),u(St,"_queue",[]),u(St,"_uncategorized",[]),u(St,"_exclusions",{}),u(St,"_setup",!1),u(St,"_scriptObserver",null),u(St,"_deferQueue",[]),u(St,"_deferQueueCb"),u(St,"_state",{read:!0,write:!0,scriptSuspension:!1,mode:""}),u(St,"_original",Object.getOwnPropertyDescriptor(Document.prototype,"cookie")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"cookie")),u(St,"_events",new Map);let Et=St;const Lt=async()=>{sn.remove("cookies-functional"),sn.remove("cookies-analytics"),sn.remove("cookies-marketing"),sn.remove("cookies-preferences")};class Tt{constructor(e){u(this,"cookieManager"),u(this,"purposeList"),u(this,"specialFeatureList"),u(this,"vendorList"),u(this,"saveButton",null),u(this,"listenerAttached",!1),u(this,"donotsellListenerAttached",!1),u(this,"urlParams",ie()),this.cookieManager=e.cookieManager,Le.usedByHierophant||this.cookieManager.hasAllCookiesSet()&&(this.cookieManager.clearEnabledList(),this.cookieManager.setEnabledList())}createTcfUi(e){var t;const n=Y.getElementById(`${p}-tcf-purposes-list`);null!==n&&(this.purposeList=((e,t)=>new mt(e,t,ht))(n,e.getPurposes()));const o=Y.getElementById(`${p}-tcf-special-features-list`);o&&(this.specialFeatureList=((e,t)=>new mt(e,t,bt))(o,e.getSpecialFeatures()));const i=Y.getElementById((null==(t=gt.PREFERENCE_TABS.VENDORS)?void 0:t.contentId)??"");null!==i&&Le.tcfApi&&(this.vendorList=((e,t)=>new mt(e,t,wt))(i,{...e.getVendors(),...Object.fromEntries((Le.customVendors??[]).map((e=>[e.id,e])))}))}init(e=!1){gt.createModal("prefs"),gt.createModal("donotsell"),Ye(Le)&&Le.tcfApi&&this.createTcfUi(Le.tcfApi),this.createModalFunctions(e),this.createDoNotSellModalFunctions(e),this.attachDoNotSellListeners()}attachDoNotSellListeners(){const e=Y.getElementById(`${m}-donotsell-optout-modal`);null==e||e.addEventListener("click",(()=>{var e,t;Le.lastAction="donotsell";const n=Y.getElementById(`${p}-donotsell-modal`),o=Y.getElementById(`${p}-donotsell-modal-wrap`),i=Y.getElementById(`${m}-donotsell-indicator`);i&&(i.style.display="block"),null==(t=null==(e=window.Shopify)?void 0:e.customerPrivacy)||t.setTrackingConsent({sale_of_data:!1},(()=>{}));const a=Y.body;st.onDoNotSell(gn.getServiceCookies(),{interactive:!0}),setTimeout((()=>{var e;n&&(n.style.display="none"),o&&(o.style.display="none"),null==(e=a.classList)||e.remove(`${m}-body-lock`,`${m}-no-scroll`,`${p}-blurred`),de(ae().hash)&&(window.location.hash="#"),Y.documentElement.scrollTop=window.scrollY}),1500)}))}createModalFunctions(e=!1){var t;const n=Y.body,o=Y.getElementById(`${p}-modal`),i=Y.getElementById(`${p}-modal-wrap`),a=Y.getElementById(`${m}-close-modal`),{body:s}=Y,c=e=>{var t,a,s,c;o&&(o.style.display="",o.classList.add(`${p}-modal-open`),setTimeout((()=>{o.style.opacity="1"}),10)),i&&(i.style.display="block"),null==n||n.classList.add(`${p}-blurred`),Le.usedByHierophant||null==i||i.addEventListener("click",l);const r=Ne();this.cookieManager.setEnabledList();for(const t of r){const n=Y.getElementById(`${m}-cookie-preferences--${t}`);null!==n&&(e===t?n&&n.click():n.checked=this.cookieManager.hasCookiesEnabled(t)??!1,$ez_d(t,n.checked))}Le.tcfApi&&(null==(t=this.purposeList)||t.setStateFromTcModel(Le.tcfApi.getPurposesConsents(),Le.tcfApi.getPurposesLegInts()),null==(a=this.vendorList)||a.setStateFromTcModel(Le.tcfApi.getVendorConsents(),Le.tcfApi.getVendorLegInts()),null==(s=this.specialFeatureList)||s.setStateFromTcModel(Le.tcfApi.getSpecialFeatureConsents()),null==(c=Le.tcfApi)||c.onManagerOpen())},r=()=>{var e,t;Le.lastAction="close-cm",on("cookies-functional","true"),o&&(o.classList.remove(`${p}-modal-open`),o.style.opacity="0"),i&&(i.style.display="none"),null==n||n.classList.remove(`${p}-blurred`),le(ae().hash)&&(window.location.hash="#"),Y.documentElement.scrollTop=window.scrollY,this.cookieManager.clearEnabledList(),null!=(e=s.classList)&&e.contains(`${m}-body-lock`)&&(null==(t=s.classList)||t.remove(`${m}-body-lock`,`${m}-no-scroll`))},l=e=>{o&&(Le.enforceCookieBar&&!Le.usedByHierophant||!o.contains(e.target)&&"none"!==o.style.display&&(r(),d()))},d=()=>{null==i||i.removeEventListener("click",l)};null==a||a.addEventListener("click",(()=>{r()}));function u(){Array.from(Y.querySelectorAll(`[${m}-show-preferences]`)).forEach((e=>{e.addEventListener("click",(()=>nt.emit("openCookieManager")))}))}(e||!this.listenerAttached)&&(window.addEventListener("hashchange",(e=>{const t=new URL(e.oldURL).hash;le(ae().hash)&&!le(t)&&c(),ae().hash.replaceAll("-","_")===R&&Lt()}),!1),Yt.on("openCookieManager",(e=>{c(e)})),Yt.on("closeCookieManager",(()=>{r()})),this.listenerAttached=!0),null==(t=Y.getElementById(`${m}-tcf-notification-message-vendors-link`))||t.addEventListener("click",(()=>{var e;c(),Yt.emit("changeTcfTab",null==(e=gt.PREFERENCE_TABS.VENDORS)?void 0:e.tabId)})),Object.values(gt.PREFERENCE_TABS).forEach((e=>{var t;null==(t=Y.getElementById(e.tabId))||t.addEventListener("click",(()=>{Yt.emit("changeTcfTab",e.tabId)}))})),(le(ae().hash)||M.some((e=>"string"==typeof this.urlParams.get(e))))&&c(),(ae().hash.replaceAll("-","_")===R||M.some((e=>"string"==typeof this.urlParams.get(e))))&&Lt(),u(),window.addEventListener("locationchange",(()=>{setTimeout((()=>{u()}),60)}));const f=Ne();for(const e of f){const t=Y.getElementById(`${m}-cookie-preferences--${e}`);null!==t&&(t.checked=this.cookieManager.hasCookiesEnabled(e)??!1,t.addEventListener("change",(()=>{this.cookieManager.enableFunctionalCookie(),Le.hasCookieList?t.checked?this.cookieManager.toggleCookieOn(e):this.cookieManager.toggleCookieOff(e):t.checked||!Le.containedServiceCategories.includes(e)||Le.categoriesToggle[e]?this.cookieManager.toggleCookieOn(e):this.cookieManager.toggleCookieOff(e)})))}const g=Y.getElementById("forget-consent");null==g||g.addEventListener("click",(()=>{Lt()}));const h=()=>{var e;const t=Y.getElementById(`${p}-modal`),n=Y.getElementById(`${p}-modal-wrap`),o=Y.getElementById(`${m}-cookie-notification`),i=Y.body;t&&(t.style.display="none"),n&&(n.style.display="none"),o&&(o.style.display="none"),null==(e=i.classList)||e.remove(`${m}-body-lock`,`${m}-no-scroll`,`${p}-blurred`),le(ae().hash)&&(window.location.hash="#"),Y.documentElement.scrollTop=window.scrollY},b=Y.getElementById(`${m}-confirm-modal`);null==b||b.addEventListener("click",(()=>{var e,t,n,o,i,a,s,c,r,l;if(Le.lastAction="partial-accept",Ye(Le)){const s={purposes:{consents:null==(e=this.purposeList)?void 0:e.getConsentMap(),legitInterests:null==(t=this.purposeList)?void 0:t.getLegIntMap()},vendors:{consents:null==(n=this.vendorList)?void 0:n.getConsentMap(),legitInterests:null==(o=this.vendorList)?void 0:o.getLegIntMap()},specialFeatures:{consents:null==(i=this.specialFeatureList)?void 0:i.getConsentMap()}};null==(a=Le.tcfApi)||a.onManagerAcceptSelected(s)}this.cookieManager.enableToggled(),null==(c=null==(s=Yt.getInstance())?void 0:s.cookieNotification)||c.showCookieManagerButton(),Y.cookie instanceof Et&&(null==(r=null==$ez?void 0:$ez.cookies)||r.acceptWait(),null==(l=null==$ez?void 0:$ez.cookies)||l.declineWait()),st.onAcceptSelected(gn.getServiceCookies(),{interactive:!0}),xt(),h()}));const y=Y.getElementById(`${m}-accept-modal`),v=Y.getElementById(`${m}-reject-modal`);null==y||y.addEventListener("click",(()=>{var e;window.__enzuzoApi.control.acceptAll({interactive:!0});const t=null==(e=Yt.getInstance())?void 0:e.cookieNotification;null==t||t.hideCookieNotification(),null==t||t.showCookieManagerButton(),h()})),null==v||v.addEventListener("click",(()=>{var e;window.__enzuzoApi.control.declineAll({interactive:!0});const t=null==(e=Yt.getInstance())?void 0:e.cookieNotification;null==t||t.hideCookieNotification(),null==t||t.showCookieManagerButton(),h()})),Array.from(Y.querySelectorAll(`[data-${p}-cookie-list="true"]`)).forEach((e=>{e.addEventListener("click",(t=>{t.stopPropagation();const n=e.dataset.toggleIndex,o=Y.getElementById(`${m}-cookie-display-cl-${n}`);o&&!1!==Le.managerAccordion&&(o.classList.contains(`${p}-content-active`)?(o.classList.remove(`${p}-content-active`),o.classList.add(`${p}-content-inactive`),Y.getElementById(`${m}-toggle-cl-${n}_off`).style.display="none",Y.getElementById(`${m}-toggle-cl-${n}_on`).style.display=""):(o.classList.add(`${p}-content-active`),o.classList.remove(`${p}-content-inactive`),Y.getElementById(`${m}-toggle-cl-${n}_off`).style.display="",Y.getElementById(`${m}-toggle-cl-${n}_on`).style.display="none"),o.classList.contains(`${p}-content-active`)?(o.style.maxHeight=2*o.scrollHeight+"px",o.style.margin="0 0 0 0"):(o.style.maxHeight="0",o.style.margin="0"));const i=Y.getElementById(`${m}-toggle-cl-${n}`),a=Y.getElementById(`${m}-toggle-cl-text-${n}`),s=Y.getElementById(`${m}-toggle-cl-arrow-${n}`);i&&a&&s&&(i.classList.contains("active-toggled")?i.classList.remove("active-toggled"):i.classList.add("active-toggled"),i.classList.contains("active-toggled")?(a.innerHTML=je("manager.hideCookies"),s.classList.add(`${p}-arrow-active`)):(a.innerHTML=je("manager.showCookies"),s.classList.remove(`${p}-arrow-active`)))}))})),Array.from(Y.querySelectorAll(`[data-${p}-service-list="true"]`)).forEach((e=>{e.addEventListener("click",(t=>{t.stopPropagation();const n=e.dataset.toggleIndex,o=Y.getElementById(`${m}-cookie-display-${n}`);o&&!1!==Le.managerAccordion&&(o.classList.contains(`${p}-content-active`)?(o.classList.remove(`${p}-content-active`),o.classList.add(`${p}-content-inactive`),Y.getElementById(`${m}-toggle-cl-${n}_off`).style.display="none",Y.getElementById(`${m}-toggle-cl-${n}_on`).style.display=""):(o.classList.add(`${p}-content-active`),o.classList.remove(`${p}-content-inactive`),Y.getElementById(`${m}-toggle-cl-${n}_off`).style.display="",Y.getElementById(`${m}-toggle-cl-${n}_on`).style.display="none"),o.classList.contains(`${p}-content-active`)?(o.style.maxHeight=2*o.scrollHeight+"px",o.style.margin="0 0 0 0"):(o.style.maxHeight="0",o.style.margin="0"))}))})),Array.from(Y.querySelectorAll(`.${p}-cookie-toggle-slider`)).forEach((e=>{e.addEventListener("click",(e=>{e.stopPropagation()}))}))}createDoNotSellModalFunctions(e=!1){const t=Y.body,n=Y.getElementById(`${p}-donotsell-modal`),o=Y.getElementById(`${p}-donotsell-modal-wrap`),i=Y.getElementById(`${m}-close-donotsell-modal`),a=()=>{window.Shopify&&(n&&(n.style.display="",n.classList.add(`${p}-modal-open`),setTimeout((()=>{n.style.opacity="1"}),10)),o&&(o.style.display="block"),null==t||t.classList.add(`${p}-blurred`),Le.usedByHierophant||null==o||o.addEventListener("click",c))},s=()=>{n&&(n.classList.remove(`${p}-modal-open`),n.style.opacity="0"),o&&(o.style.display="none"),null==t||t.classList.remove(`${p}-blurred`),de(ae().hash)&&(window.location.hash="#"),Y.documentElement.scrollTop=window.scrollY},c=e=>{n&&!n.contains(e.target)&&"none"!==n.style.display&&(s(),r())},r=()=>{null==o||o.removeEventListener("click",c)};null==i||i.addEventListener("click",(()=>{s()}));(e||!this.donotsellListenerAttached)&&(window.addEventListener("hashchange",(e=>{const t=new URL(e.oldURL).hash;de(ae().hash)&&!de(t)&&a()}),!1),Yt.on("openDoNotSellModal",a),this.donotsellListenerAttached=!0),de(ae().hash)&&a()}togglePreferences(e){const t=Ne();for(const n of t)if("functional"!==n){const t=Y.getElementById(`${m}-cookie-preferences--${n}`);t&&(Le.containedServiceCategories.includes(n)&&!0!==Le.categoriesToggle[n]?t.checked=e??!1:t.checked=!0)}}}class Bt{static removeCookies(){for(const e of Le.services)Bt.removeCookiesSetByService(e);Le.cookies&&Object.values(Le.cookies).map((e=>Bt.removeSimpleCookies(e))),ae().reload()}static removeCookiesForPurpose(e){var t;for(const t of Le.services)-1!==t.purposes.indexOf(e)&&(Bt.removeCookiesSetByService(t),t.remove&&t.remove());null!=(t=Le.cookies)&&t[e]&&Bt.removeSimpleCookies(Le.cookies[e])}static removeCookiesSetByService(e){var t;null!=(t=e.cookies)&&t.length&&Bt.removeSimpleCookies(e.cookies);const n=e.type||e.name;"google-analytics"===n&&Bt.removeGoogleAnalyticsCookies(e.options),"facebook-pixel"===n&&Bt.removeFacebookPixelCookies()}static removeGoogleAnalyticsCookies(e={}){const t=["_dc_gtm_","_gac_","_gat_gtag_","_gat_"];Bt.removeSimpleCookies(["_ga","_gid","_gat","AMP_TOKEN"]),void 0!==e.id&&Bt.removeCompositeCookies(t,e.id),void 0!==e.name&&Bt.removeCompositeCookies(t,e.name)}static removeFacebookPixelCookies(){Bt.removeSimpleCookies(["_fbp"])}static removeSimpleCookies(e){for(const t of e){for(const e of Le.domains)gn.removeCookie(t,{domain:e});gn.removeCookie(t)}}static removeCompositeCookies(e,t){for(const n of e){for(const e of Le.domains)gn.removeCookie(`${n}${t}`,{domain:e});gn.removeCookie(`${n}${t}`)}}}const It=(e={})=>{void 0!==e.id?(se("https://connect.facebook.net/en_US/fbevents.js")||(()=>{var e;const t=window.fbq=window.fbq??function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)};window._fbq||(window._fbq=t),t.push=t,t.loaded=!0,t.version="2.0",t.queue=[];const n=ke("script");n.async=!0,n.src="https://connect.facebook.net/en_US/fbevents.js";const o=Y.getElementsByTagName("script")[0];o&&(null==(e=o.parentNode)||e.insertBefore(n,o))})(),window.fbq("init",e.id),window.fbq("track","PageView")):$ez.console.error("FACEBOOK_PIXEL: No ID specified. Please specify an ID using `options.id`.")},Mt=(e={})=>{void 0!==e.id?(se("https://www.google-analytics.com/analytics.js")||Rt(),void 0!==e.name?Nt(e):Ot(e)):$ez.console.error("GOOGLE_ANALYTICS: No ID specified. Please specify an ID using `options.id`.")},Rt=()=>{var e;window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const t=Y.getElementsByTagName("script")[0],n=ke("script");n.src="https://www.google-analytics.com/analytics.js",t&&(null==(e=t.parentNode)||e.insertBefore(n,t))},Nt=e=>{var t,n,o;null==(t=window.ga)||t.call(window,"create",e.id,"auto",e.name),!1!==e.anonymizeIp&&(null==(n=window.ga)||n.call(window,`${e.name}.set`,"anonymizeIp",!0)),null==(o=window.ga)||o.call(window,`${e.name}.send`,"pageview")},Ot=e=>{var t,n,o;null==(t=window.ga)||t.call(window,"create",e.id,"auto"),!1!==e.anonymizeIp&&(null==(n=window.ga)||n.call(window,"set","anonymizeIp",!0)),null==(o=window.ga)||o.call(window,"send","pageview")};function Ht(...e){var t;null==(t=window.dataLayer)||t.push(e)}window.dataLayer=window.dataLayer||[];const Pt=(e={})=>{void 0===e.id?$ez.console.error("GOOGLE_TAG_MANAGER: No ID specified. Please specify an ID using `options.id`."):se(`https://www.googletagmanager.com/gtm.js?id=${e.id}`)||Dt(e)},Dt=e=>{var t;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gtm.js","gtm.start":(new Date).getTime()});const n=Y.getElementsByTagName("script")[0],o=ke("script");o.src=`https://www.googletagmanager.com/gtm.js?id=${e.id}`,n&&(null==(t=n.parentNode)||t.insertBefore(o,n))},Ft=()=>{Ht("consent","default",{ad_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",security_storage:"granted",wait_for_update:500}),Ht("set","ads_data_redaction",!0)},jt=(e,t,n)=>{var o;e[t]="true"===He(`cookies-${n}`)?"granted":(null==(o=window.enzuzoGtmConsentObj)?void 0:o[t])??"denied"},Ut=e=>{Yt&&!Yt.consent_queue&&(Yt.consent_queue={l:[],flush:async t=>new Promise((n=>{Yt&&(Yt.consent_queue.t=setTimeout((()=>{Yt.consent_queue.obj||(Yt.consent_queue.obj={});const o=Yt.consent_queue.obj;o.security_storage="granted",o.functionality_storage="granted";for(const e of t?[t]:Yt.consent_queue.l)"analytics"===e?jt(o,"analytics_storage",e):"preferences"===e?jt(o,"personalization_storage",e):"marketing"===e&&(jt(o,"ad_storage",e),jt(o,"ad_user_data",e),jt(o,"ad_personalization",e));Yt.consent_queue.obj=o,Yt.consent_queue.l.length>0&&Ht("consent","update",o),Yt.consent_queue.l=[],$ez_d("Consent Update Event sent.",o,t??e),n()}),300))}))}),Yt.consent_queue.l.includes(e)||($ez_d("Queued Consent Update Event For",e),Yt.consent_queue.l.push(e))};class Vt{constructor(e){u(this,"cookieManager"),u(this,"injected",{}),this.cookieManager=e.cookieManager}injectServices(){for(const e of Le.services)this.injectService(e)}injectService(e){if(this.shouldBeInjected(e)){const t=this.getInjectorFunction(e);void 0!==t&&(t(e.options||{}),nt.emit("service-loaded",e.name)),this.injected[e.name]=!0}}shouldBeInjected(e){return!(Le.usedByHierophant||this.injected[e.name])&&!1!==e.inject&&(e.required||this.cookieManager.hasAllNecessaryCookiesEnabled(e.purposes))}getInjectorFunction(e){let t;if(!0===e.inject){const n=e.type||e.name;return t=this.getDefaultInjector(n),void 0===t?void $ez.console.error(`No default injector found for ${n}. Please specify your own implementation.`):t}if(e.inject)return e.inject}getDefaultInjector(e){switch(e){case"facebook-pixel":return It;case"google-analytics":return Mt;case"google-tag-manager":return Pt;default:return}}registerService(e,t,n,o={}){const i={name:e,purposes:t,inject:n,...o};Le.services.push(i),this.injectService(i)}}class Gt{static resolve(e){e.domains&&Array.isArray(e.domains)&&(e.domains=Gt.normalizeDomains(e.domains)),Gt.resolveBaseConfiguration(e),Le.notification=me(Le.notification,e.notification),Le.translations=me(Le.translations,e.translations)}static resolveBaseConfiguration(e){for(const t of["prefix","cookies","type","services","purposes"])void 0!==e[t]&&(Le[t]=e[t]);const t=e.domains||[];Le.domains=t.length>0?t:Gt.getDomains(),void 0!==e.cookieAttributes&&(Le.cookieAttributes=Object.assign(Le.cookieAttributes,e.cookieAttributes))}static detectLanguage(e){let t=ve(Y.documentElement.lang||e.lang||"en").language;return ve(be(t)??t).language||"en"}static getDomains(){const e=[],t=ae().hostname,n=t.match(/(?:[A-Za-z0-9-]+\.)*([A-Za-z0-9-]+\.co.uk|\.com.br|\.co.jp|\.com.au)\b/);null!==n&&e.push(n[1]);const o=t.match(/(?:[A-Za-z0-9-]+\.)*([A-Za-z0-9-]+\.(?:[A-za-z]{2}|[A-Za-z]{3,}))\b/);return null!==o&&e.push(o[1]),e.push(t),Gt.normalizeDomains(e)}static normalizeDomains(e){return e.map((e=>e.startsWith(".")?e:`.${e}`))}}const qt=!0,Zt=!1,Wt=class e{constructor(e){u(this,"cookieNotification"),u(this,"cookiePreferences"),u(this,"cookieManager"),u(this,"serviceLoader"),Gt.resolve(e),this.cookieManager=new gn(Le.type,Le.cookieAttributes);const t=Fe("FEATURE_BANNER_APIV2")?q("custom"):void 0;null!=t&&t.banner||(this.cookieNotification=new it({cookieManager:this.cookieManager})),null!=t&&t.prefCenter||(this.cookiePreferences=new Tt({cookieManager:this.cookieManager})),this.serviceLoader=new Vt({cookieManager:this.cookieManager})}init(t=!1){var n;const o=()=>{var n,o,i,a,s,c;Le.usedByHierophant?null==(n=this.cookieNotification)||n.getBannerTextFromHierophant():(null==(o=this.cookieNotification)||o.init(t),null==(s=null==(a=null==(i=window.__enzuzoConfig)?void 0:i.callbacks)?void 0:a.banner)||s.call(a)),null==(c=this.cookiePreferences)||c.init(t);window.__enzuzoApi.control.declineAll=e=>{var t,n,o;Le.lastAction="decline-all",null==(t=Le.tcfApi)||t.onManagerDeclineAll(),this.cookieManager.disableAllCookies(e),this.cookieManager.enableFunctionalCookie(),this.cookieManager.clearEnabledList(),null==(n=this.cookiePreferences)||n.togglePreferences(Zt),Y.cookie instanceof Et&&(null==(o=null==$ez?void 0:$ez.cookies)||o.declineWait())},window.__enzuzoApi.control.acceptAll=e=>{var t,n,o;Le.lastAction="accept-all",null==(t=Le.tcfApi)||t.onManagerAcceptAll(),this.cookieManager.enableAllCookies(e),null==(n=this.cookiePreferences)||n.togglePreferences(qt),null==(o=null==$ez?void 0:$ez.cookies)||o.acceptWait()},window.__enzuzoApi.control.acceptPartial=(t,n)=>{var o;const i=null==(o=e.getInstance())?void 0:o.cookieManager;for(const e in t){const n=e,o=t[n]?null==i?void 0:i.toggleCookieOn.bind(i):null==i?void 0:i.toggleCookieOff.bind(i);o&&o(n)}null==i||i.enableToggled.bind(i)()}};"false"===(null==(n=rt())?void 0:n.get("awaitLoad"))||"loading"!==Y.readyState?o():Y.addEventListener("DOMContentLoaded",(function e(){"loading"!==Y.readyState&&(o(),Y.removeEventListener("DOMContentLoaded",e))})),Le.usedByHierophant||(this.registerDefaultListeners(),this.checkInitialState())}get preferences(){return this.cookiePreferences}get notification(){return this.cookieNotification}checkInitialState(){const e=Ne();for(const t of e)if(this.cookieManager.hasCookiesEnabled(t)){const e=`${t}-enabled`;nt.emit(e)}}registerDefaultListeners(){const e=Ne();for(const t of e)nt.on(`${t}-enabled`,(()=>{this.serviceLoader.injectServices()})),nt.on(`${t}-disabled`,(()=>{Bt.removeCookiesForPurpose(t)}))}registerService(e,t,n,o={}){this.serviceLoader.registerService(e,t,n,o)}static on(e,t){return nt.on(e,t)}static emit(e,t){return nt.emit(e,t)}static create(t){return e.instance&&!Le.usedByHierophant&&$ez.console.warn("Replacing an existing Haven instance. Are you sure this behaviour is intended?"),e.instance=new e(t),e.instance.init(),e.instance}static getInstance(){if(e.instance)return e.instance;$ez.console.error("No Haven instance found. Make sure to create a Haven instance before attempting to access it.")}static removeCookies(e,t){for(const n of e)gn.removeCookie(n,t)}};u(Wt,"__ez_queue",{}),u(Wt,"handleConsentCbs"),u(Wt,"onConsentCbs"),u(Wt,"onConsentNoCbs"),u(Wt,"consent_queue"),u(Wt,"instance");const Yt=Wt,Kt=e=>{const t=He(`${h}-${e}`);return void 0===t?!Be():"true"!==t};function Qt(e){const t="elementBlock",n=je(`${t}Title`),o=je(`${t}Body`),i=je(`${t}Button`),a=`\n
\n
\n
\n

${n}

\n

${o}

\n
\n
\n \n
\n
\n
\n `;Y.querySelectorAll(e?`[${A}="${e}"]`:`[${A}]`).forEach((e=>{var t;const n=crypto.randomUUID(),o=e.getAttribute(A);if(o&&Kt(o))if("IFRAME"===e.tagName)e.setAttribute(`${m}-cb-src`,e.src),e.src="about:blank",e.srcdoc=a.replace("{{func}}",`window.parent.Haven.emit('openCookieManager', '${o}')`).replace("{{purpose}}",je(`purposes.${o}.name`)),e.setAttribute(`${m}-cb-tag`,n),e.setAttribute(A,o),Yt.__ez_queue[n]={el:e};else if("SCRIPT"!==e.tagName){const i=ke("iframe");i.frameBorder="0",e.id&&(i.id=e.id),e.style&&(i.style=e.style),e.className&&(i.className=e.className),i.width=e.width??e.clientWidth,i.height=e.height??e.clientHeight,i.srcdoc=a.replace("{{func}}",`window.parent.Haven.emit('openCookieManager', '${o}')`).replace("{{purpose}}",je(`purposes.${o}.name`)),i.setAttribute(`${m}-cb-tag`,n),i.setAttribute(A,o),null==(t=e.parentNode)||t.replaceChild(i,e),Yt.__ez_queue[n]={el:e,category:o},e.remove()}}))}function Xt(e){Object.entries(Yt.__ez_queue??{}).forEach((([t,n])=>{var o;const{el:i}=n,a=Y.querySelector(`[${m}-cb-tag="${t}"]`);(null==a?void 0:a.getAttribute(A))===e&&(null!=a&&a.getAttribute(`${m}-cb-src`)?(a.removeAttribute("srcdoc"),a.src=a.getAttribute(`${m}-cb-src`),a.removeAttribute(`${m}-cb-src`),a.removeAttribute(`${m}-cb-tag`)):null==(o=a.parentNode)||o.replaceChild(i,a))}))}function Jt(e){Qt(e)}function en(e){return new Promise((t=>{const n=setTimeout((()=>{clearTimeout(n),t(!0)}),e)}))}const tn=e=>{var t;const n=new URLSearchParams,o=encodeURIComponent(we(null==(t=Le.consent)?void 0:t.payload));return n.append(`${g}${y}`,o),e&&n.append(`${g}${b}`,e),n.toString()},nn=e=>{switch(e){case"accept":case"decline":case"partial-accept":case"accept-all":case"decline-all":return!0;default:return!1}};function on(e,t="false"){var n;if(Fe("FEATURE_CONSENT_SHARING")&&!0===(null==(n=Le.consent)?void 0:n.enabled)||Fe("FEATURE_CONSENT_LOG_WRITE")){if(e===`${h}-hide-banner`)return;Le.consentQueue||(Le.consentQueue=[]),Le.api.failCount_cca=0,Le.api.failCount_tpc=0;const n={uuid:Le.uuid,gpc:!!Le.gpc.enabled,mode:Le.type,action:Le.lastAction,[e]:"true"===t};Le.consentQueue=Le.consentQueue.filter((t=>!t[e])),Le.consentQueue.push(n),$ez_d("[Queued Consent Action]",n),Le.usedByHierophant||async function(){var e;if(Le.consent&&(4===(null==(e=Le.consentQueue)?void 0:e.length)||Le.lastAction&&!nn(Le.lastAction))){for(const e of Le.consentQueue)Le.consent.payload={...Le.consent.payload,...e,action:Le.lastAction};for(const e of O){Le.lastAction&&!nn(Le.lastAction)&&"page-view"!==Le.lastAction&&(Le.consent.payload[`${h}-${e}`]=void 0);const t=Le.consent.payload[`${h}-${e}`];!0===t?Xt(e):!1===t&&Jt(e)}Le.consentQueue=[],$ez_d("[Sending Consent Action]",Le.consent.payload,Le);const e=async()=>{var e,t;if(Le.lastAction&&!nn(Le.lastAction))return;const n=null==(e=q("cookies"))?void 0:e.expireDeclineAfter;for(const e of O){const o=null==(t=Le.consent)?void 0:t.payload[`${h}-${e}`];sn.setFirstParty(`${h}-${e}`,o,n&&!o?{...Le.cookieAttributes,expires:n}:Le.cookieAttributes)}},t=e=>{const t=ie().get(`${g}_analyticsHost`),n=`/api/public/v1/analytics/${Le.uuid}?${e}`;return t?`${t}${n}`:Le.isSSR?`X_CUSTOMER_WORKER_API${n}`:Le.apiHost?`https://${Le.apiHost}${n}`:`https://app.${p}.com${n}`},n=[500,1e3,2e3,4e3],o=async()=>{var i;const a=tn(Le.apiHost),s=t(a).replace("stores.","app."),c=await fetch(s,{keepalive:!0}).catch((async()=>{var t;if(Le.api.failCount_cca<=3){Le.api.failCount_cca++;const e=Math.round(n[Le.api.failCount_cca-1]+n[Le.api.failCount_cca-1]*Math.random());$ez_d(`Consent record failed, retrying after ${e}ms...`),await en(e),await o()}else"page-view"!==(null==(t=Le.consent)?void 0:t.payload.action)&&$ez_d("Consent record failed, reverting to first party cookies..."),await e()}));try{if(c.ok&&(await c.json()).ok){const e=Y.getElementById("forget-consent");e&&(Le.forgotServerSideConsent=!1,e.innerText=e.innerText.replace("✓",""))}else if(Le.api.failCount_cca<=3){Le.api.failCount_cca++;const e=Math.round(n[Le.api.failCount_cca-1]+n[Le.api.failCount_cca-1]*Math.random());$ez_d(`Consent record failed, retrying after ${e}ms...`),await en(e),await o()}else"page-view"!==(null==(i=Le.consent)?void 0:i.payload.action)&&$ez_d("Consent record failed, reverting to first party cookies..."),await e()}catch{}};await e(),await o(),Le.refreshOnDeclineOptOut&&"optout"===Oe()&&("decline"===Le.lastAction||"decline-all"===Le.lastAction)&&ae().reload()}}()}}class an{static set(e,t,n){on(e,t);try{$ez&&(null==$ez||!$ez.consents)&&($ez.consents={});let n=!1;"true"===t?n=!0:"false"===t&&(n=!1),$ez&&($ez.consents[e]=n)}catch{}an.setFirstParty(e,t,n)}static setFirstParty(e,t,n){var o,i;const a=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),s=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=an.encodeAttributes(an.resolveOptions(n)),r=null==(i=null==(o=ct())?void 0:o.getAttribute("ez-opts"))?void 0:i.includes("samesite-none");Y.cookie=`${a}=${s}${c}${r?";SameSite=None;Secure":""}`}static get(e){var t,n;let o=!0;if(null!=$ez&&$ez.cookies&&(o=$ez.cookies.state.read,$ez.cookies.state.read=!0),"boolean"==typeof(null==(t=null==$ez?void 0:$ez.consents)?void 0:t[e])&&!0===(null==(n=Le.consent)?void 0:n.enabled))return null!=$ez&&$ez.cookies&&($ez.cookies.state.read=o),null==$ez?void 0:$ez.consents[e].toString();const i=Y.cookie?Y.cookie.split("; "):[];for(const t of i){const n=t.split("=");if(e===Q(n[0]??"")){let e=n.slice(1).join("=");return'"'===e.charAt(0)&&(e=e.slice(1,-1)),e=Q(e),null!=$ez&&$ez.cookies&&($ez.cookies.state.read=o),e}}}static getAll(){const e=Y.cookie?Y.cookie.split("; "):[],t={};for(const n of e){const e=n.split("="),o=Q(e[0]??"");let i=e.slice(1).join("=");'"'===i.charAt(0)&&(i=i.slice(1,-1)),i=Q(i),t[o]=i}return t}static remove(e,t={}){const n=an.resolveOptions(Object.assign(t,{expires:-1}));if(e instanceof RegExp)return an.removeByRegex(e,n);const o=an.encodeAttributes(n);Y.cookie=`${e}=''${o}`,an.set(e,"",n),on(e)}static removeByRegex(e,t){Object.keys(an.getAll()).map((n=>{if(e.test(n)){const e=an.encodeAttributes(t);Y.cookie=`${n}=''${e}`,an.set(n,"",t),on(n)}}))}static encodeAttributes(e){let t="";for(const n of Object.keys(e)){const o=e[n];o&&(t+=`; ${n}`,"string"==typeof o&&(t+=`=${o.split(";")[0]}`))}return t}static resolveOptions(e){var t,n,o,i,a,s;return e&&"number"==typeof e.expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e&&e.expires instanceof Date&&(e.expires=e.expires.toUTCString()),e&&null!=(n=null==(t=Le.consent)?void 0:t.subdomain)&&n.enabled&&null!=(i=null==(o=Le.consent)?void 0:o.subdomain)&&i.scope&&(s=Le.consent.subdomain.scope,$t(ae().hostname,s.startsWith(".")?s.substring(1):s)?null!=(a=Le.consent)&&a.subdomain.scope.startsWith(".")?e.domain=Le.consent.subdomain.scope:e.domain=`.${Le.consent.subdomain.scope}`:($ez.console.warn(`[consent] subdomain scope ${Le.consent.subdomain.scope} doesn't include ${ae().hostname}`),e.domain=`.${ae().hostname}`)),{path:"/",...e}}static getServiceCookieDomain(){var e,t,n,o,i,a,s,c,r,l,d;let u=ae().hostname;return null!=(t=null==(e=Le.consent)?void 0:e.subdomain)&&t.enabled&&null!=(o=null==(n=Le.consent)?void 0:n.subdomain)&&o.scope?u=`.${ae().hostname}`:null!=(s=null==(a=null==(i=Le.consent)?void 0:i.subdomain)?void 0:a.scope)&&s.startsWith(".")?u=Le.consent.subdomain.scope:null!=(r=null==(c=Le.consent)?void 0:c.subdomain)&&r.scope&&(u=`.${null==(d=null==(l=Le.consent)?void 0:l.subdomain)?void 0:d.scope}`),u}}const sn=an,cn=()=>window.enzuzoGtmTemplateVersion??1,rn=e=>e?"granted":"denied",ln=()=>void 0!==(()=>{var e;return null==(e=null==$ez?void 0:$ez.consentMode)?void 0:e.gtagScriptVersion})(),dn=e=>{const t={ad_storage:rn(e.marketing),analytics_storage:rn(e.analytics),functionality_storage:"granted",personalization_storage:rn(e.preferences),security_storage:"granted"};return(e=>e>=2||ln())(cn())&&($ez_d("Consent mode v2 supported. Adding fields."),t.ad_user_data=rn(e.marketing),t.ad_personalization=rn(e.marketing)),t},un=()=>{Le.autoGtmConsent&&(window.enzuzoGtmConsent?($ez_d("Automatically signaling template."),window.enzuzoGtmConsent()):ln()&&($ez_d("Signaling consent via gtag API."),(()=>{var e;window.gtag?(window.gtag("consent","update",window.enzuzoGtmConsentObj??{}),null==(e=window.dataLayer)||e.push({event:"enzuzo_consent_update"})):$ez_d("No gtag function found. Is your gtag script set up correctly?")})()))},pn=()=>{if(!Le.usedByHierophant){const e=dn(gn.getServiceCookies());$ez_d("Setting GTM template consent: ",e),window.enzuzoGtmConsentObj=e}};class fn{constructor(e="opt-in",t={},n=[]){u(this,"attributes"),u(this,"enabledCategoriesList"),u(this,"type"),this.type=e,this.attributes=t,this.enabledCategoriesList=n}static fromStore(){return new fn(Le.type,Le.cookieAttributes)}static getCookie(e){return sn.get(e)}static setCookie(e,t,n){sn.set(e,t,n)}static removeCookie(e,t){sn.remove(e,t)}static cookieExists(e){return void 0!==sn.get(e)&&""!==sn.get(e)}enableFunctionalCookie(){for(const e of Le.purposes)"functional"===e&&(fn.setCookie(`${h}-${e}`,"true",this.attributes),nt.emit(`${e}-enabled`))}static onlyShowBannerOnce(e){e?sn.setFirstParty(`${h}-hide-banner`,"true"):sn.remove(`${h}-hide-banner`)}static shouldShowBanner(){return!fn.cookieExists(`${h}-hide-banner`)}hasFunctionalCookie(){return fn.cookieExists(`${h}-functional`)}enableToggled(){var e;for(const e of O)this.enabledCategoriesList.includes(e)?this.enableCookies(e):"functional"!==e&&this.disableCookies(e);for(const t of this.enabledCategoriesList)null==(e=Yt.consent_queue)||e.flush("marketing"),Yt.handleConsentCbs("marketing");un()}toggleCookieOn(e){this.enabledCategoriesList.includes(e)||this.enabledCategoriesList.push(e)}toggleCookieOff(e){this.enabledCategoriesList=this.enabledCategoriesList.filter((t=>t!==e))}enableCookies(e){Le.notification.noConsentModeEnabled||fn.setCookie(`${h}-${e}`,"true",this.attributes),nt.emit(`${e}-enabled`)}disableCookies(e){var t;if("functional"===e)return;const n=null==(t=q("cookies"))?void 0:t.expireDeclineAfter;fn.setCookie(`${h}-${e}`,"false",n?{...this.attributes,expires:n}:this.attributes),nt.emit(`${e}-disabled`)}hasAllCookiesSet(){const e=Ne();for(const t of e){const e=`${h}-${t}`;if(!fn.cookieExists(e))return!1}return!0}hasCookiesEnabled(e){if("functional"===e||!Le.containedServiceCategories.includes(e)||Le.notification.noConsentModeEnabled||Le.categoriesToggle[e]||this.enabledCategoriesList.includes(e))return!0;const t=fn.getCookie(`${h}-${e}`);return Be()?void 0===t||"true"===t:(Le.type,"true"===t)}setEnabledList(){Ne().map((e=>{this.hasCookiesEnabled(e)&&this.toggleCookieOn(e)}))}clearEnabledList(){this.enabledCategoriesList=[]}hasAllNecessaryCookiesEnabled(e=[]){for(const t of e)if(!this.hasCookiesEnabled(t))return!1;return!0}enableAllCookies(e){O.forEach((e=>this.enableCookies(e))),nt.emit("accept-all",e)}disableAllCookies(e){O.forEach((e=>this.disableCookies(e))),nt.emit("decline-all",e)}static getServiceCookiesConsent(){const e=new Map([["true",!0],["false",!1],[void 0,null]]);return O.reduce(((t,n)=>({...t,[n]:e.get(fn.getCookie(`${h}-${n}`))??null})),{})}static getServiceCookies(){var e,t;return{analytics:"true"===fn.getCookie(`${h}-analytics`),marketing:"true"===fn.getCookie(`${h}-marketing`),preferences:"true"===fn.getCookie(`${h}-preferences`),functional:"true"===(fn.getCookie(`${h}-functional`)??"true"),saleOfData:(null==(t=null==(e=window.Shopify)?void 0:e.customerPrivacy)?void 0:t.saleOfDataAllowed())??!0}}}const gn=fn;var mn={exports:{}};!function(e){e.exports=function(e){function t(e,n){if(e[n])return e[n];var o=n.split("."),i=o.shift();return e[i]?t(e[i],o.join(".")):null}function n(e,t,o){for(var i in e)"object"!=typeof e[i]?t.push(void 0!==o?o+"."+i:i):n(e[i],t,void 0!==o?o+"."+i:i)}return function(o,i){void 0===i&&(i={autoescape:!0});var a,s="{{\\s?#if\\s+(!)?\\((.+)\\)\\s?}}",c="{{\\s?/if\\s?}}",r=s+"[\\s\\S]+?"+c,l=e,d=[];for(n(o,d);a=new RegExp(r,"g").exec(e);){for(var u=!0,p=!!a[1],f=a[2].replace(/\s+/g,"").split(","),g=0;g"']/g,(function(e){return i.autoescape&&{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]||e})))}));var b=e;return e=l,b}}}(mn);const hn=Ve(mn.exports),bn=(e,t)=>{var n,o,i,a;if("shopify"!==e||"object"!=typeof window.Shopify)return t;$ez_d("raw customPPURL",t);return hn(t)({shopify:{routes:{root:null==(o=null==(n=window.Shopify)?void 0:n.routes)?void 0:o.root},locale:null==(i=window.Shopify)?void 0:i.locale,country:null==(a=window.Shopify)?void 0:a.country}})};const yn=e=>{const t=[];return!e||Array.isArray(e)||null!=e&&e.push?e:(Object.entries(e).forEach((([e,n])=>{t.push(n)})),t)};function vn(e){return e.split(";").map((e=>{const[t,n]=e.split("=",2);return{name:t,value:n}}))}function zn(e){const t=Object.fromEntries(["id","className","href","src","integrity","innerHTML","outerHTML","innerText"].map((t=>[t,e[t]])));return t.style=e.style.cssText,t}const kn=Object.freeze(Object.defineProperty({__proto__:null,categorize:function(e){const t=Object.create(null);return e.forEach((e=>{const n=e.category??"other";n in t||(t[n]=[]),t[n].push(e)})),t},cookieStringToObject:vn,findElementsByKeyword:(e,t,n)=>{const o={};for(const i of n){o[i]=[];for(const n of e)n[t].includes(i)&&o[i].push(n)}return o},findElementsByRegex:(e,t,n)=>{const o={};for(const i of n){o[i]=[];for(const n of e)i.test(n[t])&&o[i].push(n)}return o},jsonify_element:zn,stringify_json:function(e){return JSON.stringify(e,null,2)}},Symbol.toStringTag,{value:"Module"}));function wn(e){return function(t){return(t.cookies||(t.document?vn(t.document.cookie):[])).map((t=>({match:t[e]||"",payload:t})))}}const Cn=wn("name"),xn=wn("value"),$n=wn("domain"),_n=wn("path"),An=Object.freeze(Object.defineProperty({__proto__:null,cookie_domain:$n,cookie_name:Cn,cookie_path:_n,cookie_value:xn},Symbol.toStringTag,{value:"Module"}));function Sn(e,t,n){return o=>{if(!o.document)return[];const i=[];for(const a of o.document.querySelectorAll(e))!!a[t]===n&&i.push({match:a[t],payload:zn(a)});return i}}const En=Sn("script","integrity",!1),Ln=Sn("link","integrity",!1),Tn=Sn("script","src",!0),Bn=Sn("script","innerHTML",!0),In=Sn("a","innerText",!0),Mn=Sn("[class]","className",!0),Rn=Sn("[href]","href",!0),Nn=Sn("iframe","src",!0),On=Sn("iframe","title",!0),Hn=Sn("meta","content",!0),Pn=Sn("[src]","src",!0),Dn=Sn("link","href",!0),Fn=Sn("img","src",!0);const jn={email:e=>{if(!e.document)return[];return e.document.documentElement.innerHTML.match(/([a-zA-Z0-9._+-]+@[a-zA-Z0-9._-]+)/g).map((e=>({match:e})))||[]},html:e=>e.document?[{match:e.document.documentElement.innerHTML}]:[],shopify_script:function(e){if(!e.document)return[];const t=[];for(const n of e.document.getElementsByTagName("script")){const e=n.innerHTML;if(e.includes("asyncLoad"))for(const n of e.matchAll(/(?:")(.*?)(?=")/g)||[])n[1].length>1&&t.push({match:n[1].replaceAll("\\/","/")})}return t},comment:function(e){if(!e.document)return[];const t=e.document.createNodeIterator(document,NodeFilter.SHOW_COMMENT),n=[];for(;;){const e=t.nextNode();if(!e)break;n.push({match:e.nodeValue||""})}return n},response_headers:e=>{if(!e.response_headers)return[];const t=[];for(const[n,o]of Object.entries(e.response_headers))t.push({match:`${n}:${o}`,payload:{key:n,value:o}});return t},shopify_theme:e=>e.Shopify?[{match:e.Shopify.theme.name}]:[],...Object.freeze(Object.defineProperty({__proto__:null,anchor_text:In,class_name:Mn,href:Rn,iframe_src:Nn,iframe_title:On,img_src:Fn,link_href:Dn,link_integrity:Ln,meta_content:Hn,script_content:Bn,script_integrity:En,script_src:Tn,src:Pn},Symbol.toStringTag,{value:"Module"})),...An};function Un(e){return function(t,n){return n.map((t=>"string"==typeof t?new RegExp(t,e):t)).map((e=>e.global?t.matchAll(e):t.match(e))).map((e=>e?Array.from(e):null)).filter((e=>null!=e)).flat(2)}}const Vn={regex:Un(""),iregex:Un("i"),keywords:function(e,t){return"string"!=typeof e?[]:t.filter((t=>e.includes(t)))}},Gn=kn;function qn(e,t){try{return"function"==typeof e?e(...Object.value(t)):new Function(...Object.keys(t),`return (${Array.isArray(e)?e.join("\n"):e})`).apply(null,Object.values(t))}catch(e){return void window.__enzuzo.console.error("Error evaluating display fields",e.message,e)}}function Zn(e,t){const n={...e,matched_rules:t};if(delete n.rules,e.message){const o=qn(e.message,{matched:t});o&&(n.message_result=o)}return n}const Wn=Object.freeze(Object.defineProperty({__proto__:null,ARGES_VERSION:"0.0.1",extractors:jn,match_rules:function(e,t){const n=[];e:for(const o of t)for(const t of o.rules){const i=[],a=Array.isArray(t.extractor)?t.extractor:[t.extractor];for(const n of a){const o=jn[n];if(o)try{i.push(...o(e))}catch(e){window.__enzuzo.console.warn(`Extractor error for ${t.name}/${n}`,e.message,e)}else window.__enzuzo.console.warn("Unknown extractor",n)}const s=Vn[t.matcher];if(!s){window.__enzuzo.console.warn("Unknown matcher",t.matcher);continue}const c=[];for(const e of i){let i=[];try{i=s(e.match,t.patterns)||[]}catch(e){window.__enzuzo.console.warn(`Matcher error for ${t.name}/${t.matcher}`,e.message,e);continue}i.length>0&&(t.display&&(t.display_result=Object.fromEntries(Object.entries(t.display).map((([t,n])=>[t,qn(n,{extracted:e,matched:i})])).filter((([,e])=>void 0!==e)))),c.push({extract_result:e,match_result:i,...t}));let a="continue";switch(a=i.length>0?t.onmatch||(t.onfail?"continue":"match"):t.onfail||"continue",a){case"match":case"fail":{const e=o.add_when??"match";(e===a||"always"===e)&&n.push(Zn(o,c));continue e}case"continue":break;default:window.__enzuzo.console.warn("Unknown action",a)}}const r=o.add_when??"match";("always"===r||"match"===r&&c.length>0||"fail"===r&&0===c.length)&&n.push(Zn(o,c))}return n},matchers:Vn,utils:Gn},Symbol.toStringTag,{value:"Module"})),Yn=e=>{const t=[];for(const n of e)ge(n)?t.push(n):window.__enzuzo.console.debug(`Invalid value for hide UI banner mode ${n}. Ignoring.`);return t},Kn=class e{constructor(e,t){var n,o;u(this,"disableWebsiteBannerModes"),u(this,"disableScrollBannerModes"),this.disableWebsiteBannerModes=Yn((null==(n=null==e?void 0:e.bodyLock)?void 0:n.enabled)??[]),this.disableScrollBannerModes=Yn((null==(o=null==e?void 0:e.bodyLock)?void 0:o.scrollLock)??[])}shouldLockBody(){const e=Oe();return this.disableWebsiteBannerModes.includes(e)}shouldDisableScroll(){const e=Oe();return this.shouldLockBody()&&this.disableScrollBannerModes.includes(e)}static init(t,n){e.instance=new e(t,n)}};u(Kn,"instance");let Qn=Kn;const Xn=e=>{const t=[];for(const n of e)ge(n)?t.push(n):$ez_d(`Invalid value for hide UI banner mode ${n}. Ignoring.`);return t},Jn=class e{constructor(e){var t,n;u(this,"hideAcceptBannerModes"),u(this,"hideDeclineBannerModes"),this.hideAcceptBannerModes=Xn((null==(t=null==e?void 0:e.hideButtons)?void 0:t.accept)??[]),this.hideDeclineBannerModes=Xn((null==(n=null==e?void 0:e.hideButtons)?void 0:n.decline)??[])}static init(t){e.instance=new e(t)}shouldHideAccept(){return this.hideAcceptBannerModes.includes(Oe())}shouldHideDecline(){return this.hideDeclineBannerModes.includes(Oe())}};u(Jn,"instance");let eo=Jn;const to={"Facebook Pixel":{onConsent:e=>{var t;["marketing","all"].includes(e)&&(null==(t=window.fbq)||t.call(window,"consent","grant"))},onDecline:()=>{var e;null==(e=window.fbq)||e.call(window,"consent","revoke")}},"Google Tag Manager":{onConsent:Ut,onDecline:Ft},"Google Analytics":{onConsent:Ut,onDecline:Ft}},no=(null==(t=null==window?void 0:window.enzuzoEvents)?void 0:t.onConsent)||(()=>{}),oo=(null==(n=null==window?void 0:window.enzuzoEvents)?void 0:n.onDecline)||(()=>{}),io=(null==(o=null==window?void 0:window.enzuzoEvents)?void 0:o.onDismiss)||(()=>{}),ao=(null==(i=null==window?void 0:window.enzuzoEvents)?void 0:i.onInit)||(()=>{});var so={sep:"/",basename:e=>e.split("/").pop()||""},co={};const ro=so,lo="\\\\/",uo=`[^${lo}]`,po="\\.",fo="\\/",go="[^/]",mo=`(?:${fo}|$)`,ho=`(?:^|${fo})`,bo=`${po}{1,2}${mo}`,yo={DOT_LITERAL:po,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:fo,ONE_CHAR:"(?=.)",QMARK:go,END_ANCHOR:mo,DOTS_SLASH:bo,NO_DOT:`(?!${po})`,NO_DOTS:`(?!${ho}${bo})`,NO_DOT_SLASH:`(?!${po}{0,1}${mo})`,NO_DOTS_SLASH:`(?!${bo})`,QMARK_NO_DOT:`[^.${fo}]`,STAR:`${go}*?`,START_ANCHOR:ho},vo={...yo,SLASH_LITERAL:`[${lo}]`,QMARK:uo,STAR:`${uo}*?`,DOTS_SLASH:`${po}{1,2}(?:[${lo}]|$)`,NO_DOT:`(?!${po})`,NO_DOTS:`(?!(?:^|[${lo}])${po}{1,2}(?:[${lo}]|$))`,NO_DOT_SLASH:`(?!${po}{0,1}(?:[${lo}]|$))`,NO_DOTS_SLASH:`(?!${po}{1,2}(?:[${lo}]|$))`,QMARK_NO_DOT:`[^.${lo}]`,START_ANCHOR:`(?:^|[${lo}])`,END_ANCHOR:`(?:[${lo}]|$)`};var zo={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ro.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return!0===e?vo:yo}};!function(e){const t=so,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:a}=zo;e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>i.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(n,"/"),e.removeBackslashes=e=>e.replace(o,(e=>"\\"===e?"":e)),e.supportsLookbehinds=()=>!0,e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:"\\"===t.sep,e.escapeLast=(t,n,o)=>{const i=t.lastIndexOf(n,o);return-1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let o=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o}}(co);const ko=co,{CHAR_ASTERISK:wo,CHAR_AT:Co,CHAR_BACKWARD_SLASH:xo,CHAR_COMMA:$o,CHAR_DOT:_o,CHAR_EXCLAMATION_MARK:Ao,CHAR_FORWARD_SLASH:So,CHAR_LEFT_CURLY_BRACE:Eo,CHAR_LEFT_PARENTHESES:Lo,CHAR_LEFT_SQUARE_BRACKET:To,CHAR_PLUS:Bo,CHAR_QUESTION_MARK:Io,CHAR_RIGHT_CURLY_BRACE:Mo,CHAR_RIGHT_PARENTHESES:Ro,CHAR_RIGHT_SQUARE_BRACKET:No}=zo,Oo=e=>e===So||e===xo,Ho=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};const Po=zo,Do=co,{MAX_LENGTH:Fo,POSIX_REGEX_SOURCE:jo,REGEX_NON_SPECIAL_CHARS:Uo,REGEX_SPECIAL_CHARS_BACKREF:Vo,REPLACEMENTS:Go}=Po,qo=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map((e=>Do.escapeRegex(e))).join("..")}return n},Zo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Wo=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Go[e]||e;const n={...t},o="number"==typeof n.maxLength?Math.min(Fo,n.maxLength):Fo;let i=e.length;if(i>o)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`);const a={type:"bos",value:"",output:n.prepend||""},s=[a],c=n.capture?"":"?:",r=Do.isWindows(t),l=Po.globChars(r),d=Po.extglobChars(l),{DOT_LITERAL:u,PLUS_LITERAL:p,SLASH_LITERAL:f,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:h,NO_DOT_SLASH:b,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:z,STAR:k,START_ANCHOR:w}=l,C=e=>`(${c}(?:(?!${w}${e.dot?m:u}).)*?)`,x=n.dot?"":h,$=n.dot?v:z;let _=!0===n.bash?C(n):k;n.capture&&(_=`(${_})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const A={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Do.removePrefix(e,A),i=e.length;const S=[],E=[],L=[];let T,B=a;const I=()=>A.index===i-1,M=A.peek=(t=1)=>e[A.index+t],R=A.advance=()=>e[++A.index]||"",N=()=>e.slice(A.index+1),O=(e="",t=0)=>{A.consumed+=e,A.index+=t},H=e=>{A.output+=null!=e.output?e.output:e.value,O(e.value)},P=()=>{let e=1;for(;"!"===M()&&("("!==M(2)||"?"===M(3));)R(),A.start++,e++;return e%2!=0&&(A.negated=!0,A.start++,!0)},D=e=>{A[e]++,L.push(e)},F=e=>{A[e]--,L.pop()},j=e=>{if("globstar"===B.type){const t=A.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||S.length&&("pipe"===e.type||"paren"===e.type);"slash"!==e.type&&"paren"!==e.type&&!t&&!n&&(A.output=A.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=_,A.output+=B.output)}if(S.length&&"paren"!==e.type&&(S[S.length-1].inner+=e.value),(e.value||e.output)&&H(e),B&&"text"===B.type&&"text"===e.type)return B.value+=e.value,void(B.output=(B.output||"")+e.value);e.prev=B,s.push(e),B=e},U=(e,t)=>{const o={...d[t],conditions:1,inner:""};o.prev=B,o.parens=A.parens,o.output=A.output;const i=(n.capture?"(":"")+o.open;D("parens"),j({type:e,value:t,output:A.output?"":g}),j({type:"paren",extglob:!0,value:R(),output:i}),S.push(o)},V=e=>{let o,i=e.close+(n.capture?")":"");if("negate"===e.type){let a=_;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=C(n)),(a!==_||I()||/^\)+$/.test(N()))&&(i=e.close=`)$))${a}`),e.inner.includes("*")&&(o=N())&&/^\.[^\\/.]+$/.test(o)){const n=Wo(o,{...t,fastpaths:!1}).output;i=e.close=`)${n})${a})`}"bos"===e.prev.type&&(A.negatedExtglob=!0)}j({type:"paren",extglob:!0,value:T,output:i}),F("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,i=e.replace(Vo,((e,t,n,i,a,s)=>"\\"===i?(o=!0,e):"?"===i?t?t+i+(a?v.repeat(a.length):""):0===s?$+(a?v.repeat(a.length):""):v.repeat(n.length):"."===i?u.repeat(n.length):"*"===i?t?t+i+(a?_:""):_:t?e:`\\${e}`));return!0===o&&(i=!0===n.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===n.contains?(A.output=e,A):(A.output=Do.wrapOutput(i,A,t),A)}for(;!I();){if(T=R(),"\0"===T)continue;if("\\"===T){const e=M();if("/"===e&&!0!==n.bash||"."===e||";"===e)continue;if(!e){T+="\\",j({type:"text",value:T});continue}const t=/^\\+/.exec(N());let o=0;if(t&&t[0].length>2&&(o=t[0].length,A.index+=o,o%2!=0&&(T+="\\")),!0===n.unescape?T=R():T+=R(),0===A.brackets){j({type:"text",value:T});continue}}if(A.brackets>0&&("]"!==T||"["===B.value||"[^"===B.value)){if(!1!==n.posix&&":"===T){const e=B.value.slice(1);if(e.includes("[")&&(B.posix=!0,e.includes(":"))){const e=B.value.lastIndexOf("["),t=B.value.slice(0,e),n=B.value.slice(e+2),o=jo[n];if(o){B.value=t+o,A.backtrack=!0,R(),!a.output&&1===s.indexOf(B)&&(a.output=g);continue}}}("["===T&&":"!==M()||"-"===T&&"]"===M())&&(T=`\\${T}`),"]"===T&&("["===B.value||"[^"===B.value)&&(T=`\\${T}`),!0===n.posix&&"!"===T&&"["===B.value&&(T="^"),B.value+=T,H({value:T});continue}if(1===A.quotes&&'"'!==T){T=Do.escapeRegex(T),B.value+=T,H({value:T});continue}if('"'===T){A.quotes=1===A.quotes?0:1,!0===n.keepQuotes&&j({type:"text",value:T});continue}if("("===T){D("parens"),j({type:"paren",value:T});continue}if(")"===T){if(0===A.parens&&!0===n.strictBrackets)throw new SyntaxError(Zo("opening","("));const e=S[S.length-1];if(e&&A.parens===e.parens+1){V(S.pop());continue}j({type:"paren",value:T,output:A.parens?")":"\\)"}),F("parens");continue}if("["===T){if(!0!==n.nobracket&&N().includes("]"))D("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Zo("closing","]"));T=`\\${T}`}j({type:"bracket",value:T});continue}if("]"===T){if(!0===n.nobracket||B&&"bracket"===B.type&&1===B.value.length){j({type:"text",value:T,output:`\\${T}`});continue}if(0===A.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Zo("opening","["));j({type:"text",value:T,output:`\\${T}`});continue}F("brackets");const e=B.value.slice(1);if(!0!==B.posix&&"^"===e[0]&&!e.includes("/")&&(T=`/${T}`),B.value+=T,H({value:T}),!1===n.literalBrackets||Do.hasRegexChars(e))continue;const t=Do.escapeRegex(B.value);if(A.output=A.output.slice(0,-B.value.length),!0===n.literalBrackets){A.output+=t,B.value=t;continue}B.value=`(${c}${t}|${B.value})`,A.output+=B.value;continue}if("{"===T&&!0!==n.nobrace){D("braces");const e={type:"brace",value:T,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};E.push(e),j(e);continue}if("}"===T){const e=E[E.length-1];if(!0===n.nobrace||!e){j({type:"text",value:T,output:T});continue}let t=")";if(!0===e.dots){const e=s.slice(),o=[];for(let t=e.length-1;t>=0&&(s.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=qo(o,n),A.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=A.output.slice(0,e.outputIndex),o=A.tokens.slice(e.tokensIndex);e.value=e.output="\\{",T=t="\\}",A.output=n;for(const e of o)A.output+=e.output||e.value}j({type:"brace",value:T,output:t}),F("braces"),E.pop();continue}if("|"===T){S.length>0&&S[S.length-1].conditions++,j({type:"text",value:T});continue}if(","===T){let e=T;const t=E[E.length-1];t&&"braces"===L[L.length-1]&&(t.comma=!0,e="|"),j({type:"comma",value:T,output:e});continue}if("/"===T){if("dot"===B.type&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",s.pop(),B=a;continue}j({type:"slash",value:T,output:f});continue}if("."===T){if(A.braces>0&&"dot"===B.type){"."===B.value&&(B.output=u);const e=E[E.length-1];B.type="dots",B.output+=T,B.value+=T,e.dots=!0;continue}if(A.braces+A.parens===0&&"bos"!==B.type&&"slash"!==B.type){j({type:"text",value:T,output:u});continue}j({type:"dot",value:T,output:u});continue}if("?"===T){if((!B||"("!==B.value)&&!0!==n.noextglob&&"("===M()&&"?"!==M(2)){U("qmark",T);continue}if(B&&"paren"===B.type){const e=M();let t=T;if("<"===e&&!Do.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===B.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(N()))&&(t=`\\${T}`),j({type:"text",value:T,output:t});continue}if(!0!==n.dot&&("slash"===B.type||"bos"===B.type)){j({type:"qmark",value:T,output:z});continue}j({type:"qmark",value:T,output:v});continue}if("!"===T){if(!0!==n.noextglob&&"("===M()&&("?"!==M(2)||!/[!=<:]/.test(M(3)))){U("negate",T);continue}if(!0!==n.nonegate&&0===A.index){P();continue}}if("+"===T){if(!0!==n.noextglob&&"("===M()&&"?"!==M(2)){U("plus",T);continue}if(B&&"("===B.value||!1===n.regex){j({type:"plus",value:T,output:p});continue}if(B&&("bracket"===B.type||"paren"===B.type||"brace"===B.type)||A.parens>0){j({type:"plus",value:T});continue}j({type:"plus",value:p});continue}if("@"===T){if(!0!==n.noextglob&&"("===M()&&"?"!==M(2)){j({type:"at",extglob:!0,value:T,output:""});continue}j({type:"text",value:T});continue}if("*"!==T){("$"===T||"^"===T)&&(T=`\\${T}`);const e=Uo.exec(N());e&&(T+=e[0],A.index+=e[0].length),j({type:"text",value:T});continue}if(B&&("globstar"===B.type||!0===B.star)){B.type="star",B.star=!0,B.value+=T,B.output=_,A.backtrack=!0,A.globstar=!0,O(T);continue}let t=N();if(!0!==n.noextglob&&/^\([^?]/.test(t)){U("star",T);continue}if("star"===B.type){if(!0===n.noglobstar){O(T);continue}const o=B.prev,i=o.prev,a="slash"===o.type||"bos"===o.type,s=i&&("star"===i.type||"globstar"===i.type);if(!0===n.bash&&(!a||t[0]&&"/"!==t[0])){j({type:"star",value:T,output:""});continue}const c=A.braces>0&&("comma"===o.type||"brace"===o.type),r=S.length&&("pipe"===o.type||"paren"===o.type);if(!a&&"paren"!==o.type&&!c&&!r){j({type:"star",value:T,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[A.index+4];if(n&&"/"!==n)break;t=t.slice(3),O("/**",3)}if("bos"===o.type&&I()){B.type="globstar",B.value+=T,B.output=C(n),A.output=B.output,A.globstar=!0,O(T);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!s&&I()){A.output=A.output.slice(0,-(o.output+B.output).length),o.output=`(?:${o.output}`,B.type="globstar",B.output=C(n)+(n.strictSlashes?")":"|$)"),B.value+=T,A.globstar=!0,A.output+=o.output+B.output,O(T);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";A.output=A.output.slice(0,-(o.output+B.output).length),o.output=`(?:${o.output}`,B.type="globstar",B.output=`${C(n)}${f}|${f}${e})`,B.value+=T,A.output+=o.output+B.output,A.globstar=!0,O(T+R()),j({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){B.type="globstar",B.value+=T,B.output=`(?:^|${f}|${C(n)}${f})`,A.output=B.output,A.globstar=!0,O(T+R()),j({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-B.output.length),B.type="globstar",B.output=C(n),B.value+=T,A.output+=B.output,A.globstar=!0,O(T);continue}const o={type:"star",value:T,output:_};!0!==n.bash?!B||"bracket"!==B.type&&"paren"!==B.type||!0!==n.regex?((A.index===A.start||"slash"===B.type||"dot"===B.type)&&("dot"===B.type?(A.output+=b,B.output+=b):!0===n.dot?(A.output+=y,B.output+=y):(A.output+=x,B.output+=x),"*"!==M()&&(A.output+=g,B.output+=g)),j(o)):(o.output=T,j(o)):(o.output=".*?",("bos"===B.type||"slash"===B.type)&&(o.output=x+o.output),j(o))}for(;A.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Zo("closing","]"));A.output=Do.escapeLast(A.output,"["),F("brackets")}for(;A.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Zo("closing",")"));A.output=Do.escapeLast(A.output,"("),F("parens")}for(;A.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Zo("closing","}"));A.output=Do.escapeLast(A.output,"{"),F("braces")}if(!0!==n.strictSlashes&&("star"===B.type||"bracket"===B.type)&&j({type:"maybe_slash",value:"",output:`${f}?`}),!0===A.backtrack){A.output="";for(const e of A.tokens)A.output+=null!=e.output?e.output:e.value,e.suffix&&(A.output+=e.suffix)}return A};Wo.fastpaths=(e,t)=>{const n={...t},o="number"==typeof n.maxLength?Math.min(Fo,n.maxLength):Fo,i=e.length;if(i>o)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`);e=Go[e]||e;const a=Do.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:c,ONE_CHAR:r,DOTS_SLASH:l,NO_DOT:d,NO_DOTS:u,NO_DOTS_SLASH:p,STAR:f,START_ANCHOR:g}=Po.globChars(a),m=n.dot?u:d,h=n.dot?p:d,b=n.capture?"":"?:";let y=!0===n.bash?".*?":f;n.capture&&(y=`(${y})`);const v=e=>!0===e.noglobstar?y:`(${b}(?:(?!${g}${e.dot?l:s}).)*?)`,z=e=>{switch(e){case"*":return`${m}${r}${y}`;case".*":return`${s}${r}${y}`;case"*.*":return`${m}${y}${s}${r}${y}`;case"*/*":return`${m}${y}${c}${r}${h}${y}`;case"**":return m+v(n);case"**/*":return`(?:${m}${v(n)}${c})?${h}${r}${y}`;case"**/*.*":return`(?:${m}${v(n)}${c})?${h}${y}${s}${r}${y}`;case"**/.*":return`(?:${m}${v(n)}${c})?${s}${r}${y}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=z(t[1]);return n?n+s+t[2]:void 0}}},k=Do.removePrefix(e,{negated:!1,prefix:""});let w=z(k);return w&&!0!==n.strictSlashes&&(w+=`${c}?`),w};const Yo=so,Ko=(e,t)=>{const n=t||{},o=e.length-1,i=!0===n.parts||!0===n.scanToEnd,a=[],s=[],c=[];let r,l,d=e,u=-1,p=0,f=0,g=!1,m=!1,h=!1,b=!1,y=!1,v=!1,z=!1,k=!1,w=!1,C=!1,x=0,$={value:"",depth:0,isGlob:!1};const _=()=>u>=o,A=()=>(r=l,d.charCodeAt(++u));for(;u0&&(E=d.slice(0,p),d=d.slice(p),f-=p),S&&!0===h&&f>0?(S=d.slice(0,f),L=d.slice(f)):!0===h?(S="",L=d):S=d,S&&""!==S&&"/"!==S&&S!==d&&Oo(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),!0===n.unescape&&(L&&(L=ko.removeBackslashes(L)),S&&!0===z&&(S=ko.removeBackslashes(S)));const T={prefix:E,input:e,start:p,base:S,glob:L,isBrace:g,isBracket:m,isGlob:h,isExtglob:b,isGlobstar:y,negated:k,negatedExtglob:w};if(!0===n.tokens&&(T.maxDepth=0,Oo(l)||s.push($),T.tokens=s),!0===n.parts||!0===n.tokens){let t;for(let o=0;o{if(Array.isArray(e)){const o=e.map((e=>ei(e,t,n)));return e=>{for(const t of o){const n=t(e);if(n)return n}return!1}}const o=(e=>e&&"object"==typeof e&&!Array.isArray(e))(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const i=t||{},a=Xo.isWindows(t),s=o?ei.compileRe(e,t):ei.makeRe(e,t,!1,!0),c=s.state;delete s.state;let r=()=>!1;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};r=ei(i.ignore,e,n)}const l=(n,o=!1)=>{const{isMatch:l,match:d,output:u}=ei.test(n,s,t,{glob:e,posix:a}),p={glob:e,state:c,regex:s,posix:a,input:n,output:u,match:d,isMatch:l};return"function"==typeof i.onResult&&i.onResult(p),!1===l?(p.isMatch=!1,!!o&&p):r(n)?("function"==typeof i.onIgnore&&i.onIgnore(p),p.isMatch=!1,!!o&&p):("function"==typeof i.onMatch&&i.onMatch(p),!o||p)};return n&&(l.state=c),l};ei.test=(e,t,n,{glob:o,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=n||{},s=a.format||(i?Xo.toPosixSlashes:null);let c=e===o,r=c&&s?s(e):e;return!1===c&&(r=s?s(e):e,c=r===o),(!1===c||!0===a.capture)&&(c=!0===a.matchBase||!0===a.basename?ei.matchBase(e,t,n,i):t.exec(r)),{isMatch:!!c,match:c,output:r}},ei.matchBase=(e,t,n,o=Xo.isWindows(n))=>(t instanceof RegExp?t:ei.makeRe(t,n)).test(Yo.basename(e)),ei.isMatch=(e,t,n)=>ei(t,n)(e),ei.parse=(e,t)=>Array.isArray(e)?e.map((e=>ei.parse(e,t))):Qo(e,{...t,fastpaths:!1}),ei.scan=(e,t)=>Ko(e,t),ei.compileRe=(e,t,n=!1,o=!1)=>{if(!0===n)return e.output;const i=t||{},a=i.contains?"":"^",s=i.contains?"":"$";let c=`${a}(?:${e.output})${s}`;e&&!0===e.negated&&(c=`^(?!${c}).*$`);const r=ei.toRegex(c,t);return!0===o&&(r.state=e),r},ei.makeRe=(e,t={},n=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(i.output=Qo.fastpaths(e,t)),i.output||(i=Qo(e,t)),ei.compileRe(i,t,n,o)},ei.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},ei.constants=Jo;const ti=Ve(ei),ni="javascript/blocked",oi="application/javascript",ii="text/javascript",ai=["functional","marketing","analytics","preferences"],si=[];let ci=["functional"];const ri={analytics:[],all:[],functional:[/.*enzuzo.*/],marketing:[],preferences:[],uncategorized:[]};function li(e){var t;"functional"!==e&&(Le.declineAll=!1),ci.includes(e)||ci.push(e),!Le.acceptAll&&ai.every((e=>ci.includes(e)))&&(Le.acceptAll=!0);for(const n of Le.integrations)if(e===n.category)for(const o of n.eventHandlers||[])"string"==typeof(null==o?void 0:o.onConsent)?new Function(o.onConsent)():null==(t=null==o?void 0:o.onConsent)||t.call(o,e);Ut(e),pi()}function di(e){var t;Le.acceptAll=!1,ci.includes(e)||ci.splice(ci.indexOf(e),1);for(const n of Le.integrations)e===n.category&&(null==(t=n.onDecline)||t.call(n));1===ci.length&&"functional"===ci[0]&&(Le.declineAll=!0),pi()}function ui(e){const t=e.src,n=e.getAttribute(_);let o=e.getAttribute(A),i=Le.integrations.find((e=>e.src===t));if(n&&(i=Le.integrations.find((e=>e.name===n))||i),o=null!=i&&i.category?null==i?void 0:i.category:o,"false"===Le.autoBlocking||"functional"===o||"allow"===Le.autoBlocking&&!o&&Le.apiLoaded||Le.acceptAll)return!0;const a=null==o?void 0:o.split(",").map((e=>e.split("+")));if(null!=a&&a.some((e=>e.every((e=>ci.includes(e))))))return!0;if(o)for(const e of ri[o]??[])if(e instanceof RegExp&&e.test(t)||e===t)return!0;return!1}function pi(){if(!function(e){return!!e.supportDoNotTrack&&("1"===W.doNotTrack||"1"===Z.doNotTrack||"yes"===Z.doNotTrack)}(Le)&&Le.categoryInitializationCompleted)for(let e=0;e{const{browserName:t}=function(){const e=(null==Z?void 0:Z.userAgent)??"";let t,n="desktop";return t=e.match(/chrome|chromium|crios/i)?"chrome":e.match(/firefox|fxios/i)?"firefox":e.match(/safari/i)?"safari":e.match(/opr\//i)?"opera":e.match(/edg/i)?"edge":e.match(/brave/i)?"brave":"unknown",e.match(/android/i)?n="android":e.match(/iphone/i)&&(n="ios"),{browserName:t,browserDevice:n}}();e.forEach((({addedNodes:e})=>{e.forEach((e=>{if((e=>(e=>1===e.nodeType)(e)&&"SCRIPT"===e.tagName)(e)&&(si.push({node:e,scriptType:e.type}),!ui(e)&&e.parentNode&&(e.parentNode.insertBefore(Y.createComment("This script might be blocked because of the cookie preferences."),e),e.type=ni),"firefox"===t)){const t=n=>{e.getAttribute("type")===ni&&n.preventDefault(),e.removeEventListener("beforescriptexecute",t)};e.addEventListener("beforescriptexecute",t)}}))}))})).observe(Y.documentElement,{childList:!0,subtree:!0}))}try{window.$ez=window.__enzuzo={...window.__enzuzo,cookies:Et}}catch{}const gi=ie();!function(e){try{window.__enzuzo.console={...window.console},window.__enzuzo.console=new Proxy(window.__enzuzo.console,{get(t,n){try{return"true"===e.get(`${g}debug`)?t[n].bind(window.__enzuzo.console,...(({logo:e,type:t})=>{let n="";const o=[];return e&&(n="%c ",o.push(U.logo)),"string"==typeof t?(n+=`%c${t}`,o.push(`${U.badges[t]}${j(!e)}`)):"object"==typeof t&&(n+=`%c${t.name.toLowerCase()}`,o.push(`${F(t.color)}${j(!e)}`)),o.unshift(n),o})({logo:!0,type:arguments.toString().includes("Error")||null!=t&&t.toString().includes("error")?`${H} (Error)`:H})):()=>{}}catch{console.error(P)}}})}catch{console.error(P)}}(gi);try{globalThis.$ez_d=$ez.console.debug}catch(Te){console.log(Te)}(()=>{Object.hasOwn||"hasOwn"in Object||(Object.hasOwn=Object.call.bind(Object.hasOwnProperty)),[].at||(Array.prototype.at=function(e){return-1===e?this[this.length-1]:this[e]}),"randomUUID"in crypto||(crypto.randomUUID=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16)))});const e=history.pushState;history.pushState=function(){const t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};const t=history.replaceState;history.replaceState=function(){const e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))}))})();const mi=Z.globalPrivacyControl;let hi;try{hi={"features":[""],"host":"stores.enzuzo.com","iplocation":{"country":"","subdivision":""},"plan":"","product":"enterprise","xReferral":"__enzuzo-cookiebar.js"}}catch{console.error("__ENZUZO_DATA__ was not set by server or is invalid"),hi={}}const bi=rt(),yi=void 0!==window.Shopify&&"object"==typeof window.Shopify?"shopify":"enterprise";$ez.path_prefix||($ez.path_prefix=`/apps/${p}/`);let vi="";"shopify"===yi&&null!=(s=null==(a=window.Shopify)?void 0:a.routes)&&s.root&&(vi=null==(r=null==(c=window.Shopify)?void 0:c.routes)?void 0:r.root,vi=vi.slice(0,-1));const zi="shopify"===yi?`${vi+$ez.path_prefix}privacy`:"/privacy-policy",ki=(null==bi?void 0:bi.get("bg"))||N.background,wi=(null==bi?void 0:bi.get("tx"))||N.textColor,Ci=(null==bi?void 0:bi.get("lc"))||N.linkColor,xi=(null==bi?void 0:bi.get("bbc"))||N.buttonBackgroundColor,$i=(null==bi?void 0:bi.get("bbch"))||N.buttonBackgroundColorHover,_i=(null==bi?void 0:bi.get("btc"))||N.buttonTextColor,Ai=(null==bi?void 0:bi.get("ppurl"))||"",Si=(null==bi?void 0:bi.get("fbp"))||"",Ei=(null==bi?void 0:bi.get("gtm"))||"",Li=(null==bi?void 0:bi.get("gid"))||"",Ti=(null==bi?void 0:bi.get("hb"))||"",Bi=(null==bi?void 0:bi.get("f"))||"false",Ii=gi.get(`${g}uuid`)||(null==$ez?void 0:$ez.uuid)||function(){var e;const t=ct();let n=null;return null!==t&&(n=new URL(t.src).searchParams.get("uuid"),null===n&&t.src.includes(k)&&(n=(null==(e=t.src.split("?").at(0))?void 0:e.split("/").at(-1))??null)),n}()||"",Mi={name:"enterprise",purposes:["analytics","marketing","preferences"],inject:()=>{}};let Ri=At;const Ni=(e,t)=>{var n,o,i;Le.usedByHierophant=t;const{enzuzoCode:a,urlParams:s,product:c,uuid:r,customerDataFromAPI:l,findServices:d}=e,u=t=>{Le.usedByHierophant||((()=>{const e=yn(te("regions",t));if(!q("groups")&&(!e||e&&0===e.length)){const e=te("bannerConfig",t)||{};return void(null!=e&&e.eu?($ez_d("applying legacy EU only setting"),Le.regions=N.bannerRegionsEuOnly):Le.regions=N.bannerRegions)}const n=Fe("FEATURE_BANNER_REGIONS")?"any":Fe("FEATURE_BANNER_REGIONS_PREDEFINED")?"predef":"ww-only";Le.regions=((e,t)=>{var n;let o=null!=$ez&&$ez.isSSR?q("groups"):void 0;if(o){const e={};for(const t of o)t.abTest&&(e[t.abTest.test]||(e[t.abTest.test]=[]),e[t.abTest.test].push(t));for(const[t,n]of Object.entries(e)){let e;if(n.every((e=>"bucketFunction"in e.abTest)))e=n.length>0?n[0].abTest.bucketFunction():void 0;else{const i=[],a=n.reduce(((e,t)=>{if(!("ratio"in t.abTest))return e;const n=e+t.abTest.ratio;return i.push(n),n}),0);if(0===a){$ez_d(`WARNING: Sum of ratios for A/B test "${t}" is zero; no items will be used.`),o=o.filter((e=>{var n;return(null==(n=e.abTest)?void 0:n.test)!==t||!("ratio"in e.abTest)}));continue}o=o.filter((e=>{var n;return(null==(n=e.abTest)?void 0:n.test)!==t||"ratio"in e.abTest}));const s=Math.floor(Math.random()*a),c=i.findIndex((e=>e>s));if(-1===c){$ez_d(`Failed to choose bucket for test "${t}"!`);continue}e=n[c].abTest.bucket}o=o.filter((n=>{var o,i;return(null==(o=n.abTest)?void 0:o.test)!==t||(null==(i=n.abTest)?void 0:i.bucket)===e}))}}window.__enzuzoConfig||(window.__enzuzoConfig={}),window.__enzuzoConfig.groups=o??[];const i=o?o.flatMap((e=>e.regions.map((t=>({...t.worldwide&&{worldwide:t.worldwide},...t.area&&{area:t.area},...t.country&&{country:t.country},...t.state&&{state:t.state},...e.mode&&{type:e.mode}}))))):e,a="any"===t?[...i]:[...i.filter(pe)];if("ww-only"===t)for(const e of a)e.worldwide||(e.type=(null==(n=N.bannerRegions.find((t=>t.area===e.area&&t.country===e.country&&t.state===e.state)))?void 0:n.type)??"dontshow");return a})(e??[],n)})(),Le.activeRegion=Le.regions.filter((e=>{const{country:t,state:n}=e,{geo:o}=Le;return`${t}-${n}`==`${o.country}-${o.state}`}))[0],Le.activeRegion||(Le.activeRegion=Le.regions.filter((e=>e.country&&!e.state&&e.country===Le.geo.country))[0]),Le.activeRegion||(Le.activeRegion=Le.regions.filter((e=>e.area&&e.area===Le.geo.area))[0]),Le.activeRegion||(Le.activeRegion=Le.regions.filter((e=>e.worldwide))[0])),Le.usedByHierophant&&e.region&&(Le.activeRegion=e.region),$ez_d("[Regions (processed)]",Le.geo,Le.regions),$ez_d("[Active Region]",Le.activeRegion)};let f,b;if(Le.uuid=r,Le.customerProduct=null==l?void 0:l.product,!Le.usedByHierophant){const e=(s.get(`${g}apiHost`)||(null==bi?void 0:bi.get(`${g}apiHost`))||a.host||"").replace(/^(http|https)?:\/\//,"");Le.apiHost=e,$ez_d("apiHost",e),Fe("FEATURE_DEBUG")&&$ez_d(`uuid=${r} apiHost=${e}`);const t=Y.currentScript??[...Y.querySelectorAll("script")??[]].at(-1)??null;if(null!=$ez&&$ez.isSSR){f="X_CUSTOMER_DATA",$ez_d("Api Response =>",f);const e=oe(`${p}_override_country`)||G(`${g}country`)||"X_CUSTOMER_COUNTRY",t=oe(`${p}_override_state`)||G(`${g}state`)||"X_CUSTOMER_STATE".split("-")[1];Le.geo={country:e,state:t,area:ne(e)},$ez_d("[Detected Country/State]",Le.geo),b=f||{},Le.customerData=b,Le.isSSR=!0,u(null==(o=null==(n=null==b?void 0:b.settings)?void 0:n.cookiebar)?void 0:o.kv)}const c=Le.activeRegion?fe(Le.activeRegion).blocking:void 0;c&&(xe(c.cookies)||"deny"===c.cookies?c.cookies="true":$e(c.cookies)&&(c.cookies="false"),null!=c&&c.cookies&&!["false","true","allow","deny"].includes(c.cookies)&&delete c.cookies);let l=null==t?void 0:t.getAttribute("auto-blocking-cookies");"deny"===l&&(l="true"),(!l||!["false","true","allow","deny"].includes(l))&&(l=void 0),Le.autoBlockingCookies=(null==c?void 0:c.cookies)??l??"allow",Ri="true"===Le.autoBlockingCookies||"allow"===Le.autoBlockingCookies?Et:At;try{Ri.on("queueProcess",(()=>{"defer"!==Ri.state.mode&&(("true"===sn.get("cookies-functional")||Be())&&(Ri.timer&&clearTimeout(Ri.timer),Ri.timer=setTimeout((()=>{clearTimeout(Ri.timer),Ri.accept()}),60)),(!sn.get("cookies-functional")||"false"===sn.get("cookies-marketing")||"false"===sn.get("cookies-analytics")||"false"===sn.get("cookies-preferences"))&&(Ri.dtimer&&clearTimeout(Ri.dtimer),Ri.dtimer=setTimeout((()=>{clearTimeout(Ri.dtimer),Ri.decline(!0)}),60)))})),null!=(i=window.__envars__)&&i.ENZUZO_NAME||Ri.block((e=>{(e.hasCookieList||e.hasServices||e.hasAutoblocking)&&("allow"===Le.autoBlockingCookies?Ri.allowIfCookieNotKnown():"true"===Le.autoBlockingCookies&&Ri.denyIfCookieNotKnown())}))}catch(e){$ez.console.error(e)}c&&(xe(c.scripts)?c.scripts="deny":$e(c.scripts)&&(c.scripts="false"),c.scripts&&!["false","true","allow","deny"].includes(c.scripts)&&delete c.scripts);let d=null==t?void 0:t.getAttribute("auto-blocking");"true"===d&&(d="deny"),(!d||!["false","true","allow","deny"].includes(d))&&(d=void 0),Le.autoBlocking=(null==c?void 0:c.scripts)??d??"false",$ez_d("Auto Blocking",Le.autoBlocking),["true","allow","deny"].includes(Le.autoBlocking)&&fi()}const y=(()=>{const e=window.dataLayer;if(!e)return null;const t=e.find((e=>"config"===e[0]));return t&&t[1]||null})();y&&console.warn(`Google tag ${y} has already loaded. Ensure all Google tags are loaded after the Enzuzo cookie banner. See https://help.enzuzo.com/en/articles/9362733-resolve-google-tag-has-already-loaded-errors for more info.`);let{cookieBackground:v,cookieBorder:z,cookieTextColor:k,cookieLinkColor:w,cookieButtonBackgroundColor:C,cookieButtonBackgroundColorHover:x,cookieButtonTextColor:T,customPPURL:B,cookiePrivacyURL:I,FBPixels:M,GTManager:R,GAnalytics:H,HubspotID:P,enforceCookieBar:D,allowButtonBackgroundColor:F,allowButtonBackgroundColorHover:j,allowButtonBorderColor:U,allowButtonTextColor:V,declineButtonBackgroundColor:W,declineButtonBackgroundColorHover:K,declineButtonBorderColor:Q,declineButtonTextColor:J,managerBackgroundColor:ee,managerBodyTextColor:ie,managerBorderColor:se,managerLinkTextColor:ce,managerAllowButtonBackgroundColor:re,managerAllowButtonBackgroundColorHover:le,managerAllowButtonBorderColor:de,managerAllowButtonTextColor:ue,managerDeclineButtonBackgroundColor:ge,managerDeclineButtonBackgroundColorHover:me,managerDeclineButtonBorderColor:be,managerDeclineButtonTextColor:ye,managerAcceptSelectedButtonBackgroundColor:ve,managerAcceptSelectedButtonBackgroundColorHover:ze,managerAcceptSelectedButtonBorderColor:we,managerAcceptSelectedButtonTextColor:Ce,hidePoweredBy:Se,brandingLogo:Te}=e;async function Me(e,t=!0){var n,o,i,a,s,c,r,l,d,u;if(Le.usedByHierophant)return;await function(e){const t=n=>{e()?n():setTimeout((()=>t(n)),60)};return new Promise(t)}((()=>{var e;return!(null!=(e=Yt.consent_queue)&&e.t)}));const p=t?"onConsentCbs":"onConsentNoCbs";if(Yt[p]&&(null==(n=Yt[p][e])?void 0:n.length)>0){$ez_d("Running onConsent Callbacks For",e);for(const t of Yt[p][e]){const n=t.includes("