mergn-webapp-sdk 1.0.221 → 1.0.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,75 +1 @@
1
- /* Copyright (c) 2025 MERGN */
2
- "use strict";(()=>{var fi=Object.defineProperty,hi=Object.defineProperties;var bi=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var Si=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;var St=d=>{throw TypeError(d)};var bt=(d,e,t)=>e in d?fi(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,z=(d,e)=>{for(var t in e||(e={}))Si.call(e,t)&&bt(d,t,e[t]);if(ht)for(var t of ht(e))yi.call(e,t)&&bt(d,t,e[t]);return d},Oe=(d,e)=>hi(d,bi(e));var $e=(d,e,t)=>e.has(d)||St("Cannot "+t);var l=(d,e,t)=>($e(d,e,"read from private field"),t?t.call(d):e.get(d)),E=(d,e,t)=>e.has(d)?St("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),h=(d,e,t,i)=>($e(d,e,"write to private field"),i?i.call(d,t):e.set(d,t),t),a=(d,e,t)=>($e(d,e,"access private method"),t);var c=(d,e,t)=>new Promise((i,r)=>{var n=I=>{try{v(t.next(I))}catch(S){r(S)}},s=I=>{try{v(t.throw(I))}catch(S){r(S)}},v=I=>I.done?i(I.value):Promise.resolve(I.value).then(n,s);v((t=t.apply(d,e)).next())});var Ne="1.0.221";var yt="https://api.mergn.com/sdk-management/api",Ve="/attribute",Tt="/set-attribute",Ge="/event",wt="/record-event";var Pt="/customer",Ot="/device/add-device-token",Nt="/set-identity",At="/brand/get-web-push-public-key",_t="/brand/get-time";var g=class extends Error{constructor(e){super(e),this.name="MergnError"}};g.disableSDK=!1,g.offline=!navigator.onLine,g.debugLevel=0,g.isInitialized=!1,g.loading=!1;var wi=(d,e)=>{e instanceof g?o(2,`OriginateFrom: ${d}
3
- MergnError: ${e.message}`):e instanceof Error?o(2,`OriginateFrom: ${d}
4
- Unexpected error: ${e.message}`):o(2,`OriginateFrom: ${d}
5
- Unexpected error: ${String(e)}`)},O=(d,e,t,i=!1)=>c(void 0,null,function*(){try{D(d,!0),C(`${d} Time`,!0);try{if(d!=="verify API key"){if(d!=="verify API key"&&g.disableSDK)throw new g("Mergn SDK is disabled!");if(d!=="record event"&&g.offline)throw new g("Mergn is offline!");if(d!=="init"&&d!=="verify API key"&&d!=="record event"&&d!=="recordAttribute"&&d!=="log level check"&&!g.isInitialized)throw new g("Mergn not initialized!");if(d!=="login"&&d!=="record event"&&d!=="recordAttribute"&&g.loading)throw new g("Mergn is loading!")}return yield e()}catch(r){return t?t(r):(g.debugLevel===2||g.debugLevel===3)&&wi(d,r),null}finally{C(`${d} Time`,!1),D(d,!1)}}catch(r){return null}});var x=(n=>(n[n.NONE=0]="NONE",n[n.INFO=1]="INFO",n[n.ERROR=2]="ERROR",n[n.ALL=3]="ALL",n[n.DEBUG=4]="DEBUG",n))(x||{}),o=(d,e)=>{g.debugLevel!==0&&(g.debugLevel>=3?d===1?console.info(`INFO: ${new Date().toISOString()}`,e):d===2&&console.error(`ERROR: ${new Date().toISOString()}`,e):g.debugLevel===1&&d===1?console.info(`INFO: ${new Date().toISOString()}`,e):g.debugLevel===2&&d===2&&console.error(`ERROR: ${new Date().toISOString()}`,e))},C=(d,e)=>{g.debugLevel!==0&&(e?console.time(d):console.timeEnd(d))},D=(d,e)=>{g.debugLevel!==0&&(e?console.group(d):console.groupEnd())};var ne,k,Ee,Ae,T=class T{constructor(){E(this,k)}retryPromise(e,t=3,i=1e3){return new Promise((r,n)=>{let s=v=>c(this,null,function*(){try{let I=yield e();r(I)}catch(I){v===0?n(I):setTimeout(()=>{s(v-1)},i)}});s(t)})}static getInstance(){return l(T,ne)||h(T,ne,new T),l(T,ne)}setApiURL(e){T.API_URL=e}updateAPIKey(e){T.apiKey=e;let t=e,i=/m(\d+)rgn/,r=t.match(i);r&&(T.brandId=r[1])}getAPIKey(){return T.apiKey}getBrandId(){return T.brandId}get(e){return c(this,null,function*(){let t=a(this,k,Ae).call(this,T.apiKey);try{let i=yield fetch(a(this,k,Ee).call(this)+e,{headers:{Authorization:t,"Content-Type":"application/json"}});if(!i.ok)throw new Error(`${t} - ${JSON.stringify(yield i.json())}`);return i.json()}catch(i){return Promise.reject(i)}})}post(e,t,i){return c(this,null,function*(){let r=a(this,k,Ae).call(this,T.apiKey);try{return(yield fetch(a(this,k,Ee).call(this)+e,{body:JSON.stringify(t||{}),headers:{Authorization:r,"Content-Type":"application/json"},method:"POST",signal:i})).json()}catch(n){return Promise.reject(n)}})}put(e,t){return c(this,null,function*(){return(yield fetch(a(this,k,Ee).call(this)+e,{body:JSON.stringify(t||{}),headers:{Authorization:a(this,k,Ae).call(this,T.apiKey),"Content-Type":"application/json"},method:"PUT"})).json()})}syncRealWorldTime(){return c(this,null,function*(){try{let e=(yield(yield fetch(a(this,k,Ee).call(this)+_t)).json()).data;T.UTCDate=new Date(e),T.lastSyncTime=new Date}catch(e){o(2,"Failed to sync real-world time")}})}getCurrentUTCDate(){if(!T.UTCDate||!T.lastSyncTime)return o(2,"UTC Date or last sync time is not set"),new Date;let t=new Date().getTime()-T.lastSyncTime.getTime();return new Date(T.UTCDate.getTime()+t)}retryPost(e,t,i){return c(this,null,function*(){return this.retryPromise(()=>this.post(e,t,i))})}};ne=new WeakMap,k=new WeakSet,Ee=function(){return T.API_URL},Ae=function(e){return btoa(`${e}:${new Date().getTime()}`)},E(T,ne),T.API_URL=yt;var He=T,N=He.getInstance();var Rt=(I=>(I.UTM_SOURCE="utm_source",I.UTM_MEDIUM="utm_medium",I.UTM_CAMPAIGN="utm_campaign",I.UTM_TERM="utm_term",I.UTM_CONTENT="utm_content",I.GAD_SOURCE="gad_source",I.GCLID="gclid",I.FBCLID="fbclid",I))(Rt||{});var Lt=new Set(Object.values(Rt));var oe="Popup Action";var Je="Content Card Action";var se,M,ae,Y,Ie,ve,q,b,je,Dt,ze,_e,Ut,Ce,Re,Ye,xt,Le,Q,kt,f=class f{constructor(){E(this,b);this.permission=null;this.pushMessageToSW=e=>{o(1,"Pushing message to service worker"),navigator.serviceWorker.getRegistrations().then(t=>{o(1,"Service Worker registration"),t.forEach(i=>{var r;i!=null&&i.active&&i.active.scriptURL.includes(l(f,q)||"mergn-sw.js")&&(o(1,"Service Worker ready"),(r=i.active)==null||r.postMessage(JSON.stringify(e)))})}).catch(t=>{o(2,`Failed to push message to service worker: ${t.message}`)})};this.loadWebPushActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:()=>!0,actionMethod:e=>a(this,b,Re).call(this,Number(e.web_optin_instance_id)),localStorageKey:"web_push_action"})};E(this,Ce,()=>{u.storeActionInLocalStorageInternal("web_push_action")});E(this,Q,e=>{u.clearActionInLocalStorage({id:e,localStorageKey:"web_push_action"})})}static getInstance(){return l(f,se)||h(f,se,new f),l(f,se)}init(e,t,i){return c(this,null,function*(){var r;if(o(1,"Initializing Notification Service"),m.recordDebugEvents({eventName:"init",eventProperties:[{eventProperty:"service_worker",value:"serviceWorker"in navigator},{eventProperty:"push_manager",value:"PushManager"in window}]}),"serviceWorker"in navigator&&"PushManager"in window){o(1,"Service Worker and Push Manager are supported");try{m.recordDebugEvents({eventName:"init_condition"}),o(1,`isExtensionSW: ${i}`),h(f,q,i?`${window.origin}/apps/mergn/mergn-sw.js`:t||"/mergn-sw.js"),o(1,`swPath: ${l(f,q)}`),h(f,M,yield navigator.serviceWorker.register(l(f,q))),o(1,"Service Worker registered"),o(1,"Pushing message to service worker for initialization"),setTimeout(()=>{this.pushMessageToSW({customer:localStorage.getItem("customer")||"",events:m.getStoredEvents(),API_KEY:N.getAPIKey(),debugLevel:g.debugLevel,device_id:localStorage.getItem("uniqueIdentity")||"",operatingSystem:u.getOperatingSystem(),osVersion:u.getOSVersion(),Platform:u.getPlatform()})},1e3),h(f,Ie,!0);let n=a(this,b,Ye).call(this),s=Object.keys(n||{});if(s.length&&a(this,b,Re).call(this,Number(s[0])),!e)return;let v=yield(r=l(f,M))==null?void 0:r.pushManager.getSubscription();o(1,"Checking for existing subscription"),l(f,M)&&(o(1,"Service Worker registration is available"),l(f,M).update()),v?(o(1,"Existing subscription found"),m.recordDebugEvents({eventName:"existing_subscription"}),yield a(this,b,_e).call(this),h(f,ae,!0)):(o(1,"No existing subscription found"),yield a(this,b,je).call(this,l(f,ve)||void 0))}catch(n){let s=n&&n.message?n.message.substring(0,100):"undefined";yield m.recordDebugEvents({eventName:"Reachability Push Web",eventProperties:[{eventProperty:"message",value:`${s}`}]}),o(2,"Service Worker registration failed:"),o(2,s)}}})}showNotification(e){if(!l(f,Ie)){h(f,ve,e),m.recordDebugEvents({eventName:"notification_service_not_initialized"}),o(2,"Notification service is not initialized");return}O("showNotification",()=>c(this,null,function*(){var i;let t=JSON.parse(localStorage.getItem("web_push_action")||"{}");if(t){for(let r in t)if(((i=t[r])==null?void 0:i.type)===e.type){o(1,`Notification ${e.type} already in cache`);return}}a(this,b,Ut).call(this,e),l(this,Ce).call(this),a(this,b,Re).call(this,e.web_optin_instance_id)}))}};se=new WeakMap,M=new WeakMap,ae=new WeakMap,Y=new WeakMap,Ie=new WeakMap,ve=new WeakMap,q=new WeakMap,b=new WeakSet,je=function(e){return c(this,null,function*(){o(1,`Checking notification permission: ${JSON.stringify(e)} `),m.recordDebugEvents({eventName:"check_permission"});let t;try{if(t=Notification.permission,t)if(o(1,`Notification permission: ${t}`),t==="default")e||(this.permission="default",m.recordDebugEvents({eventName:"Turned Off Notification Reset Permission"})),e&&(m.recordDebugEvents({eventName:"notification_data",eventProperties:[{eventProperty:"type",value:`${e==null?void 0:e.type}`}]}),l(this,Q).call(this,e.web_optin_instance_id),e.type==="two_step"?a(this,b,Dt).call(this,e):yield a(this,b,ze).call(this,e));else if(t==="denied")m.recordDebugEvents({eventName:"Turned Off Notification"}),o(1,"The user has blocked notifications."),e&&e.web_optin_instance_id&&l(this,Q).call(this,e.web_optin_instance_id);else{if(e&&e.web_optin_instance_id){l(this,Q).call(this,e.web_optin_instance_id);return}m.recordDebugEvents({eventName:"already_registered"}),o(1,"The user has already enabled notifications."),l(f,ae)||(yield a(this,b,_e).call(this),yield m.recordEvent({eventName:"Already Registered To Web Push"}),e||h(f,ae,!0))}}catch(i){o(2,"Failed to check notification permission"),m.recordDebugEvents({eventName:"notification_permission_error"})}})},Dt=function(e){try{let t=document.createElement("div"),i;e.banner_design.banner_image&&(i=document.createElement("img"),i.src=e.banner_design.banner_image,i.alt="Image",i.id="centered-image");let r=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),v=document.createElement("img"),I=document.createElement("div"),S=document.createElement("div"),y=document.createElement("div"),R=document.createElement("div"),B=document.createElement("div"),j=document.createElement("div"),F=document.createElement("button"),L=document.createElement("button");t.className="mergn-overlay",r.className="mergnWebPushPopup",n.className=R.className=B.className="mergn-row",s.className="mergn-column-25",I.className="mergn-column-75",j.className="button-container",S.id="title",y.id="subtitle",F.id="button-1",L.id="button-2",v.src=e.banner_design.banner_icon,v.alt="Image",v.id="logo",S.textContent=e.banner_design.banner_title,y.textContent=e.banner_design.banner_text,F.textContent=e.banner_design.button_1.text,L.textContent=e.banner_design.button_2.text,s.appendChild(v),I.appendChild(S),I.appendChild(y),n.appendChild(s),n.appendChild(I),i&&(R.appendChild(i),i.style.cssText=`
6
- max-width: 100%;
7
- height: auto;
8
- display: block;
9
- margin-left: auto;
10
- margin-right: auto;
11
- border-radius: 10px;
12
- max-width: 350px;
13
- aspect-ratio: 2 / 1;
14
- `),j.appendChild(F),j.appendChild(L),B.appendChild(j),r.appendChild(n),r.appendChild(R),r.appendChild(B),t.appendChild(r),t.style.cssText=`
15
- position: fixed;
16
- top: 0;
17
- left: 0;
18
- width: 100%;
19
- height: 100%;
20
- background-color: rgba(0, 0, 0, 0.5);
21
- z-index: 99999999999;
22
- display: flex;
23
- justify-content: center;
24
- align-items: start;
25
- `,r.style.cssText=`
26
- background-color: ${e.banner_design.banner_color};
27
- padding: 15px;
28
- border-radius: 5px;
29
- max-width: 380px;
30
- max-height: 463px;
31
- `,n.style.cssText=R.style.cssText=B.style.cssText=`
32
- display: flex;
33
- flex-wrap: wrap;
34
- margin-bottom: 10px;
35
- `,s.style.cssText=`
36
- width: 25%;
37
- `,I.style.cssText=`
38
- width: 73%;
39
- margin-left: 2%;
40
- `,v.style.cssText=`
41
- max-width: 100%;
42
- height: auto;
43
- `,F.style.cssText=`
44
- padding: 12px 20px;
45
- border: none;
46
- background-color: ${e.banner_design.button_1.backgroundColor};
47
- color: ${e.banner_design.button_1.color};
48
- cursor: pointer;
49
- border-radius: 5px;
50
- width: 48%;
51
- `,L.style.cssText=`
52
- padding: 12px 20px;
53
- border: none;
54
- background-color: ${e.banner_design.button_2.backgroundColor};
55
- color: ${e.banner_design.button_2.color};
56
- cursor: pointer;
57
- border-radius: 5px;
58
- width: 48%;
59
- `,j.style.cssText=`
60
- display: flex;
61
- justify-content: space-between;
62
- align-items: center;
63
- flex-wrap: nowrap;
64
- width: 100%;
65
- `,S.style.cssText=`
66
- margin-bottom: 5px;
67
- font-size: 16px;
68
- color: ${e.banner_design.text_color}
69
- `,y.style.cssText=`
70
- margin-bottom: 5px;
71
- font-size: 13px;
72
- color: ${e.banner_design.text_color}
73
- `,document.body.appendChild(t),document.body.style.overflow="hidden",m.recordEvent({eventName:"Viewed Web Push Soft-ask",name:"viewed",web_optin_instance_id:e.web_optin_instance_id}),F==null||F.addEventListener("click",()=>c(this,null,function*(){t.remove(),h(f,Y,!1),document.body.style.overflow="auto",yield m.recordEvent({eventName:"Denied Web Push Soft-ask",web_optin_instance_id:e.web_optin_instance_id}),o(1,"User denied the notification permission.")})),L==null||L.addEventListener("click",()=>c(this,null,function*(){t.remove(),document.body.style.overflow="auto",m.recordEvent({eventName:"Accepted Web Push Soft-ask",web_optin_instance_id:e.web_optin_instance_id}),yield a(this,b,ze).call(this,e)}))}catch(t){}},ze=function(e){return c(this,null,function*(){try{m.recordEvent({eventName:"Displayed Web Push Subscription",name:"viewed",web_optin_instance_id:e.web_optin_instance_id});let t=yield Notification.requestPermission();t==="granted"?(o(1,"User granted the notification permission."),yield a(this,b,_e).call(this),yield m.recordEvent({eventName:"Allowed Web Push Subscription",name:"subscribed",web_optin_instance_id:e.web_optin_instance_id})):t==="denied"?(yield m.recordEvent({eventName:"Blocked Web Push Subscription"}),o(1,"User denied the notification permission.")):t==="default"&&(yield m.recordEvent({eventName:"Closed Web Push Subscription"}),o(1,"User closed the notification permission dialog."))}catch(t){o(2,"Failed to request notification permission"),o(2,t.message)}h(f,Y,!1)})},_e=function(){return c(this,null,function*(){var t,i;let e=yield N.get(`${At}`);if(o(1,`Getting Web Key: ${e.success}`),e.success){let r=yield(t=l(f,M))==null?void 0:t.pushManager.getSubscription();o(1,`Existing Subscription: ${!!r}`),r&&(yield r.unsubscribe());let n=yield(i=l(f,M))==null?void 0:i.pushManager.subscribe({applicationServerKey:e.data||"",userVisibleOnly:!0}),s=localStorage.getItem("customer")||"";o(1,`subscribeUserToPush Customer ID: ${s}`),(!s||s==="undefined")&&(yield u.setIdentity()),yield N.put(`${Ot}`,{customer_id:localStorage.getItem("customer"),device_id:localStorage.getItem("uniqueIdentity"),device_platform:u.getOperatingSystem(),is_web_push_subscribed:!0,os:u.getPlatform(),web_push_subscription_page_url:window.location.pathname,web_push_token:{token:JSON.parse(JSON.stringify(n))}}),this.pushMessageToSW({customer:localStorage.getItem("customer")||"",events:m.getStoredEvents(),API_KEY:N.getAPIKey(),debugLevel:g.debugLevel,device_id:localStorage.getItem("uniqueIdentity")||"",operatingSystem:u.getOperatingSystem(),osVersion:u.getOSVersion(),Platform:u.getPlatform()}),o(1,"User is subscribed")}else throw new Error("Failed to subscribe the user")})},Ut=function(e){u.storeActionInLocalStorage(e,"web_push_action","web_optin_instance_id")},Ce=new WeakMap,Re=function(e){if(l(f,Y))return;h(f,Y,!0);let t=a(this,b,Ye).call(this);if(t!=null&&t[e])switch(t[e].entry_time){case"DELAY":{a(this,b,xt).call(this,t[e]);break}case"IMMEDIATELY":{a(this,b,Le).call(this,t[e]);break}case"SCROLL":{a(this,b,kt).call(this,t[e]);break}default:return}},Ye=function(){let e=localStorage.getItem("web_push_action");return e?JSON.parse(e):null},xt=function(e){u.showDelayedAction({clearActionMethod:l(this,Q).bind(this),data:e,displayMethod:a(this,b,Le).bind(this),idKey:"web_optin_instance_id",timeValueKey:"entry_time_value"})},Le=function(e){a(this,b,je).call(this,e)},Q=new WeakMap,kt=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,b,Le).bind(this),timeValueKey:"entry_time_value"})},E(f,se),E(f,M,null),E(f,ae,!1),E(f,Y,!1),E(f,Ie,!1),E(f,ve,null),E(f,q,"");var Ke=f,U=Ke.getInstance();var Z,w,Ft,Qe,Wt,Mt,le,Ue,De,fe,Bt,$t,Vt,Gt,xe,$=class ${constructor(){E(this,w);E(this,le,e=>{u.clearActionInLocalStorage({id:e,localStorageKey:"action"})});E(this,Ue,(e,t)=>{let i=document.createElement("div");i.innerHTML=t,i.querySelectorAll("script").forEach(n=>{let s=document.createElement("script");n.src?s.src=n.src:s.textContent=n.textContent,e.appendChild(s)})});E(this,fe,({campaignCustomerInstanceId:e,campaignId:t,customForm:i,formDiv:r,popupContainer:n})=>{let s=(r==null?void 0:r.querySelector("form"))||i;s&&(s.querySelectorAll("input").forEach(v=>{v.style.setProperty("padding",v.style.padding,"important")}),s.addEventListener("submit",()=>c(this,null,function*(){n.remove();let v=new FormData(s),I={};o(1,"Form submitted values:");let S=[];for(let[y,R]of v.entries())I[y]=R,o(1,`${y}: ${R}`),S.push(G.recordAttribute(y,R.toString()));yield Promise.allSettled(S),setTimeout(()=>c(this,null,function*(){yield m.recordEvent({campaignCustomerInstanceId:e,campaignId:t,eventName:oe,eventProperties:[{eventProperty:"Form Submit",value:JSON.stringify({campaignId:t,formId:(r==null?void 0:r.id)||"custom_form",formValues:I})},{eventProperty:"Campaign Id",value:t.toString()}],name:"form"})}))})))});this.loadPopupEventActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:e=>e.message.name==="Popup",actionMethod:e=>a(this,w,Qe).call(this,e.campaignId),localStorageKey:"action"})};E(this,xe,()=>{u.storeActionInLocalStorageInternal("action")})}static getInstance(){var e;return l($,Z)||(h($,Z,new $),a(e=l($,Z),w,Ft).call(e)),l($,Z)}showPopup(e){let t=JSON.parse(localStorage.getItem("action")||"{}");if(t&&t[e==null?void 0:e.campaignId]){o(1,"Popup already in cache");return}a(this,w,Gt).call(this,e),l(this,xe).call(this),a(this,w,Qe).call(this,e.campaignId)}isPopupAction(e){return e==="Popup"}};Z=new WeakMap,w=new WeakSet,Ft=function(){return c(this,null,function*(){})},Qe=function(e){let t=a(this,w,Wt).call(this);if(document.getElementById(`popup_container_${e}`)){o(1,"Popup already displayed"),l(this,le).call(this,e);return}if(t!=null&&t[e])switch(t[e].campaignEntryTime){case"DELAY":{a(this,w,Mt).call(this,t[e]);break}case"IMMEDIATELY":{a(this,w,De).call(this,t[e]);break}case"SCROLL":{a(this,w,Vt).call(this,t[e]);break}default:return}},Wt=function(){let e=localStorage.getItem("action");return e?JSON.parse(e):null},Mt=function(e){u.showDelayedAction({clearActionMethod:l(this,le).bind(this),data:e,displayMethod:a(this,w,De).bind(this),idKey:"campaignId",timeValueKey:"campaignEntryTimeValue"})},le=new WeakMap,Ue=new WeakMap,De=function(e){if(document.getElementById(`popup_container_${e.campaignId}`))o(1,"Popup already displayed");else{let t=a(this,w,$t).call(this,"div",e);l(this,Ue).call(this,t,e.message.design),document.body.appendChild(t),m.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:oe,eventProperties:[{eventProperty:"Popup View",value:JSON.stringify({campaignId:e.campaignId})}],name:"view"})}l(this,le).call(this,e.campaignId)},fe=new WeakMap,Bt=function(e,t){let i=e.parentElement;for(;i;){if(i.id.startsWith(t))return i;i=i.parentElement}return null},$t=function(e,t){let{campaignCustomerInstanceId:i,campaignId:r,message:{design:n}}=t,s=document.createElement(e);s.id=`popup_container_${r}`,s.innerHTML=n,s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.zIndex="99999999";let v=s.querySelector(".u-popup-container");v&&(v.style.zIndex="50");let I=v.querySelector(".u-popup-overlay");I&&(o(1,"Popup overlay element found"),I.style.setProperty("display","block","important")),s.querySelectorAll("form").forEach(y=>{let R=a(this,w,Bt).call(this,y,"u_content_form_");R?l(this,fe).call(this,{campaignCustomerInstanceId:i,campaignId:r,formDiv:R,popupContainer:s}):l(this,fe).call(this,{campaignCustomerInstanceId:i,campaignId:r,customForm:y,popupContainer:s})});let S=s.querySelector(".u-close-button");return(S==null?void 0:S.getAttribute("href"))==="#"&&S.removeAttribute("href"),S==null||S.addEventListener("click",()=>c(this,null,function*(){s.remove(),yield m.recordEvent({campaignCustomerInstanceId:i,campaignId:r,eventName:oe,eventProperties:[{eventProperty:"Close Click",value:JSON.stringify({campaignId:r})}],name:"close"})})),s.querySelectorAll('[id^="u_content_button_"]').forEach(y=>{y.addEventListener("click",()=>c(this,null,function*(){s.remove(),yield m.recordEvent({campaignCustomerInstanceId:i,campaignId:r,eventName:oe,eventProperties:[{eventProperty:"Button Click",value:JSON.stringify({buttonId:y.id,campaignId:r})}],name:"click"})}))}),s.querySelectorAll(".u-popup-container img").forEach(y=>{y.addEventListener("click",()=>c(this,null,function*(){var R;((R=y.parentElement)==null?void 0:R.tagName)==="A"&&y.parentElement.getAttribute("href")&&s.remove(),yield m.recordEvent({campaignCustomerInstanceId:i,campaignId:r,eventName:oe,eventProperties:[{eventProperty:"Image Click",value:JSON.stringify({campaignId:r,imageClassName:y.className,imageId:y.id})}],name:"click"})}))}),s},Vt=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,w,De).bind(this),timeValueKey:"campaignEntryTimeValue"})},Gt=function(e){u.storeActionInLocalStorage(e,"action","campaignId")},xe=new WeakMap,E($,Z);var qe=$,V=qe.getInstance();var X,_,Ht,ke,Jt,Kt,jt,zt,Yt,H=class H{constructor(){E(this,_);this.queue=Promise.resolve()}static getInstance(){var e;return l(H,X)||(h(H,X,new H),a(e=l(H,X),_,Ht).call(e)),l(H,X)}pushToQueue(e){let t=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]");t.push(e),localStorage.setItem("preInitializedEvents",JSON.stringify(t))}recordEventsFromQueue(){return c(this,null,function*(){let e=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]");if(Array.isArray(e))for(let t of e)yield this.recordEventPreInitialized(t)})}recordEvent(e,t){return c(this,null,function*(){g.isInitialized&&!g.loading?yield a(this,_,ke).call(this,e,t):this.pushToQueue(e)})}recordEventPreInitialized(e){return c(this,null,function*(){try{yield a(this,_,ke).call(this,e)}finally{a(this,_,Yt).call(this,e.eventName)}})}recordDebugEvents(e){return c(this,null,function*(){g.debugLevel===4&&(!g.recordDebugEventsToggle||g.recordDebugEventsToggle[e.eventName])&&(yield a(this,_,ke).call(this,e))})}getStoredEvents(){let e=localStorage.getItem("events");return e?JSON.parse(e):{}}storeEventsAndPropertiesInLocalStorage(){return c(this,null,function*(){if(!localStorage.getItem("events")){let e=(yield this.fetchEventData()).data;if(e){localStorage.setItem("events",JSON.stringify(e));try{U.pushMessageToSW({events:e})}catch(t){}}}})}fetchEventData(){return c(this,null,function*(){try{return yield N.get(`${Ge}`)}catch(e){throw new Error("Error fetching event data")}})}postEventRecord(e,t){return c(this,null,function*(){let i=null,r=null,n=new AbortController;return this.queue=this.queue.then(()=>c(this,null,function*(){try{if(e.events.length===0)throw new Error("No events to record");let s=yield N.post(`/v2${Ge}${wt}`,e,n.signal);if(s.success)return r=s,s;if(s.message===`Customer with id ${localStorage.getItem("customer")} not exists`)throw localStorage.removeItem("customer"),new Error("Re initializing customer Id")}catch(s){throw o(2,"Error posting event record:"),o(2,`name: ${s.name}`),o(2,`message: ${s.message}`),(s.name==="AbortError"||s.name==="TypeError"&&s.message==="Failed to fetch"||s.message==="Load failed")&&(o(2,"Request aborted"),t&&a(this,_,zt).call(this,t)),i=new Error((s==null?void 0:s.message)||"Error posting event record"),s}return null})).catch(()=>{}),this.queue.then(()=>{if(i)throw i;return r})})}};X=new WeakMap,_=new WeakSet,Ht=function(){return c(this,null,function*(){})},ke=function(e,t){return c(this,null,function*(){yield O("# record event",()=>c(this,null,function*(){var Et,It,vt,ft;let{campaignCustomerInstanceId:i,campaignId:r,eventName:n,eventProperties:s,name:v,web_optin_instance_id:I}=e;o(1,"# Recording event"),D("Recording event",!0),C("Recording event Time",!0),o(1,"Event Payload"),o(1,{campaignCustomerInstanceId:i,eventName:n,eventProperties:s,name:v,web_optin_instance_id:I});let S=u.getPlatform();if(S==="Crawlers"||S==="Unknown")throw new Error("Invalid platform");n!=="Web Session Concluded"&&(yield u.checkTTL());let y=[];s&&y.push(...s),y.push({eventProperty:"Platform",value:S}),y.push({eventProperty:"operating-system",value:u.getOperatingSystem()}),y.push({eventProperty:"os-version",value:u.getOSVersion()});let R=this.getStoredEvents(),B=a(this,_,Kt).call(this,R,n,y);if(typeof B=="string"){o(2,B);return}u.updateSessionCreated();let{id:j}=R[n],F=a(this,_,jt).call(this,z(Oe(z(z(z({},i?{campaignCustomerInstanceId:i}:{}),r?{campaignId:r}:{}),I?{web_optin_instance_id:I}:{}),{eventId:j,eventProperties:B,sessionId:localStorage.getItem("session")||""}),v?{name:v}:{}));if(g.offline){let W=JSON.parse(localStorage.getItem("offlineEvents")||"[]");W.length<=50&&(W.push(...F.events),localStorage.setItem("offlineEvents",JSON.stringify(W)));return}let L=yield this.postEventRecord(F,e);(Et=L==null?void 0:L.data)!=null&&Et.optIn?(yield this.recordDebugEvents({eventName:"optin_data"}),U.showNotification(L.data.optIn)):n==="Viewed Webpage"&&(yield this.recordDebugEvents({eventName:"no_optin",eventProperties:[{eventProperty:"message",value:`${"Notification"in window&&typeof((It=window==null?void 0:window.Notification)==null?void 0:It.permission)!="undefined"}`}]})),(ft=(vt=L==null?void 0:L.data)==null?void 0:vt.campaigns)==null||ft.forEach(W=>{if(V.isPopupAction(W.message.name)){if(a(this,_,Jt).call(this,W.campaignId)){o(1,`Popup event is in queue for campaignId: ${W.campaignId}`);return}V.showPopup(W)}else de.isContentCardAction(W.message.name)&&de.showContentCard(W)}),C("Recording event Time",!1),D("Recording event",!1)}),i=>{N.getBrandId()==="67"&&i.message!=="Failed to fetch"&&i.message!=="Load failed"&&i.message.includes("Failed to fetch")},t)})},Jt=function(e){return o(1,`Checking if popup event is in queue for campaignId: ${e}`),JSON.parse(localStorage.getItem("preInitializedEvents")||"[]").find(i=>i.campaignId===e)},Kt=function(e,t,i){if(!Object.prototype.hasOwnProperty.call(e,t))return`Event ${t} is not valid.`;if(!i)return[];let r=e[t];if(!(r!=null&&r.eventProperty))return o(2,`Event ${t} does not have a valid eventProperty.`),`Event ${t} does not have a valid eventProperty.`;let n=i.filter(({eventProperty:s})=>!Object.prototype.hasOwnProperty.call(r.eventProperty,s)).map(({eventProperty:s})=>s);return n.length>0&&(o(2,`Filtering Event ${t} invalid eventProperties: ${n.join(", ")}.`),i=i.filter(({eventProperty:s})=>!n.includes(s))),i.map(({eventProperty:s,value:v})=>({eventPropertyId:r.eventProperty[s].id,value:v}))},jt=function(e){return{customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",events:[e]}},zt=function(e){o(1,"Adding to pre-initialized event:"),o(1,e);let t=localStorage.getItem("preInitializedEvents");t&&t!=="undefined"?(t=JSON.parse(t),t.push(e)):t=[e],localStorage.setItem("preInitializedEvents",JSON.stringify(t))},Yt=function(e){let t=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]"),i=t.findIndex(r=>r.eventName===e);i>=0&&t.splice(i,1),localStorage.setItem("preInitializedEvents",JSON.stringify(t))},E(H,X);var Ze=H,m=Ze.getInstance();var ee,A,qt,et,Qt,Zt,ue,Fe,Xt,ei,ti,We,J=class J{constructor(){E(this,A);E(this,ue,e=>{u.clearActionInLocalStorage({id:e,localStorageKey:"action"})});this.loadContentCardEventActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:e=>e.message.name==="ContentCard",actionMethod:e=>a(this,A,et).call(this,e.campaignId),localStorageKey:"action"})};E(this,We,()=>{u.storeActionInLocalStorageInternal("action")})}static getInstance(){var e;return l(J,ee)||(h(J,ee,new J),a(e=l(J,ee),A,qt).call(e)),l(J,ee)}showContentCard(e){let t=JSON.parse(localStorage.getItem("action")||"{}");if(t&&t[e==null?void 0:e.campaignId]){o(1,"ContentCard already in cache");return}a(this,A,ti).call(this,e),l(this,We).call(this),a(this,A,et).call(this,e.campaignId)}isContentCardAction(e){return e==="content_card"}};ee=new WeakMap,A=new WeakSet,qt=function(){return c(this,null,function*(){})},et=function(e){let t=a(this,A,Qt).call(this);if(document.getElementById(`contentCard_container_${e}`)){o(1,"ContentCard already displayed"),l(this,ue).call(this,e);return}if(t!=null&&t[e])switch(t[e].campaignEntryTime){case"DELAY":{a(this,A,Zt).call(this,t[e]);break}case"IMMEDIATELY":{a(this,A,Fe).call(this,t[e]);break}case"SCROLL":{a(this,A,ei).call(this,t[e]);break}default:return}},Qt=function(){let e=localStorage.getItem("action");return e?JSON.parse(e):null},Zt=function(e){u.showDelayedAction({clearActionMethod:l(this,ue).bind(this),data:e,displayMethod:a(this,A,Fe).bind(this),idKey:"campaignId",timeValueKey:"campaignEntryTimeValue"})},ue=new WeakMap,Fe=function(e){var t;if(document.getElementById(`contentCard_container_${e.campaignId}`))o(1,"ContentCard already displayed");else{let i=a(this,A,Xt).call(this,"div",e),r=document.querySelector(`#${e.message.divId}`);r&&(r.innerHTML=i.outerHTML,m.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:Je,eventProperties:[{eventProperty:"Content Card View",value:JSON.stringify({campaignId:e.campaignId})}],name:"view"}),(t=document.getElementById(`contentCard_container_${e.campaignId}`))==null||t.addEventListener("click",()=>{m.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:Je,eventProperties:[{eventProperty:"Content Card Click",value:JSON.stringify({campaignId:e.campaignId})}],name:"click"})}))}l(this,ue).call(this,e.campaignId)},Xt=function(e,t){var s;let{campaignId:i,message:{design:r}}=t,n=document.createElement(e);return n.id=`contentCard_container_${i}`,n.innerHTML=r,(s=n.querySelector(".u-close-button"))==null||s.remove(),n},ei=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,A,Fe).bind(this),timeValueKey:"campaignEntryTimeValue"})},ti=function(e){u.storeActionInLocalStorage(e,"action","campaignId")},We=new WeakMap,E(J,ee);var Xe=J,de=Xe.getInstance();var ge,be,Se,ye,Te,we,Pe,Me,p,ii,ri,ni,he,it,rt,nt,ot,oi,si,st,at,ai,ci,li,ct,di,lt,ui,gi,te=class te{constructor(){E(this,p);E(this,be);E(this,Se);E(this,ye);E(this,Te,null);E(this,we,null);E(this,Pe,!1);E(this,Me,()=>{setInterval(()=>{O("listen to shopify data",()=>c(this,null,function*(){let e=localStorage.getItem("mergn_shopify");if(e!==l(this,we)){o(1,"Shopify data changed"),h(this,we,e);let t=JSON.parse(e||"{}");if(t!=null&&t.pushMessageToSW){o(1,"Pushing message to SW from Shopify data");let i=t.pushMessageToSW;delete t.pushMessageToSW,localStorage.setItem("mergn_shopify",JSON.stringify(t)),U.pushMessageToSW(i)}if(t!=null&&t.optIn){let i=t.optIn;delete t.optIn,localStorage.setItem("mergn_shopify",JSON.stringify(t)),U.showNotification(i)}if(t!=null&&t.campaigns){let i=t.campaigns;delete t.campaigns,localStorage.setItem("mergn_shopify",JSON.stringify(t)),i.forEach(r=>{V.isPopupAction(r.message.name)?V.showPopup(r):de.isContentCardAction(r.message.name)&&de.showContentCard(r)})}}}))},1e3)});this.storeActionInLocalStorageInternal=e=>{let t=()=>{let i=JSON.parse(localStorage.getItem(e)||"{}");Object.keys(i).forEach(r=>{i[r].initialTime=new Date().getTime()}),localStorage.setItem(e,JSON.stringify(i))};t(),window.addEventListener("beforeunload",t)};this.clearActionInLocalStorage=({id:e,localStorageKey:t})=>{let i=JSON.parse(localStorage.getItem(t)||"{}");i[e]&&delete i[e],localStorage.setItem(t,JSON.stringify(i))};this.loadActionInLocalStorage=({actionCondition:e,actionMethod:t,localStorageKey:i})=>{let r=JSON.parse(localStorage.getItem(i)||"{}");Object.keys(r).forEach(n=>{e(r[n])&&t(r[n])})}}static getInstance(){return l(te,ge)||h(te,ge,new te),l(te,ge)}init(e,t){return c(this,null,function*(){o(1,"Initializing base service");let i=a(this,p,he).call(this);if(t!=null&&t.shopify&&h(this,Pe,!0),a(this,p,ii).call(this,e),N.getBrandId()==="35"){g.disableSDK=!0;return}let r=this.getPlatform();if(r==="Crawlers"||r==="Unknown"){o(2,"Not initializing base service for crawlers or unknown platforms");return}if(yield N.syncRealWorldTime(),o(1,"Verifying API Key"),yield a(this,p,ct).call(this,3),t!=null&&t.shopify&&l(this,Me).call(this),t!=null&&t.identity)try{g.loading=!0,yield this.setIdentity(t.identity)}finally{g.loading=!1}yield this.checkTTL(),yield m.recordEventsFromQueue(),yield G.recordAttributeFromQueue(),m.recordDebugEvents({eventName:"base_init"}),o(1,"Initializing notification service from Base Service"),yield O("notification service",()=>c(this,null,function*(){yield U.init(i,t==null?void 0:t.swPath,t==null?void 0:t.isExtensionSW)})),yield a(this,p,gi).call(this,t==null?void 0:t.shopify);let n=history.pushState;history.pushState=(...s)=>{n.apply(history,s),a(this,p,ui).call(this,t==null?void 0:t.shopify)},o(1,"tracking page change register")})}setPlatform(e){h(this,be,e)}setOSVersion(e){h(this,Se,e)}setOperatingSystem(e){h(this,ye,e)}setPreviousUrl(e){h(this,Te,e)}getPreviousUrl(){return l(this,Te)}getPlatform(){return l(this,be)}getOSVersion(){return l(this,Se)}getOperatingSystem(){return l(this,ye)}updateSessionCreated(){}showAfterScrollAction({data:e,displayMethod:t,timeValueKey:i}){let r=()=>{var S;let n=window.innerHeight,s=document.documentElement.scrollHeight;window.scrollY/(s-n)*100>(((S=e[i])==null?void 0:S.value)||0)&&(window.removeEventListener("scroll",r),t(e))};window.addEventListener("scroll",r)}showDelayedAction({clearActionMethod:e,data:t,displayMethod:i,idKey:r,timeValueKey:n}){var I,S,y;let s=(I=t[n])==null?void 0:I.value;((S=t[n])==null?void 0:S.duration)==="min"&&(s=s*60);let v=t.initialTime-500+(s||0)*1e3-new Date().getTime();o(1,`Initial time: ${t.initialTime}`),o(1,`Time value: ${(y=t[n])==null?void 0:y.value}`),o(1,`Current time: ${new Date().getTime()}`),o(1,`Time difference: ${v}`),v>0?setTimeout(()=>{e(t[r]),i(t)},v):(e(t[r]),i(t))}storeActionInLocalStorage(e,t,i){var s;let r=JSON.parse(localStorage.getItem(t)||"{}"),n=(s=i in e&&e[i])!=null?s:"";n&&(r[n]=Oe(z({},e),{initialTime:new Date().getTime()}),localStorage.setItem(t,JSON.stringify(r)))}checkTTL(){return c(this,null,function*(){yield O("# check TTL",()=>c(this,null,function*(){if(l(this,Pe))return;o(1,"Checking TTL"),D("Checking TTL",!0),C("Checking TTL Time",!0);let e=localStorage.getItem("ttl"),t=!1;if(t=a(this,p,he).call(this,e),t){let i=localStorage.getItem("session"),r=localStorage.getItem("ttl");if(i&&r){let n=parseInt(r,10);yield m.recordEvent({eventName:"Web Session Concluded",eventProperties:[{eventProperty:"SESSION_ID",value:localStorage.getItem("session")},{eventProperty:"SESSION_CREATED",value:Number.isInteger(n)?new Date(n).toISOString():new Date().toISOString()}]})}localStorage.removeItem("ttl"),localStorage.removeItem("session"),localStorage.setItem("ttl",`${new Date().getTime()}`),yield a(this,p,at).call(this),this.clearLocalStorage()}(!e||t||a(this,p,si).call(this))&&(a(this,p,ot).call(this)&&a(this,p,st).call(this),a(this,p,nt).call(this)&&(yield this.setIdentity()),(a(this,p,he).call(this)||a(this,p,it).call(this))&&(yield a(this,p,ci).call(this)),yield a(this,p,at).call(this),(a(this,p,he).call(this)||a(this,p,rt).call(this))&&(yield a(this,p,li).call(this))),C("Checking TTL Time",!1),D("Checking TTL",!1)}))})}clearLocalStorage(){localStorage.removeItem("action"),localStorage.removeItem("events"),localStorage.removeItem("attributes"),localStorage.removeItem("offlineEvents")}checkIfIdentityExists(e){return!1}storeIdentity(e){let t=this.encodeData(e);this.setCookie("mergn_identity",t,365)}removeIdentity(){document.cookie="mergn_identity=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}encodeData(e){let i=new TextEncoder().encode(e),r="";for(let n=0;n<i.length;n++)r+=String.fromCharCode(i[n]);return btoa(r)}decodeData(e){let t=atob(e),i=new Uint8Array(t.length);for(let n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return new TextDecoder().decode(i)}getCookie(e){var r;let i=`; ${document.cookie}`.split(`; ${e}=`);return i.length===2&&((r=i.pop())==null?void 0:r.split(";").shift())||null}setCookie(e,t,i){let r=new Date;r.setTime(r.getTime()+i*24*60*60*1e3);let n=`expires=${r.toUTCString()}`;document.cookie=`${e}=${t}; ${n}; path=/; secure; SameSite=Strict`}setIdentity(e){return c(this,null,function*(){o(1,"identity received: "),o(1,e);let t=this.checkIfIdentityExists(e);if(o(1,`local identity: ${t}`),typeof t=="boolean"&&t)return;let i=localStorage.getItem("uniqueIdentity");(!i||i==="undefined")&&(i=a(this,p,st).call(this));let r={deviceId:i,os:this.getPlatform()};if(e)r.identity=e;else if(typeof t=="string")r.identity=t;else if(!e&&localStorage.getItem("customer"))return;try{o(1,"Setting identity to:"),o(1,r),this.storeIdentity(r.identity),r.currentCustomer=localStorage.getItem("customer")||"";let n=yield a(this,p,ai).call(this,r);if(n!==void 0){localStorage.setItem("customer",n);try{U.pushMessageToSW({customer:n})}catch(s){}}}catch(n){throw this.removeIdentity(),new Error("Error setting identity")}})}getVersion(){return Ne}};ge=new WeakMap,be=new WeakMap,Se=new WeakMap,ye=new WeakMap,Te=new WeakMap,we=new WeakMap,Pe=new WeakMap,Me=new WeakMap,p=new WeakSet,ii=function(e){N.updateAPIKey(e),this.setPlatform(a(this,p,ri).call(this)),this.setOSVersion(a(this,p,ni).call(this)),this.setOperatingSystem(navigator.userAgent)},ri=function(){var t;let e=navigator.userAgent.toLowerCase();return/googlebot|bingbot|yandexbot|duckduckbot|slurp|twitterbot|linkedinbot|facebot|pinterest|vkshare|applebot|baiduspider|adsbot-google|msnbot|yahoobot|sogou|facebookexternalhit/i.test(e)?"Crawlers":/wv|wkwebview|instagram|facebook|fbav|fban|twitter|snapchat|pinterest|linkedin|tiktok/i.test(e)?"Mobile":/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e)?("Notification"in window&&typeof((t=window==null?void 0:window.Notification)==null?void 0:t.permission)!="undefined","Mobile"):/windows|macintosh|linux|x11/i.test(e)?"Web":"Unknown"},ni=function(){let e=navigator.userAgent,t;return e.indexOf("Instagram")>-1?t="Instagram":e.indexOf("Facebook")>-1||e.indexOf("FBAV")>-1||e.indexOf("FBAN")>-1?t="Facebook":e.indexOf("Twitter")>-1?t="Twitter":e.indexOf("Snapchat")>-1?t="Snapchat":e.indexOf("LinkedIn")>-1?t="LinkedIn":e.indexOf("TikTok")>-1?t="TikTok":e.indexOf("Chrome")>-1&&e.indexOf("Edg")===-1?t="Google Chrome":e.indexOf("Safari")>-1&&e.indexOf("Chrome")===-1?t="Safari":e.indexOf("Firefox")>-1?t="Mozilla Firefox":e.indexOf("Edg")>-1?t="Microsoft Edge":e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1?t="Internet Explorer":e.indexOf("Opera")>-1||e.indexOf("OPR")>-1?t="Opera":e.indexOf("Vivaldi")>-1?t="Vivaldi":e.indexOf("Brave")>-1?t="Brave":e.indexOf("SamsungBrowser")>-1?t="Samsung Internet":e.indexOf("UCBrowser")>-1?t="UC Browser":e.indexOf("QQBrowser")>-1?t="QQ Browser":e.indexOf("Baidu")>-1?t="Baidu Browser":e.indexOf("Sogou")>-1?t="Sogou Browser":t="Unknown",t},he=function(e){let t;return e||(t=localStorage.getItem("ttl")),e||t?new Date().getTime()-parseInt(e||t||"",10)>12e5:!0},it=function(){return!localStorage.getItem("events")},rt=function(){return!localStorage.getItem("attributes")},nt=function(){return!localStorage.getItem("customer")},ot=function(){return!localStorage.getItem("uniqueIdentity")},oi=function(){return!localStorage.getItem("session")},si=function(){return a(this,p,it).call(this)||a(this,p,rt).call(this)||a(this,p,nt).call(this)||a(this,p,ot).call(this)||a(this,p,oi).call(this)},st=function(){let e=localStorage.getItem("uniqueIdentity");return e||(e=crypto.randomUUID(),localStorage.setItem("uniqueIdentity",e)),e},at=function(){return c(this,null,function*(){yield O("store session",()=>c(this,null,function*(){let e=localStorage.getItem("session");if(!e){e=crypto.randomUUID(),localStorage.setItem("session",e);let t=localStorage.getItem("ttl"),i=t?parseInt(t,10):"";yield m.recordEvent({eventName:"Web Session Started",eventProperties:[{eventProperty:"SESSION_ID",value:localStorage.getItem("session")},{eventProperty:"SESSION_CREATED",value:i?new Date(i).toISOString():new Date().toISOString()}]})}}),e=>{N.getBrandId()==="67"&&e.message!=="Failed to fetch"&&e.message})})},ai=function(e){return c(this,null,function*(){try{return(yield N.retryPost(`${Pt}${Nt}`,e)).data}catch(t){throw new Error("Error posting identity data")}})},ci=function(){return c(this,null,function*(){yield m.storeEventsAndPropertiesInLocalStorage()})},li=function(){return c(this,null,function*(){yield G.storeAttributeInLocalStorage()})},ct=function(e){return c(this,null,function*(){yield O("verify API key",()=>c(this,null,function*(){var t;try{let i=parseInt(localStorage.getItem("verifyTTL")||"0",10)||0;if(!i||i&&new Date().getTime()>i){let r=yield N.get("/brand");if(!(r!=null&&r.success))throw new Error(JSON.stringify(r));localStorage.setItem("verifyTTL",(new Date().getTime()+3e5).toString())}g.disableSDK=!1,g.isInitialized=!0}catch(i){if(N.getBrandId()==="67"&&!((t=i==null?void 0:i.message)!=null&&t.startsWith("get"))&&(i==null?void 0:i.message)!=="Error verifying API key"&&i.message!=="Failed to fetch"&&i.message,e&&e>=1){yield new Promise(r=>setTimeout(r,1500)),yield a(this,p,ct).call(this,e-1);return}throw g.disableSDK=!0,new Error("Error verifying API key")}}))})},di=function(e){return c(this,null,function*(){let t=new TextEncoder().encode(e),i=yield crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(i)).map(s=>s.toString(16).padStart(2,"0")).join("")})},lt=function(e){return c(this,null,function*(){var r;o(1,"Performing viewed web page event");let t=(r=window==null?void 0:window.location)==null?void 0:r.href;if(this.setPreviousUrl(t),e){setTimeout(()=>{O("fbq",()=>c(this,null,function*(){if(N.getBrandId()==="441"){let n=localStorage.getItem("customer");window.fbq&&n&&(o(1,"Assigning external_id to Mergn PageView Event"),window.fbq("init","2793393330816842",{external_id:yield a(this,p,di).call(this,n)}),window.fbq("trackCustom","Mergn PageView"),o(1,"Assigned external_id to Mergn PageView Event"))}}))},2e3),t.includes("thank_you")&&(yield m.recordEvent({eventName:"Thank you page"}));return}m.recordDebugEvents({eventName:"pre_vwp"});let i=[];new URLSearchParams(new URL(window.location.href).search).forEach((n,s)=>c(this,null,function*(){Lt.has(s)&&i.push({eventProperty:s,value:n})})),yield m.recordEvent({eventName:"Viewed Webpage",eventProperties:[{eventProperty:"URL",value:window.location.pathname},...i]})})},ui=function(e){return c(this,null,function*(){var i;o(1,"Tracking page change");let t=(i=window==null?void 0:window.location)==null?void 0:i.href;(this.getPreviousUrl()===null||this.getPreviousUrl()===void 0||t!==this.getPreviousUrl())&&(yield a(this,p,lt).call(this,e))})},gi=function(e){return c(this,null,function*(){var i,r;let t=(i=window==null?void 0:window.location)==null?void 0:i.href;m.recordDebugEvents({eventName:"show_notification_error",eventProperties:[{eventProperty:"message",value:`${t!==this.getPreviousUrl()}:${t}:${this.getPreviousUrl()}`}]});try{yield a(this,p,lt).call(this,e)}catch(n){let s=n&&n.message?(r=n==null?void 0:n.message)==null?void 0:r.substring(0,100):"undefined";yield m.recordDebugEvents({eventName:"vwp_error",eventProperties:[{eventProperty:"message",value:`${s}`}]})}})},E(te,ge);var tt=te,u=tt.getInstance();var ie,pe,P,pi,mi,Ei,Be,ut,gt,Ii,vi,K=class K{constructor(){E(this,P);E(this,pe,!1)}static getInstance(){var e;return l(K,ie)||(h(K,ie,new K),a(e=l(K,ie),P,pi).call(e)),l(K,ie)}recordAttributeFromQueue(){return c(this,null,function*(){yield O("# recordAttributeFromQueue",()=>c(this,null,function*(){let e=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");if(Array.isArray(e))for(let t of e){if(o(1,"Recording pre-initialized attributes"),o(1,t),yield this.checkIfAttributeExists(t.attributeName,t.attributeValue)){o(1,`Pre Initialized Attribute ${t.attributeName} already exists with value ${t.attributeValue}`),a(this,P,Be).call(this,t.attributeName,t.attributeValue);return}yield a(this,P,ut).call(this,{attributeName:t.attributeName,attributeValue:t.attributeValue})}}))})}recordAttribute(e,t,i){return c(this,null,function*(){if(yield this.checkIfAttributeExists(e,t)){o(1,`Attribute ${e} already exists with value ${t}`),a(this,P,Be).call(this,e,t);return}a(this,P,Ei).call(this,e),a(this,P,mi).call(this,e,t),g.isInitialized&&!g.loading&&(yield a(this,P,ut).call(this,{attributeName:e,attributeProperties:i,attributeValue:t}))})}storeAttributeInLocalStorage(){return c(this,null,function*(){if(!localStorage.getItem("attributes")&&!l(this,pe)){h(this,pe,!0);try{let e=(yield this.fetchAttributeData()).data;e&&localStorage.setItem("attributes",JSON.stringify(e))}catch(e){throw new Error("Error storing attribute data in local storage")}finally{h(this,pe,!1)}}})}fetchAttributeData(){return c(this,null,function*(){try{return yield N.get(`${Ve}`)}catch(e){throw new Error("Error fetching attribute data")}})}storeAttribute(e,t){return c(this,null,function*(){let i=u.getCookie("mergn_customer_attributes"),r;if(!i)r={};else{let s=u.decodeData(i);r=JSON.parse(s)}r[e]=t;let n=u.encodeData(JSON.stringify(r));u.setCookie("mergn_customer_attributes",n,365)})}removeAttribute(e){return c(this,null,function*(){let t=u.getCookie("mergn_customer_attributes"),i;if(!t)i={};else{let n=u.decodeData(t);i=JSON.parse(n)}delete i[e];let r=u.encodeData(JSON.stringify(i));u.setCookie("mergn_customer_attributes",r,365)})}checkIfAttributeExists(e,t){return c(this,null,function*(){let i=u.getCookie("mergn_customer_attributes");if(!i)return!1;let r=u.decodeData(i),n=JSON.parse(r);return Object.prototype.hasOwnProperty.call(n,e)?t!==void 0?n[e]===t:!0:!1})}};ie=new WeakMap,pe=new WeakMap,P=new WeakSet,pi=function(){return c(this,null,function*(){})},mi=function(e,t){let i=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");i.push({attributeName:e,attributeValue:t}),localStorage.setItem("preInitializedAttributes",JSON.stringify(i))},Ei=function(e){return c(this,null,function*(){let t=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");for(let i of t)i.attributeName===e&&(t.splice(t.indexOf(i),1),localStorage.setItem("preInitializedAttributes",JSON.stringify(t)))})},Be=function(e,t){return c(this,null,function*(){let i=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");for(let r of i)JSON.stringify(r)===JSON.stringify({attributeName:e,attributeValue:t})&&(i.splice(i.indexOf(r),1),localStorage.setItem("preInitializedAttributes",JSON.stringify(i)))})},ut=function(r){return c(this,arguments,function*({attributeName:e,attributeProperties:t,attributeValue:i}){yield O("# recordAttribute",()=>c(this,null,function*(){if(o(1,"Recording attribute"),D("Recording attribute",!0),C("Recording attribute Time",!0),o(1,"Attribute Payload:"),o(1,`Attribute Name: ${e} | Attribute Value: ${i}`),!i||i===""){o(2,"Attribute value is required");return}yield u.checkTTL(),yield a(this,P,Ii).call(this);let n=JSON.parse(localStorage.getItem("attributes")||"{}"),s=t?a(this,P,gt).call(this,n,e,t):a(this,P,gt).call(this,n,e);if(typeof s=="string"){o(2,s);return}n[e].should_set_identity&&(yield u.setIdentity(typeof i=="string"?i:JSON.stringify(i))),u.updateSessionCreated();let{id:v}=n[e],I={attributeId:v,attributeProperties:s,customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",sdkVersion:u.getVersion(),should_set_identity:n[e].should_set_identity,value:i};yield a(this,P,vi).call(this,I,e,i),a(this,P,Be).call(this,e,i),C("Recording attribute Time",!1),D("Recording attribute",!1)}))})},gt=function(e,t,i){if(!Object.prototype.hasOwnProperty.call(e,t))return`Attribute ${t} is not valid.`;if(!i)return[];let r=e[t];if(!(r!=null&&r.attributeProperty))return`Attribute ${t} does not have a valid attributeProperty.`;let n=i.filter(({attributeProperty:s})=>!Object.prototype.hasOwnProperty.call(r.attributeProperty,s)).map(({attributeProperty:s})=>s);return n.length>0?`Attribute ${t} has invalid attributeProperties: ${n.join(", ")}.`:i.map(({attributeProperty:s,value:v})=>({attributePropertyId:r.attributeProperty[s].id,value:v}))},Ii=function(){return c(this,null,function*(){localStorage.getItem("attributes")||(yield this.storeAttributeInLocalStorage())})},vi=function(e,t,i){return c(this,null,function*(){try{return yield this.storeAttribute(t,i),yield N.post(`${Ve}${Tt}`,e)}catch(r){throw yield this.removeAttribute(t),new Error("Error posting attribute record")}})},E(K,ie);var dt=K,G=dt.getInstance();var me,re=class re{constructor(){}static getInstance(){return l(re,me)||h(re,me,new re),l(re,me)}init(e,t){setTimeout(()=>{O("init",()=>c(this,null,function*(){yield O("log level check",()=>c(this,null,function*(){o(1,"Log level check");let i=localStorage.getItem("mergn_debug_level");i&&(g.debugLevel=parseInt(i,10))})),o(1,"Initializing Mergn SDK"),yield u.init(e,t),!g.disableSDK&&(m.recordDebugEvents({eventName:"mergn_init"}),o(1,"Mergn SDK Initialized"),window.addEventListener("online",()=>c(this,null,function*(){g.offline=!1;let i=JSON.parse(localStorage.getItem("offlineEvents")||"[]");Array.isArray(i)&&(yield m.postEventRecord({customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",events:i}),localStorage.removeItem("offlineEvents")),u.checkTTL(),u.updateSessionCreated()})),window.addEventListener("offline",()=>{g.offline=!0}),window.addEventListener("load",()=>{V.loadPopupEventActionInLocalStorage(),U.loadWebPushActionInLocalStorage()}))}))})}setDebugLevel(e,t){if(g.disableSDK||document.location.href==="https://www.broadwaypizza.com.pk/")return;let i=localStorage.getItem("mergn_debug_level");if(i){g.debugLevel=parseInt(i,10);try{U.pushMessageToSW({debugLevel:e})}catch(r){}return}if(!(e in x)){console.error(`Debug level must be according to:
74
- NONE: 0, INFO: 1, ERROR: 2, ALL: 3`);return}g.recordDebugEventsToggle=t||{},g.debugLevel=e;try{U.pushMessageToSW({debugLevel:e})}catch(r){}}recordAttribute(e,t){return c(this,null,function*(){return o(1,"attributeName"),o(1,e),o(1,"attributeValue"),o(1,t),new Promise((i,r)=>{setTimeout(()=>c(this,null,function*(){try{yield O("recordAttribute",()=>c(this,null,function*(){let n="";return Array.isArray(t)?n=JSON.stringify(t):typeof t=="number"?n=`${t}`:n=t,o(1,"Recording attribute"),o(1,`Attribute Name: ${e}, Attribute Value: ${n}`),new Promise((s,v)=>{setTimeout(()=>c(this,null,function*(){try{yield G.recordAttribute(e,n),s()}catch(I){v(I)}}))})})),i()}catch(n){r(n)}}))})})}login(e){return c(this,null,function*(){return new Promise((t,i)=>{setTimeout(()=>c(this,null,function*(){try{yield O("login",()=>c(this,null,function*(){o(1,"Logging in"),o(1,`Identity: ${e}`),g.loading=!0,yield u.setIdentity(e)})),t()}catch(r){i(r)}finally{g.loading=!1,yield m.recordEventsFromQueue(),yield G.recordAttributeFromQueue()}}))})})}logout(){setTimeout(()=>{O("logout",()=>c(this,null,function*(){o(1,"Logging out"),u.clearLocalStorage()}))})}recordEvent(e,t){return c(this,null,function*(){return new Promise((i,r)=>{setTimeout(()=>c(this,null,function*(){try{yield O("record event",()=>c(this,null,function*(){if(o(1,"Recording event"),o(1,`Event Payload:
75
- ${{eventName:e,eventProperties:t}}`),!e||typeof e!="string"){o(2,"Event name is required and must be a string");return}return new Promise((n,s)=>{setTimeout(()=>c(this,null,function*(){try{yield m.recordEvent({eventName:e,eventProperties:t}),n()}catch(v){s(v)}}))})})),i()}catch(n){r(n)}}))})})}getVersion(){return Ne}};me=new WeakMap,E(re,me);var pt=re,mt=pt.getInstance();typeof window!="undefined"&&(window.mergn=mt);var Qn=mt;})();
1
+ 'use strict';(function(_0x388e28,_0x297020){const _0x1c7798=_0x3ff4,_0x375614=_0x388e28();while(!![]){try{const _0x4e8793=-parseInt(_0x1c7798(0x23f))/0x1+parseInt(_0x1c7798(0x2f1))/0x2+parseInt(_0x1c7798(0x26f))/0x3+-parseInt(_0x1c7798(0x2e5))/0x4+parseInt(_0x1c7798(0x288))/0x5+parseInt(_0x1c7798(0x319))/0x6+parseInt(_0x1c7798(0x252))/0x7;if(_0x4e8793===_0x297020)break;else _0x375614['push'](_0x375614['shift']());}catch(_0x2b0dfb){_0x375614['push'](_0x375614['shift']());}}}(_0x5e05,0xea402));function _0x3ff4(_0x315fb5,_0x311986){const _0x5e0520=_0x5e05();return _0x3ff4=function(_0x3ff422,_0x83163d){_0x3ff422=_0x3ff422-0x148;let _0x5ec7b5=_0x5e0520[_0x3ff422];return _0x5ec7b5;},_0x3ff4(_0x315fb5,_0x311986);}((()=>{const _0x276ad6=_0x3ff4;var _0x45d371=Object[_0x276ad6(0x220)],_0x44015b=Object[_0x276ad6(0x315)],_0x25013a=Object[_0x276ad6(0x2a9)],_0x51d113=Object[_0x276ad6(0x34d)],_0x3c8d75=Object['prototype'][_0x276ad6(0x1ca)],_0x44b6c4=Object['prototype'][_0x276ad6(0x30b)],_0x491de8=_0x1567fa=>{throw TypeError(_0x1567fa);},_0x105dfc=(_0x1ed4bf,_0x2dc43e,_0x5b1e53)=>_0x2dc43e in _0x1ed4bf?_0x45d371(_0x1ed4bf,_0x2dc43e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b1e53}):_0x1ed4bf[_0x2dc43e]=_0x5b1e53,_0xb235aa=(_0x1e0831,_0x166af7)=>{const _0x168e3f=_0x276ad6;for(var _0x29252f in _0x166af7||(_0x166af7={}))_0x3c8d75[_0x168e3f(0x1cc)](_0x166af7,_0x29252f)&&_0x105dfc(_0x1e0831,_0x29252f,_0x166af7[_0x29252f]);if(_0x51d113){for(var _0x29252f of _0x51d113(_0x166af7))_0x44b6c4[_0x168e3f(0x1cc)](_0x166af7,_0x29252f)&&_0x105dfc(_0x1e0831,_0x29252f,_0x166af7[_0x29252f]);}return _0x1e0831;},_0x11a8ae=(_0x43f18c,_0x4195c8)=>_0x44015b(_0x43f18c,_0x25013a(_0x4195c8)),_0x214928=(_0xd6dab0,_0x3efd0d,_0x1d843d)=>_0x3efd0d[_0x276ad6(0x18a)](_0xd6dab0)||_0x491de8(_0x276ad6(0x2a2)+_0x1d843d),_0x57a522=(_0x43a93b,_0x30013d,_0x1f777c)=>(_0x214928(_0x43a93b,_0x30013d,_0x276ad6(0x18d)),_0x1f777c?_0x1f777c['call'](_0x43a93b):_0x30013d['get'](_0x43a93b)),_0x22ebb9=(_0x3f3565,_0x12d3b6,_0xd09b4e)=>_0x12d3b6[_0x276ad6(0x18a)](_0x3f3565)?_0x491de8(_0x276ad6(0x16f)):_0x12d3b6 instanceof WeakSet?_0x12d3b6['add'](_0x3f3565):_0x12d3b6[_0x276ad6(0x1e9)](_0x3f3565,_0xd09b4e),_0x5af28d=(_0x21513e,_0xb0bd38,_0x3dfcd7,_0x2dba34)=>(_0x214928(_0x21513e,_0xb0bd38,_0x276ad6(0x1c5)),_0x2dba34?_0x2dba34['call'](_0x21513e,_0x3dfcd7):_0xb0bd38['set'](_0x21513e,_0x3dfcd7),_0x3dfcd7),_0x452988=(_0x2f8086,_0x686801,_0x75c76d)=>(_0x214928(_0x2f8086,_0x686801,_0x276ad6(0x1e2)),_0x75c76d),_0x116750=(_0x34053a,_0x4414ee,_0x219d98)=>new Promise((_0x2e88bf,_0x2db9a6)=>{const _0x3b02c5=_0x276ad6;var _0x2f464d=_0x5e44e2=>{const _0x1bc97a=_0x3ff4;try{_0x4d41e5(_0x219d98[_0x1bc97a(0x328)](_0x5e44e2));}catch(_0x5552a1){_0x2db9a6(_0x5552a1);}},_0x49d027=_0x382e89=>{const _0x433411=_0x3ff4;try{_0x4d41e5(_0x219d98[_0x433411(0x14b)](_0x382e89));}catch(_0x45f5a9){_0x2db9a6(_0x45f5a9);}},_0x4d41e5=_0x2de746=>_0x2de746[_0x3b02c5(0x26c)]?_0x2e88bf(_0x2de746[_0x3b02c5(0x167)]):Promise[_0x3b02c5(0x231)](_0x2de746[_0x3b02c5(0x167)])[_0x3b02c5(0x14d)](_0x2f464d,_0x49d027);_0x4d41e5((_0x219d98=_0x219d98['apply'](_0x34053a,_0x4414ee))['next']());}),_0x352c5b=_0x276ad6(0x248),_0x2f24c3=_0x276ad6(0x1fc),_0x4f8d4a=_0x276ad6(0x312),_0x438c29=_0x276ad6(0x1f6),_0x4e1c38='/event',_0x455572='/record-event',_0x44f677='/customer',_0xcccd07=_0x276ad6(0x253),_0x5402f3=_0x276ad6(0x2d7),_0x54c172=_0x276ad6(0x1d5),_0xc765d9=_0x276ad6(0x208),_0x31ac51=class extends Error{constructor(_0x575cc1){const _0xaaff6b=_0x276ad6;super(_0x575cc1),this[_0xaaff6b(0x31c)]=_0xaaff6b(0x207);}};_0x31ac51[_0x276ad6(0x1c6)]=!0x1,_0x31ac51[_0x276ad6(0x2e4)]=!navigator[_0x276ad6(0x361)],_0x31ac51[_0x276ad6(0x1fe)]=0x0,_0x31ac51[_0x276ad6(0x1bb)]=!0x1,_0x31ac51[_0x276ad6(0x1ff)]=!0x1;var _0x1f6a09=(_0x276b88,_0x2234f2)=>{const _0x20251c=_0x276ad6;_0x2234f2 instanceof _0x31ac51?_0x2e10a3(0x2,_0x20251c(0x364)+_0x276b88+_0x20251c(0x2b7)+_0x2234f2[_0x20251c(0x1eb)]):_0x2234f2 instanceof Error?_0x2e10a3(0x2,_0x20251c(0x364)+_0x276b88+'\x0aUnexpected\x20error:\x20'+_0x2234f2[_0x20251c(0x1eb)]):_0x2e10a3(0x2,_0x20251c(0x364)+_0x276b88+_0x20251c(0x159)+String(_0x2234f2));},_0x5483b1=(_0x2a6a7a,_0x1ab3aa,_0x17a2fd,_0xade028=!0x1)=>_0x116750(void 0x0,null,function*(){const _0x477e98=_0x276ad6;try{_0x5a901b(_0x2a6a7a,!0x0),_0xa7aee2(_0x2a6a7a+_0x477e98(0x28d),!0x0);try{if(_0x2a6a7a!==_0x477e98(0x2d1)){if(_0x2a6a7a!==_0x477e98(0x2d1)&&_0x31ac51[_0x477e98(0x1c6)])throw new _0x31ac51(_0x477e98(0x1f7));if(_0x2a6a7a!==_0x477e98(0x2bb)&&_0x31ac51[_0x477e98(0x2e4)])throw new _0x31ac51('Mergn\x20is\x20offline!');if(_0x2a6a7a!==_0x477e98(0x296)&&_0x2a6a7a!=='verify\x20API\x20key'&&_0x2a6a7a!==_0x477e98(0x2bb)&&_0x2a6a7a!==_0x477e98(0x226)&&_0x2a6a7a!==_0x477e98(0x283)&&!_0x31ac51[_0x477e98(0x1bb)])throw new _0x31ac51(_0x477e98(0x2ca));if(_0x2a6a7a!==_0x477e98(0x229)&&_0x2a6a7a!==_0x477e98(0x2bb)&&_0x2a6a7a!==_0x477e98(0x226)&&_0x31ac51[_0x477e98(0x1ff)])throw new _0x31ac51('Mergn\x20is\x20loading!');}return yield _0x1ab3aa();}catch(_0x15e837){return _0x17a2fd?_0x17a2fd(_0x15e837):(_0x31ac51['debugLevel']===0x2||_0x31ac51[_0x477e98(0x1fe)]===0x3)&&_0x1f6a09(_0x2a6a7a,_0x15e837),null;}finally{_0xa7aee2(_0x2a6a7a+_0x477e98(0x28d),!0x1),_0x5a901b(_0x2a6a7a,!0x1);}}catch(_0xf1668c){return null;}}),_0x2a995f=(_0x25578a=>(_0x25578a[_0x25578a[_0x276ad6(0x27f)]=0x0]=_0x276ad6(0x27f),_0x25578a[_0x25578a[_0x276ad6(0x2ae)]=0x1]=_0x276ad6(0x2ae),_0x25578a[_0x25578a['ERROR']=0x2]=_0x276ad6(0x34e),_0x25578a[_0x25578a[_0x276ad6(0x21c)]=0x3]=_0x276ad6(0x21c),_0x25578a[_0x25578a[_0x276ad6(0x1f4)]=0x4]=_0x276ad6(0x1f4),_0x25578a))(_0x2a995f||{}),_0x2e10a3=(_0x30fe2d,_0x3fd381)=>{const _0x80e6ec=_0x276ad6;_0x31ac51[_0x80e6ec(0x1fe)]!==0x0&&(_0x31ac51['debugLevel']>=0x3?_0x30fe2d===0x1?console[_0x80e6ec(0x29e)](_0x80e6ec(0x2eb)+new Date()[_0x80e6ec(0x34c)](),_0x3fd381):_0x30fe2d===0x2&&console['error'](_0x80e6ec(0x1d1)+new Date()[_0x80e6ec(0x34c)](),_0x3fd381):_0x31ac51['debugLevel']===0x1&&_0x30fe2d===0x1?console[_0x80e6ec(0x29e)]('INFO:\x20'+new Date()[_0x80e6ec(0x34c)](),_0x3fd381):_0x31ac51[_0x80e6ec(0x1fe)]===0x2&&_0x30fe2d===0x2&&console[_0x80e6ec(0x161)](_0x80e6ec(0x1d1)+new Date()[_0x80e6ec(0x34c)](),_0x3fd381));},_0xa7aee2=(_0x22dba5,_0x1a331a)=>{const _0x4c5290=_0x276ad6;_0x31ac51[_0x4c5290(0x1fe)]!==0x0&&(_0x1a331a?console[_0x4c5290(0x244)](_0x22dba5):console[_0x4c5290(0x2e0)](_0x22dba5));},_0x5a901b=(_0x296f57,_0x4bbf9a)=>{const _0x852cde=_0x276ad6;_0x31ac51[_0x852cde(0x1fe)]!==0x0&&(_0x4bbf9a?console[_0x852cde(0x194)](_0x296f57):console[_0x852cde(0x15b)]());},_0x1281fe,_0x4315b5,_0x4769f9,_0x4b8490,_0x32b064=class _0x3b8e08{constructor(){_0x22ebb9(this,_0x4315b5);}[_0x276ad6(0x35b)](_0x2adc91,_0x20a002=0x3,_0x5dce45=0x3e8){return new Promise((_0x3a370e,_0x4b3fa8)=>{let _0x271136=_0x558d0b=>_0x116750(this,null,function*(){try{let _0x445ae3=yield _0x2adc91();_0x3a370e(_0x445ae3);}catch(_0x16c915){_0x558d0b===0x0?_0x4b3fa8(_0x16c915):setTimeout(()=>{_0x271136(_0x558d0b-0x1);},_0x5dce45);}});_0x271136(_0x20a002);});}static[_0x276ad6(0x2e6)](){return _0x57a522(_0x3b8e08,_0x1281fe)||_0x5af28d(_0x3b8e08,_0x1281fe,new _0x3b8e08()),_0x57a522(_0x3b8e08,_0x1281fe);}[_0x276ad6(0x325)](_0x50aaaf){const _0x39cbdd=_0x276ad6;_0x3b8e08[_0x39cbdd(0x15a)]=_0x50aaaf;}[_0x276ad6(0x2dd)](_0x54398d){const _0x4fb5d4=_0x276ad6;_0x3b8e08[_0x4fb5d4(0x24b)]=_0x54398d;let _0x150334=_0x54398d,_0x90ca17=/m(\d+)rgn/,_0x3c59f4=_0x150334[_0x4fb5d4(0x1d0)](_0x90ca17);_0x3c59f4&&(_0x3b8e08['brandId']=_0x3c59f4[0x1]);}[_0x276ad6(0x24d)](){const _0x37304e=_0x276ad6;return _0x3b8e08[_0x37304e(0x24b)];}[_0x276ad6(0x30f)](){const _0x27d838=_0x276ad6;return _0x3b8e08[_0x27d838(0x16e)];}[_0x276ad6(0x2d9)](_0x487bc9){return _0x116750(this,null,function*(){const _0x2090f1=_0x3ff4;let _0x1fbea2=_0x452988(this,_0x4315b5,_0x4b8490)[_0x2090f1(0x1cc)](this,_0x3b8e08[_0x2090f1(0x24b)]);try{let _0x1d7709=yield fetch(_0x452988(this,_0x4315b5,_0x4769f9)['call'](this)+_0x487bc9,{'headers':{'Authorization':_0x1fbea2,'Content-Type':_0x2090f1(0x1b0)}});if(!_0x1d7709['ok'])throw new Error(_0x1fbea2+_0x2090f1(0x326)+JSON[_0x2090f1(0x2cc)](yield _0x1d7709[_0x2090f1(0x311)]()));return _0x1d7709[_0x2090f1(0x311)]();}catch(_0x2795ed){return Promise['reject'](_0x2795ed);}});}[_0x276ad6(0x1f2)](_0x331c17,_0x3ff7f0,_0x4e089a){return _0x116750(this,null,function*(){const _0x1d1449=_0x3ff4;let _0x10700d=_0x452988(this,_0x4315b5,_0x4b8490)[_0x1d1449(0x1cc)](this,_0x3b8e08[_0x1d1449(0x24b)]);try{return(yield fetch(_0x452988(this,_0x4315b5,_0x4769f9)['call'](this)+_0x331c17,{'body':JSON[_0x1d1449(0x2cc)](_0x3ff7f0||{}),'headers':{'Authorization':_0x10700d,'Content-Type':_0x1d1449(0x1b0)},'method':_0x1d1449(0x324),'signal':_0x4e089a}))[_0x1d1449(0x311)]();}catch(_0x54fa3f){return Promise[_0x1d1449(0x25d)](_0x54fa3f);}});}[_0x276ad6(0x174)](_0x410e15,_0x145c8a){return _0x116750(this,null,function*(){const _0x12a52f=_0x3ff4;return(yield fetch(_0x452988(this,_0x4315b5,_0x4769f9)[_0x12a52f(0x1cc)](this)+_0x410e15,{'body':JSON[_0x12a52f(0x2cc)](_0x145c8a||{}),'headers':{'Authorization':_0x452988(this,_0x4315b5,_0x4b8490)[_0x12a52f(0x1cc)](this,_0x3b8e08[_0x12a52f(0x24b)]),'Content-Type':_0x12a52f(0x1b0)},'method':'PUT'}))[_0x12a52f(0x311)]();});}[_0x276ad6(0x28b)](){return _0x116750(this,null,function*(){const _0x5f48fc=_0x3ff4;try{let _0x477983=(yield(yield fetch(_0x452988(this,_0x4315b5,_0x4769f9)[_0x5f48fc(0x1cc)](this)+_0xc765d9))[_0x5f48fc(0x311)]())['data'];_0x3b8e08[_0x5f48fc(0x358)]=new Date(_0x477983),_0x3b8e08[_0x5f48fc(0x22f)]=new Date();}catch(_0x3a6625){_0x2e10a3(0x2,_0x5f48fc(0x35f));}});}[_0x276ad6(0x1df)](){const _0x5152a4=_0x276ad6;if(!_0x3b8e08[_0x5152a4(0x358)]||!_0x3b8e08[_0x5152a4(0x22f)])return _0x2e10a3(0x2,_0x5152a4(0x158)),new Date();let _0x201b9b=new Date()[_0x5152a4(0x278)]()-_0x3b8e08[_0x5152a4(0x22f)][_0x5152a4(0x278)]();return new Date(_0x3b8e08[_0x5152a4(0x358)][_0x5152a4(0x278)]()+_0x201b9b);}[_0x276ad6(0x238)](_0x35da70,_0x5f1c3b,_0x14ec1b){return _0x116750(this,null,function*(){const _0x5f2bfb=_0x3ff4;return this[_0x5f2bfb(0x35b)](()=>this[_0x5f2bfb(0x1f2)](_0x35da70,_0x5f1c3b,_0x14ec1b));});}};_0x1281fe=new WeakMap(),_0x4315b5=new WeakSet(),_0x4769f9=function(){const _0x2c5ff9=_0x276ad6;return _0x32b064[_0x2c5ff9(0x15a)];},_0x4b8490=function(_0x3635c2){return btoa(_0x3635c2+':'+new Date()['getTime']());},_0x22ebb9(_0x32b064,_0x1281fe),_0x32b064['API_URL']=_0x2f24c3;var _0x49baae=_0x32b064,_0x416800=_0x49baae['getInstance'](),_0x2fad64=(_0x1d7140=>(_0x1d7140[_0x276ad6(0x22d)]='utm_source',_0x1d7140[_0x276ad6(0x1ec)]=_0x276ad6(0x239),_0x1d7140[_0x276ad6(0x265)]=_0x276ad6(0x2ba),_0x1d7140[_0x276ad6(0x275)]=_0x276ad6(0x20a),_0x1d7140[_0x276ad6(0x227)]=_0x276ad6(0x2ef),_0x1d7140[_0x276ad6(0x1ed)]='gad_source',_0x1d7140['GCLID']=_0x276ad6(0x163),_0x1d7140[_0x276ad6(0x258)]=_0x276ad6(0x2b0),_0x1d7140))(_0x2fad64||{}),_0x258525=new Set(Object['values'](_0x2fad64)),_0x33131f=_0x276ad6(0x31d),_0x21f02f=_0x276ad6(0x199),_0x308eb4,_0x36aff1,_0x1289fc,_0x2489cb,_0x468bd1,_0x57df61,_0x17a53b,_0x40e3f0,_0x4e7d1f,_0x73e536,_0x3d7a3a,_0x2a2b99,_0x59b41b,_0x5ee66b,_0x28cd40,_0x3627c9,_0xbc1d8a,_0x403051,_0x1efa96,_0x3042c4,_0x4dabd5=class _0x5ece5b{constructor(){const _0x381643=_0x276ad6;_0x22ebb9(this,_0x40e3f0),this[_0x381643(0x1ce)]=null,this[_0x381643(0x14a)]=_0x1fe6b7=>{const _0x1fc6de=_0x381643;_0x2e10a3(0x1,'Pushing\x20message\x20to\x20service\x20worker'),navigator['serviceWorker']['getRegistrations']()[_0x1fc6de(0x14d)](_0x1246ec=>{const _0x487e81=_0x1fc6de;_0x2e10a3(0x1,'Service\x20Worker\x20registration'),_0x1246ec[_0x487e81(0x1dd)](_0x53de76=>{const _0x1d123f=_0x487e81;var _0x16a51e;_0x53de76!=null&&_0x53de76['active']&&_0x53de76[_0x1d123f(0x1c3)][_0x1d123f(0x240)][_0x1d123f(0x310)](_0x57a522(_0x5ece5b,_0x17a53b)||_0x1d123f(0x183))&&(_0x2e10a3(0x1,_0x1d123f(0x2ff)),(_0x16a51e=_0x53de76[_0x1d123f(0x1c3)])==null||_0x16a51e[_0x1d123f(0x15d)](JSON[_0x1d123f(0x2cc)](_0x1fe6b7)));});})['catch'](_0x2d95fc=>{const _0x5e44f0=_0x1fc6de;_0x2e10a3(0x2,'Failed\x20to\x20push\x20message\x20to\x20service\x20worker:\x20'+_0x2d95fc[_0x5e44f0(0x1eb)]);});},this[_0x381643(0x2b2)]=()=>{const _0x321893=_0x381643;_0x42bd6d[_0x321893(0x345)]({'actionCondition':()=>!0x0,'actionMethod':_0x34b06d=>_0x452988(this,_0x40e3f0,_0x28cd40)[_0x321893(0x1cc)](this,Number(_0x34b06d[_0x321893(0x2c3)])),'localStorageKey':_0x321893(0x216)});},_0x22ebb9(this,_0x5ee66b,()=>{const _0x3dfb1f=_0x381643;_0x42bd6d[_0x3dfb1f(0x2a4)](_0x3dfb1f(0x216));}),_0x22ebb9(this,_0x1efa96,_0x5c7ca9=>{const _0x59b26e=_0x381643;_0x42bd6d[_0x59b26e(0x341)]({'id':_0x5c7ca9,'localStorageKey':_0x59b26e(0x216)});});}static['getInstance'](){return _0x57a522(_0x5ece5b,_0x308eb4)||_0x5af28d(_0x5ece5b,_0x308eb4,new _0x5ece5b()),_0x57a522(_0x5ece5b,_0x308eb4);}[_0x276ad6(0x296)](_0x2e4a39,_0x10ca73,_0x1da08a){return _0x116750(this,null,function*(){const _0x4221a9=_0x3ff4;var _0x319f47;if(_0x2e10a3(0x1,_0x4221a9(0x2ee)),_0x107b20[_0x4221a9(0x17e)]({'eventName':'init','eventProperties':[{'eventProperty':_0x4221a9(0x1ac),'value':_0x4221a9(0x232)in navigator},{'eventProperty':_0x4221a9(0x29c),'value':'PushManager'in window}]}),_0x4221a9(0x232)in navigator&&_0x4221a9(0x1bc)in window){_0x2e10a3(0x1,_0x4221a9(0x205));try{_0x107b20[_0x4221a9(0x17e)]({'eventName':'init_condition'}),_0x2e10a3(0x1,_0x4221a9(0x2b9)+_0x1da08a),_0x5af28d(_0x5ece5b,_0x17a53b,_0x1da08a?window['origin']+_0x4221a9(0x14c):_0x10ca73||'/mergn-sw.js'),_0x2e10a3(0x1,'swPath:\x20'+_0x57a522(_0x5ece5b,_0x17a53b)),_0x5af28d(_0x5ece5b,_0x36aff1,yield navigator[_0x4221a9(0x232)][_0x4221a9(0x32c)](_0x57a522(_0x5ece5b,_0x17a53b))),_0x2e10a3(0x1,'Service\x20Worker\x20registered'),_0x2e10a3(0x1,_0x4221a9(0x217)),setTimeout(()=>{const _0x2451f8=_0x4221a9;this[_0x2451f8(0x14a)]({'customer':localStorage['getItem']('customer')||'','events':_0x107b20[_0x2451f8(0x192)](),'API_KEY':_0x416800[_0x2451f8(0x24d)](),'debugLevel':_0x31ac51[_0x2451f8(0x1fe)],'device_id':localStorage[_0x2451f8(0x333)]('uniqueIdentity')||'','operatingSystem':_0x42bd6d['getOperatingSystem'](),'osVersion':_0x42bd6d['getOSVersion'](),'Platform':_0x42bd6d[_0x2451f8(0x2f3)]()});},0x3e8),_0x5af28d(_0x5ece5b,_0x468bd1,!0x0);let _0x2dcf73=_0x452988(this,_0x40e3f0,_0x3627c9)[_0x4221a9(0x1cc)](this),_0x33e708=Object[_0x4221a9(0x306)](_0x2dcf73||{});if(_0x33e708[_0x4221a9(0x322)]&&_0x452988(this,_0x40e3f0,_0x28cd40)[_0x4221a9(0x1cc)](this,Number(_0x33e708[0x0])),!_0x2e4a39)return;let _0x300673=yield(_0x319f47=_0x57a522(_0x5ece5b,_0x36aff1))==null?void 0x0:_0x319f47[_0x4221a9(0x2b6)][_0x4221a9(0x2af)]();_0x2e10a3(0x1,_0x4221a9(0x236)),_0x57a522(_0x5ece5b,_0x36aff1)&&(_0x2e10a3(0x1,_0x4221a9(0x2d2)),_0x57a522(_0x5ece5b,_0x36aff1)[_0x4221a9(0x1ba)]()),_0x300673?(_0x2e10a3(0x1,_0x4221a9(0x303)),_0x107b20[_0x4221a9(0x17e)]({'eventName':_0x4221a9(0x284)}),yield _0x452988(this,_0x40e3f0,_0x2a2b99)[_0x4221a9(0x1cc)](this),_0x5af28d(_0x5ece5b,_0x1289fc,!0x0)):(_0x2e10a3(0x1,_0x4221a9(0x26b)),yield _0x452988(this,_0x40e3f0,_0x4e7d1f)[_0x4221a9(0x1cc)](this,_0x57a522(_0x5ece5b,_0x57df61)||void 0x0));}catch(_0x122179){let _0x4142d5=_0x122179&&_0x122179['message']?_0x122179[_0x4221a9(0x1eb)][_0x4221a9(0x20d)](0x0,0x64):_0x4221a9(0x148);yield _0x107b20[_0x4221a9(0x17e)]({'eventName':_0x4221a9(0x2c5),'eventProperties':[{'eventProperty':_0x4221a9(0x1eb),'value':''+_0x4142d5}]}),_0x2e10a3(0x2,_0x4221a9(0x2a7)),_0x2e10a3(0x2,_0x4142d5);}}});}['showNotification'](_0x3265e2){const _0x2d5d3b=_0x276ad6;if(!_0x57a522(_0x5ece5b,_0x468bd1)){_0x5af28d(_0x5ece5b,_0x57df61,_0x3265e2),_0x107b20[_0x2d5d3b(0x17e)]({'eventName':_0x2d5d3b(0x32a)}),_0x2e10a3(0x2,_0x2d5d3b(0x1c1));return;}_0x5483b1(_0x2d5d3b(0x2cd),()=>_0x116750(this,null,function*(){const _0x29148d=_0x2d5d3b;var _0x575a22;let _0x11b283=JSON[_0x29148d(0x2d8)](localStorage[_0x29148d(0x333)](_0x29148d(0x216))||'{}');if(_0x11b283){for(let _0x1b5eb0 in _0x11b283)if(((_0x575a22=_0x11b283[_0x1b5eb0])==null?void 0x0:_0x575a22['type'])===_0x3265e2[_0x29148d(0x234)]){_0x2e10a3(0x1,_0x29148d(0x184)+_0x3265e2[_0x29148d(0x234)]+_0x29148d(0x2d3));return;}}_0x452988(this,_0x40e3f0,_0x59b41b)[_0x29148d(0x1cc)](this,_0x3265e2),_0x57a522(this,_0x5ee66b)[_0x29148d(0x1cc)](this),_0x452988(this,_0x40e3f0,_0x28cd40)[_0x29148d(0x1cc)](this,_0x3265e2[_0x29148d(0x2c3)]);}));}};_0x308eb4=new WeakMap(),_0x36aff1=new WeakMap(),_0x1289fc=new WeakMap(),_0x2489cb=new WeakMap(),_0x468bd1=new WeakMap(),_0x57df61=new WeakMap(),_0x17a53b=new WeakMap(),_0x40e3f0=new WeakSet(),_0x4e7d1f=function(_0x4640cc){return _0x116750(this,null,function*(){const _0x2defe7=_0x3ff4;_0x2e10a3(0x1,'Checking\x20notification\x20permission:\x20'+JSON[_0x2defe7(0x2cc)](_0x4640cc)+'\x20'),_0x107b20[_0x2defe7(0x17e)]({'eventName':_0x2defe7(0x27a)});let _0x2cdfe6;try{if(_0x2cdfe6=Notification[_0x2defe7(0x1ce)],_0x2cdfe6){if(_0x2e10a3(0x1,_0x2defe7(0x33d)+_0x2cdfe6),_0x2cdfe6===_0x2defe7(0x359))_0x4640cc||(this[_0x2defe7(0x1ce)]='default',_0x107b20['recordDebugEvents']({'eventName':_0x2defe7(0x256)})),_0x4640cc&&(_0x107b20[_0x2defe7(0x17e)]({'eventName':_0x2defe7(0x31f),'eventProperties':[{'eventProperty':_0x2defe7(0x234),'value':''+(_0x4640cc==null?void 0x0:_0x4640cc['type'])}]}),_0x57a522(this,_0x1efa96)['call'](this,_0x4640cc[_0x2defe7(0x2c3)]),_0x4640cc[_0x2defe7(0x234)]==='two_step'?_0x452988(this,_0x40e3f0,_0x73e536)[_0x2defe7(0x1cc)](this,_0x4640cc):yield _0x452988(this,_0x40e3f0,_0x3d7a3a)[_0x2defe7(0x1cc)](this,_0x4640cc));else{if(_0x2cdfe6===_0x2defe7(0x27d))_0x107b20[_0x2defe7(0x17e)]({'eventName':_0x2defe7(0x157)}),_0x2e10a3(0x1,'The\x20user\x20has\x20blocked\x20notifications.'),_0x4640cc&&_0x4640cc['web_optin_instance_id']&&_0x57a522(this,_0x1efa96)[_0x2defe7(0x1cc)](this,_0x4640cc['web_optin_instance_id']);else{if(_0x4640cc&&_0x4640cc[_0x2defe7(0x2c3)]){_0x57a522(this,_0x1efa96)['call'](this,_0x4640cc['web_optin_instance_id']);return;}_0x107b20[_0x2defe7(0x17e)]({'eventName':_0x2defe7(0x19c)}),_0x2e10a3(0x1,_0x2defe7(0x336)),_0x57a522(_0x4dabd5,_0x1289fc)||(yield _0x452988(this,_0x40e3f0,_0x2a2b99)[_0x2defe7(0x1cc)](this),yield _0x107b20['recordEvent']({'eventName':_0x2defe7(0x2f6)}),_0x4640cc||_0x5af28d(_0x4dabd5,_0x1289fc,!0x0));}}}}catch(_0x31cffc){_0x2e10a3(0x2,_0x2defe7(0x1b8)),_0x107b20[_0x2defe7(0x17e)]({'eventName':_0x2defe7(0x33f)});}});},_0x73e536=function(_0x298b4d){const _0x2821d5=_0x276ad6;try{let _0x358c55=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x56e3be;_0x298b4d['banner_design'][_0x2821d5(0x1bd)]&&(_0x56e3be=document[_0x2821d5(0x316)](_0x2821d5(0x20e)),_0x56e3be[_0x2821d5(0x30d)]=_0x298b4d['banner_design'][_0x2821d5(0x1bd)],_0x56e3be[_0x2821d5(0x321)]=_0x2821d5(0x16d),_0x56e3be['id']=_0x2821d5(0x317));let _0x1c107e=document[_0x2821d5(0x316)]('div'),_0x3c2863=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x1c44f9=document[_0x2821d5(0x316)]('div'),_0x25cf7b=document[_0x2821d5(0x316)](_0x2821d5(0x20e)),_0x4f5df9=document['createElement'](_0x2821d5(0x263)),_0x2b2557=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x41db7e=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x360dd3=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x728aa7=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x2eb0cd=document[_0x2821d5(0x316)](_0x2821d5(0x263)),_0x9988e8=document[_0x2821d5(0x316)](_0x2821d5(0x182)),_0xf6ecb0=document[_0x2821d5(0x316)]('button');_0x358c55[_0x2821d5(0x35d)]='mergn-overlay',_0x1c107e[_0x2821d5(0x35d)]='mergnWebPushPopup',_0x3c2863[_0x2821d5(0x35d)]=_0x360dd3[_0x2821d5(0x35d)]=_0x728aa7['className']=_0x2821d5(0x254),_0x1c44f9[_0x2821d5(0x35d)]=_0x2821d5(0x219),_0x4f5df9[_0x2821d5(0x35d)]=_0x2821d5(0x2e3),_0x2eb0cd[_0x2821d5(0x35d)]=_0x2821d5(0x20b),_0x2b2557['id']=_0x2821d5(0x30c),_0x41db7e['id']=_0x2821d5(0x241),_0x9988e8['id']=_0x2821d5(0x151),_0xf6ecb0['id']=_0x2821d5(0x2fa),_0x25cf7b[_0x2821d5(0x30d)]=_0x298b4d[_0x2821d5(0x2f0)]['banner_icon'],_0x25cf7b[_0x2821d5(0x321)]=_0x2821d5(0x16d),_0x25cf7b['id']=_0x2821d5(0x22c),_0x2b2557[_0x2821d5(0x22b)]=_0x298b4d[_0x2821d5(0x2f0)]['banner_title'],_0x41db7e['textContent']=_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x17c)],_0x9988e8[_0x2821d5(0x22b)]=_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x21a)][_0x2821d5(0x176)],_0xf6ecb0[_0x2821d5(0x22b)]=_0x298b4d[_0x2821d5(0x2f0)]['button_2'][_0x2821d5(0x176)],_0x1c44f9[_0x2821d5(0x197)](_0x25cf7b),_0x4f5df9['appendChild'](_0x2b2557),_0x4f5df9[_0x2821d5(0x197)](_0x41db7e),_0x3c2863['appendChild'](_0x1c44f9),_0x3c2863[_0x2821d5(0x197)](_0x4f5df9),_0x56e3be&&(_0x360dd3[_0x2821d5(0x197)](_0x56e3be),_0x56e3be[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x2821d5(0x277)),_0x2eb0cd[_0x2821d5(0x197)](_0x9988e8),_0x2eb0cd['appendChild'](_0xf6ecb0),_0x728aa7['appendChild'](_0x2eb0cd),_0x1c107e['appendChild'](_0x3c2863),_0x1c107e[_0x2821d5(0x197)](_0x360dd3),_0x1c107e[_0x2821d5(0x197)](_0x728aa7),_0x358c55['appendChild'](_0x1c107e),_0x358c55['style'][_0x2821d5(0x168)]=_0x2821d5(0x31a),_0x1c107e['style'][_0x2821d5(0x168)]=_0x2821d5(0x272)+_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x1e6)]+_0x2821d5(0x188),_0x3c2863[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x360dd3['style'][_0x2821d5(0x168)]=_0x728aa7[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x2821d5(0x1fd),_0x1c44f9[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x2821d5(0x23d),_0x4f5df9[_0x2821d5(0x29a)]['cssText']=_0x2821d5(0x25a),_0x25cf7b['style']['cssText']=_0x2821d5(0x259),_0x9988e8[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x2821d5(0x266)+_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x21a)][_0x2821d5(0x33e)]+';\x0acolor:\x20'+_0x298b4d[_0x2821d5(0x2f0)]['button_1'][_0x2821d5(0x195)]+_0x2821d5(0x1d6),_0xf6ecb0[_0x2821d5(0x29a)][_0x2821d5(0x168)]='\x0apadding:\x2012px\x2020px;\x0aborder:\x20none;\x0abackground-color:\x20\x20'+_0x298b4d[_0x2821d5(0x2f0)]['button_2'][_0x2821d5(0x33e)]+_0x2821d5(0x2e7)+_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x31b)][_0x2821d5(0x195)]+';\x0acursor:\x20pointer;\x0aborder-radius:\x205px;\x0awidth:\x2048%;\x0a',_0x2eb0cd[_0x2821d5(0x29a)][_0x2821d5(0x168)]=_0x2821d5(0x30e),_0x2b2557[_0x2821d5(0x29a)][_0x2821d5(0x168)]='\x0amargin-bottom:\x205px;\x0afont-size:\x2016px;\x0acolor:\x20'+_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x355)]+'\x0a',_0x41db7e[_0x2821d5(0x29a)]['cssText']='\x0amargin-bottom:\x205px;\x0afont-size:\x2013px;\x0acolor:\x20'+_0x298b4d[_0x2821d5(0x2f0)][_0x2821d5(0x355)]+'\x0a',document['body'][_0x2821d5(0x197)](_0x358c55),document['body'][_0x2821d5(0x29a)][_0x2821d5(0x255)]=_0x2821d5(0x160),_0x107b20['recordEvent']({'eventName':_0x2821d5(0x1f0),'name':_0x2821d5(0x230),'web_optin_instance_id':_0x298b4d[_0x2821d5(0x2c3)]}),_0x9988e8==null||_0x9988e8[_0x2821d5(0x25e)](_0x2821d5(0x291),()=>_0x116750(this,null,function*(){const _0x464f76=_0x2821d5;_0x358c55[_0x464f76(0x177)](),_0x5af28d(_0x4dabd5,_0x2489cb,!0x1),document['body'][_0x464f76(0x29a)]['overflow']=_0x464f76(0x34b),yield _0x107b20[_0x464f76(0x21d)]({'eventName':_0x464f76(0x2c8),'web_optin_instance_id':_0x298b4d[_0x464f76(0x2c3)]}),_0x2e10a3(0x1,_0x464f76(0x17d));})),_0xf6ecb0==null||_0xf6ecb0[_0x2821d5(0x25e)]('click',()=>_0x116750(this,null,function*(){const _0x115240=_0x2821d5;_0x358c55[_0x115240(0x177)](),document[_0x115240(0x2a6)][_0x115240(0x29a)][_0x115240(0x255)]='auto',_0x107b20[_0x115240(0x21d)]({'eventName':'Accepted\x20Web\x20Push\x20Soft-ask','web_optin_instance_id':_0x298b4d[_0x115240(0x2c3)]}),yield _0x452988(this,_0x40e3f0,_0x3d7a3a)['call'](this,_0x298b4d);}));}catch(_0x2f2f05){}},_0x3d7a3a=function(_0x5da6b5){return _0x116750(this,null,function*(){const _0x40535=_0x3ff4;try{_0x107b20[_0x40535(0x21d)]({'eventName':_0x40535(0x246),'name':_0x40535(0x230),'web_optin_instance_id':_0x5da6b5[_0x40535(0x2c3)]});let _0x464874=yield Notification[_0x40535(0x1a5)]();_0x464874==='granted'?(_0x2e10a3(0x1,_0x40535(0x247)),yield _0x452988(this,_0x40e3f0,_0x2a2b99)[_0x40535(0x1cc)](this),yield _0x107b20[_0x40535(0x21d)]({'eventName':_0x40535(0x269),'name':_0x40535(0x16b),'web_optin_instance_id':_0x5da6b5[_0x40535(0x2c3)]})):_0x464874===_0x40535(0x27d)?(yield _0x107b20[_0x40535(0x21d)]({'eventName':'Blocked\x20Web\x20Push\x20Subscription'}),_0x2e10a3(0x1,_0x40535(0x17d))):_0x464874==='default'&&(yield _0x107b20[_0x40535(0x21d)]({'eventName':_0x40535(0x261)}),_0x2e10a3(0x1,_0x40535(0x2c0)));}catch(_0x522b56){_0x2e10a3(0x2,_0x40535(0x320)),_0x2e10a3(0x2,_0x522b56[_0x40535(0x1eb)]);}_0x5af28d(_0x4dabd5,_0x2489cb,!0x1);});},_0x2a2b99=function(){return _0x116750(this,null,function*(){const _0x29c8fc=_0x3ff4;var _0x4ca3f0,_0xdabfb;let _0x329d7f=yield _0x416800[_0x29c8fc(0x2d9)](''+_0x54c172);if(_0x2e10a3(0x1,_0x29c8fc(0x1aa)+_0x329d7f[_0x29c8fc(0x1b1)]),_0x329d7f[_0x29c8fc(0x1b1)]){let _0x280e22=yield(_0x4ca3f0=_0x57a522(_0x4dabd5,_0x36aff1))==null?void 0x0:_0x4ca3f0[_0x29c8fc(0x2b6)][_0x29c8fc(0x2af)]();_0x2e10a3(0x1,_0x29c8fc(0x25b)+!!_0x280e22),_0x280e22&&(yield _0x280e22[_0x29c8fc(0x221)]());let _0x73eebb=yield(_0xdabfb=_0x57a522(_0x4dabd5,_0x36aff1))==null?void 0x0:_0xdabfb['pushManager'][_0x29c8fc(0x1a6)]({'applicationServerKey':_0x329d7f[_0x29c8fc(0x179)]||'','userVisibleOnly':!0x0}),_0x45482a=localStorage[_0x29c8fc(0x333)](_0x29c8fc(0x237))||'';_0x2e10a3(0x1,'subscribeUserToPush\x20Customer\x20ID:\x20'+_0x45482a),(!_0x45482a||_0x45482a===_0x29c8fc(0x148))&&(yield _0x42bd6d[_0x29c8fc(0x224)]()),yield _0x416800['put'](''+_0xcccd07,{'customer_id':localStorage['getItem'](_0x29c8fc(0x237)),'device_id':localStorage['getItem']('uniqueIdentity'),'device_platform':_0x42bd6d['getOperatingSystem'](),'is_web_push_subscribed':!0x0,'os':_0x42bd6d[_0x29c8fc(0x2f3)](),'web_push_subscription_page_url':window[_0x29c8fc(0x215)][_0x29c8fc(0x1be)],'web_push_token':{'token':JSON[_0x29c8fc(0x2d8)](JSON[_0x29c8fc(0x2cc)](_0x73eebb))}}),this[_0x29c8fc(0x14a)]({'customer':localStorage['getItem'](_0x29c8fc(0x237))||'','events':_0x107b20['getStoredEvents'](),'API_KEY':_0x416800[_0x29c8fc(0x24d)](),'debugLevel':_0x31ac51[_0x29c8fc(0x1fe)],'device_id':localStorage['getItem'](_0x29c8fc(0x330))||'','operatingSystem':_0x42bd6d[_0x29c8fc(0x249)](),'osVersion':_0x42bd6d[_0x29c8fc(0x26e)](),'Platform':_0x42bd6d[_0x29c8fc(0x2f3)]()}),_0x2e10a3(0x1,_0x29c8fc(0x169));}else throw new Error(_0x29c8fc(0x162));});},_0x59b41b=function(_0x25400e){const _0x1339b3=_0x276ad6;_0x42bd6d[_0x1339b3(0x19a)](_0x25400e,_0x1339b3(0x216),_0x1339b3(0x2c3));},_0x5ee66b=new WeakMap(),_0x28cd40=function(_0x125b34){const _0x1bb584=_0x276ad6;if(_0x57a522(_0x4dabd5,_0x2489cb))return;_0x5af28d(_0x4dabd5,_0x2489cb,!0x0);let _0x5de8c2=_0x452988(this,_0x40e3f0,_0x3627c9)[_0x1bb584(0x1cc)](this);if(_0x5de8c2!=null&&_0x5de8c2[_0x125b34])switch(_0x5de8c2[_0x125b34][_0x1bb584(0x206)]){case _0x1bb584(0x327):{_0x452988(this,_0x40e3f0,_0xbc1d8a)['call'](this,_0x5de8c2[_0x125b34]);break;}case'IMMEDIATELY':{_0x452988(this,_0x40e3f0,_0x403051)[_0x1bb584(0x1cc)](this,_0x5de8c2[_0x125b34]);break;}case _0x1bb584(0x2ea):{_0x452988(this,_0x40e3f0,_0x3042c4)[_0x1bb584(0x1cc)](this,_0x5de8c2[_0x125b34]);break;}default:return;}},_0x3627c9=function(){const _0xb29e8=_0x276ad6;let _0x4c703f=localStorage[_0xb29e8(0x333)](_0xb29e8(0x216));return _0x4c703f?JSON['parse'](_0x4c703f):null;},_0xbc1d8a=function(_0x119f8c){const _0x4eec76=_0x276ad6;_0x42bd6d[_0x4eec76(0x268)]({'clearActionMethod':_0x57a522(this,_0x1efa96)[_0x4eec76(0x1c4)](this),'data':_0x119f8c,'displayMethod':_0x452988(this,_0x40e3f0,_0x403051)['bind'](this),'idKey':_0x4eec76(0x2c3),'timeValueKey':_0x4eec76(0x155)});},_0x403051=function(_0x2f4c94){const _0x4ac8ca=_0x276ad6;_0x452988(this,_0x40e3f0,_0x4e7d1f)[_0x4ac8ca(0x1cc)](this,_0x2f4c94);},_0x1efa96=new WeakMap(),_0x3042c4=function(_0x23d11d){const _0x39e6ae=_0x276ad6;_0x42bd6d[_0x39e6ae(0x2a8)]({'data':_0x23d11d,'displayMethod':_0x452988(this,_0x40e3f0,_0x403051)[_0x39e6ae(0x1c4)](this),'timeValueKey':_0x39e6ae(0x155)});},_0x22ebb9(_0x4dabd5,_0x308eb4),_0x22ebb9(_0x4dabd5,_0x36aff1,null),_0x22ebb9(_0x4dabd5,_0x1289fc,!0x1),_0x22ebb9(_0x4dabd5,_0x2489cb,!0x1),_0x22ebb9(_0x4dabd5,_0x468bd1,!0x1),_0x22ebb9(_0x4dabd5,_0x57df61,null),_0x22ebb9(_0x4dabd5,_0x17a53b,'');var _0xb80184=_0x4dabd5,_0x165e57=_0xb80184[_0x276ad6(0x2e6)](),_0x161a62,_0x2d65f3,_0x12c1eb,_0x2715c0,_0x9822ca,_0x4cea70,_0x1d39e9,_0x201e70,_0x3d84d2,_0x59a5ea,_0xe9aeae,_0x229feb,_0x564d5c,_0xeb2632,_0x1d4de9,_0x3e7cc7=class _0x28f1f9{constructor(){const _0x13e2a3=_0x276ad6;_0x22ebb9(this,_0x2d65f3),_0x22ebb9(this,_0x1d39e9,_0x1802e7=>{const _0x59b27c=_0x3ff4;_0x42bd6d[_0x59b27c(0x341)]({'id':_0x1802e7,'localStorageKey':'action'});}),_0x22ebb9(this,_0x201e70,(_0x733aa7,_0x22023e)=>{const _0x225065=_0x3ff4;let _0x41688d=document[_0x225065(0x316)](_0x225065(0x263));_0x41688d[_0x225065(0x2c1)]=_0x22023e,_0x41688d[_0x225065(0x31e)](_0x225065(0x297))[_0x225065(0x1dd)](_0x4abc6d=>{const _0x507c52=_0x225065;let _0x141399=document[_0x507c52(0x316)]('script');_0x4abc6d[_0x507c52(0x30d)]?_0x141399['src']=_0x4abc6d[_0x507c52(0x30d)]:_0x141399['textContent']=_0x4abc6d[_0x507c52(0x22b)],_0x733aa7[_0x507c52(0x197)](_0x141399);});}),_0x22ebb9(this,_0x59a5ea,({campaignCustomerInstanceId:_0x30669d,campaignId:_0xe75c7b,customForm:_0x46729a,formDiv:_0x4c1594,popupContainer:_0x353308})=>{const _0x3e2ca8=_0x3ff4;let _0x5e614a=(_0x4c1594==null?void 0x0:_0x4c1594[_0x3e2ca8(0x1a8)](_0x3e2ca8(0x2db)))||_0x46729a;_0x5e614a&&(_0x5e614a['querySelectorAll']('input')[_0x3e2ca8(0x1dd)](_0xb12f4e=>{const _0x3570a4=_0x3e2ca8;_0xb12f4e[_0x3570a4(0x29a)][_0x3570a4(0x331)](_0x3570a4(0x295),_0xb12f4e[_0x3570a4(0x29a)][_0x3570a4(0x295)],'important');}),_0x5e614a[_0x3e2ca8(0x25e)]('submit',()=>_0x116750(this,null,function*(){const _0x11414=_0x3e2ca8;_0x353308[_0x11414(0x177)]();let _0x1a10d8=new FormData(_0x5e614a),_0x67aef9={};_0x2e10a3(0x1,_0x11414(0x25c));let _0x1a3198=[];for(let [_0x49507d,_0x37440d]of _0x1a10d8[_0x11414(0x2bc)]())_0x67aef9[_0x49507d]=_0x37440d,_0x2e10a3(0x1,_0x49507d+':\x20'+_0x37440d),_0x1a3198[_0x11414(0x329)](_0x1454be['recordAttribute'](_0x49507d,_0x37440d['toString']()));yield Promise['allSettled'](_0x1a3198),setTimeout(()=>_0x116750(this,null,function*(){const _0xfe3fd3=_0x11414;yield _0x107b20['recordEvent']({'campaignCustomerInstanceId':_0x30669d,'campaignId':_0xe75c7b,'eventName':_0x33131f,'eventProperties':[{'eventProperty':_0xfe3fd3(0x2a0),'value':JSON[_0xfe3fd3(0x2cc)]({'campaignId':_0xe75c7b,'formId':(_0x4c1594==null?void 0x0:_0x4c1594['id'])||'custom_form','formValues':_0x67aef9})},{'eventProperty':_0xfe3fd3(0x35a),'value':_0xe75c7b[_0xfe3fd3(0x22e)]()}],'name':_0xfe3fd3(0x2db)});}));})));}),this[_0x13e2a3(0x2f5)]=()=>{const _0xc22753=_0x13e2a3;_0x42bd6d[_0xc22753(0x345)]({'actionCondition':_0x2a79c6=>_0x2a79c6[_0xc22753(0x1eb)][_0xc22753(0x31c)]===_0xc22753(0x2e2),'actionMethod':_0x2bf5af=>_0x452988(this,_0x2d65f3,_0x2715c0)[_0xc22753(0x1cc)](this,_0x2bf5af[_0xc22753(0x1a9)]),'localStorageKey':_0xc22753(0x32b)});},_0x22ebb9(this,_0x1d4de9,()=>{const _0x59d98d=_0x13e2a3;_0x42bd6d[_0x59d98d(0x2a4)](_0x59d98d(0x32b));});}static[_0x276ad6(0x2e6)](){const _0x2e3be4=_0x276ad6;var _0x3e3951;return _0x57a522(_0x28f1f9,_0x161a62)||(_0x5af28d(_0x28f1f9,_0x161a62,new _0x28f1f9()),_0x452988(_0x3e3951=_0x57a522(_0x28f1f9,_0x161a62),_0x2d65f3,_0x12c1eb)[_0x2e3be4(0x1cc)](_0x3e3951)),_0x57a522(_0x28f1f9,_0x161a62);}[_0x276ad6(0x24c)](_0x314468){const _0x4bae0b=_0x276ad6;let _0x470551=JSON[_0x4bae0b(0x2d8)](localStorage[_0x4bae0b(0x333)](_0x4bae0b(0x32b))||'{}');if(_0x470551&&_0x470551[_0x314468==null?void 0x0:_0x314468[_0x4bae0b(0x1a9)]]){_0x2e10a3(0x1,_0x4bae0b(0x347));return;}_0x452988(this,_0x2d65f3,_0xeb2632)[_0x4bae0b(0x1cc)](this,_0x314468),_0x57a522(this,_0x1d4de9)['call'](this),_0x452988(this,_0x2d65f3,_0x2715c0)[_0x4bae0b(0x1cc)](this,_0x314468[_0x4bae0b(0x1a9)]);}[_0x276ad6(0x2b8)](_0xe96f7b){const _0x31eb12=_0x276ad6;return _0xe96f7b===_0x31eb12(0x2e2);}};_0x161a62=new WeakMap(),_0x2d65f3=new WeakSet(),_0x12c1eb=function(){return _0x116750(this,null,function*(){});},_0x2715c0=function(_0x3587ec){const _0x2102e1=_0x276ad6;let _0x3a807c=_0x452988(this,_0x2d65f3,_0x9822ca)[_0x2102e1(0x1cc)](this);if(document[_0x2102e1(0x2bd)]('popup_container_'+_0x3587ec)){_0x2e10a3(0x1,_0x2102e1(0x281)),_0x57a522(this,_0x1d39e9)[_0x2102e1(0x1cc)](this,_0x3587ec);return;}if(_0x3a807c!=null&&_0x3a807c[_0x3587ec])switch(_0x3a807c[_0x3587ec][_0x2102e1(0x1b5)]){case _0x2102e1(0x327):{_0x452988(this,_0x2d65f3,_0x4cea70)[_0x2102e1(0x1cc)](this,_0x3a807c[_0x3587ec]);break;}case _0x2102e1(0x282):{_0x452988(this,_0x2d65f3,_0x3d84d2)[_0x2102e1(0x1cc)](this,_0x3a807c[_0x3587ec]);break;}case _0x2102e1(0x2ea):{_0x452988(this,_0x2d65f3,_0x564d5c)[_0x2102e1(0x1cc)](this,_0x3a807c[_0x3587ec]);break;}default:return;}},_0x9822ca=function(){let _0x320d0d=localStorage['getItem']('action');return _0x320d0d?JSON['parse'](_0x320d0d):null;},_0x4cea70=function(_0x13805c){const _0x3d1030=_0x276ad6;_0x42bd6d[_0x3d1030(0x268)]({'clearActionMethod':_0x57a522(this,_0x1d39e9)[_0x3d1030(0x1c4)](this),'data':_0x13805c,'displayMethod':_0x452988(this,_0x2d65f3,_0x3d84d2)[_0x3d1030(0x1c4)](this),'idKey':_0x3d1030(0x1a9),'timeValueKey':_0x3d1030(0x27b)});},_0x1d39e9=new WeakMap(),_0x201e70=new WeakMap(),_0x3d84d2=function(_0x224b85){const _0x3e8489=_0x276ad6;if(document[_0x3e8489(0x2bd)](_0x3e8489(0x1f1)+_0x224b85['campaignId']))_0x2e10a3(0x1,_0x3e8489(0x281));else{let _0x2f5c69=_0x452988(this,_0x2d65f3,_0x229feb)[_0x3e8489(0x1cc)](this,_0x3e8489(0x263),_0x224b85);_0x57a522(this,_0x201e70)[_0x3e8489(0x1cc)](this,_0x2f5c69,_0x224b85[_0x3e8489(0x1eb)][_0x3e8489(0x1cb)]),document[_0x3e8489(0x2a6)][_0x3e8489(0x197)](_0x2f5c69),_0x107b20[_0x3e8489(0x21d)]({'campaignCustomerInstanceId':_0x224b85[_0x3e8489(0x2fb)],'campaignId':_0x224b85[_0x3e8489(0x1a9)],'eventName':_0x33131f,'eventProperties':[{'eventProperty':_0x3e8489(0x1e1),'value':JSON[_0x3e8489(0x2cc)]({'campaignId':_0x224b85[_0x3e8489(0x1a9)]})}],'name':_0x3e8489(0x2d6)});}_0x57a522(this,_0x1d39e9)[_0x3e8489(0x1cc)](this,_0x224b85[_0x3e8489(0x1a9)]);},_0x59a5ea=new WeakMap(),_0xe9aeae=function(_0x12b20d,_0x2b4851){const _0xee8e00=_0x276ad6;let _0x2ac6e2=_0x12b20d['parentElement'];for(;_0x2ac6e2;){if(_0x2ac6e2['id']['startsWith'](_0x2b4851))return _0x2ac6e2;_0x2ac6e2=_0x2ac6e2[_0xee8e00(0x313)];}return null;},_0x229feb=function(_0x4e6a60,_0x5b4425){const _0x1b6396=_0x276ad6;let {campaignCustomerInstanceId:_0x33cab7,campaignId:_0x1ed7f0,message:{design:_0x5918c6}}=_0x5b4425,_0x32bc03=document['createElement'](_0x4e6a60);_0x32bc03['id']=_0x1b6396(0x1f1)+_0x1ed7f0,_0x32bc03[_0x1b6396(0x2c1)]=_0x5918c6,_0x32bc03[_0x1b6396(0x29a)]['position']=_0x1b6396(0x350),_0x32bc03[_0x1b6396(0x29a)][_0x1b6396(0x1b2)]='0',_0x32bc03['style'][_0x1b6396(0x29b)]='0',_0x32bc03['style'][_0x1b6396(0x2ad)]='100%',_0x32bc03['style'][_0x1b6396(0x165)]=_0x1b6396(0x29d),_0x32bc03[_0x1b6396(0x29a)][_0x1b6396(0x280)]=_0x1b6396(0x212);let _0x2725d3=_0x32bc03[_0x1b6396(0x1a8)]('.u-popup-container');_0x2725d3&&(_0x2725d3[_0x1b6396(0x29a)][_0x1b6396(0x280)]='50');let _0x5c73b3=_0x2725d3[_0x1b6396(0x1a8)](_0x1b6396(0x1e5));_0x5c73b3&&(_0x2e10a3(0x1,'Popup\x20overlay\x20element\x20found'),_0x5c73b3['style'][_0x1b6396(0x331)](_0x1b6396(0x302),_0x1b6396(0x1c0),'important')),_0x32bc03[_0x1b6396(0x31e)](_0x1b6396(0x2db))[_0x1b6396(0x1dd)](_0x146756=>{const _0x2851fb=_0x1b6396;let _0x30eee2=_0x452988(this,_0x2d65f3,_0xe9aeae)[_0x2851fb(0x1cc)](this,_0x146756,_0x2851fb(0x251));_0x30eee2?_0x57a522(this,_0x59a5ea)[_0x2851fb(0x1cc)](this,{'campaignCustomerInstanceId':_0x33cab7,'campaignId':_0x1ed7f0,'formDiv':_0x30eee2,'popupContainer':_0x32bc03}):_0x57a522(this,_0x59a5ea)['call'](this,{'campaignCustomerInstanceId':_0x33cab7,'campaignId':_0x1ed7f0,'customForm':_0x146756,'popupContainer':_0x32bc03});});let _0x212a0f=_0x32bc03['querySelector'](_0x1b6396(0x1a3));return(_0x212a0f==null?void 0x0:_0x212a0f['getAttribute'](_0x1b6396(0x193)))==='#'&&_0x212a0f['removeAttribute']('href'),_0x212a0f==null||_0x212a0f[_0x1b6396(0x25e)](_0x1b6396(0x291),()=>_0x116750(this,null,function*(){const _0x493f74=_0x1b6396;_0x32bc03[_0x493f74(0x177)](),yield _0x107b20[_0x493f74(0x21d)]({'campaignCustomerInstanceId':_0x33cab7,'campaignId':_0x1ed7f0,'eventName':_0x33131f,'eventProperties':[{'eventProperty':'Close\x20Click','value':JSON[_0x493f74(0x2cc)]({'campaignId':_0x1ed7f0})}],'name':'close'});})),_0x32bc03['querySelectorAll'](_0x1b6396(0x34f))[_0x1b6396(0x1dd)](_0x52c973=>{const _0x556284=_0x1b6396;_0x52c973[_0x556284(0x25e)](_0x556284(0x291),()=>_0x116750(this,null,function*(){const _0x54d15b=_0x556284;_0x32bc03[_0x54d15b(0x177)](),yield _0x107b20[_0x54d15b(0x21d)]({'campaignCustomerInstanceId':_0x33cab7,'campaignId':_0x1ed7f0,'eventName':_0x33131f,'eventProperties':[{'eventProperty':_0x54d15b(0x175),'value':JSON[_0x54d15b(0x2cc)]({'buttonId':_0x52c973['id'],'campaignId':_0x1ed7f0})}],'name':_0x54d15b(0x291)});}));}),_0x32bc03[_0x1b6396(0x31e)]('.u-popup-container\x20img')[_0x1b6396(0x1dd)](_0x3a18cf=>{const _0x28c4c5=_0x1b6396;_0x3a18cf['addEventListener'](_0x28c4c5(0x291),()=>_0x116750(this,null,function*(){const _0x18069e=_0x28c4c5;var _0x5991db;((_0x5991db=_0x3a18cf[_0x18069e(0x313)])==null?void 0x0:_0x5991db[_0x18069e(0x271)])==='A'&&_0x3a18cf[_0x18069e(0x313)][_0x18069e(0x1ab)](_0x18069e(0x193))&&_0x32bc03[_0x18069e(0x177)](),yield _0x107b20['recordEvent']({'campaignCustomerInstanceId':_0x33cab7,'campaignId':_0x1ed7f0,'eventName':_0x33131f,'eventProperties':[{'eventProperty':_0x18069e(0x196),'value':JSON[_0x18069e(0x2cc)]({'campaignId':_0x1ed7f0,'imageClassName':_0x3a18cf[_0x18069e(0x35d)],'imageId':_0x3a18cf['id']})}],'name':_0x18069e(0x291)});}));}),_0x32bc03;},_0x564d5c=function(_0x9b48c6){const _0x10b0b4=_0x276ad6;_0x42bd6d[_0x10b0b4(0x2a8)]({'data':_0x9b48c6,'displayMethod':_0x452988(this,_0x2d65f3,_0x3d84d2)['bind'](this),'timeValueKey':_0x10b0b4(0x27b)});},_0xeb2632=function(_0x583ced){const _0x49234f=_0x276ad6;_0x42bd6d['storeActionInLocalStorage'](_0x583ced,_0x49234f(0x32b),_0x49234f(0x1a9));},_0x1d4de9=new WeakMap(),_0x22ebb9(_0x3e7cc7,_0x161a62);var _0x51bec4=_0x3e7cc7,_0x4cb41a=_0x51bec4[_0x276ad6(0x2e6)](),_0x3a9720,_0x558a25,_0x2adf1b,_0x382509,_0x3b715e,_0x53a055,_0x8f8ba4,_0x5f4303,_0x545f73,_0x52329d=class _0x258c6f{constructor(){const _0x3bec1c=_0x276ad6;_0x22ebb9(this,_0x558a25),this[_0x3bec1c(0x1ea)]=Promise['resolve']();}static[_0x276ad6(0x2e6)](){const _0x69d47d=_0x276ad6;var _0x3ae748;return _0x57a522(_0x258c6f,_0x3a9720)||(_0x5af28d(_0x258c6f,_0x3a9720,new _0x258c6f()),_0x452988(_0x3ae748=_0x57a522(_0x258c6f,_0x3a9720),_0x558a25,_0x2adf1b)[_0x69d47d(0x1cc)](_0x3ae748)),_0x57a522(_0x258c6f,_0x3a9720);}[_0x276ad6(0x214)](_0x377023){const _0x1eb355=_0x276ad6;let _0x592792=JSON['parse'](localStorage[_0x1eb355(0x333)](_0x1eb355(0x245))||'[]');_0x592792['push'](_0x377023),localStorage[_0x1eb355(0x170)](_0x1eb355(0x245),JSON[_0x1eb355(0x2cc)](_0x592792));}[_0x276ad6(0x186)](){return _0x116750(this,null,function*(){const _0x177ace=_0x3ff4;let _0x3f8ff9=JSON[_0x177ace(0x2d8)](localStorage[_0x177ace(0x333)](_0x177ace(0x245))||'[]');if(Array[_0x177ace(0x33b)](_0x3f8ff9)){for(let _0x264967 of _0x3f8ff9)yield this[_0x177ace(0x154)](_0x264967);}});}[_0x276ad6(0x21d)](_0x5ed85c,_0x5184e5){return _0x116750(this,null,function*(){const _0x4e1fe8=_0x3ff4;_0x31ac51[_0x4e1fe8(0x1bb)]&&!_0x31ac51[_0x4e1fe8(0x1ff)]?yield _0x452988(this,_0x558a25,_0x382509)[_0x4e1fe8(0x1cc)](this,_0x5ed85c,_0x5184e5):this[_0x4e1fe8(0x214)](_0x5ed85c);});}['recordEventPreInitialized'](_0x339294){return _0x116750(this,null,function*(){const _0x4f64ef=_0x3ff4;try{yield _0x452988(this,_0x558a25,_0x382509)[_0x4f64ef(0x1cc)](this,_0x339294);}finally{_0x452988(this,_0x558a25,_0x545f73)[_0x4f64ef(0x1cc)](this,_0x339294[_0x4f64ef(0x1d7)]);}});}[_0x276ad6(0x17e)](_0x47be40){return _0x116750(this,null,function*(){const _0x3f2f15=_0x3ff4;_0x31ac51[_0x3f2f15(0x1fe)]===0x4&&(!_0x31ac51[_0x3f2f15(0x1e7)]||_0x31ac51[_0x3f2f15(0x1e7)][_0x47be40[_0x3f2f15(0x1d7)]])&&(yield _0x452988(this,_0x558a25,_0x382509)[_0x3f2f15(0x1cc)](this,_0x47be40));});}[_0x276ad6(0x192)](){const _0x46c698=_0x276ad6;let _0x466e7a=localStorage[_0x46c698(0x333)]('events');return _0x466e7a?JSON[_0x46c698(0x2d8)](_0x466e7a):{};}[_0x276ad6(0x15c)](){return _0x116750(this,null,function*(){const _0x191306=_0x3ff4;if(!localStorage[_0x191306(0x333)](_0x191306(0x354))){let _0x1fba7a=(yield this['fetchEventData']())['data'];if(_0x1fba7a){localStorage['setItem'](_0x191306(0x354),JSON[_0x191306(0x2cc)](_0x1fba7a));try{_0x165e57[_0x191306(0x14a)]({'events':_0x1fba7a});}catch(_0x43443e){}}}});}[_0x276ad6(0x1e3)](){return _0x116750(this,null,function*(){const _0x55e6a7=_0x3ff4;try{return yield _0x416800['get'](''+_0x4e1c38);}catch(_0x409007){throw new Error(_0x55e6a7(0x164));}});}[_0x276ad6(0x171)](_0x470390,_0x2c1d58){return _0x116750(this,null,function*(){const _0x5259b6=_0x3ff4;let _0x378c18=null,_0x28d0d9=null,_0x2debc5=new AbortController();return this[_0x5259b6(0x1ea)]=this[_0x5259b6(0x1ea)][_0x5259b6(0x14d)](()=>_0x116750(this,null,function*(){const _0x36561d=_0x5259b6;try{if(_0x470390[_0x36561d(0x354)]['length']===0x0)throw new Error(_0x36561d(0x335));let _0x3a5e3a=yield _0x416800[_0x36561d(0x1f2)](_0x36561d(0x1b7)+_0x4e1c38+_0x455572,_0x470390,_0x2debc5[_0x36561d(0x17f)]);if(_0x3a5e3a[_0x36561d(0x1b1)])return _0x28d0d9=_0x3a5e3a,_0x3a5e3a;if(_0x3a5e3a[_0x36561d(0x1eb)]===_0x36561d(0x2f8)+localStorage[_0x36561d(0x333)](_0x36561d(0x237))+'\x20not\x20exists')throw localStorage['removeItem'](_0x36561d(0x237)),new Error(_0x36561d(0x1d3));}catch(_0x12b234){throw _0x2e10a3(0x2,_0x36561d(0x23b)),_0x2e10a3(0x2,'name:\x20'+_0x12b234['name']),_0x2e10a3(0x2,_0x36561d(0x1af)+_0x12b234[_0x36561d(0x1eb)]),(_0x12b234[_0x36561d(0x31c)]===_0x36561d(0x1f8)||_0x12b234[_0x36561d(0x31c)]===_0x36561d(0x323)&&_0x12b234['message']===_0x36561d(0x211)||_0x12b234[_0x36561d(0x1eb)]===_0x36561d(0x2e8))&&(_0x2e10a3(0x2,'Request\x20aborted'),_0x2c1d58&&_0x452988(this,_0x558a25,_0x5f4303)['call'](this,_0x2c1d58)),_0x378c18=new Error((_0x12b234==null?void 0x0:_0x12b234[_0x36561d(0x1eb)])||_0x36561d(0x2f2)),_0x12b234;}return null;}))[_0x5259b6(0x1a1)](()=>{}),this[_0x5259b6(0x1ea)][_0x5259b6(0x14d)](()=>{if(_0x378c18)throw _0x378c18;return _0x28d0d9;});});}};_0x3a9720=new WeakMap(),_0x558a25=new WeakSet(),_0x2adf1b=function(){return _0x116750(this,null,function*(){});},_0x382509=function(_0x5ea0a9,_0x1b4f35){return _0x116750(this,null,function*(){const _0x5ad511=_0x3ff4;yield _0x5483b1(_0x5ad511(0x33a),()=>_0x116750(this,null,function*(){const _0x31c24f=_0x5ad511;var _0x5baff8,_0x1da249,_0x3b91bd,_0xc2dbcf;let {campaignCustomerInstanceId:_0x42f8da,campaignId:_0x3d72ab,eventName:_0xafdd35,eventProperties:_0x2a343f,name:_0x542d1b,web_optin_instance_id:_0x108a8c}=_0x5ea0a9;_0x2e10a3(0x1,_0x31c24f(0x318)),_0x5a901b('Recording\x20event',!0x0),_0xa7aee2('Recording\x20event\x20Time',!0x0),_0x2e10a3(0x1,_0x31c24f(0x1c2)),_0x2e10a3(0x1,{'campaignCustomerInstanceId':_0x42f8da,'eventName':_0xafdd35,'eventProperties':_0x2a343f,'name':_0x542d1b,'web_optin_instance_id':_0x108a8c});let _0x456b6c=_0x42bd6d[_0x31c24f(0x2f3)]();if(_0x456b6c===_0x31c24f(0x1a2)||_0x456b6c==='Unknown')throw new Error('Invalid\x20platform');_0xafdd35!==_0x31c24f(0x218)&&(yield _0x42bd6d[_0x31c24f(0x337)]());let _0x125560=[];_0x2a343f&&_0x125560['push'](..._0x2a343f),_0x125560[_0x31c24f(0x329)]({'eventProperty':_0x31c24f(0x2df),'value':_0x456b6c}),_0x125560['push']({'eventProperty':_0x31c24f(0x156),'value':_0x42bd6d[_0x31c24f(0x249)]()}),_0x125560[_0x31c24f(0x329)]({'eventProperty':_0x31c24f(0x32e),'value':_0x42bd6d[_0x31c24f(0x26e)]()});let _0x4f0676=this[_0x31c24f(0x192)](),_0x53c19c=_0x452988(this,_0x558a25,_0x53a055)[_0x31c24f(0x1cc)](this,_0x4f0676,_0xafdd35,_0x125560);if(typeof _0x53c19c==_0x31c24f(0x198)){_0x2e10a3(0x2,_0x53c19c);return;}_0x42bd6d[_0x31c24f(0x32d)]();let {id:_0x2fcb9c}=_0x4f0676[_0xafdd35],_0x530347=_0x452988(this,_0x558a25,_0x8f8ba4)[_0x31c24f(0x1cc)](this,_0xb235aa(_0x11a8ae(_0xb235aa(_0xb235aa(_0xb235aa({},_0x42f8da?{'campaignCustomerInstanceId':_0x42f8da}:{}),_0x3d72ab?{'campaignId':_0x3d72ab}:{}),_0x108a8c?{'web_optin_instance_id':_0x108a8c}:{}),{'eventId':_0x2fcb9c,'eventProperties':_0x53c19c,'sessionId':localStorage['getItem'](_0x31c24f(0x35e))||''}),_0x542d1b?{'name':_0x542d1b}:{}));if(_0x31ac51[_0x31c24f(0x2e4)]){let _0x98aa4e=JSON[_0x31c24f(0x2d8)](localStorage['getItem']('offlineEvents')||'[]');_0x98aa4e['length']<=0x32&&(_0x98aa4e[_0x31c24f(0x329)](..._0x530347[_0x31c24f(0x354)]),localStorage[_0x31c24f(0x170)](_0x31c24f(0x35c),JSON['stringify'](_0x98aa4e)));return;}let _0x41dbeb=yield this[_0x31c24f(0x171)](_0x530347,_0x5ea0a9);(_0x5baff8=_0x41dbeb==null?void 0x0:_0x41dbeb[_0x31c24f(0x179)])!=null&&_0x5baff8[_0x31c24f(0x209)]?(yield this['recordDebugEvents']({'eventName':_0x31c24f(0x1de)}),_0x165e57[_0x31c24f(0x2cd)](_0x41dbeb[_0x31c24f(0x179)]['optIn'])):_0xafdd35===_0x31c24f(0x1cf)&&(yield this[_0x31c24f(0x17e)]({'eventName':_0x31c24f(0x17b),'eventProperties':[{'eventProperty':'message','value':''+(_0x31c24f(0x243)in window&&typeof((_0x1da249=window==null?void 0x0:window[_0x31c24f(0x243)])==null?void 0x0:_0x1da249['permission'])!=_0x31c24f(0x148))}]})),(_0xc2dbcf=(_0x3b91bd=_0x41dbeb==null?void 0x0:_0x41dbeb['data'])==null?void 0x0:_0x3b91bd[_0x31c24f(0x2a3)])==null||_0xc2dbcf[_0x31c24f(0x1dd)](_0x213544=>{const _0x628412=_0x31c24f;if(_0x4cb41a[_0x628412(0x2b8)](_0x213544[_0x628412(0x1eb)][_0x628412(0x31c)])){if(_0x452988(this,_0x558a25,_0x3b715e)[_0x628412(0x1cc)](this,_0x213544[_0x628412(0x1a9)])){_0x2e10a3(0x1,_0x628412(0x235)+_0x213544['campaignId']);return;}_0x4cb41a[_0x628412(0x24c)](_0x213544);}else _0x2eab71[_0x628412(0x309)](_0x213544[_0x628412(0x1eb)][_0x628412(0x31c)])&&_0x2eab71['showContentCard'](_0x213544);}),_0xa7aee2(_0x31c24f(0x1b3),!0x1),_0x5a901b(_0x31c24f(0x27e),!0x1);}),_0x53fc03=>{const _0x5b73ac=_0x5ad511;_0x416800[_0x5b73ac(0x30f)]()==='67'&&_0x53fc03[_0x5b73ac(0x1eb)]!==_0x5b73ac(0x211)&&_0x53fc03[_0x5b73ac(0x1eb)]!=='Load\x20failed'&&_0x53fc03[_0x5b73ac(0x1eb)][_0x5b73ac(0x310)]('Failed\x20to\x20fetch');},_0x1b4f35);});},_0x3b715e=function(_0xfeb62e){const _0x303666=_0x276ad6;return _0x2e10a3(0x1,_0x303666(0x23a)+_0xfeb62e),JSON[_0x303666(0x2d8)](localStorage[_0x303666(0x333)](_0x303666(0x245))||'[]')[_0x303666(0x225)](_0x29f487=>_0x29f487[_0x303666(0x1a9)]===_0xfeb62e);},_0x53a055=function(_0x9cca1e,_0x47bb28,_0x1927b4){const _0x45acd9=_0x276ad6;if(!Object[_0x45acd9(0x16a)][_0x45acd9(0x1ca)]['call'](_0x9cca1e,_0x47bb28))return _0x45acd9(0x1db)+_0x47bb28+_0x45acd9(0x1fa);if(!_0x1927b4)return[];let _0xb834c6=_0x9cca1e[_0x47bb28];if(!(_0xb834c6!=null&&_0xb834c6['eventProperty']))return _0x2e10a3(0x2,'Event\x20'+_0x47bb28+_0x45acd9(0x301)),'Event\x20'+_0x47bb28+_0x45acd9(0x301);let _0x2773f0=_0x1927b4['filter'](({eventProperty:_0xec181a})=>!Object[_0x45acd9(0x16a)]['hasOwnProperty'][_0x45acd9(0x1cc)](_0xb834c6['eventProperty'],_0xec181a))['map'](({eventProperty:_0x2cfe5b})=>_0x2cfe5b);return _0x2773f0[_0x45acd9(0x322)]>0x0&&(_0x2e10a3(0x2,_0x45acd9(0x24e)+_0x47bb28+_0x45acd9(0x16c)+_0x2773f0[_0x45acd9(0x15f)](',\x20')+'.'),_0x1927b4=_0x1927b4[_0x45acd9(0x294)](({eventProperty:_0x2f75cd})=>!_0x2773f0['includes'](_0x2f75cd))),_0x1927b4[_0x45acd9(0x21b)](({eventProperty:_0x4742b8,value:_0xdd25b6})=>({'eventPropertyId':_0xb834c6['eventProperty'][_0x4742b8]['id'],'value':_0xdd25b6}));},_0x8f8ba4=function(_0xa37876){const _0xef7e10=_0x276ad6;return{'customerId':localStorage[_0xef7e10(0x333)]('customer')||'','deviceId':localStorage[_0xef7e10(0x333)](_0xef7e10(0x330))||'','events':[_0xa37876]};},_0x5f4303=function(_0x5b99bf){const _0xa6821=_0x276ad6;_0x2e10a3(0x1,'Adding\x20to\x20pre-initialized\x20event:'),_0x2e10a3(0x1,_0x5b99bf);let _0xa7d480=localStorage[_0xa6821(0x333)]('preInitializedEvents');_0xa7d480&&_0xa7d480!==_0xa6821(0x148)?(_0xa7d480=JSON[_0xa6821(0x2d8)](_0xa7d480),_0xa7d480[_0xa6821(0x329)](_0x5b99bf)):_0xa7d480=[_0x5b99bf],localStorage[_0xa6821(0x170)](_0xa6821(0x245),JSON[_0xa6821(0x2cc)](_0xa7d480));},_0x545f73=function(_0x55da86){const _0x5c3415=_0x276ad6;let _0x26c2c2=JSON[_0x5c3415(0x2d8)](localStorage[_0x5c3415(0x333)](_0x5c3415(0x245))||'[]'),_0x3f16b5=_0x26c2c2['findIndex'](_0x34ec35=>_0x34ec35[_0x5c3415(0x1d7)]===_0x55da86);_0x3f16b5>=0x0&&_0x26c2c2['splice'](_0x3f16b5,0x1),localStorage['setItem'](_0x5c3415(0x245),JSON[_0x5c3415(0x2cc)](_0x26c2c2));},_0x22ebb9(_0x52329d,_0x3a9720);var _0x53f7ac=_0x52329d,_0x107b20=_0x53f7ac[_0x276ad6(0x2e6)](),_0x1f806a,_0x1f985a,_0x5a3853,_0x585e16,_0x4ba55d,_0x2b4e4f,_0x29c4c6,_0x5249c1,_0xc87fde,_0x166b1d,_0x39efe7,_0x5ebced,_0x4be9f1=class _0x19a912{constructor(){_0x22ebb9(this,_0x1f985a),_0x22ebb9(this,_0x29c4c6,_0x3e4673=>{const _0x30ce6b=_0x3ff4;_0x42bd6d[_0x30ce6b(0x341)]({'id':_0x3e4673,'localStorageKey':_0x30ce6b(0x32b)});}),this['loadContentCardEventActionInLocalStorage']=()=>{const _0xdd9949=_0x3ff4;_0x42bd6d[_0xdd9949(0x345)]({'actionCondition':_0x4f6152=>_0x4f6152[_0xdd9949(0x1eb)][_0xdd9949(0x31c)]===_0xdd9949(0x2d4),'actionMethod':_0x1647a5=>_0x452988(this,_0x1f985a,_0x585e16)[_0xdd9949(0x1cc)](this,_0x1647a5[_0xdd9949(0x1a9)]),'localStorageKey':_0xdd9949(0x32b)});},_0x22ebb9(this,_0x5ebced,()=>{const _0x4df99d=_0x3ff4;_0x42bd6d['storeActionInLocalStorageInternal'](_0x4df99d(0x32b));});}static[_0x276ad6(0x2e6)](){const _0x1a3590=_0x276ad6;var _0x227253;return _0x57a522(_0x19a912,_0x1f806a)||(_0x5af28d(_0x19a912,_0x1f806a,new _0x19a912()),_0x452988(_0x227253=_0x57a522(_0x19a912,_0x1f806a),_0x1f985a,_0x5a3853)[_0x1a3590(0x1cc)](_0x227253)),_0x57a522(_0x19a912,_0x1f806a);}[_0x276ad6(0x356)](_0x414cc1){const _0x5b7724=_0x276ad6;let _0x47c5d3=JSON['parse'](localStorage[_0x5b7724(0x333)](_0x5b7724(0x32b))||'{}');if(_0x47c5d3&&_0x47c5d3[_0x414cc1==null?void 0x0:_0x414cc1[_0x5b7724(0x1a9)]]){_0x2e10a3(0x1,'ContentCard\x20already\x20in\x20cache');return;}_0x452988(this,_0x1f985a,_0x39efe7)[_0x5b7724(0x1cc)](this,_0x414cc1),_0x57a522(this,_0x5ebced)[_0x5b7724(0x1cc)](this),_0x452988(this,_0x1f985a,_0x585e16)[_0x5b7724(0x1cc)](this,_0x414cc1[_0x5b7724(0x1a9)]);}[_0x276ad6(0x309)](_0x2e5214){return _0x2e5214==='content_card';}};_0x1f806a=new WeakMap(),_0x1f985a=new WeakSet(),_0x5a3853=function(){return _0x116750(this,null,function*(){});},_0x585e16=function(_0x3c38bf){const _0x5c668c=_0x276ad6;let _0x3ea227=_0x452988(this,_0x1f985a,_0x4ba55d)[_0x5c668c(0x1cc)](this);if(document[_0x5c668c(0x2bd)]('contentCard_container_'+_0x3c38bf)){_0x2e10a3(0x1,'ContentCard\x20already\x20displayed'),_0x57a522(this,_0x29c4c6)[_0x5c668c(0x1cc)](this,_0x3c38bf);return;}if(_0x3ea227!=null&&_0x3ea227[_0x3c38bf])switch(_0x3ea227[_0x3c38bf][_0x5c668c(0x1b5)]){case _0x5c668c(0x327):{_0x452988(this,_0x1f985a,_0x2b4e4f)['call'](this,_0x3ea227[_0x3c38bf]);break;}case _0x5c668c(0x282):{_0x452988(this,_0x1f985a,_0x5249c1)[_0x5c668c(0x1cc)](this,_0x3ea227[_0x3c38bf]);break;}case _0x5c668c(0x2ea):{_0x452988(this,_0x1f985a,_0x166b1d)[_0x5c668c(0x1cc)](this,_0x3ea227[_0x3c38bf]);break;}default:return;}},_0x4ba55d=function(){const _0x3b68b1=_0x276ad6;let _0x33daf8=localStorage[_0x3b68b1(0x333)](_0x3b68b1(0x32b));return _0x33daf8?JSON[_0x3b68b1(0x2d8)](_0x33daf8):null;},_0x2b4e4f=function(_0x476670){const _0x3c9020=_0x276ad6;_0x42bd6d[_0x3c9020(0x268)]({'clearActionMethod':_0x57a522(this,_0x29c4c6)['bind'](this),'data':_0x476670,'displayMethod':_0x452988(this,_0x1f985a,_0x5249c1)[_0x3c9020(0x1c4)](this),'idKey':_0x3c9020(0x1a9),'timeValueKey':_0x3c9020(0x27b)});},_0x29c4c6=new WeakMap(),_0x5249c1=function(_0x541a71){const _0x557238=_0x276ad6;var _0x21ace9;if(document[_0x557238(0x2bd)](_0x557238(0x1c7)+_0x541a71['campaignId']))_0x2e10a3(0x1,_0x557238(0x276));else{let _0x2f0c95=_0x452988(this,_0x1f985a,_0xc87fde)['call'](this,'div',_0x541a71),_0x5b69a7=document[_0x557238(0x1a8)]('#'+_0x541a71[_0x557238(0x1eb)]['divId']);_0x5b69a7&&(_0x5b69a7[_0x557238(0x2c1)]=_0x2f0c95[_0x557238(0x285)],_0x107b20['recordEvent']({'campaignCustomerInstanceId':_0x541a71[_0x557238(0x2fb)],'campaignId':_0x541a71[_0x557238(0x1a9)],'eventName':_0x21f02f,'eventProperties':[{'eventProperty':_0x557238(0x1ee),'value':JSON[_0x557238(0x2cc)]({'campaignId':_0x541a71[_0x557238(0x1a9)]})}],'name':_0x557238(0x2d6)}),(_0x21ace9=document[_0x557238(0x2bd)](_0x557238(0x1c7)+_0x541a71[_0x557238(0x1a9)]))==null||_0x21ace9[_0x557238(0x25e)]('click',()=>{const _0x5cafb3=_0x557238;_0x107b20['recordEvent']({'campaignCustomerInstanceId':_0x541a71[_0x5cafb3(0x2fb)],'campaignId':_0x541a71['campaignId'],'eventName':_0x21f02f,'eventProperties':[{'eventProperty':_0x5cafb3(0x187),'value':JSON['stringify']({'campaignId':_0x541a71[_0x5cafb3(0x1a9)]})}],'name':'click'});}));}_0x57a522(this,_0x29c4c6)['call'](this,_0x541a71['campaignId']);},_0xc87fde=function(_0x3c64ee,_0x5ba817){const _0x3ebd66=_0x276ad6;var _0xdd29ac;let {campaignId:_0x3dfead,message:{design:_0x590094}}=_0x5ba817,_0xe3c2a6=document[_0x3ebd66(0x316)](_0x3c64ee);return _0xe3c2a6['id']='contentCard_container_'+_0x3dfead,_0xe3c2a6['innerHTML']=_0x590094,(_0xdd29ac=_0xe3c2a6[_0x3ebd66(0x1a8)](_0x3ebd66(0x1a3)))==null||_0xdd29ac[_0x3ebd66(0x177)](),_0xe3c2a6;},_0x166b1d=function(_0x3ebcce){const _0x19d414=_0x276ad6;_0x42bd6d[_0x19d414(0x2a8)]({'data':_0x3ebcce,'displayMethod':_0x452988(this,_0x1f985a,_0x5249c1)[_0x19d414(0x1c4)](this),'timeValueKey':_0x19d414(0x27b)});},_0x39efe7=function(_0x17b926){const _0x25d89f=_0x276ad6;_0x42bd6d[_0x25d89f(0x19a)](_0x17b926,'action',_0x25d89f(0x1a9));},_0x5ebced=new WeakMap(),_0x22ebb9(_0x4be9f1,_0x1f806a);var _0x5e7589=_0x4be9f1,_0x2eab71=_0x5e7589[_0x276ad6(0x2e6)](),_0x1d985d,_0x3e8d62,_0x5dda7f,_0x1ef630,_0x3faad3,_0x58798b,_0x1eb6dc,_0x13b6cc,_0x448399,_0x23a716,_0xee2b44,_0x1abdc3,_0x671af0,_0x494c41,_0x1e49e2,_0x5d103c,_0x3de066,_0x56274b,_0x2a53f5,_0x5cf314,_0x1284c8,_0x4208c0,_0xbd56e4,_0x3a6e2f,_0x3b58b9,_0x188efe,_0x5f11eb,_0x416f0d,_0x27ec3c,_0x5b4ed5=class _0x5d515c{constructor(){const _0x3308dc=_0x276ad6;_0x22ebb9(this,_0x448399),_0x22ebb9(this,_0x3e8d62),_0x22ebb9(this,_0x5dda7f),_0x22ebb9(this,_0x1ef630),_0x22ebb9(this,_0x3faad3,null),_0x22ebb9(this,_0x58798b,null),_0x22ebb9(this,_0x1eb6dc,!0x1),_0x22ebb9(this,_0x13b6cc,()=>{setInterval(()=>{const _0x4fc99b=_0x3ff4;_0x5483b1(_0x4fc99b(0x1da),()=>_0x116750(this,null,function*(){const _0x2c42b9=_0x4fc99b;let _0x3accd0=localStorage[_0x2c42b9(0x333)](_0x2c42b9(0x2aa));if(_0x3accd0!==_0x57a522(this,_0x58798b)){_0x2e10a3(0x1,_0x2c42b9(0x14e)),_0x5af28d(this,_0x58798b,_0x3accd0);let _0x1164fc=JSON[_0x2c42b9(0x2d8)](_0x3accd0||'{}');if(_0x1164fc!=null&&_0x1164fc['pushMessageToSW']){_0x2e10a3(0x1,'Pushing\x20message\x20to\x20SW\x20from\x20Shopify\x20data');let _0xd244a7=_0x1164fc[_0x2c42b9(0x14a)];delete _0x1164fc[_0x2c42b9(0x14a)],localStorage[_0x2c42b9(0x170)](_0x2c42b9(0x2aa),JSON['stringify'](_0x1164fc)),_0x165e57['pushMessageToSW'](_0xd244a7);}if(_0x1164fc!=null&&_0x1164fc[_0x2c42b9(0x209)]){let _0x1ee8d5=_0x1164fc['optIn'];delete _0x1164fc['optIn'],localStorage[_0x2c42b9(0x170)](_0x2c42b9(0x2aa),JSON[_0x2c42b9(0x2cc)](_0x1164fc)),_0x165e57[_0x2c42b9(0x2cd)](_0x1ee8d5);}if(_0x1164fc!=null&&_0x1164fc[_0x2c42b9(0x2a3)]){let _0x20ab57=_0x1164fc['campaigns'];delete _0x1164fc[_0x2c42b9(0x2a3)],localStorage[_0x2c42b9(0x170)](_0x2c42b9(0x2aa),JSON[_0x2c42b9(0x2cc)](_0x1164fc)),_0x20ab57[_0x2c42b9(0x1dd)](_0x46991a=>{const _0x377780=_0x2c42b9;_0x4cb41a[_0x377780(0x2b8)](_0x46991a['message']['name'])?_0x4cb41a['showPopup'](_0x46991a):_0x2eab71['isContentCardAction'](_0x46991a[_0x377780(0x1eb)][_0x377780(0x31c)])&&_0x2eab71[_0x377780(0x356)](_0x46991a);});}}}));},0x3e8);}),this[_0x3308dc(0x2a4)]=_0x126679=>{const _0x2415d6=_0x3308dc;let _0x162721=()=>{const _0x213460=_0x3ff4;let _0x32155f=JSON['parse'](localStorage[_0x213460(0x333)](_0x126679)||'{}');Object['keys'](_0x32155f)[_0x213460(0x1dd)](_0x3f15d2=>{const _0x37722d=_0x213460;_0x32155f[_0x3f15d2]['initialTime']=new Date()[_0x37722d(0x278)]();}),localStorage[_0x213460(0x170)](_0x126679,JSON[_0x213460(0x2cc)](_0x32155f));};_0x162721(),window[_0x2415d6(0x25e)]('beforeunload',_0x162721);},this['clearActionInLocalStorage']=({id:_0x5b27a5,localStorageKey:_0x3ada27})=>{const _0x385998=_0x3308dc;let _0x499ea3=JSON['parse'](localStorage['getItem'](_0x3ada27)||'{}');_0x499ea3[_0x5b27a5]&&delete _0x499ea3[_0x5b27a5],localStorage[_0x385998(0x170)](_0x3ada27,JSON['stringify'](_0x499ea3));},this[_0x3308dc(0x345)]=({actionCondition:_0x528d7e,actionMethod:_0x82af7f,localStorageKey:_0x2769cf})=>{const _0x42fc90=_0x3308dc;let _0x2f84f1=JSON['parse'](localStorage[_0x42fc90(0x333)](_0x2769cf)||'{}');Object['keys'](_0x2f84f1)[_0x42fc90(0x1dd)](_0x84ce4f=>{_0x528d7e(_0x2f84f1[_0x84ce4f])&&_0x82af7f(_0x2f84f1[_0x84ce4f]);});};}static[_0x276ad6(0x2e6)](){return _0x57a522(_0x5d515c,_0x1d985d)||_0x5af28d(_0x5d515c,_0x1d985d,new _0x5d515c()),_0x57a522(_0x5d515c,_0x1d985d);}[_0x276ad6(0x296)](_0x7924f9,_0x40e1c4){return _0x116750(this,null,function*(){const _0x263cec=_0x3ff4;_0x2e10a3(0x1,_0x263cec(0x2d0));let _0x5da853=_0x452988(this,_0x448399,_0x671af0)['call'](this);if(_0x40e1c4!=null&&_0x40e1c4[_0x263cec(0x274)]&&_0x5af28d(this,_0x1eb6dc,!0x0),_0x452988(this,_0x448399,_0x23a716)[_0x263cec(0x1cc)](this,_0x7924f9),_0x416800['getBrandId']()==='35'){_0x31ac51[_0x263cec(0x1c6)]=!0x0;return;}let _0x5df5a9=this[_0x263cec(0x2f3)]();if(_0x5df5a9===_0x263cec(0x1a2)||_0x5df5a9===_0x263cec(0x2b1)){_0x2e10a3(0x2,_0x263cec(0x222));return;}if(yield _0x416800[_0x263cec(0x28b)](),_0x2e10a3(0x1,_0x263cec(0x23e)),yield _0x452988(this,_0x448399,_0x3b58b9)[_0x263cec(0x1cc)](this,0x3),_0x40e1c4!=null&&_0x40e1c4[_0x263cec(0x274)]&&_0x57a522(this,_0x13b6cc)[_0x263cec(0x1cc)](this),_0x40e1c4!=null&&_0x40e1c4[_0x263cec(0x1bf)])try{_0x31ac51['loading']=!0x0,yield this[_0x263cec(0x224)](_0x40e1c4[_0x263cec(0x1bf)]);}finally{_0x31ac51['loading']=!0x1;}yield this[_0x263cec(0x337)](),yield _0x107b20['recordEventsFromQueue'](),yield _0x1454be['recordAttributeFromQueue'](),_0x107b20[_0x263cec(0x17e)]({'eventName':'base_init'}),_0x2e10a3(0x1,'Initializing\x20notification\x20service\x20from\x20Base\x20Service'),yield _0x5483b1('notification\x20service',()=>_0x116750(this,null,function*(){const _0x5acac3=_0x263cec;yield _0x165e57[_0x5acac3(0x296)](_0x5da853,_0x40e1c4==null?void 0x0:_0x40e1c4[_0x5acac3(0x286)],_0x40e1c4==null?void 0x0:_0x40e1c4['isExtensionSW']);})),yield _0x452988(this,_0x448399,_0x27ec3c)[_0x263cec(0x1cc)](this,_0x40e1c4==null?void 0x0:_0x40e1c4[_0x263cec(0x274)]);let _0x50f49d=history['pushState'];history['pushState']=(..._0x23f7ad)=>{const _0x5926e6=_0x263cec;_0x50f49d[_0x5926e6(0x1b6)](history,_0x23f7ad),_0x452988(this,_0x448399,_0x416f0d)['call'](this,_0x40e1c4==null?void 0x0:_0x40e1c4[_0x5926e6(0x274)]);},_0x2e10a3(0x1,_0x263cec(0x2ac));});}[_0x276ad6(0x1cd)](_0x25ec4f){_0x5af28d(this,_0x3e8d62,_0x25ec4f);}[_0x276ad6(0x360)](_0x3f3d63){_0x5af28d(this,_0x5dda7f,_0x3f3d63);}[_0x276ad6(0x19e)](_0x47bde2){_0x5af28d(this,_0x1ef630,_0x47bde2);}[_0x276ad6(0x279)](_0xb8e96d){_0x5af28d(this,_0x3faad3,_0xb8e96d);}['getPreviousUrl'](){return _0x57a522(this,_0x3faad3);}['getPlatform'](){return _0x57a522(this,_0x3e8d62);}[_0x276ad6(0x26e)](){return _0x57a522(this,_0x5dda7f);}[_0x276ad6(0x249)](){return _0x57a522(this,_0x1ef630);}['updateSessionCreated'](){}[_0x276ad6(0x2a8)]({data:_0x15be8d,displayMethod:_0x149973,timeValueKey:_0xab39ab}){const _0x58374b=_0x276ad6;let _0x417c83=()=>{const _0x2bf201=_0x3ff4;var _0x35e5a9;let _0x3500d7=window[_0x2bf201(0x1d4)],_0x57b62f=document[_0x2bf201(0x24f)][_0x2bf201(0x353)];window[_0x2bf201(0x2dc)]/(_0x57b62f-_0x3500d7)*0x64>(((_0x35e5a9=_0x15be8d[_0xab39ab])==null?void 0x0:_0x35e5a9[_0x2bf201(0x167)])||0x0)&&(window[_0x2bf201(0x287)](_0x2bf201(0x15e),_0x417c83),_0x149973(_0x15be8d));};window[_0x58374b(0x25e)](_0x58374b(0x15e),_0x417c83);}[_0x276ad6(0x268)]({clearActionMethod:_0x5f46a9,data:_0x2322b3,displayMethod:_0x2fe077,idKey:_0xfe11e6,timeValueKey:_0x376646}){const _0x5d953e=_0x276ad6;var _0x246ed8,_0x153271,_0x4113fc;let _0x2f951a=(_0x246ed8=_0x2322b3[_0x376646])==null?void 0x0:_0x246ed8['value'];((_0x153271=_0x2322b3[_0x376646])==null?void 0x0:_0x153271[_0x5d953e(0x2cf)])==='min'&&(_0x2f951a=_0x2f951a*0x3c);let _0xa8855c=_0x2322b3['initialTime']-0x1f4+(_0x2f951a||0x0)*0x3e8-new Date()[_0x5d953e(0x278)]();_0x2e10a3(0x1,_0x5d953e(0x299)+_0x2322b3[_0x5d953e(0x181)]),_0x2e10a3(0x1,_0x5d953e(0x1ae)+((_0x4113fc=_0x2322b3[_0x376646])==null?void 0x0:_0x4113fc[_0x5d953e(0x167)])),_0x2e10a3(0x1,_0x5d953e(0x338)+new Date()[_0x5d953e(0x278)]()),_0x2e10a3(0x1,_0x5d953e(0x340)+_0xa8855c),_0xa8855c>0x0?setTimeout(()=>{_0x5f46a9(_0x2322b3[_0xfe11e6]),_0x2fe077(_0x2322b3);},_0xa8855c):(_0x5f46a9(_0x2322b3[_0xfe11e6]),_0x2fe077(_0x2322b3));}[_0x276ad6(0x19a)](_0x526f08,_0x177a5d,_0x24fe3d){const _0x246a2f=_0x276ad6;var _0x3af1c7;let _0x377837=JSON[_0x246a2f(0x2d8)](localStorage[_0x246a2f(0x333)](_0x177a5d)||'{}'),_0x576fc6=(_0x3af1c7=_0x24fe3d in _0x526f08&&_0x526f08[_0x24fe3d])!=null?_0x3af1c7:'';_0x576fc6&&(_0x377837[_0x576fc6]=_0x11a8ae(_0xb235aa({},_0x526f08),{'initialTime':new Date()[_0x246a2f(0x278)]()}),localStorage['setItem'](_0x177a5d,JSON['stringify'](_0x377837)));}['checkTTL'](){return _0x116750(this,null,function*(){const _0x2a8110=_0x3ff4;yield _0x5483b1(_0x2a8110(0x19b),()=>_0x116750(this,null,function*(){const _0x5ab592=_0x2a8110;if(_0x57a522(this,_0x1eb6dc))return;_0x2e10a3(0x1,_0x5ab592(0x2b4)),_0x5a901b(_0x5ab592(0x2b4),!0x0),_0xa7aee2(_0x5ab592(0x21e),!0x0);let _0x45590e=localStorage[_0x5ab592(0x333)](_0x5ab592(0x260)),_0x2eb067=!0x1;if(_0x2eb067=_0x452988(this,_0x448399,_0x671af0)[_0x5ab592(0x1cc)](this,_0x45590e),_0x2eb067){let _0x3f3beb=localStorage[_0x5ab592(0x333)](_0x5ab592(0x35e)),_0x5eff07=localStorage[_0x5ab592(0x333)](_0x5ab592(0x260));if(_0x3f3beb&&_0x5eff07){let _0x36102e=parseInt(_0x5eff07,0xa);yield _0x107b20[_0x5ab592(0x21d)]({'eventName':_0x5ab592(0x218),'eventProperties':[{'eventProperty':'SESSION_ID','value':localStorage[_0x5ab592(0x333)](_0x5ab592(0x35e))},{'eventProperty':_0x5ab592(0x2bf),'value':Number['isInteger'](_0x36102e)?new Date(_0x36102e)[_0x5ab592(0x34c)]():new Date()['toISOString']()}]});}localStorage[_0x5ab592(0x26a)](_0x5ab592(0x260)),localStorage['removeItem'](_0x5ab592(0x35e)),localStorage[_0x5ab592(0x170)](_0x5ab592(0x260),''+new Date()[_0x5ab592(0x278)]()),yield _0x452988(this,_0x448399,_0x1284c8)[_0x5ab592(0x1cc)](this),this['clearLocalStorage']();}(!_0x45590e||_0x2eb067||_0x452988(this,_0x448399,_0x2a53f5)['call'](this))&&(_0x452988(this,_0x448399,_0x3de066)[_0x5ab592(0x1cc)](this)&&_0x452988(this,_0x448399,_0x5cf314)[_0x5ab592(0x1cc)](this),_0x452988(this,_0x448399,_0x5d103c)[_0x5ab592(0x1cc)](this)&&(yield this[_0x5ab592(0x224)]()),(_0x452988(this,_0x448399,_0x671af0)[_0x5ab592(0x1cc)](this)||_0x452988(this,_0x448399,_0x494c41)[_0x5ab592(0x1cc)](this))&&(yield _0x452988(this,_0x448399,_0xbd56e4)[_0x5ab592(0x1cc)](this)),yield _0x452988(this,_0x448399,_0x1284c8)[_0x5ab592(0x1cc)](this),(_0x452988(this,_0x448399,_0x671af0)[_0x5ab592(0x1cc)](this)||_0x452988(this,_0x448399,_0x1e49e2)[_0x5ab592(0x1cc)](this))&&(yield _0x452988(this,_0x448399,_0x3a6e2f)[_0x5ab592(0x1cc)](this))),_0xa7aee2(_0x5ab592(0x21e),!0x1),_0x5a901b(_0x5ab592(0x2b4),!0x1);}));});}[_0x276ad6(0x351)](){const _0x557ea6=_0x276ad6;localStorage[_0x557ea6(0x26a)](_0x557ea6(0x32b)),localStorage[_0x557ea6(0x26a)](_0x557ea6(0x354)),localStorage[_0x557ea6(0x26a)](_0x557ea6(0x1d9)),localStorage['removeItem'](_0x557ea6(0x35c));}[_0x276ad6(0x2b5)](_0x5d6692){return!0x1;}[_0x276ad6(0x189)](_0x4a5b08){const _0x8cea2b=_0x276ad6;let _0x844e03=this[_0x8cea2b(0x33c)](_0x4a5b08);this['setCookie'](_0x8cea2b(0x307),_0x844e03,0x16d);}['removeIdentity'](){const _0x143299=_0x276ad6;document[_0x143299(0x213)]=_0x143299(0x18e);}[_0x276ad6(0x33c)](_0x44c6d6){const _0x5eb2be=_0x276ad6;let _0x45f3cf=new TextEncoder()[_0x5eb2be(0x23c)](_0x44c6d6),_0x5ba40c='';for(let _0x2b37fb=0x0;_0x2b37fb<_0x45f3cf[_0x5eb2be(0x322)];_0x2b37fb++)_0x5ba40c+=String[_0x5eb2be(0x1d2)](_0x45f3cf[_0x2b37fb]);return btoa(_0x5ba40c);}[_0x276ad6(0x2a1)](_0x6b4209){const _0x305885=_0x276ad6;let _0x11cf0c=atob(_0x6b4209),_0x2818c0=new Uint8Array(_0x11cf0c[_0x305885(0x322)]);for(let _0x4490ca=0x0;_0x4490ca<_0x11cf0c[_0x305885(0x322)];_0x4490ca++)_0x2818c0[_0x4490ca]=_0x11cf0c[_0x305885(0x191)](_0x4490ca);return new TextDecoder()[_0x305885(0x332)](_0x2818c0);}['getCookie'](_0x5eb067){const _0x5a3123=_0x276ad6;var _0x47a10b;let _0x1ba5c9=(';\x20'+document[_0x5a3123(0x213)])['split'](';\x20'+_0x5eb067+'=');return _0x1ba5c9['length']===0x2&&((_0x47a10b=_0x1ba5c9[_0x5a3123(0x2ce)]())==null?void 0x0:_0x47a10b[_0x5a3123(0x363)](';')[_0x5a3123(0x308)]())||null;}['setCookie'](_0x4f330e,_0x4652c6,_0x13a3cc){const _0x27f262=_0x276ad6;let _0x59fc78=new Date();_0x59fc78[_0x27f262(0x300)](_0x59fc78[_0x27f262(0x278)]()+_0x13a3cc*0x18*0x3c*0x3c*0x3e8);let _0x38c9d4='expires='+_0x59fc78[_0x27f262(0x352)]();document[_0x27f262(0x213)]=_0x4f330e+'='+_0x4652c6+';\x20'+_0x38c9d4+_0x27f262(0x1d8);}[_0x276ad6(0x224)](_0x2cf952){return _0x116750(this,null,function*(){const _0x50714b=_0x3ff4;_0x2e10a3(0x1,_0x50714b(0x185)),_0x2e10a3(0x1,_0x2cf952);let _0x3e3840=this[_0x50714b(0x2b5)](_0x2cf952);if(_0x2e10a3(0x1,_0x50714b(0x1ad)+_0x3e3840),typeof _0x3e3840==_0x50714b(0x314)&&_0x3e3840)return;let _0x5a2104=localStorage[_0x50714b(0x333)](_0x50714b(0x330));(!_0x5a2104||_0x5a2104===_0x50714b(0x148))&&(_0x5a2104=_0x452988(this,_0x448399,_0x5cf314)[_0x50714b(0x1cc)](this));let _0x2cfe00={'deviceId':_0x5a2104,'os':this[_0x50714b(0x2f3)]()};if(_0x2cf952)_0x2cfe00['identity']=_0x2cf952;else{if(typeof _0x3e3840==_0x50714b(0x198))_0x2cfe00[_0x50714b(0x1bf)]=_0x3e3840;else{if(!_0x2cf952&&localStorage[_0x50714b(0x333)](_0x50714b(0x237)))return;}}try{_0x2e10a3(0x1,_0x50714b(0x304)),_0x2e10a3(0x1,_0x2cfe00),this[_0x50714b(0x189)](_0x2cfe00[_0x50714b(0x1bf)]),_0x2cfe00[_0x50714b(0x34a)]=localStorage['getItem'](_0x50714b(0x237))||'';let _0x2da0f5=yield _0x452988(this,_0x448399,_0x4208c0)[_0x50714b(0x1cc)](this,_0x2cfe00);if(_0x2da0f5!==void 0x0){localStorage[_0x50714b(0x170)](_0x50714b(0x237),_0x2da0f5);try{_0x165e57[_0x50714b(0x14a)]({'customer':_0x2da0f5});}catch(_0x11e5ac){}}}catch(_0xf7712a){throw this[_0x50714b(0x334)](),new Error(_0x50714b(0x357));}});}['getVersion'](){return _0x352c5b;}};_0x1d985d=new WeakMap(),_0x3e8d62=new WeakMap(),_0x5dda7f=new WeakMap(),_0x1ef630=new WeakMap(),_0x3faad3=new WeakMap(),_0x58798b=new WeakMap(),_0x1eb6dc=new WeakMap(),_0x13b6cc=new WeakMap(),_0x448399=new WeakSet(),_0x23a716=function(_0x31dd40){const _0x2e5c8b=_0x276ad6;_0x416800[_0x2e5c8b(0x2dd)](_0x31dd40),this[_0x2e5c8b(0x1cd)](_0x452988(this,_0x448399,_0xee2b44)[_0x2e5c8b(0x1cc)](this)),this[_0x2e5c8b(0x360)](_0x452988(this,_0x448399,_0x1abdc3)[_0x2e5c8b(0x1cc)](this)),this[_0x2e5c8b(0x19e)](navigator[_0x2e5c8b(0x21f)]);},_0xee2b44=function(){const _0x2e1c94=_0x276ad6;var _0x28cea7;let _0x2b9b04=navigator[_0x2e1c94(0x21f)][_0x2e1c94(0x149)]();return/googlebot|bingbot|yandexbot|duckduckbot|slurp|twitterbot|linkedinbot|facebot|pinterest|vkshare|applebot|baiduspider|adsbot-google|msnbot|yahoobot|sogou|facebookexternalhit/i[_0x2e1c94(0x228)](_0x2b9b04)?_0x2e1c94(0x1a2):/wv|wkwebview|instagram|facebook|fbav|fban|twitter|snapchat|pinterest|linkedin|tiktok/i['test'](_0x2b9b04)?_0x2e1c94(0x2ec):/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x2e1c94(0x228)](_0x2b9b04)?(_0x2e1c94(0x243)in window&&typeof((_0x28cea7=window==null?void 0x0:window['Notification'])==null?void 0x0:_0x28cea7[_0x2e1c94(0x1ce)])!='undefined',_0x2e1c94(0x2ec)):/windows|macintosh|linux|x11/i[_0x2e1c94(0x228)](_0x2b9b04)?_0x2e1c94(0x343):'Unknown';},_0x1abdc3=function(){const _0x16f232=_0x276ad6;let _0x4850cc=navigator['userAgent'],_0x240693;return _0x4850cc[_0x16f232(0x1a4)]('Instagram')>-0x1?_0x240693=_0x16f232(0x203):_0x4850cc['indexOf'](_0x16f232(0x2c2))>-0x1||_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x2cb))>-0x1||_0x4850cc[_0x16f232(0x1a4)]('FBAN')>-0x1?_0x240693='Facebook':_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x2ab))>-0x1?_0x240693=_0x16f232(0x2ab):_0x4850cc['indexOf']('Snapchat')>-0x1?_0x240693=_0x16f232(0x1b4):_0x4850cc['indexOf']('LinkedIn')>-0x1?_0x240693=_0x16f232(0x1dc):_0x4850cc[_0x16f232(0x1a4)]('TikTok')>-0x1?_0x240693=_0x16f232(0x22a):_0x4850cc['indexOf']('Chrome')>-0x1&&_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x20f))===-0x1?_0x240693=_0x16f232(0x17a):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x28f))>-0x1&&_0x4850cc['indexOf'](_0x16f232(0x30a))===-0x1?_0x240693=_0x16f232(0x28f):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x28c))>-0x1?_0x240693=_0x16f232(0x32f):_0x4850cc[_0x16f232(0x1a4)]('Edg')>-0x1?_0x240693=_0x16f232(0x342):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x223))>-0x1||_0x4850cc['indexOf']('Trident')>-0x1?_0x240693=_0x16f232(0x14f):_0x4850cc[_0x16f232(0x1a4)]('Opera')>-0x1||_0x4850cc['indexOf']('OPR')>-0x1?_0x240693=_0x16f232(0x1a0):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x204))>-0x1?_0x240693='Vivaldi':_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x290))>-0x1?_0x240693=_0x16f232(0x290):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x1ef))>-0x1?_0x240693=_0x16f232(0x152):_0x4850cc[_0x16f232(0x1a4)]('UCBrowser')>-0x1?_0x240693=_0x16f232(0x346):_0x4850cc['indexOf'](_0x16f232(0x2e1))>-0x1?_0x240693=_0x16f232(0x2e9):_0x4850cc['indexOf'](_0x16f232(0x2de))>-0x1?_0x240693=_0x16f232(0x20c):_0x4850cc[_0x16f232(0x1a4)](_0x16f232(0x173))>-0x1?_0x240693=_0x16f232(0x2f4):_0x240693=_0x16f232(0x2b1),_0x240693;},_0x671af0=function(_0x4ca5fb){const _0x58af5a=_0x276ad6;let _0x46dad2;return _0x4ca5fb||(_0x46dad2=localStorage[_0x58af5a(0x333)](_0x58af5a(0x260))),_0x4ca5fb||_0x46dad2?new Date()[_0x58af5a(0x278)]()-parseInt(_0x4ca5fb||_0x46dad2||'',0xa)>0x124f80:!0x0;},_0x494c41=function(){const _0xe3e2ca=_0x276ad6;return!localStorage[_0xe3e2ca(0x333)](_0xe3e2ca(0x354));},_0x1e49e2=function(){const _0x4884c2=_0x276ad6;return!localStorage[_0x4884c2(0x333)](_0x4884c2(0x1d9));},_0x5d103c=function(){const _0x53ad97=_0x276ad6;return!localStorage[_0x53ad97(0x333)](_0x53ad97(0x237));},_0x3de066=function(){const _0x2a0830=_0x276ad6;return!localStorage[_0x2a0830(0x333)](_0x2a0830(0x330));},_0x56274b=function(){const _0x47cb3b=_0x276ad6;return!localStorage[_0x47cb3b(0x333)](_0x47cb3b(0x35e));},_0x2a53f5=function(){const _0x5a07f5=_0x276ad6;return _0x452988(this,_0x448399,_0x494c41)[_0x5a07f5(0x1cc)](this)||_0x452988(this,_0x448399,_0x1e49e2)[_0x5a07f5(0x1cc)](this)||_0x452988(this,_0x448399,_0x5d103c)[_0x5a07f5(0x1cc)](this)||_0x452988(this,_0x448399,_0x3de066)[_0x5a07f5(0x1cc)](this)||_0x452988(this,_0x448399,_0x56274b)[_0x5a07f5(0x1cc)](this);},_0x5cf314=function(){const _0x371486=_0x276ad6;let _0x5cc12c=localStorage[_0x371486(0x333)](_0x371486(0x330));return _0x5cc12c||(_0x5cc12c=crypto[_0x371486(0x233)](),localStorage[_0x371486(0x170)](_0x371486(0x330),_0x5cc12c)),_0x5cc12c;},_0x1284c8=function(){return _0x116750(this,null,function*(){const _0x534082=_0x3ff4;yield _0x5483b1(_0x534082(0x24a),()=>_0x116750(this,null,function*(){const _0x1f2e4d=_0x534082;let _0x55e297=localStorage[_0x1f2e4d(0x333)](_0x1f2e4d(0x35e));if(!_0x55e297){_0x55e297=crypto['randomUUID'](),localStorage[_0x1f2e4d(0x170)](_0x1f2e4d(0x35e),_0x55e297);let _0x296048=localStorage[_0x1f2e4d(0x333)](_0x1f2e4d(0x260)),_0x350273=_0x296048?parseInt(_0x296048,0xa):'';yield _0x107b20['recordEvent']({'eventName':_0x1f2e4d(0x262),'eventProperties':[{'eventProperty':_0x1f2e4d(0x250),'value':localStorage['getItem'](_0x1f2e4d(0x35e))},{'eventProperty':'SESSION_CREATED','value':_0x350273?new Date(_0x350273)[_0x1f2e4d(0x34c)]():new Date()[_0x1f2e4d(0x34c)]()}]});}}),_0x48dbab=>{const _0x214fa1=_0x534082;_0x416800[_0x214fa1(0x30f)]()==='67'&&_0x48dbab['message']!==_0x214fa1(0x211)&&_0x48dbab['message'];});});},_0x4208c0=function(_0x550ff7){return _0x116750(this,null,function*(){const _0x5249cf=_0x3ff4;try{return(yield _0x416800[_0x5249cf(0x238)](''+_0x44f677+_0x5402f3,_0x550ff7))[_0x5249cf(0x179)];}catch(_0x13a5c1){throw new Error('Error\x20posting\x20identity\x20data');}});},_0xbd56e4=function(){return _0x116750(this,null,function*(){const _0x509443=_0x3ff4;yield _0x107b20[_0x509443(0x15c)]();});},_0x3a6e2f=function(){return _0x116750(this,null,function*(){const _0x15afa8=_0x3ff4;yield _0x1454be[_0x15afa8(0x18c)]();});},_0x3b58b9=function(_0x2bef94){return _0x116750(this,null,function*(){const _0x4cbffa=_0x3ff4;yield _0x5483b1(_0x4cbffa(0x2d1),()=>_0x116750(this,null,function*(){const _0x4d02e0=_0x4cbffa;var _0x56d870;try{let _0x3aa976=parseInt(localStorage[_0x4d02e0(0x333)](_0x4d02e0(0x18f))||'0',0xa)||0x0;if(!_0x3aa976||_0x3aa976&&new Date()[_0x4d02e0(0x278)]()>_0x3aa976){let _0x47c1e7=yield _0x416800[_0x4d02e0(0x2d9)](_0x4d02e0(0x292));if(!(_0x47c1e7!=null&&_0x47c1e7[_0x4d02e0(0x1b1)]))throw new Error(JSON['stringify'](_0x47c1e7));localStorage[_0x4d02e0(0x170)]('verifyTTL',(new Date()[_0x4d02e0(0x278)]()+0x493e0)['toString']());}_0x31ac51[_0x4d02e0(0x1c6)]=!0x1,_0x31ac51[_0x4d02e0(0x1bb)]=!0x0;}catch(_0x4426b4){if(_0x416800['getBrandId']()==='67'&&!((_0x56d870=_0x4426b4==null?void 0x0:_0x4426b4['message'])!=null&&_0x56d870[_0x4d02e0(0x264)](_0x4d02e0(0x2d9)))&&(_0x4426b4==null?void 0x0:_0x4426b4[_0x4d02e0(0x1eb)])!==_0x4d02e0(0x200)&&_0x4426b4[_0x4d02e0(0x1eb)]!==_0x4d02e0(0x211)&&_0x4426b4[_0x4d02e0(0x1eb)],_0x2bef94&&_0x2bef94>=0x1){yield new Promise(_0x2a7086=>setTimeout(_0x2a7086,0x5dc)),yield _0x452988(this,_0x448399,_0x3b58b9)[_0x4d02e0(0x1cc)](this,_0x2bef94-0x1);return;}throw _0x31ac51[_0x4d02e0(0x1c6)]=!0x0,new Error(_0x4d02e0(0x200));}}));});},_0x188efe=function(_0x2ee1a8){return _0x116750(this,null,function*(){const _0x2e6385=_0x3ff4;let _0x456427=new TextEncoder()['encode'](_0x2ee1a8),_0x2a079e=yield crypto[_0x2e6385(0x2d5)][_0x2e6385(0x362)](_0x2e6385(0x293),_0x456427);return Array[_0x2e6385(0x2fd)](new Uint8Array(_0x2a079e))[_0x2e6385(0x21b)](_0x4634df=>_0x4634df['toString'](0x10)[_0x2e6385(0x1c9)](0x2,'0'))[_0x2e6385(0x15f)]('');});},_0x5f11eb=function(_0x23a68c){return _0x116750(this,null,function*(){const _0x18bebe=_0x3ff4;var _0x549504;_0x2e10a3(0x1,_0x18bebe(0x25f));let _0x34bab5=(_0x549504=window==null?void 0x0:window[_0x18bebe(0x215)])==null?void 0x0:_0x549504['href'];if(this['setPreviousUrl'](_0x34bab5),_0x23a68c){setTimeout(()=>{const _0x2d9cf7=_0x18bebe;_0x5483b1(_0x2d9cf7(0x190),()=>_0x116750(this,null,function*(){const _0xb43649=_0x2d9cf7;if(_0x416800[_0xb43649(0x30f)]()===_0xb43649(0x178)){let _0x58d91d=localStorage[_0xb43649(0x333)]('customer');window[_0xb43649(0x190)]&&_0x58d91d&&(_0x2e10a3(0x1,_0xb43649(0x18b)),window[_0xb43649(0x190)]('dataProcessingOptions',[]),window[_0xb43649(0x190)](_0xb43649(0x296),_0xb43649(0x344),{'external_id':yield _0x452988(this,_0x448399,_0x188efe)['call'](this,_0x58d91d)}),window[_0xb43649(0x190)](_0xb43649(0x2fe),_0xb43649(0x166)),_0x2e10a3(0x1,_0xb43649(0x348)));}}));},0x3e8),_0x34bab5[_0x18bebe(0x310)]('thank_you')&&(yield _0x107b20[_0x18bebe(0x21d)]({'eventName':'Thank\x20you\x20page'}));return;}_0x107b20[_0x18bebe(0x17e)]({'eventName':_0x18bebe(0x2f9)});let _0x4c36dd=[];new URLSearchParams(new URL(window[_0x18bebe(0x215)][_0x18bebe(0x193)])[_0x18bebe(0x2fc)])['forEach']((_0x278ef1,_0x31c67a)=>_0x116750(this,null,function*(){const _0x22a90c=_0x18bebe;_0x258525[_0x22a90c(0x18a)](_0x31c67a)&&_0x4c36dd[_0x22a90c(0x329)]({'eventProperty':_0x31c67a,'value':_0x278ef1});})),yield _0x107b20['recordEvent']({'eventName':_0x18bebe(0x1cf),'eventProperties':[{'eventProperty':_0x18bebe(0x1fb),'value':window[_0x18bebe(0x215)]['pathname']},..._0x4c36dd]});});},_0x416f0d=function(_0x1eaee5){return _0x116750(this,null,function*(){const _0x144888=_0x3ff4;var _0x3e1c8a;_0x2e10a3(0x1,'Tracking\x20page\x20change');let _0x45e585=(_0x3e1c8a=window==null?void 0x0:window[_0x144888(0x215)])==null?void 0x0:_0x3e1c8a['href'];(this[_0x144888(0x19f)]()===null||this[_0x144888(0x19f)]()===void 0x0||_0x45e585!==this[_0x144888(0x19f)]())&&(yield _0x452988(this,_0x448399,_0x5f11eb)[_0x144888(0x1cc)](this,_0x1eaee5));});},_0x27ec3c=function(_0x22432b){return _0x116750(this,null,function*(){const _0x40e2a5=_0x3ff4;var _0x17eafc,_0x1072fb;let _0x59cc7b=(_0x17eafc=window==null?void 0x0:window[_0x40e2a5(0x215)])==null?void 0x0:_0x17eafc[_0x40e2a5(0x193)];_0x107b20['recordDebugEvents']({'eventName':_0x40e2a5(0x2da),'eventProperties':[{'eventProperty':_0x40e2a5(0x1eb),'value':(_0x59cc7b!==this[_0x40e2a5(0x19f)]())+':'+_0x59cc7b+':'+this['getPreviousUrl']()}]});try{yield _0x452988(this,_0x448399,_0x5f11eb)['call'](this,_0x22432b);}catch(_0x2c7257){let _0x1a3bbe=_0x2c7257&&_0x2c7257[_0x40e2a5(0x1eb)]?(_0x1072fb=_0x2c7257==null?void 0x0:_0x2c7257[_0x40e2a5(0x1eb)])==null?void 0x0:_0x1072fb['substring'](0x0,0x64):'undefined';yield _0x107b20['recordDebugEvents']({'eventName':_0x40e2a5(0x210),'eventProperties':[{'eventProperty':'message','value':''+_0x1a3bbe}]});}});},_0x22ebb9(_0x5b4ed5,_0x1d985d);var _0x53f0e6=_0x5b4ed5,_0x42bd6d=_0x53f0e6[_0x276ad6(0x2e6)](),_0x409140,_0x36076b,_0x127016,_0x336393,_0x7126d9,_0x2657b6,_0x2f506e,_0x55ed75,_0x174551,_0xdf4082,_0x39f92c,_0x6804ae=class _0x31978f{constructor(){_0x22ebb9(this,_0x127016),_0x22ebb9(this,_0x36076b,!0x1);}static['getInstance'](){const _0x4237b3=_0x276ad6;var _0x4e85f1;return _0x57a522(_0x31978f,_0x409140)||(_0x5af28d(_0x31978f,_0x409140,new _0x31978f()),_0x452988(_0x4e85f1=_0x57a522(_0x31978f,_0x409140),_0x127016,_0x336393)[_0x4237b3(0x1cc)](_0x4e85f1)),_0x57a522(_0x31978f,_0x409140);}['recordAttributeFromQueue'](){return _0x116750(this,null,function*(){yield _0x5483b1('#\x20recordAttributeFromQueue',()=>_0x116750(this,null,function*(){const _0x13c83e=_0x3ff4;let _0x1d8dbf=JSON[_0x13c83e(0x2d8)](localStorage[_0x13c83e(0x333)](_0x13c83e(0x298))||'[]');if(Array[_0x13c83e(0x33b)](_0x1d8dbf))for(let _0x57a681 of _0x1d8dbf){if(_0x2e10a3(0x1,'Recording\x20pre-initialized\x20attributes'),_0x2e10a3(0x1,_0x57a681),yield this[_0x13c83e(0x289)](_0x57a681[_0x13c83e(0x28e)],_0x57a681[_0x13c83e(0x153)])){_0x2e10a3(0x1,'Pre\x20Initialized\x20Attribute\x20'+_0x57a681[_0x13c83e(0x28e)]+_0x13c83e(0x180)+_0x57a681['attributeValue']),_0x452988(this,_0x127016,_0x2f506e)[_0x13c83e(0x1cc)](this,_0x57a681['attributeName'],_0x57a681[_0x13c83e(0x153)]);return;}yield _0x452988(this,_0x127016,_0x55ed75)[_0x13c83e(0x1cc)](this,{'attributeName':_0x57a681['attributeName'],'attributeValue':_0x57a681[_0x13c83e(0x153)]});}}));});}[_0x276ad6(0x226)](_0x159b03,_0x2ea91e,_0x3203e2){return _0x116750(this,null,function*(){const _0x135dfe=_0x3ff4;if(yield this[_0x135dfe(0x289)](_0x159b03,_0x2ea91e)){_0x2e10a3(0x1,'Attribute\x20'+_0x159b03+'\x20already\x20exists\x20with\x20value\x20'+_0x2ea91e),_0x452988(this,_0x127016,_0x2f506e)['call'](this,_0x159b03,_0x2ea91e);return;}_0x452988(this,_0x127016,_0x2657b6)[_0x135dfe(0x1cc)](this,_0x159b03),_0x452988(this,_0x127016,_0x7126d9)['call'](this,_0x159b03,_0x2ea91e),_0x31ac51[_0x135dfe(0x1bb)]&&!_0x31ac51['loading']&&(yield _0x452988(this,_0x127016,_0x55ed75)[_0x135dfe(0x1cc)](this,{'attributeName':_0x159b03,'attributeProperties':_0x3203e2,'attributeValue':_0x2ea91e}));});}[_0x276ad6(0x18c)](){return _0x116750(this,null,function*(){const _0x48beb3=_0x3ff4;if(!localStorage[_0x48beb3(0x333)]('attributes')&&!_0x57a522(this,_0x36076b)){_0x5af28d(this,_0x36076b,!0x0);try{let _0x2266c7=(yield this[_0x48beb3(0x1f3)]())[_0x48beb3(0x179)];_0x2266c7&&localStorage['setItem'](_0x48beb3(0x1d9),JSON['stringify'](_0x2266c7));}catch(_0x1f5015){throw new Error('Error\x20storing\x20attribute\x20data\x20in\x20local\x20storage');}finally{_0x5af28d(this,_0x36076b,!0x1);}}});}[_0x276ad6(0x1f3)](){return _0x116750(this,null,function*(){const _0x36ebe9=_0x3ff4;try{return yield _0x416800[_0x36ebe9(0x2d9)](''+_0x4f8d4a);}catch(_0x341de1){throw new Error('Error\x20fetching\x20attribute\x20data');}});}[_0x276ad6(0x1f9)](_0x186996,_0x5a3917){return _0x116750(this,null,function*(){const _0x2455d6=_0x3ff4;let _0x522190=_0x42bd6d[_0x2455d6(0x28a)]('mergn_customer_attributes'),_0x3d3f43;if(!_0x522190)_0x3d3f43={};else{let _0x1e59ba=_0x42bd6d[_0x2455d6(0x2a1)](_0x522190);_0x3d3f43=JSON['parse'](_0x1e59ba);}_0x3d3f43[_0x186996]=_0x5a3917;let _0x516cc9=_0x42bd6d[_0x2455d6(0x33c)](JSON[_0x2455d6(0x2cc)](_0x3d3f43));_0x42bd6d[_0x2455d6(0x29f)](_0x2455d6(0x2a5),_0x516cc9,0x16d);});}[_0x276ad6(0x2f7)](_0x5c3c37){return _0x116750(this,null,function*(){const _0xc966cf=_0x3ff4;let _0x52fa08=_0x42bd6d[_0xc966cf(0x28a)](_0xc966cf(0x2a5)),_0x2436ef;if(!_0x52fa08)_0x2436ef={};else{let _0x23f046=_0x42bd6d[_0xc966cf(0x2a1)](_0x52fa08);_0x2436ef=JSON['parse'](_0x23f046);}delete _0x2436ef[_0x5c3c37];let _0x25788e=_0x42bd6d[_0xc966cf(0x33c)](JSON[_0xc966cf(0x2cc)](_0x2436ef));_0x42bd6d[_0xc966cf(0x29f)](_0xc966cf(0x2a5),_0x25788e,0x16d);});}[_0x276ad6(0x289)](_0x48ef24,_0x3f43af){return _0x116750(this,null,function*(){const _0xe617e1=_0x3ff4;let _0xcb2de9=_0x42bd6d[_0xe617e1(0x28a)](_0xe617e1(0x2a5));if(!_0xcb2de9)return!0x1;let _0x52cef1=_0x42bd6d[_0xe617e1(0x2a1)](_0xcb2de9),_0xef21cd=JSON[_0xe617e1(0x2d8)](_0x52cef1);return Object[_0xe617e1(0x16a)][_0xe617e1(0x1ca)][_0xe617e1(0x1cc)](_0xef21cd,_0x48ef24)?_0x3f43af!==void 0x0?_0xef21cd[_0x48ef24]===_0x3f43af:!0x0:!0x1;});}};_0x409140=new WeakMap(),_0x36076b=new WeakMap(),_0x127016=new WeakSet(),_0x336393=function(){return _0x116750(this,null,function*(){});},_0x7126d9=function(_0x5e4593,_0xc9ec16){const _0x3d9374=_0x276ad6;let _0x27a10b=JSON['parse'](localStorage['getItem']('preInitializedAttributes')||'[]');_0x27a10b[_0x3d9374(0x329)]({'attributeName':_0x5e4593,'attributeValue':_0xc9ec16}),localStorage['setItem'](_0x3d9374(0x298),JSON[_0x3d9374(0x2cc)](_0x27a10b));},_0x2657b6=function(_0x16cd81){return _0x116750(this,null,function*(){const _0x3d6229=_0x3ff4;let _0x1972a4=JSON[_0x3d6229(0x2d8)](localStorage[_0x3d6229(0x333)](_0x3d6229(0x298))||'[]');for(let _0x42c064 of _0x1972a4)_0x42c064[_0x3d6229(0x28e)]===_0x16cd81&&(_0x1972a4[_0x3d6229(0x339)](_0x1972a4[_0x3d6229(0x1a4)](_0x42c064),0x1),localStorage[_0x3d6229(0x170)](_0x3d6229(0x298),JSON[_0x3d6229(0x2cc)](_0x1972a4)));});},_0x2f506e=function(_0x212431,_0x31a7a6){return _0x116750(this,null,function*(){const _0xef6841=_0x3ff4;let _0x1030f8=JSON[_0xef6841(0x2d8)](localStorage[_0xef6841(0x333)]('preInitializedAttributes')||'[]');for(let _0x117c20 of _0x1030f8)JSON[_0xef6841(0x2cc)](_0x117c20)===JSON[_0xef6841(0x2cc)]({'attributeName':_0x212431,'attributeValue':_0x31a7a6})&&(_0x1030f8[_0xef6841(0x339)](_0x1030f8[_0xef6841(0x1a4)](_0x117c20),0x1),localStorage['setItem']('preInitializedAttributes',JSON['stringify'](_0x1030f8)));});},_0x55ed75=function(_0x5e801e){return _0x116750(this,arguments,function*({attributeName:_0x24185b,attributeProperties:_0x3a035a,attributeValue:_0x40d817}){const _0x37a839=_0x3ff4;yield _0x5483b1(_0x37a839(0x273),()=>_0x116750(this,null,function*(){const _0x2d2cff=_0x37a839;if(_0x2e10a3(0x1,_0x2d2cff(0x2be)),_0x5a901b(_0x2d2cff(0x2be),!0x0),_0xa7aee2(_0x2d2cff(0x1f5),!0x0),_0x2e10a3(0x1,_0x2d2cff(0x26d)),_0x2e10a3(0x1,'Attribute\x20Name:\x20'+_0x24185b+_0x2d2cff(0x1e8)+_0x40d817),!_0x40d817||_0x40d817===''){_0x2e10a3(0x2,_0x2d2cff(0x201));return;}yield _0x42bd6d[_0x2d2cff(0x337)](),yield _0x452988(this,_0x127016,_0xdf4082)[_0x2d2cff(0x1cc)](this);let _0x9eb144=JSON[_0x2d2cff(0x2d8)](localStorage['getItem'](_0x2d2cff(0x1d9))||'{}'),_0x4b3d08=_0x3a035a?_0x452988(this,_0x127016,_0x174551)['call'](this,_0x9eb144,_0x24185b,_0x3a035a):_0x452988(this,_0x127016,_0x174551)[_0x2d2cff(0x1cc)](this,_0x9eb144,_0x24185b);if(typeof _0x4b3d08==_0x2d2cff(0x198)){_0x2e10a3(0x2,_0x4b3d08);return;}_0x9eb144[_0x24185b][_0x2d2cff(0x1c8)]&&(yield _0x42bd6d[_0x2d2cff(0x224)](typeof _0x40d817=='string'?_0x40d817:JSON['stringify'](_0x40d817))),_0x42bd6d[_0x2d2cff(0x32d)]();let {id:_0x413700}=_0x9eb144[_0x24185b],_0x4ac986={'attributeId':_0x413700,'attributeProperties':_0x4b3d08,'customerId':localStorage['getItem'](_0x2d2cff(0x237))||'','deviceId':localStorage[_0x2d2cff(0x333)](_0x2d2cff(0x330))||'','sdkVersion':_0x42bd6d[_0x2d2cff(0x2b3)](),'should_set_identity':_0x9eb144[_0x24185b][_0x2d2cff(0x1c8)],'value':_0x40d817};yield _0x452988(this,_0x127016,_0x39f92c)['call'](this,_0x4ac986,_0x24185b,_0x40d817),_0x452988(this,_0x127016,_0x2f506e)[_0x2d2cff(0x1cc)](this,_0x24185b,_0x40d817),_0xa7aee2(_0x2d2cff(0x1f5),!0x1),_0x5a901b(_0x2d2cff(0x2be),!0x1);}));});},_0x174551=function(_0x3fc150,_0x314c17,_0x11c6db){const _0x46e607=_0x276ad6;if(!Object[_0x46e607(0x16a)][_0x46e607(0x1ca)][_0x46e607(0x1cc)](_0x3fc150,_0x314c17))return _0x46e607(0x1b9)+_0x314c17+'\x20is\x20not\x20valid.';if(!_0x11c6db)return[];let _0x362551=_0x3fc150[_0x314c17];if(!(_0x362551!=null&&_0x362551[_0x46e607(0x349)]))return'Attribute\x20'+_0x314c17+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x1b3da5=_0x11c6db[_0x46e607(0x294)](({attributeProperty:_0x29ed04})=>!Object[_0x46e607(0x16a)][_0x46e607(0x1ca)][_0x46e607(0x1cc)](_0x362551['attributeProperty'],_0x29ed04))['map'](({attributeProperty:_0x508793})=>_0x508793);return _0x1b3da5['length']>0x0?_0x46e607(0x1b9)+_0x314c17+_0x46e607(0x2c7)+_0x1b3da5[_0x46e607(0x15f)](',\x20')+'.':_0x11c6db[_0x46e607(0x21b)](({attributeProperty:_0x6b0c02,value:_0x177d87})=>({'attributePropertyId':_0x362551['attributeProperty'][_0x6b0c02]['id'],'value':_0x177d87}));},_0xdf4082=function(){return _0x116750(this,null,function*(){const _0x4bbb15=_0x3ff4;localStorage[_0x4bbb15(0x333)](_0x4bbb15(0x1d9))||(yield this[_0x4bbb15(0x18c)]());});},_0x39f92c=function(_0x4021c1,_0x12da5f,_0x160b19){return _0x116750(this,null,function*(){const _0x4a6fed=_0x3ff4;try{return yield this[_0x4a6fed(0x1f9)](_0x12da5f,_0x160b19),yield _0x416800['post'](''+_0x4f8d4a+_0x438c29,_0x4021c1);}catch(_0x15b20b){throw yield this[_0x4a6fed(0x2f7)](_0x12da5f),new Error(_0x4a6fed(0x172));}});},_0x22ebb9(_0x6804ae,_0x409140);var _0x148957=_0x6804ae,_0x1454be=_0x148957[_0x276ad6(0x2e6)](),_0xe63b25,_0x589317=class _0x594bfb{constructor(){}static[_0x276ad6(0x2e6)](){return _0x57a522(_0x594bfb,_0xe63b25)||_0x5af28d(_0x594bfb,_0xe63b25,new _0x594bfb()),_0x57a522(_0x594bfb,_0xe63b25);}[_0x276ad6(0x296)](_0x128978,_0x98705d){setTimeout(()=>{const _0x581ded=_0x3ff4;_0x5483b1(_0x581ded(0x296),()=>_0x116750(this,null,function*(){const _0x319b22=_0x581ded;yield _0x5483b1('log\x20level\x20check',()=>_0x116750(this,null,function*(){const _0x47880a=_0x3ff4;_0x2e10a3(0x1,_0x47880a(0x242));let _0x18ef0a=localStorage[_0x47880a(0x333)](_0x47880a(0x27c));_0x18ef0a&&(_0x31ac51[_0x47880a(0x1fe)]=parseInt(_0x18ef0a,0xa));})),_0x2e10a3(0x1,_0x319b22(0x305)),yield _0x42bd6d[_0x319b22(0x296)](_0x128978,_0x98705d),!_0x31ac51[_0x319b22(0x1c6)]&&(_0x107b20[_0x319b22(0x17e)]({'eventName':_0x319b22(0x150)}),_0x2e10a3(0x1,_0x319b22(0x2c9)),window['addEventListener']('online',()=>_0x116750(this,null,function*(){const _0x2aa8f0=_0x319b22;_0x31ac51[_0x2aa8f0(0x2e4)]=!0x1;let _0x5d6dda=JSON[_0x2aa8f0(0x2d8)](localStorage[_0x2aa8f0(0x333)]('offlineEvents')||'[]');Array['isArray'](_0x5d6dda)&&(yield _0x107b20[_0x2aa8f0(0x171)]({'customerId':localStorage[_0x2aa8f0(0x333)](_0x2aa8f0(0x237))||'','deviceId':localStorage['getItem'](_0x2aa8f0(0x330))||'','events':_0x5d6dda}),localStorage[_0x2aa8f0(0x26a)](_0x2aa8f0(0x35c))),_0x42bd6d[_0x2aa8f0(0x337)](),_0x42bd6d[_0x2aa8f0(0x32d)]();})),window[_0x319b22(0x25e)](_0x319b22(0x2e4),()=>{const _0x527eee=_0x319b22;_0x31ac51[_0x527eee(0x2e4)]=!0x0;}),window['addEventListener']('load',()=>{const _0x27b8c8=_0x319b22;_0x4cb41a['loadPopupEventActionInLocalStorage'](),_0x165e57[_0x27b8c8(0x2b2)]();}));}));});}['setDebugLevel'](_0x422ed2,_0x31a2d1){const _0x28e7e0=_0x276ad6;if(_0x31ac51['disableSDK']||document[_0x28e7e0(0x215)][_0x28e7e0(0x193)]===_0x28e7e0(0x2c6))return;let _0x25dab0=localStorage[_0x28e7e0(0x333)](_0x28e7e0(0x27c));if(_0x25dab0){_0x31ac51[_0x28e7e0(0x1fe)]=parseInt(_0x25dab0,0xa);try{_0x165e57['pushMessageToSW']({'debugLevel':_0x422ed2});}catch(_0x151f2a){}return;}if(!(_0x422ed2 in _0x2a995f)){console[_0x28e7e0(0x161)]('Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203');return;}_0x31ac51[_0x28e7e0(0x1e7)]=_0x31a2d1||{},_0x31ac51['debugLevel']=_0x422ed2;try{_0x165e57[_0x28e7e0(0x14a)]({'debugLevel':_0x422ed2});}catch(_0x335369){}}[_0x276ad6(0x226)](_0x534184,_0x65d393){return _0x116750(this,null,function*(){return _0x2e10a3(0x1,'attributeName'),_0x2e10a3(0x1,_0x534184),_0x2e10a3(0x1,'attributeValue'),_0x2e10a3(0x1,_0x65d393),new Promise((_0x4871be,_0x1e0af9)=>{setTimeout(()=>_0x116750(this,null,function*(){const _0x5ea029=_0x3ff4;try{yield _0x5483b1(_0x5ea029(0x226),()=>_0x116750(this,null,function*(){const _0x15bcc0=_0x5ea029;let _0x14a579='';return Array['isArray'](_0x65d393)?_0x14a579=JSON[_0x15bcc0(0x2cc)](_0x65d393):typeof _0x65d393==_0x15bcc0(0x2c4)?_0x14a579=''+_0x65d393:_0x14a579=_0x65d393,_0x2e10a3(0x1,_0x15bcc0(0x2be)),_0x2e10a3(0x1,_0x15bcc0(0x267)+_0x534184+',\x20Attribute\x20Value:\x20'+_0x14a579),new Promise((_0x1306f0,_0x40f43c)=>{setTimeout(()=>_0x116750(this,null,function*(){const _0xae8892=_0x3ff4;try{yield _0x1454be[_0xae8892(0x226)](_0x534184,_0x14a579),_0x1306f0();}catch(_0x5f328a){_0x40f43c(_0x5f328a);}}));});})),_0x4871be();}catch(_0x1ae788){_0x1e0af9(_0x1ae788);}}));});});}['login'](_0x406285){return _0x116750(this,null,function*(){return new Promise((_0x2912ad,_0x5a1680)=>{setTimeout(()=>_0x116750(this,null,function*(){const _0x5c8f80=_0x3ff4;try{yield _0x5483b1('login',()=>_0x116750(this,null,function*(){const _0x297616=_0x3ff4;_0x2e10a3(0x1,_0x297616(0x1a7)),_0x2e10a3(0x1,_0x297616(0x257)+_0x406285),_0x31ac51[_0x297616(0x1ff)]=!0x0,yield _0x42bd6d[_0x297616(0x224)](_0x406285);})),_0x2912ad();}catch(_0x524f22){_0x5a1680(_0x524f22);}finally{_0x31ac51[_0x5c8f80(0x1ff)]=!0x1,yield _0x107b20['recordEventsFromQueue'](),yield _0x1454be[_0x5c8f80(0x1e0)]();}}));});});}[_0x276ad6(0x2ed)](){setTimeout(()=>{_0x5483b1('logout',()=>_0x116750(this,null,function*(){const _0x4c9983=_0x3ff4;_0x2e10a3(0x1,_0x4c9983(0x19d)),_0x42bd6d[_0x4c9983(0x351)]();}));});}[_0x276ad6(0x21d)](_0x5f1b9d,_0x252111){return _0x116750(this,null,function*(){return new Promise((_0x4beb0d,_0xfc770f)=>{setTimeout(()=>_0x116750(this,null,function*(){const _0x4b1a07=_0x3ff4;try{yield _0x5483b1(_0x4b1a07(0x2bb),()=>_0x116750(this,null,function*(){const _0x35a777=_0x4b1a07;if(_0x2e10a3(0x1,_0x35a777(0x27e)),_0x2e10a3(0x1,_0x35a777(0x270)+{'eventName':_0x5f1b9d,'eventProperties':_0x252111}),!_0x5f1b9d||typeof _0x5f1b9d!=_0x35a777(0x198)){_0x2e10a3(0x2,_0x35a777(0x202));return;}return new Promise((_0x5a3502,_0x41d1d1)=>{setTimeout(()=>_0x116750(this,null,function*(){try{yield _0x107b20['recordEvent']({'eventName':_0x5f1b9d,'eventProperties':_0x252111}),_0x5a3502();}catch(_0x57a1ed){_0x41d1d1(_0x57a1ed);}}));});})),_0x4beb0d();}catch(_0x44231b){_0xfc770f(_0x44231b);}}));});});}[_0x276ad6(0x2b3)](){return _0x352c5b;}};_0xe63b25=new WeakMap(),_0x22ebb9(_0x589317,_0xe63b25);var _0x3817ff=_0x589317,_0x552af3=_0x3817ff[_0x276ad6(0x2e6)]();typeof window!=_0x276ad6(0x148)&&(window[_0x276ad6(0x1e4)]=_0x552af3);var _0x3a8899=_0x552af3;})());function _0x5e05(){const _0xfc33d6=['Baidu\x20Browser','substring','img','Edg','vwp_error','Failed\x20to\x20fetch','99999999','cookie','pushToQueue','location','web_push_action','Pushing\x20message\x20to\x20service\x20worker\x20for\x20initialization','Web\x20Session\x20Concluded','mergn-column-25','button_1','map','ALL','recordEvent','Checking\x20TTL\x20Time','userAgent','defineProperty','unsubscribe','Not\x20initializing\x20base\x20service\x20for\x20crawlers\x20or\x20unknown\x20platforms','MSIE','setIdentity','find','recordAttribute','UTM_CONTENT','test','login','TikTok','textContent','logo','UTM_SOURCE','toString','lastSyncTime','viewed','resolve','serviceWorker','randomUUID','type','Popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','Checking\x20for\x20existing\x20subscription','customer','retryPost','utm_medium','Checking\x20if\x20popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','Error\x20posting\x20event\x20record:','encode','\x0awidth:\x2025%;\x0a','Verifying\x20API\x20Key','1059374PqEwjY','scriptURL','subtitle','Log\x20level\x20check','Notification','time','preInitializedEvents','Displayed\x20Web\x20Push\x20Subscription','User\x20granted\x20the\x20notification\x20permission.','1.0.223','getOperatingSystem','store\x20session','apiKey','showPopup','getAPIKey','Filtering\x20Event\x20','documentElement','SESSION_ID','u_content_form_','67361TGRjIo','/device/add-device-token','mergn-row','overflow','Turned\x20Off\x20Notification\x20Reset\x20Permission','Identity:\x20','FBCLID','\x0amax-width:\x20100%;\x0aheight:\x20auto;\x0a','\x0awidth:\x2073%;\x0amargin-left:\x202%;\x0a','Existing\x20Subscription:\x20','Form\x20submitted\x20values:','reject','addEventListener','Performing\x20viewed\x20web\x20page\x20event','ttl','Closed\x20Web\x20Push\x20Subscription','Web\x20Session\x20Started','div','startsWith','UTM_CAMPAIGN','\x0apadding:\x2012px\x2020px;\x0aborder:\x20none;\x0abackground-color:\x20\x20','Attribute\x20Name:\x20','showDelayedAction','Allowed\x20Web\x20Push\x20Subscription','removeItem','No\x20existing\x20subscription\x20found','done','Attribute\x20Payload:','getOSVersion','580098nJhPEV','Event\x20Payload:\x0a\x20','tagName','\x0abackground-color:\x20','#\x20recordAttribute','shopify','UTM_TERM','ContentCard\x20already\x20displayed','\x0amax-width:\x20100%;\x0aheight:\x20auto;\x0adisplay:\x20block;\x0amargin-left:\x20auto;\x0amargin-right:\x20auto;\x0aborder-radius:\x2010px;\x0amax-width:\x20350px;\x0aaspect-ratio:\x202\x20/\x201;\x0a','getTime','setPreviousUrl','check_permission','campaignEntryTimeValue','mergn_debug_level','denied','Recording\x20event','NONE','zIndex','Popup\x20already\x20displayed','IMMEDIATELY','log\x20level\x20check','existing_subscription','outerHTML','swPath','removeEventListener','4276225XhuYya','checkIfAttributeExists','getCookie','syncRealWorldTime','Firefox','\x20Time','attributeName','Safari','Brave','click','/brand','SHA-256','filter','padding','init','script','preInitializedAttributes','Initial\x20time:\x20','style','left','push_manager','100%','info','setCookie','Form\x20Submit','decodeData','Cannot\x20','campaigns','storeActionInLocalStorageInternal','mergn_customer_attributes','body','Service\x20Worker\x20registration\x20failed:','showAfterScrollAction','getOwnPropertyDescriptors','mergn_shopify','Twitter','tracking\x20page\x20change\x20register','width','INFO','getSubscription','fbclid','Unknown','loadWebPushActionInLocalStorage','getVersion','Checking\x20TTL','checkIfIdentityExists','pushManager','\x0aMergnError:\x20','isPopupAction','isExtensionSW:\x20','utm_campaign','record\x20event','entries','getElementById','Recording\x20attribute','SESSION_CREATED','User\x20closed\x20the\x20notification\x20permission\x20dialog.','innerHTML','Facebook','web_optin_instance_id','number','Reachability\x20Push\x20Web','https://www.broadwaypizza.com.pk/','\x20has\x20invalid\x20attributeProperties:\x20','Denied\x20Web\x20Push\x20Soft-ask','Mergn\x20SDK\x20Initialized','Mergn\x20not\x20initialized!','FBAV','stringify','showNotification','pop','duration','Initializing\x20base\x20service','verify\x20API\x20key','Service\x20Worker\x20registration\x20is\x20available','\x20already\x20in\x20cache','ContentCard','subtle','view','/set-identity','parse','get','show_notification_error','form','scrollY','updateAPIKey','Baidu','Platform','timeEnd','QQBrowser','Popup','mergn-column-75','offline','7577840nLVkPa','getInstance',';\x0acolor:\x20','Load\x20failed','QQ\x20Browser','SCROLL','INFO:\x20','Mobile','logout','Initializing\x20Notification\x20Service','utm_content','banner_design','2165128jKqOhf','Error\x20posting\x20event\x20record','getPlatform','Sogou\x20Browser','loadPopupEventActionInLocalStorage','Already\x20Registered\x20To\x20Web\x20Push','removeAttribute','Customer\x20with\x20id\x20','pre_vwp','button-2','campaignCustomerInstanceId','search','from','trackCustom','Service\x20Worker\x20ready','setTime','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','display','Existing\x20subscription\x20found','Setting\x20identity\x20to:','Initializing\x20Mergn\x20SDK','keys','mergn_identity','shift','isContentCardAction','Chrome','propertyIsEnumerable','title','src','\x0adisplay:\x20flex;\x0ajustify-content:\x20space-between;\x0aalign-items:\x20center;\x0aflex-wrap:\x20nowrap;\x0awidth:\x20100%;\x0a','getBrandId','includes','json','/attribute','parentElement','boolean','defineProperties','createElement','centered-image','#\x20Recording\x20event','10635156cLUEPg','\x0aposition:\x20fixed;\x0atop:\x200;\x0aleft:\x200;\x0awidth:\x20100%;\x0aheight:\x20100%;\x0abackground-color:\x20rgba(0,\x200,\x200,\x200.5);\x0az-index:\x2099999999999;\x0adisplay:\x20flex;\x0ajustify-content:\x20center;\x0aalign-items:\x20start;\x0a','button_2','name','Popup\x20Action','querySelectorAll','notification_data','Failed\x20to\x20request\x20notification\x20permission','alt','length','TypeError','POST','setApiURL','\x20-\x20','DELAY','next','push','notification_service_not_initialized','action','register','updateSessionCreated','os-version','Mozilla\x20Firefox','uniqueIdentity','setProperty','decode','getItem','removeIdentity','No\x20events\x20to\x20record','The\x20user\x20has\x20already\x20enabled\x20notifications.','checkTTL','Current\x20time:\x20','splice','#\x20record\x20event','isArray','encodeData','Notification\x20permission:\x20','backgroundColor','notification_permission_error','Time\x20difference:\x20','clearActionInLocalStorage','Microsoft\x20Edge','Web','2793393330816842','loadActionInLocalStorage','UC\x20Browser','Popup\x20already\x20in\x20cache','Assigned\x20external_id\x20to\x20Mergn\x20PageView\x20Event','attributeProperty','currentCustomer','auto','toISOString','getOwnPropertySymbols','ERROR','[id^=\x22u_content_button_\x22]','fixed','clearLocalStorage','toUTCString','scrollHeight','events','text_color','showContentCard','Error\x20setting\x20identity','UTCDate','default','Campaign\x20Id','retryPromise','offlineEvents','className','session','Failed\x20to\x20sync\x20real-world\x20time','setOSVersion','onLine','digest','split','OriginateFrom:\x20','undefined','toLowerCase','pushMessageToSW','throw','/apps/mergn/mergn-sw.js','then','Shopify\x20data\x20changed','Internet\x20Explorer','mergn_init','button-1','Samsung\x20Internet','attributeValue','recordEventPreInitialized','entry_time_value','operating-system','Turned\x20Off\x20Notification','UTC\x20Date\x20or\x20last\x20sync\x20time\x20is\x20not\x20set','\x0aUnexpected\x20error:\x20','API_URL','groupEnd','storeEventsAndPropertiesInLocalStorage','postMessage','scroll','join','hidden','error','Failed\x20to\x20subscribe\x20the\x20user','gclid','Error\x20fetching\x20event\x20data','height','Mergn\x20PageView','value','cssText','User\x20is\x20subscribed','prototype','subscribed','\x20invalid\x20eventProperties:\x20','Image','brandId','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','setItem','postEventRecord','Error\x20posting\x20attribute\x20record','Sogou','put','Button\x20Click','text','remove','441','data','Google\x20Chrome','no_optin','banner_text','User\x20denied\x20the\x20notification\x20permission.','recordDebugEvents','signal','\x20already\x20exists\x20with\x20value\x20','initialTime','button','mergn-sw.js','Notification\x20','identity\x20received:\x20','recordEventsFromQueue','Content\x20Card\x20Click',';\x0apadding:\x2015px;\x0aborder-radius:\x205px;\x0amax-width:\x20380px;\x0amax-height:\x20463px;\x0a','storeIdentity','has','Assigning\x20external_id\x20to\x20Mergn\x20PageView\x20Event','storeAttributeInLocalStorage','read\x20from\x20private\x20field','mergn_identity=;\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','verifyTTL','fbq','charCodeAt','getStoredEvents','href','group','color','Image\x20Click','appendChild','string','Content\x20Card\x20Action','storeActionInLocalStorage','#\x20check\x20TTL','already_registered','Logging\x20out','setOperatingSystem','getPreviousUrl','Opera','catch','Crawlers','.u-close-button','indexOf','requestPermission','subscribe','Logging\x20in','querySelector','campaignId','Getting\x20Web\x20Key:\x20','getAttribute','service_worker','local\x20identity:\x20','Time\x20value:\x20','message:\x20','application/json','success','top','Recording\x20event\x20Time','Snapchat','campaignEntryTime','apply','/v2','Failed\x20to\x20check\x20notification\x20permission','Attribute\x20','update','isInitialized','PushManager','banner_image','pathname','identity','block','Notification\x20service\x20is\x20not\x20initialized','Event\x20Payload','active','bind','write\x20to\x20private\x20field','disableSDK','contentCard_container_','should_set_identity','padStart','hasOwnProperty','design','call','setPlatform','permission','Viewed\x20Webpage','match','ERROR:\x20','fromCharCode','Re\x20initializing\x20customer\x20Id','innerHeight','/brand/get-web-push-public-key',';\x0acursor:\x20pointer;\x0aborder-radius:\x205px;\x0awidth:\x2048%;\x0a','eventName',';\x20path=/;\x20secure;\x20SameSite=Strict','attributes','listen\x20to\x20shopify\x20data','Event\x20','LinkedIn','forEach','optin_data','getCurrentUTCDate','recordAttributeFromQueue','Popup\x20View','access\x20private\x20method','fetchEventData','mergn','.u-popup-overlay','banner_color','recordDebugEventsToggle','\x20|\x20Attribute\x20Value:\x20','set','queue','message','UTM_MEDIUM','GAD_SOURCE','Content\x20Card\x20View','SamsungBrowser','Viewed\x20Web\x20Push\x20Soft-ask','popup_container_','post','fetchAttributeData','DEBUG','Recording\x20attribute\x20Time','/set-attribute','Mergn\x20SDK\x20is\x20disabled!','AbortError','storeAttribute','\x20is\x20not\x20valid.','URL','https://api.mergn.com/sdk-management/api','\x0adisplay:\x20flex;\x0aflex-wrap:\x20wrap;\x0amargin-bottom:\x2010px;\x0a','debugLevel','loading','Error\x20verifying\x20API\x20key','Attribute\x20value\x20is\x20required','Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','Instagram','Vivaldi','Service\x20Worker\x20and\x20Push\x20Manager\x20are\x20supported','entry_time','MergnError','/brand/get-time','optIn','utm_term','button-container'];_0x5e05=function(){return _0xfc33d6;};return _0x5e05();}