(()=>{(()=>{var D={2087:(i,c,n)=>{"use strict";n.r(c),n.d(c,{getCookie:()=>o,setCookie:()=>e});function o(a,d){let s=d+"=",h=decodeURIComponent(a).split(";");for(let u=0;u{function c(){return new URLSearchParams(window.location.search).get("profiling")==="1"}i.exports.start=function(n){c()&&performance.mark(`${n}-start`)},i.exports.end=function(n){if(c())try{performance.mark(`${n}-end`);const o=performance.measure(n,`${n}-start`,`${n}-end`);console.log(`Profiling result (${n}):`,o)}catch(o){console.log("Error profiling",o)}}},2914:(i,c,n)=>{"use strict";n.r(c),n.d(c,{getAPIServerEndpoint:()=>e,getServerEndpoint:()=>o});function o(a){let d=new URL(a),s=`${d.protocol}//${d.host}`;return s.match("snapppt")&&(s=s.replace("snapppt","app.addsauce")),s}function e(a){return o(a).replace("app.","client.")}},1581:(i,c,n)=>{const o=n(2087),e="snpt-tracking-v2-session",a={};function d(){return window.location.search.includes("tracking=true")?!1:window.location.hostname==="app.addsauce.com"||window.location.hostname==="app.addsauce.test"}function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var t=Math.random()*16|0,l=u==="x"?t:t&3|8;return l.toString(16)})}function f(){return typeof crypto.randomUUID=="function"?crypto.randomUUID():s()}class h{static getCurrentSessionID(){return o.getCookie(document.cookie,e)}constructor(t){this.apiEndpoint=t}async getOrCreateCurrentSessionID(){if(d())return null;let t=o.getCookie(document.cookie,e);(t==null||t==="")&&(t=f());let l=await this.rootDomain();return l!=null&&(l="."+l),o.setCookie(e,t,{domain:l}),t}async rootDomain(t){if(t==null&&(t=window.location.hostname),t==="")return null;if(a[t])return a[t];try{let g=localStorage.getItem(`root_domain[${t}]`);if(g)return g}catch(g){console.log("Unable to get cached root domain",g)}let l=new AbortController,w=5*1e3,S=setTimeout(()=>l.abort(),w);try{let g=`${this.apiEndpoint}/root_domain?hostname=${encodeURIComponent(t)}`,C=await fetch(g,{signal:l.signal});clearTimeout(S);let x=(await C.json()).root_domain;if(x!=null){a[t]=x;try{localStorage.setItem(`root_domain[${t}]`,x)}catch(y){console.log("Unable to set cached root domain",y)}}return x}catch(g){return clearTimeout(S),console.error("Error getting root domain",g),t}}}i.exports=h}},T={};function m(i){var c=T[i];if(c!==void 0)return c.exports;var n=T[i]={exports:{}};return D[i](n,n.exports,m),n.exports}m.d=(i,c)=>{for(var n in c)m.o(c,n)&&!m.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:c[n]})},m.o=(i,c)=>Object.prototype.hasOwnProperty.call(i,c),m.r=i=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var L={};(function(){const i=m(1581),c=m(2914),n=m(5187),o={matchers:{sauceTv:/widgets\/tv\/(.*)/,highlightReels:/widgets\/highlight_reels\/(.*)/,productPageHighlightReels:/widgets\/product_page_highlight_reels\/(.*)\/index.js/},cdn:{root:"https://cdn.addsauce.com/",widgetLoadSegment:"load"},observer:{rootMargin:"1000px",threshold:0},loadingIndicatorCSS:` .snptwdgt_init_prldr:not(.snptwdgt_init) { width: 100%; height: 100px; background-image: url('data:image/svg+xml,'); background-size: 50px; background-position: center; background-repeat: no-repeat; display: inline-block; } `},e={head:document.head,currentScript:window.CURRENT_SNPT_SCRIPT||document.currentScript,isDebugMode:window.location.search.includes("debug=1"),isXpMode:window.location.search.includes("xp=1"),isIE:navigator.userAgent.includes("MSIE")||navigator.userAgent.includes("Trident")};let a="",d=document.createElement("a"),s=null;const f=()=>{S(),g(),C(),new i(c.getAPIServerEndpoint(a)).getOrCreateCurrentSessionID(),s=x(),M()},h=()=>e.currentScript.src.match(o.matchers.sauceTv),u=()=>h()&&e.currentScript.parentElement.getAttribute("data-sauce-tv-embedded")!=="1",t=()=>e.currentScript.src.match(o.matchers.highlightReels),l=()=>e.currentScript.src.match(o.matchers.productPageHighlightReels),w=()=>u()||t()||l(),S=()=>{if([...document.querySelectorAll('[rel="preconnect"]')].some(p=>p.href===o.cdn.root))return;const r=document.createElement("link");r.rel="preconnect",r.href=o.cdn.root,e.head.appendChild(r)},g=()=>{if(document.getElementById("snptwdgt_init_prldr_indctor_css")||w())return;const r=document.createElement("style");r.id="snptwdgt_init_prldr_indctor_css",r.appendChild(document.createTextNode(o.loadingIndicatorCSS)),e.head.appendChild(r)},C=()=>{!e.currentScript&&e.isIE&&(e.currentScript=Array.from(document.getElementsByTagName("script")).find(r=>r.className.includes("snapppt-widget"))),e.currentScript=e.currentScript||window.CURRENT_SNPT_SCRIPT,e.currentScript.loadNow=E(),a=e.currentScript.src||window.CURRENT_SNTP_EMBED,e.isDebugMode&&(console.log(`Sauce current script: ${a}`),console.log(`Load now: ${e.currentScript.loadNow}`)),d.href=a},E=()=>e.currentScript.dataset.loadr==="instant"||w()?!0:!!e.currentScript.src.match("campaign-signup"),x=()=>{if(window.SNPT||(window.SNPT={}),!window.SNPT.widgetManager){const r={widgets:[],loaderRequested:!1,loaderInit:null};window.SNPT.widgetManager={widgetReady(p){typeof r.loaderInit=="function"?r.loaderInit(p):(r.widgets.unshift(p),this.requestLoader())},requestLoader(){r.loaderRequested||(r.loaderRequested=!0,y())},loaderReady(p){for(r.loaderInit=p;r.widgets.length;)r.loaderInit(r.widgets.pop())}}}return window.SNPT.widgetManager},y=()=>{const r=a.lastIndexOf("/"),p=d.host.match(/\.(test|ci)/),_=p?`${a.substring(0,r+1)}${o.cdn.widgetLoadSegment}${a.substring(r)}`:"https://cdn.addsauce.com/e/snap-widget-4cc85de5c99a78bba2bc.js",$=p?`${d.protocol}//${d.host}/widgets/widget_loader/snap-vendor-bundle.js`:"https://cdn.addsauce.com/e/snap-widget-vendor-950c50fe4d837e8da88d.js",R=(b,N="")=>{n.start("snap-widget-script-load");const v=document.createElement("script");return v.src=b,v.async=!0,v.setAttribute("importance","high"),N&&(v.className=N),v},k=R(_,"snapppt-widget"),O=R($);e.currentScript.dataset?Object.assign(k.dataset,e.currentScript.dataset):Array.from(e.currentScript.attributes).filter(b=>b.name.startsWith("data-")).forEach(b=>k.setAttribute(b.name,b.value)),e.currentScript.className="snptwdgt_init_prldr";const P=document.createDocumentFragment();P.append(k,O),e.currentScript.after(P)},M=()=>{if(location.href.includes("lemieux")||e.currentScript.loadNow||e.currentScript.src.match("campaign-signup")||!("IntersectionObserver"in window))return I();const r=new IntersectionObserver(p=>{const _=p[0];_.isIntersecting&&(r.disconnect(),_.target.remove(),I())},o.observer);r.observe(U())},I=()=>s.widgetReady(e.currentScript),U=()=>{const r=document.createElement("div");return r.innerHTML=" ",e.currentScript.after(r),r};f(),n.end("preloader")})()})();})();