mergn-webapp-sdk 1.0.4 → 1.0.6
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.
- package/README.md +13 -5
- package/dist/index.d.mts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,10 +40,7 @@ mergn.recordEvent('Product viewed', [{ eventProperty: 'Mens Accessories', value:
|
|
|
40
40
|
Records or updates the attributes of user such as name, age or address.
|
|
41
41
|
|
|
42
42
|
```javascript
|
|
43
|
-
mergn.recordAttribute(
|
|
44
|
-
name: 'John Smith',
|
|
45
|
-
age: 5,
|
|
46
|
-
});
|
|
43
|
+
mergn.recordAttribute('Age', 35);
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
### User Login
|
|
@@ -72,8 +69,19 @@ max event queue limit is 50, after which events are ignored
|
|
|
72
69
|
|
|
73
70
|
### Debugging
|
|
74
71
|
|
|
72
|
+
! MUST DISABLE ON PRODUCTION
|
|
73
|
+
|
|
75
74
|
To show logs while debugging
|
|
76
75
|
|
|
77
76
|
```javascript
|
|
78
|
-
mergn.
|
|
77
|
+
mergn.setDebugLevel(LOG_LEVEL);
|
|
79
78
|
```
|
|
79
|
+
|
|
80
|
+
`LOG_LEVEL` (mandatory): Enter corresponding value:
|
|
81
|
+
|
|
82
|
+
`NONE = 0,
|
|
83
|
+
INFO = 1,
|
|
84
|
+
ERROR = 2,
|
|
85
|
+
ALL = 3,`
|
|
86
|
+
|
|
87
|
+
Default is 0
|
package/dist/index.d.mts
CHANGED
|
@@ -3,11 +3,10 @@ declare class MergnService {
|
|
|
3
3
|
private constructor();
|
|
4
4
|
static getInstance(): MergnService;
|
|
5
5
|
init(apiKey: string): void;
|
|
6
|
-
|
|
7
|
-
recordAttribute(
|
|
8
|
-
login(identity: string):
|
|
9
|
-
|
|
10
|
-
logout(): Promise<void>;
|
|
6
|
+
setDebugLevel(debugLevel: number): void;
|
|
7
|
+
recordAttribute(attributeName: string, attributeValue: string): void;
|
|
8
|
+
login(identity: string): void;
|
|
9
|
+
logout(): void;
|
|
11
10
|
recordEvent(eventName: string, eventProperties?: {
|
|
12
11
|
eventProperty: string;
|
|
13
12
|
value: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,11 +3,10 @@ declare class MergnService {
|
|
|
3
3
|
private constructor();
|
|
4
4
|
static getInstance(): MergnService;
|
|
5
5
|
init(apiKey: string): void;
|
|
6
|
-
|
|
7
|
-
recordAttribute(
|
|
8
|
-
login(identity: string):
|
|
9
|
-
|
|
10
|
-
logout(): Promise<void>;
|
|
6
|
+
setDebugLevel(debugLevel: number): void;
|
|
7
|
+
recordAttribute(attributeName: string, attributeValue: string): void;
|
|
8
|
+
login(identity: string): void;
|
|
9
|
+
logout(): void;
|
|
11
10
|
recordEvent(eventName: string, eventProperties?: {
|
|
12
11
|
eventProperty: string;
|
|
13
12
|
value: any;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x255e(){const _0x22119a=['IMMEDIATELY','parse','access\x20private\x20method','pushState','campaignCustomerInstanceId','uniqueIdentity','appendChild','setItem','innerHTML','AxiosError:\x20','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','Image\x20Click','status','value','view','scrollY','load','updateAPIKey','popup_container_','getItem','disableSDK','customer','Mergn\x20not\x20initialized!','then','HTTP\x20Status:\x20','MergnError','initialTime','15064IrpdXW','4488WsieZg','headers','init','data','Event\x20','offlineEvents','Popup','campaignEntryTimeValue','Error\x20setting\x20up\x20the\x20request:','innerHeight','record\x20event','platform','done','getOwnPropertyDescriptors','.u-close-button','Error\x20posting\x20attribute\x20record','Error\x20fetching\x20event\x20data','.u-popup-container\x20img','getOwnPropertyDescriptor','querySelectorAll','getPrototypeOf','Error\x20fetching\x20attribute\x20data','getTime','href','session','logout','eventProperty','addEventListener','submit','Mergn\x20is\x20offline!','isInitialized','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','UTM\x20Key\x20Value','getOwnPropertyNames','page','brand','set','enumerable','error','AxiosError','offline','name','identity','online','forEach','location','[id^=\x22u_content_form_\x22]','Popup\x20Viewed','701700sasWQY','recordEvent','Campaign\x20Id','hostname','updateAttribute','push','Viewed\x20Web\x20Page','object','showErrorLog','has','Error\x20setting\x20identity','4kMLQzc','post','login','[id^=\x22u_content_button_\x22]','call','application/json','DELAY','preventDefault','\x20is\x20not\x20valid.','querySelector','campaignEntryTime','events','__esModule','documentElement','Cannot\x20','close','attributeProperty','apply','filter','Popup\x20Action','apiKey','Form\x20Submit','createElement','pathname','action','attributes','OriginateFrom:\x20','message','exports','function','2468335wwqDYR','263104EFwnCM','length','campaignId','create','defineProperties','Button\x20Click','SCROLL','prototype','click','response','getInstance','recordAttribute','MergnError:\x20','AxiosQueueManager','defineProperty','get','/attribute','scroll','remove','Mergn\x20SDK\x20is\x20disabled!','defaults','1105710sCCCrn','hasOwnProperty','next','URL','Unexpected\x20error:','body','map','keys','Response\x20Data:','scrollHeight','90bcZrMW','21pUouLO','isArray','Customer\x20Id','default','User\x20Logout','throw','request','write\x20to\x20private\x20field','ttl','605874FIjbcX','stringify','removeItem','join','className'];_0x255e=function(){return _0x22119a;};return _0x255e();}const _0x319bd5=_0x1006;(function(_0x164900,_0x2cf446){const _0x133680=_0x1006,_0x32f7d9=_0x164900();while(!![]){try{const _0x2d43ac=-parseInt(_0x133680(0xe1))/0x1+parseInt(_0x133680(0x98))/0x2+-parseInt(_0x133680(0xc1))/0x3*(parseInt(_0x133680(0x11d))/0x4)+-parseInt(_0x133680(0x97))/0x5+parseInt(_0x133680(0xad))/0x6+parseInt(_0x133680(0xb8))/0x7*(parseInt(_0x133680(0xe2))/0x8)+parseInt(_0x133680(0xb7))/0x9*(parseInt(_0x133680(0x112))/0xa);if(_0x2d43ac===_0x2cf446)break;else _0x32f7d9['push'](_0x32f7d9['shift']());}catch(_0x13c391){_0x32f7d9['push'](_0x32f7d9['shift']());}}}(_0x255e,0x4b533));var St=Object['create'],O=Object[_0x319bd5(0xa6)],yt=Object[_0x319bd5(0x9c)],ft=Object[_0x319bd5(0xf4)],Tt=Object[_0x319bd5(0xef)],wt=Object[_0x319bd5(0x103)],_e=Object['getOwnPropertySymbols'],bt=Object[_0x319bd5(0xf6)],Me=Object[_0x319bd5(0x9f)][_0x319bd5(0xae)],Rt=Object[_0x319bd5(0x9f)]['propertyIsEnumerable'],Ve=(_0x4c1bf9,_0x461bf1,_0x2aa8b2)=>_0x461bf1 in _0x4c1bf9?O(_0x4c1bf9,_0x461bf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa8b2}):_0x4c1bf9[_0x461bf1]=_0x2aa8b2,H=(_0x5b72db,_0x4ffb4b)=>{const _0x59d86f=_0x319bd5;for(var _0x23f9a1 in _0x4ffb4b||(_0x4ffb4b={}))Me[_0x59d86f(0x121)](_0x4ffb4b,_0x23f9a1)&&Ve(_0x5b72db,_0x23f9a1,_0x4ffb4b[_0x23f9a1]);if(_e){for(var _0x23f9a1 of _e(_0x4ffb4b))Rt[_0x59d86f(0x121)](_0x4ffb4b,_0x23f9a1)&&Ve(_0x5b72db,_0x23f9a1,_0x4ffb4b[_0x23f9a1]);}return _0x5b72db;},Se=(_0x3e418d,_0x44c336)=>yt(_0x3e418d,Tt(_0x44c336)),Pt=(_0x5c3721,_0x1eab7f)=>{for(var _0x32968c in _0x1eab7f)O(_0x5c3721,_0x32968c,{'get':_0x1eab7f[_0x32968c],'enumerable':!0x0});},Be=(_0x2d1b43,_0x57cb02,_0x3cbe5a,_0x3a9d61)=>{const _0x147687=_0x319bd5;if(_0x57cb02&&typeof _0x57cb02==_0x147687(0x119)||typeof _0x57cb02==_0x147687(0x96)){for(let _0x182dd9 of wt(_0x57cb02))!Me[_0x147687(0x121)](_0x2d1b43,_0x182dd9)&&_0x182dd9!==_0x3cbe5a&&O(_0x2d1b43,_0x182dd9,{'get':()=>_0x57cb02[_0x182dd9],'enumerable':!(_0x3a9d61=ft(_0x57cb02,_0x182dd9))||_0x3a9d61[_0x147687(0x107)]});}return _0x2d1b43;},Fe=(_0x34d59c,_0xa296fd,_0x475a2b)=>(_0x475a2b=_0x34d59c!=null?St(bt(_0x34d59c)):{},Be(_0xa296fd||!_0x34d59c||!_0x34d59c[_0x319bd5(0x129)]?O(_0x475a2b,_0x319bd5(0xbb),{'value':_0x34d59c,'enumerable':!0x0}):_0x475a2b,_0x34d59c)),At=_0x67e183=>Be(O({},_0x319bd5(0x129),{'value':!0x0}),_0x67e183),ye=(_0x1af268,_0xb6acc9,_0x54e56b)=>{const _0x47195f=_0x319bd5;if(!_0xb6acc9[_0x47195f(0x11b)](_0x1af268))throw TypeError(_0x47195f(0x12b)+_0x54e56b);},u=(_0x115dcc,_0x196cb7,_0x5aeb12)=>(ye(_0x115dcc,_0x196cb7,'read\x20from\x20private\x20field'),_0x5aeb12?_0x5aeb12['call'](_0x115dcc):_0x196cb7[_0x319bd5(0xa7)](_0x115dcc)),i=(_0x4d9edc,_0x4487c7,_0x3ff2a3)=>{const _0x59a74e=_0x319bd5;if(_0x4487c7[_0x59a74e(0x11b)](_0x4d9edc))throw TypeError(_0x59a74e(0x101));_0x4487c7 instanceof WeakSet?_0x4487c7['add'](_0x4d9edc):_0x4487c7[_0x59a74e(0x106)](_0x4d9edc,_0x3ff2a3);},E=(_0x3955a6,_0x473fc1,_0x1a6baf,_0x2ef617)=>(ye(_0x3955a6,_0x473fc1,_0x319bd5(0xbf)),_0x2ef617?_0x2ef617[_0x319bd5(0x121)](_0x3955a6,_0x1a6baf):_0x473fc1[_0x319bd5(0x106)](_0x3955a6,_0x1a6baf),_0x1a6baf),$e=(_0x1eda40,_0x11a876,_0x1ce8c6,_0x3a0786)=>({set '_'(_0x5655a3){E(_0x1eda40,_0x11a876,_0x5655a3,_0x1ce8c6);},get '_'(){return u(_0x1eda40,_0x11a876,_0x3a0786);}}),o=(_0xee5d36,_0x4ef176,_0x1fbeba)=>(ye(_0xee5d36,_0x4ef176,_0x319bd5(0xc8)),_0x1fbeba),a=(_0x412d5f,_0x21d177,_0x22fd2d)=>new Promise((_0x3a174e,_0x2da3da)=>{const _0x26ee08=_0x319bd5;var _0x3bea3c=_0x47bb55=>{const _0x4b2939=_0x1006;try{_0x50f931(_0x22fd2d[_0x4b2939(0xaf)](_0x47bb55));}catch(_0x4d66b9){_0x2da3da(_0x4d66b9);}},_0x257fdd=_0x24c4c8=>{const _0x3c70dc=_0x1006;try{_0x50f931(_0x22fd2d[_0x3c70dc(0xbd)](_0x24c4c8));}catch(_0x5037ab){_0x2da3da(_0x5037ab);}},_0x50f931=_0x1e7f35=>_0x1e7f35[_0x26ee08(0xee)]?_0x3a174e(_0x1e7f35[_0x26ee08(0xd3)]):Promise['resolve'](_0x1e7f35[_0x26ee08(0xd3)])[_0x26ee08(0xdd)](_0x3bea3c,_0x257fdd);_0x50f931((_0x22fd2d=_0x22fd2d[_0x26ee08(0x8a)](_0x412d5f,_0x21d177))[_0x26ee08(0xaf)]());}),Ut={};Pt(Ut,{'default':()=>Ot}),module[_0x319bd5(0x95)]=At(Ut);var W=require('uuid'),U=_0x319bd5(0x8c),Je=_0x319bd5(0x111),ke=_0x319bd5(0xd0),fe=_0x319bd5(0xa8),Ke='/record-attribute',Te='/event',je='/record-event',Qe='/customer',qe='/set-identity',He=Fe(require('axios')),ze=require('axios-queue-js'),Ge=Fe(require('axios-retry')),Ye=require('axios'),l=class extends Error{constructor(_0x5bec58){const _0x3082d1=_0x319bd5;super(_0x5bec58),this[_0x3082d1(0x10b)]=_0x3082d1(0xdf);}};l[_0x319bd5(0xda)]=!0x1,l[_0x319bd5(0x10a)]=!navigator['onLine'],l[_0x319bd5(0x11a)]=!0x1,l[_0x319bd5(0x100)]=!0x1;var Lt=(_0x192326,_0x43a7ea)=>{const _0x2ac6e3=_0x319bd5;_0x43a7ea instanceof l?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xa4)+_0x43a7ea[_0x2ac6e3(0x94)]):_0x43a7ea instanceof Ye[_0x2ac6e3(0x109)]?(console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xcf)+_0x43a7ea[_0x2ac6e3(0x94)]),_0x43a7ea[_0x2ac6e3(0xa1)]?(console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xde)+_0x43a7ea[_0x2ac6e3(0xa1)][_0x2ac6e3(0xd2)]),console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb5),_0x43a7ea['response'][_0x2ac6e3(0xe5)])):_0x43a7ea[_0x2ac6e3(0xbe)]?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x2ac6e3(0x108)]('OriginateFrom:\x20'+_0x192326,_0x2ac6e3(0xea),_0x43a7ea[_0x2ac6e3(0x94)])):_0x43a7ea instanceof Error?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb1),_0x43a7ea[_0x2ac6e3(0x94)]):console['error'](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb1),String(_0x43a7ea));},f=(_0x1622ce,_0x50eae1,_0x5e904f)=>a(void 0x0,null,function*(){const _0x572a6a=_0x319bd5;try{if(l[_0x572a6a(0xda)])throw new l(_0x572a6a(0xab));if(_0x1622ce!==_0x572a6a(0xec)&&l[_0x572a6a(0x10a)])throw new l(_0x572a6a(0xff));if(_0x1622ce!==_0x572a6a(0xe4)&&!l['isInitialized'])throw new l(_0x572a6a(0xdc));return yield _0x50eae1();}catch(_0x41f570){return _0x5e904f?_0x5e904f(_0x41f570):l[_0x572a6a(0x11a)]&&Lt(_0x1622ce,_0x41f570),null;}}),T,N,x,C,z,D,be,G,We,d=class d{constructor(){const _0x1dae31=_0x319bd5;i(this,z,0x0);let _0x3998b6=He[_0x1dae31(0xbb)][_0x1dae31(0x9b)]({'baseURL':ke,'headers':{'Content-Type':_0x1dae31(0x122)}});E(d,N,_0x3998b6),E(d,x,new ze[(_0x1dae31(0xa5))]({'client':_0x3998b6,'queueSize':0xa})),(0x0,Ge[_0x1dae31(0xbb)])(_0x3998b6,{'onRetry':_0x39b31e=>{const _0x3e432b=_0x1dae31;_0x39b31e>=u(d,C)?(l[_0x3e432b(0x11a)]&&console['log']('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),l[_0x3e432b(0xda)]=!0x0):$e(this,z)['_']++;},'retries':u(d,C),'retryDelay':_0x1f7451=>_0x1f7451*0x1388});}static[_0x319bd5(0xd7)](_0x3ad3fa){const _0x23de19=_0x319bd5;this[_0x23de19(0x8d)]=_0x3ad3fa,o(this,G,We)['call'](this)[_0x23de19(0xac)][_0x23de19(0xe3)]['common']['Authorization']=_0x3ad3fa;}static['get'](_0x39ae98){const _0x92dcb2=_0x319bd5;return o(this,D,be)[_0x92dcb2(0x121)](this)[_0x92dcb2(0xa7)](_0x39ae98);}static['post'](_0x28df96,_0x31f3d7){const _0x2bf2c5=_0x319bd5;return o(this,D,be)[_0x2bf2c5(0x121)](this)[_0x2bf2c5(0x11e)](_0x28df96,_0x31f3d7||{});}};T=new WeakMap(),N=new WeakMap(),x=new WeakMap(),C=new WeakMap(),z=new WeakMap(),D=new WeakSet(),be=function(){return u(d,T)||E(d,T,new d()),u(d,x);},G=new WeakSet(),We=function(){return u(d,T)||E(d,T,new d()),u(d,N);},i(d,D),i(d,G),i(d,T,void 0x0),i(d,N,void 0x0),i(d,x,void 0x0),i(d,C,0x2);var we=d,S=we,P,I,_,V,M,B,y,w,F,Pe,$,Ae,ee,Xe,te,Ze,re,et,oe,J,ne,ie,tt,se,rt,ae,ot,k,Le,ce,nt,A,X,le,it,K,Oe,ue,st,pe,at,ge,ct,L,Z,de,lt,Ee,ut,me,pt,ve,gt,j,Ue,Ie,dt,he,Et,Q,Ne,q,xe,Y,Ce,b=class b{constructor(){const _0x2bb654=_0x319bd5;i(this,y),i(this,F),i(this,$),i(this,ee),i(this,te),i(this,re),i(this,ie),i(this,se),i(this,ae),i(this,k),i(this,ce),i(this,A),i(this,le),i(this,K),i(this,ue),i(this,pe),i(this,ge),i(this,L),i(this,de),i(this,Ee),i(this,me),i(this,ve),i(this,j),i(this,Ie),i(this,he),i(this,Q),i(this,q),i(this,Y),i(this,I,''),i(this,_,void 0x0),i(this,V,void 0x0),i(this,M,void 0x0),i(this,B,null),i(this,oe,()=>{let _0x470b30=()=>{const _0x7c0c16=_0x1006;let _0x29e159=JSON[_0x7c0c16(0xc7)](localStorage[_0x7c0c16(0xd9)](_0x7c0c16(0x91))||'{}');Object[_0x7c0c16(0xb4)](_0x29e159)['forEach'](_0x1a140b=>{const _0x2b78c2=_0x7c0c16;_0x29e159[_0x1a140b][_0x2b78c2(0xe0)]=new Date()[_0x2b78c2(0xf8)](),_0x29e159[_0x1a140b][_0x2b78c2(0x104)]=window[_0x2b78c2(0x10f)][_0x2b78c2(0x115)]+window['location'][_0x2b78c2(0x90)];}),localStorage[_0x7c0c16(0xcd)](_0x7c0c16(0x91),JSON[_0x7c0c16(0xc2)](_0x29e159));};_0x470b30(),window['addEventListener']('beforeunload',_0x470b30);}),i(this,J,_0x32165c=>{const _0x2993d9=_0x1006;let _0x4e82c8=JSON[_0x2993d9(0xc7)](localStorage[_0x2993d9(0xd9)]('action')||'{}');_0x4e82c8[_0x32165c]&&delete _0x4e82c8[_0x32165c],localStorage[_0x2993d9(0xcd)](_0x2993d9(0x91),JSON[_0x2993d9(0xc2)](_0x4e82c8));}),i(this,ne,()=>{const _0x125462=_0x1006;let _0x38bd33=JSON[_0x125462(0xc7)](localStorage[_0x125462(0xd9)](_0x125462(0x91))||'{}');Object[_0x125462(0xb4)](_0x38bd33)[_0x125462(0x10e)](_0x4fb3f7=>{const _0xec8e8a=_0x125462;_0x38bd33[_0x4fb3f7][_0xec8e8a(0x94)][_0xec8e8a(0x10b)]==='Popup'&&o(this,K,Oe)[_0xec8e8a(0x121)](this,_0x38bd33[_0x4fb3f7][_0xec8e8a(0x9a)]);});}),E(this,M,navigator[_0x2bb654(0xed)]);}static[_0x319bd5(0xa2)](){return u(b,P)||E(b,P,new b()),u(b,P);}['init'](_0x31249a){const _0x57d872=_0x319bd5;f(_0x57d872(0xe4),()=>a(this,null,function*(){const _0x425973=_0x57d872;o(this,ee,Xe)[_0x425973(0x121)](this,_0x31249a),yield o(this,F,Pe)['call'](this),setInterval(()=>a(this,null,function*(){const _0x3c1828=_0x425973;yield o(this,F,Pe)[_0x3c1828(0x121)](this);}),0x493e0);let _0x506d8c=localStorage['getItem'](_0x425973(0xc0)),_0x2be76c=!0x1;_0x506d8c?(_0x2be76c=new Date()['getTime']()-parseInt(_0x506d8c,0xa)>0x1b7740,_0x2be76c&&o(this,Q,Ne)[_0x425973(0x121)](this)):localStorage[_0x425973(0xcd)]('ttl',''+new Date()[_0x425973(0xf8)]()),(!_0x506d8c||_0x2be76c||o(this,te,Ze)[_0x425973(0x121)](this))&&(o(this,ie,tt)['call'](this),yield o(this,A,X)[_0x425973(0x121)](this),yield o(this,re,et)['call'](this)),window['addEventListener'](_0x425973(0x10d),()=>a(this,null,function*(){const _0xfa872f=_0x425973;l[_0xfa872f(0x10a)]=!0x1;let _0x19a72d=JSON['parse'](localStorage[_0xfa872f(0xd9)](_0xfa872f(0xe7))||'[]');Array[_0xfa872f(0xb9)](_0x19a72d)&&(yield o(this,j,Ue)[_0xfa872f(0x121)](this,{'customerId':u(this,I),'events':_0x19a72d}),localStorage[_0xfa872f(0xc3)](_0xfa872f(0xe7)));})),window[_0x425973(0xfd)](_0x425973(0x10a),()=>{const _0x230151=_0x425973;l[_0x230151(0x10a)]=!0x0;}),window[_0x425973(0xfd)](_0x425973(0xd6),()=>{const _0x1a1bbd=_0x425973;u(this,ne)[_0x1a1bbd(0x121)](this);}),l[_0x425973(0x100)]=!0x0;let _0x250312=history[_0x425973(0xc9)];history['pushState']=(..._0x2e259c)=>{const _0xeea9d=_0x425973;_0x250312[_0xeea9d(0x8a)](history,_0x2e259c),o(this,$,Ae)[_0xeea9d(0x121)](this);},o(this,$,Ae)[_0x425973(0x121)](this);}));}['showErrorLog'](_0x3aec5a=!0x1){const _0x394dbf=_0x319bd5;l[_0x394dbf(0x11a)]=_0x3aec5a;}[_0x319bd5(0xa3)](_0x5dd64b){return a(this,null,function*(){const _0x340793=_0x1006;yield f(_0x340793(0xa3),()=>a(this,null,function*(){const _0xe2e20a=_0x340793;yield o(this,q,xe)[_0xe2e20a(0x121)](this);let _0x552db9=JSON[_0xe2e20a(0xc7)](localStorage[_0xe2e20a(0xd9)](_0xe2e20a(0x92))||'[]');if(_0x552db9&&Object[_0xe2e20a(0xb4)](_0x552db9)[_0xe2e20a(0x99)]>0x0){let _0x3d1890=[];_0x5dd64b&&Object['keys'](_0x5dd64b)[_0xe2e20a(0x99)]>0x0&&Object['keys'](_0x5dd64b)[_0xe2e20a(0x10e)](_0x829ae0=>{const _0xa4081=_0xe2e20a;_0x552db9[_0xa4081(0xae)](_0x829ae0)&&_0x3d1890[_0xa4081(0x117)]({'attributeId':_0x552db9[_0x829ae0]['id'],'attributeProperties':[],'value':_0x5dd64b[_0x829ae0]});});let _0xc540bd=[{'attributes':_0x3d1890,'customerId':u(this,I)}];yield o(this,Y,Ce)[_0xe2e20a(0x121)](this,_0xc540bd);}}));});}['login'](_0x112753){return a(this,null,function*(){const _0x526d4d=_0x1006;yield f(_0x526d4d(0x11f),()=>a(this,null,function*(){const _0x209ed5=_0x526d4d;yield o(this,A,X)[_0x209ed5(0x121)](this,_0x112753),yield this['recordEvent']('User\x20Login',[{'eventProperty':_0x209ed5(0xba),'value':localStorage['getItem'](_0x209ed5(0xdb))||0x0}]);}));});}[_0x319bd5(0x116)](_0x3b6c75,_0x210da6,_0x48a709){return a(this,null,function*(){const _0x20fb76=_0x1006;yield o(this,q,xe)[_0x20fb76(0x121)](this);let _0x59c9cf=JSON['parse'](localStorage[_0x20fb76(0xd9)](_0x20fb76(0x92))||'{}');if(_0x59c9cf&&Object[_0x20fb76(0xb4)](_0x59c9cf)[_0x20fb76(0x99)]>0x0&&_0x59c9cf[_0x20fb76(0xae)](_0x3b6c75)){let _0x26a12f=_0x59c9cf[_0x3b6c75],_0x13cb9b=_0x26a12f[_0x20fb76(0x89)],_0x43fdf3=[];_0x48a709&&Object[_0x20fb76(0xb4)](_0x48a709)[_0x20fb76(0x99)]>0x0&&Object[_0x20fb76(0xb4)](_0x48a709)['forEach'](_0x19c193=>{const _0x1bffb3=_0x20fb76;_0x13cb9b[_0x1bffb3(0xae)](_0x19c193)&&_0x43fdf3[_0x1bffb3(0x117)]({'attributePropertyId':_0x13cb9b[_0x19c193]['id'],'value':_0x48a709[_0x19c193]});});let _0x580c8b=[{'attributes':[{'attributeId':_0x26a12f['id'],'attributeProperties':_0x43fdf3,'value':_0x210da6}],'customerId':u(this,I)}];yield o(this,Y,Ce)[_0x20fb76(0x121)](this,_0x580c8b);}});}[_0x319bd5(0xfb)](){return a(this,null,function*(){const _0x2cb809=_0x1006;yield f(_0x2cb809(0xfb),()=>a(this,null,function*(){const _0x1c84fd=_0x2cb809;o(this,Q,Ne)[_0x1c84fd(0x121)](this),this[_0x1c84fd(0x113)](_0x1c84fd(0xbc),[{'eventProperty':_0x1c84fd(0xba),'value':localStorage[_0x1c84fd(0xd9)]('customer')||0x0}]);}));});}[_0x319bd5(0x113)](_0x4fac83,_0xa058b4){const _0x4d691a=_0x319bd5;f(_0x4d691a(0xec),()=>a(this,null,function*(){const _0x4868f9=_0x4d691a;yield o(this,y,w)[_0x4868f9(0x121)](this,_0x4fac83,_0xa058b4);}));}};P=new WeakMap(),I=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),B=new WeakMap(),y=new WeakSet(),w=function(_0x4dfa59,_0x87b34c,_0x1a72fb,_0x2a087e){return a(this,null,function*(){const _0x35b2f=_0x1006;yield f(_0x35b2f(0xec),()=>a(this,null,function*(){const _0x264417=_0x35b2f;var _0xac7421;let _0x381561=o(this,Ee,ut)[_0x264417(0x121)](this),_0x12609d=o(this,me,pt)[_0x264417(0x121)](this,_0x381561,_0x4dfa59,_0x87b34c);if(typeof _0x12609d=='string'){l[_0x264417(0x11a)]&&console[_0x264417(0x108)](_0x12609d);return;}let {id:_0x386ecb}=_0x381561[_0x4dfa59],_0x24873d=o(this,ve,gt)[_0x264417(0x121)](this,H(Se(H({},_0x1a72fb?{'campaignCustomerInstanceId':_0x1a72fb}:{}),{'eventId':_0x386ecb,'eventProperties':_0x12609d,'sessionId':localStorage[_0x264417(0xd9)]('session')||''}),_0x2a087e?{'name':_0x2a087e}:{}));if(l[_0x264417(0x10a)]){let _0x473fd7=JSON['parse'](localStorage[_0x264417(0xd9)](_0x264417(0xe7))||'[]');_0x473fd7[_0x264417(0x99)]<=0x32&&(_0x473fd7[_0x264417(0x117)](..._0x24873d[_0x264417(0x128)]),localStorage[_0x264417(0xcd)](_0x264417(0xe7),JSON[_0x264417(0xc2)](_0x473fd7)));return;}let _0x592c39=yield o(this,j,Ue)[_0x264417(0x121)](this,_0x24873d);(_0xac7421=_0x592c39==null?void 0x0:_0x592c39[_0x264417(0xe5)])==null||_0xac7421[_0x264417(0x10e)](_0x3dd51e=>{const _0x3410fe=_0x264417;o(this,Ie,dt)[_0x3410fe(0x121)](this,_0x3dd51e['message'][_0x3410fe(0x10b)])&&(o(this,he,Et)[_0x3410fe(0x121)](this,_0x3dd51e),u(this,oe)[_0x3410fe(0x121)](this),o(this,K,Oe)[_0x3410fe(0x121)](this,_0x3dd51e[_0x3410fe(0x9a)]));});}));});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x5c6e13=_0x1006;try{yield S[_0x5c6e13(0xa7)](_0x5c6e13(0x105));}catch(_0x3a53ba){l[_0x5c6e13(0xda)]=!0x0,l[_0x5c6e13(0x11a)]&&console[_0x5c6e13(0x108)](_0x3a53ba['message']);}});},$=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x40c875=_0x1006;let _0x2c0113=window[_0x40c875(0x10f)][_0x40c875(0x115)]+window[_0x40c875(0x10f)][_0x40c875(0x90)];yield this[_0x40c875(0x113)](_0x40c875(0x118),[{'eventProperty':_0x40c875(0xb0),'value':_0x2c0113}]),_0x2c0113!==u(this,B)&&(E(this,B,_0x2c0113),new URLSearchParams(new URL(window[_0x40c875(0x10f)][_0x40c875(0xf9)])['search'])[_0x40c875(0x10e)]((_0x525afa,_0xdb1979)=>a(this,null,function*(){const _0x393b74=_0x40c875;yield this[_0x393b74(0x113)](_0x393b74(0x118),[{'eventProperty':_0x393b74(0x102),'value':_0xdb1979+':'+_0x525afa}]);})));});},ee=new WeakSet(),Xe=function(_0x25e619){S['updateAPIKey'](_0x25e619);},te=new WeakSet(),Ze=function(){const _0xb454f=_0x319bd5;return!localStorage[_0xb454f(0xd9)](_0xb454f(0x128))||!localStorage['getItem'](_0xb454f(0xdb))||!localStorage['getItem']('attributes')||!localStorage[_0xb454f(0xd9)](_0xb454f(0xcb))||!localStorage['getItem'](_0xb454f(0xfa))||!u(this,I);},re=new WeakSet(),et=function(){return a(this,null,function*(){const _0x14d505=_0x1006;yield o(this,se,rt)[_0x14d505(0x121)](this),yield o(this,k,Le)[_0x14d505(0x121)](this),yield o(this,A,X)['call'](this);});},oe=new WeakMap(),J=new WeakMap(),ne=new WeakMap(),ie=new WeakSet(),tt=function(){const _0x517616=_0x319bd5;let _0x375c56=localStorage[_0x517616(0xd9)](_0x517616(0xcb));return _0x375c56||(_0x375c56=(0x0,W['v4'])(),localStorage[_0x517616(0xcd)](_0x517616(0xcb),_0x375c56)),_0x375c56;},se=new WeakSet(),rt=function(){return a(this,null,function*(){const _0x533cff=_0x1006;if(!localStorage[_0x533cff(0xd9)](_0x533cff(0x128))){let _0xecf154=(yield o(this,ae,ot)[_0x533cff(0x121)](this))[_0x533cff(0xe5)];_0xecf154&&(E(this,_,_0xecf154),localStorage['setItem']('events',JSON[_0x533cff(0xc2)](u(this,_))));}});},ae=new WeakSet(),ot=function(){return a(this,null,function*(){const _0x44ba0c=_0x1006;try{return(yield S['get'](''+Te))[_0x44ba0c(0xe5)];}catch(_0x2d5a1d){throw new Error(_0x44ba0c(0xf2));}});},k=new WeakSet(),Le=function(){return a(this,null,function*(){const _0x100833=_0x1006;if(!localStorage[_0x100833(0xd9)](_0x100833(0x92))){let _0x5317a3=(yield o(this,ce,nt)[_0x100833(0x121)](this))['data'];_0x5317a3&&(E(this,V,_0x5317a3),localStorage[_0x100833(0xcd)](_0x100833(0x92),JSON[_0x100833(0xc2)](u(this,V))));}});},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x478931=_0x1006;try{return(yield S['get'](''+fe))['data'];}catch(_0xbe4b08){throw new Error(_0x478931(0xf7));}});},A=new WeakSet(),X=function(_0x58c107){return a(this,null,function*(){const _0x3a7697=_0x1006;localStorage[_0x3a7697(0xd9)]('session')||localStorage[_0x3a7697(0xcd)]('session',(0x0,W['v4'])());let _0x3973cf=localStorage[_0x3a7697(0xd9)]('customer');if(!_0x58c107&&_0x3973cf){E(this,I,_0x3973cf);return;}let _0x5f166e={'deviceId':localStorage[_0x3a7697(0xd9)]('uniqueIdentity')||(0x0,W['v4'])(),'os':u(this,M)};_0x58c107&&(_0x5f166e[_0x3a7697(0x10c)]=_0x58c107);try{let _0x4b2502=(yield o(this,le,it)[_0x3a7697(0x121)](this,_0x5f166e))[_0x3a7697(0xe5)];_0x4b2502!==void 0x0&&(E(this,I,_0x4b2502),localStorage[_0x3a7697(0xcd)](_0x3a7697(0xdb),u(this,I)));}catch(_0x2f47f0){throw new Error(_0x3a7697(0x11c));}});},le=new WeakSet(),it=function(_0x33a5ed){return a(this,null,function*(){const _0x472e50=_0x1006;try{return(yield S[_0x472e50(0x11e)](''+Qe+qe,_0x33a5ed))[_0x472e50(0xe5)];}catch(_0x5d5864){throw new Error('Error\x20posting\x20identity\x20data');}});},K=new WeakSet(),Oe=function(_0x15e521){const _0x128c57=_0x319bd5;let _0x490d62=o(this,ue,st)[_0x128c57(0x121)](this);if(_0x490d62!=null&&_0x490d62[_0x15e521])switch(_0x490d62[_0x15e521][_0x128c57(0x127)]){case _0x128c57(0x123):{o(this,ge,ct)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}case _0x128c57(0xc6):{o(this,L,Z)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}case _0x128c57(0x9e):{o(this,pe,at)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}default:return;}},ue=new WeakSet(),st=function(){const _0x319273=_0x319bd5;let _0x2014a7=localStorage[_0x319273(0xd9)](_0x319273(0x91));return _0x2014a7?JSON['parse'](_0x2014a7):null;},pe=new WeakSet(),at=function(_0x3fa373){const _0x577a30=_0x319bd5;window['addEventListener'](_0x577a30(0xa9),()=>{const _0x561a7b=_0x577a30;var _0x5f572f;let _0x3589fc=window[_0x561a7b(0xeb)],_0x36b250=document[_0x561a7b(0x12a)][_0x561a7b(0xb6)];window[_0x561a7b(0xd5)]/(_0x36b250-_0x3589fc)*0x64>(((_0x5f572f=_0x3fa373['campaignEntryTimeValue'])==null?void 0x0:_0x5f572f[_0x561a7b(0xd3)])||0x0)&&o(this,L,Z)[_0x561a7b(0x121)](this,_0x3fa373);});},ge=new WeakSet(),ct=function(_0x4df281){const _0x21c81f=_0x319bd5;var _0x689917;let _0x4485fd=_0x4df281[_0x21c81f(0xe0)]-0x1f4+(((_0x689917=_0x4df281[_0x21c81f(0xe9)])==null?void 0x0:_0x689917[_0x21c81f(0xd3)])||0x0)*0x3e8-new Date()[_0x21c81f(0xf8)]();_0x4485fd>0x0&&_0x4df281['page']===window[_0x21c81f(0x10f)][_0x21c81f(0x115)]+window['location']['pathname']&&setTimeout(()=>{const _0x38169e=_0x21c81f;u(this,J)[_0x38169e(0x121)](this,_0x4df281[_0x38169e(0x9a)]),o(this,L,Z)['call'](this,_0x4df281);},_0x4485fd);},L=new WeakSet(),Z=function(_0x147604){const _0x475696=_0x319bd5;let _0x2da860=o(this,de,lt)[_0x475696(0x121)](this,'div',_0x147604);document[_0x475696(0xb2)][_0x475696(0xcc)](_0x2da860),o(this,y,w)[_0x475696(0x121)](this,Je,[{'eventProperty':_0x475696(0x114),'value':_0x147604[_0x475696(0x9a)]}],_0x147604[_0x475696(0xca)],_0x475696(0xd4)),u(this,J)[_0x475696(0x121)](this,_0x147604[_0x475696(0x9a)]);},de=new WeakSet(),lt=function(_0x24cf74,_0x17f586){const _0x9a31c=_0x319bd5;var _0x52af33;let {campaignCustomerInstanceId:_0x2b8647,campaignId:_0x1020aa,message:{design:_0x79305e}}=_0x17f586,_0x1db3fd=document[_0x9a31c(0x8f)](_0x24cf74);return _0x1db3fd['id']=_0x9a31c(0xd8)+_0x1020aa,_0x1db3fd[_0x9a31c(0xce)]=_0x79305e,_0x1db3fd['querySelectorAll'](_0x9a31c(0x110))[_0x9a31c(0x10e)]((_0x9586e6,_0x4cf0c6)=>{const _0x118a7f=_0x9a31c;let _0x1ab38d=_0x9586e6[_0x118a7f(0x126)]('form');_0x1ab38d&&_0x1ab38d['addEventListener'](_0x118a7f(0xfe),_0x43a4a7=>a(this,null,function*(){const _0x59e7f0=_0x118a7f;_0x43a4a7[_0x59e7f0(0x124)]();let _0x2c6f67=new FormData(_0x1ab38d),_0x5e2d2f={};for(let [_0x58ac9f,_0x18f1aa]of _0x2c6f67['entries']())_0x5e2d2f[_0x58ac9f]=_0x18f1aa;yield o(this,y,w)[_0x59e7f0(0x121)](this,U,[{'eventProperty':_0x59e7f0(0x8e),'value':JSON[_0x59e7f0(0xc2)]({'campaignId':_0x1020aa,'formId':_0x9586e6['id'],'formValues':_0x5e2d2f})}],_0x2b8647,'form');}));}),(_0x52af33=_0x1db3fd[_0x9a31c(0x126)](_0x9a31c(0xf0)))==null||_0x52af33[_0x9a31c(0xfd)](_0x9a31c(0xa0),()=>a(this,null,function*(){const _0xe1d4c5=_0x9a31c;_0x1db3fd[_0xe1d4c5(0xaa)](),yield o(this,y,w)[_0xe1d4c5(0x121)](this,U,[{'eventProperty':'Close\x20Click','value':JSON[_0xe1d4c5(0xc2)]({'campaignId':_0x1020aa})}],_0x2b8647,_0xe1d4c5(0x88));})),_0x1db3fd[_0x9a31c(0xf5)](_0x9a31c(0x120))[_0x9a31c(0x10e)](_0x217dc8=>{const _0x3190c0=_0x9a31c;_0x217dc8['addEventListener'](_0x3190c0(0xa0),()=>a(this,null,function*(){const _0x991151=_0x3190c0;yield o(this,y,w)[_0x991151(0x121)](this,U,[{'eventProperty':_0x991151(0x9d),'value':JSON[_0x991151(0xc2)]({'buttonId':_0x217dc8['id'],'campaignId':_0x1020aa})}],_0x2b8647,_0x991151(0xa0));}));}),_0x1db3fd['querySelectorAll'](_0x9a31c(0xf3))[_0x9a31c(0x10e)](_0x407520=>{const _0x529eff=_0x9a31c;_0x407520[_0x529eff(0xfd)](_0x529eff(0xa0),()=>a(this,null,function*(){const _0x1ced2d=_0x529eff;yield o(this,y,w)[_0x1ced2d(0x121)](this,U,[{'eventProperty':_0x1ced2d(0xd1),'value':JSON[_0x1ced2d(0xc2)]({'campaignId':_0x1020aa,'imageClassName':_0x407520[_0x1ced2d(0xc5)],'imageId':_0x407520['id']})}],_0x2b8647,'click');}));}),_0x1db3fd;},Ee=new WeakSet(),ut=function(){const _0x85b0bb=_0x319bd5;let _0x3a3be4=localStorage[_0x85b0bb(0xd9)](_0x85b0bb(0x128));return _0x3a3be4?JSON[_0x85b0bb(0xc7)](_0x3a3be4):{};},me=new WeakSet(),pt=function(_0x2e8620,_0x3df29d,_0x38c754){const _0x593677=_0x319bd5;if(!_0x2e8620[_0x593677(0xae)](_0x3df29d))return _0x593677(0xe6)+_0x3df29d+_0x593677(0x125);if(!_0x38c754)return[];let _0x5df9b9=_0x2e8620[_0x3df29d];if(!(_0x5df9b9!=null&&_0x5df9b9['eventProperty']))return'Event\x20'+_0x3df29d+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x1fd8a9=_0x38c754[_0x593677(0x8b)](({eventProperty:_0x363efa})=>!_0x5df9b9[_0x593677(0xfc)][_0x593677(0xae)](_0x363efa))[_0x593677(0xb3)](({eventProperty:_0x4c94e})=>_0x4c94e);return _0x1fd8a9[_0x593677(0x99)]>0x0?_0x593677(0xe6)+_0x3df29d+'\x20has\x20invalid\x20eventProperties:\x20'+_0x1fd8a9[_0x593677(0xc4)](',\x20')+'.':_0x38c754[_0x593677(0xb3)](({eventProperty:_0x3ce05b,value:_0x564618})=>({'eventPropertyId':_0x5df9b9['eventProperty'][_0x3ce05b]['id'],'value':_0x564618}));},ve=new WeakSet(),gt=function(_0x52fb4e){return{'customerId':u(this,I),'events':[_0x52fb4e]};},j=new WeakSet(),Ue=function(_0x281f70){return a(this,null,function*(){const _0x3790d4=_0x1006;try{return(yield S[_0x3790d4(0x11e)](''+Te+je,_0x281f70))[_0x3790d4(0xe5)];}catch(_0x3fda7a){throw new Error('Error\x20posting\x20event\x20record');}});},Ie=new WeakSet(),dt=function(_0x45431e){const _0x245020=_0x319bd5;return _0x45431e===_0x245020(0xe8);},he=new WeakSet(),Et=function(_0x4c1267){const _0x3650d3=_0x319bd5;let _0x1d55ab=JSON[_0x3650d3(0xc7)](localStorage['getItem'](_0x3650d3(0x91))||'{}');_0x1d55ab[_0x4c1267[_0x3650d3(0x9a)]]=Se(H({},_0x4c1267),{'initialTime':new Date()[_0x3650d3(0xf8)](),'page':window[_0x3650d3(0x10f)][_0x3650d3(0x115)]+window[_0x3650d3(0x10f)][_0x3650d3(0x90)]}),localStorage[_0x3650d3(0xcd)](_0x3650d3(0x91),JSON[_0x3650d3(0xc2)](_0x1d55ab));},Q=new WeakSet(),Ne=function(){const _0x5202da=_0x319bd5;localStorage['removeItem'](_0x5202da(0x91)),localStorage[_0x5202da(0xc3)](_0x5202da(0x128)),localStorage[_0x5202da(0xc3)](_0x5202da(0x92)),localStorage[_0x5202da(0xc3)]('offlineEvents'),localStorage[_0x5202da(0xc3)]('ttl'),localStorage[_0x5202da(0xc3)](_0x5202da(0xfa));},q=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x55de6e=_0x1006;localStorage['getItem']('attributes')||(yield o(this,k,Le)[_0x55de6e(0x121)](this));});},Y=new WeakSet(),Ce=function(_0x32be71){return a(this,null,function*(){const _0x51b421=_0x1006;try{return yield S[_0x51b421(0x11e)](''+fe+Ke,_0x32be71);}catch(_0xb4b225){throw new Error(_0x51b421(0xf1));}});},i(b,P,void 0x0);function _0x1006(_0x29e486,_0x2723bf){const _0x255e39=_0x255e();return _0x1006=function(_0x100614,_0x2ac905){_0x100614=_0x100614-0x88;let _0x58bf76=_0x255e39[_0x100614];return _0x58bf76;},_0x1006(_0x29e486,_0x2723bf);}var Re=b,mt=Re[_0x319bd5(0xa2)](),Ot=mt;
|
|
1
|
+
'use strict';const _0x35405e=_0xf067;(function(_0x57d5d1,_0x525824){const _0x51250e=_0xf067,_0x2874f5=_0x57d5d1();while(!![]){try{const _0x4a8b03=-parseInt(_0x51250e(0xb3))/0x1*(-parseInt(_0x51250e(0x13a))/0x2)+parseInt(_0x51250e(0xcb))/0x3*(-parseInt(_0x51250e(0x86))/0x4)+-parseInt(_0x51250e(0x123))/0x5+-parseInt(_0x51250e(0x11a))/0x6+parseInt(_0x51250e(0x12b))/0x7+parseInt(_0x51250e(0x140))/0x8+parseInt(_0x51250e(0xcf))/0x9*(parseInt(_0x51250e(0xd9))/0xa);if(_0x4a8b03===_0x525824)break;else _0x2874f5['push'](_0x2874f5['shift']());}catch(_0xae986e){_0x2874f5['push'](_0x2874f5['shift']());}}}(_0x3096,0xce0f1));var Ct=Object['create'],_=Object[_0x35405e(0xad)],_t=Object['defineProperties'],Ft=Object[_0x35405e(0xfe)],Mt=Object[_0x35405e(0x132)],$t=Object['getOwnPropertyNames'],ze=Object[_0x35405e(0x12a)],Vt=Object[_0x35405e(0xda)],je=Object['prototype'][_0x35405e(0xe1)],Bt=Object[_0x35405e(0xb0)][_0x35405e(0x14b)],Ge=(_0x41e828,_0x2cc51d,_0x2469f1)=>_0x2cc51d in _0x41e828?_(_0x41e828,_0x2cc51d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2469f1}):_0x41e828[_0x2cc51d]=_0x2469f1,Z=(_0x5a93f9,_0x20f3ba)=>{const _0x20c0c5=_0x35405e;for(var _0x20d826 in _0x20f3ba||(_0x20f3ba={}))je[_0x20c0c5(0x130)](_0x20f3ba,_0x20d826)&&Ge(_0x5a93f9,_0x20d826,_0x20f3ba[_0x20d826]);if(ze){for(var _0x20d826 of ze(_0x20f3ba))Bt['call'](_0x20f3ba,_0x20d826)&&Ge(_0x5a93f9,_0x20d826,_0x20f3ba[_0x20d826]);}return _0x5a93f9;},De=(_0x3d38ba,_0x3fcd8a)=>_t(_0x3d38ba,Mt(_0x3fcd8a)),kt=(_0x2fefa5,_0x3783af)=>{for(var _0x4a081e in _0x3783af)_(_0x2fefa5,_0x4a081e,{'get':_0x3783af[_0x4a081e],'enumerable':!0x0});},Qe=(_0x25976c,_0x93e0d3,_0x46d91d,_0x3fb5f8)=>{const _0xed5d85=_0x35405e;if(_0x93e0d3&&typeof _0x93e0d3=='object'||typeof _0x93e0d3==_0xed5d85(0xb4)){for(let _0x1af3a7 of $t(_0x93e0d3))!je['call'](_0x25976c,_0x1af3a7)&&_0x1af3a7!==_0x46d91d&&_(_0x25976c,_0x1af3a7,{'get':()=>_0x93e0d3[_0x1af3a7],'enumerable':!(_0x3fb5f8=Ft(_0x93e0d3,_0x1af3a7))||_0x3fb5f8[_0xed5d85(0x9c)]});}return _0x25976c;},qe=(_0x29b5af,_0x304ec6,_0x207f6d)=>(_0x207f6d=_0x29b5af!=null?Ct(Vt(_0x29b5af)):{},Qe(_0x304ec6||!_0x29b5af||!_0x29b5af[_0x35405e(0x102)]?_(_0x207f6d,'default',{'value':_0x29b5af,'enumerable':!0x0}):_0x207f6d,_0x29b5af)),Jt=_0xebfd7b=>Qe(_({},_0x35405e(0x102),{'value':!0x0}),_0xebfd7b),Ue=(_0x4d9cd1,_0x22373e,_0x5378f0)=>{const _0x2eadae=_0x35405e;if(!_0x22373e[_0x2eadae(0xba)](_0x4d9cd1))throw TypeError(_0x2eadae(0xd8)+_0x5378f0);},E=(_0x5b9378,_0x4e2a68,_0x4d30f2)=>(Ue(_0x5b9378,_0x4e2a68,_0x35405e(0x115)),_0x4d30f2?_0x4d30f2[_0x35405e(0x130)](_0x5b9378):_0x4e2a68[_0x35405e(0x131)](_0x5b9378)),i=(_0x3629cd,_0x220c82,_0x2c377d)=>{const _0x240f74=_0x35405e;if(_0x220c82[_0x240f74(0xba)](_0x3629cd))throw TypeError(_0x240f74(0x113));_0x220c82 instanceof WeakSet?_0x220c82[_0x240f74(0x118)](_0x3629cd):_0x220c82['set'](_0x3629cd,_0x2c377d);},v=(_0x2e793b,_0x34a976,_0x19d949,_0x2729a5)=>(Ue(_0x2e793b,_0x34a976,_0x35405e(0x10a)),_0x2729a5?_0x2729a5[_0x35405e(0x130)](_0x2e793b,_0x19d949):_0x34a976[_0x35405e(0xe3)](_0x2e793b,_0x19d949),_0x19d949),He=(_0x119e4f,_0xe41473,_0x4fd834,_0x335fe3)=>({set '_'(_0x5f2a22){v(_0x119e4f,_0xe41473,_0x5f2a22,_0x4fd834);},get '_'(){return E(_0x119e4f,_0xe41473,_0x335fe3);}}),n=(_0x211608,_0x3fc739,_0x2268e9)=>(Ue(_0x211608,_0x3fc739,'access\x20private\x20method'),_0x2268e9),c=(_0x42bedc,_0xf75779,_0x1bfce2)=>new Promise((_0x49de31,_0x1afd80)=>{const _0x4adbbd=_0x35405e;var _0x32ef6f=_0xa375f1=>{try{_0x4e2623(_0x1bfce2['next'](_0xa375f1));}catch(_0x7ca036){_0x1afd80(_0x7ca036);}},_0x66af46=_0x315d6c=>{const _0x59cac9=_0xf067;try{_0x4e2623(_0x1bfce2[_0x59cac9(0xc1)](_0x315d6c));}catch(_0x283144){_0x1afd80(_0x283144);}},_0x4e2623=_0x45ff24=>_0x45ff24[_0x4adbbd(0x122)]?_0x49de31(_0x45ff24['value']):Promise[_0x4adbbd(0xe4)](_0x45ff24['value'])[_0x4adbbd(0x11e)](_0x32ef6f,_0x66af46);_0x4e2623((_0x1bfce2=_0x1bfce2['apply'](_0x42bedc,_0xf75779))['next']());}),zt={};kt(zt,{'default':()=>Wt}),module[_0x35405e(0xe9)]=Jt(zt);var ne=require('uuid'),Ye=(_0x35f8ee=>(_0x35f8ee[_0x35405e(0x8f)]=_0x35405e(0xd0),_0x35f8ee['UTM_MEDIUM']='utm_medium',_0x35f8ee['UTM_CAMPAIGN']=_0x35405e(0x13f),_0x35f8ee[_0x35405e(0xa0)]=_0x35405e(0xaf),_0x35f8ee[_0x35405e(0x97)]=_0x35405e(0x120),_0x35f8ee))(Ye||{}),Xe=new Set(Object[_0x35405e(0xfa)](Ye)),A=_0x35405e(0xf4),Ze=_0x35405e(0xf0),xe=_0x35405e(0x125),et=_0x35405e(0x12d),Ce=_0x35405e(0xd3),tt=_0x35405e(0xc0),rt=_0x35405e(0x10b),nt=_0x35405e(0x119),it=qe(require('axios')),at=require('axios-queue-js'),st=qe(require('axios-retry')),ot=require('axios'),ee=(_0x46f102=>(_0x46f102[_0x46f102['NONE']=0x0]=_0x35405e(0xfc),_0x46f102[_0x46f102['INFO']=0x1]='INFO',_0x46f102[_0x46f102[_0x35405e(0xb1)]=0x2]='ERROR',_0x46f102[_0x46f102[_0x35405e(0x150)]=0x3]=_0x35405e(0x150),_0x46f102))(ee||{}),u=(_0x577dfc,_0x238ac1)=>{const _0x4d4d04=_0x35405e;g['debugLevel']!==0x0&&g[_0x4d4d04(0x138)]<=0x3&&(_0x577dfc===0x1?console[_0x4d4d04(0x82)](_0x4d4d04(0xf6)+new Date()[_0x4d4d04(0xf9)](),_0x238ac1):_0x577dfc===0x2&&console[_0x4d4d04(0x95)]('ERROR:\x20'+new Date()['toISOString'](),_0x238ac1));},m=(_0x4eb307,_0x3aa700)=>{const _0x3eab66=_0x35405e;g['debugLevel']!==0x0&&(_0x3aa700?console[_0x3eab66(0x141)](_0x4eb307):console['timeEnd'](_0x4eb307));},S=(_0x3207de,_0x1e0474)=>{const _0x2b892e=_0x35405e;g[_0x2b892e(0x138)]!==0x0&&(_0x1e0474?console[_0x2b892e(0x8c)](_0x3207de):console[_0x2b892e(0x10d)]());},g=class extends Error{constructor(_0x271445){const _0x3cfbbe=_0x35405e;super(_0x271445),this[_0x3cfbbe(0x127)]='MergnError';}};function _0xf067(_0x12a9ed,_0x3c2df2){const _0x30961c=_0x3096();return _0xf067=function(_0xf067a1,_0x50b5dc){_0xf067a1=_0xf067a1-0x76;let _0x1593b0=_0x30961c[_0xf067a1];return _0x1593b0;},_0xf067(_0x12a9ed,_0x3c2df2);}g[_0x35405e(0xb2)]=!0x1,g[_0x35405e(0xdd)]=!navigator['onLine'],g[_0x35405e(0x138)]=0x0,g['isInitialized']=!0x1;var Kt=(_0x3a16c0,_0x5ad577)=>{const _0xfdd6f4=_0x35405e;_0x5ad577 instanceof g?u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+_0xfdd6f4(0x12c)+_0x5ad577['message']):_0x5ad577 instanceof ot[_0xfdd6f4(0x13c)]?(u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+_0xfdd6f4(0xe7)+_0x5ad577[_0xfdd6f4(0x9d)]),_0x5ad577['response']?(u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+'\x0aHTTP\x20Status:\x20'+_0x5ad577[_0xfdd6f4(0xa5)][_0xfdd6f4(0x101)]),u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+_0xfdd6f4(0xa1)+_0x5ad577[_0xfdd6f4(0xa5)][_0xfdd6f4(0x10e)])):_0x5ad577[_0xfdd6f4(0x14c)]?u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+_0xfdd6f4(0xb6)):u(0x2,'OriginateFrom:\x20'+_0x3a16c0+_0xfdd6f4(0xca)+_0x5ad577[_0xfdd6f4(0x9d)])):_0x5ad577 instanceof Error?u(0x2,'OriginateFrom:\x20'+_0x3a16c0+'\x0aUnexpected\x20error:\x20'+_0x5ad577[_0xfdd6f4(0x9d)]):u(0x2,_0xfdd6f4(0x104)+_0x3a16c0+_0xfdd6f4(0x8d)+String(_0x5ad577));},O=(_0x5b127d,_0x1d68c2,_0x47ec47)=>c(void 0x0,null,function*(){const _0xaff9b9=_0x35405e;try{if(g[_0xaff9b9(0xb2)])throw new g(_0xaff9b9(0xe6));if(_0x5b127d!==_0xaff9b9(0xee)&&g['offline'])throw new g('Mergn\x20is\x20offline!');if(_0x5b127d!==_0xaff9b9(0x85)&&!g[_0xaff9b9(0xed)])throw new g(_0xaff9b9(0x14f));return yield _0x1d68c2();}catch(_0x51abf3){return _0x47ec47?_0x47ec47(_0x51abf3):(g[_0xaff9b9(0x138)]===0x2||g[_0xaff9b9(0x138)]===0x3)&&Kt(_0x5b127d,_0x51abf3),null;}}),w,F,M,$,te,V,Fe,re,ct,p=class p{constructor(){const _0x222f7d=_0x35405e;i(this,te,0x0);let _0x3294e9=it[_0x222f7d(0x7f)]['create']({'baseURL':Ze,'headers':{'Content-Type':_0x222f7d(0xc5)}});v(p,F,_0x3294e9),v(p,M,new at['AxiosQueueManager']({'client':_0x3294e9,'queueSize':0xa})),(0x0,st['default'])(_0x3294e9,{'onRetry':_0x161b80=>{const _0x5d21af=_0x222f7d;_0x161b80>=E(p,$)?(g[_0x5d21af(0x84)]&&console[_0x5d21af(0xf2)](_0x5d21af(0x137)),g[_0x5d21af(0xb2)]=!0x0):He(this,te)['_']++;},'retries':E(p,$),'retryDelay':_0x5c3ef2=>_0x5c3ef2*0x1388});}static[_0x35405e(0x143)](_0x125f50){const _0x1d3b24=_0x35405e;this[_0x1d3b24(0x133)]=_0x125f50,n(this,re,ct)[_0x1d3b24(0x130)](this)[_0x1d3b24(0xb8)][_0x1d3b24(0x145)]['common']['Authorization']=_0x125f50;}static[_0x35405e(0x131)](_0x47cb55){const _0x4563e5=_0x35405e;return n(this,V,Fe)[_0x4563e5(0x130)](this)['get'](_0x47cb55);}static['post'](_0xa77946,_0x441121){const _0x13775e=_0x35405e;return n(this,V,Fe)[_0x13775e(0x130)](this)['post'](_0xa77946,_0x441121||{});}};w=new WeakMap(),F=new WeakMap(),M=new WeakMap(),$=new WeakMap(),te=new WeakMap(),V=new WeakSet(),Fe=function(){return E(p,w)||v(p,w,new p()),E(p,M);},re=new WeakSet(),ct=function(){return E(p,w)||v(p,w,new p()),E(p,F);},i(p,V),i(p,re),i(p,w,void 0x0),i(p,F,void 0x0),i(p,M,void 0x0),i(p,$,0x2);var _e=p,R=_e,N,P,k,J,K,se,lt,b,B,f,y,ce,gt,le,ut,W,$e,z,Ve,ge,Et,ue,pt,Ee,dt,pe,G,de,me,mt,Se,St,Ie,It,j,Be,ve,vt,D,oe,U,ie,fe,ft,Q,ke,Te,Tt,he,ht,ye,yt,x,ae,Re,Rt,Oe,Ot,we,wt,q,Je,Le,Lt,H,Ke,be,bt,Ae,At,Y,We,Ne,Nt,Pe,Pt,L=class L{constructor(){i(this,se),i(this,b),i(this,f),i(this,ce),i(this,le),i(this,W),i(this,z),i(this,ge),i(this,ue),i(this,Ee),i(this,me),i(this,Se),i(this,Ie),i(this,j),i(this,ve),i(this,D),i(this,U),i(this,fe),i(this,Q),i(this,Te),i(this,he),i(this,ye),i(this,x),i(this,Re),i(this,Oe),i(this,we),i(this,q),i(this,Le),i(this,H),i(this,be),i(this,Ae),i(this,Y),i(this,Ne),i(this,Pe),i(this,P,void 0x0),i(this,k,void 0x0),i(this,J,void 0x0),i(this,K,null),i(this,pe,()=>{const _0x5c7ae7=_0xf067;let _0x2eb678=()=>{const _0x400fd4=_0xf067;let _0xd8341f=JSON[_0x400fd4(0x13e)](localStorage[_0x400fd4(0xa7)](_0x400fd4(0x114))||'{}');Object[_0x400fd4(0xce)](_0xd8341f)[_0x400fd4(0x100)](_0x423cff=>{const _0x378867=_0x400fd4;_0xd8341f[_0x423cff]['initialTime']=new Date()[_0x378867(0xc6)](),_0xd8341f[_0x423cff][_0x378867(0x135)]=window[_0x378867(0xe8)]['hostname']+window[_0x378867(0xe8)]['pathname'];}),localStorage[_0x400fd4(0x121)](_0x400fd4(0x114),JSON[_0x400fd4(0xd4)](_0xd8341f));};_0x2eb678(),window[_0x5c7ae7(0x79)](_0x5c7ae7(0xb7),_0x2eb678);}),i(this,G,_0x55afa0=>{const _0x4fa838=_0xf067;let _0x3eeb6d=JSON[_0x4fa838(0x13e)](localStorage[_0x4fa838(0xa7)](_0x4fa838(0x114))||'{}');_0x3eeb6d[_0x55afa0]&&delete _0x3eeb6d[_0x55afa0],localStorage[_0x4fa838(0x121)]('action',JSON[_0x4fa838(0xd4)](_0x3eeb6d));}),i(this,de,()=>{const _0x1b208c=_0xf067;let _0x2f1211=JSON[_0x1b208c(0x13e)](localStorage[_0x1b208c(0xa7)]('action')||'{}');Object['keys'](_0x2f1211)[_0x1b208c(0x100)](_0x4b8191=>{const _0x567329=_0x1b208c;_0x2f1211[_0x4b8191][_0x567329(0x9d)][_0x567329(0x127)]===_0x567329(0x13b)&&n(this,Q,ke)[_0x567329(0x130)](this,_0x2f1211[_0x4b8191][_0x567329(0xc7)]);});});}static['getInstance'](){return E(L,N)||v(L,N,new L()),E(L,N);}[_0x35405e(0x85)](_0x37c2c2){O('init',()=>c(this,null,function*(){const _0x458e4e=_0xf067;u(0x1,'Initializing\x20Mergn\x20SDK'),S(_0x458e4e(0xfd),!0x0),m(_0x458e4e(0x149),!0x0),n(this,ge,Et)[_0x458e4e(0x130)](this,_0x37c2c2),yield n(this,W,$e)[_0x458e4e(0x130)](this),g['isInitialized']=!0x0,setInterval(()=>c(this,null,function*(){yield n(this,W,$e)['call'](this);}),0x493e0),yield n(this,b,B)[_0x458e4e(0x130)](this),window[_0x458e4e(0x79)](_0x458e4e(0x80),()=>c(this,null,function*(){const _0x482d8f=_0x458e4e;g['offline']=!0x1;let _0x1c2c0d=JSON[_0x482d8f(0x13e)](localStorage[_0x482d8f(0xa7)](_0x482d8f(0x9b))||'[]');Array['isArray'](_0x1c2c0d)&&(yield n(this,H,Ke)['call'](this,{'customerId':localStorage[_0x482d8f(0xa7)](_0x482d8f(0x147))||'','events':_0x1c2c0d}),localStorage[_0x482d8f(0x83)]('offlineEvents')),n(this,b,B)[_0x482d8f(0x130)](this),n(this,U,ie)[_0x482d8f(0x130)](this);})),window[_0x458e4e(0x79)](_0x458e4e(0xdd),()=>{g['offline']=!0x0;}),window[_0x458e4e(0x79)](_0x458e4e(0x76),()=>{const _0x575dae=_0x458e4e;E(this,de)[_0x575dae(0x130)](this);});let _0x52d09a=history[_0x458e4e(0xa4)];history[_0x458e4e(0xa4)]=(..._0x47ed86)=>{const _0x50e57c=_0x458e4e;_0x52d09a[_0x50e57c(0x142)](history,_0x47ed86),n(this,z,Ve)['call'](this);},n(this,z,Ve)[_0x458e4e(0x130)](this),m(_0x458e4e(0x149),!0x1),S('Initializing\x20Mergn\x20SDK',!0x1);}));}[_0x35405e(0x14d)](_0x52151c){const _0xad7432=_0x35405e;if(!(_0x52151c in ee)){console['error']('Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203');return;}g[_0xad7432(0x138)]=_0x52151c;}['recordAttribute'](_0x57249e,_0x587e04){const _0x5d34f8=_0x35405e;O(_0x5d34f8(0x8b),()=>c(this,null,function*(){yield n(this,se,lt)['call'](this,_0x57249e,_0x587e04,void 0x0);}));}[_0x35405e(0xc4)](_0x4692e9){const _0x57099b=_0x35405e;O(_0x57099b(0xc4),()=>c(this,null,function*(){const _0x3e5968=_0x57099b;u(0x1,'Logging\x20in'),S('Logging\x20in',!0x0),m(_0x3e5968(0x136),!0x0),u(0x1,'Identity:\x20'+_0x4692e9),yield n(this,D,oe)[_0x3e5968(0x130)](this,_0x4692e9),m(_0x3e5968(0x136),!0x1),S('Logging\x20in',!0x1);}));}[_0x35405e(0xc3)](){O('logout',()=>c(this,null,function*(){const _0x73034c=_0xf067;u(0x1,_0x73034c(0x94)),S(_0x73034c(0x94),!0x0),m(_0x73034c(0xbb),!0x0),n(this,Y,We)[_0x73034c(0x130)](this),m(_0x73034c(0xbb),!0x1),S(_0x73034c(0x94),!0x1);}));}[_0x35405e(0x8a)](_0x3869e8,_0x2c3868){const _0x3512a5=_0x35405e;O(_0x3512a5(0xee),()=>c(this,null,function*(){const _0x30a391=_0x3512a5;u(0x1,_0x30a391(0xfb)),S('Recording\x20event',!0x0),m('Recording\x20event\x20Time',!0x0),u(0x1,_0x30a391(0x117)+{'eventName':_0x3869e8,'eventProperties':_0x2c3868}),yield n(this,f,y)[_0x30a391(0x130)](this,_0x3869e8,_0x2c3868),m(_0x30a391(0x11b),!0x1),S(_0x30a391(0xfb),!0x1);}));}};N=new WeakMap(),P=new WeakMap(),k=new WeakMap(),J=new WeakMap(),K=new WeakMap(),se=new WeakSet(),lt=function(_0x1b91c8,_0x122af2,_0x563372){return c(this,null,function*(){const _0x5b66a4=_0xf067;yield O(_0x5b66a4(0x77),()=>c(this,null,function*(){const _0x363d82=_0x5b66a4;u(0x1,'Recording\x20attribute'),S('Recording\x20attribute',!0x0),m(_0x363d82(0xf5),!0x0),u(0x1,'Attribute\x20Payload:\x0a\x20'+{'attributeName':_0x1b91c8,'attributeProperties':_0x563372,'attributeValue':_0x122af2}+')}'),yield n(this,b,B)['call'](this),yield n(this,Ne,Nt)['call'](this);let _0x25921e=JSON[_0x363d82(0x13e)](localStorage['getItem'](_0x363d82(0x144))||'{}'),_0x3a5861=_0x563372?n(this,q,Je)['call'](this,_0x25921e,_0x1b91c8,_0x563372):n(this,q,Je)[_0x363d82(0x130)](this,_0x25921e,_0x1b91c8);if(typeof _0x3a5861==_0x363d82(0xd6)){u(0x2,_0x3a5861);return;}n(this,U,ie)[_0x363d82(0x130)](this);let {id:_0x4559db}=_0x25921e[_0x1b91c8],_0xa455da={'attributeId':_0x4559db,'attributeProperties':_0x3a5861,'customerId':localStorage[_0x363d82(0xa7)](_0x363d82(0x147))||'','value':_0x122af2};yield n(this,Pe,Pt)['call'](this,_0xa455da),m(_0x363d82(0xf5),!0x1),S(_0x363d82(0xdc),!0x1);}));});},b=new WeakSet(),B=function(){return c(this,null,function*(){const _0x19dc06=_0xf067;u(0x1,'Checking\x20TTL'),S(_0x19dc06(0x146),!0x0),m(_0x19dc06(0x124),!0x0);let _0x1b3c83=localStorage['getItem'](_0x19dc06(0x109)),_0xf98cc0=!0x1;if(_0x1b3c83){if(_0xf98cc0=new Date()[_0x19dc06(0xc6)]()-parseInt(_0x1b3c83,0xa)>0x124f80,_0xf98cc0){let _0x188682=localStorage[_0x19dc06(0xa7)](_0x19dc06(0x7e)),_0x1f87b3=localStorage[_0x19dc06(0xa7)](_0x19dc06(0x109));_0x188682&&_0x1f87b3&&n(this,f,y)[_0x19dc06(0x130)](this,_0x19dc06(0xb5),[{'eventProperty':_0x19dc06(0x10c),'value':localStorage['getItem']('session')},{'eventProperty':_0x19dc06(0xbd),'value':new Date(parseInt(_0x1f87b3,0xa))['toISOString']()}]),n(this,Y,We)[_0x19dc06(0x130)](this),localStorage[_0x19dc06(0x121)](_0x19dc06(0x109),''+new Date()[_0x19dc06(0xc6)]());}}else localStorage['setItem'](_0x19dc06(0x109),''+new Date()[_0x19dc06(0xc6)]());(!_0x1b3c83||_0xf98cc0||n(this,ue,pt)[_0x19dc06(0x130)](this))&&(n(this,me,mt)[_0x19dc06(0x130)](this),yield n(this,D,oe)[_0x19dc06(0x130)](this),yield n(this,Ee,dt)['call'](this)),m(_0x19dc06(0x124),!0x1),S('Checking\x20TTL',!0x1);});},f=new WeakSet(),y=function(_0x1ede8,_0x5bdec0,_0x28110e,_0x54c398){return c(this,null,function*(){const _0x2686ae=_0xf067;yield O(_0x2686ae(0xcd),()=>c(this,null,function*(){const _0x767f04=_0x2686ae;var _0x5ca1d1;u(0x1,'#\x20Recording\x20event'),S('Recording\x20event',!0x0),m(_0x767f04(0x11b),!0x0),u(0x1,_0x767f04(0x9f)),u(0x1,{'campaignCustomerInstanceId':_0x28110e,'eventName':_0x1ede8,'eventProperties':_0x5bdec0,'name':_0x54c398}),_0x1ede8!==_0x767f04(0xb5)&&(yield n(this,b,B)[_0x767f04(0x130)](this));let _0x407e41=[];_0x5bdec0&&_0x407e41[_0x767f04(0xea)](..._0x5bdec0),_0x407e41[_0x767f04(0xea)]({'eventProperty':_0x767f04(0xa3),'value':E(this,P)}),_0x407e41[_0x767f04(0xea)]({'eventProperty':_0x767f04(0x14e),'value':E(this,J)}),_0x407e41[_0x767f04(0xea)]({'eventProperty':_0x767f04(0x128),'value':E(this,k)});let _0x280c06=n(this,Oe,Ot)[_0x767f04(0x130)](this),_0x40f4a9=n(this,we,wt)[_0x767f04(0x130)](this,_0x280c06,_0x1ede8,_0x407e41);if(typeof _0x40f4a9==_0x767f04(0xd6)){u(0x2,_0x40f4a9);return;}n(this,U,ie)[_0x767f04(0x130)](this);let {id:_0x5b507d}=_0x280c06[_0x1ede8],_0x3a1fe5=n(this,Le,Lt)[_0x767f04(0x130)](this,Z(De(Z({},_0x28110e?{'campaignCustomerInstanceId':_0x28110e}:{}),{'eventId':_0x5b507d,'eventProperties':_0x40f4a9,'sessionId':localStorage[_0x767f04(0xa7)](_0x767f04(0x7e))||''}),_0x54c398?{'name':_0x54c398}:{}));if(g[_0x767f04(0xdd)]){let _0x5e1325=JSON['parse'](localStorage[_0x767f04(0xa7)](_0x767f04(0x9b))||'[]');_0x5e1325[_0x767f04(0xff)]<=0x32&&(_0x5e1325['push'](..._0x3a1fe5['events']),localStorage[_0x767f04(0x121)](_0x767f04(0x9b),JSON[_0x767f04(0xd4)](_0x5e1325)));return;}let _0x12fadc=yield n(this,H,Ke)['call'](this,_0x3a1fe5);(_0x5ca1d1=_0x12fadc==null?void 0x0:_0x12fadc['data'])==null||_0x5ca1d1['forEach'](_0x3fa3a6=>{const _0x3caba0=_0x767f04;n(this,be,bt)['call'](this,_0x3fa3a6[_0x3caba0(0x9d)]['name'])&&(n(this,Ae,At)['call'](this,_0x3fa3a6),E(this,pe)[_0x3caba0(0x130)](this),n(this,Q,ke)[_0x3caba0(0x130)](this,_0x3fa3a6[_0x3caba0(0xc7)]));}),m('Recording\x20event\x20Time',!0x1),S(_0x767f04(0xfb),!0x1);}));});},ce=new WeakSet(),gt=function(){const _0x29e54e=_0x35405e;let _0x22913=navigator[_0x29e54e(0x89)][_0x29e54e(0x7c)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x29e54e(0xd2)](_0x22913)?_0x29e54e(0xd1):/windows|macintosh|linux|x11/i[_0x29e54e(0xd2)](_0x22913)?_0x29e54e(0x92):_0x29e54e(0xc8);},le=new WeakSet(),ut=function(){const _0x3c92b7=_0x35405e;let _0x2d4160=navigator[_0x3c92b7(0x89)],_0x32269a;return _0x2d4160[_0x3c92b7(0x7b)]('Chrome')>-0x1?_0x32269a=_0x3c92b7(0x134):_0x2d4160['indexOf']('Safari')>-0x1?_0x32269a=_0x3c92b7(0xac):_0x2d4160[_0x3c92b7(0x7b)](_0x3c92b7(0xa2))>-0x1?_0x32269a=_0x3c92b7(0xf8):_0x2d4160['indexOf']('Edg')>-0x1?_0x32269a=_0x3c92b7(0x105):_0x2d4160[_0x3c92b7(0x7b)](_0x3c92b7(0xd7))>-0x1?_0x32269a='Internet\x20Explorer':_0x32269a=_0x3c92b7(0xc8),_0x32269a;},W=new WeakSet(),$e=function(){return c(this,null,function*(){const _0x12c45e=_0xf067;try{yield R['get'](_0x12c45e(0xd5));}catch(_0x7c6ff2){throw g[_0x12c45e(0xb2)]=!0x0,_0x7c6ff2[_0x12c45e(0x9d)];}});},z=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x215e7d=_0xf067;var _0xffebb3;u(0x1,'Tracking\x20page\x20change'),S(_0x215e7d(0x103),!0x0),m(_0x215e7d(0xc9),!0x0);let _0x295bf9=(_0xffebb3=window==null?void 0x0:window[_0x215e7d(0xe8)])==null?void 0x0:_0xffebb3[_0x215e7d(0x98)];if(_0x295bf9!==E(this,K)){v(this,K,_0x295bf9);let _0xcdf022=[];new URLSearchParams(new URL(window['location'][_0x215e7d(0x98)])['search'])['forEach']((_0x5038c4,_0x550a3a)=>c(this,null,function*(){const _0x5eb516=_0x215e7d;Xe[_0x5eb516(0xba)](_0x550a3a)&&_0xcdf022[_0x5eb516(0xea)]({'eventProperty':_0x550a3a,'value':_0x5038c4});})),yield n(this,f,y)[_0x215e7d(0x130)](this,_0x215e7d(0x112),[{'eventProperty':'URL','value':window[_0x215e7d(0xe8)][_0x215e7d(0xf7)]},..._0xcdf022]);}m('Tracking\x20page\x20change\x20Time',!0x1),S(_0x215e7d(0x103),!0x1);});},ge=new WeakSet(),Et=function(_0x344432){const _0x41a3de=_0x35405e;R[_0x41a3de(0x143)](_0x344432),v(this,P,navigator[_0x41a3de(0x89)]),v(this,k,n(this,le,ut)[_0x41a3de(0x130)](this)),v(this,J,n(this,ce,gt)[_0x41a3de(0x130)](this));},ue=new WeakSet(),pt=function(){const _0x50ef78=_0x35405e;return!localStorage[_0x50ef78(0xa7)](_0x50ef78(0xbc))||!localStorage[_0x50ef78(0xa7)](_0x50ef78(0x147))||!localStorage['getItem'](_0x50ef78(0x144))||!localStorage[_0x50ef78(0xa7)](_0x50ef78(0xf3))||!localStorage['getItem'](_0x50ef78(0x7e))||!localStorage[_0x50ef78(0xa7)]('customer');},Ee=new WeakSet(),dt=function(){return c(this,null,function*(){const _0x17af87=_0xf067;yield n(this,Se,St)[_0x17af87(0x130)](this),yield n(this,j,Be)['call'](this),yield n(this,D,oe)['call'](this);});},pe=new WeakMap(),G=new WeakMap(),de=new WeakMap(),me=new WeakSet(),mt=function(){const _0x4181b0=_0x35405e;let _0x55f4f8=localStorage['getItem'](_0x4181b0(0xf3));return _0x55f4f8||(_0x55f4f8=(0x0,ne['v4'])(),localStorage[_0x4181b0(0x121)](_0x4181b0(0xf3),_0x55f4f8)),_0x55f4f8;},Se=new WeakSet(),St=function(){return c(this,null,function*(){const _0x3726eb=_0xf067;if(!localStorage[_0x3726eb(0xa7)](_0x3726eb(0xbc))){let _0x42c4bf=(yield n(this,Ie,It)[_0x3726eb(0x130)](this))[_0x3726eb(0x10e)];_0x42c4bf&&localStorage[_0x3726eb(0x121)](_0x3726eb(0xbc),JSON[_0x3726eb(0xd4)](_0x42c4bf));}});},Ie=new WeakSet(),It=function(){return c(this,null,function*(){const _0x47bd88=_0xf067;try{return(yield R['get'](''+Ce))[_0x47bd88(0x10e)];}catch(_0x3b2bba){throw new Error('Error\x20fetching\x20event\x20data');}});},j=new WeakSet(),Be=function(){return c(this,null,function*(){const _0x3e8e61=_0xf067;if(!localStorage['getItem']('attributes')){let _0x355195=(yield n(this,ve,vt)[_0x3e8e61(0x130)](this))['data'];_0x355195&&localStorage[_0x3e8e61(0x121)](_0x3e8e61(0x144),JSON['stringify'](_0x355195));}});},ve=new WeakSet(),vt=function(){return c(this,null,function*(){const _0x4629fa=_0xf067;try{return(yield R[_0x4629fa(0x131)](''+xe))[_0x4629fa(0x10e)];}catch(_0x32650b){throw new Error(_0x4629fa(0xa8));}});},D=new WeakSet(),oe=function(_0x186f95){return c(this,null,function*(){const _0x337cd1=_0xf067;localStorage['getItem'](_0x337cd1(0x7e))||(localStorage[_0x337cd1(0x121)](_0x337cd1(0x7e),(0x0,ne['v4'])()),yield n(this,f,y)['call'](this,_0x337cd1(0xde),[{'eventProperty':'SESSION_ID','value':localStorage[_0x337cd1(0xa7)](_0x337cd1(0x7e))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(localStorage[_0x337cd1(0xa7)](_0x337cd1(0x109))||'',0xa))[_0x337cd1(0xf9)]()}]));let _0x5521fb={'deviceId':localStorage['getItem']('uniqueIdentity')||(0x0,ne['v4'])(),'os':E(this,P)};if(_0x186f95)_0x5521fb[_0x337cd1(0xa6)]=_0x186f95;else{if(!_0x186f95&&localStorage[_0x337cd1(0xa7)](_0x337cd1(0x147)))return;}try{let _0x502054=(yield n(this,fe,ft)['call'](this,_0x5521fb))[_0x337cd1(0x10e)];_0x502054!==void 0x0&&localStorage[_0x337cd1(0x121)](_0x337cd1(0x147),_0x502054);}catch(_0x19d979){throw new Error(_0x337cd1(0x110));}});},U=new WeakSet(),ie=function(){const _0x5d4556=_0x35405e;localStorage['setItem']('ttl',''+new Date()[_0x5d4556(0xc6)]());},fe=new WeakSet(),ft=function(_0x157c77){return c(this,null,function*(){const _0x224d51=_0xf067;try{return(yield R[_0x224d51(0x78)](''+rt+nt,_0x157c77))['data'];}catch(_0x597f3d){throw new Error('Error\x20posting\x20identity\x20data');}});},Q=new WeakSet(),ke=function(_0x266121){const _0x227ee8=_0x35405e;let _0x8fb6d0=n(this,Te,Tt)[_0x227ee8(0x130)](this);if(_0x8fb6d0!=null&&_0x8fb6d0[_0x266121])switch(_0x8fb6d0[_0x266121][_0x227ee8(0x107)]){case _0x227ee8(0xdb):{n(this,ye,yt)[_0x227ee8(0x130)](this,_0x8fb6d0[_0x266121]);break;}case'IMMEDIATELY':{n(this,x,ae)[_0x227ee8(0x130)](this,_0x8fb6d0[_0x266121]);break;}case'SCROLL':{n(this,he,ht)[_0x227ee8(0x130)](this,_0x8fb6d0[_0x266121]);break;}default:return;}},Te=new WeakSet(),Tt=function(){const _0x3f6a42=_0x35405e;let _0x1f5443=localStorage['getItem'](_0x3f6a42(0x114));return _0x1f5443?JSON[_0x3f6a42(0x13e)](_0x1f5443):null;},he=new WeakSet(),ht=function(_0x192e34){const _0x1b8c2d=_0x35405e;window[_0x1b8c2d(0x79)](_0x1b8c2d(0xe2),()=>{const _0x494a0b=_0x1b8c2d;var _0x2315ea;let _0x37ca3c=window['innerHeight'],_0x3076f7=document[_0x494a0b(0x7d)][_0x494a0b(0x14a)];window[_0x494a0b(0xbf)]/(_0x3076f7-_0x37ca3c)*0x64>(((_0x2315ea=_0x192e34[_0x494a0b(0xab)])==null?void 0x0:_0x2315ea[_0x494a0b(0x81)])||0x0)&&n(this,x,ae)[_0x494a0b(0x130)](this,_0x192e34);});},ye=new WeakSet(),yt=function(_0x315290){const _0x7d3ca9=_0x35405e;var _0x3c0975;let _0x50264c=_0x315290[_0x7d3ca9(0x99)]-0x1f4+(((_0x3c0975=_0x315290[_0x7d3ca9(0xab)])==null?void 0x0:_0x3c0975[_0x7d3ca9(0x81)])||0x0)*0x3e8-new Date()[_0x7d3ca9(0xc6)]();_0x50264c>0x0&&_0x315290[_0x7d3ca9(0x135)]===window[_0x7d3ca9(0xe8)][_0x7d3ca9(0xeb)]+window[_0x7d3ca9(0xe8)][_0x7d3ca9(0xf7)]&&setTimeout(()=>{const _0x308d9e=_0x7d3ca9;E(this,G)[_0x308d9e(0x130)](this,_0x315290[_0x308d9e(0xc7)]),n(this,x,ae)['call'](this,_0x315290);},_0x50264c);},x=new WeakSet(),ae=function(_0xc8c570){const _0x1e1128=_0x35405e;let _0x3969c5=n(this,Re,Rt)[_0x1e1128(0x130)](this,_0x1e1128(0x139),_0xc8c570);document[_0x1e1128(0x10f)][_0x1e1128(0xec)](_0x3969c5),n(this,f,y)[_0x1e1128(0x130)](this,A,[{'eventProperty':_0x1e1128(0x148),'value':JSON[_0x1e1128(0xd4)]({'campaignId':_0xc8c570['campaignId']})}],_0xc8c570[_0x1e1128(0x106)],_0x1e1128(0x87)),E(this,G)[_0x1e1128(0x130)](this,_0xc8c570[_0x1e1128(0xc7)]);},Re=new WeakSet(),Rt=function(_0x3a2598,_0x4cee92){const _0x333cdd=_0x35405e;var _0x4d5415;let {campaignCustomerInstanceId:_0x4a8246,campaignId:_0x21f00d,message:{design:_0x35f6eb}}=_0x4cee92,_0x1de7ae=document[_0x333cdd(0x93)](_0x3a2598);return _0x1de7ae['id']=_0x333cdd(0x9e)+_0x21f00d,_0x1de7ae[_0x333cdd(0x11c)]=_0x35f6eb,_0x1de7ae[_0x333cdd(0x12f)](_0x333cdd(0xc2))[_0x333cdd(0x100)](_0x34820d=>{const _0x1b30f8=_0x333cdd;let _0xa66d46=_0x34820d[_0x1b30f8(0xaa)](_0x1b30f8(0x12e));_0xa66d46&&_0xa66d46[_0x1b30f8(0x79)](_0x1b30f8(0x116),_0x11ed18=>c(this,null,function*(){const _0x101860=_0x1b30f8;_0x11ed18[_0x101860(0x9a)]();let _0x869743=new FormData(_0xa66d46),_0x3361d4={};for(let [_0x2ccee5,_0x2b79c3]of _0x869743['entries']())_0x3361d4[_0x2ccee5]=_0x2b79c3;yield n(this,f,y)[_0x101860(0x130)](this,A,[{'eventProperty':'Form\x20Submit','value':JSON[_0x101860(0xd4)]({'campaignId':_0x21f00d,'formId':_0x34820d['id'],'formValues':_0x3361d4})}],_0x4a8246,_0x101860(0x12e));}));}),(_0x4d5415=_0x1de7ae[_0x333cdd(0xaa)]('.u-close-button'))==null||_0x4d5415[_0x333cdd(0x79)](_0x333cdd(0xcc),()=>c(this,null,function*(){const _0xb1a2d3=_0x333cdd;_0x1de7ae[_0xb1a2d3(0x11d)](),yield n(this,f,y)['call'](this,A,[{'eventProperty':_0xb1a2d3(0x108),'value':JSON['stringify']({'campaignId':_0x21f00d})}],_0x4a8246,'close');})),_0x1de7ae['querySelectorAll'](_0x333cdd(0xef))[_0x333cdd(0x100)](_0x2c41d2=>{const _0x158c65=_0x333cdd;_0x2c41d2[_0x158c65(0x79)](_0x158c65(0xcc),()=>c(this,null,function*(){const _0x5c988b=_0x158c65;yield n(this,f,y)[_0x5c988b(0x130)](this,A,[{'eventProperty':_0x5c988b(0xa9),'value':JSON[_0x5c988b(0xd4)]({'buttonId':_0x2c41d2['id'],'campaignId':_0x21f00d})}],_0x4a8246,_0x5c988b(0xcc));}));}),_0x1de7ae['querySelectorAll'](_0x333cdd(0x96))[_0x333cdd(0x100)](_0x48fd22=>{const _0x3f152e=_0x333cdd;_0x48fd22[_0x3f152e(0x79)](_0x3f152e(0xcc),()=>c(this,null,function*(){const _0x73bba1=_0x3f152e;yield n(this,f,y)[_0x73bba1(0x130)](this,A,[{'eventProperty':_0x73bba1(0x90),'value':JSON[_0x73bba1(0xd4)]({'campaignId':_0x21f00d,'imageClassName':_0x48fd22[_0x73bba1(0x11f)],'imageId':_0x48fd22['id']})}],_0x4a8246,_0x73bba1(0xcc));}));}),_0x1de7ae;},Oe=new WeakSet(),Ot=function(){const _0x487ea8=_0x35405e;let _0x410f28=localStorage[_0x487ea8(0xa7)](_0x487ea8(0xbc));return _0x410f28?JSON['parse'](_0x410f28):{};},we=new WeakSet(),wt=function(_0x2fbbcd,_0x5378a1,_0x4ba529){const _0x1f8aec=_0x35405e;if(!Object[_0x1f8aec(0xb0)][_0x1f8aec(0xe1)]['call'](_0x2fbbcd,_0x5378a1))return'Event\x20'+_0x5378a1+_0x1f8aec(0x126);if(!_0x4ba529)return[];let _0x3c5285=_0x2fbbcd[_0x5378a1];if(!(_0x3c5285!=null&&_0x3c5285['eventProperty']))return _0x1f8aec(0xae)+_0x5378a1+_0x1f8aec(0x129);let _0x18215f=_0x4ba529[_0x1f8aec(0xe0)](({eventProperty:_0x134219})=>!Object[_0x1f8aec(0xb0)][_0x1f8aec(0xe1)][_0x1f8aec(0x130)](_0x3c5285[_0x1f8aec(0x7a)],_0x134219))[_0x1f8aec(0xdf)](({eventProperty:_0x1bb31d})=>_0x1bb31d);return _0x18215f[_0x1f8aec(0xff)]>0x0?_0x1f8aec(0xae)+_0x5378a1+_0x1f8aec(0xbe)+_0x18215f[_0x1f8aec(0x88)](',\x20')+'.':_0x4ba529[_0x1f8aec(0xdf)](({eventProperty:_0x1bbecf,value:_0x6ca7a1})=>({'eventPropertyId':_0x3c5285[_0x1f8aec(0x7a)][_0x1bbecf]['id'],'value':_0x6ca7a1}));},q=new WeakSet(),Je=function(_0x49ceba,_0x4bb90d,_0x5698d4){const _0x20f6a2=_0x35405e;if(!Object[_0x20f6a2(0xb0)][_0x20f6a2(0xe1)]['call'](_0x49ceba,_0x4bb90d))return'Attribute\x20'+_0x4bb90d+_0x20f6a2(0x126);if(!_0x5698d4)return[];let _0x4d7e19=_0x49ceba[_0x4bb90d];if(!(_0x4d7e19!=null&&_0x4d7e19['attributeProperty']))return _0x20f6a2(0xe5)+_0x4bb90d+_0x20f6a2(0x91);let _0x50c6ff=_0x5698d4[_0x20f6a2(0xe0)](({attributeProperty:_0xa75b94})=>!Object[_0x20f6a2(0xb0)][_0x20f6a2(0xe1)][_0x20f6a2(0x130)](_0x4d7e19['attributeProperty'],_0xa75b94))[_0x20f6a2(0xdf)](({attributeProperty:_0xba1f37})=>_0xba1f37);return _0x50c6ff['length']>0x0?_0x20f6a2(0xe5)+_0x4bb90d+_0x20f6a2(0x8e)+_0x50c6ff[_0x20f6a2(0x88)](',\x20')+'.':_0x5698d4[_0x20f6a2(0xdf)](({attributeProperty:_0x4d9f84,value:_0x594978})=>({'attributePropertyId':_0x4d7e19[_0x20f6a2(0x13d)][_0x4d9f84]['id'],'value':_0x594978}));},Le=new WeakSet(),Lt=function(_0xf403ae){const _0x277cef=_0x35405e;return{'customerId':localStorage[_0x277cef(0xa7)]('customer')||'','events':[_0xf403ae]};},H=new WeakSet(),Ke=function(_0x58f575){return c(this,null,function*(){const _0x179a7a=_0xf067;try{return(yield R[_0x179a7a(0x78)](''+Ce+tt,_0x58f575))[_0x179a7a(0x10e)];}catch(_0x1005c5){throw new Error(_0x179a7a(0xf1));}});},be=new WeakSet(),bt=function(_0x50b2f0){const _0x5d85f1=_0x35405e;return _0x50b2f0===_0x5d85f1(0x13b);},Ae=new WeakSet(),At=function(_0x2dddc2){const _0x1d4b66=_0x35405e;let _0x19ceca=JSON[_0x1d4b66(0x13e)](localStorage[_0x1d4b66(0xa7)]('action')||'{}');_0x19ceca[_0x2dddc2[_0x1d4b66(0xc7)]]=De(Z({},_0x2dddc2),{'initialTime':new Date()[_0x1d4b66(0xc6)](),'page':window[_0x1d4b66(0xe8)][_0x1d4b66(0xeb)]+window['location']['pathname']}),localStorage['setItem'](_0x1d4b66(0x114),JSON['stringify'](_0x19ceca));},Y=new WeakSet(),We=function(){const _0x5d55bc=_0x35405e;localStorage['removeItem'](_0x5d55bc(0x114)),localStorage['removeItem']('events'),localStorage[_0x5d55bc(0x83)](_0x5d55bc(0x144)),localStorage[_0x5d55bc(0x83)](_0x5d55bc(0x9b)),localStorage[_0x5d55bc(0x83)](_0x5d55bc(0x109)),localStorage[_0x5d55bc(0x83)](_0x5d55bc(0x7e));},Ne=new WeakSet(),Nt=function(){return c(this,null,function*(){const _0x20a78d=_0xf067;localStorage[_0x20a78d(0xa7)](_0x20a78d(0x144))||(yield n(this,j,Be)[_0x20a78d(0x130)](this));});},Pe=new WeakSet(),Pt=function(_0x5cb2f8){return c(this,null,function*(){const _0xc41fb1=_0xf067;try{return yield R['post'](''+xe+et,_0x5cb2f8);}catch(_0x5e7c2f){throw new Error(_0xc41fb1(0x111));}});},i(L,N,void 0x0);function _0x3096(){const _0xdc8f2a=['utm_source','Mobile','test','/event','stringify','brand','string','MSIE','Cannot\x20','12110EoTpTw','getPrototypeOf','DELAY','Recording\x20attribute','offline','Web\x20Session\x20Started','map','filter','hasOwnProperty','scroll','set','resolve','Attribute\x20','Mergn\x20SDK\x20is\x20disabled!','\x0aAxiosError:\x20','location','exports','push','hostname','appendChild','isInitialized','record\x20event','[id^=\x22u_content_button_\x22]','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','Error\x20posting\x20event\x20record','log','uniqueIdentity','Popup\x20Action','Recording\x20attribute\x20Time','INFO:\x20','pathname','Mozilla\x20Firefox','toISOString','values','Recording\x20event','NONE','Initializing\x20Mergn\x20SDK','getOwnPropertyDescriptor','length','forEach','status','__esModule','Tracking\x20page\x20change','OriginateFrom:\x20','Microsoft\x20Edge','campaignCustomerInstanceId','campaignEntryTime','Close\x20Click','ttl','write\x20to\x20private\x20field','/customer','SESSION_ID','groupEnd','data','body','Error\x20setting\x20identity','Error\x20posting\x20attribute\x20record','Viewed\x20Webpage','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','action','read\x20from\x20private\x20field','submit','Event\x20Payload:\x0a\x20','add','/set-identity','5930814VSTYAa','Recording\x20event\x20Time','innerHTML','remove','then','className','utm_content','setItem','done','5789655AduGiN','Checking\x20TTL\x20Time','/attribute','\x20is\x20not\x20valid.','name','os-version','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','getOwnPropertySymbols','4158021IUZAQI','\x0aMergnError:\x20','/set-attribute','form','querySelectorAll','call','get','getOwnPropertyDescriptors','apiKey','Google\x20Chrome','page','Logging\x20in\x20Time','Max\x20retries\x20reached.\x20Disabling\x20SDK.','debugLevel','div','394BrodVM','Popup','AxiosError','attributeProperty','parse','utm_campaign','5601552CMXrCB','time','apply','updateAPIKey','attributes','headers','Checking\x20TTL','customer','Popup\x20View','Mergn\x20SDK\x20Initialization\x20Time','scrollHeight','propertyIsEnumerable','request','setDebugLevel','operating-system','Mergn\x20not\x20initialized!','ALL','load','#\x20recordAttribute','post','addEventListener','eventProperty','indexOf','toLowerCase','documentElement','session','default','online','value','info','removeItem','showErrorLog','init','4FqduLo','view','join','userAgent','recordEvent','recordAttribute','group','\x0aUnexpected\x20error:\x20','\x20has\x20invalid\x20attributeProperties:\x20','UTM_SOURCE','Image\x20Click','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','Web','createElement','Logging\x20out','error','.u-popup-container\x20img','UTM_CONTENT','href','initialTime','preventDefault','offlineEvents','enumerable','message','popup_container_','Event\x20Payload','UTM_TERM','\x0aResponse\x20Data:\x20','Firefox','Platform','pushState','response','identity','getItem','Error\x20fetching\x20attribute\x20data','Button\x20Click','querySelector','campaignEntryTimeValue','Safari','defineProperty','Event\x20','utm_term','prototype','ERROR','disableSDK','6368jFgXvU','function','Web\x20Session\x20Concluded','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','beforeunload','defaults','getInstance','has','Logging\x20out\x20Time','events','SESSION_CREATED','\x20has\x20invalid\x20eventProperties:\x20','scrollY','/record-event','throw','[id^=\x22u_content_form_\x22]','logout','login','application/json','getTime','campaignId','Unknown','Tracking\x20page\x20change\x20Time','\x0aError\x20setting\x20up\x20the\x20request:\x20','1475871QbcXFU','click','#\x20record\x20event','keys','6939hPTcxm'];_0x3096=function(){return _0xdc8f2a;};return _0x3096();}var Me=L,Dt=Me[_0x35405e(0xb9)](),Wt=Dt;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4df59a=_0x5554;function _0x3a77(){const _0x442b44=['Max\x20retries\x20reached.\x20Disabling\x20SDK.','map','Cannot\x20','904680opGlyb','/set-identity','Customer\x20Id','status','hostname','create','setItem','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','removeItem','read\x20from\x20private\x20field','HTTP\x20Status:\x20','scroll','apiKey','Popup\x20Viewed','call','OriginateFrom:\x20','search','scrollHeight','filter','has','request','view','defaults','recordEvent','customer','offlineEvents','getItem','226864BYXSmH','Response\x20Data:','div','data','appendChild','Error\x20fetching\x20attribute\x20data','Popup','addEventListener','isInitialized','MergnError:\x20','querySelector','identity','common','Mergn\x20SDK\x20is\x20disabled!','Viewed\x20Web\x20Page','/event','.u-popup-container\x20img','forEach','innerHeight','set','entries','pushState','uniqueIdentity','[id^=\x22u_content_button_\x22]','string','Form\x20Submit','User\x20Logout','submit','Authorization','568yIEUUJ','record\x20event','done','value','Error\x20setting\x20identity','isArray','Error\x20posting\x20attribute\x20record','page','close','Error\x20fetching\x20event\x20data','access\x20private\x20method','campaignEntryTimeValue','events','next','write\x20to\x20private\x20field','eventProperty','post','session','IMMEDIATELY','UTM\x20Key\x20Value','resolve','length','location','then','campaignId','Close\x20Click','hasOwnProperty','offline','908015GcCVTZ','logout','parse','1606756wWIQlK','click','Error\x20posting\x20event\x20record','apply','join','error','brand','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','81phGXZj','attributeProperty','response','Button\x20Click','166430tZAPiN','scrollY','pathname','application/json','remove','getInstance','attributes','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','get','disableSDK','getOwnPropertyDescriptors','recordAttribute','init','initialTime','platform','action','body','Popup\x20Action','message','prototype','1549912HKMeEA','URL','log','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','19335fZVMbj','/record-attribute','Image\x20Click','online','130TPYeql','Mergn\x20not\x20initialized!','querySelectorAll','stringify','6dsTLHI','push','defineProperties','name','getTime','updateAPIKey','load','Campaign\x20Id','onLine','showErrorLog','MergnError','Error\x20posting\x20identity\x20data','beforeunload','keys','login','form','throw'];_0x3a77=function(){return _0x442b44;};return _0x3a77();}(function(_0x3c7478,_0x34fc1d){const _0x523067=_0x5554,_0x4bf5d0=_0x3c7478();while(!![]){try{const _0xf49e05=parseInt(_0x523067(0x180))/0x1+parseInt(_0x523067(0x1bc))/0x2+-parseInt(_0x523067(0x149))/0x3*(parseInt(_0x523067(0x19d))/0x4)+parseInt(_0x523067(0x1b9))/0x5*(-parseInt(_0x523067(0x151))/0x6)+-parseInt(_0x523067(0x145))/0x7+-parseInt(_0x523067(0x165))/0x8*(-parseInt(_0x523067(0x12d))/0x9)+parseInt(_0x523067(0x14d))/0xa*(-parseInt(_0x523067(0x131))/0xb);if(_0xf49e05===_0x34fc1d)break;else _0x4bf5d0['push'](_0x4bf5d0['shift']());}catch(_0x507362){_0x4bf5d0['push'](_0x4bf5d0['shift']());}}}(_0x3a77,0x82274));var pt=Object['defineProperty'],gt=Object[_0x4df59a(0x153)],dt=Object[_0x4df59a(0x13b)],De=Object['getOwnPropertySymbols'],Et=Object[_0x4df59a(0x144)]['hasOwnProperty'],mt=Object[_0x4df59a(0x144)]['propertyIsEnumerable'],_e=(_0x301e2a,_0x31d5e9,_0x70fe01)=>_0x31d5e9 in _0x301e2a?pt(_0x301e2a,_0x31d5e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x70fe01}):_0x301e2a[_0x31d5e9]=_0x70fe01,Y=(_0x12b8fb,_0xf86f3e)=>{const _0x289a7e=_0x4df59a;for(var _0x2027ba in _0xf86f3e||(_0xf86f3e={}))Et[_0x289a7e(0x173)](_0xf86f3e,_0x2027ba)&&_e(_0x12b8fb,_0x2027ba,_0xf86f3e[_0x2027ba]);if(De){for(var _0x2027ba of De(_0xf86f3e))mt[_0x289a7e(0x173)](_0xf86f3e,_0x2027ba)&&_e(_0x12b8fb,_0x2027ba,_0xf86f3e[_0x2027ba]);}return _0x12b8fb;},Ie=(_0x533848,_0x55f87a)=>gt(_0x533848,dt(_0x55f87a)),he=(_0x5848b0,_0xfab8b5,_0xd478a)=>{const _0x3db691=_0x4df59a;if(!_0xfab8b5[_0x3db691(0x178)](_0x5848b0))throw TypeError(_0x3db691(0x164)+_0xd478a);},u=(_0x1e3e4c,_0x1c2faf,_0x35ebdf)=>(he(_0x1e3e4c,_0x1c2faf,_0x4df59a(0x16e)),_0x35ebdf?_0x35ebdf[_0x4df59a(0x173)](_0x1e3e4c):_0x1c2faf[_0x4df59a(0x139)](_0x1e3e4c)),n=(_0x1a30d7,_0x445279,_0x5d18e5)=>{const _0x426357=_0x4df59a;if(_0x445279['has'](_0x1a30d7))throw TypeError(_0x426357(0x16c));_0x445279 instanceof WeakSet?_0x445279['add'](_0x1a30d7):_0x445279[_0x426357(0x193)](_0x1a30d7,_0x5d18e5);},E=(_0x5e18ef,_0x5afc09,_0x1394cd,_0x8cc9a)=>(he(_0x5e18ef,_0x5afc09,_0x4df59a(0x1ab)),_0x8cc9a?_0x8cc9a[_0x4df59a(0x173)](_0x5e18ef,_0x1394cd):_0x5afc09[_0x4df59a(0x193)](_0x5e18ef,_0x1394cd),_0x1394cd),Ve=(_0x564cc0,_0xe0d113,_0x59e286,_0x24b32d)=>({set '_'(_0x3ac6fc){E(_0x564cc0,_0xe0d113,_0x3ac6fc,_0x59e286);},get '_'(){return u(_0x564cc0,_0xe0d113,_0x24b32d);}}),r=(_0xecc626,_0x33a374,_0x597767)=>(he(_0xecc626,_0x33a374,_0x4df59a(0x1a7)),_0x597767),a=(_0x5c728e,_0x2f9d2b,_0x28ffcf)=>new Promise((_0x173e1f,_0x47d2dc)=>{const _0x1b9d64=_0x4df59a;var _0x54d8db=_0x562bd6=>{const _0x160257=_0x5554;try{_0x4ff065(_0x28ffcf[_0x160257(0x1aa)](_0x562bd6));}catch(_0x1d15af){_0x47d2dc(_0x1d15af);}},_0x3577ea=_0x10d5ca=>{const _0x4da1fc=_0x5554;try{_0x4ff065(_0x28ffcf[_0x4da1fc(0x161)](_0x10d5ca));}catch(_0x53d084){_0x47d2dc(_0x53d084);}},_0x4ff065=_0x265f9b=>_0x265f9b[_0x1b9d64(0x19f)]?_0x173e1f(_0x265f9b[_0x1b9d64(0x1a0)]):Promise[_0x1b9d64(0x1b1)](_0x265f9b[_0x1b9d64(0x1a0)])[_0x1b9d64(0x1b4)](_0x54d8db,_0x3577ea);_0x4ff065((_0x28ffcf=_0x28ffcf[_0x1b9d64(0x1bf)](_0x5c728e,_0x2f9d2b))[_0x1b9d64(0x1aa)]());});import{v4 as _0x1a5ae4}from'uuid';var O=_0x4df59a(0x142),Me=_0x4df59a(0x172),Be=_0x4df59a(0x1c3),Se='/attribute',Fe=_0x4df59a(0x14a),ye=_0x4df59a(0x18f),$e='/record-event',Je='/customer',ke=_0x4df59a(0x166);import _0x47dcfd from'axios';import{AxiosQueueManager as _0x18436f}from'axios-queue-js';import _0x5d685d from'axios-retry';import{AxiosError as _0x36409e}from'axios';var l=class extends Error{constructor(_0x305d1b){const _0xd8f237=_0x4df59a;super(_0x305d1b),this[_0xd8f237(0x154)]=_0xd8f237(0x15b);}};l[_0x4df59a(0x13a)]=!0x1,l[_0x4df59a(0x1b8)]=!navigator[_0x4df59a(0x159)],l[_0x4df59a(0x15a)]=!0x1,l[_0x4df59a(0x188)]=!0x1;var It=(_0x49453e,_0x4cc097)=>{const _0x3a0043=_0x4df59a;_0x4cc097 instanceof l?console[_0x3a0043(0x1c1)]('OriginateFrom:\x20'+_0x49453e,_0x3a0043(0x189)+_0x4cc097[_0x3a0043(0x143)]):_0x4cc097 instanceof _0x36409e?(console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,'AxiosError:\x20'+_0x4cc097[_0x3a0043(0x143)]),_0x4cc097[_0x3a0043(0x12f)]?(console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,_0x3a0043(0x16f)+_0x4cc097['response'][_0x3a0043(0x168)]),console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,_0x3a0043(0x181),_0x4cc097[_0x3a0043(0x12f)][_0x3a0043(0x183)])):_0x4cc097[_0x3a0043(0x179)]?console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e+_0x3a0043(0x148)):console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,'Error\x20setting\x20up\x20the\x20request:',_0x4cc097[_0x3a0043(0x143)])):_0x4cc097 instanceof Error?console['error'](_0x3a0043(0x174)+_0x49453e,'Unexpected\x20error:',_0x4cc097['message']):console['error'](_0x3a0043(0x174)+_0x49453e,'Unexpected\x20error:',String(_0x4cc097));},f=(_0x2f6f3c,_0x475208,_0x49520d)=>a(void 0x0,null,function*(){const _0x550b17=_0x4df59a;try{if(l[_0x550b17(0x13a)])throw new l(_0x550b17(0x18d));if(_0x2f6f3c!==_0x550b17(0x19e)&&l[_0x550b17(0x1b8)])throw new l('Mergn\x20is\x20offline!');if(_0x2f6f3c!==_0x550b17(0x13d)&&!l[_0x550b17(0x188)])throw new l(_0x550b17(0x14e));return yield _0x475208();}catch(_0x4ed287){return _0x49520d?_0x49520d(_0x4ed287):l['showErrorLog']&&It(_0x2f6f3c,_0x4ed287),null;}}),T,U,N,x,H,C,Te,z,Ke,d=class d{constructor(){const _0xd21991=_0x4df59a;n(this,H,0x0);let _0x4577d8=_0x47dcfd[_0xd21991(0x16a)]({'baseURL':Be,'headers':{'Content-Type':_0xd21991(0x134)}});E(d,U,_0x4577d8),E(d,N,new _0x18436f({'client':_0x4577d8,'queueSize':0xa})),_0x5d685d(_0x4577d8,{'onRetry':_0x57aaed=>{const _0xb95731=_0xd21991;_0x57aaed>=u(d,x)?(l[_0xb95731(0x15a)]&&console[_0xb95731(0x147)](_0xb95731(0x162)),l['disableSDK']=!0x0):Ve(this,H)['_']++;},'retries':u(d,x),'retryDelay':_0x1c7409=>_0x1c7409*0x1388});}static[_0x4df59a(0x156)](_0x4c2457){const _0xa6f49e=_0x4df59a;this[_0xa6f49e(0x171)]=_0x4c2457,r(this,z,Ke)[_0xa6f49e(0x173)](this)[_0xa6f49e(0x17b)]['headers'][_0xa6f49e(0x18c)][_0xa6f49e(0x19c)]=_0x4c2457;}static[_0x4df59a(0x139)](_0x3a5935){const _0x4f8fa6=_0x4df59a;return r(this,C,Te)[_0x4f8fa6(0x173)](this)['get'](_0x3a5935);}static[_0x4df59a(0x1ad)](_0x29ad0f,_0x864fd9){const _0x142ad6=_0x4df59a;return r(this,C,Te)[_0x142ad6(0x173)](this)[_0x142ad6(0x1ad)](_0x29ad0f,_0x864fd9||{});}};function _0x5554(_0xe3993b,_0x15ec39){const _0x3a772b=_0x3a77();return _0x5554=function(_0x555489,_0x4735c7){_0x555489=_0x555489-0x12d;let _0x2d23f5=_0x3a772b[_0x555489];return _0x2d23f5;},_0x5554(_0xe3993b,_0x15ec39);}T=new WeakMap(),U=new WeakMap(),N=new WeakMap(),x=new WeakMap(),H=new WeakMap(),C=new WeakSet(),Te=function(){return u(d,T)||E(d,T,new d()),u(d,N);},z=new WeakSet(),Ke=function(){return u(d,T)||E(d,T,new d()),u(d,U);},n(d,C),n(d,z),n(d,T,void 0x0),n(d,U,void 0x0),n(d,N,void 0x0),n(d,x,0x2);var fe=d,S=fe,P,I,D,_,V,M,y,w,B,Re,F,Pe,X,je,Z,Qe,ee,qe,te,$,re,oe,Ye,ne,He,ie,ze,J,Ae,se,Ge,A,G,ae,We,k,Le,ce,Xe,le,Ze,ue,et,L,W,pe,tt,ge,rt,de,ot,Ee,nt,K,Oe,me,it,ve,st,j,Ue,Q,Ne,q,xe,b=class b{constructor(){const _0x26a9a2=_0x4df59a;n(this,y),n(this,B),n(this,F),n(this,X),n(this,Z),n(this,ee),n(this,oe),n(this,ne),n(this,ie),n(this,J),n(this,se),n(this,A),n(this,ae),n(this,k),n(this,ce),n(this,le),n(this,ue),n(this,L),n(this,pe),n(this,ge),n(this,de),n(this,Ee),n(this,K),n(this,me),n(this,ve),n(this,j),n(this,Q),n(this,q),n(this,I,''),n(this,D,void 0x0),n(this,_,void 0x0),n(this,V,void 0x0),n(this,M,null),n(this,te,()=>{const _0x304a44=_0x5554;let _0x310b51=()=>{const _0x1e17df=_0x5554;let _0x1be47e=JSON['parse'](localStorage[_0x1e17df(0x17f)](_0x1e17df(0x140))||'{}');Object[_0x1e17df(0x15e)](_0x1be47e)['forEach'](_0xd109b4=>{const _0x170419=_0x1e17df;_0x1be47e[_0xd109b4][_0x170419(0x13e)]=new Date()[_0x170419(0x155)](),_0x1be47e[_0xd109b4][_0x170419(0x1a4)]=window['location'][_0x170419(0x169)]+window['location']['pathname'];}),localStorage[_0x1e17df(0x16b)](_0x1e17df(0x140),JSON[_0x1e17df(0x150)](_0x1be47e));};_0x310b51(),window[_0x304a44(0x187)](_0x304a44(0x15d),_0x310b51);}),n(this,$,_0xdd78fd=>{const _0x4ae003=_0x5554;let _0x74be55=JSON[_0x4ae003(0x1bb)](localStorage[_0x4ae003(0x17f)](_0x4ae003(0x140))||'{}');_0x74be55[_0xdd78fd]&&delete _0x74be55[_0xdd78fd],localStorage[_0x4ae003(0x16b)](_0x4ae003(0x140),JSON[_0x4ae003(0x150)](_0x74be55));}),n(this,re,()=>{const _0x2b0c59=_0x5554;let _0x1ddac8=JSON[_0x2b0c59(0x1bb)](localStorage['getItem']('action')||'{}');Object[_0x2b0c59(0x15e)](_0x1ddac8)[_0x2b0c59(0x191)](_0x38c473=>{_0x1ddac8[_0x38c473]['message']['name']==='Popup'&&r(this,k,Le)['call'](this,_0x1ddac8[_0x38c473]['campaignId']);});}),E(this,V,navigator[_0x26a9a2(0x13f)]);}static[_0x4df59a(0x136)](){return u(b,P)||E(b,P,new b()),u(b,P);}['init'](_0x4f7153){const _0x32cdf2=_0x4df59a;f(_0x32cdf2(0x13d),()=>a(this,null,function*(){const _0x567e02=_0x32cdf2;r(this,X,je)[_0x567e02(0x173)](this,_0x4f7153),yield r(this,B,Re)[_0x567e02(0x173)](this),setInterval(()=>a(this,null,function*(){const _0x382f44=_0x567e02;yield r(this,B,Re)[_0x382f44(0x173)](this);}),0x493e0);let _0xc975b9=localStorage['getItem']('ttl'),_0x200afe=!0x1;_0xc975b9?(_0x200afe=new Date()[_0x567e02(0x155)]()-parseInt(_0xc975b9,0xa)>0x1b7740,_0x200afe&&r(this,j,Ue)[_0x567e02(0x173)](this)):localStorage[_0x567e02(0x16b)]('ttl',''+new Date()[_0x567e02(0x155)]()),(!_0xc975b9||_0x200afe||r(this,Z,Qe)[_0x567e02(0x173)](this))&&(r(this,oe,Ye)[_0x567e02(0x173)](this),yield r(this,A,G)[_0x567e02(0x173)](this),yield r(this,ee,qe)['call'](this)),window['addEventListener'](_0x567e02(0x14c),()=>a(this,null,function*(){const _0x14eff8=_0x567e02;l[_0x14eff8(0x1b8)]=!0x1;let _0x4f9e37=JSON[_0x14eff8(0x1bb)](localStorage[_0x14eff8(0x17f)](_0x14eff8(0x17e))||'[]');Array[_0x14eff8(0x1a2)](_0x4f9e37)&&(yield r(this,K,Oe)['call'](this,{'customerId':u(this,I),'events':_0x4f9e37}),localStorage[_0x14eff8(0x16d)](_0x14eff8(0x17e)));})),window['addEventListener'](_0x567e02(0x1b8),()=>{l['offline']=!0x0;}),window['addEventListener'](_0x567e02(0x157),()=>{const _0x5cb1d3=_0x567e02;u(this,re)[_0x5cb1d3(0x173)](this);}),l['isInitialized']=!0x0;let _0x36f22c=history[_0x567e02(0x195)];history[_0x567e02(0x195)]=(..._0x3f0893)=>{const _0x590197=_0x567e02;_0x36f22c[_0x590197(0x1bf)](history,_0x3f0893),r(this,F,Pe)[_0x590197(0x173)](this);},r(this,F,Pe)[_0x567e02(0x173)](this);}));}[_0x4df59a(0x15a)](_0x215b76=!0x1){const _0x28f1ab=_0x4df59a;l[_0x28f1ab(0x15a)]=_0x215b76;}['recordAttribute'](_0x3680fb){return a(this,null,function*(){const _0x2422ec=_0x5554;yield f(_0x2422ec(0x13c),()=>a(this,null,function*(){const _0x47dea8=_0x2422ec;yield r(this,Q,Ne)[_0x47dea8(0x173)](this);let _0x3eb8c8=JSON[_0x47dea8(0x1bb)](localStorage[_0x47dea8(0x17f)](_0x47dea8(0x137))||'[]');if(_0x3eb8c8&&Object[_0x47dea8(0x15e)](_0x3eb8c8)[_0x47dea8(0x1b2)]>0x0){let _0x253bcc=[];_0x3680fb&&Object[_0x47dea8(0x15e)](_0x3680fb)[_0x47dea8(0x1b2)]>0x0&&Object[_0x47dea8(0x15e)](_0x3680fb)[_0x47dea8(0x191)](_0x453260=>{const _0x38ad77=_0x47dea8;_0x3eb8c8['hasOwnProperty'](_0x453260)&&_0x253bcc[_0x38ad77(0x152)]({'attributeId':_0x3eb8c8[_0x453260]['id'],'attributeProperties':[],'value':_0x3680fb[_0x453260]});});let _0x510403=[{'attributes':_0x253bcc,'customerId':u(this,I)}];yield r(this,q,xe)[_0x47dea8(0x173)](this,_0x510403);}}));});}[_0x4df59a(0x15f)](_0x5bfa85){return a(this,null,function*(){yield f('login',()=>a(this,null,function*(){const _0x1eae25=_0x5554;yield r(this,A,G)[_0x1eae25(0x173)](this,_0x5bfa85),yield this[_0x1eae25(0x17c)]('User\x20Login',[{'eventProperty':'Customer\x20Id','value':localStorage[_0x1eae25(0x17f)](_0x1eae25(0x17d))||0x0}]);}));});}['updateAttribute'](_0x301a92,_0x40167f,_0x5ff8ca){return a(this,null,function*(){const _0x13fb1b=_0x5554;yield r(this,Q,Ne)['call'](this);let _0x437f7d=JSON['parse'](localStorage[_0x13fb1b(0x17f)](_0x13fb1b(0x137))||'{}');if(_0x437f7d&&Object[_0x13fb1b(0x15e)](_0x437f7d)['length']>0x0&&_0x437f7d[_0x13fb1b(0x1b7)](_0x301a92)){let _0x9a53a5=_0x437f7d[_0x301a92],_0x4ecd03=_0x9a53a5[_0x13fb1b(0x12e)],_0x26d99a=[];_0x5ff8ca&&Object[_0x13fb1b(0x15e)](_0x5ff8ca)['length']>0x0&&Object[_0x13fb1b(0x15e)](_0x5ff8ca)[_0x13fb1b(0x191)](_0x250611=>{const _0x5e8766=_0x13fb1b;_0x4ecd03[_0x5e8766(0x1b7)](_0x250611)&&_0x26d99a[_0x5e8766(0x152)]({'attributePropertyId':_0x4ecd03[_0x250611]['id'],'value':_0x5ff8ca[_0x250611]});});let _0x205cad=[{'attributes':[{'attributeId':_0x9a53a5['id'],'attributeProperties':_0x26d99a,'value':_0x40167f}],'customerId':u(this,I)}];yield r(this,q,xe)[_0x13fb1b(0x173)](this,_0x205cad);}});}['logout'](){return a(this,null,function*(){const _0x1918b6=_0x5554;yield f(_0x1918b6(0x1ba),()=>a(this,null,function*(){const _0x1a0d4f=_0x1918b6;r(this,j,Ue)[_0x1a0d4f(0x173)](this),this[_0x1a0d4f(0x17c)](_0x1a0d4f(0x19a),[{'eventProperty':_0x1a0d4f(0x167),'value':localStorage[_0x1a0d4f(0x17f)](_0x1a0d4f(0x17d))||0x0}]);}));});}['recordEvent'](_0xa2e1c6,_0x3d98fd){const _0x2c448d=_0x4df59a;f(_0x2c448d(0x19e),()=>a(this,null,function*(){const _0x3821d5=_0x2c448d;yield r(this,y,w)[_0x3821d5(0x173)](this,_0xa2e1c6,_0x3d98fd);}));}};P=new WeakMap(),I=new WeakMap(),D=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),y=new WeakSet(),w=function(_0x12ca22,_0x305f94,_0x80161f,_0x3e8490){return a(this,null,function*(){yield f('record\x20event',()=>a(this,null,function*(){const _0x3e7c61=_0x5554;var _0x46ccaa;let _0x35d0e2=r(this,ge,rt)[_0x3e7c61(0x173)](this),_0x44d617=r(this,de,ot)[_0x3e7c61(0x173)](this,_0x35d0e2,_0x12ca22,_0x305f94);if(typeof _0x44d617==_0x3e7c61(0x198)){l[_0x3e7c61(0x15a)]&&console[_0x3e7c61(0x1c1)](_0x44d617);return;}let {id:_0x30429a}=_0x35d0e2[_0x12ca22],_0x1769a9=r(this,Ee,nt)[_0x3e7c61(0x173)](this,Y(Ie(Y({},_0x80161f?{'campaignCustomerInstanceId':_0x80161f}:{}),{'eventId':_0x30429a,'eventProperties':_0x44d617,'sessionId':localStorage[_0x3e7c61(0x17f)](_0x3e7c61(0x1ae))||''}),_0x3e8490?{'name':_0x3e8490}:{}));if(l[_0x3e7c61(0x1b8)]){let _0x57764c=JSON[_0x3e7c61(0x1bb)](localStorage['getItem'](_0x3e7c61(0x17e))||'[]');_0x57764c[_0x3e7c61(0x1b2)]<=0x32&&(_0x57764c[_0x3e7c61(0x152)](..._0x1769a9[_0x3e7c61(0x1a9)]),localStorage[_0x3e7c61(0x16b)]('offlineEvents',JSON[_0x3e7c61(0x150)](_0x57764c)));return;}let _0xa23dc7=yield r(this,K,Oe)[_0x3e7c61(0x173)](this,_0x1769a9);(_0x46ccaa=_0xa23dc7==null?void 0x0:_0xa23dc7[_0x3e7c61(0x183)])==null||_0x46ccaa['forEach'](_0x15b034=>{const _0x42bf3f=_0x3e7c61;r(this,me,it)[_0x42bf3f(0x173)](this,_0x15b034[_0x42bf3f(0x143)][_0x42bf3f(0x154)])&&(r(this,ve,st)[_0x42bf3f(0x173)](this,_0x15b034),u(this,te)[_0x42bf3f(0x173)](this),r(this,k,Le)[_0x42bf3f(0x173)](this,_0x15b034['campaignId']));});}));});},B=new WeakSet(),Re=function(){return a(this,null,function*(){const _0x2a0e4e=_0x5554;try{yield S[_0x2a0e4e(0x139)](_0x2a0e4e(0x1c2));}catch(_0x5f37e6){l[_0x2a0e4e(0x13a)]=!0x0,l[_0x2a0e4e(0x15a)]&&console[_0x2a0e4e(0x1c1)](_0x5f37e6['message']);}});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x286302=_0x5554;let _0xf81402=window[_0x286302(0x1b3)]['hostname']+window[_0x286302(0x1b3)]['pathname'];yield this['recordEvent'](_0x286302(0x18e),[{'eventProperty':_0x286302(0x146),'value':_0xf81402}]),_0xf81402!==u(this,M)&&(E(this,M,_0xf81402),new URLSearchParams(new URL(window['location']['href'])[_0x286302(0x175)])['forEach']((_0x5b01d4,_0x26ce6d)=>a(this,null,function*(){const _0x1f49d8=_0x286302;yield this[_0x1f49d8(0x17c)](_0x1f49d8(0x18e),[{'eventProperty':_0x1f49d8(0x1b0),'value':_0x26ce6d+':'+_0x5b01d4}]);})));});},X=new WeakSet(),je=function(_0x1c83d4){S['updateAPIKey'](_0x1c83d4);},Z=new WeakSet(),Qe=function(){const _0x3980e6=_0x4df59a;return!localStorage[_0x3980e6(0x17f)]('events')||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x17d))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x137))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x196))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x1ae))||!u(this,I);},ee=new WeakSet(),qe=function(){return a(this,null,function*(){const _0x2cc507=_0x5554;yield r(this,ne,He)[_0x2cc507(0x173)](this),yield r(this,J,Ae)[_0x2cc507(0x173)](this),yield r(this,A,G)[_0x2cc507(0x173)](this);});},te=new WeakMap(),$=new WeakMap(),re=new WeakMap(),oe=new WeakSet(),Ye=function(){const _0x3ee8ac=_0x4df59a;let _0x7172c8=localStorage[_0x3ee8ac(0x17f)]('uniqueIdentity');return _0x7172c8||(_0x7172c8=_0x1a5ae4(),localStorage[_0x3ee8ac(0x16b)]('uniqueIdentity',_0x7172c8)),_0x7172c8;},ne=new WeakSet(),He=function(){return a(this,null,function*(){const _0x448a38=_0x5554;if(!localStorage['getItem'](_0x448a38(0x1a9))){let _0x1c3869=(yield r(this,ie,ze)[_0x448a38(0x173)](this))[_0x448a38(0x183)];_0x1c3869&&(E(this,D,_0x1c3869),localStorage[_0x448a38(0x16b)](_0x448a38(0x1a9),JSON['stringify'](u(this,D))));}});},ie=new WeakSet(),ze=function(){return a(this,null,function*(){const _0x1fc206=_0x5554;try{return(yield S[_0x1fc206(0x139)](''+ye))[_0x1fc206(0x183)];}catch(_0x3cb625){throw new Error(_0x1fc206(0x1a6));}});},J=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x4f9296=_0x5554;if(!localStorage['getItem'](_0x4f9296(0x137))){let _0x27aacd=(yield r(this,se,Ge)[_0x4f9296(0x173)](this))['data'];_0x27aacd&&(E(this,_,_0x27aacd),localStorage[_0x4f9296(0x16b)](_0x4f9296(0x137),JSON[_0x4f9296(0x150)](u(this,_))));}});},se=new WeakSet(),Ge=function(){return a(this,null,function*(){const _0x3d704d=_0x5554;try{return(yield S['get'](''+Se))[_0x3d704d(0x183)];}catch(_0x34da09){throw new Error(_0x3d704d(0x185));}});},A=new WeakSet(),G=function(_0x18afcb){return a(this,null,function*(){const _0x46dab0=_0x5554;localStorage['getItem'](_0x46dab0(0x1ae))||localStorage[_0x46dab0(0x16b)]('session',_0x1a5ae4());let _0x33cf1f=localStorage['getItem']('customer');if(!_0x18afcb&&_0x33cf1f){E(this,I,_0x33cf1f);return;}let _0x13d3be={'deviceId':localStorage[_0x46dab0(0x17f)](_0x46dab0(0x196))||_0x1a5ae4(),'os':u(this,V)};_0x18afcb&&(_0x13d3be[_0x46dab0(0x18b)]=_0x18afcb);try{let _0x2dbf30=(yield r(this,ae,We)[_0x46dab0(0x173)](this,_0x13d3be))['data'];_0x2dbf30!==void 0x0&&(E(this,I,_0x2dbf30),localStorage['setItem'](_0x46dab0(0x17d),u(this,I)));}catch(_0x368e88){throw new Error(_0x46dab0(0x1a1));}});},ae=new WeakSet(),We=function(_0x55b1d5){return a(this,null,function*(){const _0x2e4099=_0x5554;try{return(yield S[_0x2e4099(0x1ad)](''+Je+ke,_0x55b1d5))[_0x2e4099(0x183)];}catch(_0xd1ff62){throw new Error(_0x2e4099(0x15c));}});},k=new WeakSet(),Le=function(_0x2f7082){const _0x4b94f5=_0x4df59a;let _0x2d9b9c=r(this,ce,Xe)[_0x4b94f5(0x173)](this);if(_0x2d9b9c!=null&&_0x2d9b9c[_0x2f7082])switch(_0x2d9b9c[_0x2f7082]['campaignEntryTime']){case'DELAY':{r(this,ue,et)[_0x4b94f5(0x173)](this,_0x2d9b9c[_0x2f7082]);break;}case _0x4b94f5(0x1af):{r(this,L,W)[_0x4b94f5(0x173)](this,_0x2d9b9c[_0x2f7082]);break;}case'SCROLL':{r(this,le,Ze)['call'](this,_0x2d9b9c[_0x2f7082]);break;}default:return;}},ce=new WeakSet(),Xe=function(){const _0x48121b=_0x4df59a;let _0x2a58d1=localStorage[_0x48121b(0x17f)]('action');return _0x2a58d1?JSON[_0x48121b(0x1bb)](_0x2a58d1):null;},le=new WeakSet(),Ze=function(_0x435cda){const _0x595e6a=_0x4df59a;window['addEventListener'](_0x595e6a(0x170),()=>{const _0xe0466b=_0x595e6a;var _0x2bdcab;let _0xc8f76b=window[_0xe0466b(0x192)],_0x5916e6=document['documentElement'][_0xe0466b(0x176)];window[_0xe0466b(0x132)]/(_0x5916e6-_0xc8f76b)*0x64>(((_0x2bdcab=_0x435cda[_0xe0466b(0x1a8)])==null?void 0x0:_0x2bdcab[_0xe0466b(0x1a0)])||0x0)&&r(this,L,W)[_0xe0466b(0x173)](this,_0x435cda);});},ue=new WeakSet(),et=function(_0x9c5fb4){const _0x3054d4=_0x4df59a;var _0x3038b2;let _0x50f2a2=_0x9c5fb4['initialTime']-0x1f4+(((_0x3038b2=_0x9c5fb4[_0x3054d4(0x1a8)])==null?void 0x0:_0x3038b2['value'])||0x0)*0x3e8-new Date()[_0x3054d4(0x155)]();_0x50f2a2>0x0&&_0x9c5fb4[_0x3054d4(0x1a4)]===window['location'][_0x3054d4(0x169)]+window[_0x3054d4(0x1b3)][_0x3054d4(0x133)]&&setTimeout(()=>{const _0x32e361=_0x3054d4;u(this,$)['call'](this,_0x9c5fb4[_0x32e361(0x1b5)]),r(this,L,W)['call'](this,_0x9c5fb4);},_0x50f2a2);},L=new WeakSet(),W=function(_0x24e60f){const _0x15507b=_0x4df59a;let _0x3ea6a1=r(this,pe,tt)[_0x15507b(0x173)](this,_0x15507b(0x182),_0x24e60f);document[_0x15507b(0x141)][_0x15507b(0x184)](_0x3ea6a1),r(this,y,w)[_0x15507b(0x173)](this,Me,[{'eventProperty':_0x15507b(0x158),'value':_0x24e60f[_0x15507b(0x1b5)]}],_0x24e60f['campaignCustomerInstanceId'],_0x15507b(0x17a)),u(this,$)[_0x15507b(0x173)](this,_0x24e60f[_0x15507b(0x1b5)]);},pe=new WeakSet(),tt=function(_0x5b1385,_0x293b90){const _0x3522fe=_0x4df59a;var _0x2099d0;let {campaignCustomerInstanceId:_0x4ed13c,campaignId:_0x3cb7cc,message:{design:_0x2fab19}}=_0x293b90,_0x5a5e9b=document['createElement'](_0x5b1385);return _0x5a5e9b['id']='popup_container_'+_0x3cb7cc,_0x5a5e9b['innerHTML']=_0x2fab19,_0x5a5e9b[_0x3522fe(0x14f)]('[id^=\x22u_content_form_\x22]')['forEach']((_0x32c479,_0x2628a2)=>{const _0x3f76e4=_0x3522fe;let _0x57d4a2=_0x32c479[_0x3f76e4(0x18a)](_0x3f76e4(0x160));_0x57d4a2&&_0x57d4a2[_0x3f76e4(0x187)](_0x3f76e4(0x19b),_0x9cdd54=>a(this,null,function*(){const _0x79bb57=_0x3f76e4;_0x9cdd54['preventDefault']();let _0x641025=new FormData(_0x57d4a2),_0x32a5ad={};for(let [_0x4f70ea,_0x5723b2]of _0x641025[_0x79bb57(0x194)]())_0x32a5ad[_0x4f70ea]=_0x5723b2;yield r(this,y,w)[_0x79bb57(0x173)](this,O,[{'eventProperty':_0x79bb57(0x199),'value':JSON[_0x79bb57(0x150)]({'campaignId':_0x3cb7cc,'formId':_0x32c479['id'],'formValues':_0x32a5ad})}],_0x4ed13c,'form');}));}),(_0x2099d0=_0x5a5e9b['querySelector']('.u-close-button'))==null||_0x2099d0['addEventListener'](_0x3522fe(0x1bd),()=>a(this,null,function*(){const _0x48e997=_0x3522fe;_0x5a5e9b[_0x48e997(0x135)](),yield r(this,y,w)[_0x48e997(0x173)](this,O,[{'eventProperty':_0x48e997(0x1b6),'value':JSON[_0x48e997(0x150)]({'campaignId':_0x3cb7cc})}],_0x4ed13c,_0x48e997(0x1a5));})),_0x5a5e9b[_0x3522fe(0x14f)](_0x3522fe(0x197))['forEach'](_0x21e8bb=>{const _0x2e3eb8=_0x3522fe;_0x21e8bb[_0x2e3eb8(0x187)](_0x2e3eb8(0x1bd),()=>a(this,null,function*(){const _0x269f7c=_0x2e3eb8;yield r(this,y,w)[_0x269f7c(0x173)](this,O,[{'eventProperty':_0x269f7c(0x130),'value':JSON[_0x269f7c(0x150)]({'buttonId':_0x21e8bb['id'],'campaignId':_0x3cb7cc})}],_0x4ed13c,_0x269f7c(0x1bd));}));}),_0x5a5e9b[_0x3522fe(0x14f)](_0x3522fe(0x190))[_0x3522fe(0x191)](_0x1f90f1=>{const _0x3ece97=_0x3522fe;_0x1f90f1[_0x3ece97(0x187)](_0x3ece97(0x1bd),()=>a(this,null,function*(){const _0x42ffa1=_0x3ece97;yield r(this,y,w)[_0x42ffa1(0x173)](this,O,[{'eventProperty':_0x42ffa1(0x14b),'value':JSON[_0x42ffa1(0x150)]({'campaignId':_0x3cb7cc,'imageClassName':_0x1f90f1['className'],'imageId':_0x1f90f1['id']})}],_0x4ed13c,_0x42ffa1(0x1bd));}));}),_0x5a5e9b;},ge=new WeakSet(),rt=function(){const _0x58af3e=_0x4df59a;let _0x3cada6=localStorage['getItem'](_0x58af3e(0x1a9));return _0x3cada6?JSON[_0x58af3e(0x1bb)](_0x3cada6):{};},de=new WeakSet(),ot=function(_0x330dfc,_0x26f571,_0x1a6f43){const _0x4185b7=_0x4df59a;if(!_0x330dfc[_0x4185b7(0x1b7)](_0x26f571))return'Event\x20'+_0x26f571+'\x20is\x20not\x20valid.';if(!_0x1a6f43)return[];let _0x5cc9c3=_0x330dfc[_0x26f571];if(!(_0x5cc9c3!=null&&_0x5cc9c3[_0x4185b7(0x1ac)]))return'Event\x20'+_0x26f571+_0x4185b7(0x138);let _0x4b44b5=_0x1a6f43[_0x4185b7(0x177)](({eventProperty:_0x4334d7})=>!_0x5cc9c3[_0x4185b7(0x1ac)][_0x4185b7(0x1b7)](_0x4334d7))[_0x4185b7(0x163)](({eventProperty:_0xcfa694})=>_0xcfa694);return _0x4b44b5['length']>0x0?'Event\x20'+_0x26f571+'\x20has\x20invalid\x20eventProperties:\x20'+_0x4b44b5[_0x4185b7(0x1c0)](',\x20')+'.':_0x1a6f43[_0x4185b7(0x163)](({eventProperty:_0x17c2d4,value:_0xacc0f3})=>({'eventPropertyId':_0x5cc9c3[_0x4185b7(0x1ac)][_0x17c2d4]['id'],'value':_0xacc0f3}));},Ee=new WeakSet(),nt=function(_0x368a0e){return{'customerId':u(this,I),'events':[_0x368a0e]};},K=new WeakSet(),Oe=function(_0x313750){return a(this,null,function*(){const _0x568370=_0x5554;try{return(yield S['post'](''+ye+$e,_0x313750))[_0x568370(0x183)];}catch(_0x115cdc){throw new Error(_0x568370(0x1be));}});},me=new WeakSet(),it=function(_0x4c8e55){const _0x8a7461=_0x4df59a;return _0x4c8e55===_0x8a7461(0x186);},ve=new WeakSet(),st=function(_0xcb6324){const _0x130694=_0x4df59a;let _0x25dc19=JSON[_0x130694(0x1bb)](localStorage[_0x130694(0x17f)](_0x130694(0x140))||'{}');_0x25dc19[_0xcb6324[_0x130694(0x1b5)]]=Ie(Y({},_0xcb6324),{'initialTime':new Date()['getTime'](),'page':window[_0x130694(0x1b3)][_0x130694(0x169)]+window[_0x130694(0x1b3)][_0x130694(0x133)]}),localStorage['setItem'](_0x130694(0x140),JSON[_0x130694(0x150)](_0x25dc19));},j=new WeakSet(),Ue=function(){const _0x232f4a=_0x4df59a;localStorage[_0x232f4a(0x16d)](_0x232f4a(0x140)),localStorage['removeItem']('events'),localStorage['removeItem'](_0x232f4a(0x137)),localStorage[_0x232f4a(0x16d)](_0x232f4a(0x17e)),localStorage[_0x232f4a(0x16d)]('ttl'),localStorage[_0x232f4a(0x16d)](_0x232f4a(0x1ae));},Q=new WeakSet(),Ne=function(){return a(this,null,function*(){const _0x4d2404=_0x5554;localStorage[_0x4d2404(0x17f)](_0x4d2404(0x137))||(yield r(this,J,Ae)['call'](this));});},q=new WeakSet(),xe=function(_0x47961c){return a(this,null,function*(){const _0xb7e7bf=_0x5554;try{return yield S[_0xb7e7bf(0x1ad)](''+Se+Fe,_0x47961c);}catch(_0x1d293a){throw new Error(_0xb7e7bf(0x1a3));}});},n(b,P,void 0x0);var be=b,at=be['getInstance'](),Er=at;export{Er as default};
|
|
1
|
+
const _0x3a7672=_0x16f5;(function(_0xd934c0,_0xd39e79){const _0x1907ce=_0x16f5,_0xfda0ab=_0xd934c0();while(!![]){try{const _0x1c1bec=parseInt(_0x1907ce(0x249))/0x1+-parseInt(_0x1907ce(0x243))/0x2*(parseInt(_0x1907ce(0x23f))/0x3)+-parseInt(_0x1907ce(0x1ed))/0x4*(-parseInt(_0x1907ce(0x19c))/0x5)+-parseInt(_0x1907ce(0x24d))/0x6*(-parseInt(_0x1907ce(0x1b4))/0x7)+parseInt(_0x1907ce(0x1cc))/0x8+-parseInt(_0x1907ce(0x1f4))/0x9*(parseInt(_0x1907ce(0x24c))/0xa)+parseInt(_0x1907ce(0x223))/0xb*(-parseInt(_0x1907ce(0x19f))/0xc);if(_0x1c1bec===_0xd39e79)break;else _0xfda0ab['push'](_0xfda0ab['shift']());}catch(_0x2aa459){_0xfda0ab['push'](_0xfda0ab['shift']());}}}(_0x5c1c,0xbcc44));function _0x16f5(_0x57060e,_0x5c1f59){const _0x5c1cbf=_0x5c1c();return _0x16f5=function(_0x16f5a5,_0xa9c186){_0x16f5a5=_0x16f5a5-0x198;let _0x769c42=_0x5c1cbf[_0x16f5a5];return _0x769c42;},_0x16f5(_0x57060e,_0x5c1f59);}var Lt=Object[_0x3a7672(0x1da)],bt=Object['defineProperties'],At=Object['getOwnPropertyDescriptors'],We=Object['getOwnPropertySymbols'],Nt=Object[_0x3a7672(0x24e)][_0x3a7672(0x225)],Pt=Object[_0x3a7672(0x24e)][_0x3a7672(0x23c)],ze=(_0x56038d,_0x3b18dd,_0x28f5bb)=>_0x3b18dd in _0x56038d?Lt(_0x56038d,_0x3b18dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28f5bb}):_0x56038d[_0x3b18dd]=_0x28f5bb,X=(_0x2d238a,_0x1b2dbc)=>{const _0x348288=_0x3a7672;for(var _0x328a1b in _0x1b2dbc||(_0x1b2dbc={}))Nt['call'](_0x1b2dbc,_0x328a1b)&&ze(_0x2d238a,_0x328a1b,_0x1b2dbc[_0x328a1b]);if(We){for(var _0x328a1b of We(_0x1b2dbc))Pt[_0x348288(0x21e)](_0x1b2dbc,_0x328a1b)&&ze(_0x2d238a,_0x328a1b,_0x1b2dbc[_0x328a1b]);}return _0x2d238a;},Ne=(_0x1b9cc7,_0x5af5c9)=>bt(_0x1b9cc7,At(_0x5af5c9)),Pe=(_0x1e66bf,_0x1e755b,_0x38d51a)=>{const _0x52f635=_0x3a7672;if(!_0x1e755b[_0x52f635(0x20c)](_0x1e66bf))throw TypeError(_0x52f635(0x1d4)+_0x38d51a);},E=(_0x524786,_0x56ff22,_0x16cad1)=>(Pe(_0x524786,_0x56ff22,'read\x20from\x20private\x20field'),_0x16cad1?_0x16cad1[_0x3a7672(0x21e)](_0x524786):_0x56ff22[_0x3a7672(0x24b)](_0x524786)),i=(_0x2b8708,_0x190db3,_0x180ac6)=>{const _0x18c6fa=_0x3a7672;if(_0x190db3[_0x18c6fa(0x20c)](_0x2b8708))throw TypeError(_0x18c6fa(0x1f2));_0x190db3 instanceof WeakSet?_0x190db3[_0x18c6fa(0x203)](_0x2b8708):_0x190db3[_0x18c6fa(0x235)](_0x2b8708,_0x180ac6);},v=(_0x4db860,_0x3819fa,_0x26602b,_0x8e5982)=>(Pe(_0x4db860,_0x3819fa,_0x3a7672(0x245)),_0x8e5982?_0x8e5982[_0x3a7672(0x21e)](_0x4db860,_0x26602b):_0x3819fa[_0x3a7672(0x235)](_0x4db860,_0x26602b),_0x26602b),Ge=(_0x1ad706,_0x504793,_0x43f48b,_0x5cff84)=>({set '_'(_0x3836cd){v(_0x1ad706,_0x504793,_0x3836cd,_0x43f48b);},get '_'(){return E(_0x1ad706,_0x504793,_0x5cff84);}}),r=(_0x524ddb,_0x6e3b49,_0xbc85f8)=>(Pe(_0x524ddb,_0x6e3b49,'access\x20private\x20method'),_0xbc85f8),c=(_0x28dbc4,_0x3084f9,_0x485711)=>new Promise((_0x23329c,_0x56f3ce)=>{const _0x4c3d56=_0x3a7672;var _0x3d9477=_0x5cb06f=>{const _0x2cdd02=_0x16f5;try{_0x3623ac(_0x485711[_0x2cdd02(0x22f)](_0x5cb06f));}catch(_0x2aed64){_0x56f3ce(_0x2aed64);}},_0xa2be3c=_0x39138c=>{const _0x1aade4=_0x16f5;try{_0x3623ac(_0x485711[_0x1aade4(0x247)](_0x39138c));}catch(_0x1036dd){_0x56f3ce(_0x1036dd);}},_0x3623ac=_0x1a04a0=>_0x1a04a0[_0x4c3d56(0x1bc)]?_0x23329c(_0x1a04a0[_0x4c3d56(0x19d)]):Promise[_0x4c3d56(0x1d9)](_0x1a04a0['value'])[_0x4c3d56(0x217)](_0x3d9477,_0xa2be3c);_0x3623ac((_0x485711=_0x485711['apply'](_0x28dbc4,_0x3084f9))[_0x4c3d56(0x22f)]());});import{v4 as _0xfd87a9}from'uuid';function _0x5c1c(){const _0x2bbeba=['className','time','done','message','Logging\x20out','session','Mergn\x20not\x20initialized!','hostname','uniqueIdentity','brand','recordEvent','Internet\x20Explorer','createElement','Safari','offline','pushState','SESSION_CREATED','.u-close-button','11215688CNPDID','post','campaignCustomerInstanceId','group','removeItem','Button\x20Click','Web\x20Session\x20Started','join','Cannot\x20','filter','data','Attribute\x20','application/json','resolve','defineProperty','customer','INFO','string','length','Form\x20Submit','Tracking\x20page\x20change\x20Time','userAgent','getInstance','Error\x20fetching\x20attribute\x20data','attributeProperty','scroll','preventDefault','Error\x20posting\x20identity\x20data','forEach','\x0aAxiosError:\x20','initialTime','#\x20record\x20event','action','68WocWSO','groupEnd','campaignEntryTimeValue','/event','URL','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','location','16353pOUuoi','error','Chrome','identity','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','/record-event','Popup','Web\x20Session\x20Concluded','operating-system','search','innerHeight','Event\x20Payload:\x0a\x20','Error\x20setting\x20identity','documentElement','querySelector','add','name','common','push','getItem','UTM_SOURCE','/set-attribute','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','updateAPIKey','has','offlineEvents','.u-popup-container\x20img','getTime','Error\x20posting\x20attribute\x20record','events','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','entries','eventProperty','login','popup_container_','then','setDebugLevel','isArray','Event\x20Payload','campaignEntryTime','OriginateFrom:\x20','toLowerCase','call','Recording\x20event','showErrorLog','UTM_CAMPAIGN','form','15961QuBwbm','Logging\x20in','hasOwnProperty','Logging\x20in\x20Time','indexOf','Checking\x20TTL','Microsoft\x20Edge','close','keys','\x0aUnexpected\x20error:\x20','scrollY','ERROR','next','Initializing\x20Mergn\x20SDK','Mergn\x20SDK\x20is\x20disabled!','init','Popup\x20Action','Tracking\x20page\x20change','set','#\x20Recording\x20event','appendChild','[id^=\x22u_content_button_\x22]','div','\x0aResponse\x20Data:\x20','\x20has\x20invalid\x20attributeProperties:\x20','propertyIsEnumerable','utm_source','utm_content','903471yhFyNh','apiKey','debugLevel','body','4VrTNAI','isInitialized','write\x20to\x20private\x20field','\x20has\x20invalid\x20eventProperties:\x20','throw','recordAttribute','480559tObALP','request','get','2810Pccmnl','2838702HCfHNJ','prototype','setItem','pathname','map','Mobile','SESSION_ID','UTM_TERM','campaignId','Recording\x20attribute','toISOString','timeEnd','disableSDK','Mergn\x20SDK\x20Initialization\x20Time','record\x20event','Unknown','test','ALL','Image\x20Click','ttl','onLine','href','Mozilla\x20Firefox','querySelectorAll','apply','Event\x20','parse','328295gRaEDP','value','headers','20940mNcCgN','stringify','Recording\x20event\x20Time','page','attributes','status','remove','response','Identity:\x20','UTM_CONTENT','[id^=\x22u_content_form_\x22]','addEventListener','load','utm_campaign','MergnError','click','logout','Logging\x20out\x20Time','ERROR:\x20','Recording\x20attribute\x20Time','innerHTML','21jNpgAu','Viewed\x20Webpage','NONE','Error\x20fetching\x20event\x20data','Authorization','Mergn\x20is\x20offline!'];_0x5c1c=function(){return _0x2bbeba;};return _0x5c1c();}var je=(_0x2994db=>(_0x2994db[_0x3a7672(0x208)]=_0x3a7672(0x23d),_0x2994db['UTM_MEDIUM']='utm_medium',_0x2994db[_0x3a7672(0x221)]=_0x3a7672(0x1ac),_0x2994db[_0x3a7672(0x254)]='utm_term',_0x2994db[_0x3a7672(0x1a8)]=_0x3a7672(0x23e),_0x2994db))(je||{}),Qe=new Set(Object['values'](je)),A=_0x3a7672(0x233),qe=_0x3a7672(0x212),De='/attribute',He=_0x3a7672(0x209),Ue=_0x3a7672(0x1f0),Ye=_0x3a7672(0x1f9),Xe='/customer',Ze='/set-identity';import _0x19682e from'axios';import{AxiosQueueManager as _0x331bea}from'axios-queue-js';import _0x1836a9 from'axios-retry';import{AxiosError as _0x18b644}from'axios';var Z=(_0x1cc5df=>(_0x1cc5df[_0x1cc5df[_0x3a7672(0x1b6)]=0x0]=_0x3a7672(0x1b6),_0x1cc5df[_0x1cc5df[_0x3a7672(0x1dc)]=0x1]=_0x3a7672(0x1dc),_0x1cc5df[_0x1cc5df[_0x3a7672(0x22e)]=0x2]='ERROR',_0x1cc5df[_0x1cc5df[_0x3a7672(0x25e)]=0x3]=_0x3a7672(0x25e),_0x1cc5df))(Z||{}),u=(_0x37677e,_0xdd7cbd)=>{const _0x3d9a09=_0x3a7672;g['debugLevel']!==0x0&&g['debugLevel']<=0x3&&(_0x37677e===0x1?console['info']('INFO:\x20'+new Date()['toISOString'](),_0xdd7cbd):_0x37677e===0x2&&console[_0x3d9a09(0x1f5)](_0x3d9a09(0x1b1)+new Date()['toISOString'](),_0xdd7cbd));},m=(_0x3b1c87,_0x38c484)=>{const _0x2228df=_0x3a7672;g[_0x2228df(0x241)]!==0x0&&(_0x38c484?console[_0x2228df(0x1bb)](_0x3b1c87):console[_0x2228df(0x258)](_0x3b1c87));},S=(_0x4d04a7,_0x958931)=>{const _0x5b432a=_0x3a7672;g[_0x5b432a(0x241)]!==0x0&&(_0x958931?console[_0x5b432a(0x1cf)](_0x4d04a7):console[_0x5b432a(0x1ee)]());},g=class extends Error{constructor(_0x3b3138){const _0x4df168=_0x3a7672;super(_0x3b3138),this[_0x4df168(0x204)]=_0x4df168(0x1ad);}};g['disableSDK']=!0x1,g[_0x3a7672(0x1c8)]=!navigator[_0x3a7672(0x261)],g['debugLevel']=0x0,g['isInitialized']=!0x1;var Ut=(_0x4665ef,_0x134673)=>{const _0x3af0d6=_0x3a7672;_0x134673 instanceof g?u(0x2,_0x3af0d6(0x21c)+_0x4665ef+'\x0aMergnError:\x20'+_0x134673['message']):_0x134673 instanceof _0x18b644?(u(0x2,_0x3af0d6(0x21c)+_0x4665ef+_0x3af0d6(0x1e9)+_0x134673[_0x3af0d6(0x1bd)]),_0x134673[_0x3af0d6(0x1a6)]?(u(0x2,_0x3af0d6(0x21c)+_0x4665ef+'\x0aHTTP\x20Status:\x20'+_0x134673[_0x3af0d6(0x1a6)][_0x3af0d6(0x1a4)]),u(0x2,_0x3af0d6(0x21c)+_0x4665ef+_0x3af0d6(0x23a)+_0x134673['response']['data'])):_0x134673[_0x3af0d6(0x24a)]?u(0x2,_0x3af0d6(0x21c)+_0x4665ef+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):u(0x2,'OriginateFrom:\x20'+_0x4665ef+'\x0aError\x20setting\x20up\x20the\x20request:\x20'+_0x134673[_0x3af0d6(0x1bd)])):_0x134673 instanceof Error?u(0x2,_0x3af0d6(0x21c)+_0x4665ef+_0x3af0d6(0x22c)+_0x134673[_0x3af0d6(0x1bd)]):u(0x2,_0x3af0d6(0x21c)+_0x4665ef+_0x3af0d6(0x22c)+String(_0x134673));},O=(_0x2720b9,_0x553255,_0x533013)=>c(void 0x0,null,function*(){const _0x27ca08=_0x3a7672;try{if(g[_0x27ca08(0x259)])throw new g(_0x27ca08(0x231));if(_0x2720b9!==_0x27ca08(0x25b)&&g[_0x27ca08(0x1c8)])throw new g(_0x27ca08(0x1b9));if(_0x2720b9!==_0x27ca08(0x232)&&!g[_0x27ca08(0x244)])throw new g(_0x27ca08(0x1c0));return yield _0x553255();}catch(_0x2690a9){return _0x533013?_0x533013(_0x2690a9):(g['debugLevel']===0x2||g[_0x27ca08(0x241)]===0x3)&&Ut(_0x2720b9,_0x2690a9),null;}}),w,_,F,M,ee,$,Ce,te,et,p=class p{constructor(){const _0x52b67c=_0x3a7672;i(this,ee,0x0);let _0x56abb3=_0x19682e['create']({'baseURL':qe,'headers':{'Content-Type':_0x52b67c(0x1d8)}});v(p,_,_0x56abb3),v(p,F,new _0x331bea({'client':_0x56abb3,'queueSize':0xa})),_0x1836a9(_0x56abb3,{'onRetry':_0x525a88=>{const _0x1b5416=_0x52b67c;_0x525a88>=E(p,M)?(g[_0x1b5416(0x220)]&&console['log']('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),g['disableSDK']=!0x0):Ge(this,ee)['_']++;},'retries':E(p,M),'retryDelay':_0xc569d6=>_0xc569d6*0x1388});}static[_0x3a7672(0x20b)](_0x848b74){const _0x38b0bb=_0x3a7672;this[_0x38b0bb(0x240)]=_0x848b74,r(this,te,et)[_0x38b0bb(0x21e)](this)['defaults'][_0x38b0bb(0x19e)][_0x38b0bb(0x205)][_0x38b0bb(0x1b8)]=_0x848b74;}static[_0x3a7672(0x24b)](_0x3c887d){const _0x587dae=_0x3a7672;return r(this,$,Ce)[_0x587dae(0x21e)](this)[_0x587dae(0x24b)](_0x3c887d);}static[_0x3a7672(0x1cd)](_0x3cfa49,_0x3945a4){const _0x278709=_0x3a7672;return r(this,$,Ce)[_0x278709(0x21e)](this)[_0x278709(0x1cd)](_0x3cfa49,_0x3945a4||{});}};w=new WeakMap(),_=new WeakMap(),F=new WeakMap(),M=new WeakMap(),ee=new WeakMap(),$=new WeakSet(),Ce=function(){return E(p,w)||v(p,w,new p()),E(p,F);},te=new WeakSet(),et=function(){return E(p,w)||v(p,w,new p()),E(p,_);},i(p,$),i(p,te),i(p,w,void 0x0),i(p,_,void 0x0),i(p,F,void 0x0),i(p,M,0x2);var xe=p,R=xe,N,P,B,k,J,ie,tt,b,V,f,y,ae,rt,se,nt,K,Me,W,$e,ce,ot,le,it,ge,at,ue,z,Ee,pe,st,de,ct,me,lt,G,Ve,Se,gt,D,re,U,ne,Ie,ut,j,Be,ve,Et,fe,pt,Te,dt,x,oe,he,mt,ye,St,Re,It,Q,ke,Oe,vt,q,Je,we,ft,Le,Tt,H,Ke,be,ht,Ae,yt,L=class L{constructor(){i(this,ie),i(this,b),i(this,f),i(this,ae),i(this,se),i(this,K),i(this,W),i(this,ce),i(this,le),i(this,ge),i(this,pe),i(this,de),i(this,me),i(this,G),i(this,Se),i(this,D),i(this,U),i(this,Ie),i(this,j),i(this,ve),i(this,fe),i(this,Te),i(this,x),i(this,he),i(this,ye),i(this,Re),i(this,Q),i(this,Oe),i(this,q),i(this,we),i(this,Le),i(this,H),i(this,be),i(this,Ae),i(this,P,void 0x0),i(this,B,void 0x0),i(this,k,void 0x0),i(this,J,null),i(this,ue,()=>{const _0x30dac9=_0x16f5;let _0x4d2b69=()=>{const _0x4ee0c6=_0x16f5;let _0x481a79=JSON['parse'](localStorage['getItem'](_0x4ee0c6(0x1ec))||'{}');Object['keys'](_0x481a79)[_0x4ee0c6(0x1e8)](_0x25f8f9=>{const _0x39980e=_0x4ee0c6;_0x481a79[_0x25f8f9][_0x39980e(0x1ea)]=new Date()[_0x39980e(0x20f)](),_0x481a79[_0x25f8f9][_0x39980e(0x1a2)]=window[_0x39980e(0x1f3)][_0x39980e(0x1c1)]+window['location'][_0x39980e(0x250)];}),localStorage[_0x4ee0c6(0x24f)](_0x4ee0c6(0x1ec),JSON[_0x4ee0c6(0x1a0)](_0x481a79));};_0x4d2b69(),window[_0x30dac9(0x1aa)]('beforeunload',_0x4d2b69);}),i(this,z,_0x55ea3a=>{const _0x44347f=_0x16f5;let _0x362aae=JSON['parse'](localStorage[_0x44347f(0x207)](_0x44347f(0x1ec))||'{}');_0x362aae[_0x55ea3a]&&delete _0x362aae[_0x55ea3a],localStorage['setItem'](_0x44347f(0x1ec),JSON[_0x44347f(0x1a0)](_0x362aae));}),i(this,Ee,()=>{const _0x3c92f6=_0x16f5;let _0x5e8665=JSON[_0x3c92f6(0x19b)](localStorage[_0x3c92f6(0x207)](_0x3c92f6(0x1ec))||'{}');Object[_0x3c92f6(0x22b)](_0x5e8665)[_0x3c92f6(0x1e8)](_0x3e48cc=>{const _0x77c34=_0x3c92f6;_0x5e8665[_0x3e48cc][_0x77c34(0x1bd)][_0x77c34(0x204)]==='Popup'&&r(this,j,Be)[_0x77c34(0x21e)](this,_0x5e8665[_0x3e48cc]['campaignId']);});});}static[_0x3a7672(0x1e2)](){return E(L,N)||v(L,N,new L()),E(L,N);}[_0x3a7672(0x232)](_0x17407d){const _0x3d8553=_0x3a7672;O(_0x3d8553(0x232),()=>c(this,null,function*(){const _0x108eb7=_0x3d8553;u(0x1,_0x108eb7(0x230)),S('Initializing\x20Mergn\x20SDK',!0x0),m(_0x108eb7(0x25a),!0x0),r(this,ce,ot)[_0x108eb7(0x21e)](this,_0x17407d),yield r(this,K,Me)[_0x108eb7(0x21e)](this),g[_0x108eb7(0x244)]=!0x0,setInterval(()=>c(this,null,function*(){const _0x5f5d45=_0x108eb7;yield r(this,K,Me)[_0x5f5d45(0x21e)](this);}),0x493e0),yield r(this,b,V)[_0x108eb7(0x21e)](this),window[_0x108eb7(0x1aa)]('online',()=>c(this,null,function*(){const _0x35fc45=_0x108eb7;g[_0x35fc45(0x1c8)]=!0x1;let _0x5e02b5=JSON[_0x35fc45(0x19b)](localStorage[_0x35fc45(0x207)](_0x35fc45(0x20d))||'[]');Array[_0x35fc45(0x219)](_0x5e02b5)&&(yield r(this,q,Je)[_0x35fc45(0x21e)](this,{'customerId':localStorage[_0x35fc45(0x207)]('customer')||'','events':_0x5e02b5}),localStorage[_0x35fc45(0x1d0)]('offlineEvents')),r(this,b,V)['call'](this),r(this,U,ne)[_0x35fc45(0x21e)](this);})),window[_0x108eb7(0x1aa)](_0x108eb7(0x1c8),()=>{const _0x307d2e=_0x108eb7;g[_0x307d2e(0x1c8)]=!0x0;}),window[_0x108eb7(0x1aa)](_0x108eb7(0x1ab),()=>{E(this,Ee)['call'](this);});let _0x537868=history[_0x108eb7(0x1c9)];history['pushState']=(..._0x51a7bf)=>{const _0x5ad72f=_0x108eb7;_0x537868[_0x5ad72f(0x199)](history,_0x51a7bf),r(this,W,$e)[_0x5ad72f(0x21e)](this);},r(this,W,$e)[_0x108eb7(0x21e)](this),m(_0x108eb7(0x25a),!0x1),S(_0x108eb7(0x230),!0x1);}));}[_0x3a7672(0x218)](_0x3e79ed){const _0x16bf86=_0x3a7672;if(!(_0x3e79ed in Z)){console[_0x16bf86(0x1f5)](_0x16bf86(0x1f8));return;}g[_0x16bf86(0x241)]=_0x3e79ed;}[_0x3a7672(0x248)](_0x2009a6,_0x23e78e){const _0xeceada=_0x3a7672;O(_0xeceada(0x248),()=>c(this,null,function*(){yield r(this,ie,tt)['call'](this,_0x2009a6,_0x23e78e,void 0x0);}));}[_0x3a7672(0x215)](_0x5259ec){const _0x5384d7=_0x3a7672;O(_0x5384d7(0x215),()=>c(this,null,function*(){const _0x111517=_0x5384d7;u(0x1,_0x111517(0x224)),S(_0x111517(0x224),!0x0),m('Logging\x20in\x20Time',!0x0),u(0x1,_0x111517(0x1a7)+_0x5259ec),yield r(this,D,re)[_0x111517(0x21e)](this,_0x5259ec),m(_0x111517(0x226),!0x1),S(_0x111517(0x224),!0x1);}));}['logout'](){const _0x22cd01=_0x3a7672;O(_0x22cd01(0x1af),()=>c(this,null,function*(){const _0x5110ae=_0x22cd01;u(0x1,_0x5110ae(0x1be)),S('Logging\x20out',!0x0),m(_0x5110ae(0x1b0),!0x0),r(this,H,Ke)['call'](this),m(_0x5110ae(0x1b0),!0x1),S(_0x5110ae(0x1be),!0x1);}));}[_0x3a7672(0x1c4)](_0x50eb1d,_0x45ca35){const _0x27195e=_0x3a7672;O(_0x27195e(0x25b),()=>c(this,null,function*(){const _0x1009b8=_0x27195e;u(0x1,_0x1009b8(0x21f)),S(_0x1009b8(0x21f),!0x0),m('Recording\x20event\x20Time',!0x0),u(0x1,_0x1009b8(0x1ff)+{'eventName':_0x50eb1d,'eventProperties':_0x45ca35}),yield r(this,f,y)['call'](this,_0x50eb1d,_0x45ca35),m(_0x1009b8(0x1a1),!0x1),S('Recording\x20event',!0x1);}));}};N=new WeakMap(),P=new WeakMap(),B=new WeakMap(),k=new WeakMap(),J=new WeakMap(),ie=new WeakSet(),tt=function(_0x25af90,_0x414027,_0x164b2c){return c(this,null,function*(){yield O('#\x20recordAttribute',()=>c(this,null,function*(){const _0x5c2b2d=_0x16f5;u(0x1,_0x5c2b2d(0x256)),S(_0x5c2b2d(0x256),!0x0),m(_0x5c2b2d(0x1b2),!0x0),u(0x1,'Attribute\x20Payload:\x0a\x20'+{'attributeName':_0x25af90,'attributeProperties':_0x164b2c,'attributeValue':_0x414027}+')}'),yield r(this,b,V)[_0x5c2b2d(0x21e)](this),yield r(this,be,ht)['call'](this);let _0x589709=JSON[_0x5c2b2d(0x19b)](localStorage['getItem']('attributes')||'{}'),_0x33950d=_0x164b2c?r(this,Q,ke)[_0x5c2b2d(0x21e)](this,_0x589709,_0x25af90,_0x164b2c):r(this,Q,ke)[_0x5c2b2d(0x21e)](this,_0x589709,_0x25af90);if(typeof _0x33950d==_0x5c2b2d(0x1dd)){u(0x2,_0x33950d);return;}r(this,U,ne)['call'](this);let {id:_0x44ac87}=_0x589709[_0x25af90],_0x5ce891={'attributeId':_0x44ac87,'attributeProperties':_0x33950d,'customerId':localStorage[_0x5c2b2d(0x207)]('customer')||'','value':_0x414027};yield r(this,Ae,yt)[_0x5c2b2d(0x21e)](this,_0x5ce891),m(_0x5c2b2d(0x1b2),!0x1),S(_0x5c2b2d(0x256),!0x1);}));});},b=new WeakSet(),V=function(){return c(this,null,function*(){const _0x25910b=_0x16f5;u(0x1,_0x25910b(0x228)),S(_0x25910b(0x228),!0x0),m('Checking\x20TTL\x20Time',!0x0);let _0x20f0dc=localStorage[_0x25910b(0x207)](_0x25910b(0x260)),_0x1ca3d8=!0x1;if(_0x20f0dc){if(_0x1ca3d8=new Date()[_0x25910b(0x20f)]()-parseInt(_0x20f0dc,0xa)>0x124f80,_0x1ca3d8){let _0x3c7f8d=localStorage[_0x25910b(0x207)](_0x25910b(0x1bf)),_0x231489=localStorage[_0x25910b(0x207)]('ttl');_0x3c7f8d&&_0x231489&&r(this,f,y)[_0x25910b(0x21e)](this,'Web\x20Session\x20Concluded',[{'eventProperty':_0x25910b(0x253),'value':localStorage['getItem'](_0x25910b(0x1bf))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(_0x231489,0xa))[_0x25910b(0x257)]()}]),r(this,H,Ke)['call'](this),localStorage[_0x25910b(0x24f)](_0x25910b(0x260),''+new Date()[_0x25910b(0x20f)]());}}else localStorage[_0x25910b(0x24f)](_0x25910b(0x260),''+new Date()['getTime']());(!_0x20f0dc||_0x1ca3d8||r(this,le,it)['call'](this))&&(r(this,pe,st)[_0x25910b(0x21e)](this),yield r(this,D,re)[_0x25910b(0x21e)](this),yield r(this,ge,at)['call'](this)),m('Checking\x20TTL\x20Time',!0x1),S('Checking\x20TTL',!0x1);});},f=new WeakSet(),y=function(_0x1795d7,_0x3be169,_0x3d7838,_0x2d628c){return c(this,null,function*(){const _0x1cd89f=_0x16f5;yield O(_0x1cd89f(0x1eb),()=>c(this,null,function*(){const _0x4b7859=_0x1cd89f;var _0x29581b;u(0x1,_0x4b7859(0x236)),S(_0x4b7859(0x21f),!0x0),m('Recording\x20event\x20Time',!0x0),u(0x1,_0x4b7859(0x21a)),u(0x1,{'campaignCustomerInstanceId':_0x3d7838,'eventName':_0x1795d7,'eventProperties':_0x3be169,'name':_0x2d628c}),_0x1795d7!==_0x4b7859(0x1fb)&&(yield r(this,b,V)[_0x4b7859(0x21e)](this));let _0x2ffbd6=[];_0x3be169&&_0x2ffbd6[_0x4b7859(0x206)](..._0x3be169),_0x2ffbd6[_0x4b7859(0x206)]({'eventProperty':'Platform','value':E(this,P)}),_0x2ffbd6[_0x4b7859(0x206)]({'eventProperty':_0x4b7859(0x1fc),'value':E(this,k)}),_0x2ffbd6[_0x4b7859(0x206)]({'eventProperty':'os-version','value':E(this,B)});let _0x20afa6=r(this,ye,St)[_0x4b7859(0x21e)](this),_0x52bdad=r(this,Re,It)[_0x4b7859(0x21e)](this,_0x20afa6,_0x1795d7,_0x2ffbd6);if(typeof _0x52bdad==_0x4b7859(0x1dd)){u(0x2,_0x52bdad);return;}r(this,U,ne)[_0x4b7859(0x21e)](this);let {id:_0x4308ed}=_0x20afa6[_0x1795d7],_0x513bd1=r(this,Oe,vt)['call'](this,X(Ne(X({},_0x3d7838?{'campaignCustomerInstanceId':_0x3d7838}:{}),{'eventId':_0x4308ed,'eventProperties':_0x52bdad,'sessionId':localStorage['getItem'](_0x4b7859(0x1bf))||''}),_0x2d628c?{'name':_0x2d628c}:{}));if(g[_0x4b7859(0x1c8)]){let _0x34a32c=JSON[_0x4b7859(0x19b)](localStorage[_0x4b7859(0x207)](_0x4b7859(0x20d))||'[]');_0x34a32c['length']<=0x32&&(_0x34a32c[_0x4b7859(0x206)](..._0x513bd1[_0x4b7859(0x211)]),localStorage[_0x4b7859(0x24f)](_0x4b7859(0x20d),JSON[_0x4b7859(0x1a0)](_0x34a32c)));return;}let _0x30c0ed=yield r(this,q,Je)[_0x4b7859(0x21e)](this,_0x513bd1);(_0x29581b=_0x30c0ed==null?void 0x0:_0x30c0ed[_0x4b7859(0x1d6)])==null||_0x29581b[_0x4b7859(0x1e8)](_0x506d44=>{const _0x1dfd3d=_0x4b7859;r(this,we,ft)['call'](this,_0x506d44[_0x1dfd3d(0x1bd)][_0x1dfd3d(0x204)])&&(r(this,Le,Tt)[_0x1dfd3d(0x21e)](this,_0x506d44),E(this,ue)[_0x1dfd3d(0x21e)](this),r(this,j,Be)[_0x1dfd3d(0x21e)](this,_0x506d44[_0x1dfd3d(0x255)]));}),m(_0x4b7859(0x1a1),!0x1),S(_0x4b7859(0x21f),!0x1);}));});},ae=new WeakSet(),rt=function(){const _0x1a7893=_0x3a7672;let _0x1196c4=navigator[_0x1a7893(0x1e1)][_0x1a7893(0x21d)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i['test'](_0x1196c4)?_0x1a7893(0x252):/windows|macintosh|linux|x11/i[_0x1a7893(0x25d)](_0x1196c4)?'Web':_0x1a7893(0x25c);},se=new WeakSet(),nt=function(){const _0x8fa656=_0x3a7672;let _0x5121d8=navigator[_0x8fa656(0x1e1)],_0xb55b3b;return _0x5121d8[_0x8fa656(0x227)](_0x8fa656(0x1f6))>-0x1?_0xb55b3b='Google\x20Chrome':_0x5121d8['indexOf'](_0x8fa656(0x1c7))>-0x1?_0xb55b3b=_0x8fa656(0x1c7):_0x5121d8[_0x8fa656(0x227)]('Firefox')>-0x1?_0xb55b3b=_0x8fa656(0x263):_0x5121d8[_0x8fa656(0x227)]('Edg')>-0x1?_0xb55b3b=_0x8fa656(0x229):_0x5121d8[_0x8fa656(0x227)]('MSIE')>-0x1?_0xb55b3b=_0x8fa656(0x1c5):_0xb55b3b=_0x8fa656(0x25c),_0xb55b3b;},K=new WeakSet(),Me=function(){return c(this,null,function*(){const _0x316c72=_0x16f5;try{yield R[_0x316c72(0x24b)](_0x316c72(0x1c3));}catch(_0x6ed9d8){throw g[_0x316c72(0x259)]=!0x0,_0x6ed9d8[_0x316c72(0x1bd)];}});},W=new WeakSet(),$e=function(){return c(this,null,function*(){const _0x27abe6=_0x16f5;var _0x2abb28;u(0x1,_0x27abe6(0x234)),S('Tracking\x20page\x20change',!0x0),m('Tracking\x20page\x20change\x20Time',!0x0);let _0x2e5a17=(_0x2abb28=window==null?void 0x0:window[_0x27abe6(0x1f3)])==null?void 0x0:_0x2abb28[_0x27abe6(0x262)];if(_0x2e5a17!==E(this,J)){v(this,J,_0x2e5a17);let _0x3d4102=[];new URLSearchParams(new URL(window[_0x27abe6(0x1f3)]['href'])[_0x27abe6(0x1fd)])[_0x27abe6(0x1e8)]((_0x1c3ea2,_0x414ea3)=>c(this,null,function*(){const _0x254919=_0x27abe6;Qe[_0x254919(0x20c)](_0x414ea3)&&_0x3d4102['push']({'eventProperty':_0x414ea3,'value':_0x1c3ea2});})),yield r(this,f,y)[_0x27abe6(0x21e)](this,_0x27abe6(0x1b5),[{'eventProperty':_0x27abe6(0x1f1),'value':window[_0x27abe6(0x1f3)][_0x27abe6(0x250)]},..._0x3d4102]);}m(_0x27abe6(0x1e0),!0x1),S(_0x27abe6(0x234),!0x1);});},ce=new WeakSet(),ot=function(_0x4c33fc){const _0x3cbf67=_0x3a7672;R[_0x3cbf67(0x20b)](_0x4c33fc),v(this,P,navigator['userAgent']),v(this,B,r(this,se,nt)[_0x3cbf67(0x21e)](this)),v(this,k,r(this,ae,rt)[_0x3cbf67(0x21e)](this));},le=new WeakSet(),it=function(){const _0x597b0c=_0x3a7672;return!localStorage['getItem'](_0x597b0c(0x211))||!localStorage['getItem']('customer')||!localStorage[_0x597b0c(0x207)](_0x597b0c(0x1a3))||!localStorage[_0x597b0c(0x207)](_0x597b0c(0x1c2))||!localStorage[_0x597b0c(0x207)](_0x597b0c(0x1bf))||!localStorage[_0x597b0c(0x207)]('customer');},ge=new WeakSet(),at=function(){return c(this,null,function*(){const _0x4352fe=_0x16f5;yield r(this,de,ct)[_0x4352fe(0x21e)](this),yield r(this,G,Ve)['call'](this),yield r(this,D,re)[_0x4352fe(0x21e)](this);});},ue=new WeakMap(),z=new WeakMap(),Ee=new WeakMap(),pe=new WeakSet(),st=function(){const _0xe42b0d=_0x3a7672;let _0x435d0a=localStorage['getItem']('uniqueIdentity');return _0x435d0a||(_0x435d0a=_0xfd87a9(),localStorage['setItem'](_0xe42b0d(0x1c2),_0x435d0a)),_0x435d0a;},de=new WeakSet(),ct=function(){return c(this,null,function*(){const _0x3316b7=_0x16f5;if(!localStorage['getItem'](_0x3316b7(0x211))){let _0x4fc7e7=(yield r(this,me,lt)[_0x3316b7(0x21e)](this))[_0x3316b7(0x1d6)];_0x4fc7e7&&localStorage['setItem'](_0x3316b7(0x211),JSON['stringify'](_0x4fc7e7));}});},me=new WeakSet(),lt=function(){return c(this,null,function*(){const _0x189b3f=_0x16f5;try{return(yield R[_0x189b3f(0x24b)](''+Ue))[_0x189b3f(0x1d6)];}catch(_0x5c20f2){throw new Error(_0x189b3f(0x1b7));}});},G=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x2994b1=_0x16f5;if(!localStorage['getItem']('attributes')){let _0x17285d=(yield r(this,Se,gt)['call'](this))[_0x2994b1(0x1d6)];_0x17285d&&localStorage['setItem'](_0x2994b1(0x1a3),JSON['stringify'](_0x17285d));}});},Se=new WeakSet(),gt=function(){return c(this,null,function*(){const _0x286114=_0x16f5;try{return(yield R[_0x286114(0x24b)](''+De))['data'];}catch(_0x1d7874){throw new Error(_0x286114(0x1e3));}});},D=new WeakSet(),re=function(_0x1a9579){return c(this,null,function*(){const _0x12dbb4=_0x16f5;localStorage['getItem'](_0x12dbb4(0x1bf))||(localStorage[_0x12dbb4(0x24f)](_0x12dbb4(0x1bf),_0xfd87a9()),yield r(this,f,y)['call'](this,_0x12dbb4(0x1d2),[{'eventProperty':_0x12dbb4(0x253),'value':localStorage[_0x12dbb4(0x207)](_0x12dbb4(0x1bf))},{'eventProperty':_0x12dbb4(0x1ca),'value':new Date(parseInt(localStorage[_0x12dbb4(0x207)](_0x12dbb4(0x260))||'',0xa))['toISOString']()}]));let _0x5a857b={'deviceId':localStorage[_0x12dbb4(0x207)](_0x12dbb4(0x1c2))||_0xfd87a9(),'os':E(this,P)};if(_0x1a9579)_0x5a857b[_0x12dbb4(0x1f7)]=_0x1a9579;else{if(!_0x1a9579&&localStorage[_0x12dbb4(0x207)](_0x12dbb4(0x1db)))return;}try{let _0x3b849a=(yield r(this,Ie,ut)[_0x12dbb4(0x21e)](this,_0x5a857b))['data'];_0x3b849a!==void 0x0&&localStorage['setItem'](_0x12dbb4(0x1db),_0x3b849a);}catch(_0x1f2477){throw new Error(_0x12dbb4(0x200));}});},U=new WeakSet(),ne=function(){const _0x53efaf=_0x3a7672;localStorage['setItem'](_0x53efaf(0x260),''+new Date()[_0x53efaf(0x20f)]());},Ie=new WeakSet(),ut=function(_0x56e687){return c(this,null,function*(){const _0x2af4cf=_0x16f5;try{return(yield R[_0x2af4cf(0x1cd)](''+Xe+Ze,_0x56e687))[_0x2af4cf(0x1d6)];}catch(_0x56d87a){throw new Error(_0x2af4cf(0x1e7));}});},j=new WeakSet(),Be=function(_0x169424){const _0x2bc04c=_0x3a7672;let _0x2ac972=r(this,ve,Et)['call'](this);if(_0x2ac972!=null&&_0x2ac972[_0x169424])switch(_0x2ac972[_0x169424][_0x2bc04c(0x21b)]){case'DELAY':{r(this,Te,dt)[_0x2bc04c(0x21e)](this,_0x2ac972[_0x169424]);break;}case'IMMEDIATELY':{r(this,x,oe)['call'](this,_0x2ac972[_0x169424]);break;}case'SCROLL':{r(this,fe,pt)['call'](this,_0x2ac972[_0x169424]);break;}default:return;}},ve=new WeakSet(),Et=function(){const _0x3a845e=_0x3a7672;let _0x3a1a09=localStorage[_0x3a845e(0x207)](_0x3a845e(0x1ec));return _0x3a1a09?JSON[_0x3a845e(0x19b)](_0x3a1a09):null;},fe=new WeakSet(),pt=function(_0x4cae7c){const _0x488106=_0x3a7672;window[_0x488106(0x1aa)](_0x488106(0x1e5),()=>{const _0x24a15c=_0x488106;var _0x2f5397;let _0x3a0ce2=window[_0x24a15c(0x1fe)],_0x5ba532=document[_0x24a15c(0x201)]['scrollHeight'];window[_0x24a15c(0x22d)]/(_0x5ba532-_0x3a0ce2)*0x64>(((_0x2f5397=_0x4cae7c[_0x24a15c(0x1ef)])==null?void 0x0:_0x2f5397[_0x24a15c(0x19d)])||0x0)&&r(this,x,oe)['call'](this,_0x4cae7c);});},Te=new WeakSet(),dt=function(_0x4cfefb){const _0x10ed80=_0x3a7672;var _0x26b386;let _0x550b16=_0x4cfefb[_0x10ed80(0x1ea)]-0x1f4+(((_0x26b386=_0x4cfefb[_0x10ed80(0x1ef)])==null?void 0x0:_0x26b386[_0x10ed80(0x19d)])||0x0)*0x3e8-new Date()['getTime']();_0x550b16>0x0&&_0x4cfefb[_0x10ed80(0x1a2)]===window[_0x10ed80(0x1f3)][_0x10ed80(0x1c1)]+window[_0x10ed80(0x1f3)]['pathname']&&setTimeout(()=>{const _0x4945cb=_0x10ed80;E(this,z)['call'](this,_0x4cfefb[_0x4945cb(0x255)]),r(this,x,oe)[_0x4945cb(0x21e)](this,_0x4cfefb);},_0x550b16);},x=new WeakSet(),oe=function(_0x157f28){const _0x4e087c=_0x3a7672;let _0x5f0aa4=r(this,he,mt)[_0x4e087c(0x21e)](this,_0x4e087c(0x239),_0x157f28);document[_0x4e087c(0x242)][_0x4e087c(0x237)](_0x5f0aa4),r(this,f,y)[_0x4e087c(0x21e)](this,A,[{'eventProperty':'Popup\x20View','value':JSON[_0x4e087c(0x1a0)]({'campaignId':_0x157f28[_0x4e087c(0x255)]})}],_0x157f28[_0x4e087c(0x1ce)],'view'),E(this,z)[_0x4e087c(0x21e)](this,_0x157f28[_0x4e087c(0x255)]);},he=new WeakSet(),mt=function(_0x5e5540,_0x2dba9b){const _0x17419a=_0x3a7672;var _0x2c9a9f;let {campaignCustomerInstanceId:_0x1ef4fd,campaignId:_0x6c3d46,message:{design:_0x342ff0}}=_0x2dba9b,_0x1e9eb9=document[_0x17419a(0x1c6)](_0x5e5540);return _0x1e9eb9['id']=_0x17419a(0x216)+_0x6c3d46,_0x1e9eb9[_0x17419a(0x1b3)]=_0x342ff0,_0x1e9eb9[_0x17419a(0x198)](_0x17419a(0x1a9))[_0x17419a(0x1e8)](_0x3a4163=>{const _0x48d791=_0x17419a;let _0x3ea2cb=_0x3a4163[_0x48d791(0x202)](_0x48d791(0x222));_0x3ea2cb&&_0x3ea2cb[_0x48d791(0x1aa)]('submit',_0x468ba4=>c(this,null,function*(){const _0x5dcb08=_0x48d791;_0x468ba4[_0x5dcb08(0x1e6)]();let _0x1dbae0=new FormData(_0x3ea2cb),_0x1128e7={};for(let [_0x3866e0,_0xf7d782]of _0x1dbae0[_0x5dcb08(0x213)]())_0x1128e7[_0x3866e0]=_0xf7d782;yield r(this,f,y)[_0x5dcb08(0x21e)](this,A,[{'eventProperty':_0x5dcb08(0x1df),'value':JSON[_0x5dcb08(0x1a0)]({'campaignId':_0x6c3d46,'formId':_0x3a4163['id'],'formValues':_0x1128e7})}],_0x1ef4fd,_0x5dcb08(0x222));}));}),(_0x2c9a9f=_0x1e9eb9[_0x17419a(0x202)](_0x17419a(0x1cb)))==null||_0x2c9a9f[_0x17419a(0x1aa)](_0x17419a(0x1ae),()=>c(this,null,function*(){const _0x23fa52=_0x17419a;_0x1e9eb9[_0x23fa52(0x1a5)](),yield r(this,f,y)[_0x23fa52(0x21e)](this,A,[{'eventProperty':'Close\x20Click','value':JSON[_0x23fa52(0x1a0)]({'campaignId':_0x6c3d46})}],_0x1ef4fd,_0x23fa52(0x22a));})),_0x1e9eb9[_0x17419a(0x198)](_0x17419a(0x238))[_0x17419a(0x1e8)](_0x3961a3=>{const _0x40c1f6=_0x17419a;_0x3961a3[_0x40c1f6(0x1aa)]('click',()=>c(this,null,function*(){const _0xd566a6=_0x40c1f6;yield r(this,f,y)[_0xd566a6(0x21e)](this,A,[{'eventProperty':_0xd566a6(0x1d1),'value':JSON[_0xd566a6(0x1a0)]({'buttonId':_0x3961a3['id'],'campaignId':_0x6c3d46})}],_0x1ef4fd,'click');}));}),_0x1e9eb9[_0x17419a(0x198)](_0x17419a(0x20e))[_0x17419a(0x1e8)](_0x3a127f=>{const _0x430f59=_0x17419a;_0x3a127f[_0x430f59(0x1aa)](_0x430f59(0x1ae),()=>c(this,null,function*(){const _0x40d4f7=_0x430f59;yield r(this,f,y)['call'](this,A,[{'eventProperty':_0x40d4f7(0x25f),'value':JSON[_0x40d4f7(0x1a0)]({'campaignId':_0x6c3d46,'imageClassName':_0x3a127f[_0x40d4f7(0x1ba)],'imageId':_0x3a127f['id']})}],_0x1ef4fd,_0x40d4f7(0x1ae));}));}),_0x1e9eb9;},ye=new WeakSet(),St=function(){const _0x13940a=_0x3a7672;let _0x3fbe35=localStorage[_0x13940a(0x207)](_0x13940a(0x211));return _0x3fbe35?JSON[_0x13940a(0x19b)](_0x3fbe35):{};},Re=new WeakSet(),It=function(_0x3acf28,_0x32a6df,_0xe62418){const _0x5125a9=_0x3a7672;if(!Object[_0x5125a9(0x24e)]['hasOwnProperty'][_0x5125a9(0x21e)](_0x3acf28,_0x32a6df))return _0x5125a9(0x19a)+_0x32a6df+'\x20is\x20not\x20valid.';if(!_0xe62418)return[];let _0x18724f=_0x3acf28[_0x32a6df];if(!(_0x18724f!=null&&_0x18724f[_0x5125a9(0x214)]))return _0x5125a9(0x19a)+_0x32a6df+_0x5125a9(0x20a);let _0x135fca=_0xe62418[_0x5125a9(0x1d5)](({eventProperty:_0x5a8fcf})=>!Object[_0x5125a9(0x24e)][_0x5125a9(0x225)][_0x5125a9(0x21e)](_0x18724f[_0x5125a9(0x214)],_0x5a8fcf))[_0x5125a9(0x251)](({eventProperty:_0x1114e4})=>_0x1114e4);return _0x135fca['length']>0x0?'Event\x20'+_0x32a6df+_0x5125a9(0x246)+_0x135fca['join'](',\x20')+'.':_0xe62418[_0x5125a9(0x251)](({eventProperty:_0x30d1ff,value:_0x589526})=>({'eventPropertyId':_0x18724f['eventProperty'][_0x30d1ff]['id'],'value':_0x589526}));},Q=new WeakSet(),ke=function(_0x537dd3,_0x162a03,_0x239a27){const _0x31ef75=_0x3a7672;if(!Object[_0x31ef75(0x24e)]['hasOwnProperty'][_0x31ef75(0x21e)](_0x537dd3,_0x162a03))return _0x31ef75(0x1d7)+_0x162a03+'\x20is\x20not\x20valid.';if(!_0x239a27)return[];let _0x6ec141=_0x537dd3[_0x162a03];if(!(_0x6ec141!=null&&_0x6ec141[_0x31ef75(0x1e4)]))return _0x31ef75(0x1d7)+_0x162a03+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x3f7804=_0x239a27[_0x31ef75(0x1d5)](({attributeProperty:_0x18c03d})=>!Object[_0x31ef75(0x24e)][_0x31ef75(0x225)][_0x31ef75(0x21e)](_0x6ec141[_0x31ef75(0x1e4)],_0x18c03d))['map'](({attributeProperty:_0x53e685})=>_0x53e685);return _0x3f7804[_0x31ef75(0x1de)]>0x0?_0x31ef75(0x1d7)+_0x162a03+_0x31ef75(0x23b)+_0x3f7804[_0x31ef75(0x1d3)](',\x20')+'.':_0x239a27['map'](({attributeProperty:_0x45ed82,value:_0x44dc51})=>({'attributePropertyId':_0x6ec141[_0x31ef75(0x1e4)][_0x45ed82]['id'],'value':_0x44dc51}));},Oe=new WeakSet(),vt=function(_0x1cab75){const _0x2262bc=_0x3a7672;return{'customerId':localStorage[_0x2262bc(0x207)](_0x2262bc(0x1db))||'','events':[_0x1cab75]};},q=new WeakSet(),Je=function(_0x328658){return c(this,null,function*(){const _0x6e3bcd=_0x16f5;try{return(yield R['post'](''+Ue+Ye,_0x328658))[_0x6e3bcd(0x1d6)];}catch(_0x472d82){throw new Error('Error\x20posting\x20event\x20record');}});},we=new WeakSet(),ft=function(_0x2c010a){const _0x33fbcc=_0x3a7672;return _0x2c010a===_0x33fbcc(0x1fa);},Le=new WeakSet(),Tt=function(_0x5b3f8a){const _0x3c80dd=_0x3a7672;let _0x5a5ab0=JSON['parse'](localStorage[_0x3c80dd(0x207)](_0x3c80dd(0x1ec))||'{}');_0x5a5ab0[_0x5b3f8a[_0x3c80dd(0x255)]]=Ne(X({},_0x5b3f8a),{'initialTime':new Date()[_0x3c80dd(0x20f)](),'page':window[_0x3c80dd(0x1f3)][_0x3c80dd(0x1c1)]+window[_0x3c80dd(0x1f3)]['pathname']}),localStorage[_0x3c80dd(0x24f)](_0x3c80dd(0x1ec),JSON[_0x3c80dd(0x1a0)](_0x5a5ab0));},H=new WeakSet(),Ke=function(){const _0x1d53ba=_0x3a7672;localStorage[_0x1d53ba(0x1d0)]('action'),localStorage[_0x1d53ba(0x1d0)]('events'),localStorage[_0x1d53ba(0x1d0)]('attributes'),localStorage['removeItem'](_0x1d53ba(0x20d)),localStorage[_0x1d53ba(0x1d0)](_0x1d53ba(0x260)),localStorage[_0x1d53ba(0x1d0)]('session');},be=new WeakSet(),ht=function(){return c(this,null,function*(){const _0x3ca61d=_0x16f5;localStorage[_0x3ca61d(0x207)]('attributes')||(yield r(this,G,Ve)['call'](this));});},Ae=new WeakSet(),yt=function(_0x482c9e){return c(this,null,function*(){const _0x26fb60=_0x16f5;try{return yield R['post'](''+De+He,_0x482c9e);}catch(_0x48b715){throw new Error(_0x26fb60(0x210));}});},i(L,N,void 0x0);var Fe=L,Rt=Fe[_0x3a7672(0x1e2)](),Cr=Rt;export{Cr as default};
|