mergn-webapp-sdk 1.0.7 → 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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2f60f2=_0x1b30;(function(_0x1add87,_0x3fb2b4){const _0x420fab=_0x1b30,_0x59f9a8=_0x1add87();while(!![]){try{const _0x29d721=-parseInt(_0x420fab(0x113))/0x1+parseInt(_0x420fab(0x155))/0x2+parseInt(_0x420fab(0xea))/0x3*(-parseInt(_0x420fab(0x128))/0x4)+-parseInt(_0x420fab(0x171))/0x5*(parseInt(_0x420fab(0x15c))/0x6)+-parseInt(_0x420fab(0xf6))/0x7+parseInt(_0x420fab(0x131))/0x8+parseInt(_0x420fab(0x158))/0x9;if(_0x29d721===_0x3fb2b4)break;else _0x59f9a8['push'](_0x59f9a8['shift']());}catch(_0x54cdab){_0x59f9a8['push'](_0x59f9a8['shift']());}}}(_0x1507,0x8658b));function _0x1b30(_0x2b1896,_0x341edc){const _0x150761=_0x1507();return _0x1b30=function(_0x1b30f5,_0x46087d){_0x1b30f5=_0x1b30f5-0xe8;let _0x3a4d1a=_0x150761[_0x1b30f5];return _0x3a4d1a;},_0x1b30(_0x2b1896,_0x341edc);}var Ct=Object[_0x2f60f2(0x14d)],_=Object[_0x2f60f2(0x12e)],_t=Object[_0x2f60f2(0x1ae)],Ft=Object[_0x2f60f2(0x127)],Mt=Object['getOwnPropertyDescriptors'],$t=Object[_0x2f60f2(0x140)],ze=Object[_0x2f60f2(0x18a)],Vt=Object['getPrototypeOf'],je=Object['prototype'][_0x2f60f2(0x121)],Bt=Object[_0x2f60f2(0x1aa)][_0x2f60f2(0x173)],Ge=(_0x4ecff6,_0x22d7d1,_0x48beb9)=>_0x22d7d1 in _0x4ecff6?_(_0x4ecff6,_0x22d7d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48beb9}):_0x4ecff6[_0x22d7d1]=_0x48beb9,Z=(_0x15d0cb,_0x140a37)=>{const _0xbc549b=_0x2f60f2;for(var _0x1ecae5 in _0x140a37||(_0x140a37={}))je[_0xbc549b(0x1a9)](_0x140a37,_0x1ecae5)&&Ge(_0x15d0cb,_0x1ecae5,_0x140a37[_0x1ecae5]);if(ze){for(var _0x1ecae5 of ze(_0x140a37))Bt[_0xbc549b(0x1a9)](_0x140a37,_0x1ecae5)&&Ge(_0x15d0cb,_0x1ecae5,_0x140a37[_0x1ecae5]);}return _0x15d0cb;},De=(_0x5465b8,_0x3a0761)=>_t(_0x5465b8,Mt(_0x3a0761)),kt=(_0x55d02e,_0x317600)=>{for(var _0x39dbd3 in _0x317600)_(_0x55d02e,_0x39dbd3,{'get':_0x317600[_0x39dbd3],'enumerable':!0x0});},Qe=(_0x2b5f4a,_0x28b2a8,_0x32ebf0,_0x5aec0c)=>{const _0x2462e9=_0x2f60f2;if(_0x28b2a8&&typeof _0x28b2a8==_0x2462e9(0x1ad)||typeof _0x28b2a8==_0x2462e9(0x17f)){for(let _0x1e6eae of $t(_0x28b2a8))!je[_0x2462e9(0x1a9)](_0x2b5f4a,_0x1e6eae)&&_0x1e6eae!==_0x32ebf0&&_(_0x2b5f4a,_0x1e6eae,{'get':()=>_0x28b2a8[_0x1e6eae],'enumerable':!(_0x5aec0c=Ft(_0x28b2a8,_0x1e6eae))||_0x5aec0c[_0x2462e9(0x1ac)]});}return _0x2b5f4a;},qe=(_0x22a390,_0x48899b,_0x1491ff)=>(_0x1491ff=_0x22a390!=null?Ct(Vt(_0x22a390)):{},Qe(_0x48899b||!_0x22a390||!_0x22a390[_0x2f60f2(0x1ab)]?_(_0x1491ff,_0x2f60f2(0x177),{'value':_0x22a390,'enumerable':!0x0}):_0x1491ff,_0x22a390)),Jt=_0x2783cc=>Qe(_({},'__esModule',{'value':!0x0}),_0x2783cc),Ue=(_0x4aad35,_0x541a51,_0x44b1e1)=>{if(!_0x541a51['has'](_0x4aad35))throw TypeError('Cannot\x20'+_0x44b1e1);},E=(_0x1e56d7,_0x1a5787,_0x3a4976)=>(Ue(_0x1e56d7,_0x1a5787,_0x2f60f2(0x14b)),_0x3a4976?_0x3a4976['call'](_0x1e56d7):_0x1a5787[_0x2f60f2(0x12c)](_0x1e56d7)),i=(_0x38af7e,_0x5c5539,_0x51997c)=>{const _0x17ed2e=_0x2f60f2;if(_0x5c5539['has'](_0x38af7e))throw TypeError(_0x17ed2e(0x11b));_0x5c5539 instanceof WeakSet?_0x5c5539[_0x17ed2e(0x19d)](_0x38af7e):_0x5c5539[_0x17ed2e(0x142)](_0x38af7e,_0x51997c);},v=(_0x1f7a9b,_0x4dade6,_0x59d886,_0x49a347)=>(Ue(_0x1f7a9b,_0x4dade6,_0x2f60f2(0xf2)),_0x49a347?_0x49a347[_0x2f60f2(0x1a9)](_0x1f7a9b,_0x59d886):_0x4dade6[_0x2f60f2(0x142)](_0x1f7a9b,_0x59d886),_0x59d886),He=(_0x42b2df,_0x5cbe2a,_0x2f2f4f,_0x3db781)=>({set '_'(_0x432fd5){v(_0x42b2df,_0x5cbe2a,_0x432fd5,_0x2f2f4f);},get '_'(){return E(_0x42b2df,_0x5cbe2a,_0x3db781);}}),n=(_0x13728d,_0x1d62e0,_0x1f49d5)=>(Ue(_0x13728d,_0x1d62e0,'access\x20private\x20method'),_0x1f49d5),c=(_0x416880,_0x4d15fb,_0x806546)=>new Promise((_0x156ecc,_0x10fce6)=>{const _0x1fa2b3=_0x2f60f2;var _0x27b8c4=_0x439660=>{const _0x407da0=_0x1b30;try{_0xb9aafd(_0x806546[_0x407da0(0x116)](_0x439660));}catch(_0x5c641e){_0x10fce6(_0x5c641e);}},_0x4d46e8=_0x11ab5b=>{const _0x5b8e6d=_0x1b30;try{_0xb9aafd(_0x806546[_0x5b8e6d(0x138)](_0x11ab5b));}catch(_0x57e695){_0x10fce6(_0x57e695);}},_0xb9aafd=_0x275cab=>_0x275cab[_0x1fa2b3(0x196)]?_0x156ecc(_0x275cab[_0x1fa2b3(0x184)]):Promise['resolve'](_0x275cab[_0x1fa2b3(0x184)])['then'](_0x27b8c4,_0x4d46e8);_0xb9aafd((_0x806546=_0x806546['apply'](_0x416880,_0x4d15fb))[_0x1fa2b3(0x116)]());}),zt={};function _0x1507(){const _0x437f8e=['call','prototype','__esModule','enumerable','object','defineProperties','UTM_CAMPAIGN','SESSION_CREATED','post','popup_container_','getInstance','attributeProperty','SESSION_ID','group','error','Tracking\x20page\x20change','2175BOnHue','response','AxiosError','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','disableSDK','div','scrollHeight','recordAttribute','write\x20to\x20private\x20field','filter','brand','logout','2946608uJcARn','documentElement','Popup','NONE','Recording\x20event','uniqueIdentity','Web\x20Session\x20Concluded','message','ttl','\x0aError\x20setting\x20up\x20the\x20request:\x20','customer','has','timeEnd','Mozilla\x20Firefox','parse','removeItem','isInitialized','getItem','campaignCustomerInstanceId','utm_campaign','Error\x20fetching\x20event\x20data','\x0aAxiosError:\x20','load','Recording\x20attribute','eventProperty','campaignId','Attribute\x20','\x0aMergnError:\x20','Safari','880256rUgqtD','click','#\x20recordAttribute','next','Logging\x20in','Unknown','Web\x20Session\x20Started','Mergn\x20SDK\x20is\x20disabled!','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','data','Firefox','IMMEDIATELY','ERROR','offline','hasOwnProperty','style','indexOf','/customer','onLine','request','getOwnPropertyDescriptor','916UGGjig','Tracking\x20page\x20change\x20Time','SCROLL','online','get','initialTime','defineProperty','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','form','6835616zFRJmB','/attribute','Identity:\x20','page','string','utm_medium','application/json','throw','events','INFO','Form\x20Submit','record\x20event','setDebugLevel','className','Popup\x20View','getOwnPropertyNames','toISOString','set','name','stringify','URL','\x0aUnexpected\x20error:\x20','exports','time','operating-system','headers','read\x20from\x20private\x20field','\x0aResponse\x20Data:\x20','create','location','Authorization','Event\x20','UTM_TERM','setItem','Attribute\x20Payload:\x0a\x20','href','313680MFJrSa','UTM_MEDIUM','Recording\x20attribute\x20Time','17519940tXUmXY','length','search','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','12YfDMKI','showErrorLog','common','userAgent','utm_term','entries','ERROR:\x20','attributes','Event\x20Payload','preventDefault','#\x20record\x20event','init','\x0aHTTP\x20Status:\x20','hostname','session','offlineEvents','campaignEntryTime','utm_source','pathname','Web','Initializing\x20Mergn\x20SDK','2351110RPcIns','OriginateFrom:\x20','propertyIsEnumerable','keys','getTime','updateAPIKey','default','Viewed\x20Webpage','body','querySelectorAll','action','Edg','values','Google\x20Chrome','function','push','login','Logging\x20in\x20Time','debugLevel','value','remove','forEach','map','createElement','Platform','getOwnPropertySymbols','apply','defaults','\x20is\x20not\x20valid.','pushState','Error\x20posting\x20identity\x20data','utm_content','scrollY','MSIE','Recording\x20event\x20Time','scroll','MergnError','done','Close\x20Click','/set-attribute','groupEnd','Popup\x20Action','Error\x20setting\x20identity','Logging\x20out','add','Checking\x20TTL\x20Time','\x20has\x20invalid\x20attributeProperties:\x20','identity','DELAY','Mergn\x20SDK\x20Initialization\x20Time','addEventListener','Error\x20posting\x20event\x20record','appendChild','Checking\x20TTL','join','UTM_SOURCE'];_0x1507=function(){return _0x437f8e;};return _0x1507();}kt(zt,{'default':()=>Wt}),module[_0x2f60f2(0x147)]=Jt(zt);var ne=require('uuid'),Ye=(_0x4328b4=>(_0x4328b4[_0x2f60f2(0x1a8)]=_0x2f60f2(0x16d),_0x4328b4[_0x2f60f2(0x156)]=_0x2f60f2(0x136),_0x4328b4[_0x2f60f2(0x1af)]=_0x2f60f2(0x109),_0x4328b4[_0x2f60f2(0x151)]=_0x2f60f2(0x160),_0x4328b4['UTM_CONTENT']=_0x2f60f2(0x190),_0x4328b4))(Ye||{}),Xe=new Set(Object[_0x2f60f2(0x17d)](Ye)),A=_0x2f60f2(0x19a),Ze=_0x2f60f2(0xed),xe=_0x2f60f2(0x132),et=_0x2f60f2(0x198),Ce='/event',tt='/record-event',rt=_0x2f60f2(0x124),nt='/set-identity',it=qe(require('axios')),at=require('axios-queue-js'),st=qe(require('axios-retry')),ot=require('axios'),ee=(_0x17a78f=>(_0x17a78f[_0x17a78f[_0x2f60f2(0xf9)]=0x0]=_0x2f60f2(0xf9),_0x17a78f[_0x17a78f[_0x2f60f2(0x13a)]=0x1]=_0x2f60f2(0x13a),_0x17a78f[_0x17a78f[_0x2f60f2(0x11f)]=0x2]='ERROR',_0x17a78f[_0x17a78f['ALL']=0x3]='ALL',_0x17a78f))(ee||{}),u=(_0xb04236,_0x4bb649)=>{const _0x14966c=_0x2f60f2;g[_0x14966c(0x183)]!==0x0&&g['debugLevel']<=0x3&&(_0xb04236===0x1?console['info']('INFO:\x20'+new Date()[_0x14966c(0x141)](),_0x4bb649):_0xb04236===0x2&&console[_0x14966c(0xe8)](_0x14966c(0x162)+new Date()[_0x14966c(0x141)](),_0x4bb649));},m=(_0x58e4e5,_0x303365)=>{const _0x30e79c=_0x2f60f2;g[_0x30e79c(0x183)]!==0x0&&(_0x303365?console[_0x30e79c(0x148)](_0x58e4e5):console[_0x30e79c(0x102)](_0x58e4e5));},S=(_0x39ef08,_0x2dae4a)=>{const _0x43a417=_0x2f60f2;g[_0x43a417(0x183)]!==0x0&&(_0x2dae4a?console[_0x43a417(0x1b6)](_0x39ef08):console[_0x43a417(0x199)]());},g=class extends Error{constructor(_0x3d8c35){const _0x2b782e=_0x2f60f2;super(_0x3d8c35),this[_0x2b782e(0x143)]=_0x2b782e(0x195);}};g[_0x2f60f2(0xee)]=!0x1,g[_0x2f60f2(0x120)]=!navigator[_0x2f60f2(0x125)],g[_0x2f60f2(0x183)]=0x0,g['isInitialized']=!0x1;var Kt=(_0x3f1097,_0x2445e7)=>{const _0x4ea68f=_0x2f60f2;_0x2445e7 instanceof g?u(0x2,_0x4ea68f(0x172)+_0x3f1097+_0x4ea68f(0x111)+_0x2445e7[_0x4ea68f(0xfd)]):_0x2445e7 instanceof ot[_0x4ea68f(0xec)]?(u(0x2,'OriginateFrom:\x20'+_0x3f1097+_0x4ea68f(0x10b)+_0x2445e7[_0x4ea68f(0xfd)]),_0x2445e7[_0x4ea68f(0xeb)]?(u(0x2,_0x4ea68f(0x172)+_0x3f1097+_0x4ea68f(0x168)+_0x2445e7['response']['status']),u(0x2,_0x4ea68f(0x172)+_0x3f1097+_0x4ea68f(0x14c)+_0x2445e7[_0x4ea68f(0xeb)]['data'])):_0x2445e7[_0x4ea68f(0x126)]?u(0x2,'OriginateFrom:\x20'+_0x3f1097+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):u(0x2,_0x4ea68f(0x172)+_0x3f1097+_0x4ea68f(0xff)+_0x2445e7['message'])):_0x2445e7 instanceof Error?u(0x2,_0x4ea68f(0x172)+_0x3f1097+'\x0aUnexpected\x20error:\x20'+_0x2445e7['message']):u(0x2,'OriginateFrom:\x20'+_0x3f1097+_0x4ea68f(0x146)+String(_0x2445e7));},O=(_0x39f5fa,_0x52ed57,_0x4b13f5)=>c(void 0x0,null,function*(){const _0x4dc913=_0x2f60f2;try{if(g[_0x4dc913(0xee)])throw new g(_0x4dc913(0x11a));if(_0x39f5fa!==_0x4dc913(0x13c)&&g[_0x4dc913(0x120)])throw new g('Mergn\x20is\x20offline!');if(_0x39f5fa!=='init'&&!g[_0x4dc913(0x106)])throw new g('Mergn\x20not\x20initialized!');return yield _0x52ed57();}catch(_0x4a3978){return _0x4b13f5?_0x4b13f5(_0x4a3978):(g[_0x4dc913(0x183)]===0x2||g['debugLevel']===0x3)&&Kt(_0x39f5fa,_0x4a3978),null;}}),w,F,M,$,te,V,Fe,re,ct,p=class p{constructor(){const _0x126a2d=_0x2f60f2;i(this,te,0x0);let _0x1d9f4f=it['default'][_0x126a2d(0x14d)]({'baseURL':Ze,'headers':{'Content-Type':_0x126a2d(0x137)}});v(p,F,_0x1d9f4f),v(p,M,new at['AxiosQueueManager']({'client':_0x1d9f4f,'queueSize':0xa})),(0x0,st[_0x126a2d(0x177)])(_0x1d9f4f,{'onRetry':_0x3c1005=>{const _0x2621ea=_0x126a2d;_0x3c1005>=E(p,$)?(g[_0x2621ea(0x15d)]&&console['log']('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),g[_0x2621ea(0xee)]=!0x0):He(this,te)['_']++;},'retries':E(p,$),'retryDelay':_0x161a33=>_0x161a33*0x1388});}static[_0x2f60f2(0x176)](_0x30057f){const _0x6cb79c=_0x2f60f2;this['apiKey']=_0x30057f,n(this,re,ct)[_0x6cb79c(0x1a9)](this)[_0x6cb79c(0x18c)][_0x6cb79c(0x14a)][_0x6cb79c(0x15e)][_0x6cb79c(0x14f)]=_0x30057f;}static['get'](_0x4d9ddf){const _0x435c23=_0x2f60f2;return n(this,V,Fe)[_0x435c23(0x1a9)](this)[_0x435c23(0x12c)](_0x4d9ddf);}static[_0x2f60f2(0x1b1)](_0x3e309,_0x4a32a8){const _0x5c0075=_0x2f60f2;return n(this,V,Fe)['call'](this)[_0x5c0075(0x1b1)](_0x3e309,_0x4a32a8||{});}};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,h,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,ye,yt,he,ht,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,ye),i(this,he),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 _0x4a6b2d=_0x1b30;let _0x4ad2aa=()=>{const _0x148da0=_0x1b30;let _0x2be54c=JSON['parse'](localStorage[_0x148da0(0x107)](_0x148da0(0x17b))||'{}');Object[_0x148da0(0x174)](_0x2be54c)[_0x148da0(0x186)](_0x27063e=>{const _0x419348=_0x148da0;_0x2be54c[_0x27063e]['initialTime']=new Date()['getTime'](),_0x2be54c[_0x27063e]['page']=window[_0x419348(0x14e)][_0x419348(0x169)]+window['location'][_0x419348(0x16e)];}),localStorage[_0x148da0(0x152)](_0x148da0(0x17b),JSON[_0x148da0(0x144)](_0x2be54c));};_0x4ad2aa(),window[_0x4a6b2d(0x1a3)]('beforeunload',_0x4ad2aa);}),i(this,G,_0x2ef476=>{const _0x2c139b=_0x1b30;let _0x34c7a3=JSON['parse'](localStorage[_0x2c139b(0x107)](_0x2c139b(0x17b))||'{}');_0x34c7a3[_0x2ef476]&&delete _0x34c7a3[_0x2ef476],localStorage[_0x2c139b(0x152)](_0x2c139b(0x17b),JSON[_0x2c139b(0x144)](_0x34c7a3));}),i(this,de,()=>{const _0x2f880f=_0x1b30;let _0x48af9b=JSON[_0x2f880f(0x104)](localStorage['getItem'](_0x2f880f(0x17b))||'{}');Object['keys'](_0x48af9b)[_0x2f880f(0x186)](_0x49e6c7=>{const _0x88bca5=_0x2f880f;_0x48af9b[_0x49e6c7][_0x88bca5(0xfd)][_0x88bca5(0x143)]===_0x88bca5(0xf8)&&n(this,Q,ke)[_0x88bca5(0x1a9)](this,_0x48af9b[_0x49e6c7][_0x88bca5(0x10f)]);});});}static[_0x2f60f2(0x1b3)](){return E(L,N)||v(L,N,new L()),E(L,N);}['init'](_0x4a2894){const _0x50329a=_0x2f60f2;O(_0x50329a(0x167),()=>c(this,null,function*(){const _0x3131a5=_0x50329a;u(0x1,_0x3131a5(0x170)),S('Initializing\x20Mergn\x20SDK',!0x0),m('Mergn\x20SDK\x20Initialization\x20Time',!0x0),n(this,ge,Et)[_0x3131a5(0x1a9)](this,_0x4a2894),yield n(this,W,$e)[_0x3131a5(0x1a9)](this),g['isInitialized']=!0x0,setInterval(()=>c(this,null,function*(){const _0x22376a=_0x3131a5;yield n(this,W,$e)[_0x22376a(0x1a9)](this);}),0x493e0),yield n(this,b,B)[_0x3131a5(0x1a9)](this),window[_0x3131a5(0x1a3)](_0x3131a5(0x12b),()=>c(this,null,function*(){const _0xd269d9=_0x3131a5;g[_0xd269d9(0x120)]=!0x1;let _0x4a5046=JSON[_0xd269d9(0x104)](localStorage['getItem'](_0xd269d9(0x16b))||'[]');Array['isArray'](_0x4a5046)&&(yield n(this,H,Ke)[_0xd269d9(0x1a9)](this,{'customerId':localStorage['getItem']('customer')||'','events':_0x4a5046}),localStorage[_0xd269d9(0x105)](_0xd269d9(0x16b))),n(this,b,B)[_0xd269d9(0x1a9)](this),n(this,U,ie)[_0xd269d9(0x1a9)](this);})),window[_0x3131a5(0x1a3)]('offline',()=>{g['offline']=!0x0;}),window['addEventListener'](_0x3131a5(0x10c),()=>{const _0x182943=_0x3131a5;E(this,de)[_0x182943(0x1a9)](this);});let _0x21bcd2=history[_0x3131a5(0x18e)];history[_0x3131a5(0x18e)]=(..._0x5d64d6)=>{const _0x2c5cfe=_0x3131a5;_0x21bcd2[_0x2c5cfe(0x18b)](history,_0x5d64d6),n(this,z,Ve)[_0x2c5cfe(0x1a9)](this);},n(this,z,Ve)['call'](this),m(_0x3131a5(0x1a2),!0x1),S(_0x3131a5(0x170),!0x1);}));}[_0x2f60f2(0x13d)](_0x416db5){const _0x4f068b=_0x2f60f2;if(!(_0x416db5 in ee)){console[_0x4f068b(0xe8)](_0x4f068b(0x12f));return;}g['debugLevel']=_0x416db5;}[_0x2f60f2(0xf1)](_0x39517,_0x12c8a5){const _0x435acd=_0x2f60f2;O(_0x435acd(0xf1),()=>c(this,null,function*(){const _0x57d238=_0x435acd;yield n(this,se,lt)[_0x57d238(0x1a9)](this,_0x39517,_0x12c8a5,void 0x0);}));}[_0x2f60f2(0x181)](_0x27b876){const _0x191586=_0x2f60f2;O(_0x191586(0x181),()=>c(this,null,function*(){const _0x277574=_0x191586;u(0x1,'Logging\x20in'),S(_0x277574(0x117),!0x0),m(_0x277574(0x182),!0x0),u(0x1,_0x277574(0x133)+_0x27b876),yield n(this,D,oe)['call'](this,_0x27b876),m(_0x277574(0x182),!0x1),S('Logging\x20in',!0x1);}));}[_0x2f60f2(0xf5)](){const _0x3826b2=_0x2f60f2;O(_0x3826b2(0xf5),()=>c(this,null,function*(){const _0x30a743=_0x3826b2;u(0x1,_0x30a743(0x19c)),S(_0x30a743(0x19c),!0x0),m('Logging\x20out\x20Time',!0x0),n(this,Y,We)[_0x30a743(0x1a9)](this),m('Logging\x20out\x20Time',!0x1),S('Logging\x20out',!0x1);}));}['recordEvent'](_0x4916bc,_0x441f1c){O('record\x20event',()=>c(this,null,function*(){const _0x4b9117=_0x1b30;u(0x1,'Recording\x20event'),S(_0x4b9117(0xfa),!0x0),m('Recording\x20event\x20Time',!0x0),u(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0x4916bc,'eventProperties':_0x441f1c}),yield n(this,f,h)[_0x4b9117(0x1a9)](this,_0x4916bc,_0x441f1c),m(_0x4b9117(0x193),!0x1),S(_0x4b9117(0xfa),!0x1);}));}};N=new WeakMap(),P=new WeakMap(),k=new WeakMap(),J=new WeakMap(),K=new WeakMap(),se=new WeakSet(),lt=function(_0x666470,_0x4572eb,_0x468510){return c(this,null,function*(){const _0xa4f73e=_0x1b30;yield O(_0xa4f73e(0x115),()=>c(this,null,function*(){const _0x2d6783=_0xa4f73e;u(0x1,_0x2d6783(0x10d)),S(_0x2d6783(0x10d),!0x0),m(_0x2d6783(0x157),!0x0),u(0x1,_0x2d6783(0x153)+{'attributeName':_0x666470,'attributeProperties':_0x468510,'attributeValue':_0x4572eb}+')}'),yield n(this,b,B)[_0x2d6783(0x1a9)](this),yield n(this,Ne,Nt)['call'](this);let _0x430a7e=JSON[_0x2d6783(0x104)](localStorage[_0x2d6783(0x107)]('attributes')||'{}'),_0x7fce1c=_0x468510?n(this,q,Je)[_0x2d6783(0x1a9)](this,_0x430a7e,_0x666470,_0x468510):n(this,q,Je)[_0x2d6783(0x1a9)](this,_0x430a7e,_0x666470);if(typeof _0x7fce1c==_0x2d6783(0x135)){u(0x2,_0x7fce1c);return;}n(this,U,ie)[_0x2d6783(0x1a9)](this);let {id:_0xd10e0e}=_0x430a7e[_0x666470],_0x4dbc02={'attributeId':_0xd10e0e,'attributeProperties':_0x7fce1c,'customerId':localStorage['getItem']('customer')||'','value':_0x4572eb};yield n(this,Pe,Pt)['call'](this,_0x4dbc02),m('Recording\x20attribute\x20Time',!0x1),S(_0x2d6783(0x10d),!0x1);}));});},b=new WeakSet(),B=function(){return c(this,null,function*(){const _0x2cea15=_0x1b30;u(0x1,_0x2cea15(0x1a6)),S(_0x2cea15(0x1a6),!0x0),m(_0x2cea15(0x19e),!0x0);let _0x2972d8=localStorage['getItem'](_0x2cea15(0xfe)),_0x1941a2=!0x1;if(_0x2972d8){if(_0x1941a2=new Date()[_0x2cea15(0x175)]()-parseInt(_0x2972d8,0xa)>0x124f80,_0x1941a2){let _0x2f85b6=localStorage['getItem'](_0x2cea15(0x16a)),_0x233822=localStorage[_0x2cea15(0x107)](_0x2cea15(0xfe));_0x2f85b6&&_0x233822&&n(this,f,h)[_0x2cea15(0x1a9)](this,_0x2cea15(0xfc),[{'eventProperty':_0x2cea15(0x1b5),'value':localStorage[_0x2cea15(0x107)](_0x2cea15(0x16a))},{'eventProperty':_0x2cea15(0x1b0),'value':new Date(parseInt(_0x233822,0xa))[_0x2cea15(0x141)]()}]),n(this,Y,We)['call'](this),localStorage[_0x2cea15(0x152)](_0x2cea15(0xfe),''+new Date()[_0x2cea15(0x175)]());}}else localStorage[_0x2cea15(0x152)](_0x2cea15(0xfe),''+new Date()['getTime']());(!_0x2972d8||_0x1941a2||n(this,ue,pt)['call'](this))&&(n(this,me,mt)[_0x2cea15(0x1a9)](this),yield n(this,D,oe)[_0x2cea15(0x1a9)](this),yield n(this,Ee,dt)[_0x2cea15(0x1a9)](this)),m('Checking\x20TTL\x20Time',!0x1),S('Checking\x20TTL',!0x1);});},f=new WeakSet(),h=function(_0x14f98b,_0x22d966,_0x597e18,_0x17fbae){return c(this,null,function*(){const _0x52008c=_0x1b30;yield O(_0x52008c(0x166),()=>c(this,null,function*(){const _0x31916d=_0x52008c;var _0x4c769a;u(0x1,'#\x20Recording\x20event'),S(_0x31916d(0xfa),!0x0),m(_0x31916d(0x193),!0x0),u(0x1,_0x31916d(0x164)),u(0x1,{'campaignCustomerInstanceId':_0x597e18,'eventName':_0x14f98b,'eventProperties':_0x22d966,'name':_0x17fbae}),_0x14f98b!==_0x31916d(0xfc)&&(yield n(this,b,B)[_0x31916d(0x1a9)](this));let _0x550852=[];_0x22d966&&_0x550852[_0x31916d(0x180)](..._0x22d966),_0x550852[_0x31916d(0x180)]({'eventProperty':_0x31916d(0x189),'value':E(this,P)}),_0x550852[_0x31916d(0x180)]({'eventProperty':_0x31916d(0x149),'value':E(this,J)}),_0x550852[_0x31916d(0x180)]({'eventProperty':'os-version','value':E(this,k)});let _0x292c4e=n(this,Oe,Ot)[_0x31916d(0x1a9)](this),_0x21627a=n(this,we,wt)[_0x31916d(0x1a9)](this,_0x292c4e,_0x14f98b,_0x550852);if(typeof _0x21627a=='string'){u(0x2,_0x21627a);return;}n(this,U,ie)[_0x31916d(0x1a9)](this);let {id:_0x2cf193}=_0x292c4e[_0x14f98b],_0x186720=n(this,Le,Lt)[_0x31916d(0x1a9)](this,Z(De(Z({},_0x597e18?{'campaignCustomerInstanceId':_0x597e18}:{}),{'eventId':_0x2cf193,'eventProperties':_0x21627a,'sessionId':localStorage[_0x31916d(0x107)]('session')||''}),_0x17fbae?{'name':_0x17fbae}:{}));if(g['offline']){let _0x52dcd8=JSON[_0x31916d(0x104)](localStorage[_0x31916d(0x107)](_0x31916d(0x16b))||'[]');_0x52dcd8[_0x31916d(0x159)]<=0x32&&(_0x52dcd8[_0x31916d(0x180)](..._0x186720['events']),localStorage[_0x31916d(0x152)](_0x31916d(0x16b),JSON['stringify'](_0x52dcd8)));return;}let _0x4333c7=yield n(this,H,Ke)[_0x31916d(0x1a9)](this,_0x186720);(_0x4c769a=_0x4333c7==null?void 0x0:_0x4333c7['data'])==null||_0x4c769a[_0x31916d(0x186)](_0x12ef69=>{const _0xdad567=_0x31916d;n(this,be,bt)[_0xdad567(0x1a9)](this,_0x12ef69[_0xdad567(0xfd)][_0xdad567(0x143)])&&(n(this,Ae,At)[_0xdad567(0x1a9)](this,_0x12ef69),E(this,pe)['call'](this),n(this,Q,ke)['call'](this,_0x12ef69[_0xdad567(0x10f)]));}),m('Recording\x20event\x20Time',!0x1),S('Recording\x20event',!0x1);}));});},ce=new WeakSet(),gt=function(){const _0xc366df=_0x2f60f2;let _0x365f36=navigator[_0xc366df(0x15f)]['toLowerCase']();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i['test'](_0x365f36)?'Mobile':/windows|macintosh|linux|x11/i['test'](_0x365f36)?_0xc366df(0x16f):_0xc366df(0x118);},le=new WeakSet(),ut=function(){const _0x21a918=_0x2f60f2;let _0x2fd92a=navigator[_0x21a918(0x15f)],_0x247d15;return _0x2fd92a[_0x21a918(0x123)]('Chrome')>-0x1?_0x247d15=_0x21a918(0x17e):_0x2fd92a[_0x21a918(0x123)](_0x21a918(0x112))>-0x1?_0x247d15=_0x21a918(0x112):_0x2fd92a[_0x21a918(0x123)](_0x21a918(0x11d))>-0x1?_0x247d15=_0x21a918(0x103):_0x2fd92a['indexOf'](_0x21a918(0x17c))>-0x1?_0x247d15='Microsoft\x20Edge':_0x2fd92a[_0x21a918(0x123)](_0x21a918(0x192))>-0x1?_0x247d15='Internet\x20Explorer':_0x247d15=_0x21a918(0x118),_0x247d15;},W=new WeakSet(),$e=function(){return c(this,null,function*(){const _0x23f148=_0x1b30;try{yield R[_0x23f148(0x12c)](_0x23f148(0xf4));}catch(_0x496305){throw g['disableSDK']=!0x0,_0x496305[_0x23f148(0xfd)];}});},z=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x179c92=_0x1b30;var _0x2c4a30;u(0x1,'Tracking\x20page\x20change'),S(_0x179c92(0xe9),!0x0),m(_0x179c92(0x129),!0x0);let _0x16c180=(_0x2c4a30=window==null?void 0x0:window[_0x179c92(0x14e)])==null?void 0x0:_0x2c4a30['href'];if(_0x16c180!==E(this,K)){v(this,K,_0x16c180);let _0x4b5fbb=[];new URLSearchParams(new URL(window[_0x179c92(0x14e)][_0x179c92(0x154)])[_0x179c92(0x15a)])[_0x179c92(0x186)]((_0x52221d,_0x1cfc9f)=>c(this,null,function*(){const _0x1ab9a1=_0x179c92;Xe[_0x1ab9a1(0x101)](_0x1cfc9f)&&_0x4b5fbb[_0x1ab9a1(0x180)]({'eventProperty':_0x1cfc9f,'value':_0x52221d});})),yield n(this,f,h)[_0x179c92(0x1a9)](this,_0x179c92(0x178),[{'eventProperty':_0x179c92(0x145),'value':window[_0x179c92(0x14e)][_0x179c92(0x16e)]},..._0x4b5fbb]);}m(_0x179c92(0x129),!0x1),S('Tracking\x20page\x20change',!0x1);});},ge=new WeakSet(),Et=function(_0x25d1fb){const _0x4fea6d=_0x2f60f2;R[_0x4fea6d(0x176)](_0x25d1fb),v(this,P,navigator[_0x4fea6d(0x15f)]),v(this,k,n(this,le,ut)[_0x4fea6d(0x1a9)](this)),v(this,J,n(this,ce,gt)[_0x4fea6d(0x1a9)](this));},ue=new WeakSet(),pt=function(){const _0x5a38ec=_0x2f60f2;return!localStorage[_0x5a38ec(0x107)](_0x5a38ec(0x139))||!localStorage[_0x5a38ec(0x107)](_0x5a38ec(0x100))||!localStorage[_0x5a38ec(0x107)](_0x5a38ec(0x163))||!localStorage[_0x5a38ec(0x107)](_0x5a38ec(0xfb))||!localStorage['getItem']('session')||!localStorage['getItem'](_0x5a38ec(0x100));},Ee=new WeakSet(),dt=function(){return c(this,null,function*(){const _0x5e9473=_0x1b30;yield n(this,Se,St)[_0x5e9473(0x1a9)](this),yield n(this,j,Be)[_0x5e9473(0x1a9)](this),yield n(this,D,oe)['call'](this);});},pe=new WeakMap(),G=new WeakMap(),de=new WeakMap(),me=new WeakSet(),mt=function(){const _0x3133f6=_0x2f60f2;let _0xbccaa4=localStorage[_0x3133f6(0x107)](_0x3133f6(0xfb));return _0xbccaa4||(_0xbccaa4=(0x0,ne['v4'])(),localStorage[_0x3133f6(0x152)](_0x3133f6(0xfb),_0xbccaa4)),_0xbccaa4;},Se=new WeakSet(),St=function(){return c(this,null,function*(){const _0x33fdd3=_0x1b30;if(!localStorage[_0x33fdd3(0x107)](_0x33fdd3(0x139))){let _0x5ec09=(yield n(this,Ie,It)['call'](this))[_0x33fdd3(0x11c)];_0x5ec09&&localStorage[_0x33fdd3(0x152)](_0x33fdd3(0x139),JSON[_0x33fdd3(0x144)](_0x5ec09));}});},Ie=new WeakSet(),It=function(){return c(this,null,function*(){const _0x4796ea=_0x1b30;try{return(yield R['get'](''+Ce))[_0x4796ea(0x11c)];}catch(_0x1a0b3a){throw new Error(_0x4796ea(0x10a));}});},j=new WeakSet(),Be=function(){return c(this,null,function*(){const _0xb69be4=_0x1b30;if(!localStorage[_0xb69be4(0x107)]('attributes')){let _0x4757c9=(yield n(this,ve,vt)[_0xb69be4(0x1a9)](this))[_0xb69be4(0x11c)];_0x4757c9&&localStorage[_0xb69be4(0x152)]('attributes',JSON[_0xb69be4(0x144)](_0x4757c9));}});},ve=new WeakSet(),vt=function(){return c(this,null,function*(){const _0x558c9f=_0x1b30;try{return(yield R[_0x558c9f(0x12c)](''+xe))[_0x558c9f(0x11c)];}catch(_0x11d233){throw new Error('Error\x20fetching\x20attribute\x20data');}});},D=new WeakSet(),oe=function(_0x1d37e6){return c(this,null,function*(){const _0x44583d=_0x1b30;localStorage[_0x44583d(0x107)](_0x44583d(0x16a))||(localStorage['setItem'](_0x44583d(0x16a),(0x0,ne['v4'])()),yield n(this,f,h)[_0x44583d(0x1a9)](this,_0x44583d(0x119),[{'eventProperty':_0x44583d(0x1b5),'value':localStorage[_0x44583d(0x107)](_0x44583d(0x16a))},{'eventProperty':_0x44583d(0x1b0),'value':new Date(parseInt(localStorage[_0x44583d(0x107)](_0x44583d(0xfe))||'',0xa))[_0x44583d(0x141)]()}]));let _0x11f16e={'deviceId':localStorage[_0x44583d(0x107)]('uniqueIdentity')||(0x0,ne['v4'])(),'os':E(this,P)};if(_0x1d37e6)_0x11f16e[_0x44583d(0x1a0)]=_0x1d37e6;else{if(!_0x1d37e6&&localStorage[_0x44583d(0x107)]('customer'))return;}try{let _0x397fad=(yield n(this,fe,ft)['call'](this,_0x11f16e))[_0x44583d(0x11c)];_0x397fad!==void 0x0&&localStorage['setItem'](_0x44583d(0x100),_0x397fad);}catch(_0x2593cc){throw new Error(_0x44583d(0x19b));}});},U=new WeakSet(),ie=function(){const _0x512975=_0x2f60f2;localStorage[_0x512975(0x152)]('ttl',''+new Date()['getTime']());},fe=new WeakSet(),ft=function(_0x3d4576){return c(this,null,function*(){const _0x1cb186=_0x1b30;try{return(yield R[_0x1cb186(0x1b1)](''+rt+nt,_0x3d4576))[_0x1cb186(0x11c)];}catch(_0x10a352){throw new Error(_0x1cb186(0x18f));}});},Q=new WeakSet(),ke=function(_0x31e2c0){const _0x322b79=_0x2f60f2;let _0x19f69a=n(this,Te,Tt)[_0x322b79(0x1a9)](this);if(_0x19f69a!=null&&_0x19f69a[_0x31e2c0])switch(_0x19f69a[_0x31e2c0][_0x322b79(0x16c)]){case _0x322b79(0x1a1):{n(this,he,ht)['call'](this,_0x19f69a[_0x31e2c0]);break;}case _0x322b79(0x11e):{n(this,x,ae)['call'](this,_0x19f69a[_0x31e2c0]);break;}case _0x322b79(0x12a):{n(this,ye,yt)[_0x322b79(0x1a9)](this,_0x19f69a[_0x31e2c0]);break;}default:return;}},Te=new WeakSet(),Tt=function(){const _0x46114a=_0x2f60f2;let _0x4b15e7=localStorage[_0x46114a(0x107)]('action');return _0x4b15e7?JSON[_0x46114a(0x104)](_0x4b15e7):null;},ye=new WeakSet(),yt=function(_0xdf55ac){const _0x5a07c6=_0x2f60f2;window['addEventListener'](_0x5a07c6(0x194),()=>{const _0x12269a=_0x5a07c6;var _0x85a8c4;let _0x12bee9=window['innerHeight'],_0x3f5823=document[_0x12269a(0xf7)][_0x12269a(0xf0)];window[_0x12269a(0x191)]/(_0x3f5823-_0x12bee9)*0x64>(((_0x85a8c4=_0xdf55ac['campaignEntryTimeValue'])==null?void 0x0:_0x85a8c4[_0x12269a(0x184)])||0x0)&&n(this,x,ae)[_0x12269a(0x1a9)](this,_0xdf55ac);});},he=new WeakSet(),ht=function(_0xcff22a){const _0x4c44cb=_0x2f60f2;var _0x5fa7d;let _0x1fa15e=_0xcff22a[_0x4c44cb(0x12d)]-0x1f4+(((_0x5fa7d=_0xcff22a['campaignEntryTimeValue'])==null?void 0x0:_0x5fa7d[_0x4c44cb(0x184)])||0x0)*0x3e8-new Date()[_0x4c44cb(0x175)]();_0x1fa15e>0x0&&_0xcff22a[_0x4c44cb(0x134)]===window[_0x4c44cb(0x14e)][_0x4c44cb(0x169)]+window[_0x4c44cb(0x14e)][_0x4c44cb(0x16e)]&&setTimeout(()=>{const _0x4e8792=_0x4c44cb;E(this,G)[_0x4e8792(0x1a9)](this,_0xcff22a[_0x4e8792(0x10f)]),n(this,x,ae)['call'](this,_0xcff22a);},_0x1fa15e);},x=new WeakSet(),ae=function(_0x5b86bf){const _0x1922bf=_0x2f60f2;let _0x3abf4a=n(this,Re,Rt)[_0x1922bf(0x1a9)](this,_0x1922bf(0xef),_0x5b86bf);document[_0x1922bf(0x179)][_0x1922bf(0x1a5)](_0x3abf4a),n(this,f,h)[_0x1922bf(0x1a9)](this,A,[{'eventProperty':_0x1922bf(0x13f),'value':JSON[_0x1922bf(0x144)]({'campaignId':_0x5b86bf[_0x1922bf(0x10f)]})}],_0x5b86bf[_0x1922bf(0x108)],'view'),E(this,G)[_0x1922bf(0x1a9)](this,_0x5b86bf[_0x1922bf(0x10f)]);},Re=new WeakSet(),Rt=function(_0x1b6cda,_0x2f0874){const _0x3c67d2=_0x2f60f2;var _0x21d7dd;let {campaignCustomerInstanceId:_0x2c2b9b,campaignId:_0x3707de,message:{design:_0x2a5a28}}=_0x2f0874,_0x1e4909=document[_0x3c67d2(0x188)](_0x1b6cda);return _0x1e4909['id']=_0x3c67d2(0x1b2)+_0x3707de,_0x1e4909['innerHTML']=_0x2a5a28,_0x1e4909[_0x3c67d2(0x122)]['zIndex']='50',_0x1e4909[_0x3c67d2(0x17a)]('[id^=\x22u_content_form_\x22]')[_0x3c67d2(0x186)](_0x534dd9=>{const _0x903dc9=_0x3c67d2;let _0x373beb=_0x534dd9['querySelector'](_0x903dc9(0x130));_0x373beb&&_0x373beb[_0x903dc9(0x1a3)]('submit',_0xf13b41=>c(this,null,function*(){const _0x1aaf0a=_0x903dc9;_0xf13b41[_0x1aaf0a(0x165)]();let _0x3540c8=new FormData(_0x373beb),_0x3bf4d7={};for(let [_0x2a79a6,_0x3e59a3]of _0x3540c8[_0x1aaf0a(0x161)]())_0x3bf4d7[_0x2a79a6]=_0x3e59a3;yield n(this,f,h)[_0x1aaf0a(0x1a9)](this,A,[{'eventProperty':_0x1aaf0a(0x13b),'value':JSON[_0x1aaf0a(0x144)]({'campaignId':_0x3707de,'formId':_0x534dd9['id'],'formValues':_0x3bf4d7})}],_0x2c2b9b,'form');}));}),(_0x21d7dd=_0x1e4909['querySelector']('.u-close-button'))==null||_0x21d7dd[_0x3c67d2(0x1a3)]('click',()=>c(this,null,function*(){const _0x323fba=_0x3c67d2;_0x1e4909[_0x323fba(0x185)](),yield n(this,f,h)[_0x323fba(0x1a9)](this,A,[{'eventProperty':_0x323fba(0x197),'value':JSON[_0x323fba(0x144)]({'campaignId':_0x3707de})}],_0x2c2b9b,'close');})),_0x1e4909[_0x3c67d2(0x17a)]('[id^=\x22u_content_button_\x22]')[_0x3c67d2(0x186)](_0xb5b4e7=>{const _0x190658=_0x3c67d2;_0xb5b4e7[_0x190658(0x1a3)]('click',()=>c(this,null,function*(){const _0x4463d6=_0x190658;yield n(this,f,h)[_0x4463d6(0x1a9)](this,A,[{'eventProperty':'Button\x20Click','value':JSON[_0x4463d6(0x144)]({'buttonId':_0xb5b4e7['id'],'campaignId':_0x3707de})}],_0x2c2b9b,_0x4463d6(0x114));}));}),_0x1e4909[_0x3c67d2(0x17a)]('.u-popup-container\x20img')[_0x3c67d2(0x186)](_0x2990e2=>{const _0x2683fe=_0x3c67d2;_0x2990e2['addEventListener'](_0x2683fe(0x114),()=>c(this,null,function*(){const _0x411ee1=_0x2683fe;yield n(this,f,h)[_0x411ee1(0x1a9)](this,A,[{'eventProperty':'Image\x20Click','value':JSON[_0x411ee1(0x144)]({'campaignId':_0x3707de,'imageClassName':_0x2990e2[_0x411ee1(0x13e)],'imageId':_0x2990e2['id']})}],_0x2c2b9b,_0x411ee1(0x114));}));}),_0x1e4909;},Oe=new WeakSet(),Ot=function(){const _0x2051bd=_0x2f60f2;let _0x462698=localStorage['getItem'](_0x2051bd(0x139));return _0x462698?JSON[_0x2051bd(0x104)](_0x462698):{};},we=new WeakSet(),wt=function(_0x5ce645,_0x2d51ea,_0x3a067f){const _0x387405=_0x2f60f2;if(!Object[_0x387405(0x1aa)][_0x387405(0x121)][_0x387405(0x1a9)](_0x5ce645,_0x2d51ea))return _0x387405(0x150)+_0x2d51ea+_0x387405(0x18d);if(!_0x3a067f)return[];let _0x3fb66a=_0x5ce645[_0x2d51ea];if(!(_0x3fb66a!=null&&_0x3fb66a[_0x387405(0x10e)]))return'Event\x20'+_0x2d51ea+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x296df1=_0x3a067f['filter'](({eventProperty:_0x37b289})=>!Object[_0x387405(0x1aa)]['hasOwnProperty']['call'](_0x3fb66a[_0x387405(0x10e)],_0x37b289))[_0x387405(0x187)](({eventProperty:_0x323ffb})=>_0x323ffb);return _0x296df1[_0x387405(0x159)]>0x0?_0x387405(0x150)+_0x2d51ea+'\x20has\x20invalid\x20eventProperties:\x20'+_0x296df1[_0x387405(0x1a7)](',\x20')+'.':_0x3a067f[_0x387405(0x187)](({eventProperty:_0x71ddcb,value:_0x31aa8d})=>({'eventPropertyId':_0x3fb66a[_0x387405(0x10e)][_0x71ddcb]['id'],'value':_0x31aa8d}));},q=new WeakSet(),Je=function(_0x34a95d,_0x505f60,_0x1d19ae){const _0x38dda4=_0x2f60f2;if(!Object[_0x38dda4(0x1aa)][_0x38dda4(0x121)][_0x38dda4(0x1a9)](_0x34a95d,_0x505f60))return _0x38dda4(0x110)+_0x505f60+'\x20is\x20not\x20valid.';if(!_0x1d19ae)return[];let _0x437f76=_0x34a95d[_0x505f60];if(!(_0x437f76!=null&&_0x437f76[_0x38dda4(0x1b4)]))return _0x38dda4(0x110)+_0x505f60+_0x38dda4(0x15b);let _0x177e72=_0x1d19ae[_0x38dda4(0xf3)](({attributeProperty:_0x5c9601})=>!Object[_0x38dda4(0x1aa)]['hasOwnProperty']['call'](_0x437f76['attributeProperty'],_0x5c9601))[_0x38dda4(0x187)](({attributeProperty:_0x3bfb38})=>_0x3bfb38);return _0x177e72[_0x38dda4(0x159)]>0x0?_0x38dda4(0x110)+_0x505f60+_0x38dda4(0x19f)+_0x177e72['join'](',\x20')+'.':_0x1d19ae['map'](({attributeProperty:_0x3a5a50,value:_0x46b212})=>({'attributePropertyId':_0x437f76['attributeProperty'][_0x3a5a50]['id'],'value':_0x46b212}));},Le=new WeakSet(),Lt=function(_0x393565){const _0x4ff313=_0x2f60f2;return{'customerId':localStorage['getItem'](_0x4ff313(0x100))||'','events':[_0x393565]};},H=new WeakSet(),Ke=function(_0x2d1582){return c(this,null,function*(){const _0x11c643=_0x1b30;try{return(yield R['post'](''+Ce+tt,_0x2d1582))[_0x11c643(0x11c)];}catch(_0x31415a){throw new Error(_0x11c643(0x1a4));}});},be=new WeakSet(),bt=function(_0x378ccf){const _0x16b5ba=_0x2f60f2;return _0x378ccf===_0x16b5ba(0xf8);},Ae=new WeakSet(),At=function(_0x1cae25){const _0x2e5348=_0x2f60f2;let _0x74d9a3=JSON[_0x2e5348(0x104)](localStorage[_0x2e5348(0x107)](_0x2e5348(0x17b))||'{}');_0x74d9a3[_0x1cae25[_0x2e5348(0x10f)]]=De(Z({},_0x1cae25),{'initialTime':new Date()[_0x2e5348(0x175)](),'page':window['location'][_0x2e5348(0x169)]+window[_0x2e5348(0x14e)][_0x2e5348(0x16e)]}),localStorage['setItem'](_0x2e5348(0x17b),JSON['stringify'](_0x74d9a3));},Y=new WeakSet(),We=function(){const _0x1a1e05=_0x2f60f2;localStorage[_0x1a1e05(0x105)](_0x1a1e05(0x17b)),localStorage[_0x1a1e05(0x105)](_0x1a1e05(0x139)),localStorage[_0x1a1e05(0x105)](_0x1a1e05(0x163)),localStorage[_0x1a1e05(0x105)]('offlineEvents'),localStorage['removeItem']('ttl'),localStorage[_0x1a1e05(0x105)](_0x1a1e05(0x16a));},Ne=new WeakSet(),Nt=function(){return c(this,null,function*(){const _0x1a1706=_0x1b30;localStorage[_0x1a1706(0x107)](_0x1a1706(0x163))||(yield n(this,j,Be)[_0x1a1706(0x1a9)](this));});},Pe=new WeakSet(),Pt=function(_0x12af4c){return c(this,null,function*(){const _0x2e0b49=_0x1b30;try{return yield R[_0x2e0b49(0x1b1)](''+xe+et,_0x12af4c);}catch(_0x405fde){throw new Error('Error\x20posting\x20attribute\x20record');}});},i(L,N,void 0x0);var Me=L,Dt=Me[_0x2f60f2(0x1b3)](),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 _0x40d818=_0x192d;(function(_0xc4bcc0,_0x5bdbe5){const _0x5ea543=_0x192d,_0x5ec92b=_0xc4bcc0();while(!![]){try{const _0x18822d=parseInt(_0x5ea543(0x18c))/0x1*(parseInt(_0x5ea543(0x1c6))/0x2)+-parseInt(_0x5ea543(0x1d9))/0x3*(parseInt(_0x5ea543(0x1b2))/0x4)+parseInt(_0x5ea543(0x1a6))/0x5*(-parseInt(_0x5ea543(0x13d))/0x6)+parseInt(_0x5ea543(0x1dc))/0x7*(-parseInt(_0x5ea543(0x1c9))/0x8)+parseInt(_0x5ea543(0x1a8))/0x9*(parseInt(_0x5ea543(0x1b4))/0xa)+parseInt(_0x5ea543(0x1e0))/0xb*(-parseInt(_0x5ea543(0x152))/0xc)+parseInt(_0x5ea543(0x165))/0xd*(parseInt(_0x5ea543(0x147))/0xe);if(_0x18822d===_0x5bdbe5)break;else _0x5ec92b['push'](_0x5ec92b['shift']());}catch(_0x4f028c){_0x5ec92b['push'](_0x5ec92b['shift']());}}}(_0x31c2,0x840eb));var Lt=Object[_0x40d818(0x1b8)],bt=Object[_0x40d818(0x1f4)],At=Object[_0x40d818(0x19d)],We=Object['getOwnPropertySymbols'],Nt=Object[_0x40d818(0x17b)][_0x40d818(0x1af)],Pt=Object[_0x40d818(0x17b)][_0x40d818(0x16a)],ze=(_0x17416e,_0x111336,_0x371586)=>_0x111336 in _0x17416e?Lt(_0x17416e,_0x111336,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x371586}):_0x17416e[_0x111336]=_0x371586,X=(_0x557dd0,_0x123487)=>{const _0x334e3c=_0x40d818;for(var _0x27bc7e in _0x123487||(_0x123487={}))Nt['call'](_0x123487,_0x27bc7e)&&ze(_0x557dd0,_0x27bc7e,_0x123487[_0x27bc7e]);if(We){for(var _0x27bc7e of We(_0x123487))Pt[_0x334e3c(0x16d)](_0x123487,_0x27bc7e)&&ze(_0x557dd0,_0x27bc7e,_0x123487[_0x27bc7e]);}return _0x557dd0;},Ne=(_0x12d89f,_0x315f45)=>bt(_0x12d89f,At(_0x315f45)),Pe=(_0x251313,_0x1db38d,_0x18d55c)=>{const _0x44e256=_0x40d818;if(!_0x1db38d[_0x44e256(0x1be)](_0x251313))throw TypeError(_0x44e256(0x13a)+_0x18d55c);},E=(_0x40c802,_0x4fbb0c,_0x2d1cb0)=>(Pe(_0x40c802,_0x4fbb0c,'read\x20from\x20private\x20field'),_0x2d1cb0?_0x2d1cb0[_0x40d818(0x16d)](_0x40c802):_0x4fbb0c[_0x40d818(0x1bd)](_0x40c802)),i=(_0x574683,_0x6ae179,_0x236764)=>{const _0x411370=_0x40d818;if(_0x6ae179[_0x411370(0x1be)](_0x574683))throw TypeError(_0x411370(0x1b6));_0x6ae179 instanceof WeakSet?_0x6ae179['add'](_0x574683):_0x6ae179[_0x411370(0x1c5)](_0x574683,_0x236764);},v=(_0x4dfc2d,_0x496cc9,_0x3898df,_0x262c2e)=>(Pe(_0x4dfc2d,_0x496cc9,_0x40d818(0x203)),_0x262c2e?_0x262c2e['call'](_0x4dfc2d,_0x3898df):_0x496cc9[_0x40d818(0x1c5)](_0x4dfc2d,_0x3898df),_0x3898df),Ge=(_0x3d2a8a,_0x311c44,_0x3f3810,_0x54c461)=>({set '_'(_0x702662){v(_0x3d2a8a,_0x311c44,_0x702662,_0x3f3810);},get '_'(){return E(_0x3d2a8a,_0x311c44,_0x54c461);}}),r=(_0x28fa0d,_0x4f7d48,_0x829264)=>(Pe(_0x28fa0d,_0x4f7d48,'access\x20private\x20method'),_0x829264),c=(_0xf51968,_0x1250c6,_0x29835f)=>new Promise((_0xdda676,_0x59263a)=>{const _0x18c470=_0x40d818;var _0x429b43=_0x4157e0=>{try{_0x68cc28(_0x29835f['next'](_0x4157e0));}catch(_0x59baea){_0x59263a(_0x59baea);}},_0x283d1c=_0x4c73d4=>{const _0x5c9dd0=_0x192d;try{_0x68cc28(_0x29835f[_0x5c9dd0(0x1f1)](_0x4c73d4));}catch(_0x2a16b1){_0x59263a(_0x2a16b1);}},_0x68cc28=_0x2a08d9=>_0x2a08d9[_0x18c470(0x1b3)]?_0xdda676(_0x2a08d9['value']):Promise['resolve'](_0x2a08d9['value'])[_0x18c470(0x1ff)](_0x429b43,_0x283d1c);_0x68cc28((_0x29835f=_0x29835f[_0x18c470(0x173)](_0xf51968,_0x1250c6))['next']());});import{v4 as _0xf6323f}from'uuid';var je=(_0x4679ed=>(_0x4679ed['UTM_SOURCE']=_0x40d818(0x202),_0x4679ed[_0x40d818(0x19e)]=_0x40d818(0x1e9),_0x4679ed[_0x40d818(0x174)]=_0x40d818(0x1ba),_0x4679ed[_0x40d818(0x182)]=_0x40d818(0x172),_0x4679ed[_0x40d818(0x1f6)]='utm_content',_0x4679ed))(je||{}),Qe=new Set(Object['values'](je)),A=_0x40d818(0x1d7),qe=_0x40d818(0x1fc),De=_0x40d818(0x1c3),He=_0x40d818(0x1bc),Ue=_0x40d818(0x1d2),Ye=_0x40d818(0x13b),Xe=_0x40d818(0x185),Ze=_0x40d818(0x187);import _0x4da57d from'axios';import{AxiosQueueManager as _0x3c609a}from'axios-queue-js';function _0x31c2(){const _0x2ac1d5=['Safari','Unknown','forEach','propertyIsEnumerable','offline','Mobile','call','\x0aMergnError:\x20','href','Authorization','className','utm_term','apply','UTM_CAMPAIGN','addEventListener','uniqueIdentity','info','Error\x20setting\x20identity','\x0aHTTP\x20Status:\x20','offlineEvents','prototype','initialTime','setDebugLevel','campaignCustomerInstanceId','Mergn\x20is\x20offline!','Tracking\x20page\x20change','pathname','UTM_TERM','string','init','/customer','Viewed\x20Webpage','/set-identity','Internet\x20Explorer','Tracking\x20page\x20change\x20Time','close','error','1rBQyEQ','data','OriginateFrom:\x20','Mergn\x20SDK\x20is\x20disabled!','MergnError','isInitialized','IMMEDIATELY','Button\x20Click','common','remove','\x20has\x20invalid\x20attributeProperties:\x20','search','map','MSIE','Logging\x20in','URL','parse','getOwnPropertyDescriptors','UTM_MEDIUM','campaignEntryTime','#\x20recordAttribute','eventProperty','record\x20event','getInstance','customer','stringify','5MKKdvM','Close\x20Click','1845MuKwbh','Logging\x20in\x20Time','response','NONE','filter','Initializing\x20Mergn\x20SDK','value','hasOwnProperty','indexOf','.u-close-button','3496jgDzUp','done','14270uKReGf','[id^=\x22u_content_button_\x22]','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','Event\x20','defineProperty','keys','utm_campaign','Platform','/set-attribute','get','has','create','hostname','session','name','/attribute','#\x20Recording\x20event','set','106162PqRdjw','SESSION_CREATED','Recording\x20attribute','2553984RMDLhq','Event\x20Payload','location','Web','documentElement','innerHTML','Form\x20Submit','INFO:\x20','beforeunload','/event','getItem','body','Recording\x20attribute\x20Time','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Popup\x20Action','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','39pBeXfz','Firefox','Recording\x20event\x20Time','7FfPhva','action','\x20is\x20not\x20valid.','getTime','11Fvqfiy','ERROR','toISOString','os-version','message','status','attributes','application/json','length','utm_medium','onLine','Error\x20posting\x20attribute\x20record','page','Web\x20Session\x20Concluded','querySelectorAll','join','DELAY','throw','Logging\x20out\x20Time','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','defineProperties','push','UTM_CONTENT','.u-popup-container\x20img','Google\x20Chrome','Popup','createElement','disableSDK','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','operating-system','pushState','then','\x0aUnexpected\x20error:\x20','logout','utm_source','write\x20to\x20private\x20field','Error\x20fetching\x20attribute\x20data','preventDefault','load','group','Attribute\x20Payload:\x0a\x20','Recording\x20event','removeItem','Cannot\x20','/record-event','campaignEntryTimeValue','5366418htpeCc','debugLevel','recordAttribute','innerHeight','querySelector','INFO','\x20has\x20invalid\x20eventProperties:\x20','brand','SESSION_ID','scrollY','14yDpfRZ','ERROR:\x20','attributeProperty','events','Attribute\x20','form','post','userAgent','test','[id^=\x22u_content_form_\x22]','ttl','11637564iCkifp','Popup\x20View','identity','Checking\x20TTL\x20Time','log','zIndex','click','scrollHeight','setItem','submit','Image\x20Click','Logging\x20out','campaignId','Error\x20fetching\x20event\x20data','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','Web\x20Session\x20Started','ALL','apiKey','updateAPIKey','31071313zlQBfE','Mergn\x20not\x20initialized!'];_0x31c2=function(){return _0x2ac1d5;};return _0x31c2();}function _0x192d(_0x2b0531,_0x28058e){const _0x31c291=_0x31c2();return _0x192d=function(_0x192d81,_0x55af2a){_0x192d81=_0x192d81-0x138;let _0x151a7a=_0x31c291[_0x192d81];return _0x151a7a;},_0x192d(_0x2b0531,_0x28058e);}import _0x1204be from'axios-retry';import{AxiosError as _0x3e1876}from'axios';var Z=(_0xa693f7=>(_0xa693f7[_0xa693f7[_0x40d818(0x1ab)]=0x0]=_0x40d818(0x1ab),_0xa693f7[_0xa693f7['INFO']=0x1]=_0x40d818(0x142),_0xa693f7[_0xa693f7[_0x40d818(0x1e1)]=0x2]=_0x40d818(0x1e1),_0xa693f7[_0xa693f7[_0x40d818(0x162)]=0x3]='ALL',_0xa693f7))(Z||{}),u=(_0x187a1a,_0x1963c3)=>{const _0x31511a=_0x40d818;g[_0x31511a(0x13e)]!==0x0&&g['debugLevel']<=0x3&&(_0x187a1a===0x1?console[_0x31511a(0x177)](_0x31511a(0x1d0)+new Date()[_0x31511a(0x1e2)](),_0x1963c3):_0x187a1a===0x2&&console['error'](_0x31511a(0x148)+new Date()[_0x31511a(0x1e2)](),_0x1963c3));},m=(_0x5d66e7,_0x140d90)=>{const _0x1119e1=_0x40d818;g[_0x1119e1(0x13e)]!==0x0&&(_0x140d90?console['time'](_0x5d66e7):console['timeEnd'](_0x5d66e7));},S=(_0xfe7404,_0x1788ca)=>{const _0x1fe415=_0x40d818;g['debugLevel']!==0x0&&(_0x1788ca?console[_0x1fe415(0x207)](_0xfe7404):console['groupEnd']());},g=class extends Error{constructor(_0x2559fc){const _0x13afe2=_0x40d818;super(_0x2559fc),this[_0x13afe2(0x1c2)]=_0x13afe2(0x190);}};g[_0x40d818(0x1fb)]=!0x1,g['offline']=!navigator[_0x40d818(0x1ea)],g[_0x40d818(0x13e)]=0x0,g[_0x40d818(0x191)]=!0x1;var Ut=(_0x1a5a71,_0x1c3808)=>{const _0x4ade11=_0x40d818;_0x1c3808 instanceof g?u(0x2,_0x4ade11(0x18e)+_0x1a5a71+_0x4ade11(0x16e)+_0x1c3808[_0x4ade11(0x1e4)]):_0x1c3808 instanceof _0x3e1876?(u(0x2,_0x4ade11(0x18e)+_0x1a5a71+'\x0aAxiosError:\x20'+_0x1c3808[_0x4ade11(0x1e4)]),_0x1c3808[_0x4ade11(0x1aa)]?(u(0x2,_0x4ade11(0x18e)+_0x1a5a71+_0x4ade11(0x179)+_0x1c3808[_0x4ade11(0x1aa)][_0x4ade11(0x1e5)]),u(0x2,_0x4ade11(0x18e)+_0x1a5a71+'\x0aResponse\x20Data:\x20'+_0x1c3808['response']['data'])):_0x1c3808['request']?u(0x2,'OriginateFrom:\x20'+_0x1a5a71+_0x4ade11(0x160)):u(0x2,'OriginateFrom:\x20'+_0x1a5a71+'\x0aError\x20setting\x20up\x20the\x20request:\x20'+_0x1c3808[_0x4ade11(0x1e4)])):_0x1c3808 instanceof Error?u(0x2,'OriginateFrom:\x20'+_0x1a5a71+_0x4ade11(0x200)+_0x1c3808[_0x4ade11(0x1e4)]):u(0x2,_0x4ade11(0x18e)+_0x1a5a71+'\x0aUnexpected\x20error:\x20'+String(_0x1c3808));},O=(_0x492b2b,_0x5b20aa,_0x2d5bfe)=>c(void 0x0,null,function*(){const _0xfa2b0c=_0x40d818;try{if(g[_0xfa2b0c(0x1fb)])throw new g(_0xfa2b0c(0x18f));if(_0x492b2b!=='record\x20event'&&g['offline'])throw new g(_0xfa2b0c(0x17f));if(_0x492b2b!==_0xfa2b0c(0x184)&&!g[_0xfa2b0c(0x191)])throw new g(_0xfa2b0c(0x166));return yield _0x5b20aa();}catch(_0x5dc865){return _0x2d5bfe?_0x2d5bfe(_0x5dc865):(g[_0xfa2b0c(0x13e)]===0x2||g['debugLevel']===0x3)&&Ut(_0x492b2b,_0x5dc865),null;}}),w,_,F,M,ee,$,Ce,te,et,p=class p{constructor(){const _0x41e295=_0x40d818;i(this,ee,0x0);let _0x4d685b=_0x4da57d[_0x41e295(0x1bf)]({'baseURL':qe,'headers':{'Content-Type':_0x41e295(0x1e7)}});v(p,_,_0x4d685b),v(p,F,new _0x3c609a({'client':_0x4d685b,'queueSize':0xa})),_0x1204be(_0x4d685b,{'onRetry':_0xd334ea=>{const _0x1e7a79=_0x41e295;_0xd334ea>=E(p,M)?(g['showErrorLog']&&console[_0x1e7a79(0x156)](_0x1e7a79(0x1d6)),g[_0x1e7a79(0x1fb)]=!0x0):Ge(this,ee)['_']++;},'retries':E(p,M),'retryDelay':_0x51d725=>_0x51d725*0x1388});}static[_0x40d818(0x164)](_0x4736f2){const _0x1a76f4=_0x40d818;this[_0x1a76f4(0x163)]=_0x4736f2,r(this,te,et)['call'](this)['defaults']['headers'][_0x1a76f4(0x194)][_0x1a76f4(0x170)]=_0x4736f2;}static[_0x40d818(0x1bd)](_0x1ea452){const _0x165f21=_0x40d818;return r(this,$,Ce)[_0x165f21(0x16d)](this)[_0x165f21(0x1bd)](_0x1ea452);}static['post'](_0x47a9ee,_0xb5cf1e){const _0x3277be=_0x40d818;return r(this,$,Ce)[_0x3277be(0x16d)](this)[_0x3277be(0x14d)](_0x47a9ee,_0xb5cf1e||{});}};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,h,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,ye,mt,he,St,Re,It,Q,ke,Oe,vt,q,Je,we,ft,Le,Tt,H,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,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,ye),i(this,he),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 _0x454e4b=_0x192d;let _0x54b1d6=()=>{const _0x882d77=_0x192d;let _0x5c18d1=JSON[_0x882d77(0x19c)](localStorage[_0x882d77(0x1d3)](_0x882d77(0x1dd))||'{}');Object[_0x882d77(0x1b9)](_0x5c18d1)[_0x882d77(0x169)](_0x331c74=>{const _0xe44699=_0x882d77;_0x5c18d1[_0x331c74]['initialTime']=new Date()['getTime'](),_0x5c18d1[_0x331c74][_0xe44699(0x1ec)]=window[_0xe44699(0x1cb)][_0xe44699(0x1c0)]+window[_0xe44699(0x1cb)]['pathname'];}),localStorage[_0x882d77(0x15a)](_0x882d77(0x1dd),JSON['stringify'](_0x5c18d1));};_0x54b1d6(),window[_0x454e4b(0x175)](_0x454e4b(0x1d1),_0x54b1d6);}),i(this,z,_0x62ed57=>{const _0x78d8af=_0x192d;let _0x3de3ed=JSON[_0x78d8af(0x19c)](localStorage[_0x78d8af(0x1d3)]('action')||'{}');_0x3de3ed[_0x62ed57]&&delete _0x3de3ed[_0x62ed57],localStorage[_0x78d8af(0x15a)](_0x78d8af(0x1dd),JSON['stringify'](_0x3de3ed));}),i(this,Ee,()=>{const _0x1fb6d2=_0x192d;let _0x26ba48=JSON[_0x1fb6d2(0x19c)](localStorage[_0x1fb6d2(0x1d3)](_0x1fb6d2(0x1dd))||'{}');Object['keys'](_0x26ba48)['forEach'](_0x4b477b=>{const _0x2fd8fb=_0x1fb6d2;_0x26ba48[_0x4b477b]['message'][_0x2fd8fb(0x1c2)]===_0x2fd8fb(0x1f9)&&r(this,j,Be)['call'](this,_0x26ba48[_0x4b477b][_0x2fd8fb(0x15e)]);});});}static[_0x40d818(0x1a3)](){return E(L,N)||v(L,N,new L()),E(L,N);}[_0x40d818(0x184)](_0x79f509){const _0x5003b=_0x40d818;O(_0x5003b(0x184),()=>c(this,null,function*(){const _0x347b0f=_0x5003b;u(0x1,_0x347b0f(0x1ad)),S('Initializing\x20Mergn\x20SDK',!0x0),m('Mergn\x20SDK\x20Initialization\x20Time',!0x0),r(this,ce,ot)[_0x347b0f(0x16d)](this,_0x79f509),yield r(this,K,Me)[_0x347b0f(0x16d)](this),g[_0x347b0f(0x191)]=!0x0,setInterval(()=>c(this,null,function*(){const _0x294043=_0x347b0f;yield r(this,K,Me)[_0x294043(0x16d)](this);}),0x493e0),yield r(this,b,V)[_0x347b0f(0x16d)](this),window[_0x347b0f(0x175)]('online',()=>c(this,null,function*(){const _0x12a1ac=_0x347b0f;g['offline']=!0x1;let _0x358890=JSON[_0x12a1ac(0x19c)](localStorage[_0x12a1ac(0x1d3)](_0x12a1ac(0x17a))||'[]');Array['isArray'](_0x358890)&&(yield r(this,q,Je)['call'](this,{'customerId':localStorage[_0x12a1ac(0x1d3)](_0x12a1ac(0x1a4))||'','events':_0x358890}),localStorage[_0x12a1ac(0x139)](_0x12a1ac(0x17a))),r(this,b,V)[_0x12a1ac(0x16d)](this),r(this,U,ne)['call'](this);})),window[_0x347b0f(0x175)]('offline',()=>{const _0x1b88a4=_0x347b0f;g[_0x1b88a4(0x16b)]=!0x0;}),window[_0x347b0f(0x175)](_0x347b0f(0x206),()=>{const _0x55d40b=_0x347b0f;E(this,Ee)[_0x55d40b(0x16d)](this);});let _0x3eb1d5=history['pushState'];history[_0x347b0f(0x1fe)]=(..._0x1978c7)=>{const _0x2e0437=_0x347b0f;_0x3eb1d5[_0x2e0437(0x173)](history,_0x1978c7),r(this,W,$e)[_0x2e0437(0x16d)](this);},r(this,W,$e)[_0x347b0f(0x16d)](this),m('Mergn\x20SDK\x20Initialization\x20Time',!0x1),S(_0x347b0f(0x1ad),!0x1);}));}[_0x40d818(0x17d)](_0xbe18de){const _0x57fbb2=_0x40d818;if(!(_0xbe18de in Z)){console[_0x57fbb2(0x18b)](_0x57fbb2(0x1d8));return;}g[_0x57fbb2(0x13e)]=_0xbe18de;}[_0x40d818(0x13f)](_0x490c6e,_0x4eda85){const _0x3ea4d9=_0x40d818;O(_0x3ea4d9(0x13f),()=>c(this,null,function*(){const _0x3f1944=_0x3ea4d9;yield r(this,ie,tt)[_0x3f1944(0x16d)](this,_0x490c6e,_0x4eda85,void 0x0);}));}['login'](_0x5b1343){O('login',()=>c(this,null,function*(){const _0x2862b4=_0x192d;u(0x1,'Logging\x20in'),S(_0x2862b4(0x19a),!0x0),m(_0x2862b4(0x1a9),!0x0),u(0x1,'Identity:\x20'+_0x5b1343),yield r(this,D,re)['call'](this,_0x5b1343),m(_0x2862b4(0x1a9),!0x1),S(_0x2862b4(0x19a),!0x1);}));}[_0x40d818(0x201)](){O('logout',()=>c(this,null,function*(){const _0x232973=_0x192d;u(0x1,'Logging\x20out'),S(_0x232973(0x15d),!0x0),m(_0x232973(0x1f2),!0x0),r(this,H,Ke)[_0x232973(0x16d)](this),m(_0x232973(0x1f2),!0x1),S('Logging\x20out',!0x1);}));}['recordEvent'](_0x2433ae,_0x3ff124){const _0x7d83df=_0x40d818;O(_0x7d83df(0x1a2),()=>c(this,null,function*(){const _0x94778e=_0x7d83df;u(0x1,_0x94778e(0x138)),S(_0x94778e(0x138),!0x0),m(_0x94778e(0x1db),!0x0),u(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0x2433ae,'eventProperties':_0x3ff124}),yield r(this,f,h)[_0x94778e(0x16d)](this,_0x2433ae,_0x3ff124),m(_0x94778e(0x1db),!0x1),S(_0x94778e(0x138),!0x1);}));}};N=new WeakMap(),P=new WeakMap(),B=new WeakMap(),k=new WeakMap(),J=new WeakMap(),ie=new WeakSet(),tt=function(_0x482312,_0x11231e,_0x11967f){return c(this,null,function*(){const _0xa6ed30=_0x192d;yield O(_0xa6ed30(0x1a0),()=>c(this,null,function*(){const _0x70f921=_0xa6ed30;u(0x1,'Recording\x20attribute'),S(_0x70f921(0x1c8),!0x0),m(_0x70f921(0x1d5),!0x0),u(0x1,_0x70f921(0x208)+{'attributeName':_0x482312,'attributeProperties':_0x11967f,'attributeValue':_0x11231e}+')}'),yield r(this,b,V)[_0x70f921(0x16d)](this),yield r(this,be,yt)[_0x70f921(0x16d)](this);let _0x3d3d23=JSON[_0x70f921(0x19c)](localStorage['getItem'](_0x70f921(0x1e6))||'{}'),_0x1f6aac=_0x11967f?r(this,Q,ke)[_0x70f921(0x16d)](this,_0x3d3d23,_0x482312,_0x11967f):r(this,Q,ke)[_0x70f921(0x16d)](this,_0x3d3d23,_0x482312);if(typeof _0x1f6aac==_0x70f921(0x183)){u(0x2,_0x1f6aac);return;}r(this,U,ne)['call'](this);let {id:_0x576b73}=_0x3d3d23[_0x482312],_0xea3248={'attributeId':_0x576b73,'attributeProperties':_0x1f6aac,'customerId':localStorage[_0x70f921(0x1d3)]('customer')||'','value':_0x11231e};yield r(this,Ae,ht)['call'](this,_0xea3248),m('Recording\x20attribute\x20Time',!0x1),S(_0x70f921(0x1c8),!0x1);}));});},b=new WeakSet(),V=function(){return c(this,null,function*(){const _0x4dc7cc=_0x192d;u(0x1,'Checking\x20TTL'),S('Checking\x20TTL',!0x0),m(_0x4dc7cc(0x155),!0x0);let _0x5e6fbf=localStorage[_0x4dc7cc(0x1d3)]('ttl'),_0x35c604=!0x1;if(_0x5e6fbf){if(_0x35c604=new Date()[_0x4dc7cc(0x1df)]()-parseInt(_0x5e6fbf,0xa)>0x124f80,_0x35c604){let _0x144d74=localStorage[_0x4dc7cc(0x1d3)](_0x4dc7cc(0x1c1)),_0x17466a=localStorage[_0x4dc7cc(0x1d3)](_0x4dc7cc(0x151));_0x144d74&&_0x17466a&&r(this,f,h)['call'](this,_0x4dc7cc(0x1ed),[{'eventProperty':'SESSION_ID','value':localStorage[_0x4dc7cc(0x1d3)](_0x4dc7cc(0x1c1))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(_0x17466a,0xa))['toISOString']()}]),r(this,H,Ke)[_0x4dc7cc(0x16d)](this),localStorage[_0x4dc7cc(0x15a)](_0x4dc7cc(0x151),''+new Date()[_0x4dc7cc(0x1df)]());}}else localStorage[_0x4dc7cc(0x15a)](_0x4dc7cc(0x151),''+new Date()[_0x4dc7cc(0x1df)]());(!_0x5e6fbf||_0x35c604||r(this,le,it)['call'](this))&&(r(this,pe,st)[_0x4dc7cc(0x16d)](this),yield r(this,D,re)['call'](this),yield r(this,ge,at)[_0x4dc7cc(0x16d)](this)),m(_0x4dc7cc(0x155),!0x1),S('Checking\x20TTL',!0x1);});},f=new WeakSet(),h=function(_0x2e9b68,_0x52d502,_0x4af055,_0x314c00){return c(this,null,function*(){yield O('#\x20record\x20event',()=>c(this,null,function*(){const _0x2ec4a9=_0x192d;var _0x141aa5;u(0x1,_0x2ec4a9(0x1c4)),S(_0x2ec4a9(0x138),!0x0),m(_0x2ec4a9(0x1db),!0x0),u(0x1,_0x2ec4a9(0x1ca)),u(0x1,{'campaignCustomerInstanceId':_0x4af055,'eventName':_0x2e9b68,'eventProperties':_0x52d502,'name':_0x314c00}),_0x2e9b68!==_0x2ec4a9(0x1ed)&&(yield r(this,b,V)[_0x2ec4a9(0x16d)](this));let _0x10102b=[];_0x52d502&&_0x10102b['push'](..._0x52d502),_0x10102b['push']({'eventProperty':_0x2ec4a9(0x1bb),'value':E(this,P)}),_0x10102b['push']({'eventProperty':_0x2ec4a9(0x1fd),'value':E(this,k)}),_0x10102b['push']({'eventProperty':_0x2ec4a9(0x1e3),'value':E(this,B)});let _0xd0b36c=r(this,he,St)['call'](this),_0x9faa4f=r(this,Re,It)[_0x2ec4a9(0x16d)](this,_0xd0b36c,_0x2e9b68,_0x10102b);if(typeof _0x9faa4f=='string'){u(0x2,_0x9faa4f);return;}r(this,U,ne)[_0x2ec4a9(0x16d)](this);let {id:_0x142f5b}=_0xd0b36c[_0x2e9b68],_0x1a1e13=r(this,Oe,vt)['call'](this,X(Ne(X({},_0x4af055?{'campaignCustomerInstanceId':_0x4af055}:{}),{'eventId':_0x142f5b,'eventProperties':_0x9faa4f,'sessionId':localStorage[_0x2ec4a9(0x1d3)](_0x2ec4a9(0x1c1))||''}),_0x314c00?{'name':_0x314c00}:{}));if(g[_0x2ec4a9(0x16b)]){let _0x364853=JSON[_0x2ec4a9(0x19c)](localStorage[_0x2ec4a9(0x1d3)](_0x2ec4a9(0x17a))||'[]');_0x364853[_0x2ec4a9(0x1e8)]<=0x32&&(_0x364853[_0x2ec4a9(0x1f5)](..._0x1a1e13[_0x2ec4a9(0x14a)]),localStorage[_0x2ec4a9(0x15a)]('offlineEvents',JSON[_0x2ec4a9(0x1a5)](_0x364853)));return;}let _0x10beb0=yield r(this,q,Je)['call'](this,_0x1a1e13);(_0x141aa5=_0x10beb0==null?void 0x0:_0x10beb0[_0x2ec4a9(0x18d)])==null||_0x141aa5[_0x2ec4a9(0x169)](_0x54c83f=>{const _0x1af297=_0x2ec4a9;r(this,we,ft)[_0x1af297(0x16d)](this,_0x54c83f['message'][_0x1af297(0x1c2)])&&(r(this,Le,Tt)['call'](this,_0x54c83f),E(this,ue)[_0x1af297(0x16d)](this),r(this,j,Be)[_0x1af297(0x16d)](this,_0x54c83f['campaignId']));}),m('Recording\x20event\x20Time',!0x1),S(_0x2ec4a9(0x138),!0x1);}));});},ae=new WeakSet(),rt=function(){const _0x30bf92=_0x40d818;let _0x21faa7=navigator[_0x30bf92(0x14e)]['toLowerCase']();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x30bf92(0x14f)](_0x21faa7)?_0x30bf92(0x16c):/windows|macintosh|linux|x11/i[_0x30bf92(0x14f)](_0x21faa7)?_0x30bf92(0x1cc):_0x30bf92(0x168);},se=new WeakSet(),nt=function(){const _0xabf678=_0x40d818;let _0x3944a2=navigator['userAgent'],_0x33b00d;return _0x3944a2[_0xabf678(0x1b0)]('Chrome')>-0x1?_0x33b00d=_0xabf678(0x1f8):_0x3944a2['indexOf'](_0xabf678(0x167))>-0x1?_0x33b00d='Safari':_0x3944a2[_0xabf678(0x1b0)](_0xabf678(0x1da))>-0x1?_0x33b00d='Mozilla\x20Firefox':_0x3944a2[_0xabf678(0x1b0)]('Edg')>-0x1?_0x33b00d='Microsoft\x20Edge':_0x3944a2[_0xabf678(0x1b0)](_0xabf678(0x199))>-0x1?_0x33b00d=_0xabf678(0x188):_0x33b00d=_0xabf678(0x168),_0x33b00d;},K=new WeakSet(),Me=function(){return c(this,null,function*(){const _0xb10c97=_0x192d;try{yield R[_0xb10c97(0x1bd)](_0xb10c97(0x144));}catch(_0x3d484e){throw g[_0xb10c97(0x1fb)]=!0x0,_0x3d484e['message'];}});},W=new WeakSet(),$e=function(){return c(this,null,function*(){const _0x3a51e5=_0x192d;var _0x4f6034;u(0x1,_0x3a51e5(0x180)),S(_0x3a51e5(0x180),!0x0),m('Tracking\x20page\x20change\x20Time',!0x0);let _0x26eb05=(_0x4f6034=window==null?void 0x0:window['location'])==null?void 0x0:_0x4f6034[_0x3a51e5(0x16f)];if(_0x26eb05!==E(this,J)){v(this,J,_0x26eb05);let _0x599a60=[];new URLSearchParams(new URL(window[_0x3a51e5(0x1cb)][_0x3a51e5(0x16f)])[_0x3a51e5(0x197)])[_0x3a51e5(0x169)]((_0x12fe86,_0xa4a9d8)=>c(this,null,function*(){const _0x894d4c=_0x3a51e5;Qe[_0x894d4c(0x1be)](_0xa4a9d8)&&_0x599a60[_0x894d4c(0x1f5)]({'eventProperty':_0xa4a9d8,'value':_0x12fe86});})),yield r(this,f,h)[_0x3a51e5(0x16d)](this,_0x3a51e5(0x186),[{'eventProperty':_0x3a51e5(0x19b),'value':window[_0x3a51e5(0x1cb)][_0x3a51e5(0x181)]},..._0x599a60]);}m(_0x3a51e5(0x189),!0x1),S('Tracking\x20page\x20change',!0x1);});},ce=new WeakSet(),ot=function(_0x40d502){const _0x1138cf=_0x40d818;R[_0x1138cf(0x164)](_0x40d502),v(this,P,navigator[_0x1138cf(0x14e)]),v(this,B,r(this,se,nt)['call'](this)),v(this,k,r(this,ae,rt)['call'](this));},le=new WeakSet(),it=function(){const _0x34b3ac=_0x40d818;return!localStorage['getItem']('events')||!localStorage[_0x34b3ac(0x1d3)](_0x34b3ac(0x1a4))||!localStorage[_0x34b3ac(0x1d3)](_0x34b3ac(0x1e6))||!localStorage[_0x34b3ac(0x1d3)](_0x34b3ac(0x176))||!localStorage['getItem'](_0x34b3ac(0x1c1))||!localStorage[_0x34b3ac(0x1d3)](_0x34b3ac(0x1a4));},ge=new WeakSet(),at=function(){return c(this,null,function*(){const _0x42f7b3=_0x192d;yield r(this,de,ct)[_0x42f7b3(0x16d)](this),yield r(this,G,Ve)[_0x42f7b3(0x16d)](this),yield r(this,D,re)[_0x42f7b3(0x16d)](this);});},ue=new WeakMap(),z=new WeakMap(),Ee=new WeakMap(),pe=new WeakSet(),st=function(){const _0x5f378b=_0x40d818;let _0x21a63e=localStorage[_0x5f378b(0x1d3)]('uniqueIdentity');return _0x21a63e||(_0x21a63e=_0xf6323f(),localStorage[_0x5f378b(0x15a)](_0x5f378b(0x176),_0x21a63e)),_0x21a63e;},de=new WeakSet(),ct=function(){return c(this,null,function*(){const _0x274051=_0x192d;if(!localStorage[_0x274051(0x1d3)](_0x274051(0x14a))){let _0x4088b7=(yield r(this,me,lt)[_0x274051(0x16d)](this))[_0x274051(0x18d)];_0x4088b7&&localStorage[_0x274051(0x15a)](_0x274051(0x14a),JSON['stringify'](_0x4088b7));}});},me=new WeakSet(),lt=function(){return c(this,null,function*(){const _0x1be57e=_0x192d;try{return(yield R[_0x1be57e(0x1bd)](''+Ue))['data'];}catch(_0xbc5684){throw new Error(_0x1be57e(0x15f));}});},G=new WeakSet(),Ve=function(){return c(this,null,function*(){const _0x1f0480=_0x192d;if(!localStorage[_0x1f0480(0x1d3)]('attributes')){let _0xabc3a8=(yield r(this,Se,gt)[_0x1f0480(0x16d)](this))[_0x1f0480(0x18d)];_0xabc3a8&&localStorage['setItem']('attributes',JSON['stringify'](_0xabc3a8));}});},Se=new WeakSet(),gt=function(){return c(this,null,function*(){const _0x9f2df2=_0x192d;try{return(yield R[_0x9f2df2(0x1bd)](''+De))[_0x9f2df2(0x18d)];}catch(_0x23ec9a){throw new Error(_0x9f2df2(0x204));}});},D=new WeakSet(),re=function(_0x4429cd){return c(this,null,function*(){const _0x34f035=_0x192d;localStorage[_0x34f035(0x1d3)](_0x34f035(0x1c1))||(localStorage['setItem']('session',_0xf6323f()),yield r(this,f,h)['call'](this,_0x34f035(0x161),[{'eventProperty':_0x34f035(0x145),'value':localStorage[_0x34f035(0x1d3)](_0x34f035(0x1c1))},{'eventProperty':_0x34f035(0x1c7),'value':new Date(parseInt(localStorage['getItem'](_0x34f035(0x151))||'',0xa))[_0x34f035(0x1e2)]()}]));let _0x52f429={'deviceId':localStorage[_0x34f035(0x1d3)](_0x34f035(0x176))||_0xf6323f(),'os':E(this,P)};if(_0x4429cd)_0x52f429[_0x34f035(0x154)]=_0x4429cd;else{if(!_0x4429cd&&localStorage[_0x34f035(0x1d3)]('customer'))return;}try{let _0x306856=(yield r(this,Ie,ut)['call'](this,_0x52f429))[_0x34f035(0x18d)];_0x306856!==void 0x0&&localStorage[_0x34f035(0x15a)](_0x34f035(0x1a4),_0x306856);}catch(_0x1d2316){throw new Error(_0x34f035(0x178));}});},U=new WeakSet(),ne=function(){const _0x881701=_0x40d818;localStorage[_0x881701(0x15a)](_0x881701(0x151),''+new Date()[_0x881701(0x1df)]());},Ie=new WeakSet(),ut=function(_0x403923){return c(this,null,function*(){const _0x63fcc0=_0x192d;try{return(yield R[_0x63fcc0(0x14d)](''+Xe+Ze,_0x403923))['data'];}catch(_0x2dc239){throw new Error('Error\x20posting\x20identity\x20data');}});},j=new WeakSet(),Be=function(_0x381d37){const _0x40cb11=_0x40d818;let _0xb27aad=r(this,ve,Et)[_0x40cb11(0x16d)](this);if(_0xb27aad!=null&&_0xb27aad[_0x381d37])switch(_0xb27aad[_0x381d37][_0x40cb11(0x19f)]){case _0x40cb11(0x1f0):{r(this,Te,dt)[_0x40cb11(0x16d)](this,_0xb27aad[_0x381d37]);break;}case _0x40cb11(0x192):{r(this,x,oe)[_0x40cb11(0x16d)](this,_0xb27aad[_0x381d37]);break;}case'SCROLL':{r(this,fe,pt)[_0x40cb11(0x16d)](this,_0xb27aad[_0x381d37]);break;}default:return;}},ve=new WeakSet(),Et=function(){const _0x5177b0=_0x40d818;let _0x221c64=localStorage['getItem'](_0x5177b0(0x1dd));return _0x221c64?JSON[_0x5177b0(0x19c)](_0x221c64):null;},fe=new WeakSet(),pt=function(_0x543f24){const _0x23239f=_0x40d818;window[_0x23239f(0x175)]('scroll',()=>{const _0x594380=_0x23239f;var _0x2ae251;let _0x1c3179=window[_0x594380(0x140)],_0x423269=document[_0x594380(0x1cd)][_0x594380(0x159)];window[_0x594380(0x146)]/(_0x423269-_0x1c3179)*0x64>(((_0x2ae251=_0x543f24[_0x594380(0x13c)])==null?void 0x0:_0x2ae251[_0x594380(0x1ae)])||0x0)&&r(this,x,oe)[_0x594380(0x16d)](this,_0x543f24);});},Te=new WeakSet(),dt=function(_0x38eaab){const _0xab9923=_0x40d818;var _0x55be7c;let _0x4adc14=_0x38eaab[_0xab9923(0x17c)]-0x1f4+(((_0x55be7c=_0x38eaab['campaignEntryTimeValue'])==null?void 0x0:_0x55be7c[_0xab9923(0x1ae)])||0x0)*0x3e8-new Date()[_0xab9923(0x1df)]();_0x4adc14>0x0&&_0x38eaab['page']===window[_0xab9923(0x1cb)][_0xab9923(0x1c0)]+window['location'][_0xab9923(0x181)]&&setTimeout(()=>{const _0x55e00a=_0xab9923;E(this,z)[_0x55e00a(0x16d)](this,_0x38eaab['campaignId']),r(this,x,oe)[_0x55e00a(0x16d)](this,_0x38eaab);},_0x4adc14);},x=new WeakSet(),oe=function(_0xae2a37){const _0x3dad30=_0x40d818;let _0x36e571=r(this,ye,mt)[_0x3dad30(0x16d)](this,'div',_0xae2a37);document[_0x3dad30(0x1d4)]['appendChild'](_0x36e571),r(this,f,h)[_0x3dad30(0x16d)](this,A,[{'eventProperty':_0x3dad30(0x153),'value':JSON[_0x3dad30(0x1a5)]({'campaignId':_0xae2a37[_0x3dad30(0x15e)]})}],_0xae2a37[_0x3dad30(0x17e)],'view'),E(this,z)['call'](this,_0xae2a37[_0x3dad30(0x15e)]);},ye=new WeakSet(),mt=function(_0x171062,_0x36adf6){const _0x2a5713=_0x40d818;var _0x4e88a0;let {campaignCustomerInstanceId:_0x99cf48,campaignId:_0x53f263,message:{design:_0x3b30c7}}=_0x36adf6,_0x4569f8=document[_0x2a5713(0x1fa)](_0x171062);return _0x4569f8['id']='popup_container_'+_0x53f263,_0x4569f8[_0x2a5713(0x1ce)]=_0x3b30c7,_0x4569f8['style'][_0x2a5713(0x157)]='50',_0x4569f8[_0x2a5713(0x1ee)](_0x2a5713(0x150))['forEach'](_0x1c6259=>{const _0x442544=_0x2a5713;let _0x497806=_0x1c6259['querySelector'](_0x442544(0x14c));_0x497806&&_0x497806[_0x442544(0x175)](_0x442544(0x15b),_0x382be4=>c(this,null,function*(){const _0x21622b=_0x442544;_0x382be4[_0x21622b(0x205)]();let _0x10fdc3=new FormData(_0x497806),_0x5153a5={};for(let [_0x13de33,_0x430eb1]of _0x10fdc3['entries']())_0x5153a5[_0x13de33]=_0x430eb1;yield r(this,f,h)[_0x21622b(0x16d)](this,A,[{'eventProperty':_0x21622b(0x1cf),'value':JSON[_0x21622b(0x1a5)]({'campaignId':_0x53f263,'formId':_0x1c6259['id'],'formValues':_0x5153a5})}],_0x99cf48,_0x21622b(0x14c));}));}),(_0x4e88a0=_0x4569f8[_0x2a5713(0x141)](_0x2a5713(0x1b1)))==null||_0x4e88a0[_0x2a5713(0x175)](_0x2a5713(0x158),()=>c(this,null,function*(){const _0x57b4b9=_0x2a5713;_0x4569f8[_0x57b4b9(0x195)](),yield r(this,f,h)['call'](this,A,[{'eventProperty':_0x57b4b9(0x1a7),'value':JSON[_0x57b4b9(0x1a5)]({'campaignId':_0x53f263})}],_0x99cf48,_0x57b4b9(0x18a));})),_0x4569f8[_0x2a5713(0x1ee)](_0x2a5713(0x1b5))[_0x2a5713(0x169)](_0x784ecc=>{const _0x39aed7=_0x2a5713;_0x784ecc['addEventListener'](_0x39aed7(0x158),()=>c(this,null,function*(){const _0x423679=_0x39aed7;yield r(this,f,h)[_0x423679(0x16d)](this,A,[{'eventProperty':_0x423679(0x193),'value':JSON['stringify']({'buttonId':_0x784ecc['id'],'campaignId':_0x53f263})}],_0x99cf48,_0x423679(0x158));}));}),_0x4569f8[_0x2a5713(0x1ee)](_0x2a5713(0x1f7))[_0x2a5713(0x169)](_0x1dec7f=>{const _0x32b337=_0x2a5713;_0x1dec7f[_0x32b337(0x175)](_0x32b337(0x158),()=>c(this,null,function*(){const _0x12afd1=_0x32b337;yield r(this,f,h)[_0x12afd1(0x16d)](this,A,[{'eventProperty':_0x12afd1(0x15c),'value':JSON['stringify']({'campaignId':_0x53f263,'imageClassName':_0x1dec7f[_0x12afd1(0x171)],'imageId':_0x1dec7f['id']})}],_0x99cf48,'click');}));}),_0x4569f8;},he=new WeakSet(),St=function(){const _0x55f04b=_0x40d818;let _0x57418f=localStorage[_0x55f04b(0x1d3)](_0x55f04b(0x14a));return _0x57418f?JSON['parse'](_0x57418f):{};},Re=new WeakSet(),It=function(_0x391f55,_0x48cae2,_0x16d130){const _0x253fbd=_0x40d818;if(!Object[_0x253fbd(0x17b)][_0x253fbd(0x1af)][_0x253fbd(0x16d)](_0x391f55,_0x48cae2))return _0x253fbd(0x1b7)+_0x48cae2+_0x253fbd(0x1de);if(!_0x16d130)return[];let _0xb9b62b=_0x391f55[_0x48cae2];if(!(_0xb9b62b!=null&&_0xb9b62b['eventProperty']))return _0x253fbd(0x1b7)+_0x48cae2+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x375bd1=_0x16d130[_0x253fbd(0x1ac)](({eventProperty:_0x17398c})=>!Object[_0x253fbd(0x17b)][_0x253fbd(0x1af)][_0x253fbd(0x16d)](_0xb9b62b[_0x253fbd(0x1a1)],_0x17398c))['map'](({eventProperty:_0x211360})=>_0x211360);return _0x375bd1['length']>0x0?_0x253fbd(0x1b7)+_0x48cae2+_0x253fbd(0x143)+_0x375bd1[_0x253fbd(0x1ef)](',\x20')+'.':_0x16d130[_0x253fbd(0x198)](({eventProperty:_0x332cb0,value:_0xf4912e})=>({'eventPropertyId':_0xb9b62b[_0x253fbd(0x1a1)][_0x332cb0]['id'],'value':_0xf4912e}));},Q=new WeakSet(),ke=function(_0x3448ad,_0x5d9d14,_0x4220bc){const _0x52b6b6=_0x40d818;if(!Object[_0x52b6b6(0x17b)]['hasOwnProperty'][_0x52b6b6(0x16d)](_0x3448ad,_0x5d9d14))return _0x52b6b6(0x14b)+_0x5d9d14+_0x52b6b6(0x1de);if(!_0x4220bc)return[];let _0x43731b=_0x3448ad[_0x5d9d14];if(!(_0x43731b!=null&&_0x43731b['attributeProperty']))return _0x52b6b6(0x14b)+_0x5d9d14+_0x52b6b6(0x1f3);let _0x59a6dd=_0x4220bc[_0x52b6b6(0x1ac)](({attributeProperty:_0x5eb4d2})=>!Object[_0x52b6b6(0x17b)][_0x52b6b6(0x1af)][_0x52b6b6(0x16d)](_0x43731b[_0x52b6b6(0x149)],_0x5eb4d2))[_0x52b6b6(0x198)](({attributeProperty:_0x552583})=>_0x552583);return _0x59a6dd[_0x52b6b6(0x1e8)]>0x0?_0x52b6b6(0x14b)+_0x5d9d14+_0x52b6b6(0x196)+_0x59a6dd[_0x52b6b6(0x1ef)](',\x20')+'.':_0x4220bc[_0x52b6b6(0x198)](({attributeProperty:_0x150c9d,value:_0x2c6a37})=>({'attributePropertyId':_0x43731b[_0x52b6b6(0x149)][_0x150c9d]['id'],'value':_0x2c6a37}));},Oe=new WeakSet(),vt=function(_0x56b08a){return{'customerId':localStorage['getItem']('customer')||'','events':[_0x56b08a]};},q=new WeakSet(),Je=function(_0x37527b){return c(this,null,function*(){const _0x47c366=_0x192d;try{return(yield R[_0x47c366(0x14d)](''+Ue+Ye,_0x37527b))[_0x47c366(0x18d)];}catch(_0x2ec285){throw new Error('Error\x20posting\x20event\x20record');}});},we=new WeakSet(),ft=function(_0x46d440){const _0x524d36=_0x40d818;return _0x46d440===_0x524d36(0x1f9);},Le=new WeakSet(),Tt=function(_0x5e8e09){const _0x5d360e=_0x40d818;let _0x207cc8=JSON[_0x5d360e(0x19c)](localStorage[_0x5d360e(0x1d3)]('action')||'{}');_0x207cc8[_0x5e8e09[_0x5d360e(0x15e)]]=Ne(X({},_0x5e8e09),{'initialTime':new Date()['getTime'](),'page':window[_0x5d360e(0x1cb)][_0x5d360e(0x1c0)]+window[_0x5d360e(0x1cb)][_0x5d360e(0x181)]}),localStorage[_0x5d360e(0x15a)]('action',JSON[_0x5d360e(0x1a5)](_0x207cc8));},H=new WeakSet(),Ke=function(){const _0x5145c8=_0x40d818;localStorage[_0x5145c8(0x139)](_0x5145c8(0x1dd)),localStorage['removeItem'](_0x5145c8(0x14a)),localStorage[_0x5145c8(0x139)](_0x5145c8(0x1e6)),localStorage['removeItem']('offlineEvents'),localStorage['removeItem']('ttl'),localStorage[_0x5145c8(0x139)](_0x5145c8(0x1c1));},be=new WeakSet(),yt=function(){return c(this,null,function*(){const _0x5608fd=_0x192d;localStorage['getItem'](_0x5608fd(0x1e6))||(yield r(this,G,Ve)[_0x5608fd(0x16d)](this));});},Ae=new WeakSet(),ht=function(_0xe2d825){return c(this,null,function*(){const _0x4427a0=_0x192d;try{return yield R[_0x4427a0(0x14d)](''+De+He,_0xe2d825);}catch(_0x5ad17a){throw new Error(_0x4427a0(0x1eb));}});},i(L,N,void 0x0);var Fe=L,Rt=Fe['getInstance'](),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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergn-webapp-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",