!function(){"use strict";var e={7385:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcommerceIntegration=t.ANALYTICS_ADDED_PAYMENT=t.ANALYTICS_PERFORMED_SEARCH=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=void 0;var i=n(997),a=n(542),c=n(6997),s=n(1102),u=n(372),p=n(1930),d={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,performedSearch:/^[ _]?performed[ _]?search[ _]?$/i,addedPayment:/^[ _]?added[ _]?payment[ _]?$/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_PERFORMED_SEARCH="performedSearch",t.ANALYTICS_ADDED_PAYMENT="addedPayment";var v=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.shopId=void 0,i.checkoutToken=void 0,i.visitToken=void 0,i.uniqueToken=void 0,i.appName=void 0,i.wrapTrack(),o&&(i.shopId=o.shopId,i.appName=o.appName,i.checkoutToken=o.checkoutToken,i.visitToken=o.visitToken,i.uniqueToken=o.uniqToken),i.setPixelStub(),i.ensureTrackingConsent((function(){i.initialize(r)}),r),i}return o(t,e),t.prototype.ensureTrackingConsent=function(e,t){c.privacyApiMethods.userCanBeTracked()?e():(document.addEventListener(a.TrackingConsentEvents.TRACKING_ACCEPTED,e),t())},t.prototype.wrapTrack=function(){var e=this.track;this.track=function(t){var n=t.event,r=!1;for(var o in d){var i=d[o];if(this[o]&&i.test(n)){this[o].apply(this,[t]),r=!0;break}}r||e.apply(this,Array.prototype.slice.call(arguments))}},t.prototype.addMonorailBatchEvent=function(e){if(this.appName&&this.appName in p.appNameToEcommerceEventSchemaId){var t=this.getEcommercePixelIds();i.addBatchEvent({schemaId:e.schemaId?e.schemaId:p.appNameToEcommerceEventSchemaId[this.appName],payload:s.objectAssignFilterUndefined({shop_id:this.shopId,partner_name:this.getEcommerceMetricsTag(),event_name:e.eventName,unique_token:this.uniqueToken,visit_token:this.visitToken,integration_id:this.getIntegrationId()},{pixel_id:t&&t.length>0?t[0]:void 0,event_properties:e.eventProperties,checkout_token:this.checkoutToken,event_id:e.eventId})}),e.eventName in p.ecommerceEventNameSchemaId&&i.addBatchEvent({schemaId:p.ecommerceEventNameSchemaId[e.eventName],payload:{shop_id:this.shopId,partner_name:this.getEcommerceMetricsTag()}})}},t}(u.Integration);t.EcommerceIntegration=v},372:function(e,t){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.length)return n.substr(t.length)}},793:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingConsentEvents=void 0,(t.TrackingConsentEvents||(t.TrackingConsentEvents={})).TRACKING_ACCEPTED="trackingConsentAccepted"},5291:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingRegulations=void 0,(n=t.TrackingRegulations||(t.TrackingRegulations={})).GDPR="GDPR",n.CCPA="CCPA",n.NO_VALUE=""},542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingRegulations=t.TrackingConsentEvents=void 0;var r=n(793);Object.defineProperty(t,"TrackingConsentEvents",{enumerable:!0,get:function(){return r.TrackingConsentEvents}});var o=n(5291);Object.defineProperty(t,"TrackingRegulations",{enumerable:!0,get:function(){return o.TrackingRegulations}})},8878:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(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,r=arguments.length;n2&&(u.lineNumber=d[1],u.columnNumber=d[2],parseInt(u.lineNumber,10)>1e5))return}this.sendBugsnagXhr(r,p,u,s,i,a,e.notes,t)}},t.emitError=function(e,n){var a={error_name:e};r&&(a.shop_id=r),n&&(a.metadata=n);try{o.produce([{schemaId:t.errorsSchemaId,payload:a}])}catch(e){i.internalError("monorail.produce_emitError",e,{sendToMonorail:!1})}}},997:function(e,t,n){var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t>>0}catch(t){e=(new Date).getTime()>>>0}try{t=performance.now()>>>0}catch(e){t=0}var n=Math.abs(e+t).toString(16).toLowerCase();return"00000000".substr(0,8-n.length)+n}t.UniqueIdManager=c,t.buildToken=s,t.hexTime=u},1102:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.generateShopifyDValue=t.objectAssignFilterUndefined=void 0,t.objectAssignFilterUndefined=function(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e},t.generateShopifyDValue=function(){return(new Date).toJSON()}},5316:function(e,t,n){var r=n(9426),o=n(2308),i=[],a=n(8878);i.push(["Facebook Pixel",a.FacebookPixel]);var c=n(7575);i.push(["Google Analytics",c.GoogleAnalytics]);var s=n(8142);i.push(["Pinterest Pixel",s.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 v=n(5087);i.push(["Google Gtag Pixel",v.GoogleGtag]);var l=n(3653);i.push(["S2S",l.S2S]);try{var f=window.trekkie.config;if(f){o.setGlobalSerializedAppConfig(JSON.stringify(f));var h=window.trekkie,m=window.trekkie=new r.Tricorder(i,f,(function(){window.trekkie=m,window._visit={tag:function(){},multitrackToken:function(){return m.trekkie.defaultAttributes.uniqToken}},m.user=function(){return{traits:function(){return{uniqToken:m.trekkie.defaultAttributes.uniqToken}}}},r.replayAnalyticsQueue(m,h)}))}}catch(e){o.internalError("index_storefront",e)}},9426:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.replayAnalyticsQueue=t.Tricorder=void 0;var r=n(8831),o=n(2308),i=n(1503),a=n(725),c=n(997),s=n(793),u=n(6997),p=n(2971),d=n(7668),v=n(1930),l=n(8336),f=/^https?:\/\//,h=function(){function e(e,t,n){var r,o,i=this;this.integrations=[],this.eventNameToEventIdMapping=new Map,this.config=t,this.navigationInfo=this.getNavigationType(),p.emitMetric("navigation-"+(null===(r=this.navigationInfo)||void 0===r?void 0:r.navigationApi)+"-"+(null===(o=this.navigationInfo)||void 0===o?void 0:o.navigationType),1),this.logAssetContext(t),this.hasLoadFeatureScript()&&window.Shopify&&window.Shopify.loadFeatures?window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],(function(r){if(r)throw new Error(r);i.initialize(e,t,n)})):this.initialize(e,t,n)}return e.prototype.logAssetContext=function(e){var t,n,r,o;c.addBatchEvent({schemaId:v.trekkieAssetContextSchemaId,payload:{build_id:"ae8f9c36b6c7ff2478779d580444332fc1638b7f",page_url:window.location.href,app_name:null===(t=e.Trekkie)||void 0===t?void 0:t.appName,shop_id:null===(r=null===(n=e.Trekkie)||void 0===n?void 0:n.defaultAttributes)||void 0===r?void 0:r.shopId,monorail_region:(null===(o=e.Trekkie)||void 0===o?void 0:o.monorailRegion)||"not_set"}})},e.prototype.getNavigationType=function(){try{var e="PerformanceNavigationTiming",t=l.getNavigationTypeExperimental();return t||(t=l.getNavigationTypeLegacy(),e="performance.navigation"),t?{navigationType:t,navigationApi:e}:{navigationType:"unknown",navigationApi:"unknown"}}catch(e){p.emitError("navigation_api_error",e)}return{navigationType:"error",navigationApi:"error"}},e.prototype.hasLoadFeatureScript=function(){var e=document.querySelectorAll('[data-source-attribution="shopify.loadfeatures"]');return Boolean(e.length)},e.prototype.initialize=function(e,t,n){var o=this;this.trekkie=new r.Trekkie(t.Trekkie,(function(){setTimeout((function(){o.loadIntegrations(e,t,o.trekkie,n)}),0)})),this.integrations[0]!==this.trekkie&&this.integrations.unshift(this.trekkie),this.setupEventIdMapping()},e.prototype.setupEventIdMapping=function(){var e;try{if(this.config.initialDocumentCookie){var t=u.parseDocumentCookie(this.config.initialDocumentCookie)._shopify_evids;if((null===(e=this.config.Trekkie)||void 0===e?void 0:e.expectS2SEventId)&&t)if(window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.evids)for(var n=0,r=t.split(";");n0?e:e+a.search();var t=a.href(),n=t.indexOf("#");return-1===n?t:t.slice(0,n)},e}();t.Tricorder=h,t.replayAnalyticsQueue=function(e,t){for(var n=0,r=t;n