1(()=>{var ft=Object.create;var Le=Object.defineProperty,_t=Object.defineProperties,mt=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertyNames,ke=Object.getOwnPropertySymbols,It=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var Me=(o,s,l)=>s in o?Le(o,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[s]=l,Y=(o,s)=>{for(var l in s||(s={}))He.call(s,l)&&Me(o,l,s[l]);if(ke)for(var l of ke(s))Tt.call(s,l)&&Me(o,l,s[l]);return o},F=(o,s)=>_t(o,pt(s));var ie=(o,s,l)=>()=>{if(l)throw l[0];try{return o&&(s=o(o=0)),s}catch(O){throw l=[O],O}};var At=(o,s)=>()=>{try{return s||o((s={exports:{}}).exports,s),s.exports}catch(l){throw s=0,l}};var gt=(o,s,l,O)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of St(s))!He.call(o,p)&&p!==l&&Le(o,p,{get:()=>s[p],enumerable:!(O=mt(s,p))||O.enumerable});return o};var Ot=(o,s,l)=>(l=o!=null?ft(It(o)):{},gt(s||!o||!o.__esModule?Le(l,"default",{value:o,enumerable:!0}):l,o));var u=(o,s,l)=>new Promise((O,p)=>{var Q=A=>{try{c(l.next(A))}catch(h){p(h)}},P=A=>{try{c(l.throw(A))}catch(h){p(h)}},c=A=>A.done?O(A.value):Promise.resolve(A.value).then(Q,P);c((l=l.apply(o,s)).next())});var Ge,Be=ie(()=>{Ge="WebPixel::Render"});var Ne,be=ie(()=>{Be();Ne=o=>shopify.extend(Ge,o)});var We=ie(()=>{be()});var Xe=ie(()=>{We()});var Re,Te,xe,Ae,Fe,Qe,$e,Je,qe,ze,Ze,Ce,je,Ve,ye,et,tt,nt,Ke,fe,f,H,Z,Ye=ie(()=>{"use strict";Re="aleid",Te="alart",xe="axeid",Ae="axart",Fe="ctvid",Qe="_axeid",$e="_axeid",Je="_axart",qe="_axart",ze="_axctvid",Ze="_axctvid",Ce="_axwrt",je="axwrt",Ve="_axwrt_ts",ye="_axwrt_backup",et="_ax_recovery_",tt="_ax_cookie_probe_",nt=.0006944444444444445,Ke={HTTP:0,SCRIPT:1,GENERATED:2},fe={WRT:"wrt",EVENT_ID:"event_id",ART:"art",CTVID:"ctvid"},f={URL:"url",COOKIE:"cookie",HTTP_COOKIE:"http_cookie",LOCAL_STORAGE:"local_storage",SHOPIFY:"shopify",GENERATED:"generated",MISSING:"missing",MEMORY:"memory",COOKIE_DOMAIN:"cookie_domain",NONE:"none"},H={LEGACY:"legacy",PARENT:"parent",HOST:"host",UNAVAILABLE:"unavailable"},Z={EXISTING:"existing",UNAVAILABLE:"unavailable",RESTORED:"restored",CREATED:"created",RECOVERED_WRITE:"recovered_write",RECOVERED_REUSE:"recovered_reuse"}});function rt({cookie:o,localStorage:s,generateUUID:l,validateWrt:O}){let p={scope:H.UNAVAILABLE,domain:null},Q,P,c,A,h,B,L,le=!0,I={},_={},D=Promise.resolve();function w(i){return u(this,null,function*(){var E;try{return(E=yield o.get(i))!=null?E:null}catch(T){return}})}function N(i){return u(this,null,function*(){var E;try{return(E=yield s.getItem(i))!=null?E:null}catch(T){return}})}function U(i,E){return u(this,null,function*(){try{yield s.setItem(i,E)}catch(T){}})}function y(i,E,T,x){return u(this,null,function*(){try{return yield o.set(i+"="+E+"; path=/; expires="+new Date(Date.now()+T*864e5).toUTCString()+(x?"; domain="+x:"")),(yield w(i))===E}catch(m){return!1}})}function ue(i){return u(this,null,function*(){let E=tt+l(),T=m=>u(null,null,function*(){let V=yield y(E,"1",nt,m);return yield y(E,"",-1,m),V}),x=i.split(".");if(i&&!i.includes(":")&&!/^\d+(\.\d+){3}$/.test(i))for(let m=x.length-2;m>=0;m--){let V=x.slice(m).join(".");if(yield T(V))return{domain:V,scope:m===x.length-2?H.LEGACY:H.PARENT}}return(yield T(null))?{domain:null,scope:H.HOST}:{domain:null,scope:H.UNAVAILABLE}})}function J(x,m){return u(this,arguments,function*(i,E,T=365){return p.scope===H.UNAVAILABLE?!1:y(i,String(E||""),T,p.domain)})}function me(i){return Number.isSafeInteger(i)&&i>Date.now()&&i<=Date.now()+31536e6}function Oe(){return u(this,null,function*(){if(p.scope===H.UNAVAILABLE)return null;try{let i=JSON.parse(yield N(ye));return!i||typeof i.value!="string"||!O(i.value)||!me(i.expiresAt)||i.setTs!==null&&(!Number.isSafeInteger(i.setTs)||i.setTs<=0||i.setTs>Date.now()||i.expiresAt>i.setTs+31536e6)?null:i}catch(i){return null}})}function j(m,V,ee){return u(this,arguments,function*(i,E,T,x=Date.now()+31536e6){let v=et+i,[K,b]=yield Promise.all([w(v),N(v)]),R=_[i];try{R=JSON.parse(decodeURIComponent(K||b))||R}catch($){}(!R||R.value!==E||!me(R.expiresAt)||!(R.source===f.LOCAL_STORAGE||i===fe.WRT&&R.source===f.COOKIE_DOMAIN))&&(R=null);let k=T===f.LOCAL_STORAGE||T===f.COOKIE_DOMAIN?T:(T===f.COOKIE||T===f.HTTP_COOKIE||T===f.MEMORY)&&R?R.source:null,M=typeof E=="string"&&E&&k?{value:E,source:k,expiresAt:Math.min(x,R?R.expiresAt:x)}:null;if(_[i]=M,p.scope!==H.UNAVAILABLE)if(M){let $=encodeURIComponent(JSON.stringify(M));K!==$&&(yield J(v,$,(M.expiresAt-Date.now())/864e5)),b!==$&&(yield U(v,$))}else K&&(yield J(v,"",-1)),b&&(yield U(v,""));return M&&M.expiresAt>Date.now()?M.source:f.NONE})}function Ee(i,E,T,x,m){return u(this,null,function*(){let V=yield w(E),ee=!x&&!m&&!V?yield N(T):null,v=V===void 0||ee===void 0?I[i]:null,K=m||x||V||ee||v||null,b=m?f.GENERATED:x?f.URL:V?f.COOKIE:ee?f.LO
1CAL_STORAGE:v?f.MEMORY:f.MISSING;I[i]=K;let R=yield j(i,K,b);return K&&(yield J(E,K),yield U(T,K)),{value:K,recovered:R}})}function ve(x){return u(this,arguments,function*({location:i,clientId:E,generatedCtvid:T}){i=i||P,P=i;let m=i!=null&&i.href?new URL(i.href):null,V=(m==null?void 0:m.origin)||(i==null?void 0:i.hostname)||"",ee=p.scope===H.UNAVAILABLE;Q!==V?(Q=V,c=null,I={},_={},le=!0,p=yield ue((m==null?void 0:m.hostname)||(i==null?void 0:i.hostname)||"")):p.scope===H.UNAVAILABLE&&(p=yield ue((m==null?void 0:m.hostname)||(i==null?void 0:i.hostname)||""));let v=!0,K=!c||ee;if(K){let[ne,pe,r,re]=yield Promise.all([w(je),w(Ce),Oe(),w(Ve)]),e=O(ne),t=O(pe);if(v=!!(e||t),e||t||r||!c){c=e||t||(r==null?void 0:r.value)||E||l(),L=e?f.HTTP_COOKIE:t?f.COOKIE:r&&r.value!==E?f.LOCAL_STORAGE:E?f.SHOPIFY:f.GENERATED,A=e?Ke.HTTP:t||L===f.GENERATED?Ke.SCRIPT:null;let n=c+".",a=re!=null&&re.startsWith(n)?Number(re.slice(n.length)):null;h=L===f.GENERATED?Date.now():Number.isSafeInteger(a)&&a>0&&a<=Date.now()?a:(r==null?void 0:r.value)===c?r.setTs:null,B=(r==null?void 0:r.value)===c?r.expiresAt:(h||Date.now())+31536e6}}let b=L===f.LOCAL_STORAGE?(B-Date.now())/864e5:365,k=(yield w(Ce))===c||b>0&&(yield J(Ce,c,b)),M=v?Z.EXISTING:k?L===f.LOCAL_STORAGE?Z.RESTORED:p.scope===H.LEGACY?Z.CREATED:Z.RECOVERED_WRITE:Z.UNAVAILABLE,$=yield j(fe.WRT,c,le||K?M===Z.RECOVERED_WRITE&&L!==f.SHOPIFY?f.COOKIE_DOMAIN:L:f.MEMORY,B);if(v&&$===f.COOKIE_DOMAIN&&(M=Z.RECOVERED_REUSE),k&&p.scope!==H.UNAVAILABLE&&B>Date.now()&&O(c)){let ne=JSON.stringify({value:c,setTs:h,expiresAt:B});(yield N(ye))!==ne&&(yield U(ye,ne)),h&&(L===f.GENERATED||L===f.LOCAL_STORAGE)&&(yield J(Ve,c+"."+h,(B-Date.now())/864e5))}let te=new URLSearchParams((m==null?void 0:m.search)||(i==null?void 0:i.search)||""),[we,he,q]=yield Promise.all([Ee(fe.EVENT_ID,Qe,$e,te.get(Re)||te.get(xe)),Ee(fe.ART,Je,qe,te.get(Te)||te.get(Ae)),Ee(fe.CTVID,ze,Ze,te.get(Fe),T)]),de=F(Y({},le&&{scope:p.scope,status:M}),{recovered:{wrt:$,event_id:we.recovered,art:he.recovered,ctvid:q.recovered}});return le=!1,{wrt:c,wrtOrigin:A,wrtSetTs:h,eventId:we.value,art:he.value,ctvid:q.value,cookiePersistence:de}})}return{setCookie:J,update(i){let E=D.then(()=>ve(i));return D=E.catch(()=>{}),E}}}var it=ie(()=>{"use strict";Ye()});function st(o){return xt.has(o==null?void 0:o.name)}function Ct(o){var O,p;if(!o||!["input","textarea"].includes((O=o.tagName)==null?void 0:O.toLowerCase()))return!1;let s=(p=o.type)==null?void 0:p.toLowerCase();if(s==="hidden"||s==="password")return!1;let l=[o.id,o.name].filter(Boolean).join(" ").toLowerCase();return s==="email"||l.includes("email")||l.includes("e-mail")}function at(o){var s;return[(s=o.tagName)==null?void 0:s.toLowerCase(),o.id||"",o.name||""].join(":")}function ot(o,s){return u(this,null,function*(){if(o==null)return null;let l=yield s.subtle.digest("SHA-256",new TextEncoder().encode(o));return Array.from(new Uint8Array(l)).map(O=>O.toString(16).padStart(2,"0")).join("")})}function ct({analytics:o,eventKey:s,normalizeEmailV2:l,fetchFn:O=fetch,cryptoObj:p=crypto}
1){let Q=!1,P=null,c=null,A=null,h=Promise.resolve(),B=u(null,null,function*(){let I;try{let _=yield O(`${ht}?event_key=${encodeURIComponent(s)}`);I=_.ok?yield _.json():null}catch(_){return P=null,c=null,A=null,!1}return(I==null?void 0:I.autoEmailCapture)!==!0?(P=null,c=null,A=null,!1):(Q=!0,!0)});function L(I,_=!1){return h=Promise.all([B,h]).then(w=>u(null,[w],function*([D]){if(!D)return;let N=I.filter(Ct),U=N.map(y=>({email:String(y.value||"").trim().toLowerCase(),source:at(y)})).find(y=>Rt.test(y.email));if(!U){(_&&N.length>0||A&&N.some(y=>at(y)===A))&&(P=null,c=null,A=null);return}P=null,c=null,A=U.source;try{P=yield ot(U.email,p);let y=l(U.email);c=y===U.email?P:yield ot(y,p)}catch(y){P=null,c=null,A=null;return}})),h}return o.subscribe("input_changed",I=>{var _;return L([(_=I==null?void 0:I.data)==null?void 0:_.element])}),o.subscribe("input_blurred",I=>{var _;return L([(_=I==null?void 0:I.data)==null?void 0:_.element])}),o.subscribe("form_submitted",I=>{var _,D;return L(Array.from(((D=(_=I==null?void 0:I.data)==null?void 0:_.element)==null?void 0:D.elements)||[]),!0)}),{ready:B,getEmailHashes(){return u(this,null,function*(){return Q&&(yield h),{autoCapturedEmail:P,autoCapturedEmailV2:c}})}}}var ht,Rt,xt,lt=ie(()=>{"use strict";ht="https://b.applovin.com/shopify/v2/pixel/config",Rt=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,xt=new Set(["input_changed","input_blurred","form_submitted"])});var dt=At(Ue=>{"use strict";Xe();it();Ye();lt();var ut="https://b.applovin.com/shopify/v2/pixel",Et="s/a/3.6.65",yt="al_cs",Pt="al_campaign",Dt="al_debug",ae="_axsid",oe="ax_visitor",G="_ax_session_data",se="_ax_last_event",ge="_axscan",_e="_applovin_pixel_version",ce="_al_debug",vt=3e3,Lt=3,Nt=36e5,Vt=new Set(["1","7","20","27","30","31","32","33","34","36","39","40","41","43","44","45","46","47","48","49","51","52","53","54","55","56","57","58","60","61","62","63","64","65","66","77","81","82","84","86","90","91","92","93","94","95","98","211","212","213","216","218","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","248","249","250","251","252","253","254","255","256","257","258","260","261","262","263","264","265","266","267","268","269","290","291","297","298","299","345","350","351","352","353","354","355","356","357","358","359","370","371","372","373","374","375","376","377","378","379","380","381","382","385","386","387","389","420","421","423","500","501","502","503","504","505","506","507","508","509","590","591","592","593","594","595","596","597","598","599","670","672","673","674","675","676","677","678","679","680","681","682","683","685","686","687","688","689","690","691","692","850","852","853","855","856","872","880","886","960","961","962","963","964","965","966","967","968","970","971","972","973","974","975","976","977","992","993","994","995","996","998","800","881","882","883","979"]);Ne(p=>u(null,[p],function*({analytics:o,browser:s,init:l,settings:O}){let Q,P,c={},A=!1,h=[],B;function L(){return u(this,null,function*(){try{let e=[oe,G,se,ge,_e,ae,ce],t=[()=>R(oe),()=>R(G,!0),()=>R(se),()=>R(ge),()=>m(_e),()=>V(ae),()=>V(ce)],n=yield Promise.all(t.map((a,d)=>u(null,null,function*(){try{return{status:"fulfilled",value:yield a(),index:d}}catch(g){return{status:"rejected",reason:g,index:d}}})));c={},n.forEach(a=>{a.status==="fulfilled"?a.value&&(c[e[a.index]]=a.value):q(`Failed to load storage for key ${e[a.index]} due to ${a.reason}`,{id:e[a.index],name:"loadAllStorageError",context:null})}),A=!0;return}catch(e){w("Error loading all storage:",e),q(e,{id:"loadAllStorageError",name:"loadAllStorageError",context:null}),c={},A=!0;return}})}function le(){if(h.length>0){let e=[...h];h=[];for(let t of e)pe(t.event,t.init)}}function I(){return u(this,null,function*(){try{let e=[];c[oe]&&e.push(k(oe,c[oe],365)),c[G]&&e.push(k(G,c[G],365,!0)),c[se]&&e.push(k(se,c[se],365)),c[_e]&&e.push(ee(_e,c[_e])),c[ae]&&e.push(v(ae,c[ae])),c[ce]&&e.push(v(ce,c[ce])),yield Promise.all(e)}catch(e){w("Error saving all storage:",e)}})}function _(e){return c[e]||null}function D(e,t){c[e]=t}function w(){console.error("[AL]",...arguments)}function N(e){return u(this,null,function*(){if(e==null)return null;let n=new TextEncoder().encode(e),a=yield crypto.subtle.digest("SHA-256",
1n);return Array.from(new Uint8Array(a)).map(g=>g.toString(16).padStart(2,"0")).join("")})}function U(e){if(e==null||!String(e).trim().startsWith("+"))return null;let t=String(e).replace(/[^\d]/g,"");return t=t.replace(/^0+/,""),t.length<8||t.length>15?null:t}function y(e){if(e==null)return null;let t=String(e).trim().toLowerCase();return t===""||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?null:t}function ue(e){if(!e)return null;let t=e.lastIndexOf("@"),n=e.slice(t+1);if(n!=="gmail.com"&&n!=="googlemail.com")return e;let a=e.slice(0,t).split("+")[0].replace(/\./g,"");return a===""?null:a+"@"+n}function J(e){if(!e)return null;let t=e.split("@");return t.length===2?t[1]:null}function me(e){if(!e)return null;for(let t=1;t<=3;t++)if(e.length>=t){let n=e.substring(0,t);if(Vt.has(n))return n}return null}function Oe(e){return u(this,null,function*(){if(!e)return e;if(e.customer){let t=y(e.customer.email),n=U(e.customer.phone),a=ue(t),[d,g,W]=yield Promise.all([N(t),a!==t?N(a):null,N(n)]);e.customer.email=d,e.customer.emailV2=a===null?null:g!=null?g:d,e.customer.isGmailNormalized=a!==t,e.customer.phone=W,e.customer.emailDomain=J(t),e.customer.phoneCountryCode=me(n),delete e.customer.firstName,delete e.customer.lastName}if(e.checkout){let t=y(e.checkout.email),n=U(e.checkout.phone),a=ue(t),[d,g,W]=yield Promise.all([N(t),a!==t?N(a):null,N(n)]);e.checkout.email=d,e.checkout.emailV2=a===null?null:g!=null?g:d,e.checkout.isGmailNormalized=a!==t,e.checkout.phone=W,e.checkout.emailDomain=J(t),e.checkout.phoneCountryCode=me(n),delete e.checkout.attributes,delete e.checkout.shippingAddress,delete e.checkout.billingAddress}return e.cart&&delete e.cart.attributes,e})}function j(e,t){return t?new URLSearchParams(t.window.location.search).has(e):!1}function Ee(e){return j(Re,e)||j(Te,e)||j(xe,e)||j(Ae,e)}function ve(e){return i(e)&&!r.hasFiredScan&&!_(ge)}function i(e){var a,d;if(!((d=(a=e==null?void 0:e.window)==null?void 0:a.location)!=null&&d.search))return!1;let t=new URLSearchParams(e.window.location.search),n=t.get(Te)||t.get(Ae);return n!=null&&String(n).toLowerCase().startsWith("ctv")}function E(e){var g,W;if(!((W=(g=e==null?void 0:e.window)==null?void 0:g.location)!=null&&W.search))return{};let t=new URLSearchParams(e.window.location.search),n=t.get(yt),a=t.get(Pt),d={};return n&&(d.al_cs=n),a&&(d.al_campaign=a),d}function T(e){return setTimeout(()=>u(null,null,function*(){de(r.landEvent),r.hasFiredLand=!0}),Math.max(e-(Date.now()-r.ts),0))}function x(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function m(e,t=!1){return u(this,null,function*(){try{let n=yield s.localStorage.getItem(e);if(t&&n)try{return atob(n)}catch(a){return w(`Error decoding base64 localStorage item ${e}:`,a),null}return n}catch(n){return w(`Error getting local storage item with key ${e}:`,n),null}})}function V(e,t=!1){return u(this,null,function*(){try{let n=yield s.sessionStorage.getItem(e);if(t&&n)try{return atob(n)}catch(a){return w(`Error decoding base64 sessionStorage item ${e}:`,a),null}return n}catch(n){return w(`Error getting session storage item with key ${e}:`,n),null}})}function ee(e,t,n=!1){return u(this,null,function*(){try{let a=n?btoa(t):t;yield s.localStorage.setItem(e,a)}catch(a){w(`Error setting local storage item with key ${e}:`,a)}})}function v(e,t,n=!1){return u(this,null,function*(){try{let a=n?btoa(t):t;yield s.sessionStorage.setItem(e,a)}catch(a){w(`Error setting session storage item with key ${e}:`,a)}})}function K(){return{pixelLoadMs:P,pixelNetworkMs:Q,pixelRequestDelayMs:b()}}function b(){return self.performance.now()}function R(e,t=!1){return u(this,null,function*(){let n=yield s.cookie.get(e);if(t&&n)try{return atob(n)}catch(a){return w(`Error decoding base64 cookie ${e}:`,a),null}return n})}function k(e,t,n,a=!1){return u(this,null,function*(){return re.setCookie(e,a?btoa(t||""):t,n)})}function M(e){let t=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return[r.eventKey].includes(e)?null:t.test(e)?e:null}function $(e){return e.type==="standard"||e.name==="clicked"}function te(e){if(!e||e.name!=="clicked")return!1;try{if(e.data&&e.data.element&&e.data.element.href){let t=self.location.origin;return new URL(e.data.element.href).origin===t}}catch(t){return!1}return!1}function we(){let e=Date.now(),t=_(oe),n;if(!t)n={firstVisitTs:e,lastVisitTs:null,currentVisitStartTs:e,ts:e,visitCount:1};
1else{try{n=JSON.parse(decodeURIComponent(t))}catch(a){n={firstVisitTs:e,lastVisitTs:null,currentVisitStartTs:e,ts:e,visitCount:1}}e-n.ts>Nt&&(n.lastVisitTs=n.currentVisitStartTs,n.currentVisitStartTs=e,n.visitCount++)}return n.ts=e,D(oe,encodeURIComponent(JSON.stringify(n))),{firstVisitTs:n.firstVisitTs,lastVisitTs:n.lastVisitTs,visitCount:n.visitCount,currentVisitStartTs:n.currentVisitStartTs}}function he(){function a(){try{let S=_(se);if(!S)return!0;let X=parseInt(S,10);return Date.now()-X>3e4}catch(S){return w("Error checking page inactive status:",S),!0}}function d(){return u(this,null,function*(){try{let S=Date.now(),X=_(G)||`{"invisibleTime":0,"totalTime":0,"lastUpdate":${S}}`,C=JSON.parse(X),Se=S-C.lastUpdate;C.totalTime+=Se,a()&&(C.invisibleTime+=Se),C.lastUpdate=S,D(G,JSON.stringify(C)),yield k(G,JSON.stringify(C),365,!0)}catch(S){w("Error updating session timers:",S)}})}function g(){return u(this,null,function*(){try{let S=_(G);if(!S)return;let X=JSON.parse(S),C=Math.max(0,X.totalTime-X.invisibleTime),Se={name:"page_session",type:"standard",data:{timePageVisible:Math.round(C),totalSessionTime:Math.round(X.totalTime)},context:r.lastEvent?r.lastEvent.event.context:null};C<864e5&&X.totalTime<864e5&&pe(Se),yield k(G,JSON.stringify({invisibleTime:0,totalTime:0,lastUpdate:Date.now()}),365,!0)}catch(S){w("Error sending session data:",S)}})}function W(){return u(this,null,function*(){try{_(G)&&(yield g()),D(G,JSON.stringify({invisibleTime:0,totalTime:0,lastUpdate:Date.now()})),yield k(G,JSON.stringify({invisibleTime:0,totalTime:0,lastUpdate:Date.now()}),365,!0)}catch(S){w("Error checking existing session:",S)}})}setInterval(d,5e3),setTimeout(W,3e3)}function q(e,t){let n;e instanceof Error?n=e.message:typeof e=="string"?n=e:n=String(e);let a=n.substring(0,100),d={id:"ERROR:"+t.id+":"+t.name+":"+a,name:"test",type:"standard",data:{},context:t.context},g=F(Y({applovin:ne()},r.autoCapturedEmail&&{userData:{autoCapturedEmail:r.autoCapturedEmail,autoCapturedEmailV2:r.autoCapturedEmailV2}}),{event:d});s.sendBeacon(ut,JSON.stringify(g))}function de(e,t=10,n=1e3){return u(this,null,function*(){let a=0;for(;a<t;)try{let d=yield fetch(ut,{method:"POST",keepalive:!0,priority:"high",body:JSON.stringify(e)});if(d.ok)return d;q(d.status,e.event)}catch(d){q(d,e.event)}finally{a<t&&(yield new Promise(d=>setTimeout(d,a*n))),a++}})}function ne(e={}){var t;return Y(Y({connectEventKey:r.eventKey,wrt:r.wrt,wrtOrigin:r.wrtOrigin,wrtSetTs:(t=r.wrtSetTs)!=null?t:null,sid:r.sid,eventId:r.eventId,art:r.art,ctvid:r.ctvid,csid:r.csid,campaignId:r.campaignId,pixelLoadId:r.pixelLoadId,version:Et,pixelTimings:K(),pageTimings:null,visitInfo:we(),alDebug:r.alDebug,appPixel:!0},r.cookiePersistence&&{cookiePersistence:{recovered:r.cookiePersistence.recovered}}),e)}function pe(e,t){return u(this,null,function*(){var a,d,g,W;if(!A){h.push({event:e,init:t});return}if(st(e))return;let n=ve(e.context);n&&(r.hasFiredScan=!0);try{if(e.data=yield Oe(e.data),t&&t.data&&(t.data=yield Oe(t.data)),e.name==="product_viewed"&&e.data&&e.data.productVariant&&e.context&&e.context.window&&e.context.window.location&&e.context.window.location.href&&(r.currentPageItems=[e.data.productVariant],r.currentPageItemsHref=e.context.window.location.href),e.name==="collection_viewed"&&e.data&&e.data.collection&&e.context&&e.context.window&&e.context.window.location&&e.context.window.location.href&&(r.currentPageItems=e.data.collection.productVariants,r.currentPageItemsHref=e.context.window.location.href),Ee(e.context)&&te(e)&&!r.hasFiredLand&&r.landEvent&&(de(r.landEvent),r.hasFiredLand=!0),D(se,Date.now().toString()),!$(e))return;Object.assign(r,yield B.getEmailHashes());let S=yield re.update({location:((d=(a=e.context)==null?void 0:a.window)==null?void 0:d.location)||((W=(g=t==null?void 0:t.context)==null?void 0:g.window)==null?void 0:W.location),clientId:e.clientId,generatedCtvid:n?"ctvid-"+x():null});Object.assign(r,S);let X=e.context?new URLSearchParams(e.context.window.location.search):null;if(n){let Ie=E(e.context);r.campaignId=Ie.al_campaign,r.csid=Ie.al_cs,D(ge,"1"),yield k(ge,"1",Lt/24)}r.alDebug=X&&X.get(Dt)||_(ce)||null,r.alDebug&&D(ce,r.alDebug),e.name==="clicked"&&r.currentPageItems&&r.currentPageItems.length>0&&(r.currentPageItemsHref&&e.context&&e.context.window&&e.context.window.location&&e.context.window.location.href&&r.currentPageItemsHref===e.context.window.location.href?(e.data||(e.data={}),e.data.productVariants=r.currentPageItems):(r.currentPageItems=null,r.currentPageItemsHref=null));let C=Y(F(Y({applovin:ne(S)}
1,r.autoCapturedEmail&&{userData:{autoCapturedEmail:r.autoCapturedEmail,autoCapturedEmailV2:r.autoCapturedEmailV2}}),{event:e}),t&&{initData:t.data});if(de(C),Ee(e.context)&&!r.hasStartedLandTimer&&(r.hasStartedLandTimer=!0,r.landEvent=F(Y({},C),{applovin:F(Y({},C.applovin),{cookiePersistence:{recovered:S.cookiePersistence.recovered}}),event:F(Y({},C.event),{name:"land"})}),T(vt)),n){let Ie=F(Y({},C),{applovin:F(Y({},C.applovin),{cookiePersistence:{recovered:S.cookiePersistence.recovered}}),event:F(Y({},e),{name:"scan"})});de(Ie)}r.lastEvent=C,yield I()}catch(S){q(S,e)}})}let r={},re=rt({cookie:s.cookie,localStorage:s.localStorage,generateUUID:x,validateWrt:M});try{r.ts=Date.now(),P=b(),Q=r.ts?Date.now()-r.ts:null,r.eventKey=O.eventKey,r.pixelLoadId=x(),B=ct({analytics:o,eventKey:r.eventKey,normalizeEmailV2:ue}),o.subscribe("all_events",t=>u(null,null,function*(){return pe(t,l)})),yield L();let e=_(ae);e||(e=x(),D(ae,e),fetch("https://cm.g.doubleclick.net/pixel?google_nid=aplv&google_cm&cek="+encodeURIComponent(r.eventKey),{keepalive:!0,mode:"no-cors"}).catch(()=>{})),r.sid=e,he(),D(_e,Et),le()}catch(e){q(e,{id:"pixel_init_error",name:"pixel_init_error",context:null})}}))});var tn=Ot(dt());})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.