window['pinterest-tagDeps'] = ["/integrations/vendor/commons.a61d7bea37d2de5d4b69.js"];window['pinterest-tagLoader'] = function() { return window["pinterest-tagIntegration"]=function(t){function r(r){for(var o,p,a=r[0],s=r[1],c=r[2],d=0,y=[];d<\/script>');i.prototype.initialize=function(){if(this.options.tid){!function(t){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var r=window.pintrk;r.queue=[],r.version="3.0"}}(),this.load(this.ready);var t=this.analytics.user().traits();if(t&&t.email&&this.options.useEnhancedMatchLoad){var r=this.analytics.user().traits().email;window.pintrk("load",this.options.tid,{em:r})}else window.pintrk("load",this.options.tid);window.pintrk("page"),this.createPropertyMapping()}},i.prototype.loaded=function(){return!(!window.pintrk||!window.pintrk.queue)},i.prototype.identify=function(t){t.email()&&window.pintrk("set",{np:"segment",em:t.email()})},i.prototype.page=function(t){t.category()?window.pintrk("track","ViewCategory",{category:t.category(),name:t.name()||""}):window.pintrk("track","PageVisit",{name:t.name()||""})},i.prototype.track=function(t){var r=t.event(),e=this.getPinterestEvent(r),o=this.generatePropertiesObject(t);e?window.pintrk("track",e,o):window.pintrk("track",r,o)},i.prototype.getPinterestEvent=function(t){for(var r in this.options.pinterestEventMapping)if(r.toLowerCase()===t.toLowerCase())return this.options.pinterestEventMapping[r];var e=[[n.productsSearched,"Search"],[n.productListFiltered,"Search"],[n.productAdded,"AddToCart"],[n.orderCompleted,"Checkout"],[n.videoPlaybackStarted,"WatchVideo"]];for(var o in e)if(e.hasOwnProperty(o)){var i=e[o][0],p=e[o][1];if(i.test(t))return p}},i.prototype.createPropertyMapping=function(){this.propertyMap={query:"search_query",order_id:"order_id",coupon:"coupon",value:"value",currency:"currency"},this.productPropertyMap={name:"product_name",product_id:"product_id",sku:"product_id",category:"product_category",variant:"product_variant",price:"product_price",quantity:"product_quantity",brand:"product_brand"},this.options.mapMessageIdToEventId&&(this.propertyMap.messageId="event_id")},i.prototype.generatePropertiesObject=function(t){var r,e={};for(var o in this.propertyMap)this.propertyMap.hasOwnProperty(o)&&(r=t.proxy("properties."+o))&&(e[this.propertyMap[o]]=r);this.options.mapMessageIdToEventId&&(e.event_id=t.proxy("messageId"));var n,i=t.proxy("properties.products");if(Array.isArray(i)){n=[];for(var p=0;p