mergn-webapp-sdk 1.0.6 → 1.0.8
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
'use strict';const _0x39ca78=_0x2839;(function(_0x158a1c,_0x277c94){const _0x5ba13d=_0x2839,_0x50cb1=_0x158a1c();while(!![]){try{const _0xb7e575=-parseInt(_0x5ba13d(0x120))/0x1+parseInt(_0x5ba13d(0x11a))/0x2+parseInt(_0x5ba13d(0x132))/0x3+parseInt(_0x5ba13d(0x15c))/0x4*(parseInt(_0x5ba13d(0x178))/0x5)+-parseInt(_0x5ba13d(0x125))/0x6*(-parseInt(_0x5ba13d(0x105))/0x7)+parseInt(_0x5ba13d(0x141))/0x8*(-parseInt(_0x5ba13d(0x17c))/0x9)+-parseInt(_0x5ba13d(0x143))/0xa*(parseInt(_0x5ba13d(0xec))/0xb);if(_0xb7e575===_0x277c94)break;else _0x50cb1['push'](_0x50cb1['shift']());}catch(_0x4d3798){_0x50cb1['push'](_0x50cb1['shift']());}}}(_0x10df,0x8dc74));var xt=Object['create'],F=Object[_0x39ca78(0x144)],Ct=Object[_0x39ca78(0xe4)],_t=Object['getOwnPropertyDescriptor'],Ft=Object[_0x39ca78(0x114)],Mt=Object[_0x39ca78(0xd2)],ze=Object['getOwnPropertySymbols'],$t=Object[_0x39ca78(0x151)],je=Object[_0x39ca78(0x108)]['hasOwnProperty'],Vt=Object['prototype'][_0x39ca78(0x14d)],Ge=(_0x1cfa8a,_0x60aa48,_0x5cb247)=>_0x60aa48 in _0x1cfa8a?F(_0x1cfa8a,_0x60aa48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cb247}):_0x1cfa8a[_0x60aa48]=_0x5cb247,Z=(_0x205aab,_0x3a890a)=>{const _0x4522b1=_0x39ca78;for(var _0x561f69 in _0x3a890a||(_0x3a890a={}))je[_0x4522b1(0xc2)](_0x3a890a,_0x561f69)&&Ge(_0x205aab,_0x561f69,_0x3a890a[_0x561f69]);if(ze){for(var _0x561f69 of ze(_0x3a890a))Vt[_0x4522b1(0xc2)](_0x3a890a,_0x561f69)&&Ge(_0x205aab,_0x561f69,_0x3a890a[_0x561f69]);}return _0x205aab;},De=(_0x7a4097,_0x5ad69f)=>Ct(_0x7a4097,Ft(_0x5ad69f)),Bt=(_0x4c9309,_0x15fcab)=>{for(var _0x5f1379 in _0x15fcab)F(_0x4c9309,_0x5f1379,{'get':_0x15fcab[_0x5f1379],'enumerable':!0x0});},Qe=(_0x36523d,_0x26779d,_0x14b898,_0x38b556)=>{const _0xf6660d=_0x39ca78;if(_0x26779d&&typeof _0x26779d==_0xf6660d(0xc4)||typeof _0x26779d=='function'){for(let _0x11c60c of Mt(_0x26779d))!je[_0xf6660d(0xc2)](_0x36523d,_0x11c60c)&&_0x11c60c!==_0x14b898&&F(_0x36523d,_0x11c60c,{'get':()=>_0x26779d[_0x11c60c],'enumerable':!(_0x38b556=_t(_0x26779d,_0x11c60c))||_0x38b556['enumerable']});}return _0x36523d;},qe=(_0x59ff67,_0x45eceb,_0x28914e)=>(_0x28914e=_0x59ff67!=null?xt($t(_0x59ff67)):{},Qe(_0x45eceb||!_0x59ff67||!_0x59ff67['__esModule']?F(_0x28914e,_0x39ca78(0x188),{'value':_0x59ff67,'enumerable':!0x0}):_0x28914e,_0x59ff67)),kt=_0x39b8b9=>Qe(F({},'__esModule',{'value':!0x0}),_0x39b8b9),Ue=(_0x64989f,_0x3a762e,_0x47d3fb)=>{const _0x51c83d=_0x39ca78;if(!_0x3a762e[_0x51c83d(0x147)](_0x64989f))throw TypeError(_0x51c83d(0x15e)+_0x47d3fb);},E=(_0x4c8cb2,_0x4f703d,_0x56da49)=>(Ue(_0x4c8cb2,_0x4f703d,'read\x20from\x20private\x20field'),_0x56da49?_0x56da49[_0x39ca78(0xc2)](_0x4c8cb2):_0x4f703d[_0x39ca78(0x12f)](_0x4c8cb2)),i=(_0x589ce9,_0xe38f53,_0x1fbacc)=>{const _0x114e64=_0x39ca78;if(_0xe38f53[_0x114e64(0x147)](_0x589ce9))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0xe38f53 instanceof WeakSet?_0xe38f53[_0x114e64(0x10c)](_0x589ce9):_0xe38f53[_0x114e64(0xf7)](_0x589ce9,_0x1fbacc);},v=(_0xc38303,_0x48f51b,_0x391dc9,_0x2dcf71)=>(Ue(_0xc38303,_0x48f51b,_0x39ca78(0x181)),_0x2dcf71?_0x2dcf71[_0x39ca78(0xc2)](_0xc38303,_0x391dc9):_0x48f51b[_0x39ca78(0xf7)](_0xc38303,_0x391dc9),_0x391dc9),He=(_0x502e66,_0x381d51,_0xd8b17d,_0x5e3ed1)=>({set '_'(_0x3b17a8){v(_0x502e66,_0x381d51,_0x3b17a8,_0xd8b17d);},get '_'(){return E(_0x502e66,_0x381d51,_0x5e3ed1);}}),n=(_0x3085c3,_0x4485c2,_0x28c3c4)=>(Ue(_0x3085c3,_0x4485c2,_0x39ca78(0x124)),_0x28c3c4),c=(_0x334deb,_0x3536a0,_0x20a65c)=>new Promise((_0xbf90ef,_0x43e263)=>{const _0x267d7a=_0x39ca78;var _0x3f8345=_0x274338=>{const _0x3ba11a=_0x2839;try{_0x4aad54(_0x20a65c[_0x3ba11a(0xd4)](_0x274338));}catch(_0xdba80e){_0x43e263(_0xdba80e);}},_0x490efb=_0x41ff59=>{const _0x1d8b48=_0x2839;try{_0x4aad54(_0x20a65c[_0x1d8b48(0x150)](_0x41ff59));}catch(_0x23073e){_0x43e263(_0x23073e);}},_0x4aad54=_0x7ac2c7=>_0x7ac2c7[_0x267d7a(0x103)]?_0xbf90ef(_0x7ac2c7[_0x267d7a(0xe0)]):Promise[_0x267d7a(0x148)](_0x7ac2c7['value'])[_0x267d7a(0x168)](_0x3f8345,_0x490efb);_0x4aad54((_0x20a65c=_0x20a65c[_0x267d7a(0xc8)](_0x334deb,_0x3536a0))[_0x267d7a(0xd4)]());}),Wt={};Bt(Wt,{'default':()=>Kt}),module[_0x39ca78(0xda)]=kt(Wt);var ne=require('uuid'),Ye=(_0x3144c4=>(_0x3144c4[_0x39ca78(0xf3)]='utm_source',_0x3144c4['UTM_MEDIUM']=_0x39ca78(0x158),_0x3144c4['UTM_CAMPAIGN']=_0x39ca78(0x109),_0x3144c4[_0x39ca78(0x126)]=_0x39ca78(0x118),_0x3144c4[_0x39ca78(0x173)]=_0x39ca78(0x153),_0x3144c4))(Ye||{}),Xe=new Set(Object['values'](Ye)),A='Popup\x20Action',Ze=_0x39ca78(0x135),xe=_0x39ca78(0x15d),et=_0x39ca78(0xbe),Ce=_0x39ca78(0x17f),tt='/record-event',rt=_0x39ca78(0x12d),nt=_0x39ca78(0x169),it=qe(require('axios')),at=require('axios-queue-js'),st=qe(require('axios-retry')),ot=require('axios'),ee=(_0x22f787=>(_0x22f787[_0x22f787[_0x39ca78(0x186)]=0x0]='NONE',_0x22f787[_0x22f787['INFO']=0x1]='INFO',_0x22f787[_0x22f787[_0x39ca78(0xd9)]=0x2]=_0x39ca78(0xd9),_0x22f787[_0x22f787[_0x39ca78(0x171)]=0x3]=_0x39ca78(0x171),_0x22f787))(ee||{}),u=(_0x564b61,_0x41a870)=>{const _0x100c30=_0x39ca78;g[_0x100c30(0x11f)]!==0x0&&g[_0x100c30(0x11f)]<=0x3&&(_0x564b61===0x1?console[_0x100c30(0xfc)](_0x100c30(0x131)+new Date()[_0x100c30(0x100)](),_0x41a870):_0x564b61===0x2&&console['error']('ERROR:\x20'+new Date()[_0x100c30(0x100)](),_0x41a870));},m=(_0x445493,_0x3f7c6e)=>{const _0x22b075=_0x39ca78;g[_0x22b075(0x11f)]!==0x0&&(_0x3f7c6e?console['time'](_0x445493):console['timeEnd'](_0x445493));},S=(_0x191af2,_0x5923d1)=>{const _0x85690d=_0x39ca78;g[_0x85690d(0x11f)]!==0x0&&(_0x5923d1?console[_0x85690d(0x136)](_0x191af2):console[_0x85690d(0x138)]());},g=class extends Error{constructor(_0x23d964){const _0x4a694c=_0x39ca78;super(_0x23d964),this[_0x4a694c(0xd8)]='MergnError';}};function _0x2839(_0x415990,_0x3afc70){const _0x10df9c=_0x10df();return _0x2839=function(_0x28398d,_0x3d1107){_0x28398d=_0x28398d-0xb6;let _0x373ab7=_0x10df9c[_0x28398d];return _0x373ab7;},_0x2839(_0x415990,_0x3afc70);}g[_0x39ca78(0x129)]=!0x1,g[_0x39ca78(0x18a)]=!navigator[_0x39ca78(0xff)],g[_0x39ca78(0x11f)]=0x0,g['isInitialized']=!0x1;var Jt=(_0x1cd651,_0xbd45c5)=>{const _0x5a5413=_0x39ca78;_0xbd45c5 instanceof g?u(0x2,'OriginateFrom:\x20'+_0x1cd651+_0x5a5413(0xbf)+_0xbd45c5['message']):_0xbd45c5 instanceof ot[_0x5a5413(0x177)]?(u(0x2,_0x5a5413(0x11b)+_0x1cd651+'\x0aAxiosError:\x20'+_0xbd45c5[_0x5a5413(0xf1)]),_0xbd45c5[_0x5a5413(0x11e)]?(u(0x2,'OriginateFrom:\x20'+_0x1cd651+_0x5a5413(0x11c)+_0xbd45c5['response'][_0x5a5413(0x128)]),u(0x2,_0x5a5413(0x11b)+_0x1cd651+_0x5a5413(0x10f)+_0xbd45c5['response'][_0x5a5413(0xce)])):_0xbd45c5[_0x5a5413(0xde)]?u(0x2,_0x5a5413(0x11b)+_0x1cd651+_0x5a5413(0x134)):u(0x2,_0x5a5413(0x11b)+_0x1cd651+_0x5a5413(0x115)+_0xbd45c5[_0x5a5413(0xf1)])):_0xbd45c5 instanceof Error?u(0x2,_0x5a5413(0x11b)+_0x1cd651+'\x0aUnexpected\x20error:\x20'+_0xbd45c5['message']):u(0x2,'OriginateFrom:\x20'+_0x1cd651+_0x5a5413(0x187)+String(_0xbd45c5));},O=(_0x15225b,_0x2dc36d,_0x39a7b7)=>c(void 0x0,null,function*(){const _0x2941bf=_0x39ca78;try{if(g[_0x2941bf(0x129)])throw new g(_0x2941bf(0x17a));if(_0x15225b!==_0x2941bf(0x13e)&&g[_0x2941bf(0x18a)])throw new g(_0x2941bf(0xb8));if(_0x15225b!==_0x2941bf(0xc0)&&!g['isInitialized'])throw new g(_0x2941bf(0xe8));return yield _0x2dc36d();}catch(_0x19ced8){return _0x39a7b7?_0x39a7b7(_0x19ced8):(g[_0x2941bf(0x11f)]===0x2||g[_0x2941bf(0x11f)]===0x3)&&Jt(_0x15225b,_0x19ced8),null;}}),w,M,$,V,te,B,Fe,re,ct,p=class p{constructor(){const _0x336f0c=_0x39ca78;i(this,te,0x0);let _0x4c76f9=it[_0x336f0c(0x188)][_0x336f0c(0x10b)]({'baseURL':Ze,'headers':{'Content-Type':_0x336f0c(0xb6)}});v(p,M,_0x4c76f9),v(p,$,new at['AxiosQueueManager']({'client':_0x4c76f9,'queueSize':0xa})),(0x0,st[_0x336f0c(0x188)])(_0x4c76f9,{'onRetry':_0x42c0cf=>{const _0x44eeb7=_0x336f0c;_0x42c0cf>=E(p,V)?(g[_0x44eeb7(0x10a)]&&console[_0x44eeb7(0x189)](_0x44eeb7(0x122)),g[_0x44eeb7(0x129)]=!0x0):He(this,te)['_']++;},'retries':E(p,V),'retryDelay':_0x341225=>_0x341225*0x1388});}static[_0x39ca78(0xc6)](_0x13d75f){const _0x181352=_0x39ca78;this[_0x181352(0x157)]=_0x13d75f,n(this,re,ct)[_0x181352(0xc2)](this)[_0x181352(0x165)][_0x181352(0x18b)]['common'][_0x181352(0xdd)]=_0x13d75f;}static[_0x39ca78(0x12f)](_0x2d073e){return n(this,B,Fe)['call'](this)['get'](_0x2d073e);}static[_0x39ca78(0x185)](_0x4cdd4d,_0x3df1c7){const _0x1795d0=_0x39ca78;return n(this,B,Fe)[_0x1795d0(0xc2)](this)[_0x1795d0(0x185)](_0x4cdd4d,_0x3df1c7||{});}};function _0x10df(){const _0x282cc2=['online','status','disableSDK','#\x20record\x20event','eventProperty','Popup','/customer','Mozilla\x20Firefox','get','campaignEntryTime','INFO:\x20','89520GLyfpi','querySelector','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','group','Button\x20Click','groupEnd','campaignCustomerInstanceId','keys','Internet\x20Explorer','Web\x20Session\x20Started','Recording\x20attribute\x20Time','record\x20event','length','operating-system','24YFIxeD','submit','271550tAGncb','defineProperty','SESSION_ID','Edg','has','resolve','innerHTML','Error\x20posting\x20identity\x20data','brand','stringify','propertyIsEnumerable','Logging\x20in\x20Time','zIndex','throw','getPrototypeOf','getTime','utm_content','push','hasOwnProperty','customer','apiKey','utm_medium','Google\x20Chrome','Attribute\x20Payload:\x0a\x20','join','12356DKOIXK','/attribute','Cannot\x20','Error\x20posting\x20event\x20record','map','identity','string','close','Logging\x20out\x20Time','defaults','Tracking\x20page\x20change','Error\x20setting\x20identity','then','/set-identity','className','logout','session','isInitialized','filter','innerHeight','forEach','ALL','click','UTM_CONTENT','ttl','Web\x20Session\x20Concluded','form','AxiosError','1840wVsyjw','Safari','Mergn\x20SDK\x20is\x20disabled!','attributes','1622727UOVwFr','recordAttribute','href','/event','Event\x20Payload:\x0a\x20','write\x20to\x20private\x20field','DELAY','initialTime','userAgent','post','NONE','\x0aUnexpected\x20error:\x20','default','log','offline','headers','campaignEntryTimeValue','Popup\x20View','application/json','querySelectorAll','Mergn\x20is\x20offline!','login','popup_container_','Mergn\x20SDK\x20Initialization\x20Time','uniqueIdentity','Checking\x20TTL\x20Time','/set-attribute','\x0aMergnError:\x20','init','location','call','removeItem','object','Microsoft\x20Edge','updateAPIKey','.u-close-button','apply','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','scroll','addEventListener','page','campaignId','data','action','test','Recording\x20event','getOwnPropertyNames','setItem','next','indexOf','Recording\x20event\x20Time','div','name','ERROR','exports','error','offlineEvents','Authorization','request','beforeunload','value','\x20has\x20invalid\x20attributeProperties:\x20','Web','attributeProperty','defineProperties','pathname','Tracking\x20page\x20change\x20Time','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','Mergn\x20not\x20initialized!','entries','isArray','Unknown','11CwhIUU','\x20is\x20not\x20valid.','Error\x20posting\x20attribute\x20record','Event\x20','events','message','Close\x20Click','UTM_SOURCE','os-version','parse','toLowerCase','set','getInstance','recordEvent','Recording\x20attribute','Viewed\x20Webpage','info','Checking\x20TTL','Attribute\x20','onLine','toISOString','\x20has\x20invalid\x20eventProperties:\x20','Logging\x20out','done','[id^=\x22u_content_button_\x22]','1587579BkXBBN','style','Initializing\x20Mergn\x20SDK','prototype','utm_campaign','showErrorLog','create','add','hostname','Identity:\x20','\x0aResponse\x20Data:\x20','IMMEDIATELY','Form\x20Submit','scrollHeight','setDebugLevel','getOwnPropertyDescriptors','\x0aError\x20setting\x20up\x20the\x20request:\x20','pushState','SESSION_CREATED','utm_term','view','1456752ycSwtr','OriginateFrom:\x20','\x0aHTTP\x20Status:\x20','Logging\x20in','response','debugLevel','972977UavHIi','getItem','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Error\x20fetching\x20attribute\x20data','access\x20private\x20method','6BGMWnd','UTM_TERM'];_0x10df=function(){return _0x282cc2;};return _0x10df();}w=new WeakMap(),M=new WeakMap(),$=new WeakMap(),V=new WeakMap(),te=new WeakMap(),B=new WeakSet(),Fe=function(){return E(p,w)||v(p,w,new p()),E(p,$);},re=new WeakSet(),ct=function(){return E(p,w)||v(p,w,new p()),E(p,M);},i(p,B),i(p,re),i(p,w,void 0x0),i(p,M,void 0x0),i(p,$,void 0x0),i(p,V,0x2);var _e=p,R=_e,N,P,J,K,W,se,lt,b,k,f,y,ce,gt,le,ut,z,$e,G,Ve,ge,Et,ue,pt,Ee,dt,pe,j,de,me,mt,Se,St,Ie,It,Q,Be,ve,vt,D,oe,U,ie,fe,ft,q,ke,Te,Tt,ye,yt,he,ht,x,ae,Re,Rt,Oe,Ot,we,wt,H,Je,Le,Lt,Y,Ke,be,bt,Ae,At,X,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,z),i(this,G),i(this,ge),i(this,ue),i(this,Ee),i(this,me),i(this,Se),i(this,Ie),i(this,Q),i(this,ve),i(this,D),i(this,U),i(this,fe),i(this,q),i(this,Te),i(this,ye),i(this,he),i(this,x),i(this,Re),i(this,Oe),i(this,we),i(this,H),i(this,Le),i(this,Y),i(this,be),i(this,Ae),i(this,X),i(this,Ne),i(this,Pe),i(this,P,void 0x0),i(this,J,void 0x0),i(this,K,void 0x0),i(this,W,null),i(this,pe,()=>{const _0x6697de=_0x2839;let _0x24be15=()=>{const _0x545682=_0x2839;let _0x1792cb=JSON['parse'](localStorage[_0x545682(0x121)](_0x545682(0xcf))||'{}');Object[_0x545682(0x13a)](_0x1792cb)[_0x545682(0x170)](_0x1d4bbb=>{const _0x18ba42=_0x545682;_0x1792cb[_0x1d4bbb]['initialTime']=new Date()[_0x18ba42(0x152)](),_0x1792cb[_0x1d4bbb][_0x18ba42(0xcc)]=window[_0x18ba42(0xc1)][_0x18ba42(0x10d)]+window[_0x18ba42(0xc1)][_0x18ba42(0xe5)];}),localStorage['setItem'](_0x545682(0xcf),JSON[_0x545682(0x14c)](_0x1792cb));};_0x24be15(),window[_0x6697de(0xcb)](_0x6697de(0xdf),_0x24be15);}),i(this,j,_0xba35f7=>{const _0x2d5dc6=_0x2839;let _0x2a8629=JSON[_0x2d5dc6(0xf5)](localStorage['getItem'](_0x2d5dc6(0xcf))||'{}');_0x2a8629[_0xba35f7]&&delete _0x2a8629[_0xba35f7],localStorage[_0x2d5dc6(0xd3)](_0x2d5dc6(0xcf),JSON[_0x2d5dc6(0x14c)](_0x2a8629));}),i(this,de,()=>{const _0x3f9bc1=_0x2839;let _0x346c64=JSON[_0x3f9bc1(0xf5)](localStorage[_0x3f9bc1(0x121)](_0x3f9bc1(0xcf))||'{}');Object[_0x3f9bc1(0x13a)](_0x346c64)[_0x3f9bc1(0x170)](_0x3cbf62=>{const _0x2977aa=_0x3f9bc1;_0x346c64[_0x3cbf62][_0x2977aa(0xf1)][_0x2977aa(0xd8)]===_0x2977aa(0x12c)&&n(this,q,ke)[_0x2977aa(0xc2)](this,_0x346c64[_0x3cbf62][_0x2977aa(0xcd)]);});});}static[_0x39ca78(0xf8)](){return E(L,N)||v(L,N,new L()),E(L,N);}['init'](_0x578ba0){const _0x4317a6=_0x39ca78;O(_0x4317a6(0xc0),()=>c(this,null,function*(){const _0x47face=_0x4317a6;u(0x1,_0x47face(0x107)),S(_0x47face(0x107),!0x0),m(_0x47face(0xbb),!0x0),n(this,ge,Et)['call'](this,_0x578ba0),yield n(this,z,$e)[_0x47face(0xc2)](this),g[_0x47face(0x16d)]=!0x0,setInterval(()=>c(this,null,function*(){const _0x36429a=_0x47face;yield n(this,z,$e)[_0x36429a(0xc2)](this);}),0x493e0),yield n(this,b,k)[_0x47face(0xc2)](this),window[_0x47face(0xcb)](_0x47face(0x127),()=>c(this,null,function*(){const _0x2056d6=_0x47face;g[_0x2056d6(0x18a)]=!0x1;let _0x2550f2=JSON[_0x2056d6(0xf5)](localStorage[_0x2056d6(0x121)](_0x2056d6(0xdc))||'[]');Array[_0x2056d6(0xea)](_0x2550f2)&&(yield n(this,Y,Ke)['call'](this,{'customerId':localStorage[_0x2056d6(0x121)]('customer')||'','events':_0x2550f2}),localStorage['removeItem']('offlineEvents')),n(this,b,k)['call'](this),n(this,U,ie)[_0x2056d6(0xc2)](this);})),window[_0x47face(0xcb)](_0x47face(0x18a),()=>{const _0x1f4ff1=_0x47face;g[_0x1f4ff1(0x18a)]=!0x0;}),window[_0x47face(0xcb)]('load',()=>{const _0x4e5ae7=_0x47face;E(this,de)[_0x4e5ae7(0xc2)](this);});let _0x1b8c51=history[_0x47face(0x116)];history[_0x47face(0x116)]=(..._0x3de8ca)=>{const _0x3e8138=_0x47face;_0x1b8c51[_0x3e8138(0xc8)](history,_0x3de8ca),n(this,G,Ve)[_0x3e8138(0xc2)](this);},n(this,G,Ve)[_0x47face(0xc2)](this),m(_0x47face(0xbb),!0x1),S(_0x47face(0x107),!0x1);}));}[_0x39ca78(0x113)](_0x5ebd51){const _0x3a6708=_0x39ca78;if(!(_0x5ebd51 in ee)){console[_0x3a6708(0xdb)](_0x3a6708(0xe7));return;}g[_0x3a6708(0x11f)]=_0x5ebd51;}[_0x39ca78(0x17d)](_0x527235,_0x26a175){const _0x43f171=_0x39ca78;O(_0x43f171(0x17d),()=>c(this,null,function*(){const _0x5969c5=_0x43f171;yield n(this,se,lt)[_0x5969c5(0xc2)](this,_0x527235,_0x26a175,void 0x0);}));}[_0x39ca78(0xb9)](_0x2afa1f){const _0x17be85=_0x39ca78;O(_0x17be85(0xb9),()=>c(this,null,function*(){const _0x5198ad=_0x17be85;u(0x1,_0x5198ad(0x11d)),S(_0x5198ad(0x11d),!0x0),m(_0x5198ad(0x14e),!0x0),u(0x1,_0x5198ad(0x10e)+_0x2afa1f),yield n(this,D,oe)[_0x5198ad(0xc2)](this,_0x2afa1f),m(_0x5198ad(0x14e),!0x1),S('Logging\x20in',!0x1);}));}[_0x39ca78(0x16b)](){const _0x124792=_0x39ca78;O(_0x124792(0x16b),()=>c(this,null,function*(){const _0x210ce2=_0x124792;u(0x1,_0x210ce2(0x102)),S('Logging\x20out',!0x0),m(_0x210ce2(0x164),!0x0),n(this,X,We)[_0x210ce2(0xc2)](this),m(_0x210ce2(0x164),!0x1),S(_0x210ce2(0x102),!0x1);}));}[_0x39ca78(0xf9)](_0x356e5f,_0x1e248c){const _0x233856=_0x39ca78;O(_0x233856(0x13e),()=>c(this,null,function*(){const _0x772acb=_0x233856;u(0x1,'Recording\x20event'),S('Recording\x20event',!0x0),m('Recording\x20event\x20Time',!0x0),u(0x1,_0x772acb(0x180)+{'eventName':_0x356e5f,'eventProperties':_0x1e248c}),yield n(this,f,y)[_0x772acb(0xc2)](this,_0x356e5f,_0x1e248c),m('Recording\x20event\x20Time',!0x1),S(_0x772acb(0xd1),!0x1);}));}};N=new WeakMap(),P=new WeakMap(),J=new WeakMap(),K=new WeakMap(),W=new WeakMap(),se=new WeakSet(),lt=function(_0x3e8784,_0x38435c,_0x4c6f85){return c(this,null,function*(){yield O('#\x20recordAttribute',()=>c(this,null,function*(){const _0x519a4c=_0x2839;u(0x1,_0x519a4c(0xfa)),S(_0x519a4c(0xfa),!0x0),m(_0x519a4c(0x13d),!0x0),u(0x1,_0x519a4c(0x15a)+{'attributeName':_0x3e8784,'attributeProperties':_0x4c6f85,'attributeValue':_0x38435c}+')}'),yield n(this,b,k)[_0x519a4c(0xc2)](this),yield n(this,Ne,Nt)[_0x519a4c(0xc2)](this);let _0x37f0c5=JSON[_0x519a4c(0xf5)](localStorage[_0x519a4c(0x121)](_0x519a4c(0x17b))||'{}'),_0x5dfdd9=_0x4c6f85?n(this,H,Je)[_0x519a4c(0xc2)](this,_0x37f0c5,_0x3e8784,_0x4c6f85):n(this,H,Je)['call'](this,_0x37f0c5,_0x3e8784);if(typeof _0x5dfdd9==_0x519a4c(0x162)){u(0x2,_0x5dfdd9);return;}n(this,U,ie)['call'](this);let {id:_0x5e1df8}=_0x37f0c5[_0x3e8784],_0x4ba36e={'attributeId':_0x5e1df8,'attributeProperties':_0x5dfdd9,'customerId':localStorage[_0x519a4c(0x121)](_0x519a4c(0x156))||'','value':_0x38435c};yield n(this,Pe,Pt)['call'](this,_0x4ba36e),m(_0x519a4c(0x13d),!0x1),S(_0x519a4c(0xfa),!0x1);}));});},b=new WeakSet(),k=function(){return c(this,null,function*(){const _0x183b18=_0x2839;u(0x1,_0x183b18(0xfd)),S(_0x183b18(0xfd),!0x0),m(_0x183b18(0xbd),!0x0);let _0x947131=localStorage[_0x183b18(0x121)](_0x183b18(0x174)),_0x2e5699=!0x1;if(_0x947131){if(_0x2e5699=new Date()['getTime']()-parseInt(_0x947131,0xa)>0x124f80,_0x2e5699){let _0xe1995c=localStorage['getItem'](_0x183b18(0x16c)),_0x4dc78e=localStorage[_0x183b18(0x121)](_0x183b18(0x174));_0xe1995c&&_0x4dc78e&&n(this,f,y)[_0x183b18(0xc2)](this,_0x183b18(0x175),[{'eventProperty':_0x183b18(0x145),'value':localStorage['getItem'](_0x183b18(0x16c))},{'eventProperty':_0x183b18(0x117),'value':new Date(parseInt(_0x4dc78e,0xa))[_0x183b18(0x100)]()}]),n(this,X,We)[_0x183b18(0xc2)](this),localStorage[_0x183b18(0xd3)](_0x183b18(0x174),''+new Date()[_0x183b18(0x152)]());}}else localStorage['setItem'](_0x183b18(0x174),''+new Date()[_0x183b18(0x152)]());(!_0x947131||_0x2e5699||n(this,ue,pt)[_0x183b18(0xc2)](this))&&(n(this,me,mt)[_0x183b18(0xc2)](this),yield n(this,D,oe)[_0x183b18(0xc2)](this),yield n(this,Ee,dt)[_0x183b18(0xc2)](this)),m('Checking\x20TTL\x20Time',!0x1),S(_0x183b18(0xfd),!0x1);});},f=new WeakSet(),y=function(_0x493088,_0x20d587,_0x227d7a,_0x23480d){return c(this,null,function*(){const _0xcad9a=_0x2839;yield O(_0xcad9a(0x12a),()=>c(this,null,function*(){const _0x2ed679=_0xcad9a;var _0x42cc4a;u(0x1,'#\x20Recording\x20event'),S(_0x2ed679(0xd1),!0x0),m(_0x2ed679(0xd6),!0x0),u(0x1,'Event\x20Payload'),u(0x1,{'campaignCustomerInstanceId':_0x227d7a,'eventName':_0x493088,'eventProperties':_0x20d587,'name':_0x23480d}),_0x493088!==_0x2ed679(0x175)&&(yield n(this,b,k)[_0x2ed679(0xc2)](this));let _0xe7888=[];_0x20d587&&_0xe7888[_0x2ed679(0x154)](..._0x20d587),_0xe7888[_0x2ed679(0x154)]({'eventProperty':'Platform','value':E(this,P)}),_0xe7888[_0x2ed679(0x154)]({'eventProperty':_0x2ed679(0x140),'value':E(this,K)}),_0xe7888[_0x2ed679(0x154)]({'eventProperty':_0x2ed679(0xf4),'value':E(this,J)});let _0x22bbf4=n(this,Oe,Ot)[_0x2ed679(0xc2)](this),_0x41ec66=n(this,we,wt)[_0x2ed679(0xc2)](this,_0x22bbf4,_0x493088,_0xe7888);if(typeof _0x41ec66==_0x2ed679(0x162)){u(0x2,_0x41ec66);return;}n(this,U,ie)[_0x2ed679(0xc2)](this);let {id:_0x703121}=_0x22bbf4[_0x493088],_0x5b98a0=n(this,Le,Lt)['call'](this,Z(De(Z({},_0x227d7a?{'campaignCustomerInstanceId':_0x227d7a}:{}),{'eventId':_0x703121,'eventProperties':_0x41ec66,'sessionId':localStorage[_0x2ed679(0x121)](_0x2ed679(0x16c))||''}),_0x23480d?{'name':_0x23480d}:{}));if(g[_0x2ed679(0x18a)]){let _0x390aea=JSON['parse'](localStorage[_0x2ed679(0x121)](_0x2ed679(0xdc))||'[]');_0x390aea[_0x2ed679(0x13f)]<=0x32&&(_0x390aea['push'](..._0x5b98a0['events']),localStorage[_0x2ed679(0xd3)](_0x2ed679(0xdc),JSON[_0x2ed679(0x14c)](_0x390aea)));return;}let _0x31645e=yield n(this,Y,Ke)['call'](this,_0x5b98a0);(_0x42cc4a=_0x31645e==null?void 0x0:_0x31645e[_0x2ed679(0xce)])==null||_0x42cc4a[_0x2ed679(0x170)](_0x33f88d=>{const _0x2e9def=_0x2ed679;n(this,be,bt)[_0x2e9def(0xc2)](this,_0x33f88d[_0x2e9def(0xf1)][_0x2e9def(0xd8)])&&(n(this,Ae,At)[_0x2e9def(0xc2)](this,_0x33f88d),E(this,pe)[_0x2e9def(0xc2)](this),n(this,q,ke)[_0x2e9def(0xc2)](this,_0x33f88d['campaignId']));}),m(_0x2ed679(0xd6),!0x1),S('Recording\x20event',!0x1);}));});},ce=new WeakSet(),gt=function(){const _0xf5416a=_0x39ca78;let _0x4f7a46=navigator[_0xf5416a(0x184)][_0xf5416a(0xf6)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0xf5416a(0xd0)](_0x4f7a46)?'Mobile':/windows|macintosh|linux|x11/i[_0xf5416a(0xd0)](_0x4f7a46)?_0xf5416a(0xe2):_0xf5416a(0xeb);},le=new WeakSet(),ut=function(){const _0xe4b993=_0x39ca78;let _0x341f4f=navigator['userAgent'],_0x3b8f25;return _0x341f4f[_0xe4b993(0xd5)]('Chrome')>-0x1?_0x3b8f25=_0xe4b993(0x159):_0x341f4f['indexOf'](_0xe4b993(0x179))>-0x1?_0x3b8f25=_0xe4b993(0x179):_0x341f4f[_0xe4b993(0xd5)]('Firefox')>-0x1?_0x3b8f25=_0xe4b993(0x12e):_0x341f4f[_0xe4b993(0xd5)](_0xe4b993(0x146))>-0x1?_0x3b8f25=_0xe4b993(0xc5):_0x341f4f[_0xe4b993(0xd5)]('MSIE')>-0x1?_0x3b8f25=_0xe4b993(0x13b):_0x3b8f25=_0xe4b993(0xeb),_0x3b8f25;},z=new WeakSet(),$e=function(){return c(this,null,function*(){const _0xd99b6=_0x2839;try{yield R['get'](_0xd99b6(0x14b));}catch(_0x5ce2b9){throw g[_0xd99b6(0x129)]=!0x0,_0x5ce2b9[_0xd99b6(0xf1)];}});},G=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x2b7de9=_0x2839;var _0x2ed857;u(0x1,_0x2b7de9(0x166)),S(_0x2b7de9(0x166),!0x0),m('Tracking\x20page\x20change\x20Time',!0x0);let _0x16679f=(_0x2ed857=window==null?void 0x0:window[_0x2b7de9(0xc1)])==null?void 0x0:_0x2ed857[_0x2b7de9(0x17e)];if(_0x16679f!==E(this,W)){v(this,W,_0x16679f);let _0x17fad3=[];new URLSearchParams(new URL(window['location'][_0x2b7de9(0x17e)])['search'])[_0x2b7de9(0x170)]((_0x36f81c,_0x4f4502)=>c(this,null,function*(){const _0x327c9c=_0x2b7de9;Xe[_0x327c9c(0x147)](_0x4f4502)&&_0x17fad3[_0x327c9c(0x154)]({'eventProperty':_0x4f4502,'value':_0x36f81c});})),yield n(this,f,y)[_0x2b7de9(0xc2)](this,_0x2b7de9(0xfb),[{'eventProperty':'URL','value':window[_0x2b7de9(0xc1)][_0x2b7de9(0xe5)]},..._0x17fad3]);}m(_0x2b7de9(0xe6),!0x1),S(_0x2b7de9(0x166),!0x1);});},ge=new WeakSet(),Et=function(_0x2277c2){const _0xfa152d=_0x39ca78;R['updateAPIKey'](_0x2277c2),v(this,P,navigator['userAgent']),v(this,J,n(this,le,ut)[_0xfa152d(0xc2)](this)),v(this,K,n(this,ce,gt)['call'](this));},ue=new WeakSet(),pt=function(){const _0xe124ab=_0x39ca78;return!localStorage[_0xe124ab(0x121)](_0xe124ab(0xf0))||!localStorage['getItem'](_0xe124ab(0x156))||!localStorage[_0xe124ab(0x121)](_0xe124ab(0x17b))||!localStorage[_0xe124ab(0x121)](_0xe124ab(0xbc))||!localStorage[_0xe124ab(0x121)](_0xe124ab(0x16c))||!localStorage[_0xe124ab(0x121)](_0xe124ab(0x156));},Ee=new WeakSet(),dt=function(){return c(this,null,function*(){const _0x164eb5=_0x2839;yield n(this,Se,St)[_0x164eb5(0xc2)](this),yield n(this,Q,Be)[_0x164eb5(0xc2)](this),yield n(this,D,oe)[_0x164eb5(0xc2)](this);});},pe=new WeakMap(),j=new WeakMap(),de=new WeakMap(),me=new WeakSet(),mt=function(){const _0x461a7e=_0x39ca78;let _0x525e72=localStorage[_0x461a7e(0x121)](_0x461a7e(0xbc));return _0x525e72||(_0x525e72=(0x0,ne['v4'])(),localStorage[_0x461a7e(0xd3)](_0x461a7e(0xbc),_0x525e72)),_0x525e72;},Se=new WeakSet(),St=function(){return c(this,null,function*(){const _0x3a316f=_0x2839;if(!localStorage[_0x3a316f(0x121)](_0x3a316f(0xf0))){let _0x31c7ed=(yield n(this,Ie,It)['call'](this))[_0x3a316f(0xce)];_0x31c7ed&&localStorage['setItem']('events',JSON[_0x3a316f(0x14c)](_0x31c7ed));}});},Ie=new WeakSet(),It=function(){return c(this,null,function*(){const _0x753896=_0x2839;try{return(yield R[_0x753896(0x12f)](''+Ce))[_0x753896(0xce)];}catch(_0x11a072){throw new Error('Error\x20fetching\x20event\x20data');}});},Q=new WeakSet(),Be=function(){return c(this,null,function*(){const _0x1d44a0=_0x2839;if(!localStorage[_0x1d44a0(0x121)](_0x1d44a0(0x17b))){let _0x3a24d1=(yield n(this,ve,vt)['call'](this))['data'];_0x3a24d1&&localStorage[_0x1d44a0(0xd3)](_0x1d44a0(0x17b),JSON[_0x1d44a0(0x14c)](_0x3a24d1));}});},ve=new WeakSet(),vt=function(){return c(this,null,function*(){const _0x47e370=_0x2839;try{return(yield R['get'](''+xe))['data'];}catch(_0x375311){throw new Error(_0x47e370(0x123));}});},D=new WeakSet(),oe=function(_0x41c40a){return c(this,null,function*(){const _0x372bbf=_0x2839;localStorage[_0x372bbf(0x121)](_0x372bbf(0x16c))||(localStorage['setItem'](_0x372bbf(0x16c),(0x0,ne['v4'])()),yield n(this,f,y)[_0x372bbf(0xc2)](this,_0x372bbf(0x13c),[{'eventProperty':'SESSION_ID','value':localStorage[_0x372bbf(0x121)](_0x372bbf(0x16c))},{'eventProperty':_0x372bbf(0x117),'value':new Date(parseInt(localStorage['getItem'](_0x372bbf(0x174))||'',0xa))[_0x372bbf(0x100)]()}]));let _0x13f7e0={'deviceId':localStorage[_0x372bbf(0x121)]('uniqueIdentity')||(0x0,ne['v4'])(),'os':E(this,P)};if(_0x41c40a)_0x13f7e0[_0x372bbf(0x161)]=_0x41c40a;else{if(!_0x41c40a&&localStorage[_0x372bbf(0x121)](_0x372bbf(0x156)))return;}try{let _0x28e7b5=(yield n(this,fe,ft)['call'](this,_0x13f7e0))[_0x372bbf(0xce)];_0x28e7b5!==void 0x0&&localStorage[_0x372bbf(0xd3)](_0x372bbf(0x156),_0x28e7b5);}catch(_0x305334){throw new Error(_0x372bbf(0x167));}});},U=new WeakSet(),ie=function(){const _0x4663b6=_0x39ca78;localStorage[_0x4663b6(0xd3)](_0x4663b6(0x174),''+new Date()[_0x4663b6(0x152)]());},fe=new WeakSet(),ft=function(_0x247626){return c(this,null,function*(){const _0x2dcc36=_0x2839;try{return(yield R[_0x2dcc36(0x185)](''+rt+nt,_0x247626))[_0x2dcc36(0xce)];}catch(_0x3d052c){throw new Error(_0x2dcc36(0x14a));}});},q=new WeakSet(),ke=function(_0x3fcbc1){const _0x270e39=_0x39ca78;let _0x2a5e60=n(this,Te,Tt)['call'](this);if(_0x2a5e60!=null&&_0x2a5e60[_0x3fcbc1])switch(_0x2a5e60[_0x3fcbc1][_0x270e39(0x130)]){case _0x270e39(0x182):{n(this,he,ht)[_0x270e39(0xc2)](this,_0x2a5e60[_0x3fcbc1]);break;}case _0x270e39(0x110):{n(this,x,ae)[_0x270e39(0xc2)](this,_0x2a5e60[_0x3fcbc1]);break;}case'SCROLL':{n(this,ye,yt)[_0x270e39(0xc2)](this,_0x2a5e60[_0x3fcbc1]);break;}default:return;}},Te=new WeakSet(),Tt=function(){const _0x5f2187=_0x39ca78;let _0x105188=localStorage[_0x5f2187(0x121)]('action');return _0x105188?JSON['parse'](_0x105188):null;},ye=new WeakSet(),yt=function(_0x35e62a){const _0x568608=_0x39ca78;window[_0x568608(0xcb)](_0x568608(0xca),()=>{const _0x41ee9a=_0x568608;var _0x86c318;let _0xb60075=window[_0x41ee9a(0x16f)],_0x4373ae=document['documentElement'][_0x41ee9a(0x112)];window['scrollY']/(_0x4373ae-_0xb60075)*0x64>(((_0x86c318=_0x35e62a[_0x41ee9a(0x18c)])==null?void 0x0:_0x86c318[_0x41ee9a(0xe0)])||0x0)&&n(this,x,ae)['call'](this,_0x35e62a);});},he=new WeakSet(),ht=function(_0x2f0bbc){const _0x28fc1a=_0x39ca78;var _0x58901e;let _0x5eed06=_0x2f0bbc[_0x28fc1a(0x183)]-0x1f4+(((_0x58901e=_0x2f0bbc[_0x28fc1a(0x18c)])==null?void 0x0:_0x58901e[_0x28fc1a(0xe0)])||0x0)*0x3e8-new Date()[_0x28fc1a(0x152)]();_0x5eed06>0x0&&_0x2f0bbc[_0x28fc1a(0xcc)]===window['location'][_0x28fc1a(0x10d)]+window[_0x28fc1a(0xc1)][_0x28fc1a(0xe5)]&&setTimeout(()=>{const _0x117fc8=_0x28fc1a;E(this,j)[_0x117fc8(0xc2)](this,_0x2f0bbc[_0x117fc8(0xcd)]),n(this,x,ae)[_0x117fc8(0xc2)](this,_0x2f0bbc);},_0x5eed06);},x=new WeakSet(),ae=function(_0x3a3d3e){const _0x271887=_0x39ca78;let _0x55f5d7=n(this,Re,Rt)[_0x271887(0xc2)](this,_0x271887(0xd7),_0x3a3d3e);document['body']['appendChild'](_0x55f5d7),n(this,f,y)[_0x271887(0xc2)](this,A,[{'eventProperty':_0x271887(0x18d),'value':JSON[_0x271887(0x14c)]({'campaignId':_0x3a3d3e[_0x271887(0xcd)]})}],_0x3a3d3e[_0x271887(0x139)],_0x271887(0x119)),E(this,j)['call'](this,_0x3a3d3e[_0x271887(0xcd)]);},Re=new WeakSet(),Rt=function(_0x39de8c,_0x369d50){const _0x1fbff7=_0x39ca78;var _0x201e6d;let {campaignCustomerInstanceId:_0x41a8cd,campaignId:_0x13a984,message:{design:_0x55fbc3}}=_0x369d50,_0x3a0e9f=document['createElement'](_0x39de8c);return _0x3a0e9f['id']=_0x1fbff7(0xba)+_0x13a984,_0x3a0e9f[_0x1fbff7(0x149)]=_0x55fbc3,_0x3a0e9f[_0x1fbff7(0x106)][_0x1fbff7(0x14f)]='50',_0x3a0e9f[_0x1fbff7(0xb7)]('[id^=\x22u_content_form_\x22]')[_0x1fbff7(0x170)](_0x2261ab=>{const _0x363abb=_0x1fbff7;let _0x253e9f=_0x2261ab[_0x363abb(0x133)](_0x363abb(0x176));_0x253e9f&&_0x253e9f['addEventListener'](_0x363abb(0x142),()=>c(this,null,function*(){const _0xc8d585=_0x363abb;let _0x2bda15=new FormData(_0x253e9f),_0x47b50d={};for(let [_0x50a366,_0x5b8c38]of _0x2bda15[_0xc8d585(0xe9)]())_0x47b50d[_0x50a366]=_0x5b8c38;yield n(this,f,y)[_0xc8d585(0xc2)](this,A,[{'eventProperty':_0xc8d585(0x111),'value':JSON[_0xc8d585(0x14c)]({'campaignId':_0x13a984,'formId':_0x2261ab['id'],'formValues':_0x47b50d})}],_0x41a8cd,'form');}));}),(_0x201e6d=_0x3a0e9f[_0x1fbff7(0x133)](_0x1fbff7(0xc7)))==null||_0x201e6d[_0x1fbff7(0xcb)](_0x1fbff7(0x172),()=>c(this,null,function*(){const _0x2f84d4=_0x1fbff7;_0x3a0e9f['remove'](),yield n(this,f,y)['call'](this,A,[{'eventProperty':_0x2f84d4(0xf2),'value':JSON[_0x2f84d4(0x14c)]({'campaignId':_0x13a984})}],_0x41a8cd,_0x2f84d4(0x163));})),_0x3a0e9f[_0x1fbff7(0xb7)](_0x1fbff7(0x104))[_0x1fbff7(0x170)](_0x264c0d=>{const _0x5f2aeb=_0x1fbff7;_0x264c0d[_0x5f2aeb(0xcb)](_0x5f2aeb(0x172),()=>c(this,null,function*(){const _0x40b49d=_0x5f2aeb;yield n(this,f,y)['call'](this,A,[{'eventProperty':_0x40b49d(0x137),'value':JSON[_0x40b49d(0x14c)]({'buttonId':_0x264c0d['id'],'campaignId':_0x13a984})}],_0x41a8cd,_0x40b49d(0x172));}));}),_0x3a0e9f['querySelectorAll']('.u-popup-container\x20img')[_0x1fbff7(0x170)](_0x489a95=>{const _0x2933d0=_0x1fbff7;_0x489a95[_0x2933d0(0xcb)]('click',()=>c(this,null,function*(){const _0x45ceab=_0x2933d0;yield n(this,f,y)[_0x45ceab(0xc2)](this,A,[{'eventProperty':'Image\x20Click','value':JSON[_0x45ceab(0x14c)]({'campaignId':_0x13a984,'imageClassName':_0x489a95[_0x45ceab(0x16a)],'imageId':_0x489a95['id']})}],_0x41a8cd,_0x45ceab(0x172));}));}),_0x3a0e9f;},Oe=new WeakSet(),Ot=function(){const _0x418b92=_0x39ca78;let _0x1a8900=localStorage[_0x418b92(0x121)](_0x418b92(0xf0));return _0x1a8900?JSON[_0x418b92(0xf5)](_0x1a8900):{};},we=new WeakSet(),wt=function(_0x21838d,_0x4e0d96,_0x3c414a){const _0x524a39=_0x39ca78;if(!Object['prototype']['hasOwnProperty']['call'](_0x21838d,_0x4e0d96))return _0x524a39(0xef)+_0x4e0d96+_0x524a39(0xed);if(!_0x3c414a)return[];let _0x52a815=_0x21838d[_0x4e0d96];if(!(_0x52a815!=null&&_0x52a815[_0x524a39(0x12b)]))return _0x524a39(0xef)+_0x4e0d96+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x4c0369=_0x3c414a[_0x524a39(0x16e)](({eventProperty:_0x3d66f3})=>!Object[_0x524a39(0x108)][_0x524a39(0x155)][_0x524a39(0xc2)](_0x52a815[_0x524a39(0x12b)],_0x3d66f3))['map'](({eventProperty:_0xdc6f83})=>_0xdc6f83);return _0x4c0369['length']>0x0?_0x524a39(0xef)+_0x4e0d96+_0x524a39(0x101)+_0x4c0369[_0x524a39(0x15b)](',\x20')+'.':_0x3c414a[_0x524a39(0x160)](({eventProperty:_0x3bd727,value:_0x56c407})=>({'eventPropertyId':_0x52a815[_0x524a39(0x12b)][_0x3bd727]['id'],'value':_0x56c407}));},H=new WeakSet(),Je=function(_0x3fff2a,_0x47400c,_0x41bf20){const _0x1d02f2=_0x39ca78;if(!Object[_0x1d02f2(0x108)]['hasOwnProperty'][_0x1d02f2(0xc2)](_0x3fff2a,_0x47400c))return'Attribute\x20'+_0x47400c+_0x1d02f2(0xed);if(!_0x41bf20)return[];let _0x2dca81=_0x3fff2a[_0x47400c];if(!(_0x2dca81!=null&&_0x2dca81[_0x1d02f2(0xe3)]))return _0x1d02f2(0xfe)+_0x47400c+_0x1d02f2(0xc9);let _0x533683=_0x41bf20[_0x1d02f2(0x16e)](({attributeProperty:_0x2cb25c})=>!Object[_0x1d02f2(0x108)]['hasOwnProperty'][_0x1d02f2(0xc2)](_0x2dca81[_0x1d02f2(0xe3)],_0x2cb25c))[_0x1d02f2(0x160)](({attributeProperty:_0x2ceef0})=>_0x2ceef0);return _0x533683[_0x1d02f2(0x13f)]>0x0?_0x1d02f2(0xfe)+_0x47400c+_0x1d02f2(0xe1)+_0x533683[_0x1d02f2(0x15b)](',\x20')+'.':_0x41bf20[_0x1d02f2(0x160)](({attributeProperty:_0x2af854,value:_0x587515})=>({'attributePropertyId':_0x2dca81[_0x1d02f2(0xe3)][_0x2af854]['id'],'value':_0x587515}));},Le=new WeakSet(),Lt=function(_0x3c55d2){const _0x1ba071=_0x39ca78;return{'customerId':localStorage[_0x1ba071(0x121)](_0x1ba071(0x156))||'','events':[_0x3c55d2]};},Y=new WeakSet(),Ke=function(_0x37021e){return c(this,null,function*(){const _0x47dd77=_0x2839;try{return(yield R['post'](''+Ce+tt,_0x37021e))['data'];}catch(_0x580921){throw new Error(_0x47dd77(0x15f));}});},be=new WeakSet(),bt=function(_0x2466ab){const _0x4d541c=_0x39ca78;return _0x2466ab===_0x4d541c(0x12c);},Ae=new WeakSet(),At=function(_0x2fc6a1){const _0x4155b9=_0x39ca78;let _0x4bc8ce=JSON[_0x4155b9(0xf5)](localStorage['getItem'](_0x4155b9(0xcf))||'{}');_0x4bc8ce[_0x2fc6a1[_0x4155b9(0xcd)]]=De(Z({},_0x2fc6a1),{'initialTime':new Date()[_0x4155b9(0x152)](),'page':window[_0x4155b9(0xc1)][_0x4155b9(0x10d)]+window[_0x4155b9(0xc1)][_0x4155b9(0xe5)]}),localStorage[_0x4155b9(0xd3)](_0x4155b9(0xcf),JSON[_0x4155b9(0x14c)](_0x4bc8ce));},X=new WeakSet(),We=function(){const _0x362433=_0x39ca78;localStorage['removeItem'](_0x362433(0xcf)),localStorage[_0x362433(0xc3)]('events'),localStorage[_0x362433(0xc3)](_0x362433(0x17b)),localStorage[_0x362433(0xc3)]('offlineEvents'),localStorage['removeItem']('ttl'),localStorage['removeItem'](_0x362433(0x16c));},Ne=new WeakSet(),Nt=function(){return c(this,null,function*(){const _0x53dcab=_0x2839;localStorage[_0x53dcab(0x121)](_0x53dcab(0x17b))||(yield n(this,Q,Be)[_0x53dcab(0xc2)](this));});},Pe=new WeakSet(),Pt=function(_0xd90835){return c(this,null,function*(){const _0x3fabc5=_0x2839;try{return yield R[_0x3fabc5(0x185)](''+xe+et,_0xd90835);}catch(_0x36aa74){throw new Error(_0x3fabc5(0xee));}});},i(L,N,void 0x0);var Me=L,Dt=Me[_0x39ca78(0xf8)](),Kt=Dt;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x3e0864=_0x1c91;(function(_0x1818e6,_0x271355){const _0x4b71f2=_0x1c91,_0x1e923a=_0x1818e6();while(!![]){try{const _0x1dd1d6=-parseInt(_0x4b71f2(0x157))/0x1*(parseInt(_0x4b71f2(0x20b))/0x2)+parseInt(_0x4b71f2(0x20c))/0x3+parseInt(_0x4b71f2(0x19b))/0x4+-parseInt(_0x4b71f2(0x1e9))/0x5*(parseInt(_0x4b71f2(0x1ab))/0x6)+parseInt(_0x4b71f2(0x1fd))/0x7+-parseInt(_0x4b71f2(0x1fe))/0x8*(-parseInt(_0x4b71f2(0x186))/0x9)+parseInt(_0x4b71f2(0x1ec))/0xa*(-parseInt(_0x4b71f2(0x201))/0xb);if(_0x1dd1d6===_0x271355)break;else _0x1e923a['push'](_0x1e923a['shift']());}catch(_0x22e41a){_0x1e923a['push'](_0x1e923a['shift']());}}}(_0x49f0,0xc4015));function _0x1c91(_0x51ee2a,_0x5c75d3){const _0x49f08=_0x49f0();return _0x1c91=function(_0x1c91d5,_0x24b3a0){_0x1c91d5=_0x1c91d5-0x153;let _0xc8c558=_0x49f08[_0x1c91d5];return _0xc8c558;},_0x1c91(_0x51ee2a,_0x5c75d3);}var wt=Object[_0x3e0864(0x162)],Lt=Object['defineProperties'],bt=Object['getOwnPropertyDescriptors'],We=Object[_0x3e0864(0x1d3)],At=Object[_0x3e0864(0x204)][_0x3e0864(0x1c9)],Nt=Object[_0x3e0864(0x204)][_0x3e0864(0x1e3)],ze=(_0x47c697,_0x459ac1,_0x48ad6f)=>_0x459ac1 in _0x47c697?wt(_0x47c697,_0x459ac1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ad6f}):_0x47c697[_0x459ac1]=_0x48ad6f,X=(_0x49f4d5,_0x727d43)=>{const _0x256b99=_0x3e0864;for(var _0x2a4b99 in _0x727d43||(_0x727d43={}))At['call'](_0x727d43,_0x2a4b99)&&ze(_0x49f4d5,_0x2a4b99,_0x727d43[_0x2a4b99]);if(We){for(var _0x2a4b99 of We(_0x727d43))Nt[_0x256b99(0x1cc)](_0x727d43,_0x2a4b99)&&ze(_0x49f4d5,_0x2a4b99,_0x727d43[_0x2a4b99]);}return _0x49f4d5;},Ne=(_0x204888,_0x223b0e)=>Lt(_0x204888,bt(_0x223b0e)),Pe=(_0x6100,_0x341218,_0x46b25f)=>{const _0x10363d=_0x3e0864;if(!_0x341218[_0x10363d(0x1f7)](_0x6100))throw TypeError(_0x10363d(0x1e8)+_0x46b25f);},E=(_0xb7de20,_0x131fa8,_0x501057)=>(Pe(_0xb7de20,_0x131fa8,'read\x20from\x20private\x20field'),_0x501057?_0x501057[_0x3e0864(0x1cc)](_0xb7de20):_0x131fa8[_0x3e0864(0x154)](_0xb7de20)),i=(_0x48efe0,_0x364ec0,_0x597d7a)=>{const _0x34098d=_0x3e0864;if(_0x364ec0[_0x34098d(0x1f7)](_0x48efe0))throw TypeError(_0x34098d(0x1da));_0x364ec0 instanceof WeakSet?_0x364ec0[_0x34098d(0x1a8)](_0x48efe0):_0x364ec0['set'](_0x48efe0,_0x597d7a);},v=(_0x5aa9c5,_0x4c3998,_0xffc69f,_0x49c9ca)=>(Pe(_0x5aa9c5,_0x4c3998,_0x3e0864(0x18a)),_0x49c9ca?_0x49c9ca[_0x3e0864(0x1cc)](_0x5aa9c5,_0xffc69f):_0x4c3998[_0x3e0864(0x1bb)](_0x5aa9c5,_0xffc69f),_0xffc69f),Ge=(_0x3b3d72,_0x277319,_0x1d36ac,_0xee1ee9)=>({set '_'(_0x13e504){v(_0x3b3d72,_0x277319,_0x13e504,_0x1d36ac);},get '_'(){return E(_0x3b3d72,_0x277319,_0xee1ee9);}}),r=(_0x402828,_0x27b8d8,_0x2945b5)=>(Pe(_0x402828,_0x27b8d8,_0x3e0864(0x189)),_0x2945b5),c=(_0x4615ae,_0x132da5,_0x427f07)=>new Promise((_0x3ecdaf,_0x52eb50)=>{const _0x11a1ad=_0x3e0864;var _0x563ee3=_0xd63491=>{const _0x245a94=_0x1c91;try{_0xf441a(_0x427f07[_0x245a94(0x155)](_0xd63491));}catch(_0x31e9ed){_0x52eb50(_0x31e9ed);}},_0x2a16f=_0xc7ac72=>{const _0x10b7dd=_0x1c91;try{_0xf441a(_0x427f07[_0x10b7dd(0x1d6)](_0xc7ac72));}catch(_0x2502f9){_0x52eb50(_0x2502f9);}},_0xf441a=_0x4f296c=>_0x4f296c[_0x11a1ad(0x1e0)]?_0x3ecdaf(_0x4f296c[_0x11a1ad(0x20a)]):Promise[_0x11a1ad(0x1b1)](_0x4f296c[_0x11a1ad(0x20a)])[_0x11a1ad(0x15e)](_0x563ee3,_0x2a16f);_0xf441a((_0x427f07=_0x427f07['apply'](_0x4615ae,_0x132da5))['next']());});import{v4 as _0xbaf7bd}from'uuid';function _0x49f0(){const _0x293b5b=['eventProperty','operating-system','Event\x20','4023840VYhKmH','innerHTML','/attribute','.u-close-button','Unknown','Edg','close','hostname','Popup\x20View','Microsoft\x20Edge','record\x20event','\x20has\x20invalid\x20attributeProperties:\x20','beforeunload','add','length','join','1268052JcfZLu','Initializing\x20Mergn\x20SDK','Error\x20posting\x20identity\x20data','scrollY','querySelector','keys','resolve','pathname','addEventListener','Error\x20fetching\x20attribute\x20data','defaults','form','stringify','ttl','Web','Mergn\x20SDK\x20is\x20disabled!','set','Popup','error','Recording\x20event\x20Time','\x20has\x20invalid\x20eventProperties:\x20','Error\x20fetching\x20event\x20data','[id^=\x22u_content_button_\x22]','filter','Mozilla\x20Firefox','getItem','uniqueIdentity','Image\x20Click','name','DELAY','hasOwnProperty','location','recordAttribute','call','remove','events','querySelectorAll','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','\x0aResponse\x20Data:\x20','login','getOwnPropertySymbols','MergnError','SESSION_ID','throw','zIndex','groupEnd','logout','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','load','OriginateFrom:\x20','ALL','attributeProperty','scrollHeight','done','IMMEDIATELY','userAgent','propertyIsEnumerable','Event\x20Payload:\x0a\x20','utm_source','push','INFO:\x20','Cannot\x20','5tsENOb','#\x20record\x20event','customer','534740zERqXH','disableSDK','offline','session','Logging\x20in\x20Time','\x0aAxiosError:\x20','Mobile','view','utm_campaign','create','Popup\x20Action','has','response','os-version','onLine','Tracking\x20page\x20change','scroll','5480888aFMqVQ','73528chEgjL','Mergn\x20SDK\x20Initialization\x20Time','toISOString','484nMTEHN','Checking\x20TTL','/set-identity','prototype','message','/set-attribute','headers','request','init','value','33424wVLcqN','3736743sYwZIw','MSIE','attributes','SESSION_CREATED','map','style','brand','Error\x20posting\x20attribute\x20record','/customer','getTime','updateAPIKey','isArray','Attribute\x20','setDebugLevel','Logging\x20out\x20Time','indexOf','\x0aUnexpected\x20error:\x20','Firefox','get','next','Chrome','34xTxBog','campaignEntryTimeValue','body','post','removeItem','pushState','Logging\x20in','then','recordEvent','Mergn\x20is\x20offline!','online','defineProperty','appendChild','submit','createElement','\x0aMergnError:\x20','getInstance','Attribute\x20Payload:\x0a\x20','SCROLL','href','Recording\x20attribute\x20Time','info','documentElement','search','setItem','data','className','Platform','INFO','ERROR','status','#\x20recordAttribute','Internet\x20Explorer','Authorization','Recording\x20event','campaignEntryTime','Web\x20Session\x20Concluded','isInitialized','parse','showErrorLog','Safari','click','entries','/record-event','Logging\x20out','action','toLowerCase','882gBWFDG','\x20is\x20not\x20valid.','campaignId','access\x20private\x20method','write\x20to\x20private\x20field','#\x20Recording\x20event','test','offlineEvents','initialTime','Error\x20setting\x20identity','Viewed\x20Webpage','Recording\x20attribute','Button\x20Click','UTM_TERM','NONE','values','debugLevel','forEach'];_0x49f0=function(){return _0x293b5b;};return _0x49f0();}var je=(_0x441917=>(_0x441917['UTM_SOURCE']=_0x3e0864(0x1e5),_0x441917['UTM_MEDIUM']='utm_medium',_0x441917['UTM_CAMPAIGN']=_0x3e0864(0x1f4),_0x441917[_0x3e0864(0x193)]='utm_term',_0x441917['UTM_CONTENT']='utm_content',_0x441917))(je||{}),Qe=new Set(Object[_0x3e0864(0x195)](je)),A=_0x3e0864(0x1f6),qe='https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',De=_0x3e0864(0x19d),He=_0x3e0864(0x206),Ue='/event',Ye=_0x3e0864(0x182),Xe=_0x3e0864(0x214),Ze=_0x3e0864(0x203);import _0x565154 from'axios';import{AxiosQueueManager as _0x260eb6}from'axios-queue-js';import _0x539e4f from'axios-retry';import{AxiosError as _0x19ca3a}from'axios';var Z=(_0x5c0e22=>(_0x5c0e22[_0x5c0e22[_0x3e0864(0x194)]=0x0]='NONE',_0x5c0e22[_0x5c0e22[_0x3e0864(0x173)]=0x1]=_0x3e0864(0x173),_0x5c0e22[_0x5c0e22[_0x3e0864(0x174)]=0x2]=_0x3e0864(0x174),_0x5c0e22[_0x5c0e22['ALL']=0x3]=_0x3e0864(0x1dd),_0x5c0e22))(Z||{}),u=(_0x25d97d,_0x3ca67c)=>{const _0x5f0d97=_0x3e0864;g[_0x5f0d97(0x196)]!==0x0&&g['debugLevel']<=0x3&&(_0x25d97d===0x1?console[_0x5f0d97(0x16c)](_0x5f0d97(0x1e7)+new Date()[_0x5f0d97(0x200)](),_0x3ca67c):_0x25d97d===0x2&&console[_0x5f0d97(0x1bd)]('ERROR:\x20'+new Date()[_0x5f0d97(0x200)](),_0x3ca67c));},m=(_0x3a1e2f,_0x225a84)=>{const _0x3770aa=_0x3e0864;g[_0x3770aa(0x196)]!==0x0&&(_0x225a84?console['time'](_0x3a1e2f):console['timeEnd'](_0x3a1e2f));},S=(_0x57ff2d,_0x24247e)=>{const _0x4574a9=_0x3e0864;g['debugLevel']!==0x0&&(_0x24247e?console['group'](_0x57ff2d):console[_0x4574a9(0x1d8)]());},g=class extends Error{constructor(_0x4f7b5c){const _0x92fd26=_0x3e0864;super(_0x4f7b5c),this['name']=_0x92fd26(0x1d4);}};g['disableSDK']=!0x1,g['offline']=!navigator[_0x3e0864(0x1fa)],g[_0x3e0864(0x196)]=0x0,g['isInitialized']=!0x1;var Dt=(_0x91d88e,_0x862685)=>{const _0x5e4783=_0x3e0864;_0x862685 instanceof g?u(0x2,_0x5e4783(0x1dc)+_0x91d88e+_0x5e4783(0x166)+_0x862685['message']):_0x862685 instanceof _0x19ca3a?(u(0x2,_0x5e4783(0x1dc)+_0x91d88e+_0x5e4783(0x1f1)+_0x862685[_0x5e4783(0x205)]),_0x862685['response']?(u(0x2,_0x5e4783(0x1dc)+_0x91d88e+'\x0aHTTP\x20Status:\x20'+_0x862685[_0x5e4783(0x1f8)][_0x5e4783(0x175)]),u(0x2,_0x5e4783(0x1dc)+_0x91d88e+_0x5e4783(0x1d1)+_0x862685[_0x5e4783(0x1f8)][_0x5e4783(0x170)])):_0x862685[_0x5e4783(0x208)]?u(0x2,'OriginateFrom:\x20'+_0x91d88e+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):u(0x2,_0x5e4783(0x1dc)+_0x91d88e+'\x0aError\x20setting\x20up\x20the\x20request:\x20'+_0x862685[_0x5e4783(0x205)])):_0x862685 instanceof Error?u(0x2,'OriginateFrom:\x20'+_0x91d88e+_0x5e4783(0x21c)+_0x862685[_0x5e4783(0x205)]):u(0x2,_0x5e4783(0x1dc)+_0x91d88e+'\x0aUnexpected\x20error:\x20'+String(_0x862685));},O=(_0x34ca82,_0x4fea7e,_0x3ab577)=>c(void 0x0,null,function*(){const _0x300791=_0x3e0864;try{if(g['disableSDK'])throw new g(_0x300791(0x1ba));if(_0x34ca82!==_0x300791(0x1a5)&&g['offline'])throw new g(_0x300791(0x160));if(_0x34ca82!==_0x300791(0x209)&&!g[_0x300791(0x17c)])throw new g('Mergn\x20not\x20initialized!');return yield _0x4fea7e();}catch(_0x3e199b){return _0x3ab577?_0x3ab577(_0x3e199b):(g[_0x300791(0x196)]===0x2||g[_0x300791(0x196)]===0x3)&&Dt(_0x34ca82,_0x3e199b),null;}}),w,F,M,$,ee,V,Ce,te,et,p=class p{constructor(){const _0x3b8efc=_0x3e0864;i(this,ee,0x0);let _0x1d00be=_0x565154[_0x3b8efc(0x1f5)]({'baseURL':qe,'headers':{'Content-Type':'application/json'}});v(p,F,_0x1d00be),v(p,M,new _0x260eb6({'client':_0x1d00be,'queueSize':0xa})),_0x539e4f(_0x1d00be,{'onRetry':_0x1abf2a=>{const _0x28acfd=_0x3b8efc;_0x1abf2a>=E(p,$)?(g[_0x28acfd(0x17e)]&&console['log']('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),g[_0x28acfd(0x1ed)]=!0x0):Ge(this,ee)['_']++;},'retries':E(p,$),'retryDelay':_0x566f8e=>_0x566f8e*0x1388});}static[_0x3e0864(0x216)](_0x419e91){const _0x4cbd90=_0x3e0864;this['apiKey']=_0x419e91,r(this,te,et)[_0x4cbd90(0x1cc)](this)[_0x4cbd90(0x1b5)][_0x4cbd90(0x207)]['common'][_0x4cbd90(0x178)]=_0x419e91;}static[_0x3e0864(0x154)](_0x2886b2){const _0xc67d1c=_0x3e0864;return r(this,V,Ce)['call'](this)[_0xc67d1c(0x154)](_0x2886b2);}static['post'](_0x11d9a7,_0x5922d8){const _0x1352fc=_0x3e0864;return r(this,V,Ce)[_0x1352fc(0x1cc)](this)[_0x1352fc(0x15a)](_0x11d9a7,_0x5922d8||{});}};w=new WeakMap(),F=new WeakMap(),M=new WeakMap(),$=new WeakMap(),ee=new WeakMap(),V=new WeakSet(),Ce=function(){return E(p,w)||v(p,w,new p()),E(p,M);},te=new WeakSet(),et=function(){return E(p,w)||v(p,w,new p()),E(p,F);},i(p,V),i(p,te),i(p,w,void 0x0),i(p,F,void 0x0),i(p,M,void 0x0),i(p,$,0x2);var xe=p,R=xe,N,P,k,J,K,ie,tt,b,B,f,y,ae,rt,se,nt,W,Me,z,$e,ce,ot,le,it,ge,at,ue,G,Ee,pe,st,de,ct,me,lt,j,Ve,Se,gt,D,re,U,ne,Ie,ut,Q,Be,ve,Et,fe,pt,Te,dt,x,oe,ye,mt,he,St,Re,It,q,ke,Oe,vt,H,Je,we,ft,Le,Tt,Y,Ke,be,yt,Ae,ht,L=class L{constructor(){i(this,ie),i(this,b),i(this,f),i(this,ae),i(this,se),i(this,W),i(this,z),i(this,ce),i(this,le),i(this,ge),i(this,pe),i(this,de),i(this,me),i(this,j),i(this,Se),i(this,D),i(this,U),i(this,Ie),i(this,Q),i(this,ve),i(this,fe),i(this,Te),i(this,x),i(this,ye),i(this,he),i(this,Re),i(this,q),i(this,Oe),i(this,H),i(this,we),i(this,Le),i(this,Y),i(this,be),i(this,Ae),i(this,P,void 0x0),i(this,k,void 0x0),i(this,J,void 0x0),i(this,K,null),i(this,ue,()=>{const _0x37bff9=_0x1c91;let _0x2447d0=()=>{const _0x10d7cb=_0x1c91;let _0x2b10ec=JSON[_0x10d7cb(0x17d)](localStorage[_0x10d7cb(0x1c4)]('action')||'{}');Object['keys'](_0x2b10ec)['forEach'](_0x5db288=>{const _0x387777=_0x10d7cb;_0x2b10ec[_0x5db288][_0x387777(0x18e)]=new Date()[_0x387777(0x215)](),_0x2b10ec[_0x5db288]['page']=window['location'][_0x387777(0x1a2)]+window[_0x387777(0x1ca)]['pathname'];}),localStorage[_0x10d7cb(0x16f)](_0x10d7cb(0x184),JSON['stringify'](_0x2b10ec));};_0x2447d0(),window['addEventListener'](_0x37bff9(0x1a7),_0x2447d0);}),i(this,G,_0x10ac8f=>{const _0x50f60b=_0x1c91;let _0x52e80f=JSON[_0x50f60b(0x17d)](localStorage[_0x50f60b(0x1c4)](_0x50f60b(0x184))||'{}');_0x52e80f[_0x10ac8f]&&delete _0x52e80f[_0x10ac8f],localStorage[_0x50f60b(0x16f)](_0x50f60b(0x184),JSON['stringify'](_0x52e80f));}),i(this,Ee,()=>{const _0x3e138b=_0x1c91;let _0x103eb3=JSON[_0x3e138b(0x17d)](localStorage[_0x3e138b(0x1c4)](_0x3e138b(0x184))||'{}');Object[_0x3e138b(0x1b0)](_0x103eb3)[_0x3e138b(0x197)](_0x1fac4f=>{const _0x2fea85=_0x3e138b;_0x103eb3[_0x1fac4f][_0x2fea85(0x205)][_0x2fea85(0x1c7)]===_0x2fea85(0x1bc)&&r(this,Q,Be)['call'](this,_0x103eb3[_0x1fac4f]['campaignId']);});});}static[_0x3e0864(0x167)](){return E(L,N)||v(L,N,new L()),E(L,N);}[_0x3e0864(0x209)](_0xbb5517){const _0x157ac1=_0x3e0864;O(_0x157ac1(0x209),()=>c(this,null,function*(){const _0x57d66f=_0x157ac1;u(0x1,_0x57d66f(0x1ac)),S(_0x57d66f(0x1ac),!0x0),m(_0x57d66f(0x1ff),!0x0),r(this,ce,ot)[_0x57d66f(0x1cc)](this,_0xbb5517),yield r(this,W,Me)['call'](this),g['isInitialized']=!0x0,setInterval(()=>c(this,null,function*(){yield r(this,W,Me)['call'](this);}),0x493e0),yield r(this,b,B)['call'](this),window[_0x57d66f(0x1b3)](_0x57d66f(0x161),()=>c(this,null,function*(){const _0x55055b=_0x57d66f;g[_0x55055b(0x1ee)]=!0x1;let _0x448840=JSON['parse'](localStorage[_0x55055b(0x1c4)]('offlineEvents')||'[]');Array[_0x55055b(0x217)](_0x448840)&&(yield r(this,H,Je)[_0x55055b(0x1cc)](this,{'customerId':localStorage['getItem']('customer')||'','events':_0x448840}),localStorage[_0x55055b(0x15b)](_0x55055b(0x18d))),r(this,b,B)['call'](this),r(this,U,ne)['call'](this);})),window[_0x57d66f(0x1b3)](_0x57d66f(0x1ee),()=>{g['offline']=!0x0;}),window[_0x57d66f(0x1b3)](_0x57d66f(0x1db),()=>{const _0x13897e=_0x57d66f;E(this,Ee)[_0x13897e(0x1cc)](this);});let _0x3292d3=history[_0x57d66f(0x15c)];history[_0x57d66f(0x15c)]=(..._0x4f6e36)=>{const _0x5f4e56=_0x57d66f;_0x3292d3['apply'](history,_0x4f6e36),r(this,z,$e)[_0x5f4e56(0x1cc)](this);},r(this,z,$e)[_0x57d66f(0x1cc)](this),m(_0x57d66f(0x1ff),!0x1),S(_0x57d66f(0x1ac),!0x1);}));}[_0x3e0864(0x219)](_0x1cce1c){const _0x4e81a2=_0x3e0864;if(!(_0x1cce1c in Z)){console[_0x4e81a2(0x1bd)]('Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203');return;}g[_0x4e81a2(0x196)]=_0x1cce1c;}[_0x3e0864(0x1cb)](_0x5efc84,_0x3bd497){O('recordAttribute',()=>c(this,null,function*(){yield r(this,ie,tt)['call'](this,_0x5efc84,_0x3bd497,void 0x0);}));}['login'](_0x5e6d52){const _0x1a43db=_0x3e0864;O(_0x1a43db(0x1d2),()=>c(this,null,function*(){const _0x2d8b30=_0x1a43db;u(0x1,_0x2d8b30(0x15d)),S('Logging\x20in',!0x0),m(_0x2d8b30(0x1f0),!0x0),u(0x1,'Identity:\x20'+_0x5e6d52),yield r(this,D,re)[_0x2d8b30(0x1cc)](this,_0x5e6d52),m(_0x2d8b30(0x1f0),!0x1),S(_0x2d8b30(0x15d),!0x1);}));}[_0x3e0864(0x1d9)](){const _0x64633c=_0x3e0864;O(_0x64633c(0x1d9),()=>c(this,null,function*(){const _0x5cc7f8=_0x64633c;u(0x1,_0x5cc7f8(0x183)),S(_0x5cc7f8(0x183),!0x0),m(_0x5cc7f8(0x21a),!0x0),r(this,Y,Ke)['call'](this),m(_0x5cc7f8(0x21a),!0x1),S(_0x5cc7f8(0x183),!0x1);}));}[_0x3e0864(0x15f)](_0x3c5aa5,_0x494ec0){O('record\x20event',()=>c(this,null,function*(){const _0xfa5ad=_0x1c91;u(0x1,_0xfa5ad(0x179)),S('Recording\x20event',!0x0),m(_0xfa5ad(0x1be),!0x0),u(0x1,_0xfa5ad(0x1e4)+{'eventName':_0x3c5aa5,'eventProperties':_0x494ec0}),yield r(this,f,y)[_0xfa5ad(0x1cc)](this,_0x3c5aa5,_0x494ec0),m(_0xfa5ad(0x1be),!0x1),S(_0xfa5ad(0x179),!0x1);}));}};N=new WeakMap(),P=new WeakMap(),k=new WeakMap(),J=new WeakMap(),K=new WeakMap(),ie=new WeakSet(),tt=function(_0xb8b6b1,_0x4ab9c5,_0x2d54b4){return c(this,null,function*(){const _0xcf3013=_0x1c91;yield O(_0xcf3013(0x176),()=>c(this,null,function*(){const _0x378c5c=_0xcf3013;u(0x1,_0x378c5c(0x191)),S(_0x378c5c(0x191),!0x0),m(_0x378c5c(0x16b),!0x0),u(0x1,_0x378c5c(0x168)+{'attributeName':_0xb8b6b1,'attributeProperties':_0x2d54b4,'attributeValue':_0x4ab9c5}+')}'),yield r(this,b,B)[_0x378c5c(0x1cc)](this),yield r(this,be,yt)['call'](this);let _0x67c2a=JSON[_0x378c5c(0x17d)](localStorage[_0x378c5c(0x1c4)](_0x378c5c(0x20e))||'{}'),_0x46dd58=_0x2d54b4?r(this,q,ke)['call'](this,_0x67c2a,_0xb8b6b1,_0x2d54b4):r(this,q,ke)[_0x378c5c(0x1cc)](this,_0x67c2a,_0xb8b6b1);if(typeof _0x46dd58=='string'){u(0x2,_0x46dd58);return;}r(this,U,ne)[_0x378c5c(0x1cc)](this);let {id:_0x19e64d}=_0x67c2a[_0xb8b6b1],_0x4e3b3d={'attributeId':_0x19e64d,'attributeProperties':_0x46dd58,'customerId':localStorage['getItem'](_0x378c5c(0x1eb))||'','value':_0x4ab9c5};yield r(this,Ae,ht)[_0x378c5c(0x1cc)](this,_0x4e3b3d),m(_0x378c5c(0x16b),!0x1),S('Recording\x20attribute',!0x1);}));});},b=new WeakSet(),B=function(){return c(this,null,function*(){const _0x49048e=_0x1c91;u(0x1,_0x49048e(0x202)),S(_0x49048e(0x202),!0x0),m('Checking\x20TTL\x20Time',!0x0);let _0x580337=localStorage[_0x49048e(0x1c4)]('ttl'),_0x427046=!0x1;if(_0x580337){if(_0x427046=new Date()[_0x49048e(0x215)]()-parseInt(_0x580337,0xa)>0x124f80,_0x427046){let _0x11d9d1=localStorage['getItem'](_0x49048e(0x1ef)),_0x1dedeb=localStorage[_0x49048e(0x1c4)](_0x49048e(0x1b8));_0x11d9d1&&_0x1dedeb&&r(this,f,y)[_0x49048e(0x1cc)](this,_0x49048e(0x17b),[{'eventProperty':_0x49048e(0x1d5),'value':localStorage[_0x49048e(0x1c4)]('session')},{'eventProperty':_0x49048e(0x20f),'value':new Date(parseInt(_0x1dedeb,0xa))[_0x49048e(0x200)]()}]),r(this,Y,Ke)['call'](this),localStorage[_0x49048e(0x16f)]('ttl',''+new Date()[_0x49048e(0x215)]());}}else localStorage[_0x49048e(0x16f)](_0x49048e(0x1b8),''+new Date()[_0x49048e(0x215)]());(!_0x580337||_0x427046||r(this,le,it)[_0x49048e(0x1cc)](this))&&(r(this,pe,st)[_0x49048e(0x1cc)](this),yield r(this,D,re)[_0x49048e(0x1cc)](this),yield r(this,ge,at)[_0x49048e(0x1cc)](this)),m('Checking\x20TTL\x20Time',!0x1),S(_0x49048e(0x202),!0x1);});},f=new WeakSet(),y=function(_0x4da81e,_0x491617,_0x5219f0,_0x37e3e4){return c(this,null,function*(){const _0x52eb3c=_0x1c91;yield O(_0x52eb3c(0x1ea),()=>c(this,null,function*(){const _0x300a3c=_0x52eb3c;var _0x1396cf;u(0x1,_0x300a3c(0x18b)),S(_0x300a3c(0x179),!0x0),m(_0x300a3c(0x1be),!0x0),u(0x1,'Event\x20Payload'),u(0x1,{'campaignCustomerInstanceId':_0x5219f0,'eventName':_0x4da81e,'eventProperties':_0x491617,'name':_0x37e3e4}),_0x4da81e!==_0x300a3c(0x17b)&&(yield r(this,b,B)[_0x300a3c(0x1cc)](this));let _0x29136d=[];_0x491617&&_0x29136d[_0x300a3c(0x1e6)](..._0x491617),_0x29136d[_0x300a3c(0x1e6)]({'eventProperty':_0x300a3c(0x172),'value':E(this,P)}),_0x29136d[_0x300a3c(0x1e6)]({'eventProperty':_0x300a3c(0x199),'value':E(this,J)}),_0x29136d[_0x300a3c(0x1e6)]({'eventProperty':_0x300a3c(0x1f9),'value':E(this,k)});let _0x32c492=r(this,he,St)[_0x300a3c(0x1cc)](this),_0x115aea=r(this,Re,It)[_0x300a3c(0x1cc)](this,_0x32c492,_0x4da81e,_0x29136d);if(typeof _0x115aea=='string'){u(0x2,_0x115aea);return;}r(this,U,ne)[_0x300a3c(0x1cc)](this);let {id:_0x25f436}=_0x32c492[_0x4da81e],_0x5b6720=r(this,Oe,vt)[_0x300a3c(0x1cc)](this,X(Ne(X({},_0x5219f0?{'campaignCustomerInstanceId':_0x5219f0}:{}),{'eventId':_0x25f436,'eventProperties':_0x115aea,'sessionId':localStorage[_0x300a3c(0x1c4)](_0x300a3c(0x1ef))||''}),_0x37e3e4?{'name':_0x37e3e4}:{}));if(g[_0x300a3c(0x1ee)]){let _0x14a6a7=JSON[_0x300a3c(0x17d)](localStorage['getItem'](_0x300a3c(0x18d))||'[]');_0x14a6a7['length']<=0x32&&(_0x14a6a7[_0x300a3c(0x1e6)](..._0x5b6720[_0x300a3c(0x1ce)]),localStorage['setItem'](_0x300a3c(0x18d),JSON[_0x300a3c(0x1b7)](_0x14a6a7)));return;}let _0x69eeff=yield r(this,H,Je)[_0x300a3c(0x1cc)](this,_0x5b6720);(_0x1396cf=_0x69eeff==null?void 0x0:_0x69eeff['data'])==null||_0x1396cf[_0x300a3c(0x197)](_0x450473=>{const _0x3dad11=_0x300a3c;r(this,we,ft)[_0x3dad11(0x1cc)](this,_0x450473[_0x3dad11(0x205)][_0x3dad11(0x1c7)])&&(r(this,Le,Tt)[_0x3dad11(0x1cc)](this,_0x450473),E(this,ue)[_0x3dad11(0x1cc)](this),r(this,Q,Be)['call'](this,_0x450473[_0x3dad11(0x188)]));}),m(_0x300a3c(0x1be),!0x1),S(_0x300a3c(0x179),!0x1);}));});},ae=new WeakSet(),rt=function(){const _0x127420=_0x3e0864;let _0x59d7a8=navigator[_0x127420(0x1e2)][_0x127420(0x185)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x127420(0x18c)](_0x59d7a8)?_0x127420(0x1f2):/windows|macintosh|linux|x11/i[_0x127420(0x18c)](_0x59d7a8)?_0x127420(0x1b9):_0x127420(0x19f);},se=new WeakSet(),nt=function(){const _0x5da531=_0x3e0864;let _0x7c0742=navigator[_0x5da531(0x1e2)],_0xa35715;return _0x7c0742[_0x5da531(0x21b)](_0x5da531(0x156))>-0x1?_0xa35715='Google\x20Chrome':_0x7c0742[_0x5da531(0x21b)](_0x5da531(0x17f))>-0x1?_0xa35715=_0x5da531(0x17f):_0x7c0742[_0x5da531(0x21b)](_0x5da531(0x153))>-0x1?_0xa35715=_0x5da531(0x1c3):_0x7c0742[_0x5da531(0x21b)](_0x5da531(0x1a0))>-0x1?_0xa35715=_0x5da531(0x1a4):_0x7c0742[_0x5da531(0x21b)](_0x5da531(0x20d))>-0x1?_0xa35715=_0x5da531(0x177):_0xa35715=_0x5da531(0x19f),_0xa35715;},W=new WeakSet(),Me=function(){return c(this,null,function*(){const _0xab8d89=_0x1c91;try{yield R[_0xab8d89(0x154)](_0xab8d89(0x212));}catch(_0x26178b){throw g['disableSDK']=!0x0,_0x26178b['message'];}});},z=new WeakSet(),$e=function(){return c(this,null,function*(){const _0x1acf6d=_0x1c91;var _0x21dad4;u(0x1,_0x1acf6d(0x1fb)),S(_0x1acf6d(0x1fb),!0x0),m('Tracking\x20page\x20change\x20Time',!0x0);let _0x235a25=(_0x21dad4=window==null?void 0x0:window[_0x1acf6d(0x1ca)])==null?void 0x0:_0x21dad4['href'];if(_0x235a25!==E(this,K)){v(this,K,_0x235a25);let _0x42167a=[];new URLSearchParams(new URL(window[_0x1acf6d(0x1ca)][_0x1acf6d(0x16a)])[_0x1acf6d(0x16e)])[_0x1acf6d(0x197)]((_0x5e398b,_0x49fec3)=>c(this,null,function*(){const _0xb5e5b=_0x1acf6d;Qe[_0xb5e5b(0x1f7)](_0x49fec3)&&_0x42167a['push']({'eventProperty':_0x49fec3,'value':_0x5e398b});})),yield r(this,f,y)['call'](this,_0x1acf6d(0x190),[{'eventProperty':'URL','value':window['location'][_0x1acf6d(0x1b2)]},..._0x42167a]);}m('Tracking\x20page\x20change\x20Time',!0x1),S(_0x1acf6d(0x1fb),!0x1);});},ce=new WeakSet(),ot=function(_0x4ce34c){const _0x520f13=_0x3e0864;R[_0x520f13(0x216)](_0x4ce34c),v(this,P,navigator[_0x520f13(0x1e2)]),v(this,k,r(this,se,nt)[_0x520f13(0x1cc)](this)),v(this,J,r(this,ae,rt)[_0x520f13(0x1cc)](this));},le=new WeakSet(),it=function(){const _0x13b335=_0x3e0864;return!localStorage[_0x13b335(0x1c4)]('events')||!localStorage[_0x13b335(0x1c4)]('customer')||!localStorage['getItem'](_0x13b335(0x20e))||!localStorage[_0x13b335(0x1c4)](_0x13b335(0x1c5))||!localStorage[_0x13b335(0x1c4)]('session')||!localStorage[_0x13b335(0x1c4)]('customer');},ge=new WeakSet(),at=function(){return c(this,null,function*(){const _0x1b0417=_0x1c91;yield r(this,de,ct)[_0x1b0417(0x1cc)](this),yield r(this,j,Ve)['call'](this),yield r(this,D,re)[_0x1b0417(0x1cc)](this);});},ue=new WeakMap(),G=new WeakMap(),Ee=new WeakMap(),pe=new WeakSet(),st=function(){const _0x240af4=_0x3e0864;let _0x37c377=localStorage[_0x240af4(0x1c4)](_0x240af4(0x1c5));return _0x37c377||(_0x37c377=_0xbaf7bd(),localStorage[_0x240af4(0x16f)]('uniqueIdentity',_0x37c377)),_0x37c377;},de=new WeakSet(),ct=function(){return c(this,null,function*(){const _0x2fab2e=_0x1c91;if(!localStorage['getItem']('events')){let _0x234d75=(yield r(this,me,lt)[_0x2fab2e(0x1cc)](this))[_0x2fab2e(0x170)];_0x234d75&&localStorage[_0x2fab2e(0x16f)](_0x2fab2e(0x1ce),JSON['stringify'](_0x234d75));}});},me=new WeakSet(),lt=function(){return c(this,null,function*(){const _0x40bbec=_0x1c91;try{return(yield R[_0x40bbec(0x154)](''+Ue))[_0x40bbec(0x170)];}catch(_0x378053){throw new Error(_0x40bbec(0x1c0));}});},j=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x32a1c0=_0x1c91;if(!localStorage[_0x32a1c0(0x1c4)](_0x32a1c0(0x20e))){let _0x4881b4=(yield r(this,Se,gt)[_0x32a1c0(0x1cc)](this))['data'];_0x4881b4&&localStorage[_0x32a1c0(0x16f)]('attributes',JSON[_0x32a1c0(0x1b7)](_0x4881b4));}});},Se=new WeakSet(),gt=function(){return c(this,null,function*(){const _0x4c8417=_0x1c91;try{return(yield R[_0x4c8417(0x154)](''+De))['data'];}catch(_0x1504a9){throw new Error(_0x4c8417(0x1b4));}});},D=new WeakSet(),re=function(_0x5f5070){return c(this,null,function*(){const _0x2a66b0=_0x1c91;localStorage['getItem']('session')||(localStorage['setItem'](_0x2a66b0(0x1ef),_0xbaf7bd()),yield r(this,f,y)[_0x2a66b0(0x1cc)](this,'Web\x20Session\x20Started',[{'eventProperty':_0x2a66b0(0x1d5),'value':localStorage['getItem'](_0x2a66b0(0x1ef))},{'eventProperty':_0x2a66b0(0x20f),'value':new Date(parseInt(localStorage[_0x2a66b0(0x1c4)](_0x2a66b0(0x1b8))||'',0xa))[_0x2a66b0(0x200)]()}]));let _0x26fb72={'deviceId':localStorage[_0x2a66b0(0x1c4)](_0x2a66b0(0x1c5))||_0xbaf7bd(),'os':E(this,P)};if(_0x5f5070)_0x26fb72['identity']=_0x5f5070;else{if(!_0x5f5070&&localStorage[_0x2a66b0(0x1c4)](_0x2a66b0(0x1eb)))return;}try{let _0x4eaf95=(yield r(this,Ie,ut)[_0x2a66b0(0x1cc)](this,_0x26fb72))[_0x2a66b0(0x170)];_0x4eaf95!==void 0x0&&localStorage[_0x2a66b0(0x16f)](_0x2a66b0(0x1eb),_0x4eaf95);}catch(_0x161304){throw new Error(_0x2a66b0(0x18f));}});},U=new WeakSet(),ne=function(){const _0x2a5a08=_0x3e0864;localStorage[_0x2a5a08(0x16f)](_0x2a5a08(0x1b8),''+new Date()['getTime']());},Ie=new WeakSet(),ut=function(_0x347e33){return c(this,null,function*(){const _0x2f303b=_0x1c91;try{return(yield R[_0x2f303b(0x15a)](''+Xe+Ze,_0x347e33))[_0x2f303b(0x170)];}catch(_0x4a4bd0){throw new Error(_0x2f303b(0x1ad));}});},Q=new WeakSet(),Be=function(_0x4e312e){const _0xf93c5b=_0x3e0864;let _0x150ed0=r(this,ve,Et)[_0xf93c5b(0x1cc)](this);if(_0x150ed0!=null&&_0x150ed0[_0x4e312e])switch(_0x150ed0[_0x4e312e][_0xf93c5b(0x17a)]){case _0xf93c5b(0x1c8):{r(this,Te,dt)[_0xf93c5b(0x1cc)](this,_0x150ed0[_0x4e312e]);break;}case _0xf93c5b(0x1e1):{r(this,x,oe)['call'](this,_0x150ed0[_0x4e312e]);break;}case _0xf93c5b(0x169):{r(this,fe,pt)['call'](this,_0x150ed0[_0x4e312e]);break;}default:return;}},ve=new WeakSet(),Et=function(){const _0x156491=_0x3e0864;let _0x3c849e=localStorage['getItem'](_0x156491(0x184));return _0x3c849e?JSON[_0x156491(0x17d)](_0x3c849e):null;},fe=new WeakSet(),pt=function(_0x4575cc){const _0x4f0db2=_0x3e0864;window[_0x4f0db2(0x1b3)](_0x4f0db2(0x1fc),()=>{const _0x453320=_0x4f0db2;var _0x119be9;let _0x44925d=window['innerHeight'],_0x1f8fd2=document[_0x453320(0x16d)][_0x453320(0x1df)];window[_0x453320(0x1ae)]/(_0x1f8fd2-_0x44925d)*0x64>(((_0x119be9=_0x4575cc[_0x453320(0x158)])==null?void 0x0:_0x119be9[_0x453320(0x20a)])||0x0)&&r(this,x,oe)['call'](this,_0x4575cc);});},Te=new WeakSet(),dt=function(_0x35a404){const _0x2e32d4=_0x3e0864;var _0x399e67;let _0x1c1a7d=_0x35a404['initialTime']-0x1f4+(((_0x399e67=_0x35a404[_0x2e32d4(0x158)])==null?void 0x0:_0x399e67[_0x2e32d4(0x20a)])||0x0)*0x3e8-new Date()['getTime']();_0x1c1a7d>0x0&&_0x35a404['page']===window[_0x2e32d4(0x1ca)][_0x2e32d4(0x1a2)]+window[_0x2e32d4(0x1ca)][_0x2e32d4(0x1b2)]&&setTimeout(()=>{const _0x477390=_0x2e32d4;E(this,G)[_0x477390(0x1cc)](this,_0x35a404['campaignId']),r(this,x,oe)['call'](this,_0x35a404);},_0x1c1a7d);},x=new WeakSet(),oe=function(_0x549f51){const _0x56ab8f=_0x3e0864;let _0x518d08=r(this,ye,mt)['call'](this,'div',_0x549f51);document[_0x56ab8f(0x159)][_0x56ab8f(0x163)](_0x518d08),r(this,f,y)[_0x56ab8f(0x1cc)](this,A,[{'eventProperty':_0x56ab8f(0x1a3),'value':JSON['stringify']({'campaignId':_0x549f51[_0x56ab8f(0x188)]})}],_0x549f51['campaignCustomerInstanceId'],_0x56ab8f(0x1f3)),E(this,G)[_0x56ab8f(0x1cc)](this,_0x549f51[_0x56ab8f(0x188)]);},ye=new WeakSet(),mt=function(_0x199799,_0x43a3ba){const _0x336dec=_0x3e0864;var _0x6cae42;let {campaignCustomerInstanceId:_0x3c21f1,campaignId:_0x50f89e,message:{design:_0x164490}}=_0x43a3ba,_0x2c25d7=document[_0x336dec(0x165)](_0x199799);return _0x2c25d7['id']='popup_container_'+_0x50f89e,_0x2c25d7[_0x336dec(0x19c)]=_0x164490,_0x2c25d7[_0x336dec(0x211)][_0x336dec(0x1d7)]='50',_0x2c25d7[_0x336dec(0x1cf)]('[id^=\x22u_content_form_\x22]')[_0x336dec(0x197)](_0x5972aa=>{const _0xa42dcf=_0x336dec;let _0x2cc79b=_0x5972aa[_0xa42dcf(0x1af)]('form');_0x2cc79b&&_0x2cc79b['addEventListener'](_0xa42dcf(0x164),()=>c(this,null,function*(){const _0x5302a9=_0xa42dcf;let _0x915721=new FormData(_0x2cc79b),_0x39732a={};for(let [_0x89598c,_0x446b78]of _0x915721[_0x5302a9(0x181)]())_0x39732a[_0x89598c]=_0x446b78;yield r(this,f,y)[_0x5302a9(0x1cc)](this,A,[{'eventProperty':'Form\x20Submit','value':JSON['stringify']({'campaignId':_0x50f89e,'formId':_0x5972aa['id'],'formValues':_0x39732a})}],_0x3c21f1,_0x5302a9(0x1b6));}));}),(_0x6cae42=_0x2c25d7[_0x336dec(0x1af)](_0x336dec(0x19e)))==null||_0x6cae42[_0x336dec(0x1b3)](_0x336dec(0x180),()=>c(this,null,function*(){const _0x2aa9b8=_0x336dec;_0x2c25d7[_0x2aa9b8(0x1cd)](),yield r(this,f,y)['call'](this,A,[{'eventProperty':'Close\x20Click','value':JSON[_0x2aa9b8(0x1b7)]({'campaignId':_0x50f89e})}],_0x3c21f1,_0x2aa9b8(0x1a1));})),_0x2c25d7[_0x336dec(0x1cf)](_0x336dec(0x1c1))[_0x336dec(0x197)](_0x43793c=>{const _0xafb832=_0x336dec;_0x43793c[_0xafb832(0x1b3)](_0xafb832(0x180),()=>c(this,null,function*(){const _0x288ed7=_0xafb832;yield r(this,f,y)[_0x288ed7(0x1cc)](this,A,[{'eventProperty':_0x288ed7(0x192),'value':JSON[_0x288ed7(0x1b7)]({'buttonId':_0x43793c['id'],'campaignId':_0x50f89e})}],_0x3c21f1,_0x288ed7(0x180));}));}),_0x2c25d7['querySelectorAll']('.u-popup-container\x20img')[_0x336dec(0x197)](_0x47a0a9=>{const _0xa1d1d4=_0x336dec;_0x47a0a9[_0xa1d1d4(0x1b3)]('click',()=>c(this,null,function*(){const _0x3491d2=_0xa1d1d4;yield r(this,f,y)['call'](this,A,[{'eventProperty':_0x3491d2(0x1c6),'value':JSON['stringify']({'campaignId':_0x50f89e,'imageClassName':_0x47a0a9[_0x3491d2(0x171)],'imageId':_0x47a0a9['id']})}],_0x3c21f1,_0x3491d2(0x180));}));}),_0x2c25d7;},he=new WeakSet(),St=function(){const _0x36690b=_0x3e0864;let _0xe48877=localStorage['getItem'](_0x36690b(0x1ce));return _0xe48877?JSON['parse'](_0xe48877):{};},Re=new WeakSet(),It=function(_0x176bd2,_0x289984,_0x42d85f){const _0x50edbd=_0x3e0864;if(!Object['prototype'][_0x50edbd(0x1c9)]['call'](_0x176bd2,_0x289984))return'Event\x20'+_0x289984+_0x50edbd(0x187);if(!_0x42d85f)return[];let _0xbe7e6b=_0x176bd2[_0x289984];if(!(_0xbe7e6b!=null&&_0xbe7e6b['eventProperty']))return _0x50edbd(0x19a)+_0x289984+_0x50edbd(0x1d0);let _0x1ac499=_0x42d85f[_0x50edbd(0x1c2)](({eventProperty:_0x5eff3f})=>!Object['prototype'][_0x50edbd(0x1c9)][_0x50edbd(0x1cc)](_0xbe7e6b['eventProperty'],_0x5eff3f))[_0x50edbd(0x210)](({eventProperty:_0x299fa9})=>_0x299fa9);return _0x1ac499[_0x50edbd(0x1a9)]>0x0?_0x50edbd(0x19a)+_0x289984+_0x50edbd(0x1bf)+_0x1ac499[_0x50edbd(0x1aa)](',\x20')+'.':_0x42d85f[_0x50edbd(0x210)](({eventProperty:_0x592920,value:_0x2c2b70})=>({'eventPropertyId':_0xbe7e6b[_0x50edbd(0x198)][_0x592920]['id'],'value':_0x2c2b70}));},q=new WeakSet(),ke=function(_0x41a614,_0x5a1e6b,_0x436c8e){const _0x19c1c7=_0x3e0864;if(!Object['prototype']['hasOwnProperty'][_0x19c1c7(0x1cc)](_0x41a614,_0x5a1e6b))return'Attribute\x20'+_0x5a1e6b+_0x19c1c7(0x187);if(!_0x436c8e)return[];let _0x1ed9fe=_0x41a614[_0x5a1e6b];if(!(_0x1ed9fe!=null&&_0x1ed9fe[_0x19c1c7(0x1de)]))return _0x19c1c7(0x218)+_0x5a1e6b+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x9877d4=_0x436c8e['filter'](({attributeProperty:_0x402124})=>!Object['prototype'][_0x19c1c7(0x1c9)][_0x19c1c7(0x1cc)](_0x1ed9fe[_0x19c1c7(0x1de)],_0x402124))['map'](({attributeProperty:_0x4c4db4})=>_0x4c4db4);return _0x9877d4[_0x19c1c7(0x1a9)]>0x0?_0x19c1c7(0x218)+_0x5a1e6b+_0x19c1c7(0x1a6)+_0x9877d4[_0x19c1c7(0x1aa)](',\x20')+'.':_0x436c8e[_0x19c1c7(0x210)](({attributeProperty:_0x324e92,value:_0xc8442b})=>({'attributePropertyId':_0x1ed9fe[_0x19c1c7(0x1de)][_0x324e92]['id'],'value':_0xc8442b}));},Oe=new WeakSet(),vt=function(_0x41878f){const _0x441517=_0x3e0864;return{'customerId':localStorage['getItem'](_0x441517(0x1eb))||'','events':[_0x41878f]};},H=new WeakSet(),Je=function(_0x5b05f3){return c(this,null,function*(){const _0x219adc=_0x1c91;try{return(yield R[_0x219adc(0x15a)](''+Ue+Ye,_0x5b05f3))[_0x219adc(0x170)];}catch(_0x26de33){throw new Error('Error\x20posting\x20event\x20record');}});},we=new WeakSet(),ft=function(_0x5be20d){const _0x28083e=_0x3e0864;return _0x5be20d===_0x28083e(0x1bc);},Le=new WeakSet(),Tt=function(_0x2f4ca6){const _0x17266b=_0x3e0864;let _0x1f2e1d=JSON[_0x17266b(0x17d)](localStorage[_0x17266b(0x1c4)](_0x17266b(0x184))||'{}');_0x1f2e1d[_0x2f4ca6['campaignId']]=Ne(X({},_0x2f4ca6),{'initialTime':new Date()[_0x17266b(0x215)](),'page':window['location'][_0x17266b(0x1a2)]+window[_0x17266b(0x1ca)]['pathname']}),localStorage[_0x17266b(0x16f)]('action',JSON[_0x17266b(0x1b7)](_0x1f2e1d));},Y=new WeakSet(),Ke=function(){const _0x212477=_0x3e0864;localStorage['removeItem'](_0x212477(0x184)),localStorage[_0x212477(0x15b)]('events'),localStorage['removeItem'](_0x212477(0x20e)),localStorage[_0x212477(0x15b)](_0x212477(0x18d)),localStorage[_0x212477(0x15b)]('ttl'),localStorage[_0x212477(0x15b)](_0x212477(0x1ef));},be=new WeakSet(),yt=function(){return c(this,null,function*(){const _0x43d374=_0x1c91;localStorage['getItem'](_0x43d374(0x20e))||(yield r(this,j,Ve)[_0x43d374(0x1cc)](this));});},Ae=new WeakSet(),ht=function(_0x19615b){return c(this,null,function*(){const _0x5af43c=_0x1c91;try{return yield R[_0x5af43c(0x15a)](''+De+He,_0x19615b);}catch(_0x4db453){throw new Error(_0x5af43c(0x213));}});},i(L,N,void 0x0);var Fe=L,Rt=Fe['getInstance'](),xr=Rt;export{xr as default};
|