!function(){var e={3177:function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperty=o,t.objectSpread2=function(e){for(var t=1;t{try{return e(...t)}catch(e){throw o(e),e}}}},3249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1449),r=n(5814);t.updateTrackingConsent=function(e,t,n){const i=new XMLHttpRequest,a=JSON.stringify(e);i.open("POST","/set_tracking_consent.json",!0),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(4!==i.readyState)return;o.resetCookieCache();const a=function(e){try{return JSON.parse(e)}catch(e){return{error:"Unknown error"}}}(i.responseText);var s;0===(s=i.status)||200>=s&&s<400?(r.dispatchEvents(e,n),t(null,a)):t(a)},i.send(a)}},7560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(6304),r=n(1449);const i="_cmp_a";function a(){return r.readCookie(i)}function s(e){const t=a();if(!t)return!0;const n=t.purposes[e];return"boolean"!=typeof n||n}t.CMP_ANSWERS_COOKIE_NAME=i,t.analyticsProcessingAllowed=function(){return s(o.DataProcessingPurpose.ANALYTICS)},t.firstPartyMarketingProcessingAllowed=function(){return s(o.DataProcessingPurpose.FIRST_PARTY_MARKETING)},t.preferencesProcessingAllowed=function(){return s(o.DataProcessingPurpose.PREFERENCES)},t.saleOfDataRegion=function(){const e=a();return e&&e.sale_of_data_region||!1},t.shouldShowBanner=function(){const e=a();return!!e&&"boolean"==typeof e.display_banner&&e.display_banner},t.thirdPartyMarketingProcessingAllowed=function(){return s(o.DataProcessingPurpose.THIRD_PARTY_MARKETING)}},5841:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(6304),r=n(8920),i=n(2488),a=n(1449);const s="_tracking_consent";function c(){const e=a.readCookie(s);if(void 0!==e&&!function(e){if(![o.CookieVersion.V2_0,o.CookieVersion.V2_1].includes(e.v))return!0;const t=Object.keys(e).filter((e=>"region"!==e));return!i.areArraysEqual(t,o.CookieKeys)}(e))return e}function u(){try{let e=c();if(!e)return;return e.v===o.CookieVersion.V2_0?function(e){const t=e.con||{};return{con:{CMP:{[o.ConsentSignal.MARKETING]:t.GDPR||o.ConsentValuesV2.NO_VALUE,[o.CmpV2_1ConsentKeys.ANALYTICS]:t.GDPR||o.ConsentValuesV2.NO_VALUE,[o.CmpV2_1ConsentKeys.PREFERENCES]:t.GDPR||o.ConsentValuesV2.NO_VALUE,[o.CmpV2_1ConsentKeys.GPC]:o.ConsentValuesV2.NO_VALUE,[o.CmpV2_1ConsentKeys.SALE_OF_DATA]:t.CCPA||o.ConsentValuesV2.NO_VALUE}},reg:e.reg,v:o.CookieVersion.V2_1,lim:e.lim}}(e):e}catch(e){return}}function p(){return{m:l(o.ConsentSignal.MARKETING),a:l(o.ConsentSignal.ANALYTICS),p:l(o.ConsentSignal.PREFERENCES),s:l(o.ConsentSignal.SALE_OF_DATA),g:l(o.ConsentSignal.GPC)}}function d(e=null){return null===e&&(e=u()),void 0===e}function l(e){if(e==o.ConsentSignal.GPC)return r.consentMethods.isGPCSignalPresent()?r.consentMethods.isGPCOptOutPresent()?o.ConsentValuesV2.DECLINED:o.ConsentValuesV2.ACCEPTED:o.ConsentValuesV2.NO_VALUE;const t=u();if(!t)return o.ConsentValuesV2.NO_VALUE;const n=t.con.CMP;return n?n[e]:o.ConsentValuesV2.NO_VALUE}t.CONSENT_COOKIE_NAME=s,t.getCCPAConsentValue=function(){return p()[o.ConsentSignal.SALE_OF_DATA]},t.getCMPConsentValues=p,t.getCookieVersion=function(){const e=c();switch(null==e?void 0:e.v){case"2.0":return o.CookieVersion.V2_0;case"2.1":return o.CookieVersion.V2_1;default:return}},t.getRegulationValue=function(){const e=u();return d(e)?o.TrackingRegulations.NO_VALUE:e.reg},t.getShopPrefsValue=function(){const e=u();return d(e)?{limit:[]}:{limit:e.lim}},t.getSignal=l,t.readCookieAndTransform=u,t.setHeadlessTrackingConsent=function(e,t){const n=e.marketing&&e.analytics&&e.preferences;let r;r=void 0===e.sale_of_data?o.ConsentValuesV2.NO_VALUE:e.sale_of_data?o.ConsentValuesV2.ACCEPTED:o.ConsentValuesV2.DECLINED;const i={v:o.CookieVersion.V2_0,reg:o.TrackingRegulations.NO_VALUE,lim:[o.TrackingRegulationLimitations.GDPR_BLOCK_ALL,o.TrackingRegulationLimitations.CCPA],con:{GDPR:n?o.ConsentValuesV2.ACCEPTED:o.ConsentValuesV2.DECLINED,CCPA:r}};a.writeCookie(s,e.rootDomain,31536e6,i),t(null)},t.transformConsentToDisplaySchema=function(e){switch(e){case o.ConsentValuesV2.ACCEPTED:return o.ConsentValuesV1.ACCEPTED;case o.ConsentValuesV2.DECLINED:return o.ConsentValuesV1.DECLINED;default:return o.ConsentValuesV1.NO_VALUE}},t.transformKeyToDisplayName=function(e){switch(e){case o.CmpV2_1ConsentKeys.ANALYTICS:return o.CmpV2_1ConsentDisplayKeys.ANALYTICS;case o.CmpV2_1ConsentKeys.MARKETING:return o.CmpV2_1ConsentDisplayKeys.MARKETING;case o.CmpV2_1ConsentKeys.PREFERENCES:return o.CmpV2_1ConsentDisplayKeys.PREFERENCES;case o.CmpV2_1ConsentKeys.SALE_OF_DATA:return o.CmpV2_1ConsentDisplayKeys.SALE_OF_DATA;case o.CmpV2_1ConsentKeys.GPC:return o.CmpV2_1ConsentDisplayKeys.GPC}},t.validCookieDoesNotExist=d},8920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3177),r=n(6304),i=n(5841),a=n(7560),s=n(2290),c=n(2488),u=n(3249);function p(){if(i.validCookieDoesNotExist())return r.ConsentValuesV1.NO_VALUE;const e=i.getCMPConsentValues();return e[r.CmpV2_1ConsentKeys.MARKETING]===r.ConsentValuesV2.ACCEPTED&&e[r.CmpV2_1ConsentKeys.ANALYTICS]===r.ConsentValuesV2.ACCEPTED?r.ConsentValuesV1.ACCEPTED:e[r.CmpV2_1ConsentKeys.MARKETING]===r.ConsentValuesV2.DECLINED||e[r.CmpV2_1ConsentKeys.ANALYTICS]===r.ConsentValuesV2.DECLINED?r.ConsentValuesV1.DECLINED:r.ConsentValuesV1.NO_INTERACTION}function d(){const e=i.getRegulationValue();return e in r.TrackingRegulations?e:r.TrackingRegulations.NO_VALUE}function l(){return i.getShopPrefsValue()}function f(e){return C(r.TrackingRegulationLimitations.GDPR_BLOCK_ALL)&&e?h()?document.referrer:"":null}function _(e){return C(r.TrackingRegulationLimitations.GDPR_BLOCK_ALL)&&e?h()?window.location.pathname+window.location.search:"/":null}function g(){return"string"==typeof navigator.globalPrivacyControl?"1"===navigator.globalPrivacyControl:Boolean(navigator.globalPrivacyControl)}function v(e,t){return s.regulationEnforcementDict[e].includes(t)}function h(){if(""===document.referrer)return!0;const e=document.createElement("a");return e.href=document.referrer,window.location.hostname!=e.hostname}function y(){return C(r.TrackingRegulationLimitations.GDPR)||C(r.TrackingRegulationLimitations.GDPR_BLOCK_ALL)}function E(){const e=d();if(e===r.TrackingRegulations.NO_VALUE)return!1;const t=l();return!c.isArrayEmpty(t.limit)&&t.limit.some((t=>v(e,t)))}function m(){return!!i.validCookieDoesNotExist()||function(){if(!y())return!0;const e=i.getCMPConsentValues();return e[r.CmpV2_1ConsentKeys.MARKETING]===r.ConsentValuesV2.ACCEPTED&&e[r.CmpV2_1ConsentKeys.ANALYTICS]===r.ConsentValuesV2.ACCEPTED||e[r.CmpV2_1ConsentKeys.MARKETING]!==r.ConsentValuesV2.DECLINED&&e[r.CmpV2_1ConsentKeys.ANALYTICS]!==r.ConsentValuesV2.DECLINED&&d()!==r.TrackingRegulations.GDPR}()}function C(e){return l().limit.includes(e)}function T(){return d()===r.TrackingRegulations.CCPA&&!!C(r.TrackingRegulationLimitations.CCPA)&&g()}function P(){return!T()&&(!!i.validCookieDoesNotExist()||!1!==m()&&(C(r.TrackingRegulationLimitations.CCPA_BLOCK_ALL)?d()!==r.TrackingRegulations.CCPA:!C(r.TrackingRegulationLimitations.CCPA)||i.getCCPAConsentValue()!==r.ConsentValuesV2.DECLINED))}function A(){return T()?r.ConsentValuesV1.DECLINED:(e=i.getCCPAConsentValue(),i.validCookieDoesNotExist()?r.ConsentValuesV1.NO_VALUE:e===r.ConsentValuesV2.NO_VALUE?r.ConsentValuesV1.NO_INTERACTION:i.transformConsentToDisplaySchema(e));var e}function I(e){if(!y())return!0;const t=i.getCMPConsentValues();return t[e]===r.ConsentValuesV2.ACCEPTED||t[e]!==r.ConsentValuesV2.DECLINED&&d()!==r.TrackingRegulations.GDPR}function S(){return i.getCookieVersion()===r.CookieVersion.V2_1}const k={getTrackingConsent:p,setTrackingConsent:function(e,t){if(i.validCookieDoesNotExist()){const e="Shop is not configured to block privacy regulation in online store settings.";return console.warn(e),t({error:e})}if(function(e){if(S()){if("boolean"!=typeof e&&"object"!=typeof e)throw TypeError("setTrackingConsent must be called with a boolean or object consent value");if("object"==typeof e){const t=Object.keys(e);if(0===t.length)throw TypeError("The submitted consent object is empty.");const n=[r.CmpV2_1ConsentDisplayKeys.MARKETING,r.CmpV2_1ConsentDisplayKeys.ANALYTICS,r.CmpV2_1ConsentDisplayKeys.PREFERENCES,r.CmpV2_1ConsentDisplayKeys.SALE_OF_DATA];for(const e of t)if(!n.includes(e))throw TypeError(`The submitted consent object should only contain the following keys: ${n.join(", ")}.`)}}else if("boolean"!=typeof e)throw TypeError("setTrackingConsent must be called with a boolean consent value")}(e),"function"!=typeof t)throw TypeError("setTrackingConsent must be called with a callback function");if("object"==typeof e){const n=f(e.analytics),r=_(e.analytics);return u.updateTrackingConsent(o.objectSpread2(o.objectSpread2({granular_consent:e},null!==n&&{referrer:n}),null!==r&&{landing_page:r}),t,S())}{const n=f(e),r=_(e);return u.updateTrackingConsent(o.objectSpread2(o.objectSpread2({consent:e},null!==n&&{referrer:n}),null!==r&&{landing_page:r}),t,S())}},userCanBeTracked:m,getRegulation:d,isRegulationEnforced:E,getShopPrefs:l,shouldShowGDPRBanner:function(){return d()===r.TrackingRegulations.GDPR&&E()&&p()===r.ConsentValuesV1.NO_INTERACTION},userDataCanBeSold:P,setCCPAConsent:function(e,t){if("boolean"!=typeof e)throw TypeError("setCCPAConsent must be called with a boolean consent value");if("function"!=typeof t)throw TypeError("setCCPAConsent must be called with a callback function");return u.updateTrackingConsent({ccpa_consent:e},t,S())},getCCPAConsent:A,shouldShowCCPABanner:function(){return d()===r.TrackingRegulations.CCPA&&l().limit.includes(r.TrackingRegulationLimitations.CCPA)&&A()===r.ConsentValuesV1.NO_INTERACTION},haveAnalyticsConsent:function(){return S()?a.analyticsProcessingAllowed():I(r.CmpV2_1ConsentKeys.ANALYTICS)},havePreferencesConsent:function(){return S()?a.preferencesProcessingAllowed():I(r.CmpV2_1ConsentKeys.PREFERENCES)},haveFirstPartyMarketingConsent:function(){return S()?a.firstPartyMarketingProcessingAllowed():I(r.CmpV2_1ConsentKeys.MARKETING)},haveThirdPartyMarketingConsent:function(){return S()?a.thirdPartyMarketingProcessingAllowed():!!I(r.CmpV2_1ConsentKeys.MARKETING)&&!!P()},getCCPAConsentValue:i.getCCPAConsentValue,merchantEnforcingRegulationLimit:C,isGPCSignalPresent:function(){return void 0!==navigator.globalPrivacyControl},isGPCOptOutPresent:g,isValidGPCSignalOptOutPresent:T,exposeBetaFunctionality:S,shouldShowBanner:function(){return S()&&a.shouldShowBanner()&&i.getSignal(r.ConsentSignal.ANALYTICS)===r.ConsentValuesV2.NO_VALUE&&i.getSignal(r.ConsentSignal.MARKETING)===r.ConsentValuesV2.NO_VALUE&&i.getSignal(r.ConsentSignal.PREFERENCES)===r.ConsentValuesV2.NO_VALUE},saleOfDataRegion:function(){return S()&&a.saleOfDataRegion()}};t.consentMethods=k},1449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n={};t.readCookie=function(e){if(e in n)return n[e];const t=document.cookie?document.cookie.split("; "):[];n[e]=void 0;for(let o=0;o!1));const e={getTrackingConsent:s.withBugsnag(c),setTrackingConsent:s.withBugsnag(u),userCanBeTracked:s.withBugsnag(p),getRegulation:s.withBugsnag(d),isRegulationEnforced:s.withBugsnag(l),getShopPrefs:s.withBugsnag(f),shouldShowGDPRBanner:s.withBugsnag(_),userDataCanBeSold:s.withBugsnag(g),setCCPAConsent:s.withBugsnag(v),getCCPAConsent:s.withBugsnag(h),shouldShowCCPABanner:s.withBugsnag(y),doesMerchantSupportGranularConsent:s.withBugsnag(S)};if(i.consentMethods.exposeBetaFunctionality()){const t={analyticsProcessingAllowed:s.withBugsnag(E),preferencesProcessingAllowed:s.withBugsnag(m),firstPartyMarketingAllowed:s.withBugsnag(C),thirdPartyMarketingAllowed:s.withBugsnag(T),currentVisitorConsent:s.withBugsnag(k),shouldShowBanner:s.withBugsnag(P),saleOfDataRegion:s.withBugsnag(A)};e.unstable=t}return e},t.thirdPartyMarketingAllowed=T,t.userCanBeTracked=p,t.userDataCanBeSold=g},2290:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(6304);const r={"":[],GDPR:[o.TrackingRegulationLimitations.GDPR,o.TrackingRegulationLimitations.GDPR_BLOCK_ALL],CCPA:[o.TrackingRegulationLimitations.CCPA_BLOCK_ALL,o.TrackingRegulationLimitations.CCPA]};t.regulationEnforcementDict=r},6304:function(e,t){"use strict";var n,o,r,i,a,s,c,u,p,d;Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingEvents=void 0,(n=t.TrackingEvents||(t.TrackingEvents={})).TRACKING_ACCEPTED="trackingConsentAccepted",n.TRACKING_DECLINED="trackingConsentDeclined",n.FIRST_PARTY_MARKETING_ACCEPTED="firstPartyMarketingConsentAccepted",n.THIRD_PARTY_MARKETING_ACCEPTED="thirdPartyMarketingConsentAccepted",n.ANALYTICS_ACCEPTED="analyticsConsentAccepted",n.PREFERENCES_ACCEPTED="preferencesConsentAccepted",n.FIRST_PARTY_MARKETING_DECLINED="firstPartyMarketingConsentDeclined",n.THIRD_PARTY_MARKETING_DECLINED="thirdPartyMarketingConsentDeclined",n.ANALYTICS_DECLINED="analyticsConsentDeclined",n.PREFERENCES_DECLINED="preferencesConsentDeclined",n.CONSENT_COLLECTED="visitorConsentCollected",t.CookieVersion=void 0,(o=t.CookieVersion||(t.CookieVersion={})).V2_0="2.0",o.V2_1="2.1",t.ConsentValuesV1=void 0,(r=t.ConsentValuesV1||(t.ConsentValuesV1={})).ACCEPTED="yes",r.DECLINED="no",r.NO_INTERACTION="no_interaction",r.NO_VALUE="",t.ConsentValuesV2=void 0,(i=t.ConsentValuesV2||(t.ConsentValuesV2={})).NO_VALUE="",i.ACCEPTED="1",i.DECLINED="0",t.TrackingRegulations=void 0,(a=t.TrackingRegulations||(t.TrackingRegulations={})).GDPR="GDPR",a.CCPA="CCPA",a.NO_VALUE="",t.DataProcessingPurpose=void 0,(s=t.DataProcessingPurpose||(t.DataProcessingPurpose={})).PREFERENCES="p",s.ANALYTICS="a",s.FIRST_PARTY_MARKETING="m",s.THIRD_PARTY_MARKETING="t",t.TrackingRegulationLimitations=void 0,(c=t.TrackingRegulationLimitations||(t.TrackingRegulationLimitations={})).CCPA_BLOCK_ALL="CCPA_BLOCK_ALL",c.GDPR="GDPR",c.GDPR_BLOCK_ALL="GDPR_BLOCK_ALL",c.CCPA="CCPA",t.CmpV2_1ConsentKeys=void 0,(u=t.CmpV2_1ConsentKeys||(t.CmpV2_1ConsentKeys={})).MARKETING="m",u.ANALYTICS="a",u.PREFERENCES="p",u.GPC="g",u.SALE_OF_DATA="s",t.ConsentSignal=void 0,(p=t.ConsentSignal||(t.ConsentSignal={})).MARKETING="m",p.ANALYTICS="a",p.PREFERENCES="p",p.GPC="g",p.SALE_OF_DATA="s",t.CmpV2_1ConsentDisplayKeys=void 0,(d=t.CmpV2_1ConsentDisplayKeys||(t.CmpV2_1ConsentDisplayKeys={})).MARKETING="marketing",d.ANALYTICS="analytics",d.PREFERENCES="preferences",d.GPC="gpc",d.SALE_OF_DATA="sale_of_data",t.CookieKeys=["lim","v","con","reg"]},2488:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areArraysEqual=function(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(((e,t)=>e===n[t]))},t.isArrayEmpty=function(e){return 0===e.length}},1863:function(e,t,n){e.exports=n(5461)},7385:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcommerceIntegration=t.PSEUDO_PAGE_EVENTS=t.CHECKOUT_ONE_PAGE_VIEW=t.CHECKOUT_PAYMENT_STEP_STARTED=t.CHECKOUT_SHIPPING_INFO_SUBMITTED=t.CHECKOUT_SHIPPING_STEP_STARTED=t.CHECKOUT_ADDRESS_INFO_SUBMITTED=t.CHECKOUT_CONTACT_INFO_SUBMITTED=t.CHECKOUT_CONTACT_STEP_STARTED=t.ANALYTICS_ADDED_PAYMENT=t.ANALYTICS_PERFORMED_SEARCH=t.ANALYTICS_STARTED_ORDER_ONCE_PER_CHECKOUT=t.ANALYTICS_STARTED_ORDER=t.ANALYTICS_COMPLETED_ORDER=t.ANALYTICS_ADDED_PRODUCT=t.ANALYTICS_VIEWED_PRODUCT_CATEGORY=t.ANALYTICS_VIEWED_PRODUCT=t.ANALYTICS_PAGE_VIEW=t.ANALYTICS_GENERIC_EVENT=t.analyticsEvents=void 0;var i=n(997),a=n(1102),s=n(6851),c=n(7662),u=n(372),p=n(1930),d=c.TrackingEvents;t.analyticsEvents={viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductVariant:/^[ _]?viewed[ _]?product[ _]?variant[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,startedOrderOncePerCheckout:/^[ _]?started[ _]?order[ _]?once[ _]?per[ _]?checkout[ _]?$/i,performedSearch:/^[ _]?performed[ _]?search[ _]?$/i,addedPayment:/^[ _]?added[ _]?payment[ _]?$/i,checkoutContactStepStarted:/^[ _]?checkout[ _]?[ _]?contact[ _]?step[ _]?started[ _]?$/i,checkoutContactInfoSubmitted:/^[ _]?checkout[ _]?[ _]?contact[ _]?info[ _]?submitted[ _]?$/i,checkoutAddressInfoSubmitted:/^[ _]?checkout[ _]?[ _]?address[ _]?info[ _]?submitted[ _]?$/i,checkoutShippingStepStarted:/^[ _]?checkout[ _]?[ _]?shipping[ _]?step[ _]?started[ _]?$/i,checkoutShippingInfoSubmitted:/^[ _]?checkout[ _]?[ _]?shipping[ _]?info[ _]?submitted[ _]?$/i,checkoutPaymentStepStarted:/^[ _]?checkout[ _]?[ _]?payment[ _]?step[ _]?started[ _]?$/i,checkoutOnePageView:/^[ _]?checkout[ _]?[ _]?one[ _]?page[ _]?view[ _]?$/i},t.ANALYTICS_GENERIC_EVENT="genericEvent",t.ANALYTICS_PAGE_VIEW="pageView",t.ANALYTICS_VIEWED_PRODUCT="viewedProduct",t.ANALYTICS_VIEWED_PRODUCT_CATEGORY="viewedProductCategory",t.ANALYTICS_ADDED_PRODUCT="addedProduct",t.ANALYTICS_COMPLETED_ORDER="completedOrder",t.ANALYTICS_STARTED_ORDER="startedOrder",t.ANALYTICS_STARTED_ORDER_ONCE_PER_CHECKOUT="startedOrderOncePerCheckout",t.ANALYTICS_PERFORMED_SEARCH="performedSearch",t.ANALYTICS_ADDED_PAYMENT="addedPayment",t.CHECKOUT_CONTACT_STEP_STARTED="checkoutContactStepStarted",t.CHECKOUT_CONTACT_INFO_SUBMITTED="checkoutContactInfoSubmitted",t.CHECKOUT_ADDRESS_INFO_SUBMITTED="checkoutAddressInfoSubmitted",t.CHECKOUT_SHIPPING_STEP_STARTED="checkoutShippingStepStarted",t.CHECKOUT_SHIPPING_INFO_SUBMITTED="checkoutShippingInfoSubmitted",t.CHECKOUT_PAYMENT_STEP_STARTED="checkoutPaymentStepStarted",t.CHECKOUT_ONE_PAGE_VIEW="checkoutOnePageView",t.PSEUDO_PAGE_EVENTS=[t.CHECKOUT_CONTACT_STEP_STARTED,t.CHECKOUT_SHIPPING_STEP_STARTED,t.CHECKOUT_PAYMENT_STEP_STARTED,t.CHECKOUT_ONE_PAGE_VIEW];var l=function(e){function n(t,n,o){var r=e.call(this,t,n)||this;return r.wrapTrack(),r.setPixelStub(),r.ensureTrackingConsent((function(){r.initialize(o)}),o),r}return r(n,e),n.prototype.ensureTrackingConsent=function(e,t){c.isMerchantOnGranularConsentBeta()||(c.isLegacyGdprEnforced()?(document.addEventListener(d.TRACKING_ACCEPTED,e),t()):e())},n.prototype.wrapTrack=function(){var e=this.track;this.track=function(n){var o=n.event,r=!1;for(var i in t.analyticsEvents){var a=t.analyticsEvents[i];if(this[i]&&a.test(o)){this[i].apply(this,[n]),r=!0;break}}r||e.apply(this,Array.prototype.slice.call(arguments))}},n.prototype.addMonorailBatchEvent=function(e){if(s.default.appName&&s.default.appName in p.appNameToEcommerceEventSchemaId){var t=this.getEcommercePixelIds();i.addBatchEvent({schemaId:e.schemaId?e.schemaId:p.appNameToEcommerceEventSchemaId[s.default.appName],payload:a.objectAssignFilterUndefined({shop_id:s.default.shopId,partner_name:this.getEcommerceMetricsTag(),event_name:e.eventName,unique_token:s.default.uniqToken,visit_token:s.default.visitToken,integration_id:this.getIntegrationId()},{pixel_id:t&&t.length>0?t[0]:void 0,event_properties:e.eventProperties,checkout_token:s.default.checkoutToken,event_id:e.eventId})})}},n}(u.Integration);t.EcommerceIntegration=l},372:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n11)return t.substr(11)}},8523:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentPurposes=void 0,(n=t.ConsentPurposes||(t.ConsentPurposes={})).FIRST_PARTY_MARKETING="m",n.THIRD_PARTY_MARKETING="t",n.ANALYTICS="a",n.PREFERENCES="p"},542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentValuesV2=t.ConsentPurposes=t.IntegrationTypes=void 0;var o=n(8523);Object.defineProperty(t,"ConsentPurposes",{enumerable:!0,get:function(){return o.ConsentPurposes}});var r,i=n(6222);Object.defineProperty(t,"IntegrationTypes",{enumerable:!0,get:function(){return i.IntegrationTypes}}),(r=t.ConsentValuesV2||(t.ConsentValuesV2={})).NO_VALUE="",r.ACCEPTED="1",r.DECLINED="0"},6222:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationTypes=void 0,(n=t.IntegrationTypes||(t.IntegrationTypes={})).ECOMMERCE="EcommerceIntegration",n.INTEGRATION="Integration"},8878:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n2&&(c.lineNumber=p[1],c.columnNumber=p[2],parseInt(c.lineNumber,10)>1e5))return}this.sendBugsnagXhr(n,u,c,s,r,i,e.appConfig,e.notes)}}},997:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t>>0;try{t=performance.now()>>>0}catch(e){t=0}return Math.abs(e+t).toString(16).toLowerCase().padStart(8,"0")}t.UniqueIdManager=s,t.buildToken=c,t.hexTime=u},1102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPseudoPageEvent=t.canonical=t.generateShopifyDValue=t.isUnstableBrowserVersion=t.UNSTABLE_BROWSER_VERSION_SET=t.objectAssignFilterUndefined=void 0;var o=n(7e3),r=n(7385),i=n(1503),a=/^https?:\/\//;t.objectAssignFilterUndefined=function(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e},t.UNSTABLE_BROWSER_VERSION_SET=new Set(["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"]),t.isUnstableBrowserVersion=function(){return t.UNSTABLE_BROWSER_VERSION_SET.has(o.virtualWindow().userAgent())},t.generateShopifyDValue=function(){return(new Date).toJSON()},t.canonical=function(){for(var e=i.virtualDocument().getElementsByTagName("link"),t=0;t0?null===(a=null==p?void 0:p.variants[0])||void 0===a?void 0:a.id:void 0,f=(null===(u=null===(c=window.ShopifyAnalytics)||void 0===c?void 0:c.meta)||void 0===u?void 0:u.selectedVariantId)||d,_={schemaId:l.buyWithPrimePresenceSchemaId,payload:o(o(o({shop_id:r},e.data&&{event_message:e.data}),p&&{product_id:p.id}),f&&{product_variant_id:Number(f)})};s.produce([_])}}catch(e){v.reportError("buyWithPrimeError",e)}}))},e.prototype.getNavigationType=function(){try{var e="PerformanceNavigationTiming",t=_.getNavigationTypeExperimental();return t||(t=_.getNavigationTypeLegacy(),e="performance.navigation"),t?{navigationType:t,navigationApi:e}:{navigationType:"unknown",navigationApi:"unknown"}}catch(e){c.reportError("navigation_api_error",e)}return{navigationType:"error",navigationApi:"error"}},e.prototype.initialize=function(e,t,n){var o=this;this.trekkie=new r.Trekkie((function(){setTimeout((function(){o.loadIntegrations(e,t,n)}),0)})),this.integrations[0]!==this.trekkie&&this.integrations.unshift(this.trekkie)},e.prototype.getS2SEventId=function(e,t,n){var o,r,i;void 0===e&&(e=void 0),void 0===t&&(t={});var a={navigationApi:this.navigationInfo.navigationApi,navigationType:this.navigationInfo.navigationType};n&&(a.serverEventId=n);var s=y.WebPixelEventNameMap[e];try{if("product_added_to_cart"===s&&(null===(o=window.Shopify)||void 0===o?void 0:o.evids)){var c=function(e){if(e.productId&&e.variantId)return e.productId.toString()+"-"+e.variantId.toString()}(t);i=window.Shopify.evids(s,{analyticsFramework:"trekkie",cacheKey:c})}else i=(null===(r=window.Shopify)||void 0===r?void 0:r.evids)&&s?window.Shopify.evids(s,{analyticsFramework:"trekkie"}):d.buildToken()}catch(e){i=d.buildToken()}return{s2sMetadata:a,eventId:"string"==typeof i&&i.length>0?i:d.buildToken()}},e.prototype.loadIntegrations=function(e,t,n){var o=this,r=this.waitFor(e.length,(function(){try{n()}catch(e){c.reportError("readyCallback",e)}o.allIntegrationsHaveLoaded=!0,o.flushMonorailEventsIfLoaded()}));if(p.isMerchantOnGranularConsentBeta()){p.haveConsentForIntegration(this.trekkie)||(m.Trekkie=[!1,this.trekkie,[]]);for(var i=0,a=e;i0?e:e+a.search();var t=a.href(),n=t.indexOf("#");return-1===n?t:t.slice(0,n)},e.prototype.setupGranularConsentEventListener=function(e){Object.keys(e).length>0&&(this.defList=this.consentCollectedListener.bind(this),document.addEventListener(p.TrackingEvents.CONSENT_COLLECTED,this.defList))},e.prototype.consentCollectedListener=function(e){this.handleConsentCollectedEvent(e)},e.prototype.handleConsentCollectedEvent=function(e){p.resetConsentCookieCache();var t=e.detail;h.default.refreshVisitorTokens();for(var n=[],o=0;o{const t=o[r]%16;return r++,("x"===e?t:3&t|8).toString(16)})).toUpperCase()}catch(n){t=e.replace(/[x]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()}return`${function(){let e=0,t=0;e=(new Date).getTime()>>>0;try{t=performance.now()>>>0}catch(e){t=0}const n=Math.abs(e+t).toString(16).toLowerCase();return"00000000".substr(0,8-n.length)+n}()}-${t}`}()}`}function S(){const e=window;e.Shopify=e.Shopify||{},e.Shopify.evids||(P={[i]:{},[a]:{},[s]:{},[c]:{},[u]:{},[p]:{},[d]:{},[l]:{},[f]:{},[m]:{},[_]:{},[g]:{},[v]:{},[h]:{},[y]:{},[E]:{}},A={wpm:{},trekkie:{}},e.Shopify.evids=(e,t)=>function(e,t){if(!P[e]||(null==t?void 0:t.analyticsFramework)!==T&&(null==t?void 0:t.analyticsFramework)!==C)return I(r);const n="string"==typeof(o=t.cacheKey)&&o?o:"default";var o;const i=function(e,t,n){const o=A[t];return void 0===o[e]&&(o[e]={}),void 0===o[e][n]?o[e][n]=0:o[e][n]+=1,o[e][n]}(e,t.analyticsFramework,n);return function(e,t,n){const o=P[e];if(void 0===o[n]){const e=I();o[n]=[e]}else if(void 0===o[n][t]){const e=I();o[n].push(e)}return o[n][t]}(e,i,n)}(e,t))}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(9426),t=n(2971),o=n(6851),r="trekkie",i=[],a=n(8878);i.push(["Facebook Pixel",a.FacebookPixel]);var s=n(7575);i.push(["Google Analytics",s.GoogleAnalytics]);var c=n(8142);i.push(["Pinterest Pixel",c.Pinterest]);var u=n(6971);i.push(["Snap Pixel",u.Snap]);var p=n(342);i.push(["TikTok Pixel",p.TikTok]);var d=n(2724);i.push(["Session Attribution",d.SessionAttribution]);var l=n(5087);i.push(["Google Gtag Pixel",l.GoogleGtag]);var f=n(3653);i.push(["S2S",f.S2S]);try{var _=window[r].config;if(_){t.setGlobalSerializedAppConfig(JSON.stringify(_));var g=window[r],v=window.trekkie=new e.Tricorder(i,_,(function(){window[r]=v,window._visit={tag:function(){},multitrackToken:function(){o.default.uniqToken}},v.user=function(){return{traits:function(){return{uniqToken:o.default.uniqToken}}}},e.replayAnalyticsQueue(v,g)}))}}catch(e){t.reportError("index_storefront",e)}}()}();