var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
var privacyBanner=function(n){"use strict";var e=function(){return e=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},e.apply(this,arguments)};function t(n,e,t,o){return new(t||(t=Promise))((function(r,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}function c(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){var e;n.done?r(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(i,c)}s((o=o.apply(n,e||[])).next())}))}function o(n,e){var t,o,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,o=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(n,a)}catch(n){c=[6,n],o=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}function r(n,e){this.v=n,this.k=e}function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}function i(n,e,t,o,r,a,i){try{var c=n[a](i),s=c.value}catch(n){return void t(n)}c.done?e(s):Promise.resolve(s).then(o,r)}function c(n){return function(){var e=this,t=arguments;return new Promise((function(o,r){var a=n.apply(e,t);function c(n){i(a,o,r,c,s,"next",n)}function s(n){i(a,o,r,c,s,"throw",n)}c(void 0)}))}}function s(n,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,k(o.key),o)}}function l(n,e,t){return e&&s(n.prototype,e),t&&s(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function u(n,e,t){return(e=k(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function d(n){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d(n)}function p(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&C(n,e)}function f(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(f=function(){return!!n})()}function h(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,e,t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",r=t.toStringTag||"@@toStringTag";function a(t,o,r,a){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return v(l,"_invoke",function(t,o,r){var a,c,s,l=0,u=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(e,t){return a=e,c=0,s=n,p.n=t,i}};function f(t,o){for(c=t,s=o,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],f=p.p,h=a[2];t>3?(r=h===o)&&(s=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=n):a[0]<=f&&((r=t<2&&f<a[1])?(c=0,p.v=o,p.n=a[1]):f<h&&(r=t<3||a[0]>o||o>h)&&(a[4]=t,a[5]=o,p.n=h,c=0))}if(r||t>1)return i;throw d=!0,o}return function(r,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),c=u,s=h;(e=c<2?n:s)||!d;){a||(c?c<3?(c>1&&(p.n=-1),f(c,s)):p.n=s:p.v=s);try{if(l=2,a){if(c||(r="next"),e=a[r]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=n}else if((e=(d=p.n<0)?s:t.call(o,p))!==i)break}catch(e){a=n,c=1,s=e}finally{l=1}}return{value:e,done:d}}}(t,r,a),!0),l}var i={};function c(){}function s(){}function l(){}e=Object.getPrototypeOf;var u=[][o]?e(e([][o]())):(v(e={},o,(function(){return this})),e),d=l.prototype=c.prototype=Object.create(u);function p(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,l):(n.__proto__=l,v(n,r,"GeneratorFunction")),n.prototype=Object.create(d),n}return s.prototype=l,v(d,"constructor",l),v(l,"constructor",s),s.displayName="GeneratorFunction",v(l,r,"GeneratorFunction"),v(d),v(d,r,"Generator"),v(d,o,(function(){return this})),v(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:a,m:p}})()}function m(n,e,t,o,r){var a=y(n,e,t,o,r);return a.next().then((function(n){return n.done?n.value:a.next()}))}function y(n,e,t,o,r){return new g(h().w(n,e,t,o),r||Promise)}function g(n,e){function t(o,a,i,c){try{var s=n[o](a),l=s.value;return l instanceof r?e.resolve(l.v).then((function(n){t("next",n,i,c)}),(function(n){t("throw",n,i,c)})):e.resolve(l).then((function(n){s.value=n,i(s)}),(function(n){return t("throw",n,i,c)}))}catch(n){c(n)}}var o;this.next||(v(g.prototype),v(g.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),v(this,"_invoke",(function(n,r,a){function i(){return new e((function(e,o){t(n,a,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function v(n,e,t,o){var r=Object.defineProperty;try{r({},"",{})}catch(n){r=0}v=function(n,e,t,o){if(e)r?r(n,e,{value:t,enumerable:!o,configurable:!o,writable:!o}):n[e]=t;else{function a(e,t){v(n,e,(function(n){return this._invoke(e,t,n)}))}a("next",0),a("throw",1),a("return",2)}},v(n,e,t,o)}function b(n){var e=Object(n),t=[];for(var o in e)t.unshift(o);return function n(){for(;t.length;)if((o=t.pop())in e)return n.value=o,n.done=!1,n;return n.done=!0,n}}function w(n){if(null!=n){var e=n["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],t=0;if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}throw new TypeError(typeof n+" is not iterable")}function C(n,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},C(n,e)}function x(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var o,r,a,i,c=[],s=!0,l=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(o=a.call(t)).done)&&(c.push(o.value),c.length!==e);s=!0);}catch(n){l=!0,r=n}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return c}}(n,e)||function(n,e){if(n){if("string"==typeof n)return a(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(n){var e=function(n,e){if("object"!=typeof n||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var o=t.call(n,e);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==typeof e?e:e+""}function _(n){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(n)}function I(n){var e="function"==typeof Map?new Map:void 0;return I=function(n){if(null===n||!function(n){try{return-1!==Function.toString.call(n).indexOf("[native code]")}catch(e){return"function"==typeof n}}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,t)}function t(){return function(n,e,t){if(f())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var r=new(n.bind.apply(n,o));return t&&C(r,t.prototype),r}(n,arguments,d(this).constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),C(t,n)},I(n)}function E(){var n=h(),e=n.m(E),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function o(n){var e="function"==typeof n&&n.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var a={throw:1,return:2,break:3,continue:3};function i(n){var e,t;return function(o){e||(e={stop:function(){return t(o.a,2)},catch:function(){return o.v},abrupt:function(n,e){return t(o.a,a[n],e)},delegateYield:function(n,r,a){return e.resultName=r,t(o.d,w(n),a)},finish:function(n){return t(o.f,n)}},t=function(n,t,r){o.p=e.prev,o.n=e.next;try{return n(t,r)}finally{e.next=o.n}}),e.resultName&&(e[e.resultName]=o.v,e.resultName=void 0),e.sent=o.v,e.next=o.n;try{return n.call(this,e)}finally{o.p=e.prev,o.n=e.next}}}return(E=function(){return{wrap:function(e,t,o,r){return n.w(i(e),t,o,r&&r.reverse())},isGeneratorFunction:o,mark:n.m,awrap:function(n,e){return new r(n,e)},AsyncIterator:g,async:function(n,e,t,r,a){return(o(e)?y:m)(i(n),e,t,r,a)},keys:b,values:w}})()}"function"==typeof SuppressedError&&SuppressedError;var D=function(n){function e(t){var o;return(o=n.call(this,t)||this).name="ConsentValidationError",Object.setPrototypeOf(o,e.prototype),o}return p(e,n),l(e)}(I(TypeError)),O="trackingConsentAccepted",A="trackingConsentDeclined",T="firstPartyMarketingConsentAccepted",B="thirdPartyMarketingConsentAccepted",S="analyticsConsentAccepted",P="preferencesConsentAccepted",M="firstPartyMarketingConsentDeclined",R="thirdPartyMarketingConsentDeclined",j="analyticsConsentDeclined",H="preferencesConsentDeclined",L="visitorConsentCollected",N="consentTrackingApiLoaded",F="yes",W="no",q="no_interaction",U="",z="",G="1",J="0",V="p",K="a",$="m",X="t",Z="m",Y="a",Q="p",nn="s",en="marketing",tn="analytics",on="preferences",rn="sale_of_data",an="email",cn="headlessStorefront",sn="rootDomain",ln="checkoutRootDomain",un="storefrontRootDomain",dn="storefrontAccessToken",pn="isExtensionToken",fn="metafields",hn="customerAccountRequestInfo";function mn(n,e){if(null===n)return"null";if(Array.isArray(n))return"["+n.map((function(n){return mn(n,!0)})).join(",")+"]";if("object"===_(n)){var t=[];for(var o in n)n.hasOwnProperty(o)&&void 0!==n[o]&&""!==n[o]&&t.push(o+":"+mn(n[o],!0));var r=t.join(",");return e?"{"+r+"}":r}return"string"==typeof n?'"'+n+'"':""+n}function yn(n){try{return decodeURIComponent(n)}catch(n){return""}}var gn=function(){return"undefined"!=typeof __CtaTestEnv__&&"true"===__CtaTestEnv__},vn=l((function(){}));vn.warn=function(n){gn()||console.warn(n)},vn.error=function(n){gn()||console.error(n)},vn.info=function(n){gn()||console.info(n)},vn.debug=function(n){gn()||console.debug(n)},vn.trace=function(n){gn()||console.trace(n)};var bn=vn,wn="_tracking_consent";function Cn(n,e){void 0===e&&(e=!1);for(var t=function(){try{return document.cookie}catch(n){return!1}}()?document.cookie.split("; "):[],o=0;o<t.length;o++){var r=x(t[o].split("="),2),a=r[0],i=r[1];if(n===yn(a))return yn(i)}if(e&&"_tracking_consent"===n&&!window.localStorage.getItem("tracking_consent_fetched")){if(gn())return;return console.debug("_tracking_consent missing"),function(n){void 0===n&&(n="/");var e=new XMLHttpRequest;e.open("HEAD",n,!1),e.withCredentials=!0,e.send()}(),window.localStorage.setItem("tracking_consent_fetched","true"),Cn(n,!1)}}function xn(n){return n===encodeURIComponent(yn(n))}function kn(n,e,t,o){if(!xn(o))throw new TypeError("Cookie value is not correctly URI encoded.");if(!xn(n))throw new TypeError("Cookie name is not correctly URI encoded.");var r=n+"="+o;r+="; path=/",e&&(r+="; domain="+e),r+="; expires="+new Date((new Date).getTime()+t).toUTCString(),document.cookie=r}function _n(){var n,e,t,o=((t=null===(n=window.Shopify)||void 0===n||null===(e=n.customerPrivacy)||void 0===e?void 0:e.cachedConsent)?yn(t):void 0)||new URLSearchParams(window.location.search).get("_cs")||void 0||Cn(wn)||function(){try{var n,e=x(null===(n=performance)||void 0===n?void 0:n.getEntriesByType("navigation"),1)[0],t=null==e?void 0:e.serverTiming.find((function(n){return"_cmp"===n.name})),o=null==t?void 0:t.description;if(!o)return;try{o=decodeURIComponent(o)}catch(n){}return o}catch(n){return}}();if(void 0!==o)return function(n){if("%"==n.slice(0,1))try{n=decodeURIComponent(n)}catch(n){}var e=n.slice(0,1);if("{"==e)return function(n){var e,t;try{t=JSON.parse(n)}catch(n){return}if("2.1"!==t.v)return;if(null===(e=t.con)||void 0===e||!e.CMP)return;return t}(n);if("3"==e)return function(n){var e,t,o=n.slice(1).split("_"),r=x(o,5),a=r[0],i=r[1],c=r[2],s=r[3],l=r[4];try{e=o[5]?JSON.parse(o.slice(5).join("_")):void 0}catch(n){}if(l){var d=l.replace(/\*/g,"/").replace(/-/g,"+"),p=Array.from(atob(d)).map((function(n){return n.charCodeAt(0).toString(16).padStart(2,"0")})).join("");t=[8,13,18,23].reduce((function(n,e){return n.slice(0,e)+"-"+n.slice(e)}),p)}function f(n){var e=a.split(".")[0];return e.includes(n.toLowerCase())?J:e.includes(n.toUpperCase())?G:z}function h(n){return a.includes(n.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:u(u(u(u({},Y,f(Y)),Q,f(Q)),Z,f(Z)),nn,f(nn))},region:i||"",cus:e,purposes:u(u(u(u({},K,h(K)),V,h(V)),$,h($)),X,h(X)),sale_of_data_region:"t"==s,display_banner:"t"==c,consent_id:t}}(n);return}(o)}function In(){try{var n=_n();if(!n)return;return n}catch(n){return}}function En(){return{m:Bn(Z),a:Bn(Y),p:Bn(Q),s:Bn(nn)}}function Dn(){return En()[nn]}function On(n){return void 0===n&&(n=null),null===n&&(n=In()),void 0===n}function An(n){switch(n){case G:return F;case J:return W;default:return U}}function Tn(n){switch(n){case Y:return tn;case Z:return en;case Q:return on;case nn:return rn}}function Bn(n){var e=In();if(!e)return z;var t=e.con.CMP;return t?t[n]:z}function Sn(n){var e=_n();if(!e||!e.purposes)return!0;var t=e.purposes[n];return"boolean"!=typeof t||t}function Pn(){return Sn(V)}function Mn(){return Sn(K)}function Rn(){return Sn($)}function jn(){return Sn(X)}function Hn(){var n=_n();return!!n&&("boolean"==typeof n.display_banner&&n.display_banner)}function Ln(){var n=_n();return n&&n.sale_of_data_region||!1}function Nn(){var n=_n();return n&&n.consent_id||""}var Fn="v0.2";function Wn(n){void 0!==n.granular_consent&&function(n){var e=n[$],t=n[X],o=n[K],r=n[V];!0===e?qn(T):!1===e&&qn(M);!0===t?qn(B):!1===t&&qn(R);!0===o?qn(S):!1===o&&qn(j);!0===r?qn(P):!1===r&&qn(H);var a=function(n){var e={marketingAllowed:n[$],saleOfDataAllowed:n[X],analyticsAllowed:n[K],preferencesAllowed:n[V],firstPartyMarketingAllowed:n[$],thirdPartyMarketingAllowed:n[X]};return e}(n);qn(L,a);var i=[o,r,e,t];i.every((function(n){return!0===n}))&&qn(O);i.every((function(n){return!1===n}))&&qn(A)}(u(u(u(u({},V,Pn()),K,Mn()),$,Rn()),X,jn()))}function qn(n,e){try{document.dispatchEvent(new CustomEvent(n,{detail:e||{}}))}catch(e){console.error('[Shopify Customer Privacy] Error in event listener for "'+n+'":',e)}}function Un(n,e){if(n){var t=function(n){var e=new URL(n,window.location.origin),t=Gn(n)?zn(e):zn(e).replace(window.location.origin,"");return document.querySelectorAll('a[href^="'+t+'"]')}(n);if(t.length)for(var o=Nn(),r=function(n){var e=n();if(!e)return null;if(!("analytics"in e&&"marketing"in e&&"preferences"in e))return null;var t=Jn(e.analytics),o=Jn(e.marketing),r=Jn(e.preferences);return""===t&&""===o&&""===r?null:"a"+t+"m"+o+"p"+r}(e),a=0,i=Array.from(t);a<i.length;a++){var c=i[a],s=c.getAttribute("href");if(s){var l=new URL(s,window.location.origin);if(o&&l.searchParams.set("consent_id",o),r&&l.searchParams.set("consent",r),o||r){var u=Gn(n)?l.toString():l.toString().replace(window.location.origin,"");c.setAttribute("href",u)}}}}}function zn(n){return""+n.origin+n.pathname.replace(/\/$/,"")}function Gn(n){return n.startsWith("http://")||n.startsWith("https://")}function Jn(n){switch(n){case F:return"1";case W:return"0";default:return""}}var Vn="_landing_page",Kn="_orig_referrer";function $n(n){var e=n.granular_consent;return{query:"query { consentManagement { cookies("+mn(Object.assign(Object.assign({visitorConsent:Object.assign({marketing:e.marketing,analytics:e.analytics,preferences:e.preferences,saleOfData:e.sale_of_data},e.metafields&&{metafields:e.metafields})},e.email&&{visitorEmail:e.email}),{},{origReferrer:n.referrer,landingPage:n.landing_page}))+") { trackingConsentCookie cookieDomain landingPageCookie origReferrerCookie } customerAccountUrl } }",variables:{}}}function Xn(n,e,t){var o=e.granular_consent,r="",a={};if(o.customerAccountRequestInfo)r=o.customerAccountRequestInfo.url,a=o.customerAccountRequestInfo.headers;else{var i=o.storefrontAccessToken||function(){var n=document.documentElement.querySelector("#shopify-features"),e="Could not find liquid access token";if(!n)return void bn.warn(e);var t,o=n.textContent;if(!o)return void bn.warn(e);try{t=JSON.parse(o).accessToken}catch(n){return void bn.warn(e)}if(!t)return void bn.warn(e);return t}(),c=o.checkoutRootDomain||window.location.host;r=(/^localhost(:|$)/.test(c)?"http:":"https:")+"//"+c+"/api/unstable/graphql.json",a=u({},o.isExtensionToken?"Shopify-Storefront-Extension-Token":"x-shopify-storefront-access-token",i)}var s={headers:Object.assign(Object.assign({"content-type":"application/json"},a),gn()?{"x-test-payload":JSON.stringify(e)}:{}),body:JSON.stringify($n(e)),method:"POST"};return fetch(r,s).then((function(n){if(n.ok)return n.json();throw new Error("Server error")})).then((function(r){var a,i,c=31536e6,s=12096e5,l=r.data.consentManagement.cookies.cookieDomain,u=l||o.checkoutRootDomain||window.location.hostname,d=o.storefrontRootDomain||l||window.location.hostname,p=r.data.consentManagement.cookies.trackingConsentCookie,f=r.data.consentManagement.cookies.landingPageCookie,h=r.data.consentManagement.cookies.origReferrerCookie,m=null!==(a=null===(i=r.data.consentManagement)||void 0===i?void 0:i.customerAccountUrl)&&void 0!==a?a:"";return p&&function(n){var e;null!==(e=window.Shopify)&&void 0!==e&&e.customerPrivacy||(window.Shopify=window.Shopify||{},window.Shopify.customerPrivacy={}),window.Shopify.customerPrivacy.cachedConsent=n}(p),o.headlessStorefront&&(kn(wn,u,c,p),f&&h&&(kn(Vn,u,s,f),kn(Kn,u,s,h)),d!==u&&(kn(wn,d,c,p),f&&h&&(kn(Vn,d,s,f),kn(Kn,d,s,h)))),Wn(e),Un(m,n),void 0!==t&&t(null,r),r})).catch((function(n){var e="Error while setting storefront API consent: "+n.message;if(void 0===t)throw{error:e};t({error:e})}))}var Zn=function(){return l((function n(e){if(void 0===e&&(e=!1),this.useInstrumentation=!1,n.instance)return n.instance;n.instance=this,this.useInstrumentation=e}),[{key:"instrumentationEnabled",value:function(){return this.useInstrumentation}},{key:"setUseInstrumentation",value:function(n){this.useInstrumentation=n}},{key:"produce",value:function(n,e){if(this.instrumentationEnabled()&&Mn())try{var t={schema_id:"customer_privacy_api_events/2.0",payload:{shop_domain:window.location.host,method_name:n,call_details:e||null}},o={accept:"*/*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/json; charset=utf-8","x-monorail-edge-event-created-at-ms":String(Date.now()),"x-monorail-edge-event-sent-at-ms":String(Date.now())};if(!window.location.host.endsWith("spin.dev"))return fetch("https://monorail-edge.shopifysvc.com/v1/produce",{headers:o,body:JSON.stringify(t),method:"POST",mode:"cors",credentials:"omit"});console.log("Monorail event from consent API:",o,t)}catch(n){}}}])}();Zn.instance=void 0;var Yn=[en,tn,on,rn],Qn=[].concat(Yn,[an,sn,ln,un,dn,cn,pn,fn,hn]),ne=Yn.map((function(n){return'"'+n+'"'})).join(", "),ee="https://shopify.dev/docs/api/customer-privacy";function te(n,e){if((new Zn).produce("setTrackingConsent",Fn),function(n){if("boolean"!=typeof n&&"object"!==_(n))throw new D('setTrackingConsent received an invalid argument of type "'+_(n)+'". Expected an object with consent keys. Example: setTrackingConsent({ analytics: true, marketing: false }). See '+ee+" for documentation.");if("object"===_(n)){var e=Object.keys(n);if(0===e.length)throw new D("The submitted consent object is empty. Expected at least one consent key: "+ne+". Example: setTrackingConsent({ analytics: true, marketing: false }). See "+ee+" for documentation.");for(var t=0,o=e;t<o.length;t++){var r=o[t];if(!Qn.includes(r))throw new D('The submitted consent object contains an invalid key: "'+r+'". Valid keys are: '+ne+". Example: setTrackingConsent({ analytics: true, marketing: false }). See "+ee+" for documentation.")}}}(n),void 0!==e&&"function"!=typeof e)throw new D('setTrackingConsent received an invalid callback of type "'+_(e)+'". The second argument must be a function if provided. Example: setTrackingConsent({ analytics: true }, (error, result) => { ... }). See '+ee+" for documentation.");var t=function(n){if(!n)return null;return ae()?document.referrer:""}(n.analytics),o=function(n){if(!n)return null;return ae()?window.location.pathname+window.location.search:"/"}(n.analytics);return Xn(pe,Object.assign(Object.assign({granular_consent:n},null!==t&&{referrer:t}),null!==o&&{landing_page:o}),e)}function oe(){if((new Zn).produce("getTrackingConsent",Fn),On())return U;var n=En();return n[Z]===G&&n[Y]===G?F:n[Z]===J||n[Y]===J?W:q}function re(){return On(n=In())?"":n.region||"";var n}function ae(){if(""===document.referrer)return!0;var n=document.createElement("a");return n.href=document.referrer,window.location.hostname!=n.hostname}function ie(){return!!On()||Rn()&&Mn()}function ce(){return Ln()?"string"==typeof navigator.globalPrivacyControl?"1"!==navigator.globalPrivacyControl:"boolean"==typeof navigator.globalPrivacyControl?!navigator.globalPrivacyControl:null:null}function se(){return Hn()&&oe()===q}function le(){return!1===ce()?W:(n=Dn(),On()?U:n===z?q:An(n));var n}function ue(){return!0}function de(n){return function(n){var e=In();if(!On(e)&&e.cus){var t=e.cus[encodeURIComponent(n)];return t?decodeURIComponent(t):t}}(n)}function pe(){for(var n={},e=En(),t=0,o=Object.keys(e);t<o.length;t++){var r=o[t];n[Tn(r)]=An(e[r])}return n}function fe(){return Nn()}var he="95ba910bcec4542ef2a0b64cd7ca666c";function me(n,e,t){try{var o;!function(n){var e=new XMLHttpRequest;e.open("POST","https://error-analytics-production.shopifysvc.com",!0),e.setRequestHeader("Content-Type","application/json"),e.setRequestHeader("Bugsnag-Api-Key",he),e.setRequestHeader("Bugsnag-Payload-Version","5");var t=function(n){var e=function(n){return n.stackTrace||n.stack||n.description||n.name}(n.error),t=x((e||"unknown error").split("\n")[0].split(":"),2),o=t[0],r=t[1];return JSON.stringify({payloadVersion:5,notifier:{name:"ConsentTrackingAPI",version:"latest",url:"-"},events:[{exceptions:[{errorClass:(o||"").trim(),message:(r||"").trim(),stacktrace:[{file:"consent-tracking-api.js",lineNumber:"1",method:e}],type:"browserjs"}],context:n.context||"general",app:{id:"ConsentTrackingAPI",version:"latest"},metaData:{request:{shopId:n.shopId,shopUrl:window.location.href},device:{userAgent:window.navigator.userAgent},"Additional Notes":n.notes},unhandled:!1}]})}(n);e.send(t)}({error:n,context:null!=e?e:"",shopId:ge()||(null===(o=window.Shopify)||void 0===o?void 0:o.shop),notes:null!=t?t:""})}catch(n){}}function ye(n){return function(){try{return n.apply(void 0,arguments)}catch(n){throw n instanceof D||me(n),n}}}function ge(){try{var n,e=null===(n=document.getElementById("shopify-features"))||void 0===n?void 0:n.textContent;return e?JSON.parse(e).shopId:null}catch(n){return null}}function ve(){return Rn()}function be(){return Mn()}function we(){return Pn()}function Ce(){return jn()}var xe,ke,_e,Ie,Ee,De;function Oe(n){return void 0===n&&(n={useBugsnagReporting:!1,useInstrumentation:!1}),function(n){var e=n.useBugsnagReporting,t=n.useInstrumentation;Dn()!=J&&!1===ce()&&te({sale_of_data:!1},(function(){return!1}));var o={analyticsProcessingAllowed:Mn,currentVisitorConsent:pe,doesMerchantSupportGranularConsent:ue,firstPartyMarketingAllowed:ve,getCCPAConsent:le,getRegion:re,getTrackingConsent:oe,getTrackingConsentMetafield:de,marketingAllowed:ve,preferencesProcessingAllowed:Pn,saleOfDataAllowed:Ce,saleOfDataRegion:Ln,setTrackingConsent:te,shouldShowBanner:Hn,shouldShowGDPRBanner:se,thirdPartyMarketingAllowed:Ce,userCanBeTracked:ie,consentId:fe,unstable:{},__metadata__:{name:"@shopify/consent-tracking-api",version:Fn,description:"Shopify Consent Tracking API"}};if(new Zn(t),!e)return o;var r=["unstable"];for(var a in o)o.hasOwnProperty(a)&&(o[a]=r.includes(a)?o[a]:ye(o[a]));return o}(n)}!function(n){n.BottomCenter="bottom_center",n.BottomFullWidth="bottom_full_width",n.BottomLeft="bottom_left",n.BottomRight="bottom_right",n.Center="center"}(xe||(xe={})),function(n){n.Custom="custom",n.Dark="dark",n.Light="light"}(ke||(ke={})),function(n){n[n.Yes=1]="Yes",n[n.No=0]="No"}(_e||(_e={})),function(n){n.StylesContainerId="shopify-pc__banner__styles",n.DialogId="shopify-pc__banner",n.DialogClass="shopify-pc__banner__dialog",n.WrapperClass="shopify-pc__banner__wrapper",n.BodyClass="shopify-pc__banner__body",n.BodyTitleId="shopify-pc__banner__body-title",n.BodyCopyPolicyLinkId="shopify-pc__banner__body-policy-link",n.ButtonsClass="shopify-pc__banner__btns",n.ButtonsGranularClass="shopify-pc__banner__btns-granular",n.ButtonAcceptId="shopify-pc__banner__btn-accept",n.ButtonAcceptClass="shopify-pc__banner__btn-accept",n.ButtonDeclineId="shopify-pc__banner__btn-decline",n.ButtonDeclineClass="shopify-pc__banner__btn-decline",n.ButtonManagePrefsId="shopify-pc__banner__btn-manage-prefs",n.ButtonManagePrefsClass="shopify-pc__banner__btn-manage-prefs"}(Ie||(Ie={})),function(n){n.StylesContainerId="shopify-pc__prefs__styles",n.OverlayId="shopify-pc__prefs__overlay",n.OverlayClass="shopify-pc__prefs__overlay",n.WrapperId="shopify-pc__prefs",n.WrapperClass="shopify-pc__prefs",n.DialogId="shopify-pc__prefs__dialog",n.DialogClass="shopify-pc__prefs__dialog",n.DialogScrollableClass="shopify-pc__prefs__scrollable",n.HeaderTitleId="shopify-pc__prefs__header-title",n.HeaderActionsClass="shopify-pc__prefs__header-actions",n.HeaderSaveId="shopify-pc__prefs__header-save",n.HeaderAcceptId="shopify-pc__prefs__header-accept",n.HeaderDeclineId="shopify-pc__prefs__header-decline",n.HeaderCloseId="shopify-pc__prefs__header-close",n.HeaderCloseClass="shopify-pc__prefs__header-close",n.IntroClass="shopify-pc__prefs__intro",n.IntroMainClass="shopify-pc__prefs__intro-main",n.IntroExplainWrapperClass="shopify-pc__prefs__intro-explain",n.IntroExplainAcceptClass="shopify-pc__prefs__intro-explain-accept",n.IntroExplainDeclineClass="shopify-pc__prefs__intro-explain-decline",n.OptionWrapperClass="shopify-pc__prefs__options",n.OptionClass="shopify-pc__prefs__option",n.OptionEssentialId="shopify-pc__prefs__essential",n.OptionEssentialInputId="shopify-pc__prefs__essential-input",n.OptionMarketingId="shopify-pc__prefs__marketing",n.OptionMarketingInputId="shopify-pc__prefs__marketing-input",n.OptionAnalyticsId="shopify-pc__prefs__analytics",n.OptionAnalyticsInputId="shopify-pc__prefs__analytics-input",n.OptionPreferencesId="shopify-pc__prefs__preferences",n.OptionPreferencesInputId="shopify-pc__prefs__preferences-input"}(Ee||(Ee={})),function(n){n.Black="#333",n.White="#fff",n.Gray="#ccc",n.Green="#3AA83A",n.LightGray="#F7F8F9",n.DarkGray="#36454F",n.VeryDarkGray="#666",n.VeryLightGray="#e5e5e5"}(De||(De={}));var Ae=function(n){return"\n    border: 1px solid ".concat(n.button.borderColor,";\n    color: ").concat(n.button.fontColor,";\n    background: ").concat(n.button.backgroundColor,";\n  ")};function Te(n,e,t,o){void 0===e&&(e="0,0,100,100"),void 0===t&&(t="0,0,0,100"),void 0===o&&(o="0,0,100,100");var r=n.split(","),a=r[0],i=r[1],c=r[2],s=r[3],l=e.split(","),u=l[0],d=l[1],p=l[2],f=l[3],h=t.split(","),m=h[0],y=h[1],g=h[2],v=h[3],b=o.split(","),w=b[0],C=b[1],x=b[2],k=b[3],_={hue:Number(a),saturation:Number(i),lightness:Number(c),alpha:Number(s)},I={hue:Number(u),saturation:Number(d),lightness:Number(p),alpha:Number(f)},E={hue:Number(m),saturation:Number(y),lightness:Number(g),alpha:Number(v)},D={hue:Number(w),saturation:Number(C),lightness:Number(x),alpha:Number(k)},O={hue:_.hue,saturation:_.saturation,lightness:_.lightness,alpha:_.alpha-10},A={hue:I.hue,saturation:I.saturation,lightness:I.lightness<50?I.lightness+14:I.lightness-12,alpha:I.alpha},T={hue:201,saturation:I.lightness<50?60:90,lightness:I.lightness<50?60:80,alpha:I.lightness<50?80:100};return{font:Be(_),fontSubdued:Be(O),buttonFont:Be(E),buttonBackground:Be(D),background:Be(I),divider:Be(A),focused:Be(T)}}function Be(n){return"hsl(".concat(n.hue,"deg, ").concat(n.saturation,"%, ").concat(n.lightness,"%, ").concat(n.alpha,"%)")}function Se(n,e,t,o,r){var a="0,0,0,100",i="0,0,100,100",c=Te("0,0,12,100","0,0,100,100","0,0,12,100","0,0,100,100"),s=Te("0,0,100,87","0,0,12,100","0,0,100,87","0,0,12,100"),l=Te(null!=e?e:a,null!=t?t:i,null!=o?o:a,null!=r?r:i),u=function(){switch(n){case ke.Light:return c;case ke.Dark:return s;case ke.Custom:return l;default:return c}}();return{backgroundColor:u.background,fontColor:u.font,fontSubduedColor:u.fontSubdued,sectionDivider:u.divider,iconColor:u.font,focused:u.focused,button:{borderColor:u.buttonFont,backgroundColor:u.buttonBackground,fontColor:u.buttonFont},primaryButton:{borderColor:u.buttonBackground,backgroundColor:u.buttonFont,fontColor:u.buttonBackground}}}function Pe(n){var e=n.bannerData,t=n.selectorPrefix,o=t?"".concat(t," "):"",r=Se(e.theme.theme,e.theme.fontColor,e.theme.backgroundColor,e.theme.buttonFontColor,e.theme.buttonBackgroundColor),a=function(n,e,t){var o="1280px",r="\n    ".concat(t,".").concat(Ie.WrapperClass," {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      flex-direction: column;\n    }\n  "),a="\n    position: fixed;\n    z-index: 2000000;\n    box-shadow: 0px 4px 10px rgb(63 63 68 / 40%);\n    max-height: 90%;\n    box-sizing: border-box;\n    opacity: 1;\n    padding: 32px;\n    background-color: ".concat(e.backgroundColor,";\n    overflow: auto;\n    -ms-overflow-style: none;\n    scrollbar-width: none;\n    border: none;\n    text-align: left;\n  "),i=function(){var n="\n      ".concat(t,".").concat(Ie.ButtonsClass," {\n        flex-direction: column;\n        gap: 3px;\n      }\n      ").concat(t,".").concat(Ie.ButtonsGranularClass," :nth-child(1) {\n        order: 3;\n      }\n      ").concat(t,".").concat(Ie.ButtonsGranularClass," :nth-child(2) {\n        order: 1;\n      }\n      ").concat(t,".").concat(Ie.ButtonsGranularClass," :nth-child(3) {\n        order: 2;\n      }\n    ");return"\n      @media only screen and (max-width: 480px) {\n        ".concat(n,"\n      }\n    ")},c="\n    ".concat(t,".").concat(Ie.DialogClass," {\n      ").concat(a,"\n      bottom: 0%;\n      width: 100%;\n    }\n    ").concat(t,".").concat(Ie.DialogClass," button {\n      margin: 0 10px 0 0;\n    }\n    @media only screen and (max-width: ").concat(o,") {\n      ").concat(t,".").concat(Ie.DialogClass," button {\n        margin: 15px 10px 0 0;\n      }\n    }\n    ").concat(r,"\n    ").concat(t,".").concat(Ie.WrapperClass," {\n      flex-direction: row;\n    }\n    @media only screen and (max-width: ").concat(o,") {\n      ").concat(t,".").concat(Ie.WrapperClass," {\n        flex-direction: column;\n      }\n    }\n    ").concat(t,".").concat(Ie.BodyClass," {\n      margin-right: 5%;\n      margin-bottom: 0;\n    }\n    @media only screen and (max-width: ").concat(o,") {\n      ").concat(t,".").concat(Ie.BodyClass," {\n        margin-right: 0;\n        margin-bottom: 10px;\n        width: 100%;\n      }\n    }\n    ").concat(t,".").concat(Ie.ButtonsClass," {\n      display: flex;\n      min-width: 580px;\n      flex-direction: row;\n      gap: 20px;\n    }\n    @media only screen and (max-width: ").concat(o,") {\n      ").concat(t,".").concat(Ie.ButtonsClass," {\n        min-width: auto;\n        width: 100%;\n        justify-content: flex-end;\n      }\n    }\n    ").concat(i(),"\n  "),s="\n    ".concat(t,".").concat(Ie.DialogClass," {\n      ").concat(a,"\n      top: 50%;\n      left: 25%;\n      width: 50%;\n      transform: translate(0, -50%);\n      min-width: 280px;\n      border-radius: 3px;\n    }\n    ").concat(r,"\n    @media only screen and (max-width: 1300px) {\n      ").concat(t,".").concat(Ie.DialogClass," {\n        left: 15%;\n        width: 70%;\n      }\n    }\n    @media only screen and (max-width: 900px) {\n      ").concat(t,".").concat(Ie.DialogClass," {\n        left: 5%;\n        width: 90%;\n      }\n    }\n    ").concat(t,".").concat(Ie.BodyClass," {\n      width: 100%;\n      margin-bottom: 10px;\n    }\n    ").concat(t,".").concat(Ie.ButtonsClass," {\n      display: flex;\n      width: 100%;\n      justify-content: flex-end;\n      flex-direction: row;\n      gap: 20px;\n    }\n    ").concat(i(),"\n  "),l="\n    ".concat(t,".").concat(Ie.DialogClass," {\n      ").concat(a,"\n      bottom: 0;\n      left: 0;\n      max-width: 650px;\n      border-top-right-radius: 3px;\n    }\n    ").concat(r,"\n    ").concat(t,".").concat(Ie.BodyClass," {\n      width: 100%;\n      margin-bottom: 10px;\n    }\n    ").concat(t,".").concat(Ie.ButtonsClass," {\n      display: flex;\n      justify-content: flex-end;\n      width: 100%;\n      flex-direction: row;\n      gap: 20px;\n    }\n    ").concat(i(),"\n  "),u="\n    ".concat(t,".").concat(Ie.DialogClass," {\n      ").concat(a,"\n      bottom: 0;\n      right: 0;\n      max-width: 650px;\n      border-top-left-radius: 3px;\n    }\n    ").concat(r,"\n    ").concat(t,".").concat(Ie.BodyClass," {\n      width: 100%;\n      margin-bottom: 10px;\n    }\n    ").concat(t,".").concat(Ie.ButtonsClass," {\n      display: flex;\n      justify-content: flex-end;\n      width: 100%;\n      flex-direction: row;\n      gap: 20px;\n    }\n    ").concat(i(),"\n  "),d="\n    ".concat(t,".").concat(Ie.DialogClass," {\n      ").concat(a,"\n      bottom: 0;\n      left: 25%;\n      width: 50%;\n      min-width: 280px;\n      border-top-right-radius: 3px;\n      border-top-left-radius: 3px;\n    }\n    ").concat(r,"\n    @media only screen and (max-width: 1300px) {\n      ").concat(t,".").concat(Ie.DialogClass," {\n        left: 15%;\n        width: 70%;\n      }\n    }\n    @media only screen and (max-width: 900px) {\n      ").concat(t,".").concat(Ie.DialogClass," {\n        left: 5%;\n        width: 90%;\n      }\n    }\n    ").concat(t,".").concat(Ie.BodyClass," {\n      width: 100%;\n      margin-bottom: 10px;\n    }\n    ").concat(t,".").concat(Ie.ButtonsClass," {\n      display: flex;\n      width: 100%;\n      justify-content: flex-end;\n      flex-direction: row;\n      gap: 20px;\n    }\n    ").concat(t,".").concat(Ie.DialogClass," h2 {\n      line-height: initial;\n    }\n    ").concat(i(),"\n  ");switch(n){case xe.BottomFullWidth:return c;case xe.Center:return s;case xe.BottomLeft:return l;case xe.BottomRight:return u;case xe.BottomCenter:return d;default:return c}}(e.position,r,o),i=function(n,e){if(n===ke.Custom)return{accept:Ae(e),decline:Ae(e),manage:(t=e,"\n    border: none;\n    color: ".concat(t.fontColor,";\n    background: transparent;\n  "))};var t,o=n===ke.Dark,r=De.White,a=De.Black;return{accept:"\n    background: ".concat(o?De.Black:r,";\n    color: ").concat(o?De.White:a,";\n  "),decline:"\n    background: ".concat(o?De.Black:r,";\n    color: ").concat(o?De.White:a,";\n  "),manage:"\n    background: transparent;\n    border: none;\n    color: ".concat(o?De.White:De.Black,";\n  ")}}(e.theme.theme,r);return"\n    ".concat(o,".").concat(Ie.DialogClass," h2 {\n      color: ").concat(r.fontColor,";\n      font-family: inherit;\n      font-size: 120%;\n      margin: 0 0 .5em 0;\n      padding: 0;\n      font-weight: bold;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," p {\n      color: ").concat(r.fontColor,";\n      font-family: inherit;\n      line-height: 1.3;\n      margin: 0;\n      padding: 0;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," a {\n      color: ").concat(r.fontColor,";\n      text-decoration: underline;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button {\n      border: none;\n      text-decoration: none;\n      font-family: inherit;\n      padding: 10px 25px;\n      margin-top: 15px;\n      font-size: 100%;\n      flex-basis: 50%;\n      border-radius: 2px;\n      line-height: 120%;\n      height: unset;\n      text-align: center;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button:focus {\n      outline: none;\n      box-shadow: 0 0 0 4px ").concat(r.focused,";\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button:hover {\n      cursor: pointer;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button.").concat(Ie.ButtonAcceptClass," {\n      border: 1px solid ").concat(r.button.borderColor,";\n      ").concat(i.accept,"\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button.").concat(Ie.ButtonManagePrefsClass," {\n      text-decoration: underline;\n      padding: 0;\n      ").concat(i.manage,"\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button.").concat(Ie.ButtonManagePrefsClass,":focus {\n      box-shadow: none;\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button.").concat(Ie.ButtonManagePrefsClass,":focus span {\n      outline: 2px solid ").concat(r.focused,";\n    }\n    ").concat(o,".").concat(Ie.DialogClass," button.").concat(Ie.ButtonDeclineClass," {\n      border: 1px solid ").concat(r.button.borderColor,";\n      ").concat(i.decline,"\n    }\n    ").concat(o,".").concat(Ie.BodyClass," p a:focus {\n      outline: 2px solid ").concat(r.focused,";\n      box-shadow: none;\n    }\n    ").concat(a,"\n  ")}var Me="8e9cb600c40a8849ba2b6151bb05805c";function Re(n,e,t){var o;try{!function(n){var e=new XMLHttpRequest;e.open("POST","https://error-analytics-production.shopifysvc.com",!0),e.setRequestHeader("Content-Type","application/json"),e.setRequestHeader("Bugsnag-Api-Key",Me),e.setRequestHeader("Bugsnag-Payload-Version","5");var t=function(n){var e=function(n){return n.stackTrace||n.stack||n.description||n.name}(n.error),t=n.error&&"string"==typeof n.error.name&&n.error.name.trim()||"",o=n.error&&"string"==typeof n.error.message&&n.error.message.trim()||"",r=(e||"unknown error").split("\n")[0],a=t||"Error",i=o||r;return JSON.stringify({payloadVersion:5,notifier:{name:"privacyBanner",version:"latest",url:"-"},events:[{exceptions:[{errorClass:a.trim(),message:(i||"").trim(),stacktrace:[{file:"storefront-banner.js",lineNumber:"1",method:e}],type:"browserjs"}],context:n.context||"general",app:{id:"privacyBanner",version:"latest"},metaData:{request:{shopId:n.shopId,shopUrl:window.location.href},device:{userAgent:window.navigator.userAgent},"Additional Notes":n.notes},unhandled:!1}]})}(n);e.send(t)}({error:n,context:e,shopId:je()||(null===(o=window.Shopify)||void 0===o?void 0:o.shop),notes:t})}catch(n){}}function je(){var n;try{var e=null===(n=null===document||void 0===document?void 0:document.getElementById("shopify-features"))||void 0===n?void 0:n.textContent;return e?JSON.parse(e).shopId:null}catch(n){return null}}function He(n){var e=window.location.search.substring(1);if(0===e.length)return null;var t=e.split("&").map((function(n){return n.split("=")})),o=t.filter((function(e){return e[0]===n}))[0];return(o?o[1]:null)||null}function Le(n){var e={marketing:n.marketing,analytics:n.analytics,preferences:n.preferences,sale_of_data:n.sale_of_data};n.storefrontAccessToken&&(e.headlessStorefront=!0,e.checkoutRootDomain=n.checkoutRootDomain,e.storefrontRootDomain=n.storefrontRootDomain,e.storefrontAccessToken=n.storefrontAccessToken),te(e,n.callback)}var Ne=function(){var n=pe();return n.marketing===U&&n.analytics===U&&n.preferences===U},Fe=["127.0.0.1"],We=function(){var n,e=Hn()&&Ne();return!window.location.pathname.match(/\/password$/)&&(n=window.location.hostname||window.location.host||"",!Fe.some((function(e){return n.startsWith(e)})))&&e},qe=function(){return"1"===He("preview_privacy_banner")},Ue=function(){var n;return Boolean(!0===(null===(n=null===window||void 0===window?void 0:window.Shopify)||void 0===n?void 0:n.previewMode))&&Ne()},ze=function(){return qe()||Ue()},Ge=function(){function n(){}return n.getServerData=function(n,e,r,a){return t(this,void 0,void 0,(function(){return o(this,(function(t){return this.domain=n,this.accessToken=e||this.liquidAccessToken(),this.locale=r,this.country=a,[2,this.getDataFromStorefrontApi()]}))}))},n.getEmbeddedData=function(){var n=document.getElementById("scb4127");if(n)return JSON.parse(n.textContent||"")},n.fetchParams=function(n){var e=n.accessToken,t=n.unlocalized,o=this.currentLanguage(),r=this.currentCountry(),a=!o||!r||t?"":"@inContext(language: ".concat(o,", country: ").concat(r,")"),i=ze();return{headers:{"content-type":"application/json","x-shopify-storefront-access-token":e},body:JSON.stringify({query:"\n        query bannerQuery ($isPreviewMode: Boolean = ".concat(i,") ").concat(a," {\n          consentManagement {\n            banner {\n              enabled\n              position\n              policyLinkText\n              policyLinkUrl\n              title\n              text\n              buttonPrefsOpenText\n              buttonAcceptText\n              buttonDeclineText\n              regionVisibility @include(if: $isPreviewMode)\n              theme {\n                theme\n                fontColor\n                backgroundColor\n                buttonFontColor\n                buttonBackgroundColor\n              }\n              preferences {\n                title\n                introTitle\n                introText\n                buttonAcceptText\n                buttonDeclineText\n                buttonSaveText\n                bulletPoints {\n                  enabled\n                  title\n                  firstText\n                  secondText\n                  thirdText\n                }\n                purposes {\n                  essentialName\n                  essentialDesc\n                  performanceName\n                  performanceDesc\n                  preferencesName\n                  preferencesDesc\n                  marketingName\n                  marketingDesc\n                }\n              }\n            }\n          }\n        }"),variables:{isPreviewMode:ze()}}),method:"POST"}},n.getDataFromStorefrontApi=function(n){return t(this,void 0,void 0,(function(){var t,r,a,i,c,s,l,u;return o(this,(function(o){switch(o.label){case 0:if(!this.accessToken)throw new Error("Missing access token");return t=/^(localhost|127\.0\.0\.1)(:|$)/.test(this.domain||"")?"http":"https",r=this.domain?"".concat(t,"://").concat(this.domain):"",a="".concat(r,"/api/unstable/graphql.json"),[4,fetch(a,this.fetchParams({accessToken:this.accessToken,unlocalized:n}))];case 1:return 200!==(i=o.sent()).status?[3,3]:[4,i.json()];case 2:if((c=o.sent()).errors){if((s=c.errors.find((function(n){return"argumentLiteralsIncompatible"===n.extensions.code||"variableLiteralsIncompatible"===n.extensions.code})))&&!n)return l=s.message||"",u=l.includes("Directive 'inContext'")&&l.includes("invalid value"),window.Weglot||u?console.log("Banner localization error",s.message):Re(new Error(s.message),"DataFetching"),[2,this.getDataFromStorefrontApi(!0)];throw new Error(c.errors[0].message)}return[2,e({},c.data.consentManagement.banner)];case 3:throw new Error("Could not reach the server")}}))}))},n.liquidAccessToken=function(){var n=document.documentElement.querySelector("#shopify-features");if(n){var e=JSON.parse(n.textContent||"").accessToken;if(e)return e;console.warn("Could not find liquid access token")}else console.warn("Could not find liquid access token")},n.currentLanguage=function(){var n=this.locale;if(n){n=n.replace("-","_").toUpperCase();return["PT_BR","PT_PT","ZH_CN","ZH_TW"].includes(n)||(n=n.split("_")[0]),n}},n.currentCountry=function(){var n;return null===(n=this.country)||void 0===n?void 0:n.toUpperCase()},n}();function Je(n,e,t){return(e=function(n){var e=function(n,e){if("object"!=_(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var o=t.call(n,e);if("object"!=_(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==_(e)?e:e+""}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ve(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function Ke(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(t),!0).forEach((function(e){Je(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ve(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var $e="http://localhost:8082",Xe="https://monorail-edge.shopifysvc.com",Ze="/v1/produce";var Ye=function(){return l((function(n){this.producer=n}),[{key:"do",value:function(n,e){return void 0!==n.schemaId?this.producer.produce(n):this.producer.produceBatch(n)}}])}();function Qe(){if("undefined"!=typeof crypto&&crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();for(var n=new Array(36),e=0;e<36;e++)n[e]=Math.floor(16*Math.random());return n[14]=4,n[19]=n[19]&=-5,n[19]=n[19]|=8,n[8]=n[13]=n[18]=n[23]="-",n.map((function(n){return n.toString(16)})).join("")}function nt(n,e){return void 0===e&&(e=!0),n&&Object.keys(n).length&&e?Object.keys(n).map((function(e){return u({},e.split(/(?=[A-Z])/).join("_").toLowerCase(),n[e])})).reduce((function(n,e){return Ke(Ke({},n),e)})):n}function et(n){return n.events.map((function(n){var e=!0,t=!0;return n&&n.options&&Object.prototype.hasOwnProperty.call(n.options,"convertEventCase")&&(e=Boolean(n.options.convertEventCase)),n&&n.options&&Object.prototype.hasOwnProperty.call(n.options,"convertMetaDataCase")&&(t=Boolean(n.options.convertMetaDataCase)),{schema_id:n.schemaId,payload:nt(n.payload,e),metadata:nt(n.metadata,t)}}))}var tt=function(n){function e(t){var o;return(o=n.call(this,"Error producing to the Monorail Edge. Response received: "+JSON.stringify(t))||this).response=t,Object.setPrototypeOf(o,e.prototype),o}return p(e,n),l(e)}(I(Error)),ot=function(n){function e(t){var o;return o=n.call(this,"Error producing to the Monorail Edge. Response received: "+JSON.stringify(t))||this,Object.setPrototypeOf(o,e.prototype),o.response=t,o}return p(e,n),l(e)}(I(Error)),rt=function(n){function e(t){var o;return o=n.call(this,"Error completing request. A network failure may have prevented the request from completing. Error: "+t)||this,Object.setPrototypeOf(o,e.prototype),o}return p(e,n),l(e)}(I(Error)),at=function(){function n(n,e){void 0===n&&(n=$e),void 0===e&&(e=!1),this.edgeDomain=n,this.keepalive=e}return l(n,[{key:"produceBatch",value:(t=c(E().mark((function n(e){var t,o,r;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t={events:et(e),metadata:nt(e.metadata)},n.prev=1,n.next=4,fetch(this.produceBatchEndpoint(),{method:"post",headers:it(e.metadata),body:JSON.stringify(t),keepalive:this.keepalive});case 4:o=n.sent,n.next=10;break;case 7:throw n.prev=7,n.t0=n.catch(1),new rt(n.t0);case 10:if(207!==o.status){n.next=15;break}return n.next=13,o.json();case 13:throw r=n.sent,new ot(r);case 15:if(o.ok){n.next=23;break}return n.t1=tt,n.t2=o.status,n.next=20,o.text();case 20:throw n.t3=n.sent,n.t4={status:n.t2,message:n.t3},new n.t1(n.t4);case 23:return n.abrupt("return",{status:o.status});case 24:case"end":return n.stop()}}),n,this,[[1,7]])}))),function(n){return t.apply(this,arguments)})},{key:"produce",value:(e=c(E().mark((function n(e){var t,o;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=!0,e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(t=Boolean(e.options.convertEventCase)),n.prev=2,n.next=5,ct({endpoint:this.produceEndpoint(),keepalive:this.keepalive,event:Ke(Ke({},e),{},{payload:nt(e.payload,t)})});case 5:o=n.sent,n.next=11;break;case 8:throw n.prev=8,n.t0=n.catch(2),new rt(n.t0);case 11:if(o){n.next=13;break}throw new tt({message:"No response from edge"});case 13:if(o.ok){n.next=21;break}return n.t1=tt,n.t2=o.status,n.next=18,o.text();case 18:throw n.t3=n.sent,n.t4={status:n.t2,message:n.t3},new n.t1(n.t4);case 21:return n.abrupt("return",{status:o.status});case 22:case"end":return n.stop()}}),n,this,[[2,8]])}))),function(n){return e.apply(this,arguments)})},{key:"produceBatchEndpoint",value:function(){return this.edgeDomain+"/unstable/produce_batch"}},{key:"produceEndpoint",value:function(){return this.edgeDomain+Ze}}],[{key:"withEndpoint",value:function(e){return new n("https://"+new URL(e).hostname)}}]);var e,t}();function it(n){var e={"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":(n&&n.eventCreatedAtMs||Date.now()).toString(),"X-Monorail-Edge-Event-Sent-At-Ms":Date.now().toString(),"X-Monorail-Edge-Client-Message-Id":(n&&n.clientMessageId||Qe()).toString()};return n&&n.userAgent&&(e["User-Agent"]=n.userAgent),n&&n.remoteIp&&(e["X-Forwarded-For"]=n.remoteIp),e}function ct(n){return st.apply(this,arguments)}function st(){return(st=c(E().mark((function n(e){var t,o,r;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.endpoint,o=e.event,r=e.keepalive,n.abrupt("return",fetch(null!=t?t:Xe+Ze,{method:"post",headers:it(o.metadata),body:JSON.stringify({schema_id:o.schemaId,payload:o.payload}),keepalive:r}));case 2:case"end":return n.stop()}}),n)})))).apply(this,arguments)}var lt,ut,dt,pt,ft=function(){return l((function n(e){this.sendToConsole=e,e&&n.printWelcomeMessage(e)}),[{key:"produce",value:function(n){return this.sendToConsole&&console.log("Monorail event produced",n),new Promise((function(e){e(n)}))}},{key:"produceBatch",value:function(n){return this.sendToConsole&&console.log("Monorail Batch event produced",n),new Promise((function(e){e(n)}))}}],[{key:"printWelcomeMessage",value:function(n){console.log("%c👋 from Monorail%c\n\nWe've noticed that you're"+(n?"":" not")+" running in debug mode. As such, we will "+(n?"produce":"not produce")+" Monorail events to the console. \n\nIf you want Monorail events to "+(n?"stop":"start")+" appearing here, %cset debugMode="+(!n).toString()+"%c, for the Monorail Log Producer in your code.","font-size: large;","font-size: normal;","font-weight: bold;","font-weight: normal;")}}])}(),ht=function(){function n(e,t){this.producer=e,this.middleware=t,this.executeChain=n.buildMiddlewareChain(this.middleware.concat(new Ye(e)))}return l(n,[{key:"produce",value:function(n){return n.metadata=Ke({eventCreatedAtMs:Date.now(),clientMessageId:Qe()},n.metadata),this.executeChain(n)}},{key:"produceBatch",value:function(n){return this.executeChain(n)}}],[{key:"createLogProducer",value:function(e){return new n(new ft(e.debugMode),e.middleware||[])}},{key:"createHttpProducerWithEndpoint",value:function(e,t){return void 0===t&&(t=[]),new n(at.withEndpoint(e),t)}},{key:"createHttpProducer",value:function(e){var t=e.options&&e.options.keepalive;return new n(e.production?new at(Xe,t):new at($e,t),e.middleware||[])}},{key:"buildMiddlewareChain",value:function(n,e){var t=this;return void 0===e&&(e=0),e===n.length?this.identityFn:function(o){return n[e].do(o,t.buildMiddlewareChain(n,e+1))}}}])}(),mt=function(){function n(n){var e=void 0===n?{}:n,t=e.shopDomain,o=e.isHeadless;this.VISIT_TOKEN="_shopify_s",this.shopDomain=t,this.isHeadless=o,this.monorail=ht.createHttpProducer({production:!0})}return n.prototype.shouldEmit=function(){return!(this.isHeadless&&!0)},n.prototype.emitInteraction=function(n,t){if(void 0===t&&(t=""),this.shouldEmit()){var o=this.getCommonPayload();this.monorail.produce({schemaId:"privacy_banner_interact/1.2",payload:e(e(e({},o),t&&{interactionMetadata:t}),{interactionType:n})})}},n.prototype.emitRender=function(){if(this.shouldEmit()){var n=this.getCommonPayload();this.monorail.produce({schemaId:"privacy_banner_render/1.1",payload:e({},n)})}},n.prototype.emitInitialized=function(){if(this.shouldEmit()){var n=this.getCommonPayload();this.monorail.produce({schemaId:"privacy_banner_initialized/1.0",payload:e({},n)})}},n.prototype.visitorRegion=function(){var n=document.cookie.split(";").find((function(n){return n.includes("_tracking_consent=")}));if(!n)return null;var e={};try{e=JSON.parse(unescape(n.split("=")[1]))}catch(n){return null}return e.region||null},n.prototype.getCommonPayload=function(){var n,t=this.shopDomain||(null===(n=window.Shopify)||void 0===n?void 0:n.shop),o=function(n){for(var e=0,t=decodeURIComponent(document.cookie).split(";");e<t.length;e++){var o=t[e].split("="),r=o[0],a=o[1];if(r.trim()===n)return a}return""}(this.VISIT_TOKEN)||"0",r=window.location.pathname,a=this.visitorRegion();return e({shopPermanentDomain:t,sessionToken:o,regulation:"CMP",path:r},a&&{region:a})},n}();function yt(n,e){return(null==e?void 0:e.id)&&n.setAttribute("id",e.id),(null==e?void 0:e.class)&&n.setAttribute("class",e.class),(null==e?void 0:e.onClick)&&n.addEventListener("click",e.onClick),(null==e?void 0:e.appendTo)&&e.appendTo.appendChild(n),(null==e?void 0:e.role)&&n.setAttribute("role",e.role),(null==e?void 0:e.autofocus)&&n.setAttribute("autofocus",""),(null==e?void 0:e.ariaHidden)&&n.setAttribute("aria-hidden","".concat(null==e?void 0:e.ariaHidden)),n}function gt(n){var e=yt(document.createElement("div"),n);return(null==n?void 0:n.text)&&(e.textContent=n.text),(null==n?void 0:n.ariaModal)&&e.setAttribute("aria-modal",n.ariaModal),(null==n?void 0:n.ariaLabelledby)&&e.setAttribute("aria-labelledby",n.ariaLabelledby),e}function vt(n){var e=yt(document.createElement("span"),n);return(null==n?void 0:n.text)&&(e.textContent=n.text),e}function bt(n){var e,t=yt(document.createElement("button"),n);return t.textContent=null!==(e=null==n?void 0:n.text)&&void 0!==e?e:null,n.disabled&&t.setAttribute("disabled",""),n.ariaHaspopup&&t.setAttribute("aria-haspopup",n.ariaHaspopup),n.type&&t.setAttribute("type",n.type),n.ariaLabel&&t.setAttribute("aria-label",n.ariaLabel),t}function wt(n){var e=yt(document.createElement("p"),n);return e.textContent=n.text,e}function Ct(n,e){var t=yt(document.createElement(n),e);return t.textContent=e.text,t}function xt(n){return Ct(dt.H2,n)}function kt(n){return Ct(dt.H3,n)}function _t(n){var e=yt(document.createElement("style"),n);return e.textContent=n.content,e}function It(n){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width",n.width),e.setAttributeNS(null,"height",n.height),e.setAttributeNS(null,"viewBox","0 0 ".concat(n.width," ").concat(n.height)),(null==n?void 0:n.fillRule)&&e.setAttributeNS(null,"fill-rule",n.fillRule),(null==n?void 0:n.clipRule)&&e.setAttributeNS(null,"clip-rule",n.clipRule);var t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttributeNS(null,"fill",(null==n?void 0:n.colour)||"#000"),t.setAttributeNS(null,"d",n.path),e.appendChild(t),(null==n?void 0:n.id)&&e.setAttribute("id",n.id),(null==n?void 0:n.class)&&e.setAttribute("class",n.class),(null==n?void 0:n.dataIconType)&&e.setAttribute("data-icon-type",n.dataIconType),(null==n?void 0:n.ariaHidden)&&e.setAttribute("aria-hidden","".concat(null==n?void 0:n.ariaHidden)),(null==n?void 0:n.focusable)&&e.setAttribute("focusable","".concat(null==n?void 0:n.focusable)),(null==n?void 0:n.appendTo)&&n.appendTo.appendChild(e),e}function Et(n){var e=yt(document.createElement("section"),n);return(null==n?void 0:n.text)&&(e.textContent=n.text),(null==n?void 0:n.ariaModal)&&e.setAttribute("aria-modal",n.ariaModal),(null==n?void 0:n.ariaLabelledby)&&e.setAttribute("aria-labelledby",n.ariaLabelledby),e}function Dt(n){var e=n.bannerData,t=Et({id:Ie.DialogId,class:Ie.DialogClass,role:"alertdialog",ariaModal:"false",ariaLabelledby:Ie.BodyTitleId}),o=gt({class:Ie.WrapperClass});t.appendChild(o);var r=gt({class:Ie.BodyClass});o.appendChild(r);var a=gt({class:Ie.ButtonsClass});return a.classList.add(Ie.ButtonsGranularClass),o.appendChild(a),function(n,e){if(n.title){var t=xt({id:Ie.BodyTitleId,text:n.title});e.appendChild(t)}}(e,r),function(n,e){var t=wt({text:"".concat(n.text," ")}),o=function(n){var e=yt(document.createElement("a"),n);return e.setAttribute("href",n.href),e.textContent=n.text,e.setAttribute("target",void 0===n.target?"_blank":n.target),n.target&&"_blank"!==n.target||e.setAttribute("rel","noopener noreferrer"),e}({id:Ie.BodyCopyPolicyLinkId,href:n.policyLinkUrl,target:"_blank",text:n.policyLinkText?n.policyLinkText:"Privacy Policy"});t.appendChild(o),e.appendChild(t)}(e,r),function(n,e){var t=vt({text:n.buttonPrefsOpenText}),o=bt({id:Ie.ButtonManagePrefsId,class:Ie.ButtonManagePrefsClass,ariaHaspopup:"dialog",type:"button"});o.appendChild(t),e.appendChild(o)}(e,a),function(n,e){e.appendChild(bt({id:Ie.ButtonAcceptId,class:Ie.ButtonAcceptClass,type:"button",text:n.buttonAcceptText}))}(e,a),function(n,e){e.appendChild(bt({id:Ie.ButtonDeclineId,class:Ie.ButtonDeclineClass,type:"button",text:n.buttonDeclineText}))}(e,a),t}function Ot(n,e){var t,o,r,a,i=(t={appendTo:n},yt(document.createElement("header"),t));o=i,r="Close dialog",It({appendTo:a=bt({id:Ee.HeaderCloseId,class:Ee.HeaderCloseClass,ariaLabel:r,type:"button",text:""}),ariaHidden:!0,width:"12",height:"12",path:"M7.41401 6.00012L11.707 1.70721C12.098 1.31622 12.098 0.684236 11.707 0.293244C11.316 -0.097748 10.684 -0.097748 10.293 0.293244L6.00001 4.58615L1.70701 0.293244C1.31601 -0.097748 0.684006 -0.097748 0.293006 0.293244C-0.0979941 0.684236 -0.0979941 1.31622 0.293006 1.70721L4.58601 6.00012L0.293006 10.293C-0.0979941 10.684 -0.0979941 11.316 0.293006 11.707C0.488006 11.902 0.744006 12 1.00001 12C1.25601 12 1.51201 11.902 1.70701 11.707L6.00001 7.4141L10.293 11.707C10.488 11.902 10.744 12 11 12C11.256 12 11.512 11.902 11.707 11.707C12.098 11.316 12.098 10.684 11.707 10.293L7.41401 6.00012Z"}),o.appendChild(a),xt({id:Ee.HeaderTitleId,text:e.preferences.title,appendTo:i});var c=gt({class:Ee.HeaderActionsClass,appendTo:i});return function(n,e){n.appendChild(bt({id:Ee.HeaderAcceptId,type:"button",text:e}))}(c,e.preferences.buttonAcceptText),function(n,e){n.appendChild(bt({id:Ee.HeaderDeclineId,type:"button",text:e}))}(c,e.preferences.buttonDeclineText),function(n,e){n.appendChild(bt({id:Ee.HeaderSaveId,type:"button",text:e}))}(c,e.preferences.buttonSaveText),i}function At(n,e){var t=gt({class:Ee.IntroClass,appendTo:n});return function(n,e){var t=gt({class:Ee.IntroMainClass,appendTo:n});kt({text:e.preferences.introTitle,appendTo:t}),wt({text:e.preferences.introText,appendTo:t})}(t,e),e.preferences.bulletPoints.enabled&&function(n,e){var t=gt({class:Ee.IntroExplainWrapperClass,appendTo:n}),o=gt({class:Ee.IntroExplainAcceptClass,appendTo:t});kt({text:e.preferences.bulletPoints.title||"",appendTo:o});var r=[];e.preferences.bulletPoints.firstText&&r.push(e.preferences.bulletPoints.firstText);e.preferences.bulletPoints.secondText&&r.push(e.preferences.bulletPoints.secondText);e.preferences.bulletPoints.thirdText&&r.push(e.preferences.bulletPoints.thirdText);(function(n){var e=yt(document.createElement("ul"),n);n.lis&&n.lis.forEach((function(n){var t=document.createElement("li");t.textContent=n,e.appendChild(t)}))})({lis:r,appendTo:o})}(t,e),t}function Tt(n){var t=n.themeColours,o=n.purpose,r=n.ids,a=n.parent,i=r.input===Ee.OptionEssentialInputId,c=It({dataIconType:"unchecked",width:"24",height:"24",path:"M5 2c-1.654 0-3 1.346-3 3v14c0 1.654 1.346 3 3 3h14c1.654 0 3-1.346 3-3v-14c0-1.654-1.346-3-3-3h-14zm19 3v14c0 2.761-2.238 5-5 5h-14c-2.762 0-5-2.239-5-5v-14c0-2.761 2.238-5 5-5h14c2.762 0 5 2.239 5 5z",colour:t.iconColor,focusable:!0}),s=function(n){return It({dataIconType:"checked",width:"24",height:"24",path:"M19 0h-14c-2.762 0-5 2.239-5 5v14c0 2.761 2.238 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-8.959 17l-4.5-4.319 1.395-1.435 3.08 2.937 7.021-7.183 1.422 1.409-8.418 8.591z",colour:n,focusable:!0})}(t.iconColor),l=gt({class:Ee.OptionClass,id:r.section}),u=function(n){var e=yt(document.createElement("label"),n);return e.setAttribute("for",n.for),(null==n?void 0:n.text)&&(e.textContent=n.text),e}({appendTo:l,for:r.input,text:o.description});!function(n){var e=yt(document.createElement("input"),n);e.setAttribute("type",n.type),n.checked&&e.setAttribute("checked","true"),n.disabled&&e.setAttribute("disabled","".concat(n.disabled)),(null==n?void 0:n.onChange)&&e.addEventListener("change",n.onChange),n.tabindex&&e.setAttribute("tabindex","".concat(n.tabindex)),!0===n.ariaReadonly&&e.setAttribute("aria-readonly","".concat(n.ariaReadonly))}(e({appendTo:u,id:r.input,type:"checkbox",checked:i,ariaReadonly:i},n.tabindex&&{tabindex:n.tabindex}));var d=vt({appendTo:u,ariaHidden:!0});d.appendChild(s),d.appendChild(c),wt({appendTo:l,text:o.longDescription}),i?(s.style.display="block",c.style.display="none"):(s.style.display="none",c.style.display="block"),a.appendChild(l)}function Bt(n){var e=n.bannerData,t=gt({id:Ee.WrapperId,class:Ee.WrapperClass}),o=gt({id:Ee.OverlayId,class:Ee.OverlayClass,text:" "});t.appendChild(o);var r=Et({id:Ee.DialogId,class:Ee.DialogClass,role:"dialog",ariaModal:"true",ariaLabelledby:Ee.HeaderTitleId});t.appendChild(r),Ot(r,e);var a=gt({class:Ee.DialogScrollableClass});return r.appendChild(a),At(a,e),function(n,e){var t=Se(e.theme.theme,e.theme.fontColor,e.theme.backgroundColor,e.theme.buttonFontColor,e.theme.buttonBackgroundColor),o=gt({class:Ee.OptionWrapperClass});n.appendChild(o),Tt({themeColours:t,ids:{section:Ee.OptionEssentialId,input:Ee.OptionEssentialInputId},purpose:{description:e.preferences.purposes.essentialName,longDescription:e.preferences.purposes.essentialDesc},parent:o,tabindex:"-1"}),Tt({themeColours:t,ids:{section:Ee.OptionPreferencesId,input:Ee.OptionPreferencesInputId},purpose:{description:e.preferences.purposes.preferencesName,longDescription:e.preferences.purposes.preferencesDesc},parent:o}),Tt({themeColours:t,ids:{section:Ee.OptionMarketingId,input:Ee.OptionMarketingInputId},purpose:{description:e.preferences.purposes.marketingName,longDescription:e.preferences.purposes.marketingDesc},parent:o}),Tt({themeColours:t,ids:{section:Ee.OptionAnalyticsId,input:Ee.OptionAnalyticsInputId},purpose:{description:e.preferences.purposes.performanceName,longDescription:e.preferences.purposes.performanceDesc},parent:o})}(a,e),t}!function(n){n.Accepted="accept",n.Declined="decline",n.AcceptedAll="accept_all",n.DeclinedAll="decline_all",n.ManagePreferences="manage_preferences",n.Save="save",n.LeavePreferences="leave_preferences",n.PrivacyPolicyView="privacy_policy_view"}(lt||(lt={})),function(n){n.BottomFullWidth="bottom-full-width",n.BottomLeft="bottom-left",n.Center="center",n.BottomRight="bottom-right",n.BottomCenter="bottom-center"}(ut||(ut={})),function(n){n.H1="h1",n.H2="h2",n.H3="h3"}(dt||(dt={})),function(n){n.Escape="Escape",n.Tab="Tab"}(pt||(pt={}));var St=function(){function n(n){var e=n.bannerData,t=n.storefrontAccessToken,o=n.checkoutRootDomain,r=n.storefrontRootDomain;this.bannerData=e,t?(this.storefrontAccessToken=t,this.checkoutRootDomain=o,this.storefrontRootDomain=r,this.logger=new mt({shopDomain:o,isHeadless:!0})):this.logger=new mt}return n.show=function(){var n=document.getElementById(Ee.WrapperId);null!==n&&(n.style.display="block",document.body.style.setProperty("overflow","hidden"))},n.hide=function(n){var e=document.getElementById(Ee.WrapperId);null!==e&&(e.style.display="none",document.body.style.removeProperty("overflow")),n&&n.focus()},n.hideModalAndBanner=function(e){n.hide();var t=document.getElementById(Ie.DialogId);null!==t&&(t.style.display="none"),e&&e.focus()},n.selectedConsent=function(){var n=document.getElementById(Ee.OptionMarketingInputId),e=document.getElementById(Ee.OptionAnalyticsInputId),t=document.getElementById(Ee.OptionPreferencesInputId),o=n.checked?"1":"0",r=e.checked?"1":"0",a=t.checked?"1":"0";return"".concat(o).concat(r).concat(a)},n.prototype.init=function(){return t(this,void 0,void 0,(function(){return o(this,(function(n){return this.render(),[2]}))}))},n.prototype.setCheckboxesToCurrentConsent=function(){var n=document.getElementById(Ee.OptionAnalyticsInputId),e=document.getElementById(Ee.OptionPreferencesInputId),t=document.getElementById(Ee.OptionMarketingInputId);this.handleOptionChange({target:n,isReadOnly:!1,sectionId:Ee.OptionAnalyticsId,checked:be()}),this.handleOptionChange({target:e,isReadOnly:!1,sectionId:Ee.OptionPreferencesId,checked:we()}),this.handleOptionChange({target:t,isReadOnly:!1,sectionId:Ee.OptionMarketingId,checked:ve()})},n.prototype.render=function(){this.addCSS(this.bannerData),this.addHTML(this.bannerData),this.previouslyFocusedElement=document.activeElement,n.show(),this.setupCheckboxEventHandlers(),this.setupButtonEventHandlers(),this.setupKeyboardEventHandlers(),this.logger.emitInteraction(lt.ManagePreferences)},n.prototype.addCSS=function(n){var e=function(n){var e=n.bannerData,t=n.selectorPrefix,o=t?"".concat(t," "):"",r=Se(e.theme.theme,e.theme.fontColor,e.theme.backgroundColor,e.theme.buttonFontColor,e.theme.buttonBackgroundColor);return"\n    ".concat(o,".").concat(Ee.WrapperClass," {\n      position: relative;\n    }\n    ").concat(o,".").concat(Ee.WrapperClass,':after {\n      content: "";\n      display: block;\n      clear: both;\n    }\n\n    ').concat(o,".").concat(Ee.DialogClass," {\n      box-shadow: 0 5px 10px rgb(63 63 68 / 50%);\n      position: fixed;\n      z-index: 2000002;\n      opacity: 1;\n      background-color: ").concat(r.backgroundColor,";\n      max-height: 80%;\n      overflow-y: auto;\n      top: 50%;\n      transform: translate(0, -50%);\n      min-width: 280px;\n      border-radius: 3px;\n      display: flex;\n      flex-direction: column;\n      left: 25%;\n      width: 50%;\n      text-align: left;\n    }\n    @media only screen and (max-width: 1900px) {\n      ").concat(o,".").concat(Ee.DialogClass," {\n        left: 20%;\n        width: 60%;\n      }\n    }\n    @media only screen and (max-width: 1600px) {\n      ").concat(o,".").concat(Ee.DialogClass," {\n        left: 15%;\n        width: 70%;\n      }\n    }\n    @media only screen and (max-width: 1350px) {\n      ").concat(o,".").concat(Ee.DialogClass," {\n        left: 5%;\n        width: 90%;\n      }\n    }\n\n    ").concat(o,".").concat(Ee.OverlayClass," {\n      z-index: 2000001;\n      position: fixed;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      background-color: rgba(0, 0, 0, 0.6);\n    }\n\n    /* Header */\n\n    ").concat(o,".").concat(Ee.DialogClass," header {\n      display: flex;\n      flex-direction: row;\n      justify-content: space-between;\n      align-items: center;\n      padding: 32px 32px 20px 32px;\n      border-bottom: 1px solid ").concat(r.sectionDivider,";\n      position: relative;\n      background: transparent;\n    }\n\n    @media only screen and (max-width: 1200px) {\n      ").concat(o,".").concat(Ee.DialogClass," header {\n        flex-direction: column;\n      }\n    }\n    @media only screen and (max-width: 400px) {\n      ").concat(o,".").concat(Ee.DialogClass," header {\n        padding: 15px 20px 10px 20px;\n      }\n    }\n    ").concat(o,".").concat(Ee.DialogClass," header h2 {\n      color: ").concat(r.fontColor,";\n      font-family: inherit;\n      margin: 0;\n      padding: 0 20px 0 0 !important;\n      font-weight: 600;\n      font-size: 130%;\n      line-height: 1.2;\n      width: 100%;\n      text-align: left;\n      word-break: normal;\n    }\n    @media only screen and (max-width: 1200px) {\n      ").concat(o,".").concat(Ee.DialogClass," header h2 {\n        margin: 0 0 .8em 0;\n        padding: 0 !important;\n        text-align: center;\n      }\n    }\n    @media only screen and (max-width: 750px) {\n      ").concat(o,".").concat(Ee.DialogClass," header h2 {\n        text-align: left;\n        padding: 0 25px 0 0 !important;\n      }\n    }\n\n    ").concat(o,".").concat(Ee.HeaderCloseClass," {\n      position: absolute;\n      top: 40px;\n      right: 35px;\n      width: 24px;\n      height: 24px;\n      padding: 0;\n      margin: 0;\n      background: transparent;\n      border: none;\n      outline: none;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      align-content: center;\n      border-radius: 50%;\n      min-width: 24px;\n    }\n\n    ").concat(o,".").concat(Ee.HeaderCloseClass," svg {\n      height: 12px;\n      width: 12px;\n    }\n\n    @media only screen and (max-width: 1200px) {\n      ").concat(o,".").concat(Ee.HeaderCloseClass," {\n        top: 20px;\n        right: 20px;\n      }\n    }\n    @media only screen and (max-width: 750px) {\n      ").concat(o,".").concat(Ee.HeaderCloseClass," {\n        top: 30px;\n        right: 30px;\n      }\n    }\n    @media only screen and (max-width: 400px) {\n      ").concat(o,".").concat(Ee.HeaderCloseClass," {\n        top: 15px;\n        right: 15px;\n      }\n    }\n    ").concat(o,".").concat(Ee.HeaderCloseClass,":hover {\n      cursor: pointer;\n    }\n    ").concat(o,".").concat(Ee.HeaderCloseClass,":focus {\n      outline: none;\n      box-shadow: 0 0 0 3px ").concat(r.focused,";\n    }\n    ").concat(o,".").concat(Ee.HeaderCloseClass," svg path {\n      fill: ").concat(r.fontColor,";\n    }\n    ").concat(o,".").concat(Ee.HeaderCloseClass,":disabled svg path {\n      fill: ").concat(r.sectionDivider,";\n    }\n\n    ").concat(o,".").concat(Ee.HeaderActionsClass," {\n      margin: 0;\n      display: flex;\n      justify-content: space-around;\n      flex-direction: row;\n      padding: 0 50px 0 0;\n      width: auto;\n    }\n\n    @media only screen and (max-width: 750px) {\n      ").concat(o,".").concat(Ee.HeaderActionsClass," {\n        flex-direction: column;\n        width: 100%;\n      }\n    }\n    @media only screen and (max-width: 1200px) {\n      ").concat(o,".").concat(Ee.HeaderActionsClass," {\n        padding: 0;\n      }\n    }\n    ").concat(o,".").concat(Ee.HeaderActionsClass," button {\n      text-decoration: none;\n      font-family: inherit;\n      padding: 8px 25px 10px 25px;\n      margin: 0 20px 0 0;\n      font-size: 110%;\n      background: ").concat(r.button.backgroundColor,";\n      color: ").concat(r.button.fontColor,";\n      border: 1px solid ").concat(r.button.borderColor,";\n      white-space: nowrap;\n      border-radius: 2px;\n      line-height: 120%;\n      height: unset;\n    }\n    @media only screen and (max-width: 750px) {\n      ").concat(o,".").concat(Ee.HeaderActionsClass," button {\n        width: 100%;\n        margin-bottom: 15px;\n      }\n    }\n    ").concat(o,".").concat(Ee.HeaderActionsClass," button.primary {\n      background: ").concat(r.primaryButton.backgroundColor,";\n      color: ").concat(r.primaryButton.fontColor,";\n      border: 1px solid ").concat(r.primaryButton.borderColor,";\n    }\n    ").concat(o,".").concat(Ee.HeaderActionsClass," button:last-child {\n      margin-right: 0;\n    }\n    ").concat(o,".").concat(Ee.HeaderActionsClass," button:hover {\n      cursor: pointer;\n    }\n    ").concat(o,".").concat(Ee.HeaderActionsClass," button:focus {\n      outline: none;\n      box-shadow: 0 0 0 4px ").concat(r.focused,";\n    }\n\n    ").concat(o,".").concat(Ee.DialogScrollableClass," {\n      overflow-y: auto;\n      position: relative;\n    }\n\n    ").concat(o,".").concat(Ee.DialogScrollableClass,"::-webkit-scrollbar {\n      width: 0px;\n      background: transparent;\n    }\n\n    /* Intro */\n\n    ").concat(o,".").concat(Ee.IntroClass," h3 {\n      color: ").concat(r.fontColor,";\n      font-family: inherit;\n      margin: 0 0 15px 0;\n      padding: 0 !important;\n      font-weight: 600;\n      line-height: 1.2;\n      text-align: left;\n    }\n    ").concat(o,".").concat(Ee.IntroClass," p {\n      color: ").concat(r.fontSubduedColor,";\n      font-family: inherit;\n      margin: 0;\n      padding: 0;\n    }\n    ").concat(o,".").concat(Ee.IntroClass," ul {\n      margin: 0;\n      padding: 0;\n    }\n    ").concat(o,".").concat(Ee.IntroClass," ul li {\n      margin: 0 0 0.5em 1.7em;\n      padding: 0;\n      line-height: 1.2;\n    }\n    ").concat(o,".").concat(Ee.IntroMainClass," {\n      padding: 20px 32px 0 32px;\n      line-height: 1.5;\n    }\n    @media only screen and (max-width: 400px) {\n      ").concat(o,".").concat(Ee.IntroMainClass," {\n        padding: 20px 20px 0 20px;\n      }\n    }\n    ").concat(o,".").concat(Ee.IntroMainClass," p {\n      padding-bottom: 20px;\n    }\n    ").concat(o,".").concat(Ee.IntroMainClass," h3 {\n      font-size: 110%;\n    }\n    ").concat(o,".").concat(Ee.IntroMainClass," p {\n      font-size: 105%;\n      margin: 0;\n      padding: 0;\n    }\n    ").concat(o,".").concat(Ee.IntroExplainWrapperClass," {\n      display: flex;\n      flex-direction: row;\n      justify-content: center;\n      margin: 0;\n      padding: 20px 32px 0 32px;\n      color: ").concat(r.fontSubduedColor,";\n    }\n    @media only screen and (max-width: 700px) {\n      ").concat(o,".").concat(Ee.IntroExplainWrapperClass," {\n        flex-direction: column;\n        padding-bottom: 0;\n      }\n    }\n    @media only screen and (max-width: 400px) {\n      ").concat(o,".").concat(Ee.IntroExplainWrapperClass," {\n        padding: 20px 20px 0 20px;\n      }\n    }\n    ").concat(o,".").concat(Ee.IntroExplainAcceptClass," {\n      width: 100%;\n      padding: 0 40px 0 0;\n    }\n    ").concat(o,".").concat(Ee.IntroExplainAcceptClass," li {\n      list-style-type: disc;\n    }\n    @media only screen and (max-width: 700px) {\n      ").concat(o,".").concat(Ee.IntroExplainAcceptClass," {\n        width: 100%;\n        padding-right: 0;\n      }\n    }\n    ").concat(o,".").concat(Ee.IntroExplainAcceptClass," h3 {\n      font-size: 110%;\n    }\n\n    /* Options */\n\n    ").concat(o,".").concat(Ee.OptionWrapperClass," {\n      padding: 0 32px 32px 32px;\n      color: ").concat(r.fontColor,";\n    }\n    @media only screen and (max-width: 400px) {\n      ").concat(o,".").concat(Ee.OptionWrapperClass," {\n        padding: 0 20px 15px 20px;\n      }\n    }\n\n    ").concat(o,".").concat(Ee.OptionClass," {\n      margin: 0;\n      font-size: 100%;\n      line-height: 1.1;\n      padding: 20px 0 0 0;\n    }\n    ").concat(o,".").concat(Ee.OptionClass,":first-child {\n      padding: 25px 0 0 0;\n      margin: 20px 0 0 0;\n      border-top: 1px solid ").concat(r.sectionDivider,";\n    }\n    ").concat(o,".").concat(Ee.OptionClass," label {\n      display: flex;\n      gap: 20px;\n      color: ").concat(r.fontColor,";\n      cursor: pointer;\n      font-family: inherit;\n      margin: 0 0 5px 0;\n      padding: 0;\n      font-weight: 600;\n      font-size: 110%;\n      line-height: 1.2;\n    }\n    ").concat(o,".").concat(Ee.OptionClass," label input {\n      position: absolute;\n      clip: rect(1px, 1px, 1px, 1px);\n      padding: 0;\n      border: 0;\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n    }\n    ").concat(o,".").concat(Ee.OptionClass," label span {\n      order: -1;\n      display: inline-block;\n      background-color: ").concat(r.backgroundColor,";\n      width: 24px;\n      height: 24px;\n    }\n    ").concat(o,".").concat(Ee.OptionClass," label span svg {\n      background-color: ").concat(r.backgroundColor,";\n      border-radius: 3px;\n    }\n    ").concat(o,".").concat(Ee.OptionClass,' label input[aria-readonly="true"] ~ span svg {\n      opacity: 0.2;\n      cursor: not-allowed;\n    }\n    ').concat(o,".").concat(Ee.OptionClass," label input:focus ~ span {\n      background-color: ").concat(r.focused,";\n    }\n    ").concat(o,".").concat(Ee.OptionClass," label input:focus ~ span svg {\n      outline: none;\n      border-radius: 5px;\n      box-shadow: 0 0 0 4px ").concat(r.focused,";\n    }\n    ").concat(o,".").concat(Ee.OptionClass," p {\n      line-height: 1.3;\n      font-size: 100%;\n      color: ").concat(r.fontSubduedColor,";\n      margin: 0;\n      padding: 0 0 0 45px;\n    }\n    @media only screen and (max-width: 700px) {\n      ").concat(o,".").concat(Ee.OptionClass," p {\n        width: 100%;\n        line-height: 1.4;\n      }\n    }\n  ")}({bannerData:n}),t=_t({id:Ee.StylesContainerId,content:e});document.head.appendChild(t)},n.prototype.addHTML=function(e){var t,o,r,a=Bt({bannerData:e}),i=document.getElementById(Ie.DialogId);o=a,null===(r=null==(t=i)?void 0:t.parentNode)||void 0===r||r.insertBefore(o,t.nextSibling);var c=document.getElementById(Ee.DialogId);c&&(this.setCheckboxesToCurrentConsent(),c.dataset.consent=n.selectedConsent()),n.hide()},n.prototype.handleOptionChange=function(e){var t=e.target,o=e.isReadOnly,r=e.sectionId,a=e.checked;(void 0!==a&&a||o)&&(t.checked=!0);var i,c,s,l=t.checked,u=document.getElementById(r),d=u.querySelector('svg[data-icon-type="checked"]'),p=u.querySelector('svg[data-icon-type="unchecked"]');l?(d.style.display="block",p.style.display="none"):(d.style.display="none",p.style.display="block"),i=n.selectedConsent(),c=document.getElementById(Ee.DialogId),s=document.getElementById(Ee.HeaderSaveId),(null==c?void 0:c.dataset.consent)&&(null==c?void 0:c.dataset.consent)!==i?s.className="primary":s.className=""},n.prototype.setupCheckboxEventHandlers=function(){var n=this,e=document.getElementById(Ee.OptionEssentialInputId);null==e||e.addEventListener("change",(function(e){n.handleOptionChange({target:e.target,isReadOnly:!0,sectionId:Ee.OptionEssentialId})}));var t=document.getElementById(Ee.OptionAnalyticsInputId);null==t||t.addEventListener("change",(function(e){n.handleOptionChange({target:e.target,isReadOnly:!1,sectionId:Ee.OptionAnalyticsId})}));var o=document.getElementById(Ee.OptionPreferencesInputId);null==o||o.addEventListener("change",(function(e){n.handleOptionChange({target:e.target,isReadOnly:!1,sectionId:Ee.OptionPreferencesId})}));var r=document.getElementById(Ee.OptionMarketingInputId);null==r||r.addEventListener("change",(function(e){n.handleOptionChange({target:e.target,isReadOnly:!1,sectionId:Ee.OptionMarketingId})}))},n.prototype.setupButtonEventHandlers=function(){var e=this,t=document.getElementById(Ee.HeaderCloseId);null==t||t.addEventListener("click",(function(){n.hide(e.previouslyFocusedElement),e.logger.emitInteraction(lt.LeavePreferences)}));var o=document.getElementById(Ee.HeaderSaveId);null==o||o.addEventListener("click",(function(){if(qe())n.hideModalAndBanner(e.previouslyFocusedElement);else{var t=document.getElementById(Ee.OptionMarketingInputId),o=document.getElementById(Ee.OptionAnalyticsInputId),r=document.getElementById(Ee.OptionPreferencesInputId),a=t.checked,i=o.checked,c=r.checked;Le({marketing:a,analytics:i,preferences:c,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain,storefrontAccessToken:e.storefrontAccessToken,callback:function(){n.hideModalAndBanner(e.previouslyFocusedElement)}}),e.logger.emitInteraction(lt.Save,"".concat(a?"m":"").concat(i?"a":"").concat(c?"p":""))}}));var r=document.getElementById(Ee.HeaderAcceptId);null==r||r.addEventListener("click",(function(){qe()?n.hideModalAndBanner(e.previouslyFocusedElement):(Le({marketing:!0,analytics:!0,preferences:!0,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain,storefrontAccessToken:e.storefrontAccessToken,callback:function(){n.hideModalAndBanner(e.previouslyFocusedElement)}}),e.logger.emitInteraction(lt.AcceptedAll))}));var a=document.getElementById(Ee.HeaderDeclineId);null==a||a.addEventListener("click",(function(){qe()?n.hideModalAndBanner(e.previouslyFocusedElement):(Le({marketing:!1,analytics:!1,preferences:!1,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain,storefrontAccessToken:e.storefrontAccessToken,callback:function(){n.hideModalAndBanner(e.previouslyFocusedElement)}}),e.logger.emitInteraction(lt.DeclinedAll))}))},n.prototype.setupKeyboardEventHandlers=function(){var n=this,e=document.getElementById(Ee.DialogId);if(e){var t=this.getFocusableElements(e);e.addEventListener("keydown",(function(e){n.escToClose(e),n.tabTrap(e,t)})),this.focusFirstEle(t)}},n.prototype.getFocusableElements=function(n){return Array.from(n.querySelectorAll('button, [href], input:not([tabindex="-1"]), select, textarea, [tabindex="0"]'))},n.prototype.focusFirstEle=function(n){(null==n?void 0:n.length)&&n[0].focus()},n.prototype.escToClose=function(e){e.key===pt.Escape&&(n.hide(this.previouslyFocusedElement),this.logger.emitInteraction(lt.LeavePreferences))},n.prototype.tabTrap=function(n,e){if((null==e?void 0:e.length)&&n.key===pt.Tab){var t=e[0],o=e[e.length-1];t&&o&&(n.shiftKey&&document.activeElement===t?(n.preventDefault(),o.focus()):n.shiftKey||document.activeElement!==o||(n.preventDefault(),t.focus()))}},n}(),Pt=function(){function n(n){var e=void 0===n?{}:n,t=e.storefrontAccessToken,o=e.checkoutRootDomain,r=e.storefrontRootDomain,a=e.locale,i=e.country;this.locale=a,this.country=i,this.storefrontAccessToken=t;var c=t;c&&(this.checkoutRootDomain=o,this.storefrontRootDomain=r),this.logger=new mt({shopDomain:o,isHeadless:Boolean(c)}),this.preferencesModal=void 0}return n.show=function(){var n=document.getElementById(Ie.DialogId);if(null!==n){n.style.display="block";var e=function(n){if("Tab"===n.code){n.preventDefault();var t=document.getElementById(Ie.ButtonManagePrefsId);null==t||t.focus()}window.removeEventListener("keydown",e)};window.addEventListener("keydown",e)}},n.hide=function(){var n=document.getElementById(Ie.DialogId);null!==n&&(n.style.display="none")},n.prototype.init=function(){return t(this,arguments,void 0,(function(t){var r,a;return void 0===t&&(t=!1),o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,Ge.getServerData(this.checkoutRootDomain,this.storefrontAccessToken,this.locale,this.country)];case 1:return(r=o.sent())&&Object.keys(r).length?[4,"loading"!==document.readyState?Promise.resolve():new Promise((function(n){document.addEventListener("DOMContentLoaded",n)}))]:(console.warn("banner not rendered due to lack of saved data"),[2,Promise.resolve(!1)]);case 2:return o.sent(),this.removeExistingElements(),this.render(e({},r)),t&&(this.preferencesModal=new St({bannerData:r,storefrontAccessToken:this.storefrontAccessToken,checkoutRootDomain:this.checkoutRootDomain,storefrontRootDomain:this.storefrontRootDomain}),this.preferencesModal.init(),n.hide()),[2,Promise.resolve(!0)];case 3:return a=o.sent(),this.removeExistingElements(),[2,Promise.reject(a)];case 4:return[2]}}))}))},n.prototype.render=function(e){var t=e.enabled,o=window.Shopify.country,r=Ue()&&this.isCountryInRegionVisibility(o,e),a=qe()||r||t;a&&!document.getElementById(Ie.DialogId)&&(this.addCSS(e),this.addBannerHTML(e)),a&&We()&&(n.show(),Ue()||this.logger.emitRender())},n.prototype.isCountryInRegionVisibility=function(n,e){var t;return null===(t=e.regionVisibility)||void 0===t?void 0:t.includes(n)},n.prototype.addCSS=function(n){var e=_t({id:Ie.StylesContainerId,content:Pe({bannerData:n})});document.head.appendChild(e)},n.prototype.addBannerHTML=function(n){var e=Dt({bannerData:n}),t=document.getElementsByTagName("body")[0];t.insertBefore(e,t.firstChild),this.addEventListeners(n)},n.prototype.removeExistingElements=function(){var n,e,t,o,r=document.getElementById(Ie.DialogId),a=document.getElementById(Ie.StylesContainerId),i=document.getElementById(Ee.WrapperId),c=document.getElementById(Ee.StylesContainerId);null===(n=null==r?void 0:r.parentNode)||void 0===n||n.removeChild(r),null===(e=null==a?void 0:a.parentNode)||void 0===e||e.removeChild(a),null===(t=null==i?void 0:i.parentNode)||void 0===t||t.removeChild(i),null===(o=null==c?void 0:c.parentNode)||void 0===o||o.removeChild(c)},n.prototype.addEventListeners=function(n){var e=this;this.addEssentialEventListeners(),qe()||this.addMetricsEventListeners();var t=document.getElementById(Ie.ButtonManagePrefsId);null==t||t.addEventListener("click",(function(t){t.preventDefault(),e.preferencesModal=new St({bannerData:n,storefrontAccessToken:e.storefrontAccessToken,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain}),e.preferencesModal.init()}))},n.prototype.addEssentialEventListeners=function(){var e=this,t=document.getElementById(Ie.ButtonAcceptId);null==t||t.addEventListener("click",(function(){qe()?n.hide():Le({marketing:!0,analytics:!0,preferences:!0,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain,storefrontAccessToken:e.storefrontAccessToken,callback:n.hide})}));var o=document.getElementById(Ie.ButtonDeclineId);null==o||o.addEventListener("click",(function(){qe()?n.hide():Le({marketing:!1,analytics:!1,preferences:!1,checkoutRootDomain:e.checkoutRootDomain,storefrontRootDomain:e.storefrontRootDomain,storefrontAccessToken:e.storefrontAccessToken,callback:n.hide})}))},n.prototype.addMetricsEventListeners=function(){var n=this,e=document.getElementById(Ie.BodyCopyPolicyLinkId);null==e||e.addEventListener("click",(function(){n.logger.emitInteraction(lt.PrivacyPolicyView)}));var t=document.getElementById(Ie.ButtonAcceptId);null==t||t.addEventListener("click",(function(){n.logger.emitInteraction(lt.Accepted)}));var o=document.getElementById(Ie.ButtonDeclineId);null==o||o.addEventListener("click",(function(){n.logger.emitInteraction(lt.Declined)}))},n}(),Mt="#shopifyReshowConsentBanner";function Rt(n,e){var t,o=n.target;(null==(t=o)?void 0:t.closest('a[href$="'.concat(Mt,'"]')))&&e(n)}function jt(){return t(this,arguments,void 0,(function(n){var e,r,a,i,c,s=this,l=void 0===n?{}:n,u=l.storefrontAccessToken,d=l.checkoutRootDomain,p=l.storefrontRootDomain,f=l.showPreferences,h=void 0!==f&&f,m=l.locale,y=l.country;return o(this,(function(n){return d||(d=window.location.hostname),p||(p=window.location.hostname),m||(m=null===(i=null===window||void 0===window?void 0:window.Shopify)||void 0===i?void 0:i.locale),y||(y=null===(c=null===window||void 0===window?void 0:window.Shopify)||void 0===c?void 0:c.country),e=function(){return t(s,void 0,void 0,(function(){var n,e,t;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),n=Boolean(u),e=new mt({shopDomain:d,isHeadless:n}),!(ze()||We()||h)||function(){var n;return(null===(n=null===window||void 0===window?void 0:window.Shopify)||void 0===n?void 0:n.designMode)||!1}()?[3,2]:[4,new Pt({storefrontAccessToken:u,checkoutRootDomain:d,storefrontRootDomain:p,locale:m,country:y}).init(h)];case 1:o.sent()&&qn(N),o.label=2;case 2:return e.emitInitialized(),[3,4];case 3:return t=o.sent(),console.error("Error initializing banner",t),[3,4];case 4:return[2]}}))}))},u?(r=pe(),Le({marketing:(a={yes:!0,no:!1})[r.marketing],analytics:a[r.analytics],preferences:a[r.preferences],sale_of_data:a[r.sale_of_data],storefrontAccessToken:u,checkoutRootDomain:d,storefrontRootDomain:p,callback:e})):e(),[2]}))}))}function Ht(n){n&&(window.Shopify=window.Shopify||{},window.Shopify.customerPrivacy&&window.Shopify.trackingConsent||(window.Shopify.customerPrivacy=window.Shopify.trackingConsent=Oe()))}function Lt(){return t(this,arguments,void 0,(function(n){return void 0===n&&(n={}),o(this,(function(t){switch(t.label){case 0:return Ht(Boolean(n.storefrontAccessToken)),[4,jt(e(e({},n),{showPreferences:!0}))];case 1:return t.sent(),[2]}}))}))}return function(){if("0"!==He("pb")){var n=Boolean(window.Shopify);Ht(!n),n&&jt();var e=function(n){n.preventDefault(),Lt()};document.addEventListener("click",(function(n){Rt(n,e)}))}}(),n.loadBanner=jt,n.showPreferences=Lt,n}({});

}