@ordersune/crm-web-sdk 1.1.1 → 1.1.3

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
- function a0_0x17a8(_0x267c6b,_0x106147){const _0x226d20=a0_0x226d();return a0_0x17a8=function(_0x17a88f,_0xc77930){_0x17a88f=_0x17a88f-0x13d;let _0x5209d2=_0x226d20[_0x17a88f];return _0x5209d2;},a0_0x17a8(_0x267c6b,_0x106147);}function a0_0x226d(){const _0x48b3d6=['removeItem','textContent','version','2275QrkOlr','button1','onclick','attributeQueue','status','header','hexToColor','flexDirection','stringToBytes','20px','debug','storeUserProfile','queueEvent','500','timestamp','closeColor','6ba7b811-9dad-11d1-80b4-00c04fd430c8','mediaConfig','seq','currentUser','default','addEventListener','Error\x20processing\x20campaign\x20click:','left','getGuestUserId','push','Purchase\x20event\x20queued','{\x22name\x22:\x22@ordersune/crm-web-sdk\x22,\x22version\x22:\x221.1.1\x22,\x22main\x22:\x22dist/index.js\x22,\x22types\x22:\x22dist/index.d.ts\x22,\x22publishConfig\x22:{\x22access\x22:\x22public\x22},\x22scripts\x22:{\x22build\x22:\x22npm\x20run\x20build:bundle\x20&&\x20npm\x20run\x20build:types\x22,\x22build:bundle\x22:\x22webpack\x20--config\x20webpack.config.js\x22,\x22build:types\x22:\x22tsc\x20--emitDeclarationOnly\x20--outDir\x20dist\x22,\x22prepare\x22:\x22npm\x20run\x20build\x20&&\x20husky\x22,\x22release\x22:\x22bash\x20-c\x20\x27read\x20-p\x20\x5c\x22Enter\x20NPM\x20token:\x20\x5c\x22\x20NPM_TOKEN\x20&&\x20GIT_AUTHOR_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_AUTHOR_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20GIT_COMMITTER_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_COMMITTER_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20NPM_TOKEN=$NPM_TOKEN\x20semantic-release\x20--no-ci\x27\x22,\x22lint:commit\x22:\x22commitlint\x20--edit\x22},\x22files\x22:[\x22dist\x22,\x22README.md\x22],\x22dependencies\x22:{\x22uuid\x22:\x22^11.0.3\x22},\x22devDependencies\x22:{\x22@commitlint/cli\x22:\x22^20.1.0\x22,\x22@commitlint/config-conventional\x22:\x22^20.0.0\x22,\x22@semantic-release/changelog\x22:\x22^6.0.3\x22,\x22@semantic-release/git\x22:\x22^10.0.1\x22,\x22@semantic-release/npm\x22:\x22^13.1.2\x22,\x22@types/uuid\x22:\x22^9.0.0\x22,\x22husky\x22:\x22^9.1.7\x22,\x22javascript-obfuscator\x22:\x22^4.1.1\x22,\x22semantic-release\x22:\x22^25.0.2\x22,\x22terser-webpack-plugin\x22:\x22^5.3.14\x22,\x22ts-loader\x22:\x22^9.5.4\x22,\x22typescript\x22:\x22^5.0.0\x22,\x22webpack\x22:\x22^5.103.0\x22,\x22webpack-cli\x22:\x22^6.0.1\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22}}','getStoredUserProfile','loadCustomAttributes','innerHTML','target','test','fontSize','v6ToV1','borderColor','startBatchProcessing','top','8px\x200\x2024px\x200','button','logProductPurchase','application/json','position','substring','web','forceSend','SDK\x20not\x20fully\x20initialized,\x20waiting\x20for\x20initialization','buildPurchasePayload','endpoint','floor','\x20attributes','ceil','trackCustomAttribute','deviceId','storeDeviceId','isProcessingQueue','trim','color','padding','getItem','initialize','Invalid\x20UUID','\x20purchases,\x20','randomUUID','140px','now','Failed\x20to\x20detect\x20timezone','sendBatchToServer','129885rBmkaR','Batch\x20dispatched\x20successfully:\x20','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','createElement','284755JEsnha','Identifying\x20user','boxShadow','object','16px','redirect_to_web_url','bind','3798oqRnRU','apiKey','DNS','none','displayInAppMessage','Sending\x20batch\x20to\x20server','purchases','textAlign','Batch\x20processing\x20failed','requestId','fill','dispose','108XvsQlV','536958BTWElU','json','src','/analytics/data','removeChild','initializeDeviceDetails','resolvedOptions','absolute','User\x20data\x20cleared,\x20new\x20device\x20ID\x20generated','amd','600','22px','campaignId','guestUserId','keys','marginTop','12988327PcuMup','8px\x200','SDK\x20Initialized','0\x204px\x206px\x20rgba(0,\x200,\x200,\x200.1)','height','string','_blank','8710456TIOxnR','message','margin','sdkVersion','set','438612cFuDvo','processCampaignClick','processBatch','defineProperty','maxBatchSize','batchSize','type','flex','nsecs','Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','__esModule','msecs','unsafeStringify','modal','updateV7State','open','batchProcessingInterval','\x20is\x20out\x20of\x20buffer\x20bounds','batchInterval','storeCustomAttributes','toUpperCase','identify','log','app_started','center','onerror','21490QxUpVn','dismissMessageAutomatically','unshift','timezone','v1ToV6','right','openWebUrl','body','platform','getUserProfile','textColor','Async\x20initialization\x20failed','8px','logClick','validate','ffffffff-ffff-ffff-ffff-ffffffffffff','2px\x20solid\x20','borderRadius','fontWeight','exports','Initialization\x20failed','relative','logInAppMessageClick','trackEvent','9999','process\x20campaign\x20click\x20dispatched\x20successfully:\x20','1RsMnVz','WebSDK','getStoredDeviceId','DateTimeFormat','getRandomValues','gap','maxWidth','replace','URL','width','guest_user_','headerColor','buildCampaignPayload','justifyContent','slice','12px','100px','cursor','pointer','random','90%','.current_user','webOnClickAction','deviceDetails','deeplink_into_app','NIL','OrdersuneCRMWebSDK','API\x20key\x20and\x20endpoint\x20are\x20required','undefined','stringify','length','HTTP\x20error!\x20status:\x20','appendChild','dismissMessageInSeconds','inAppImage','style','catch','.custom_attributes','purchaseBatch','POST','Attribute\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','toLowerCase','div','display','contains','150JRMiCX','7iBgqzM','parse','events','alignItems','white','.device_id','eventQueue','fixed','messageColor','clearUserData','_v6','MAX','User\x20ID\x20must\x20be\x20a\x20string','webOnClickValue','border','userAttributes','backgroundColor','setItem','100%','\x20events,\x20','node','rng','Loaded\x20user\x20profile','UUID\x20byte\x20range\x20'];a0_0x226d=function(){return _0x48b3d6;};return a0_0x226d();}(function(_0x550abb,_0x512a00){const _0x98c54=a0_0x17a8,_0xb18a23=_0x550abb();while(!![]){try{const _0x5ac940=-parseInt(_0x98c54(0x157))/0x1*(-parseInt(_0x98c54(0x1fc))/0x2)+parseInt(_0x98c54(0x1e4))/0x3*(-parseInt(_0x98c54(0x1fb))/0x4)+parseInt(_0x98c54(0x1e8))/0x5*(-parseInt(_0x98c54(0x184))/0x6)+-parseInt(_0x98c54(0x185))/0x7*(parseInt(_0x98c54(0x213))/0x8)+-parseInt(_0x98c54(0x1ef))/0x9*(parseInt(_0x98c54(0x13d))/0xa)+-parseInt(_0x98c54(0x20c))/0xb+-parseInt(_0x98c54(0x218))/0xc*(-parseInt(_0x98c54(0x1a0))/0xd);if(_0x5ac940===_0x512a00)break;else _0xb18a23['push'](_0xb18a23['shift']());}catch(_0x27625b){_0xb18a23['push'](_0xb18a23['shift']());}}}(a0_0x226d,0xdaaea),!function webpackUniversalModuleDefinition(_0x9c2766,_0x1212b3){const _0x14bd40=a0_0x17a8;_0x14bd40(0x1eb)==typeof exports&&_0x14bd40(0x1eb)==typeof module?module[_0x14bd40(0x150)]=_0x1212b3():'function'==typeof define&&define[_0x14bd40(0x205)]?define(_0x14bd40(0x171),[],_0x1212b3):_0x14bd40(0x1eb)==typeof exports?exports[_0x14bd40(0x171)]=_0x1212b3():_0x9c2766[_0x14bd40(0x171)]=_0x1212b3();}(this,()=>((()=>{'use strict';var _0x3c76a2={0x10a(_0x18f67c,_0x1955ca){const _0x450e2c=a0_0x17a8;Object[_0x450e2c(0x21b)](_0x1955ca,_0x450e2c(0x223),{'value':!0x0}),_0x1955ca[_0x450e2c(0x22f)]=void 0x0,_0x1955ca[_0x450e2c(0x22f)]=(_0x160190,_0x9e4c7,..._0x2f4567)=>{_0x160190&&console['log']('[OrderSune\x20CRM]',_0x9e4c7,..._0x2f4567);};},0x1a7(_0x4bfd16,_0x4a8531,_0x54cef8){const _0xc437f=a0_0x17a8;Object[_0xc437f(0x21b)](_0x4a8531,'__esModule',{'value':!0x0}),_0x4a8531[_0xc437f(0x158)]=void 0x0;const _0x181160=_0x54cef8(0x10a),_0x3dff3e=_0x54cef8(0xb6),_0xd9c0f=_0x54cef8(0x14a),_0xefa20='os.',_0x1abf1b=_0xd9c0f[_0xc437f(0x19f)];_0x4a8531['WebSDK']=class WebSDK{constructor(_0x43518c){const _0x138aa6=_0xc437f;var _0x721dc8,_0x4d05ab,_0x57d8f5,_0x42fd13;if(this['maxBatchSize']=0xa,this[_0x138aa6(0x22b)]=0x2710,this[_0x138aa6(0x216)]=_0x1abf1b,this[_0x138aa6(0x18b)]=[],this[_0x138aa6(0x17d)]=[],this[_0x138aa6(0x1a3)]={},this['isProcessingQueue']=!0x1,this[_0x138aa6(0x145)]=_0x138aa6(0x1cc),!_0x43518c['apiKey']||!_0x43518c['endpoint'])throw new Error(_0x138aa6(0x172));this[_0x138aa6(0x1f0)]=_0x43518c['apiKey'],this[_0x138aa6(0x1d0)]=_0x43518c[_0x138aa6(0x1d0)],this[_0x138aa6(0x1aa)]=null!==(_0x721dc8=_0x43518c[_0x138aa6(0x1aa)])&&void 0x0!==_0x721dc8&&_0x721dc8,this['maxBatchSize']=null!==(_0x4d05ab=_0x43518c[_0x138aa6(0x21d)])&&void 0x0!==_0x4d05ab?_0x4d05ab:0xa,this[_0x138aa6(0x22b)]=null!==(_0x57d8f5=_0x43518c[_0x138aa6(0x22b)])&&void 0x0!==_0x57d8f5?_0x57d8f5:0x2710,this[_0x138aa6(0x145)]=null!==(_0x42fd13=_0x43518c['platform'])&&void 0x0!==_0x42fd13?_0x42fd13:_0x138aa6(0x1cc),this[_0x138aa6(0x1d5)]=this[_0x138aa6(0x159)]()||(0x0,_0x3dff3e['v4'])(),this['guestUserId']=this[_0x138aa6(0x1b8)](),this[_0x138aa6(0x1dc)]()[_0x138aa6(0x17b)](_0x3879e4=>{const _0x9fb5ad=_0x138aa6;(0x0,_0x181160[_0x9fb5ad(0x22f)])(this[_0x9fb5ad(0x1aa)],_0x9fb5ad(0x148),_0x3879e4);});}async[_0xc437f(0x1dc)](){const _0x553bdd=_0xc437f;try{(0x0,_0x181160[_0x553bdd(0x22f)])(this[_0x553bdd(0x1aa)],_0x553bdd(0x20e)),this[_0x553bdd(0x1d6)](),await this['initializeDeviceDetails'](),await this[_0x553bdd(0x1bd)]();const _0x40e604=this['getStoredUserProfile']();_0x40e604?(this['currentUser']=_0x40e604,(0x0,_0x181160[_0x553bdd(0x22f)])(this['debug'],_0x553bdd(0x19b),this[_0x553bdd(0x1b3)])):this[_0x553bdd(0x22e)]('');try{const _0x132cf0=Intl[_0x553bdd(0x15a)]()[_0x553bdd(0x202)]()['timeZone'];this[_0x553bdd(0x1d4)](_0x553bdd(0x140),_0x132cf0);}catch(_0x24845c){(0x0,_0x181160['log'])(this['debug'],_0x553bdd(0x1e2),_0x24845c);}this[_0x553bdd(0x1c4)](),this[_0x553bdd(0x154)](_0x553bdd(0x230),{});}catch(_0x404626){throw(0x0,_0x181160[_0x553bdd(0x22f)])(this[_0x553bdd(0x1aa)],_0x553bdd(0x151),_0x404626),_0x404626;}}[_0xc437f(0x22e)](_0x14d332){const _0x5e954d=_0xc437f;if(_0x5e954d(0x211)!=typeof _0x14d332)throw new Error(_0x5e954d(0x191));const _0x4d96a6=this[_0x5e954d(0x1bc)]();(null==_0x4d96a6?void 0x0:_0x4d96a6['id'])!==_0x14d332&&((0x0,_0x181160[_0x5e954d(0x22f)])(this['debug'],_0x5e954d(0x1e9),_0x14d332),this[_0x5e954d(0x1b3)]=_0x14d332?{'id':_0x14d332,'guestUserId':this[_0x5e954d(0x209)]}:{'id':this[_0x5e954d(0x209)],'guestUserId':this[_0x5e954d(0x209)]},this[_0x5e954d(0x1ab)]());}[_0xc437f(0x18e)](){const _0x2d0c04=_0xc437f;this['deviceId']=(0x0,_0x3dff3e['v4'])(),this[_0x2d0c04(0x209)]=this[_0x2d0c04(0x1b8)](),this['initializeDeviceDetails'](),this[_0x2d0c04(0x1b3)]={'id':this[_0x2d0c04(0x209)],'guestUserId':this['guestUserId']},this[_0x2d0c04(0x1a3)]={},this[_0x2d0c04(0x18b)]=[],this[_0x2d0c04(0x17d)]=[],this[_0x2d0c04(0x1d6)](),sessionStorage[_0x2d0c04(0x196)](''+_0xefa20+this['apiKey']+_0x2d0c04(0x16c),JSON[_0x2d0c04(0x174)](this[_0x2d0c04(0x1b3)])),sessionStorage['removeItem'](''+_0xefa20+this[_0x2d0c04(0x1f0)]+_0x2d0c04(0x17c)),this[_0x2d0c04(0x1aa)]&&(0x0,_0x181160[_0x2d0c04(0x22f)])(this[_0x2d0c04(0x1aa)],_0x2d0c04(0x204));}['trackEvent'](_0x3828af,_0x51c2e2={},_0x490625={}){const _0x289745=_0xc437f;if(!_0x3828af||_0x289745(0x211)!=typeof _0x3828af)throw new Error(_0x289745(0x221));const _0x2b607d={'deviceId':this[_0x289745(0x1d5)],'eventName':_0x3828af,'timestamp':_0x490625[_0x289745(0x1ae)]||Date[_0x289745(0x1e1)](),'requestId':_0x490625[_0x289745(0x1f8)]||(0x0,_0x3dff3e['v4'])(),'properties':_0x51c2e2};this[_0x289745(0x1ac)](_0x2b607d);}['setToken'](_0x2bf05c){const _0x39986f=_0xc437f;this[_0x39986f(0x16e)]&&(this[_0x39986f(0x16e)]={...this[_0x39986f(0x16e)],'pushToken':_0x2bf05c});}[_0xc437f(0x1d4)](_0x45e378,_0x2dc17f){const _0x18c128=_0xc437f;if(!_0x45e378||_0x18c128(0x211)!=typeof _0x45e378)throw new Error(_0x18c128(0x17f));this[_0x18c128(0x1a3)]={...this[_0x18c128(0x1a3)],[_0x45e378]:_0x2dc17f},(0x0,_0x181160[_0x18c128(0x22f)])(this['debug'],'Custom\x20attribute\x20queued',_0x45e378,_0x2dc17f),this[_0x18c128(0x22c)]();}[_0xc437f(0x1c8)](_0x2b2b45,_0x6b8965,_0x4e927c,_0x42197f,_0x154df6,_0x432869,_0x262bbe,_0x3c8fd1){const _0x4dfdc1=_0xc437f,_0x5c5317=this[_0x4dfdc1(0x1cf)]({'externalId':_0x2b2b45,'itemId':_0x6b8965,'itemName':_0x4e927c,'unitPrice':_0x42197f,'quantity':_0x154df6,'source':_0x432869,'channel':_0x262bbe,'itemCategory':_0x3c8fd1});this[_0x4dfdc1(0x17d)][_0x4dfdc1(0x1b9)](_0x5c5317),this[_0x4dfdc1(0x1aa)]&&(0x0,_0x181160['log'])(this[_0x4dfdc1(0x1aa)],_0x4dfdc1(0x1ba),_0x5c5317);}[_0xc437f(0x146)](){const _0x56e6c=_0xc437f;return this[_0x56e6c(0x1b3)];}async[_0xc437f(0x1cd)](){const _0x52913f=_0xc437f;(this[_0x52913f(0x18b)][_0x52913f(0x175)]>0x0||this[_0x52913f(0x17d)]['length']>0x0||this[_0x52913f(0x1a3)][_0x52913f(0x175)]>0x0)&&await this[_0x52913f(0x21a)]();}[_0xc437f(0x1fa)](){const _0x283bd5=_0xc437f;this['batchProcessingInterval']&&clearInterval(this[_0x283bd5(0x229)]),(this[_0x283bd5(0x18b)][_0x283bd5(0x175)]>0x0||this['purchaseBatch']['length']>0x0||this[_0x283bd5(0x1a3)]['length']>0x0)&&this['processBatch']()[_0x283bd5(0x17b)](_0x18ac03=>{const _0x6c2261=_0x283bd5;(0x0,_0x181160[_0x6c2261(0x22f)])(this[_0x6c2261(0x1aa)],'Error\x20during\x20disposal',_0x18ac03);});}['getStoredDeviceId'](){const _0x5b6894=_0xc437f;return sessionStorage[_0x5b6894(0x1db)](''+_0xefa20+this[_0x5b6894(0x1f0)]+'.device_id');}[_0xc437f(0x1bc)](){const _0x3be6ab=_0xc437f,_0xb5cb4=sessionStorage[_0x3be6ab(0x1db)](''+_0xefa20+this['apiKey']+_0x3be6ab(0x16c));return _0xb5cb4?JSON[_0x3be6ab(0x186)](_0xb5cb4):null;}[_0xc437f(0x1d6)](){const _0x22cc43=_0xc437f;sessionStorage[_0x22cc43(0x196)](''+_0xefa20+this[_0x22cc43(0x1f0)]+_0x22cc43(0x18a),this[_0x22cc43(0x1d5)]);}[_0xc437f(0x1ab)](){const _0x5c8efc=_0xc437f;this[_0x5c8efc(0x1b3)]&&sessionStorage['setItem'](''+_0xefa20+this[_0x5c8efc(0x1f0)]+_0x5c8efc(0x16c),JSON[_0x5c8efc(0x174)](this[_0x5c8efc(0x1b3)]));}[_0xc437f(0x22c)](){const _0x2b358e=_0xc437f,_0x591abf=sessionStorage[_0x2b358e(0x1db)](''+_0xefa20+this['apiKey']+_0x2b358e(0x17c)),_0x33c20d={..._0x591abf?JSON[_0x2b358e(0x186)](_0x591abf):{},...this[_0x2b358e(0x1a3)]};sessionStorage['setItem'](''+_0xefa20+this[_0x2b358e(0x1f0)]+'.custom_attributes',JSON[_0x2b358e(0x174)](_0x33c20d));}async[_0xc437f(0x1bd)](){const _0x4db721=_0xc437f,_0x209a0f=sessionStorage[_0x4db721(0x1db)](''+_0xefa20+this['apiKey']+_0x4db721(0x17c));_0x209a0f&&(this[_0x4db721(0x1a3)]={...this[_0x4db721(0x1a3)],...JSON[_0x4db721(0x186)](_0x209a0f)});}[_0xc437f(0x1b8)](){const _0x1ec58f=_0xc437f;return _0x1ec58f(0x161)+this[_0x1ec58f(0x1d5)];}['buildPurchasePayload']({externalId:_0x59bcce,itemId:_0x3ada40,itemName:_0x464e16,unitPrice:_0x4d409b,quantity:_0x2dc666,source:_0x30be65,channel:_0x528158,itemCategory:_0x576e77}){const _0x1c1448=_0xc437f;return{'external_id':_0x59bcce,'item_id':_0x3ada40,'item_name':_0x464e16,'item_category':_0x576e77,'quantity':_0x2dc666,'unit_price':_0x4d409b,'total_price':_0x4d409b*_0x2dc666,'source':_0x30be65,'channel':_0x528158,'purchased_at':Date[_0x1c1448(0x1e1)]()};}async[_0xc437f(0x201)](){const _0xe9173c=_0xc437f;this[_0xe9173c(0x16e)]={'deviceId':this[_0xe9173c(0x1d5)],'platform':this[_0xe9173c(0x145)]};}[_0xc437f(0x1c4)](){const _0x3d495f=_0xc437f;this[_0x3d495f(0x229)]=setInterval(()=>{const _0x1b352a=_0x3d495f;(this['eventQueue'][_0x1b352a(0x175)]>0x0||this[_0x1b352a(0x17d)][_0x1b352a(0x175)]>0x0||this['attributeQueue']['length']>0x0)&&this[_0x1b352a(0x21a)]()[_0x1b352a(0x17b)](_0x4f6ed0=>{const _0x2b71f7=_0x1b352a;(0x0,_0x181160[_0x2b71f7(0x22f)])(this[_0x2b71f7(0x1aa)],_0x2b71f7(0x1f7),_0x4f6ed0);});},this[_0x3d495f(0x22b)]);}[_0xc437f(0x1ac)](_0x2e2e90){const _0x439b1f=_0xc437f;this[_0x439b1f(0x18b)][_0x439b1f(0x1b9)](_0x2e2e90),(0x0,_0x181160[_0x439b1f(0x22f)])(this[_0x439b1f(0x1aa)],'Event\x20queued',_0x2e2e90),this[_0x439b1f(0x18b)][_0x439b1f(0x175)]>=this[_0x439b1f(0x21c)]&&this[_0x439b1f(0x21a)]()[_0x439b1f(0x17b)](_0x4f43a4=>{const _0x529feb=_0x439b1f;(0x0,_0x181160[_0x529feb(0x22f)])(this[_0x529feb(0x1aa)],_0x529feb(0x1f7),_0x4f43a4);});}async[_0xc437f(0x21a)](){const _0x5d6806=_0xc437f;if(this[_0x5d6806(0x1d7)])return;this[_0x5d6806(0x1d7)]=!0x0;const _0x15a21d=[...this[_0x5d6806(0x18b)]],_0x145edc=[...this['purchaseBatch']],_0x48f81d={...this['attributeQueue']};this[_0x5d6806(0x18b)]=[],this['purchaseBatch']=[],this[_0x5d6806(0x1a3)]={};try{await this[_0x5d6806(0x1e3)](_0x15a21d,_0x145edc,_0x48f81d);}catch(_0x1abcb9){throw this[_0x5d6806(0x18b)][_0x5d6806(0x13f)](..._0x15a21d),this[_0x5d6806(0x17d)][_0x5d6806(0x13f)](..._0x145edc),this[_0x5d6806(0x1a3)]={...this[_0x5d6806(0x1a3)],..._0x48f81d},(0x0,_0x181160[_0x5d6806(0x22f)])(this[_0x5d6806(0x1aa)],_0x5d6806(0x1f7),_0x1abcb9),_0x1abcb9;}finally{this['isProcessingQueue']=!0x1;}}async[_0xc437f(0x1e3)](_0x3307aa,_0x1118b5,_0x5f0cb7){const _0x3b1037=_0xc437f;var _0x26e0fd,_0x91ee5c;this[_0x3b1037(0x16e)]||await this[_0x3b1037(0x201)]();const _0x1e8d23={'sdkVersion':this[_0x3b1037(0x216)],'deviceInfo':this[_0x3b1037(0x16e)],'userId':null===(_0x26e0fd=this[_0x3b1037(0x1b3)])||void 0x0===_0x26e0fd?void 0x0:_0x26e0fd['id'],'guestUserId':null===(_0x91ee5c=this[_0x3b1037(0x1b3)])||void 0x0===_0x91ee5c?void 0x0:_0x91ee5c['guestUserId'],'time':Date[_0x3b1037(0x1e1)](),'events':_0x3307aa,'purchases':_0x1118b5,'userAttributes':_0x5f0cb7};(0x0,_0x181160[_0x3b1037(0x22f)])(this[_0x3b1037(0x1aa)],_0x3b1037(0x1f4),_0x1e8d23);try{const _0x15b331=await fetch(this['endpoint']+_0x3b1037(0x1ff),{'method':'POST','headers':{'Content-Type':_0x3b1037(0x1c9),'x-api-key':this['apiKey']},'body':JSON[_0x3b1037(0x174)](_0x1e8d23)});if(!_0x15b331['ok'])throw new Error(_0x3b1037(0x176)+_0x15b331['status']);this[_0x3b1037(0x1aa)]&&(0x0,_0x181160[_0x3b1037(0x22f)])(this[_0x3b1037(0x1aa)],_0x3b1037(0x1e5)+_0x1e8d23[_0x3b1037(0x187)]['length']+_0x3b1037(0x198)+_0x1e8d23[_0x3b1037(0x1f5)][_0x3b1037(0x175)]+_0x3b1037(0x1de)+Object[_0x3b1037(0x20a)](_0x1e8d23[_0x3b1037(0x194)])[_0x3b1037(0x175)]+_0x3b1037(0x1d2)),await _0x15b331[_0x3b1037(0x1fd)](),Object[_0x3b1037(0x20a)](_0x5f0cb7)[_0x3b1037(0x175)]>0x0&&(this[_0x3b1037(0x1a3)]={},sessionStorage[_0x3b1037(0x19d)](''+_0xefa20+this['apiKey']+_0x3b1037(0x17c)));}catch(_0x230fa3){throw(0x0,_0x181160[_0x3b1037(0x22f)])(this[_0x3b1037(0x1aa)],'Failed\x20to\x20send\x20payload\x20to\x20server',_0x230fa3),_0x230fa3;}}[_0xc437f(0x1f3)](_0x5eddbb,_0x42d130,_0x174a27){const _0x1cb656=_0xc437f,_0x564f02=JSON[_0x1cb656(0x186)](_0x5eddbb),_0x4ec5a1=_0x564f02[_0x1cb656(0x1a5)],_0x23d028=_0x564f02[_0x1cb656(0x214)],_0x5cb22d=_0x564f02['modal'][_0x1cb656(0x1a1)],_0x47a89e=_0x564f02['modal']['button2'],_0x4eb44e=_0x5cb22d[_0x1cb656(0x21e)]||'',_0x39bf64=_0x47a89e[_0x1cb656(0x21e)]||'',_0x31a443=_0x564f02[_0x1cb656(0x1b1)][_0x1cb656(0x179)];this['showInAppMessage']({'context':_0x174a27,'title':_0x4ec5a1,'body':_0x23d028,'primaryButtonText':_0x4eb44e,'secondaryButtonText':_0x39bf64,'imageUrl':_0x31a443,'buttonPropertiesPrimary':_0x5cb22d,'buttonPropertiesSecondary':_0x47a89e,'dismissMessageAutomatically':_0x564f02[_0x1cb656(0x226)][_0x1cb656(0x13e)],'dismissMessageInSeconds':_0x564f02['modal'][_0x1cb656(0x178)],'headerColor':_0x564f02[_0x1cb656(0x226)][_0x1cb656(0x162)],'messageColor':_0x564f02[_0x1cb656(0x226)][_0x1cb656(0x18d)],'closeColor':_0x564f02[_0x1cb656(0x226)][_0x1cb656(0x1af)],'campaignId':_0x42d130});}[_0xc437f(0x1a6)](_0x46a2b6){const _0x2214ad=_0xc437f;return 0x6===(_0x46a2b6=_0x46a2b6[_0x2214ad(0x22d)]()[_0x2214ad(0x15e)]('#',''))[_0x2214ad(0x175)]?'#'+_0x46a2b6:'#'+_0x46a2b6[_0x2214ad(0x1cb)](0x2);}[_0xc437f(0x143)](_0x4cd3d2){const _0x191ef=_0xc437f;_0x4cd3d2&&window[_0x191ef(0x228)](_0x4cd3d2,_0x191ef(0x212));}['showInAppMessage'](_0x20f2d1){const _0x3a7a84=_0xc437f,{title:_0xcedade,body:_0x4c5dba,primaryButtonText:_0x55a28f,secondaryButtonText:_0x1e6d11,imageUrl:_0x2bdf7e,onClose:_0x344994,buttonPropertiesPrimary:_0x3e7551,buttonPropertiesSecondary:_0x102a2c,dismissMessageAutomatically:_0x4c72f7,dismissMessageInSeconds:_0x4db797,headerColor:_0x4e70f6,messageColor:_0x262534,closeColor:_0x5f0956,campaignId:_0x13cf42}=_0x20f2d1,_0x14188d=document['createElement']('div');_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x1ca)]=_0x3a7a84(0x18c),_0x14188d[_0x3a7a84(0x17a)]['top']='0',_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x1b7)]='0',_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x160)]='100%',_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x210)]='100%',_0x14188d[_0x3a7a84(0x17a)]['backgroundColor']='rgba(0,\x200,\x200,\x200.5)',_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x182)]=_0x3a7a84(0x21f),_0x14188d[_0x3a7a84(0x17a)]['justifyContent']=_0x3a7a84(0x231),_0x14188d[_0x3a7a84(0x17a)][_0x3a7a84(0x188)]=_0x3a7a84(0x231),_0x14188d[_0x3a7a84(0x17a)]['zIndex']=_0x3a7a84(0x155);const _0x49bfc7=document['createElement'](_0x3a7a84(0x181));_0x49bfc7['style'][_0x3a7a84(0x195)]=_0x3a7a84(0x189),_0x49bfc7[_0x3a7a84(0x17a)]['borderRadius']=_0x3a7a84(0x166),_0x49bfc7[_0x3a7a84(0x17a)][_0x3a7a84(0x1da)]=_0x3a7a84(0x1ec),_0x49bfc7[_0x3a7a84(0x17a)][_0x3a7a84(0x15d)]='400px',_0x49bfc7['style'][_0x3a7a84(0x160)]=_0x3a7a84(0x16b),_0x49bfc7['style'][_0x3a7a84(0x1ea)]=_0x3a7a84(0x20f),_0x49bfc7[_0x3a7a84(0x17a)][_0x3a7a84(0x1ca)]=_0x3a7a84(0x152);const _0x4201d6=document[_0x3a7a84(0x1e7)]('button');_0x4201d6[_0x3a7a84(0x1be)]='&times;',_0x4201d6[_0x3a7a84(0x17a)]['position']=_0x3a7a84(0x203),_0x4201d6['style'][_0x3a7a84(0x1c5)]=_0x3a7a84(0x149),_0x4201d6['style'][_0x3a7a84(0x142)]=_0x3a7a84(0x149),_0x4201d6[_0x3a7a84(0x17a)]['background']=_0x3a7a84(0x1f2),_0x4201d6[_0x3a7a84(0x17a)][_0x3a7a84(0x193)]=_0x3a7a84(0x1f2),_0x4201d6[_0x3a7a84(0x17a)][_0x3a7a84(0x1c1)]=_0x3a7a84(0x1a9),_0x4201d6['style'][_0x3a7a84(0x168)]=_0x3a7a84(0x169),_0x4201d6[_0x3a7a84(0x17a)]['color']=this[_0x3a7a84(0x1a6)](_0x5f0956),_0x4201d6[_0x3a7a84(0x1a2)]=()=>{const _0x29afe0=_0x3a7a84;_0x344994&&_0x344994(),this['logInAppMessageClick'](_0x13cf42,!0x1,!0x0,!0x0),document[_0x29afe0(0x144)][_0x29afe0(0x200)](_0x14188d);};const _0x1bf216=document[_0x3a7a84(0x1e7)](_0x3a7a84(0x181));if(_0x1bf216[_0x3a7a84(0x17a)]['display']=_0x3a7a84(0x21f),_0x1bf216['style'][_0x3a7a84(0x1a7)]='column',_0x1bf216[_0x3a7a84(0x17a)]['alignItems']=_0x3a7a84(0x231),_0x1bf216[_0x3a7a84(0x17a)][_0x3a7a84(0x1f6)]=_0x3a7a84(0x231),_0x2bdf7e&&''!==_0x2bdf7e[_0x3a7a84(0x1d8)]()){const _0x452f2d=document['createElement']('img');_0x452f2d[_0x3a7a84(0x1fe)]=_0x2bdf7e,_0x452f2d[_0x3a7a84(0x17a)][_0x3a7a84(0x160)]=_0x3a7a84(0x167),_0x452f2d[_0x3a7a84(0x17a)]['height']=_0x3a7a84(0x167),_0x452f2d[_0x3a7a84(0x17a)]['marginBottom']=_0x3a7a84(0x1ec),_0x452f2d[_0x3a7a84(0x17a)][_0x3a7a84(0x20b)]=_0x3a7a84(0x1ec),_0x452f2d[_0x3a7a84(0x232)]=()=>{const _0x362b92=_0x3a7a84;_0x452f2d['style'][_0x362b92(0x182)]=_0x362b92(0x1f2);},_0x1bf216[_0x3a7a84(0x177)](_0x452f2d);}const _0x1ed77e=document['createElement']('h2');_0x1ed77e[_0x3a7a84(0x19e)]=_0xcedade,_0x1ed77e[_0x3a7a84(0x17a)][_0x3a7a84(0x1c1)]=_0x3a7a84(0x207),_0x1ed77e[_0x3a7a84(0x17a)][_0x3a7a84(0x14f)]=_0x3a7a84(0x206),_0x1ed77e[_0x3a7a84(0x17a)]['color']=this[_0x3a7a84(0x1a6)](_0x4e70f6),_0x1ed77e[_0x3a7a84(0x17a)][_0x3a7a84(0x215)]=_0x3a7a84(0x20d),_0x1bf216[_0x3a7a84(0x177)](_0x1ed77e);const _0x5448c8=document[_0x3a7a84(0x1e7)]('p');_0x5448c8['textContent']=_0x4c5dba,_0x5448c8[_0x3a7a84(0x17a)][_0x3a7a84(0x1c1)]='14px',_0x5448c8['style'][_0x3a7a84(0x1d9)]=this[_0x3a7a84(0x1a6)](_0x262534),_0x5448c8[_0x3a7a84(0x17a)][_0x3a7a84(0x14f)]=_0x3a7a84(0x1ad),_0x5448c8[_0x3a7a84(0x17a)]['margin']=_0x3a7a84(0x1c6),_0x1bf216[_0x3a7a84(0x177)](_0x5448c8);const _0x817e10=()=>{const _0xf7486a=_0x3a7a84;'redirect_to_web_url'!==_0x3e7551[_0xf7486a(0x192)]&&_0xf7486a(0x16f)!==_0x3e7551['webOnClickValue']||this['openWebUrl'](_0x3e7551[_0xf7486a(0x16d)]||'');},_0x444d65=()=>{const _0x432933=_0x3a7a84;_0x432933(0x1ed)!==_0x102a2c['webOnClickValue']&&'deeplink_into_app'!==_0x102a2c[_0x432933(0x192)]||this['openWebUrl'](_0x102a2c[_0x432933(0x16d)]||'');},_0x595b28=document[_0x3a7a84(0x1e7)](_0x3a7a84(0x181));if(_0x595b28[_0x3a7a84(0x17a)][_0x3a7a84(0x182)]='flex',_0x595b28[_0x3a7a84(0x17a)][_0x3a7a84(0x164)]=_0x3a7a84(0x231),_0x595b28['style'][_0x3a7a84(0x160)]='100%',_0x595b28[_0x3a7a84(0x17a)][_0x3a7a84(0x15c)]=_0x3a7a84(0x1ec),_0x1e6d11&&''!==_0x1e6d11[_0x3a7a84(0x1d8)]()){const _0x343069=document['createElement'](_0x3a7a84(0x1c7));_0x343069['textContent']=_0x55a28f,_0x343069['style']['flex']='1',_0x343069['style'][_0x3a7a84(0x15d)]='140px',_0x343069['style']['padding']=_0x3a7a84(0x166),_0x343069['style'][_0x3a7a84(0x195)]=this[_0x3a7a84(0x1a6)](_0x3e7551[_0x3a7a84(0x195)]),_0x343069[_0x3a7a84(0x17a)][_0x3a7a84(0x1d9)]=this[_0x3a7a84(0x1a6)](_0x3e7551['textColor']),_0x343069[_0x3a7a84(0x17a)]['border']=_0x3a7a84(0x14d)+this['hexToColor'](_0x3e7551[_0x3a7a84(0x1c3)]),_0x343069[_0x3a7a84(0x17a)][_0x3a7a84(0x14e)]=_0x3a7a84(0x149),_0x343069[_0x3a7a84(0x17a)][_0x3a7a84(0x1c1)]=_0x3a7a84(0x1ec),_0x343069[_0x3a7a84(0x17a)]['fontWeight']='600',_0x343069[_0x3a7a84(0x17a)][_0x3a7a84(0x168)]=_0x3a7a84(0x169),_0x343069['onclick']=()=>{const _0x32b4f9=_0x3a7a84;document[_0x32b4f9(0x144)][_0x32b4f9(0x200)](_0x14188d),_0x817e10();},_0x595b28[_0x3a7a84(0x177)](_0x343069);const _0x20653c=document[_0x3a7a84(0x1e7)](_0x3a7a84(0x1c7));_0x20653c[_0x3a7a84(0x19e)]=_0x1e6d11,_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x21f)]='1',_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x15d)]=_0x3a7a84(0x1e0),_0x20653c['style'][_0x3a7a84(0x1da)]=_0x3a7a84(0x166),_0x20653c[_0x3a7a84(0x17a)]['backgroundColor']=this['hexToColor'](_0x102a2c['backgroundColor']),_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x1d9)]=this[_0x3a7a84(0x1a6)](_0x102a2c['textColor']),_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x193)]='2px\x20solid\x20'+this[_0x3a7a84(0x1a6)](_0x102a2c[_0x3a7a84(0x1c3)]),_0x20653c['style'][_0x3a7a84(0x14e)]=_0x3a7a84(0x149),_0x20653c['style']['fontSize']=_0x3a7a84(0x1ec),_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x14f)]=_0x3a7a84(0x206),_0x20653c[_0x3a7a84(0x17a)][_0x3a7a84(0x168)]=_0x3a7a84(0x169),_0x20653c[_0x3a7a84(0x1a2)]=()=>{const _0x5a5625=_0x3a7a84;document[_0x5a5625(0x144)][_0x5a5625(0x200)](_0x14188d),this['logInAppMessageClick'](_0x13cf42,!0x0,!0x0,!0x1),_0x444d65();},_0x595b28[_0x3a7a84(0x177)](_0x20653c);}else{if(_0x55a28f&&''!==_0x55a28f[_0x3a7a84(0x1d8)]()){const _0x5e7cf8=document[_0x3a7a84(0x1e7)](_0x3a7a84(0x1c7));_0x5e7cf8['textContent']=_0x55a28f,_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x160)]=_0x3a7a84(0x197),_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x1da)]='12px',_0x5e7cf8['style'][_0x3a7a84(0x195)]=this[_0x3a7a84(0x1a6)](_0x3e7551[_0x3a7a84(0x195)]),_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x1d9)]=this['hexToColor'](_0x3e7551[_0x3a7a84(0x147)]),_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x193)]=_0x3a7a84(0x14d)+this[_0x3a7a84(0x1a6)](_0x3e7551[_0x3a7a84(0x1c3)]),_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x14e)]='8px',_0x5e7cf8[_0x3a7a84(0x17a)]['fontSize']=_0x3a7a84(0x1ec),_0x5e7cf8['style'][_0x3a7a84(0x14f)]=_0x3a7a84(0x206),_0x5e7cf8[_0x3a7a84(0x17a)][_0x3a7a84(0x168)]='pointer',_0x5e7cf8[_0x3a7a84(0x1a2)]=()=>{const _0x2a333e=_0x3a7a84;document[_0x2a333e(0x144)]['removeChild'](_0x14188d),this[_0x2a333e(0x153)](_0x13cf42,!0x0,!0x0,!0x1),_0x817e10();},_0x595b28['appendChild'](_0x5e7cf8);}}_0x49bfc7[_0x3a7a84(0x177)](_0x4201d6),_0x49bfc7[_0x3a7a84(0x177)](_0x1bf216),_0x1bf216['appendChild'](_0x595b28),_0x14188d[_0x3a7a84(0x177)](_0x49bfc7),document[_0x3a7a84(0x144)][_0x3a7a84(0x177)](_0x14188d),_0x4c72f7&&setTimeout(()=>{const _0x1f226f=_0x3a7a84;document[_0x1f226f(0x144)][_0x1f226f(0x183)](_0x14188d)&&document[_0x1f226f(0x144)][_0x1f226f(0x200)](_0x14188d);},0x3e8*parseInt(_0x4db797)),_0x14188d[_0x3a7a84(0x1b5)]('click',_0x5edc87=>{const _0x59505e=_0x3a7a84;_0x5edc87[_0x59505e(0x1bf)]===_0x14188d&&document['body'][_0x59505e(0x200)](_0x14188d);});}async[_0xc437f(0x153)](_0x38c22a,_0x2055dd,_0x13b429,_0x303211){const _0x1190fa=_0xc437f,_0x364f2b=await this[_0x1190fa(0x163)](_0x38c22a,_0x13b429,_0x2055dd,_0x303211);await this[_0x1190fa(0x219)](_0x364f2b);}async[_0xc437f(0x14a)](_0x215e2e){const _0x4fbd1b=_0xc437f;this[_0x4fbd1b(0x1b3)]&&this[_0x4fbd1b(0x16e)]||((0x0,_0x181160[_0x4fbd1b(0x22f)])(this[_0x4fbd1b(0x1aa)],_0x4fbd1b(0x1ce)),await this[_0x4fbd1b(0x1dc)]()),(this[_0x4fbd1b(0x18b)][_0x4fbd1b(0x175)]>0x0||this['purchaseBatch'][_0x4fbd1b(0x175)]>0x0||Object[_0x4fbd1b(0x20a)](this[_0x4fbd1b(0x1a3)])['length']>0x0)&&await this['forceSend']();const _0x2a683e=await this[_0x4fbd1b(0x163)](_0x215e2e,!0x0,!0x0);await this['processCampaignClick'](_0x2a683e);}async[_0xc437f(0x219)](_0xaa01a5){const _0x1e2d81=_0xc437f;try{const _0x51aeac=await fetch(this[_0x1e2d81(0x1d0)]+'/analytics/clicks',{'method':_0x1e2d81(0x17e),'headers':{'Content-Type':_0x1e2d81(0x1c9),'x-api-key':this['apiKey']},'body':JSON[_0x1e2d81(0x174)](_0xaa01a5)});if(!_0x51aeac['ok'])throw new Error(_0x1e2d81(0x176)+_0x51aeac[_0x1e2d81(0x1a4)]);this[_0x1e2d81(0x1aa)]&&(0x0,_0x181160[_0x1e2d81(0x22f)])(this[_0x1e2d81(0x1aa)],_0x1e2d81(0x156)+_0xaa01a5[_0x1e2d81(0x208)]);}catch(_0x751c21){throw(0x0,_0x181160['log'])(this['debug'],_0x1e2d81(0x1b6),_0x751c21),_0x751c21;}}async[_0xc437f(0x163)](_0x2e3979,_0x306204,_0x6755eb,_0x377d69){const _0x1da1ba=_0xc437f;var _0x2570d4,_0x4713c0;const _0x2399b2=Date[_0x1da1ba(0x1e1)](),_0x1c9dff={'campaignId':_0x2e3979,'opened':_0x306204,'clicked':_0x6755eb,'deviceId':this['deviceId'],'timestamp':_0x2399b2,'userId':null===(_0x2570d4=this[_0x1da1ba(0x1b3)])||void 0x0===_0x2570d4?void 0x0:_0x2570d4['id'],'guestUserId':null===(_0x4713c0=this['currentUser'])||void 0x0===_0x4713c0?void 0x0:_0x4713c0[_0x1da1ba(0x209)],'deviceInfo':this[_0x1da1ba(0x16e)]};return void 0x0!==_0x377d69&&(_0x1c9dff['dismissed']=_0x377d69),_0x1c9dff;}};},0xb6(_0x40150a,_0x1d2ef3,_0x280ff1){const _0x4eb91e=a0_0x17a8;Object['defineProperty'](_0x1d2ef3,_0x4eb91e(0x223),{'value':!0x0}),_0x1d2ef3['version']=_0x1d2ef3[_0x4eb91e(0x14b)]=_0x1d2ef3['v7']=_0x1d2ef3['v6ToV1']=_0x1d2ef3['v6']=_0x1d2ef3['v5']=_0x1d2ef3['v4']=_0x1d2ef3['v3']=_0x1d2ef3[_0x4eb91e(0x141)]=_0x1d2ef3['v1']=_0x1d2ef3['stringify']=_0x1d2ef3['parse']=_0x1d2ef3[_0x4eb91e(0x170)]=_0x1d2ef3[_0x4eb91e(0x190)]=void 0x0;var _0x503f2e=_0x280ff1(0xc4);Object[_0x4eb91e(0x21b)](_0x1d2ef3,_0x4eb91e(0x190),{'enumerable':!0x0,'get':function(){const _0x17b09d=_0x4eb91e;return _0x503f2e[_0x17b09d(0x1b4)];}});var _0x5dbee2=_0x280ff1(0x1d1);Object[_0x4eb91e(0x21b)](_0x1d2ef3,_0x4eb91e(0x170),{'enumerable':!0x0,'get':function(){const _0x436cdb=_0x4eb91e;return _0x5dbee2[_0x436cdb(0x1b4)];}});var _0x4b23d7=_0x280ff1(0x31d);Object[_0x4eb91e(0x21b)](_0x1d2ef3,_0x4eb91e(0x186),{'enumerable':!0x0,'get':function(){const _0x275341=_0x4eb91e;return _0x4b23d7[_0x275341(0x1b4)];}});var _0x15b88c=_0x280ff1(0xb);Object[_0x4eb91e(0x21b)](_0x1d2ef3,_0x4eb91e(0x174),{'enumerable':!0x0,'get':function(){const _0x484f40=_0x4eb91e;return _0x15b88c[_0x484f40(0x1b4)];}});var _0x168434=_0x280ff1(0x1a9);Object[_0x4eb91e(0x21b)](_0x1d2ef3,'v1',{'enumerable':!0x0,'get':function(){const _0x5197f4=_0x4eb91e;return _0x168434[_0x5197f4(0x1b4)];}});var _0x261f13=_0x280ff1(0x238);Object[_0x4eb91e(0x21b)](_0x1d2ef3,'v1ToV6',{'enumerable':!0x0,'get':function(){const _0x3363d7=_0x4eb91e;return _0x261f13[_0x3363d7(0x1b4)];}});var _0x2cd056=_0x280ff1(0x24f);Object[_0x4eb91e(0x21b)](_0x1d2ef3,'v3',{'enumerable':!0x0,'get':function(){const _0x6ba0e4=_0x4eb91e;return _0x2cd056[_0x6ba0e4(0x1b4)];}});var _0xe2e21=_0x280ff1(0x11e);Object['defineProperty'](_0x1d2ef3,'v4',{'enumerable':!0x0,'get':function(){return _0xe2e21['default'];}});var _0x388201=_0x280ff1(0x22d);Object['defineProperty'](_0x1d2ef3,'v5',{'enumerable':!0x0,'get':function(){return _0x388201['default'];}});var _0x1e77e0=_0x280ff1(0x164);Object[_0x4eb91e(0x21b)](_0x1d2ef3,'v6',{'enumerable':!0x0,'get':function(){const _0x39ce89=_0x4eb91e;return _0x1e77e0[_0x39ce89(0x1b4)];}});var _0x27d383=_0x280ff1(0x10c);Object['defineProperty'](_0x1d2ef3,_0x4eb91e(0x1c2),{'enumerable':!0x0,'get':function(){const _0x448d64=_0x4eb91e;return _0x27d383[_0x448d64(0x1b4)];}});var _0x4978e6=_0x280ff1(0x12b);Object['defineProperty'](_0x1d2ef3,'v7',{'enumerable':!0x0,'get':function(){const _0x515a6=_0x4eb91e;return _0x4978e6[_0x515a6(0x1b4)];}});var _0x1ba1cc=_0x280ff1(0x2ea);Object['defineProperty'](_0x1d2ef3,_0x4eb91e(0x14b),{'enumerable':!0x0,'get':function(){return _0x1ba1cc['default'];}});var _0x41bbf7=_0x280ff1(0x302);Object[_0x4eb91e(0x21b)](_0x1d2ef3,_0x4eb91e(0x19f),{'enumerable':!0x0,'get':function(){const _0x5d57ea=_0x4eb91e;return _0x41bbf7[_0x5d57ea(0x1b4)];}});},0xc4(_0x29a2bc,_0x51f009){const _0xa80912=a0_0x17a8;Object[_0xa80912(0x21b)](_0x51f009,_0xa80912(0x223),{'value':!0x0}),_0x51f009['default']=_0xa80912(0x14c);},0x152(_0xcc57ca,_0x4c113d){const _0x5c18a0=a0_0x17a8;function _0x322fd7(_0x3f000f){return 0xe+(_0x3f000f+0x40>>>0x9<<0x4)+0x1;}function _0x311955(_0x1df17d,_0x57ae70){const _0x4d6d6f=(0xffff&_0x1df17d)+(0xffff&_0x57ae70);return(_0x1df17d>>0x10)+(_0x57ae70>>0x10)+(_0x4d6d6f>>0x10)<<0x10|0xffff&_0x4d6d6f;}function _0x207405(_0x257595,_0x5ba964,_0xcbd5e9,_0x23701f,_0x36c237,_0x297702){return _0x311955(function _0x31e8d4(_0x11de93,_0xe2c706){return _0x11de93<<_0xe2c706|_0x11de93>>>0x20-_0xe2c706;}(_0x311955(_0x311955(_0x5ba964,_0x257595),_0x311955(_0x23701f,_0x297702)),_0x36c237),_0xcbd5e9);}function _0x251c08(_0x57bc0b,_0x55eb78,_0x20dada,_0x41f3fe,_0x54bc7c,_0x5c894f,_0x260f04){return _0x207405(_0x55eb78&_0x20dada|~_0x55eb78&_0x41f3fe,_0x57bc0b,_0x55eb78,_0x54bc7c,_0x5c894f,_0x260f04);}function _0x392f25(_0x20ab93,_0x51f357,_0x28d3fe,_0x4d2d74,_0x9d7fac,_0x3d683f,_0x7236eb){return _0x207405(_0x51f357&_0x4d2d74|_0x28d3fe&~_0x4d2d74,_0x20ab93,_0x51f357,_0x9d7fac,_0x3d683f,_0x7236eb);}function _0x1c3ca1(_0xdd08c2,_0x150544,_0x3e0b62,_0x4e886f,_0x5eb266,_0x37a6a3,_0x4ff7ce){return _0x207405(_0x150544^_0x3e0b62^_0x4e886f,_0xdd08c2,_0x150544,_0x5eb266,_0x37a6a3,_0x4ff7ce);}function _0x4988d6(_0x494328,_0x2e1ef3,_0x1df897,_0x5b7a68,_0x1e6b9e,_0x4ff9c1,_0x5c1513){return _0x207405(_0x1df897^(_0x2e1ef3|~_0x5b7a68),_0x494328,_0x2e1ef3,_0x1e6b9e,_0x4ff9c1,_0x5c1513);}Object[_0x5c18a0(0x21b)](_0x4c113d,_0x5c18a0(0x223),{'value':!0x0}),_0x4c113d['default']=function _0x54224d(_0x3d7115){const _0x4192e7=_0x5c18a0;return function _0x1bd55d(_0x440c14){const _0x2f934b=a0_0x17a8,_0x5df36c=new Uint8Array(0x4*_0x440c14['length']);for(let _0x1215cd=0x0;_0x1215cd<0x4*_0x440c14[_0x2f934b(0x175)];_0x1215cd++)_0x5df36c[_0x1215cd]=_0x440c14[_0x1215cd>>0x2]>>>_0x1215cd%0x4*0x8&0xff;return _0x5df36c;}(function _0x2b96d0(_0x2705de,_0x3dd3ba){const _0xb4393e=a0_0x17a8,_0x23b1a3=new Uint32Array(_0x322fd7(_0x3dd3ba))['fill'](0x0);_0x23b1a3[_0xb4393e(0x217)](_0x2705de),_0x23b1a3[_0x3dd3ba>>0x5]|=0x80<<_0x3dd3ba%0x20,_0x23b1a3[_0x23b1a3['length']-0x1]=_0x3dd3ba,_0x2705de=_0x23b1a3;let _0x13eb47=0x67452301,_0x573631=-0x10325477,_0x58af48=-0x67452302,_0x3ed734=0x10325476;for(let _0x5a755b=0x0;_0x5a755b<_0x2705de[_0xb4393e(0x175)];_0x5a755b+=0x10){const _0x3d340f=_0x13eb47,_0x50aa72=_0x573631,_0x1f533f=_0x58af48,_0x3e364c=_0x3ed734;_0x13eb47=_0x251c08(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b],0x7,-0x28955b88),_0x3ed734=_0x251c08(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x1],0xc,-0x173848aa),_0x58af48=_0x251c08(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x2],0x11,0x242070db),_0x573631=_0x251c08(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x3],0x16,-0x3e423112),_0x13eb47=_0x251c08(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x4],0x7,-0xa83f051),_0x3ed734=_0x251c08(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x5],0xc,0x4787c62a),_0x58af48=_0x251c08(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x6],0x11,-0x57cfb9ed),_0x573631=_0x251c08(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x7],0x16,-0x2b96aff),_0x13eb47=_0x251c08(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x8],0x7,0x698098d8),_0x3ed734=_0x251c08(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x9],0xc,-0x74bb0851),_0x58af48=_0x251c08(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xa],0x11,-0xa44f),_0x573631=_0x251c08(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xb],0x16,-0x76a32842),_0x13eb47=_0x251c08(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0xc],0x7,0x6b901122),_0x3ed734=_0x251c08(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xd],0xc,-0x2678e6d),_0x58af48=_0x251c08(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xe],0x11,-0x5986bc72),_0x573631=_0x251c08(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xf],0x16,0x49b40821),_0x13eb47=_0x392f25(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x1],0x5,-0x9e1da9e),_0x3ed734=_0x392f25(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x6],0x9,-0x3fbf4cc0),_0x58af48=_0x392f25(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xb],0xe,0x265e5a51),_0x573631=_0x392f25(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b],0x14,-0x16493856),_0x13eb47=_0x392f25(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x5],0x5,-0x29d0efa3),_0x3ed734=_0x392f25(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xa],0x9,0x2441453),_0x58af48=_0x392f25(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xf],0xe,-0x275e197f),_0x573631=_0x392f25(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x4],0x14,-0x182c0438),_0x13eb47=_0x392f25(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x9],0x5,0x21e1cde6),_0x3ed734=_0x392f25(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xe],0x9,-0x3cc8f82a),_0x58af48=_0x392f25(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x3],0xe,-0xb2af279),_0x573631=_0x392f25(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x8],0x14,0x455a14ed),_0x13eb47=_0x392f25(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0xd],0x5,-0x561c16fb),_0x3ed734=_0x392f25(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x2],0x9,-0x3105c08),_0x58af48=_0x392f25(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x7],0xe,0x676f02d9),_0x573631=_0x392f25(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xc],0x14,-0x72d5b376),_0x13eb47=_0x1c3ca1(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x5],0x4,-0x5c6be),_0x3ed734=_0x1c3ca1(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x8],0xb,-0x788e097f),_0x58af48=_0x1c3ca1(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xb],0x10,0x6d9d6122),_0x573631=_0x1c3ca1(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xe],0x17,-0x21ac7f4),_0x13eb47=_0x1c3ca1(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x1],0x4,-0x5b4115bc),_0x3ed734=_0x1c3ca1(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x4],0xb,0x4bdecfa9),_0x58af48=_0x1c3ca1(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x7],0x10,-0x944b4a0),_0x573631=_0x1c3ca1(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xa],0x17,-0x41404390),_0x13eb47=_0x1c3ca1(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0xd],0x4,0x289b7ec6),_0x3ed734=_0x1c3ca1(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b],0xb,-0x155ed806),_0x58af48=_0x1c3ca1(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x3],0x10,-0x2b10cf7b),_0x573631=_0x1c3ca1(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x6],0x17,0x4881d05),_0x13eb47=_0x1c3ca1(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x9],0x4,-0x262b2fc7),_0x3ed734=_0x1c3ca1(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xc],0xb,-0x1924661b),_0x58af48=_0x1c3ca1(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xf],0x10,0x1fa27cf8),_0x573631=_0x1c3ca1(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x2],0x17,-0x3b53a99b),_0x13eb47=_0x4988d6(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b],0x6,-0xbd6ddbc),_0x3ed734=_0x4988d6(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x7],0xa,0x432aff97),_0x58af48=_0x4988d6(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xe],0xf,-0x546bdc59),_0x573631=_0x4988d6(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x5],0x15,-0x36c5fc7),_0x13eb47=_0x4988d6(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0xc],0x6,0x655b59c3),_0x3ed734=_0x4988d6(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0x3],0xa,-0x70f3336e),_0x58af48=_0x4988d6(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0xa],0xf,-0x100b83),_0x573631=_0x4988d6(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x1],0x15,-0x7a7ba22f),_0x13eb47=_0x4988d6(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x8],0x6,0x6fa87e4f),_0x3ed734=_0x4988d6(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xf],0xa,-0x1d31920),_0x58af48=_0x4988d6(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x6],0xf,-0x5cfebcec),_0x573631=_0x4988d6(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0xd],0x15,0x4e0811a1),_0x13eb47=_0x4988d6(_0x13eb47,_0x573631,_0x58af48,_0x3ed734,_0x2705de[_0x5a755b+0x4],0x6,-0x8ac817e),_0x3ed734=_0x4988d6(_0x3ed734,_0x13eb47,_0x573631,_0x58af48,_0x2705de[_0x5a755b+0xb],0xa,-0x42c50dcb),_0x58af48=_0x4988d6(_0x58af48,_0x3ed734,_0x13eb47,_0x573631,_0x2705de[_0x5a755b+0x2],0xf,0x2ad7d2bb),_0x573631=_0x4988d6(_0x573631,_0x58af48,_0x3ed734,_0x13eb47,_0x2705de[_0x5a755b+0x9],0x15,-0x14792c6f),_0x13eb47=_0x311955(_0x13eb47,_0x3d340f),_0x573631=_0x311955(_0x573631,_0x50aa72),_0x58af48=_0x311955(_0x58af48,_0x1f533f),_0x3ed734=_0x311955(_0x3ed734,_0x3e364c);}return Uint32Array['of'](_0x13eb47,_0x573631,_0x58af48,_0x3ed734);}(function _0x16de43(_0xf53a52){const _0x53bcea=a0_0x17a8;if(0x0===_0xf53a52[_0x53bcea(0x175)])return new Uint32Array();const _0x33424a=new Uint32Array(_0x322fd7(0x8*_0xf53a52[_0x53bcea(0x175)]))[_0x53bcea(0x1f9)](0x0);for(let _0x47d681=0x0;_0x47d681<_0xf53a52['length'];_0x47d681++)_0x33424a[_0x47d681>>0x2]|=(0xff&_0xf53a52[_0x47d681])<<_0x47d681%0x4*0x8;return _0x33424a;}(_0x3d7115),0x8*_0x3d7115[_0x4192e7(0x175)]));};},0x30b(_0x36a3d6,_0x2d24f4){const _0x12f8c6=a0_0x17a8;Object['defineProperty'](_0x2d24f4,'__esModule',{'value':!0x0});const _0x13fb84=_0x12f8c6(0x173)!=typeof crypto&&crypto[_0x12f8c6(0x1df)]&&crypto[_0x12f8c6(0x1df)][_0x12f8c6(0x1ee)](crypto);_0x2d24f4['default']={'randomUUID':_0x13fb84};},0x1d1(_0x3dd4bd,_0x5332e1){const _0x5dde95=a0_0x17a8;Object['defineProperty'](_0x5332e1,_0x5dde95(0x223),{'value':!0x0}),_0x5332e1['default']='00000000-0000-0000-0000-000000000000';},0x31d(_0x92f972,_0x5f57ee,_0x2d3f82){const _0x1601c8=a0_0x17a8;Object[_0x1601c8(0x21b)](_0x5f57ee,_0x1601c8(0x223),{'value':!0x0});const _0x43bc20=_0x2d3f82(0x2ea);_0x5f57ee[_0x1601c8(0x1b4)]=function _0x584106(_0x5f46ab){const _0x57cd94=_0x1601c8;if(!(0x0,_0x43bc20['default'])(_0x5f46ab))throw TypeError(_0x57cd94(0x1dd));let _0x36c009;return Uint8Array['of']((_0x36c009=parseInt(_0x5f46ab[_0x57cd94(0x165)](0x0,0x8),0x10))>>>0x18,_0x36c009>>>0x10&0xff,_0x36c009>>>0x8&0xff,0xff&_0x36c009,(_0x36c009=parseInt(_0x5f46ab['slice'](0x9,0xd),0x10))>>>0x8,0xff&_0x36c009,(_0x36c009=parseInt(_0x5f46ab[_0x57cd94(0x165)](0xe,0x12),0x10))>>>0x8,0xff&_0x36c009,(_0x36c009=parseInt(_0x5f46ab['slice'](0x13,0x17),0x10))>>>0x8,0xff&_0x36c009,(_0x36c009=parseInt(_0x5f46ab[_0x57cd94(0x165)](0x18,0x24),0x10))/0x10000000000&0xff,_0x36c009/0x100000000&0xff,_0x36c009>>>0x18&0xff,_0x36c009>>>0x10&0xff,_0x36c009>>>0x8&0xff,0xff&_0x36c009);};},0x2b9(_0x27db94,_0x5c030d){const _0x4f3d0d=a0_0x17a8;Object['defineProperty'](_0x5c030d,'__esModule',{'value':!0x0}),_0x5c030d[_0x4f3d0d(0x1b4)]=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;},0x123(_0x1d19aa,_0x2d1a83){const _0x42f79d=a0_0x17a8;let _0x15d8d5;Object[_0x42f79d(0x21b)](_0x2d1a83,_0x42f79d(0x223),{'value':!0x0});const _0x46ef1f=new Uint8Array(0x10);_0x2d1a83[_0x42f79d(0x1b4)]=function _0x9adbc1(){const _0x3b7f47=_0x42f79d;if(!_0x15d8d5){if(_0x3b7f47(0x173)==typeof crypto||!crypto[_0x3b7f47(0x15b)])throw new Error(_0x3b7f47(0x1e6));_0x15d8d5=crypto[_0x3b7f47(0x15b)][_0x3b7f47(0x1ee)](crypto);}return _0x15d8d5(_0x46ef1f);};},0x33d(_0x599f07,_0x3df937){const _0x54ebf4=a0_0x17a8;function _0x3c5316(_0x100644,_0x555476,_0x180d0d,_0x1f58cc){switch(_0x100644){case 0x0:return _0x555476&_0x180d0d^~_0x555476&_0x1f58cc;case 0x1:case 0x3:return _0x555476^_0x180d0d^_0x1f58cc;case 0x2:return _0x555476&_0x180d0d^_0x555476&_0x1f58cc^_0x180d0d&_0x1f58cc;}}function _0x3609fe(_0x11fd92,_0x5e6cf8){return _0x11fd92<<_0x5e6cf8|_0x11fd92>>>0x20-_0x5e6cf8;}Object[_0x54ebf4(0x21b)](_0x3df937,_0x54ebf4(0x223),{'value':!0x0}),_0x3df937[_0x54ebf4(0x1b4)]=function _0x3d41eb(_0x678121){const _0x261d34=_0x54ebf4,_0x1035b6=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],_0x841724=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],_0x19e643=new Uint8Array(_0x678121[_0x261d34(0x175)]+0x1);_0x19e643[_0x261d34(0x217)](_0x678121),_0x19e643[_0x678121[_0x261d34(0x175)]]=0x80;const _0x2a1c9b=(_0x678121=_0x19e643)['length']/0x4+0x2,_0x299bf7=Math[_0x261d34(0x1d3)](_0x2a1c9b/0x10),_0x2d75e2=new Array(_0x299bf7);for(let _0x31a6bf=0x0;_0x31a6bf<_0x299bf7;++_0x31a6bf){const _0x2657bc=new Uint32Array(0x10);for(let _0x195c74=0x0;_0x195c74<0x10;++_0x195c74)_0x2657bc[_0x195c74]=_0x678121[0x40*_0x31a6bf+0x4*_0x195c74]<<0x18|_0x678121[0x40*_0x31a6bf+0x4*_0x195c74+0x1]<<0x10|_0x678121[0x40*_0x31a6bf+0x4*_0x195c74+0x2]<<0x8|_0x678121[0x40*_0x31a6bf+0x4*_0x195c74+0x3];_0x2d75e2[_0x31a6bf]=_0x2657bc;}_0x2d75e2[_0x299bf7-0x1][0xe]=0x8*(_0x678121[_0x261d34(0x175)]-0x1)/Math['pow'](0x2,0x20),_0x2d75e2[_0x299bf7-0x1][0xe]=Math[_0x261d34(0x1d1)](_0x2d75e2[_0x299bf7-0x1][0xe]),_0x2d75e2[_0x299bf7-0x1][0xf]=0x8*(_0x678121[_0x261d34(0x175)]-0x1)&0xffffffff;for(let _0x398ba9=0x0;_0x398ba9<_0x299bf7;++_0x398ba9){const _0x5cf1f4=new Uint32Array(0x50);for(let _0x5d4cb2=0x0;_0x5d4cb2<0x10;++_0x5d4cb2)_0x5cf1f4[_0x5d4cb2]=_0x2d75e2[_0x398ba9][_0x5d4cb2];for(let _0x32ce5f=0x10;_0x32ce5f<0x50;++_0x32ce5f)_0x5cf1f4[_0x32ce5f]=_0x3609fe(_0x5cf1f4[_0x32ce5f-0x3]^_0x5cf1f4[_0x32ce5f-0x8]^_0x5cf1f4[_0x32ce5f-0xe]^_0x5cf1f4[_0x32ce5f-0x10],0x1);let _0x47ddb9=_0x841724[0x0],_0x3ac1e6=_0x841724[0x1],_0x948d3f=_0x841724[0x2],_0x46d977=_0x841724[0x3],_0x2d609f=_0x841724[0x4];for(let _0x59bb0d=0x0;_0x59bb0d<0x50;++_0x59bb0d){const _0x486cf8=Math[_0x261d34(0x1d1)](_0x59bb0d/0x14),_0xd9d672=_0x3609fe(_0x47ddb9,0x5)+_0x3c5316(_0x486cf8,_0x3ac1e6,_0x948d3f,_0x46d977)+_0x2d609f+_0x1035b6[_0x486cf8]+_0x5cf1f4[_0x59bb0d]>>>0x0;_0x2d609f=_0x46d977,_0x46d977=_0x948d3f,_0x948d3f=_0x3609fe(_0x3ac1e6,0x1e)>>>0x0,_0x3ac1e6=_0x47ddb9,_0x47ddb9=_0xd9d672;}_0x841724[0x0]=_0x841724[0x0]+_0x47ddb9>>>0x0,_0x841724[0x1]=_0x841724[0x1]+_0x3ac1e6>>>0x0,_0x841724[0x2]=_0x841724[0x2]+_0x948d3f>>>0x0,_0x841724[0x3]=_0x841724[0x3]+_0x46d977>>>0x0,_0x841724[0x4]=_0x841724[0x4]+_0x2d609f>>>0x0;}return Uint8Array['of'](_0x841724[0x0]>>0x18,_0x841724[0x0]>>0x10,_0x841724[0x0]>>0x8,_0x841724[0x0],_0x841724[0x1]>>0x18,_0x841724[0x1]>>0x10,_0x841724[0x1]>>0x8,_0x841724[0x1],_0x841724[0x2]>>0x18,_0x841724[0x2]>>0x10,_0x841724[0x2]>>0x8,_0x841724[0x2],_0x841724[0x3]>>0x18,_0x841724[0x3]>>0x10,_0x841724[0x3]>>0x8,_0x841724[0x3],_0x841724[0x4]>>0x18,_0x841724[0x4]>>0x10,_0x841724[0x4]>>0x8,_0x841724[0x4]);};},0xb(_0x21cbe5,_0x5517e7,_0x2fe683){const _0x3fed85=a0_0x17a8;Object['defineProperty'](_0x5517e7,_0x3fed85(0x223),{'value':!0x0}),_0x5517e7[_0x3fed85(0x225)]=void 0x0;const _0x53a1ac=_0x2fe683(0x2ea),_0x103ef5=[];for(let _0xcdc920=0x0;_0xcdc920<0x100;++_0xcdc920)_0x103ef5[_0x3fed85(0x1b9)]((_0xcdc920+0x100)['toString'](0x10)[_0x3fed85(0x165)](0x1));function _0x585dee(_0x3e08ba,_0x5041e7=0x0){const _0x8830b3=_0x3fed85;return(_0x103ef5[_0x3e08ba[_0x5041e7+0x0]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x1]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x2]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x3]]+'-'+_0x103ef5[_0x3e08ba[_0x5041e7+0x4]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x5]]+'-'+_0x103ef5[_0x3e08ba[_0x5041e7+0x6]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x7]]+'-'+_0x103ef5[_0x3e08ba[_0x5041e7+0x8]]+_0x103ef5[_0x3e08ba[_0x5041e7+0x9]]+'-'+_0x103ef5[_0x3e08ba[_0x5041e7+0xa]]+_0x103ef5[_0x3e08ba[_0x5041e7+0xb]]+_0x103ef5[_0x3e08ba[_0x5041e7+0xc]]+_0x103ef5[_0x3e08ba[_0x5041e7+0xd]]+_0x103ef5[_0x3e08ba[_0x5041e7+0xe]]+_0x103ef5[_0x3e08ba[_0x5041e7+0xf]])[_0x8830b3(0x180)]();}_0x5517e7[_0x3fed85(0x225)]=_0x585dee,_0x5517e7[_0x3fed85(0x1b4)]=function _0x3fbf6a(_0x2ff86f,_0x327e08=0x0){const _0x2f6742=_0x3fed85,_0x381527=_0x585dee(_0x2ff86f,_0x327e08);if(!(0x0,_0x53a1ac[_0x2f6742(0x1b4)])(_0x381527))throw TypeError('Stringified\x20UUID\x20is\x20invalid');return _0x381527;};},0x1a9(_0x3ab79d,_0x1689a0,_0x3b9dfa){const _0x40db0a=a0_0x17a8;Object['defineProperty'](_0x1689a0,_0x40db0a(0x223),{'value':!0x0}),_0x1689a0['updateV1State']=void 0x0;const _0x43a036=_0x3b9dfa(0x123),_0x16b52f=_0x3b9dfa(0xb),_0x4711f0={};function _0x105fbd(_0x4e8733,_0x405379,_0x5d154c){const _0x369c1e=_0x40db0a;return _0x4e8733['msecs']??=-0x1/0x0,_0x4e8733[_0x369c1e(0x220)]??=0x0,_0x405379===_0x4e8733['msecs']?(_0x4e8733['nsecs']++,_0x4e8733['nsecs']>=0x2710&&(_0x4e8733[_0x369c1e(0x199)]=void 0x0,_0x4e8733[_0x369c1e(0x220)]=0x0)):_0x405379>_0x4e8733[_0x369c1e(0x224)]?_0x4e8733[_0x369c1e(0x220)]=0x0:_0x405379<_0x4e8733[_0x369c1e(0x224)]&&(_0x4e8733[_0x369c1e(0x199)]=void 0x0),_0x4e8733[_0x369c1e(0x199)]||(_0x4e8733[_0x369c1e(0x199)]=_0x5d154c[_0x369c1e(0x165)](0xa,0x10),_0x4e8733[_0x369c1e(0x199)][0x0]|=0x1,_0x4e8733['clockseq']=0x3fff&(_0x5d154c[0x8]<<0x8|_0x5d154c[0x9])),_0x4e8733['msecs']=_0x405379,_0x4e8733;}function _0x961d12(_0x10a3c5,_0x4f0bc4,_0xcd4e2b,_0x47351c,_0x2600da,_0x3d25f1,_0x532149=0x0){const _0x247d1f=_0x40db0a;if(_0x10a3c5[_0x247d1f(0x175)]<0x10)throw new Error(_0x247d1f(0x222));if(_0x3d25f1){if(_0x532149<0x0||_0x532149+0x10>_0x3d25f1['length'])throw new RangeError('UUID\x20byte\x20range\x20'+_0x532149+':'+(_0x532149+0xf)+_0x247d1f(0x22a));}else _0x3d25f1=new Uint8Array(0x10),_0x532149=0x0;_0x4f0bc4??=Date[_0x247d1f(0x1e1)](),_0xcd4e2b??=0x0,_0x47351c??=0x3fff&(_0x10a3c5[0x8]<<0x8|_0x10a3c5[0x9]),_0x2600da??=_0x10a3c5[_0x247d1f(0x165)](0xa,0x10);const _0x4bc3bd=(0x2710*(0xfffffff&(_0x4f0bc4+=0xb1d069b5400))+_0xcd4e2b)%0x100000000;_0x3d25f1[_0x532149++]=_0x4bc3bd>>>0x18&0xff,_0x3d25f1[_0x532149++]=_0x4bc3bd>>>0x10&0xff,_0x3d25f1[_0x532149++]=_0x4bc3bd>>>0x8&0xff,_0x3d25f1[_0x532149++]=0xff&_0x4bc3bd;const _0x43cb72=_0x4f0bc4/0x100000000*0x2710&0xfffffff;_0x3d25f1[_0x532149++]=_0x43cb72>>>0x8&0xff,_0x3d25f1[_0x532149++]=0xff&_0x43cb72,_0x3d25f1[_0x532149++]=_0x43cb72>>>0x18&0xf|0x10,_0x3d25f1[_0x532149++]=_0x43cb72>>>0x10&0xff,_0x3d25f1[_0x532149++]=_0x47351c>>>0x8|0x80,_0x3d25f1[_0x532149++]=0xff&_0x47351c;for(let _0x134937=0x0;_0x134937<0x6;++_0x134937)_0x3d25f1[_0x532149++]=_0x2600da[_0x134937];return _0x3d25f1;}_0x1689a0['updateV1State']=_0x105fbd,_0x1689a0[_0x40db0a(0x1b4)]=function _0x9661e6(_0x5159d2,_0xc21606,_0x58d61d){const _0x38e938=_0x40db0a;let _0x57338d;const _0x1a9ebf=_0x5159d2?.['_v6']??!0x1;if(_0x5159d2){const _0x2ef892=Object[_0x38e938(0x20a)](_0x5159d2);0x1===_0x2ef892[_0x38e938(0x175)]&&_0x38e938(0x18f)===_0x2ef892[0x0]&&(_0x5159d2=void 0x0);}if(_0x5159d2)_0x57338d=_0x961d12(_0x5159d2[_0x38e938(0x16a)]??_0x5159d2['rng']?.()??(0x0,_0x43a036[_0x38e938(0x1b4)])(),_0x5159d2['msecs'],_0x5159d2['nsecs'],_0x5159d2['clockseq'],_0x5159d2[_0x38e938(0x199)],_0xc21606,_0x58d61d);else{const _0x35ed0e=Date[_0x38e938(0x1e1)](),_0x3f2290=(0x0,_0x43a036[_0x38e938(0x1b4)])();_0x105fbd(_0x4711f0,_0x35ed0e,_0x3f2290),_0x57338d=_0x961d12(_0x3f2290,_0x4711f0[_0x38e938(0x224)],_0x4711f0[_0x38e938(0x220)],_0x1a9ebf?void 0x0:_0x4711f0['clockseq'],_0x1a9ebf?void 0x0:_0x4711f0[_0x38e938(0x199)],_0xc21606,_0x58d61d);}return _0xc21606??(0x0,_0x16b52f[_0x38e938(0x225)])(_0x57338d);};},0x238(_0x1348d2,_0x2e15fe,_0x3f42b7){const _0x12cc96=a0_0x17a8;Object[_0x12cc96(0x21b)](_0x2e15fe,_0x12cc96(0x223),{'value':!0x0});const _0x236bbf=_0x3f42b7(0x31d),_0x1d491c=_0x3f42b7(0xb);_0x2e15fe[_0x12cc96(0x1b4)]=function _0x117a46(_0x1e8f0b){const _0x5226bb=_0x12cc96,_0x4f0414=function _0x2da6f5(_0x271bb8){return Uint8Array['of']((0xf&_0x271bb8[0x6])<<0x4|_0x271bb8[0x7]>>0x4&0xf,(0xf&_0x271bb8[0x7])<<0x4|(0xf0&_0x271bb8[0x4])>>0x4,(0xf&_0x271bb8[0x4])<<0x4|(0xf0&_0x271bb8[0x5])>>0x4,(0xf&_0x271bb8[0x5])<<0x4|(0xf0&_0x271bb8[0x0])>>0x4,(0xf&_0x271bb8[0x0])<<0x4|(0xf0&_0x271bb8[0x1])>>0x4,(0xf&_0x271bb8[0x1])<<0x4|(0xf0&_0x271bb8[0x2])>>0x4,0x60|0xf&_0x271bb8[0x2],_0x271bb8[0x3],_0x271bb8[0x8],_0x271bb8[0x9],_0x271bb8[0xa],_0x271bb8[0xb],_0x271bb8[0xc],_0x271bb8[0xd],_0x271bb8[0xe],_0x271bb8[0xf]);}(_0x5226bb(0x211)==typeof _0x1e8f0b?(0x0,_0x236bbf[_0x5226bb(0x1b4)])(_0x1e8f0b):_0x1e8f0b);return _0x5226bb(0x211)==typeof _0x1e8f0b?(0x0,_0x1d491c[_0x5226bb(0x225)])(_0x4f0414):_0x4f0414;};},0x24f(_0x20f497,_0x5da4f2,_0x5e7765){const _0x1d6fa8=a0_0x17a8;Object[_0x1d6fa8(0x21b)](_0x5da4f2,'__esModule',{'value':!0x0}),_0x5da4f2[_0x1d6fa8(0x15f)]=_0x5da4f2[_0x1d6fa8(0x1f1)]=void 0x0;const _0xe3160c=_0x5e7765(0x152),_0x5bc64b=_0x5e7765(0x3dc);var _0x1dc0f6=_0x5e7765(0x3dc);function _0x51afc9(_0x68733e,_0x217493,_0x598d9f,_0x3414dd){const _0x24a37f=_0x1d6fa8;return(0x0,_0x5bc64b[_0x24a37f(0x1b4)])(0x30,_0xe3160c['default'],_0x68733e,_0x217493,_0x598d9f,_0x3414dd);}Object['defineProperty'](_0x5da4f2,_0x1d6fa8(0x1f1),{'enumerable':!0x0,'get':function(){const _0x1294fb=_0x1d6fa8;return _0x1dc0f6[_0x1294fb(0x1f1)];}}),Object[_0x1d6fa8(0x21b)](_0x5da4f2,_0x1d6fa8(0x15f),{'enumerable':!0x0,'get':function(){const _0x21dd85=_0x1d6fa8;return _0x1dc0f6[_0x21dd85(0x15f)];}}),_0x51afc9[_0x1d6fa8(0x1f1)]=_0x5bc64b[_0x1d6fa8(0x1f1)],_0x51afc9[_0x1d6fa8(0x15f)]=_0x5bc64b[_0x1d6fa8(0x15f)],_0x5da4f2[_0x1d6fa8(0x1b4)]=_0x51afc9;},0x3dc(_0x48841a,_0x2914cf,_0x5650cd){const _0x1266a8=a0_0x17a8;Object['defineProperty'](_0x2914cf,_0x1266a8(0x223),{'value':!0x0}),_0x2914cf[_0x1266a8(0x15f)]=_0x2914cf[_0x1266a8(0x1f1)]=_0x2914cf['stringToBytes']=void 0x0;const _0x46fa6f=_0x5650cd(0x31d),_0x6f4c7=_0x5650cd(0xb);function _0x4ae018(_0x937c66){const _0x312a25=_0x1266a8;_0x937c66=unescape(encodeURIComponent(_0x937c66));const _0x3ac972=new Uint8Array(_0x937c66[_0x312a25(0x175)]);for(let _0x81392b=0x0;_0x81392b<_0x937c66['length'];++_0x81392b)_0x3ac972[_0x81392b]=_0x937c66['charCodeAt'](_0x81392b);return _0x3ac972;}_0x2914cf[_0x1266a8(0x1a8)]=_0x4ae018,_0x2914cf[_0x1266a8(0x1f1)]='6ba7b810-9dad-11d1-80b4-00c04fd430c8',_0x2914cf[_0x1266a8(0x15f)]=_0x1266a8(0x1b0),_0x2914cf[_0x1266a8(0x1b4)]=function _0x21ab5d(_0x154abd,_0x317c08,_0x3a9703,_0x22628e,_0x1f906d,_0xaa2959){const _0x406b51=_0x1266a8,_0x1f2285=_0x406b51(0x211)==typeof _0x3a9703?_0x4ae018(_0x3a9703):_0x3a9703,_0x889f92=_0x406b51(0x211)==typeof _0x22628e?(0x0,_0x46fa6f['default'])(_0x22628e):_0x22628e;if(_0x406b51(0x211)==typeof _0x22628e&&(_0x22628e=(0x0,_0x46fa6f[_0x406b51(0x1b4)])(_0x22628e)),0x10!==_0x22628e?.[_0x406b51(0x175)])throw TypeError('Namespace\x20must\x20be\x20array-like\x20(16\x20iterable\x20integer\x20values,\x200-255)');let _0x703786=new Uint8Array(0x10+_0x1f2285[_0x406b51(0x175)]);if(_0x703786[_0x406b51(0x217)](_0x889f92),_0x703786[_0x406b51(0x217)](_0x1f2285,_0x889f92[_0x406b51(0x175)]),_0x703786=_0x317c08(_0x703786),_0x703786[0x6]=0xf&_0x703786[0x6]|_0x154abd,_0x703786[0x8]=0x3f&_0x703786[0x8]|0x80,_0x1f906d){_0xaa2959=_0xaa2959||0x0;for(let _0x482b15=0x0;_0x482b15<0x10;++_0x482b15)_0x1f906d[_0xaa2959+_0x482b15]=_0x703786[_0x482b15];return _0x1f906d;}return(0x0,_0x6f4c7[_0x406b51(0x225)])(_0x703786);};},0x11e(_0x32d800,_0x73cde3,_0x552b46){const _0x57a471=a0_0x17a8;Object[_0x57a471(0x21b)](_0x73cde3,'__esModule',{'value':!0x0});const _0x2eefba=_0x552b46(0x30b),_0x2d11db=_0x552b46(0x123),_0x165076=_0x552b46(0xb);_0x73cde3['default']=function _0x2de88e(_0x4c5585,_0x3df6e7,_0x46de8a){const _0x1ce89c=_0x57a471;if(_0x2eefba['default']['randomUUID']&&!_0x3df6e7&&!_0x4c5585)return _0x2eefba[_0x1ce89c(0x1b4)][_0x1ce89c(0x1df)]();const _0x13cc2a=(_0x4c5585=_0x4c5585||{})[_0x1ce89c(0x16a)]??_0x4c5585[_0x1ce89c(0x19a)]?.()??(0x0,_0x2d11db[_0x1ce89c(0x1b4)])();if(_0x13cc2a['length']<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');if(_0x13cc2a[0x6]=0xf&_0x13cc2a[0x6]|0x40,_0x13cc2a[0x8]=0x3f&_0x13cc2a[0x8]|0x80,_0x3df6e7){if((_0x46de8a=_0x46de8a||0x0)<0x0||_0x46de8a+0x10>_0x3df6e7[_0x1ce89c(0x175)])throw new RangeError(_0x1ce89c(0x19c)+_0x46de8a+':'+(_0x46de8a+0xf)+_0x1ce89c(0x22a));for(let _0x19e49f=0x0;_0x19e49f<0x10;++_0x19e49f)_0x3df6e7[_0x46de8a+_0x19e49f]=_0x13cc2a[_0x19e49f];return _0x3df6e7;}return(0x0,_0x165076[_0x1ce89c(0x225)])(_0x13cc2a);};},0x22d(_0x1f4f13,_0x53e7ab,_0x230ca6){const _0x33367d=a0_0x17a8;Object[_0x33367d(0x21b)](_0x53e7ab,_0x33367d(0x223),{'value':!0x0}),_0x53e7ab[_0x33367d(0x15f)]=_0x53e7ab[_0x33367d(0x1f1)]=void 0x0;const _0x294658=_0x230ca6(0x33d),_0x5a8ac8=_0x230ca6(0x3dc);var _0x42688c=_0x230ca6(0x3dc);function _0x2acc91(_0x30e2a5,_0x2aeaba,_0x2674e5,_0x4a390f){const _0x3a2532=_0x33367d;return(0x0,_0x5a8ac8[_0x3a2532(0x1b4)])(0x50,_0x294658[_0x3a2532(0x1b4)],_0x30e2a5,_0x2aeaba,_0x2674e5,_0x4a390f);}Object[_0x33367d(0x21b)](_0x53e7ab,'DNS',{'enumerable':!0x0,'get':function(){return _0x42688c['DNS'];}}),Object[_0x33367d(0x21b)](_0x53e7ab,'URL',{'enumerable':!0x0,'get':function(){const _0x570040=_0x33367d;return _0x42688c[_0x570040(0x15f)];}}),_0x2acc91['DNS']=_0x5a8ac8['DNS'],_0x2acc91[_0x33367d(0x15f)]=_0x5a8ac8['URL'],_0x53e7ab['default']=_0x2acc91;},0x164(_0x44a4c0,_0x271581,_0x21c118){const _0x309ec2=a0_0x17a8;Object[_0x309ec2(0x21b)](_0x271581,_0x309ec2(0x223),{'value':!0x0});const _0x574e36=_0x21c118(0xb),_0x368bed=_0x21c118(0x1a9),_0x2de2b1=_0x21c118(0x238);_0x271581[_0x309ec2(0x1b4)]=function _0x51cb93(_0x228073,_0x20d6af,_0x119401){const _0x2ef2d0=_0x309ec2;_0x228073??={},_0x119401??=0x0;let _0x4ccdf9=(0x0,_0x368bed[_0x2ef2d0(0x1b4)])({..._0x228073,'_v6':!0x0},new Uint8Array(0x10));if(_0x4ccdf9=(0x0,_0x2de2b1[_0x2ef2d0(0x1b4)])(_0x4ccdf9),_0x20d6af){for(let _0x953a49=0x0;_0x953a49<0x10;_0x953a49++)_0x20d6af[_0x119401+_0x953a49]=_0x4ccdf9[_0x953a49];return _0x20d6af;}return(0x0,_0x574e36['unsafeStringify'])(_0x4ccdf9);};},0x10c(_0x3ff0f7,_0x3510da,_0x33dc5a){const _0x3a6dca=a0_0x17a8;Object['defineProperty'](_0x3510da,_0x3a6dca(0x223),{'value':!0x0});const _0x2ea3f8=_0x33dc5a(0x31d),_0xcf6087=_0x33dc5a(0xb);_0x3510da['default']=function _0x1c7dee(_0x281974){const _0x522430=_0x3a6dca,_0x3d6879=function _0x477d15(_0x41d6ef){return Uint8Array['of']((0xf&_0x41d6ef[0x3])<<0x4|_0x41d6ef[0x4]>>0x4&0xf,(0xf&_0x41d6ef[0x4])<<0x4|(0xf0&_0x41d6ef[0x5])>>0x4,(0xf&_0x41d6ef[0x5])<<0x4|0xf&_0x41d6ef[0x6],_0x41d6ef[0x7],(0xf&_0x41d6ef[0x1])<<0x4|(0xf0&_0x41d6ef[0x2])>>0x4,(0xf&_0x41d6ef[0x2])<<0x4|(0xf0&_0x41d6ef[0x3])>>0x4,0x10|(0xf0&_0x41d6ef[0x0])>>0x4,(0xf&_0x41d6ef[0x0])<<0x4|(0xf0&_0x41d6ef[0x1])>>0x4,_0x41d6ef[0x8],_0x41d6ef[0x9],_0x41d6ef[0xa],_0x41d6ef[0xb],_0x41d6ef[0xc],_0x41d6ef[0xd],_0x41d6ef[0xe],_0x41d6ef[0xf]);}('string'==typeof _0x281974?(0x0,_0x2ea3f8[_0x522430(0x1b4)])(_0x281974):_0x281974);return'string'==typeof _0x281974?(0x0,_0xcf6087['unsafeStringify'])(_0x3d6879):_0x3d6879;};},0x12b(_0x5adfdd,_0x5990b7,_0x1fb697){const _0x962c7=a0_0x17a8;Object[_0x962c7(0x21b)](_0x5990b7,'__esModule',{'value':!0x0}),_0x5990b7['updateV7State']=void 0x0;const _0x59edc0=_0x1fb697(0x123),_0x32ffa4=_0x1fb697(0xb),_0x15cd1b={};function _0x340642(_0x1e34db,_0x18397c,_0x4c0faa){const _0x1bb97c=_0x962c7;return _0x1e34db[_0x1bb97c(0x224)]??=-0x1/0x0,_0x1e34db[_0x1bb97c(0x1b2)]??=0x0,_0x18397c>_0x1e34db[_0x1bb97c(0x224)]?(_0x1e34db['seq']=_0x4c0faa[0x6]<<0x17|_0x4c0faa[0x7]<<0x10|_0x4c0faa[0x8]<<0x8|_0x4c0faa[0x9],_0x1e34db['msecs']=_0x18397c):(_0x1e34db['seq']=_0x1e34db['seq']+0x1|0x0,0x0===_0x1e34db[_0x1bb97c(0x1b2)]&&_0x1e34db[_0x1bb97c(0x224)]++),_0x1e34db;}function _0x51da84(_0x381954,_0x214803,_0x5c70b9,_0x2ce8d1,_0x32513f=0x0){const _0x44382e=_0x962c7;if(_0x381954[_0x44382e(0x175)]<0x10)throw new Error(_0x44382e(0x222));if(_0x2ce8d1){if(_0x32513f<0x0||_0x32513f+0x10>_0x2ce8d1[_0x44382e(0x175)])throw new RangeError(_0x44382e(0x19c)+_0x32513f+':'+(_0x32513f+0xf)+_0x44382e(0x22a));}else _0x2ce8d1=new Uint8Array(0x10),_0x32513f=0x0;return _0x214803??=Date[_0x44382e(0x1e1)](),_0x5c70b9??=0x7f*_0x381954[0x6]<<0x18|_0x381954[0x7]<<0x10|_0x381954[0x8]<<0x8|_0x381954[0x9],_0x2ce8d1[_0x32513f++]=_0x214803/0x10000000000&0xff,_0x2ce8d1[_0x32513f++]=_0x214803/0x100000000&0xff,_0x2ce8d1[_0x32513f++]=_0x214803/0x1000000&0xff,_0x2ce8d1[_0x32513f++]=_0x214803/0x10000&0xff,_0x2ce8d1[_0x32513f++]=_0x214803/0x100&0xff,_0x2ce8d1[_0x32513f++]=0xff&_0x214803,_0x2ce8d1[_0x32513f++]=0x70|_0x5c70b9>>>0x1c&0xf,_0x2ce8d1[_0x32513f++]=_0x5c70b9>>>0x14&0xff,_0x2ce8d1[_0x32513f++]=0x80|_0x5c70b9>>>0xe&0x3f,_0x2ce8d1[_0x32513f++]=_0x5c70b9>>>0x6&0xff,_0x2ce8d1[_0x32513f++]=_0x5c70b9<<0x2&0xff|0x3&_0x381954[0xa],_0x2ce8d1[_0x32513f++]=_0x381954[0xb],_0x2ce8d1[_0x32513f++]=_0x381954[0xc],_0x2ce8d1[_0x32513f++]=_0x381954[0xd],_0x2ce8d1[_0x32513f++]=_0x381954[0xe],_0x2ce8d1[_0x32513f++]=_0x381954[0xf],_0x2ce8d1;}_0x5990b7[_0x962c7(0x227)]=_0x340642,_0x5990b7[_0x962c7(0x1b4)]=function _0x4e4ee8(_0x501622,_0x162bbf,_0x1f81f3){const _0x4eb2c3=_0x962c7;let _0x3d2d95;if(_0x501622)_0x3d2d95=_0x51da84(_0x501622[_0x4eb2c3(0x16a)]??_0x501622[_0x4eb2c3(0x19a)]?.()??(0x0,_0x59edc0[_0x4eb2c3(0x1b4)])(),_0x501622[_0x4eb2c3(0x224)],_0x501622['seq'],_0x162bbf,_0x1f81f3);else{const _0x1814a6=Date[_0x4eb2c3(0x1e1)](),_0x3122f7=(0x0,_0x59edc0[_0x4eb2c3(0x1b4)])();_0x340642(_0x15cd1b,_0x1814a6,_0x3122f7),_0x3d2d95=_0x51da84(_0x3122f7,_0x15cd1b[_0x4eb2c3(0x224)],_0x15cd1b[_0x4eb2c3(0x1b2)],_0x162bbf,_0x1f81f3);}return _0x162bbf??(0x0,_0x32ffa4[_0x4eb2c3(0x225)])(_0x3d2d95);};},0x2ea(_0x17c28b,_0x18feba,_0x3528ca){const _0x20b7c4=a0_0x17a8;Object[_0x20b7c4(0x21b)](_0x18feba,_0x20b7c4(0x223),{'value':!0x0});const _0x540dc4=_0x3528ca(0x2b9);_0x18feba[_0x20b7c4(0x1b4)]=function _0x3a3253(_0x5c4c5f){const _0x131dbf=_0x20b7c4;return _0x131dbf(0x211)==typeof _0x5c4c5f&&_0x540dc4['default'][_0x131dbf(0x1c0)](_0x5c4c5f);};},0x302(_0x5dd442,_0x3cdd93,_0x200766){const _0x12f7af=a0_0x17a8;Object[_0x12f7af(0x21b)](_0x3cdd93,'__esModule',{'value':!0x0});const _0x3ee8d3=_0x200766(0x2ea);_0x3cdd93['default']=function _0xc86e93(_0x513cca){const _0x5094f3=_0x12f7af;if(!(0x0,_0x3ee8d3[_0x5094f3(0x1b4)])(_0x513cca))throw TypeError(_0x5094f3(0x1dd));return parseInt(_0x513cca['slice'](0xe,0xf),0x10);};},0x14a(_0x498dc9){const _0xc93fd8=a0_0x17a8;_0x498dc9[_0xc93fd8(0x150)]=JSON['parse'](_0xc93fd8(0x1bb));}},_0xd22e0={};function _0x7299f2(_0x4e61aa){const _0x754668=a0_0x17a8;var _0x3c20ad=_0xd22e0[_0x4e61aa];if(void 0x0!==_0x3c20ad)return _0x3c20ad[_0x754668(0x150)];var _0x4b7028=_0xd22e0[_0x4e61aa]={'exports':{}};return _0x3c76a2[_0x4e61aa](_0x4b7028,_0x4b7028['exports'],_0x7299f2),_0x4b7028[_0x754668(0x150)];}var _0x9982cb={};return((()=>{var _0x48ea92=_0x9982cb;Object['defineProperty'](_0x48ea92,'__esModule',{'value':!0x0}),_0x48ea92['WebSDK']=void 0x0;var _0x1bd403=_0x7299f2(0x1a7);Object['defineProperty'](_0x48ea92,'WebSDK',{'enumerable':!0x0,'get':function(){const _0x4ff8dc=a0_0x17a8;return _0x1bd403[_0x4ff8dc(0x158)];}});})()),_0x9982cb;})())));
1
+ function a0_0x4d5d(){const _0x4ed667=['3163952MpMOCg','fill','catch','body','12px','createElement','13308yJumms','6831510ZVaxIL','2px\x20solid\x20','string','NIL','deeplink_into_app','substring','Failed\x20to\x20detect\x20timezone','apiKey','setItem','localStorage','35FpYIUv','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','clearUserData','loadCustomAttributes','&times;','onclick','0\x204px\x206px\x20rgba(0,\x200,\x200,\x200.1)','parse','POST','16px','alignItems','processBatch','MAX','maxBatchSize','justifyContent','600','storeDeviceId','Purchase\x20event\x20queued','none','fontWeight','batchInterval','Failed\x20to\x20send\x20payload\x20to\x20server','.custom_attributes','[OrderSune\x20CRM]','pow','undefined','set','processCampaignClick','slice','test','.current_user','startBatchProcessing','unshift','appendChild','sendBatchToServer','UUID\x20byte\x20range\x20','guest_user_','log','Storage\x20type','msecs','guestUserId','Custom\x20attribute\x20queued','platform','174905QGWPiT','/analytics/data','\x20events,\x20','marginTop','open','Batch\x20processing\x20failed','9999','maxWidth','9qudOGf','removeItem','6ba7b810-9dad-11d1-80b4-00c04fd430c8','URL','8px\x200\x2024px\x200','addEventListener','stringToBytes','__esModule','amd','deviceDetails','_blank','push','webOnClickValue','padding','14px','User\x20data\x20cleared,\x20new\x20device\x20ID\x20generated','getStoredDeviceId','debug','displayInAppMessage','852088jdJSCO','defineProperty','99lEjmcC','borderRadius','inAppImage','3MXSgFd','toLowerCase','HTTP\x20error!\x20status:\x20','Initialization\x20failed','type','requestId','random','Loaded\x20user\x20profile','Namespace\x20must\x20be\x20array-like\x20(16\x20iterable\x20integer\x20values,\x200-255)','userAttributes','stringify','currentUser','trackCustomAttribute','button2','deviceId','cursor','100%','toUpperCase','relative','webOnClickAction','flex','contains','validate','sdkVersion','500','button','DNS','storage','v1ToV6','flexDirection','logClick','center','boxShadow','_v6','logInAppMessageClick','redirect_to_web_url','batchSize','WebSDK','app_started','headerColor','border','Invalid\x20UUID','updateV1State','12FPVnvn','column','seq','height','application/json','queueEvent','\x20is\x20out\x20of\x20buffer\x20bounds','charCodeAt','ceil','position','/analytics/clicks','top','bind','storeUserProfile','replace','div','getGuestUserId','Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','Attribute\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','button1','20px','139708LZylfe','now','textColor','attributeQueue','clockseq','140px','width','innerHTML','json','buildPurchasePayload','closeColor','left','73160gzIpMf','resolvedOptions','zIndex','Sending\x20batch\x20to\x20server','fontSize','length','default','gap','onerror','object','node','getUserProfile','mediaConfig','trim','rng','right','forceSend','400px','OrdersuneCRMWebSDK','img','dismissed','background','display','unsafeStringify','rgba(0,\x200,\x200,\x200.5)','margin','purchaseBatch','Identifying\x20user','header','randomUUID','DateTimeFormat','8px','20800nuesDv','borderColor','pointer','eventQueue','timeZone','modal','buildCampaignPayload','isProcessingQueue','floor','initialize','openWebUrl','endpoint','backgroundColor','dispose','v6ToV1','batchProcessingInterval','nsecs','timestamp','textContent','storeCustomAttributes','Async\x20initialization\x20failed','exports','web','style','\x20purchases,\x20','initializeDeviceDetails','removeChild','SDK\x20not\x20fully\x20initialized,\x20waiting\x20for\x20initialization','fixed','message','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','version','hexToColor','{\x22name\x22:\x22@ordersune/crm-web-sdk\x22,\x22version\x22:\x221.1.3\x22,\x22main\x22:\x22dist/index.js\x22,\x22types\x22:\x22dist/index.d.ts\x22,\x22publishConfig\x22:{\x22access\x22:\x22public\x22},\x22scripts\x22:{\x22build\x22:\x22npm\x20run\x20build:bundle\x20&&\x20npm\x20run\x20build:types\x22,\x22build:bundle\x22:\x22webpack\x20--config\x20webpack.config.js\x22,\x22build:types\x22:\x22tsc\x20--emitDeclarationOnly\x20--outDir\x20dist\x22,\x22prepare\x22:\x22npm\x20run\x20build\x20&&\x20husky\x22,\x22release\x22:\x22bash\x20-c\x20\x27read\x20-p\x20\x5c\x22Enter\x20NPM\x20token:\x20\x5c\x22\x20NPM_TOKEN\x20&&\x20GIT_AUTHOR_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_AUTHOR_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20GIT_COMMITTER_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_COMMITTER_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20NPM_TOKEN=$NPM_TOKEN\x20semantic-release\x20--no-ci\x27\x22,\x22lint:commit\x22:\x22commitlint\x20--edit\x22},\x22files\x22:[\x22dist\x22,\x22README.md\x22],\x22dependencies\x22:{\x22uuid\x22:\x22^11.0.3\x22},\x22devDependencies\x22:{\x22@commitlint/cli\x22:\x22^20.1.0\x22,\x22@commitlint/config-conventional\x22:\x22^20.0.0\x22,\x22@semantic-release/changelog\x22:\x22^6.0.3\x22,\x22@semantic-release/git\x22:\x22^10.0.1\x22,\x22@semantic-release/npm\x22:\x22^13.1.2\x22,\x22@types/uuid\x22:\x22^9.0.0\x22,\x22husky\x22:\x22^9.1.7\x22,\x22javascript-obfuscator\x22:\x22^4.1.1\x22,\x22semantic-release\x22:\x22^25.0.2\x22,\x22terser-webpack-plugin\x22:\x22^5.3.14\x22,\x22ts-loader\x22:\x22^9.5.4\x22,\x22typescript\x22:\x22^5.0.0\x22,\x22webpack\x22:\x22^5.103.0\x22,\x22webpack-cli\x22:\x22^6.0.1\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22}}','Error\x20processing\x20campaign\x20click:','absolute','color','trackEvent','getStorage','showInAppMessage','getItem','keys','SDK\x20Initialized','updateV7State'];a0_0x4d5d=function(){return _0x4ed667;};return a0_0x4d5d();}function a0_0xac42(_0x46f2c9,_0x1a3385){const _0x4d5ddc=a0_0x4d5d();return a0_0xac42=function(_0xac42d9,_0x70f827){_0xac42d9=_0xac42d9-0x1d5;let _0xaec5bc=_0x4d5ddc[_0xac42d9];return _0xaec5bc;},a0_0xac42(_0x46f2c9,_0x1a3385);}(function(_0x35c280,_0x583e6a){const _0x2dc769=a0_0xac42,_0x58b6ef=_0x35c280();while(!![]){try{const _0x4715fa=-parseInt(_0x2dc769(0x1e8))/0x1*(-parseInt(_0x2dc769(0x228))/0x2)+-parseInt(_0x2dc769(0x1e5))/0x3*(parseInt(_0x2dc769(0x234))/0x4)+parseInt(_0x2dc769(0x2bc))/0x5*(-parseInt(_0x2dc769(0x213))/0x6)+-parseInt(_0x2dc769(0x291))/0x7*(parseInt(_0x2dc769(0x1e3))/0x8)+parseInt(_0x2dc769(0x2c4))/0x9*(-parseInt(_0x2dc769(0x287))/0xa)+parseInt(_0x2dc769(0x280))/0xb+-parseInt(_0x2dc769(0x286))/0xc*(-parseInt(_0x2dc769(0x254))/0xd);if(_0x4715fa===_0x583e6a)break;else _0x58b6ef['push'](_0x58b6ef['shift']());}catch(_0x56c89){_0x58b6ef['push'](_0x58b6ef['shift']());}}}(a0_0x4d5d,0x5d594),!function webpackUniversalModuleDefinition(_0x3faa55,_0x2c9b74){const _0x43fc19=a0_0xac42;'object'==typeof exports&&_0x43fc19(0x23d)==typeof module?module['exports']=_0x2c9b74():'function'==typeof define&&define[_0x43fc19(0x1d8)]?define('OrdersuneCRMWebSDK',[],_0x2c9b74):_0x43fc19(0x23d)==typeof exports?exports[_0x43fc19(0x246)]=_0x2c9b74():_0x3faa55[_0x43fc19(0x246)]=_0x2c9b74();}(this,()=>((()=>{'use strict';var _0x17068f={0x10a(_0x5e58de,_0x3c7804){const _0x4db5ce=a0_0xac42;Object[_0x4db5ce(0x1e4)](_0x3c7804,'__esModule',{'value':!0x0}),_0x3c7804['log']=void 0x0,_0x3c7804['log']=(_0x8f4632,_0x19563d,..._0x5c278d)=>{const _0x505a9b=_0x4db5ce;_0x8f4632&&console[_0x505a9b(0x2b6)](_0x505a9b(0x2a8),_0x19563d,..._0x5c278d);};},0x1a7(_0x846866,_0x5779ef,_0x3d88bf){const _0x1e52a2=a0_0xac42;Object[_0x1e52a2(0x1e4)](_0x5779ef,_0x1e52a2(0x1d7),{'value':!0x0}),_0x5779ef[_0x1e52a2(0x20d)]=void 0x0;const _0x2d124f=_0x3d88bf(0x10a),_0xbb5119=_0x3d88bf(0xb6),_0xf55c53=_0x3d88bf(0x14a),_0x316ed1='os.',_0xc2169b=_0xf55c53[_0x1e52a2(0x273)];_0x5779ef[_0x1e52a2(0x20d)]=class WebSDK{constructor(_0x2c7ffa){const _0x39ed3d=_0x1e52a2;var _0x58ade0,_0x4ae633,_0x47b589,_0x143e6e,_0x39758c;if(this[_0x39ed3d(0x29e)]=0xa,this[_0x39ed3d(0x2a5)]=0x2710,this[_0x39ed3d(0x1ff)]=_0xc2169b,this[_0x39ed3d(0x257)]=[],this['purchaseBatch']=[],this[_0x39ed3d(0x22b)]={},this[_0x39ed3d(0x25b)]=!0x1,this[_0x39ed3d(0x2bb)]=_0x39ed3d(0x26a),!_0x2c7ffa[_0x39ed3d(0x28e)]||!_0x2c7ffa[_0x39ed3d(0x25f)])throw new Error('API\x20key\x20and\x20endpoint\x20are\x20required');this['apiKey']=_0x2c7ffa['apiKey'],this[_0x39ed3d(0x25f)]=_0x2c7ffa[_0x39ed3d(0x25f)],this['debug']=null!==(_0x58ade0=_0x2c7ffa[_0x39ed3d(0x1e1)])&&void 0x0!==_0x58ade0&&_0x58ade0,this['maxBatchSize']=null!==(_0x4ae633=_0x2c7ffa[_0x39ed3d(0x20c)])&&void 0x0!==_0x4ae633?_0x4ae633:0xa,this[_0x39ed3d(0x2a5)]=null!==(_0x47b589=_0x2c7ffa['batchInterval'])&&void 0x0!==_0x47b589?_0x47b589:0x2710,this['platform']=null!==(_0x143e6e=_0x2c7ffa[_0x39ed3d(0x2bb)])&&void 0x0!==_0x143e6e?_0x143e6e:_0x39ed3d(0x26a),this['storage']=this[_0x39ed3d(0x27a)](null!==(_0x39758c=_0x2c7ffa['storageType'])&&void 0x0!==_0x39758c?_0x39758c:'sessionStorage'),this[_0x39ed3d(0x1f6)]=this['getStoredDeviceId']()||(0x0,_0xbb5119['v4'])(),this[_0x39ed3d(0x2b9)]=this[_0x39ed3d(0x223)](),this[_0x39ed3d(0x25d)]()[_0x39ed3d(0x282)](_0x39a0d5=>{const _0x5271ac=_0x39ed3d;(0x0,_0x2d124f['log'])(this[_0x5271ac(0x1e1)],_0x5271ac(0x268),_0x39a0d5);});}[_0x1e52a2(0x27a)](_0x21788a){const _0x5aaf3e=_0x1e52a2;return console['log'](this[_0x5aaf3e(0x1e1)],_0x5aaf3e(0x2b7),_0x21788a),_0x5aaf3e(0x290)===_0x21788a?window['localStorage']:window['sessionStorage'];}async[_0x1e52a2(0x25d)](){const _0x13b02e=_0x1e52a2;try{(0x0,_0x2d124f['log'])(this[_0x13b02e(0x1e1)],_0x13b02e(0x27e)),this[_0x13b02e(0x2a1)](),await this['initializeDeviceDetails'](),await this[_0x13b02e(0x294)]();const _0x948a48=this['getStoredUserProfile']();_0x948a48?(this[_0x13b02e(0x1f3)]=_0x948a48,(0x0,_0x2d124f['log'])(this[_0x13b02e(0x1e1)],_0x13b02e(0x1ef),this[_0x13b02e(0x1f3)])):this['identify']('');try{const _0x18f315=Intl[_0x13b02e(0x252)]()[_0x13b02e(0x235)]()[_0x13b02e(0x258)];this[_0x13b02e(0x1f4)]('timezone',_0x18f315);}catch(_0x29c568){(0x0,_0x2d124f[_0x13b02e(0x2b6)])(this['debug'],_0x13b02e(0x28d),_0x29c568);}this[_0x13b02e(0x2b0)](),this[_0x13b02e(0x279)](_0x13b02e(0x20e),{});}catch(_0x857eeb){throw(0x0,_0x2d124f[_0x13b02e(0x2b6)])(this['debug'],_0x13b02e(0x1eb),_0x857eeb),_0x857eeb;}}['identify'](_0x4120fa){const _0x217042=_0x1e52a2;if(_0x217042(0x289)!=typeof _0x4120fa)throw new Error('User\x20ID\x20must\x20be\x20a\x20string');const _0x173301=this['getStoredUserProfile']();(null==_0x173301?void 0x0:_0x173301['id'])!==_0x4120fa&&((0x0,_0x2d124f[_0x217042(0x2b6)])(this['debug'],_0x217042(0x24f),_0x4120fa),this[_0x217042(0x1f3)]=_0x4120fa?{'id':_0x4120fa,'guestUserId':this['guestUserId']}:{'id':this[_0x217042(0x2b9)],'guestUserId':this[_0x217042(0x2b9)]},this[_0x217042(0x220)]());}[_0x1e52a2(0x293)](){const _0x5f0ff2=_0x1e52a2;this[_0x5f0ff2(0x1f6)]=(0x0,_0xbb5119['v4'])(),this['guestUserId']=this[_0x5f0ff2(0x223)](),this['initializeDeviceDetails'](),this['currentUser']={'id':this[_0x5f0ff2(0x2b9)],'guestUserId':this[_0x5f0ff2(0x2b9)]},this['attributeQueue']={},this[_0x5f0ff2(0x257)]=[],this[_0x5f0ff2(0x24e)]=[],this['storeDeviceId'](),this[_0x5f0ff2(0x203)]['setItem'](''+_0x316ed1+this['apiKey']+_0x5f0ff2(0x2af),JSON['stringify'](this['currentUser'])),this['storage'][_0x5f0ff2(0x2c5)](''+_0x316ed1+this['apiKey']+_0x5f0ff2(0x2a7)),this[_0x5f0ff2(0x1e1)]&&(0x0,_0x2d124f[_0x5f0ff2(0x2b6)])(this[_0x5f0ff2(0x1e1)],_0x5f0ff2(0x1df));}[_0x1e52a2(0x279)](_0xbce394,_0xdea9d5={},_0x54405f={}){const _0x345105=_0x1e52a2;if(!_0xbce394||_0x345105(0x289)!=typeof _0xbce394)throw new Error(_0x345105(0x224));const _0x8b4eb8={'deviceId':this[_0x345105(0x1f6)],'eventName':_0xbce394,'timestamp':_0x54405f[_0x345105(0x265)]||Date[_0x345105(0x229)](),'requestId':_0x54405f[_0x345105(0x1ed)]||(0x0,_0xbb5119['v4'])(),'properties':_0xdea9d5};this[_0x345105(0x218)](_0x8b4eb8);}['setToken'](_0x417cf0){const _0x4d0ab9=_0x1e52a2;this[_0x4d0ab9(0x1d9)]&&(this[_0x4d0ab9(0x1d9)]={...this[_0x4d0ab9(0x1d9)],'pushToken':_0x417cf0});}[_0x1e52a2(0x1f4)](_0x46cab7,_0x44c999){const _0x4e5c95=_0x1e52a2;if(!_0x46cab7||_0x4e5c95(0x289)!=typeof _0x46cab7)throw new Error(_0x4e5c95(0x225));this[_0x4e5c95(0x22b)]={...this[_0x4e5c95(0x22b)],[_0x46cab7]:_0x44c999},(0x0,_0x2d124f[_0x4e5c95(0x2b6)])(this['debug'],_0x4e5c95(0x2ba),_0x46cab7,_0x44c999),this[_0x4e5c95(0x267)]();}['logProductPurchase'](_0x34cf2e,_0x5726a8,_0x5627bb,_0x548c36,_0x2c1fde,_0x3e3114,_0x5107b2,_0x5cd74b){const _0x33632d=_0x1e52a2,_0x54ce0d=this[_0x33632d(0x231)]({'externalId':_0x34cf2e,'itemId':_0x5726a8,'itemName':_0x5627bb,'unitPrice':_0x548c36,'quantity':_0x2c1fde,'source':_0x3e3114,'channel':_0x5107b2,'itemCategory':_0x5cd74b});this[_0x33632d(0x24e)][_0x33632d(0x1db)](_0x54ce0d),this['debug']&&(0x0,_0x2d124f[_0x33632d(0x2b6)])(this[_0x33632d(0x1e1)],_0x33632d(0x2a2),_0x54ce0d);}[_0x1e52a2(0x23f)](){const _0x1fce27=_0x1e52a2;return this[_0x1fce27(0x1f3)];}async[_0x1e52a2(0x244)](){const _0x11669f=_0x1e52a2;(this[_0x11669f(0x257)][_0x11669f(0x239)]>0x0||this[_0x11669f(0x24e)][_0x11669f(0x239)]>0x0||this[_0x11669f(0x22b)][_0x11669f(0x239)]>0x0)&&await this[_0x11669f(0x29c)]();}[_0x1e52a2(0x261)](){const _0x1d0562=_0x1e52a2;this[_0x1d0562(0x263)]&&clearInterval(this[_0x1d0562(0x263)]),(this[_0x1d0562(0x257)]['length']>0x0||this[_0x1d0562(0x24e)][_0x1d0562(0x239)]>0x0||this['attributeQueue'][_0x1d0562(0x239)]>0x0)&&this[_0x1d0562(0x29c)]()[_0x1d0562(0x282)](_0x47449a=>{const _0x1768dc=_0x1d0562;(0x0,_0x2d124f[_0x1768dc(0x2b6)])(this[_0x1768dc(0x1e1)],'Error\x20during\x20disposal',_0x47449a);});}[_0x1e52a2(0x1e0)](){const _0x23af18=_0x1e52a2;return this[_0x23af18(0x203)][_0x23af18(0x27c)](''+_0x316ed1+this[_0x23af18(0x28e)]+'.device_id');}['getStoredUserProfile'](){const _0x1177c8=_0x1e52a2,_0xe80a5e=this[_0x1177c8(0x203)]['getItem'](''+_0x316ed1+this[_0x1177c8(0x28e)]+'.current_user');return _0xe80a5e?JSON[_0x1177c8(0x298)](_0xe80a5e):null;}[_0x1e52a2(0x2a1)](){const _0x1ba3c8=_0x1e52a2;this['storage'][_0x1ba3c8(0x28f)](''+_0x316ed1+this['apiKey']+'.device_id',this['deviceId']);}[_0x1e52a2(0x220)](){const _0x43a841=_0x1e52a2;this[_0x43a841(0x1f3)]&&this[_0x43a841(0x203)][_0x43a841(0x28f)](''+_0x316ed1+this[_0x43a841(0x28e)]+_0x43a841(0x2af),JSON[_0x43a841(0x1f2)](this[_0x43a841(0x1f3)]));}['storeCustomAttributes'](){const _0x155f40=_0x1e52a2,_0x1af87d=this[_0x155f40(0x203)][_0x155f40(0x27c)](''+_0x316ed1+this[_0x155f40(0x28e)]+_0x155f40(0x2a7)),_0x7924af={..._0x1af87d?JSON['parse'](_0x1af87d):{},...this['attributeQueue']};this['storage']['setItem'](''+_0x316ed1+this[_0x155f40(0x28e)]+_0x155f40(0x2a7),JSON['stringify'](_0x7924af));}async[_0x1e52a2(0x294)](){const _0x634bba=_0x1e52a2,_0x3a74c9=this[_0x634bba(0x203)][_0x634bba(0x27c)](''+_0x316ed1+this['apiKey']+'.custom_attributes');_0x3a74c9&&(this[_0x634bba(0x22b)]={...this[_0x634bba(0x22b)],...JSON[_0x634bba(0x298)](_0x3a74c9)});}[_0x1e52a2(0x223)](){const _0xa1b8a1=_0x1e52a2;return _0xa1b8a1(0x2b5)+this[_0xa1b8a1(0x1f6)];}[_0x1e52a2(0x231)]({externalId:_0x2220ca,itemId:_0x36c977,itemName:_0xd2174f,unitPrice:_0x20c3ed,quantity:_0xab3de9,source:_0x38b3e0,channel:_0x427b7e,itemCategory:_0x4606e3}){return{'external_id':_0x2220ca,'item_id':_0x36c977,'item_name':_0xd2174f,'item_category':_0x4606e3,'quantity':_0xab3de9,'unit_price':_0x20c3ed,'total_price':_0x20c3ed*_0xab3de9,'source':_0x38b3e0,'channel':_0x427b7e,'purchased_at':Date['now']()};}async[_0x1e52a2(0x26d)](){const _0x33ff1e=_0x1e52a2;this[_0x33ff1e(0x1d9)]={'deviceId':this[_0x33ff1e(0x1f6)],'platform':this[_0x33ff1e(0x2bb)]};}['startBatchProcessing'](){const _0x23ca71=_0x1e52a2;this[_0x23ca71(0x263)]=setInterval(()=>{const _0x4953fe=_0x23ca71;(this[_0x4953fe(0x257)][_0x4953fe(0x239)]>0x0||this[_0x4953fe(0x24e)]['length']>0x0||this['attributeQueue']['length']>0x0)&&this[_0x4953fe(0x29c)]()[_0x4953fe(0x282)](_0x2e0fed=>{const _0x532290=_0x4953fe;(0x0,_0x2d124f[_0x532290(0x2b6)])(this[_0x532290(0x1e1)],_0x532290(0x2c1),_0x2e0fed);});},this[_0x23ca71(0x2a5)]);}[_0x1e52a2(0x218)](_0x59a063){const _0x17c0c9=_0x1e52a2;this['eventQueue'][_0x17c0c9(0x1db)](_0x59a063),(0x0,_0x2d124f['log'])(this[_0x17c0c9(0x1e1)],'Event\x20queued',_0x59a063),this[_0x17c0c9(0x257)]['length']>=this[_0x17c0c9(0x29e)]&&this[_0x17c0c9(0x29c)]()['catch'](_0x40876b=>{const _0x58a3a8=_0x17c0c9;(0x0,_0x2d124f['log'])(this[_0x58a3a8(0x1e1)],'Batch\x20processing\x20failed',_0x40876b);});}async[_0x1e52a2(0x29c)](){const _0x32469c=_0x1e52a2;if(this[_0x32469c(0x25b)])return;this['isProcessingQueue']=!0x0;const _0x29ef9a=[...this['eventQueue']],_0x3eb12b=[...this['purchaseBatch']],_0x3c31d5={...this[_0x32469c(0x22b)]};this[_0x32469c(0x257)]=[],this[_0x32469c(0x24e)]=[],this[_0x32469c(0x22b)]={};try{await this['sendBatchToServer'](_0x29ef9a,_0x3eb12b,_0x3c31d5);}catch(_0x1aaff5){throw this[_0x32469c(0x257)][_0x32469c(0x2b1)](..._0x29ef9a),this[_0x32469c(0x24e)][_0x32469c(0x2b1)](..._0x3eb12b),this['attributeQueue']={...this[_0x32469c(0x22b)],..._0x3c31d5},(0x0,_0x2d124f[_0x32469c(0x2b6)])(this[_0x32469c(0x1e1)],'Batch\x20processing\x20failed',_0x1aaff5),_0x1aaff5;}finally{this[_0x32469c(0x25b)]=!0x1;}}async[_0x1e52a2(0x2b3)](_0x46f981,_0x3c480f,_0x28b825){const _0x586ffc=_0x1e52a2;var _0x4cf589,_0x399356;this[_0x586ffc(0x1d9)]||await this[_0x586ffc(0x26d)]();const _0x13fe8a={'sdkVersion':this[_0x586ffc(0x1ff)],'deviceInfo':this['deviceDetails'],'userId':null===(_0x4cf589=this['currentUser'])||void 0x0===_0x4cf589?void 0x0:_0x4cf589['id'],'guestUserId':null===(_0x399356=this['currentUser'])||void 0x0===_0x399356?void 0x0:_0x399356[_0x586ffc(0x2b9)],'time':Date['now'](),'events':_0x46f981,'purchases':_0x3c480f,'userAttributes':_0x28b825};(0x0,_0x2d124f['log'])(this[_0x586ffc(0x1e1)],_0x586ffc(0x237),_0x13fe8a);try{const _0x307b26=await fetch(this[_0x586ffc(0x25f)]+_0x586ffc(0x2bd),{'method':'POST','headers':{'Content-Type':_0x586ffc(0x217),'x-api-key':this[_0x586ffc(0x28e)]},'body':JSON[_0x586ffc(0x1f2)](_0x13fe8a)});if(!_0x307b26['ok'])throw new Error('HTTP\x20error!\x20status:\x20'+_0x307b26['status']);this[_0x586ffc(0x1e1)]&&(0x0,_0x2d124f[_0x586ffc(0x2b6)])(this[_0x586ffc(0x1e1)],'Batch\x20dispatched\x20successfully:\x20'+_0x13fe8a['events'][_0x586ffc(0x239)]+_0x586ffc(0x2be)+_0x13fe8a['purchases'][_0x586ffc(0x239)]+_0x586ffc(0x26c)+Object[_0x586ffc(0x27d)](_0x13fe8a[_0x586ffc(0x1f1)])[_0x586ffc(0x239)]+'\x20attributes'),await _0x307b26[_0x586ffc(0x230)](),Object[_0x586ffc(0x27d)](_0x28b825)[_0x586ffc(0x239)]>0x0&&(this[_0x586ffc(0x22b)]={},this[_0x586ffc(0x203)]['removeItem'](''+_0x316ed1+this[_0x586ffc(0x28e)]+_0x586ffc(0x2a7)));}catch(_0x2ebd7d){throw(0x0,_0x2d124f['log'])(this[_0x586ffc(0x1e1)],_0x586ffc(0x2a6),_0x2ebd7d),_0x2ebd7d;}}[_0x1e52a2(0x1e2)](_0x120fb7,_0xa1c48b,_0x50724f){const _0x409cf1=_0x1e52a2,_0x26e5a9=JSON[_0x409cf1(0x298)](_0x120fb7),_0x3056f7=_0x26e5a9[_0x409cf1(0x250)],_0x1b4659=_0x26e5a9[_0x409cf1(0x271)],_0x3370d6=_0x26e5a9[_0x409cf1(0x259)][_0x409cf1(0x226)],_0x2d9ddc=_0x26e5a9[_0x409cf1(0x259)][_0x409cf1(0x1f5)],_0x46d341=_0x3370d6[_0x409cf1(0x1ec)]||'',_0x1897cc=_0x2d9ddc['type']||'',_0x2e0e49=_0x26e5a9[_0x409cf1(0x240)][_0x409cf1(0x1e7)];this[_0x409cf1(0x27b)]({'context':_0x50724f,'title':_0x3056f7,'body':_0x1b4659,'primaryButtonText':_0x46d341,'secondaryButtonText':_0x1897cc,'imageUrl':_0x2e0e49,'buttonPropertiesPrimary':_0x3370d6,'buttonPropertiesSecondary':_0x2d9ddc,'dismissMessageAutomatically':_0x26e5a9['modal']['dismissMessageAutomatically'],'dismissMessageInSeconds':_0x26e5a9[_0x409cf1(0x259)]['dismissMessageInSeconds'],'headerColor':_0x26e5a9[_0x409cf1(0x259)][_0x409cf1(0x20f)],'messageColor':_0x26e5a9[_0x409cf1(0x259)]['messageColor'],'closeColor':_0x26e5a9['modal'][_0x409cf1(0x232)],'campaignId':_0xa1c48b});}[_0x1e52a2(0x274)](_0x57688d){const _0x1ea867=_0x1e52a2;return 0x6===(_0x57688d=_0x57688d[_0x1ea867(0x1f9)]()[_0x1ea867(0x221)]('#',''))['length']?'#'+_0x57688d:'#'+_0x57688d[_0x1ea867(0x28c)](0x2);}[_0x1e52a2(0x25e)](_0x39b004){const _0x230ab8=_0x1e52a2;_0x39b004&&window[_0x230ab8(0x2c0)](_0x39b004,_0x230ab8(0x1da));}[_0x1e52a2(0x27b)](_0x4c24f9){const _0x537445=_0x1e52a2,{title:_0x51df88,body:_0x19c2c0,primaryButtonText:_0x145e81,secondaryButtonText:_0x37889f,imageUrl:_0x3cd600,onClose:_0x4dd54a,buttonPropertiesPrimary:_0x6cb6b4,buttonPropertiesSecondary:_0x44159f,dismissMessageAutomatically:_0x1ddb73,dismissMessageInSeconds:_0x391908,headerColor:_0x3133e3,messageColor:_0x1ad283,closeColor:_0x501b49,campaignId:_0x3bae9f}=_0x4c24f9,_0x2fdede=document['createElement'](_0x537445(0x222));_0x2fdede[_0x537445(0x26b)]['position']=_0x537445(0x270),_0x2fdede[_0x537445(0x26b)][_0x537445(0x21e)]='0',_0x2fdede[_0x537445(0x26b)][_0x537445(0x233)]='0',_0x2fdede[_0x537445(0x26b)]['width']=_0x537445(0x1f8),_0x2fdede[_0x537445(0x26b)][_0x537445(0x216)]=_0x537445(0x1f8),_0x2fdede[_0x537445(0x26b)][_0x537445(0x260)]=_0x537445(0x24c),_0x2fdede[_0x537445(0x26b)][_0x537445(0x24a)]=_0x537445(0x1fc),_0x2fdede[_0x537445(0x26b)][_0x537445(0x29f)]=_0x537445(0x207),_0x2fdede[_0x537445(0x26b)]['alignItems']=_0x537445(0x207),_0x2fdede[_0x537445(0x26b)][_0x537445(0x236)]=_0x537445(0x2c2);const _0x11ebe9=document[_0x537445(0x285)](_0x537445(0x222));_0x11ebe9[_0x537445(0x26b)][_0x537445(0x260)]='white',_0x11ebe9[_0x537445(0x26b)][_0x537445(0x1e6)]=_0x537445(0x284),_0x11ebe9[_0x537445(0x26b)][_0x537445(0x1dd)]=_0x537445(0x29a),_0x11ebe9[_0x537445(0x26b)]['maxWidth']=_0x537445(0x245),_0x11ebe9[_0x537445(0x26b)]['width']='90%',_0x11ebe9['style'][_0x537445(0x208)]=_0x537445(0x297),_0x11ebe9[_0x537445(0x26b)][_0x537445(0x21c)]=_0x537445(0x1fa);const _0x5541e4=document[_0x537445(0x285)](_0x537445(0x201));_0x5541e4[_0x537445(0x22f)]=_0x537445(0x295),_0x5541e4['style'][_0x537445(0x21c)]=_0x537445(0x277),_0x5541e4['style'][_0x537445(0x21e)]='8px',_0x5541e4['style'][_0x537445(0x243)]=_0x537445(0x253),_0x5541e4['style'][_0x537445(0x249)]=_0x537445(0x2a3),_0x5541e4[_0x537445(0x26b)]['border']=_0x537445(0x2a3),_0x5541e4[_0x537445(0x26b)][_0x537445(0x238)]=_0x537445(0x227),_0x5541e4[_0x537445(0x26b)][_0x537445(0x1f7)]=_0x537445(0x256),_0x5541e4[_0x537445(0x26b)][_0x537445(0x278)]=this[_0x537445(0x274)](_0x501b49),_0x5541e4['onclick']=()=>{const _0x493de9=_0x537445;_0x4dd54a&&_0x4dd54a(),this[_0x493de9(0x20a)](_0x3bae9f,!0x1,!0x0,!0x0),document[_0x493de9(0x283)][_0x493de9(0x26e)](_0x2fdede);};const _0x1f31a2=document[_0x537445(0x285)](_0x537445(0x222));if(_0x1f31a2[_0x537445(0x26b)][_0x537445(0x24a)]=_0x537445(0x1fc),_0x1f31a2['style'][_0x537445(0x205)]=_0x537445(0x214),_0x1f31a2[_0x537445(0x26b)][_0x537445(0x29b)]=_0x537445(0x207),_0x1f31a2[_0x537445(0x26b)]['textAlign']=_0x537445(0x207),_0x3cd600&&''!==_0x3cd600[_0x537445(0x241)]()){const _0x13d31f=document[_0x537445(0x285)](_0x537445(0x247));_0x13d31f['src']=_0x3cd600,_0x13d31f[_0x537445(0x26b)][_0x537445(0x22e)]='100px',_0x13d31f['style'][_0x537445(0x216)]='100px',_0x13d31f[_0x537445(0x26b)]['marginBottom']=_0x537445(0x29a),_0x13d31f['style'][_0x537445(0x2bf)]=_0x537445(0x29a),_0x13d31f[_0x537445(0x23c)]=()=>{const _0x256fb3=_0x537445;_0x13d31f['style'][_0x256fb3(0x24a)]=_0x256fb3(0x2a3);},_0x1f31a2[_0x537445(0x2b2)](_0x13d31f);}const _0x4e06fb=document[_0x537445(0x285)]('h2');_0x4e06fb[_0x537445(0x266)]=_0x51df88,_0x4e06fb['style'][_0x537445(0x238)]='22px',_0x4e06fb[_0x537445(0x26b)][_0x537445(0x2a4)]=_0x537445(0x2a0),_0x4e06fb[_0x537445(0x26b)][_0x537445(0x278)]=this[_0x537445(0x274)](_0x3133e3),_0x4e06fb['style'][_0x537445(0x24d)]='8px\x200',_0x1f31a2['appendChild'](_0x4e06fb);const _0x2af6a0=document[_0x537445(0x285)]('p');_0x2af6a0['textContent']=_0x19c2c0,_0x2af6a0[_0x537445(0x26b)][_0x537445(0x238)]=_0x537445(0x1de),_0x2af6a0['style'][_0x537445(0x278)]=this[_0x537445(0x274)](_0x1ad283),_0x2af6a0[_0x537445(0x26b)][_0x537445(0x2a4)]=_0x537445(0x200),_0x2af6a0[_0x537445(0x26b)]['margin']=_0x537445(0x2c8),_0x1f31a2[_0x537445(0x2b2)](_0x2af6a0);const _0x1c0907=()=>{const _0x218c4f=_0x537445;_0x218c4f(0x20b)!==_0x6cb6b4[_0x218c4f(0x1dc)]&&_0x218c4f(0x28b)!==_0x6cb6b4[_0x218c4f(0x1dc)]||this['openWebUrl'](_0x6cb6b4[_0x218c4f(0x1fb)]||'');},_0x5ec6bd=()=>{const _0x4dd2ce=_0x537445;'redirect_to_web_url'!==_0x44159f['webOnClickValue']&&_0x4dd2ce(0x28b)!==_0x44159f['webOnClickValue']||this['openWebUrl'](_0x44159f[_0x4dd2ce(0x1fb)]||'');},_0x4e7d5d=document[_0x537445(0x285)](_0x537445(0x222));if(_0x4e7d5d[_0x537445(0x26b)]['display']=_0x537445(0x1fc),_0x4e7d5d[_0x537445(0x26b)]['justifyContent']=_0x537445(0x207),_0x4e7d5d[_0x537445(0x26b)]['width']='100%',_0x4e7d5d['style'][_0x537445(0x23b)]='16px',_0x37889f&&''!==_0x37889f['trim']()){const _0x462429=document[_0x537445(0x285)](_0x537445(0x201));_0x462429[_0x537445(0x266)]=_0x145e81,_0x462429['style']['flex']='1',_0x462429[_0x537445(0x26b)]['maxWidth']=_0x537445(0x22d),_0x462429[_0x537445(0x26b)]['padding']=_0x537445(0x284),_0x462429[_0x537445(0x26b)][_0x537445(0x260)]=this['hexToColor'](_0x6cb6b4[_0x537445(0x260)]),_0x462429[_0x537445(0x26b)][_0x537445(0x278)]=this['hexToColor'](_0x6cb6b4[_0x537445(0x22a)]),_0x462429[_0x537445(0x26b)][_0x537445(0x210)]='2px\x20solid\x20'+this[_0x537445(0x274)](_0x6cb6b4[_0x537445(0x255)]),_0x462429[_0x537445(0x26b)][_0x537445(0x1e6)]=_0x537445(0x253),_0x462429[_0x537445(0x26b)][_0x537445(0x238)]=_0x537445(0x29a),_0x462429[_0x537445(0x26b)][_0x537445(0x2a4)]=_0x537445(0x2a0),_0x462429['style']['cursor']=_0x537445(0x256),_0x462429[_0x537445(0x296)]=()=>{const _0x1dca79=_0x537445;document[_0x1dca79(0x283)][_0x1dca79(0x26e)](_0x2fdede),_0x1c0907();},_0x4e7d5d[_0x537445(0x2b2)](_0x462429);const _0x5d937f=document[_0x537445(0x285)](_0x537445(0x201));_0x5d937f[_0x537445(0x266)]=_0x37889f,_0x5d937f[_0x537445(0x26b)][_0x537445(0x1fc)]='1',_0x5d937f[_0x537445(0x26b)][_0x537445(0x2c3)]=_0x537445(0x22d),_0x5d937f['style'][_0x537445(0x1dd)]=_0x537445(0x284),_0x5d937f['style']['backgroundColor']=this[_0x537445(0x274)](_0x44159f[_0x537445(0x260)]),_0x5d937f[_0x537445(0x26b)][_0x537445(0x278)]=this['hexToColor'](_0x44159f['textColor']),_0x5d937f['style'][_0x537445(0x210)]=_0x537445(0x288)+this[_0x537445(0x274)](_0x44159f[_0x537445(0x255)]),_0x5d937f['style'][_0x537445(0x1e6)]=_0x537445(0x253),_0x5d937f[_0x537445(0x26b)][_0x537445(0x238)]=_0x537445(0x29a),_0x5d937f['style'][_0x537445(0x2a4)]=_0x537445(0x2a0),_0x5d937f[_0x537445(0x26b)]['cursor']=_0x537445(0x256),_0x5d937f[_0x537445(0x296)]=()=>{const _0xb311cf=_0x537445;document['body'][_0xb311cf(0x26e)](_0x2fdede),this[_0xb311cf(0x20a)](_0x3bae9f,!0x0,!0x0,!0x1),_0x5ec6bd();},_0x4e7d5d['appendChild'](_0x5d937f);}else{if(_0x145e81&&''!==_0x145e81['trim']()){const _0x49fa60=document[_0x537445(0x285)]('button');_0x49fa60[_0x537445(0x266)]=_0x145e81,_0x49fa60[_0x537445(0x26b)][_0x537445(0x22e)]=_0x537445(0x1f8),_0x49fa60[_0x537445(0x26b)]['padding']=_0x537445(0x284),_0x49fa60[_0x537445(0x26b)][_0x537445(0x260)]=this[_0x537445(0x274)](_0x6cb6b4['backgroundColor']),_0x49fa60[_0x537445(0x26b)][_0x537445(0x278)]=this[_0x537445(0x274)](_0x6cb6b4['textColor']),_0x49fa60['style']['border']=_0x537445(0x288)+this[_0x537445(0x274)](_0x6cb6b4[_0x537445(0x255)]),_0x49fa60[_0x537445(0x26b)]['borderRadius']=_0x537445(0x253),_0x49fa60[_0x537445(0x26b)][_0x537445(0x238)]=_0x537445(0x29a),_0x49fa60[_0x537445(0x26b)][_0x537445(0x2a4)]=_0x537445(0x2a0),_0x49fa60[_0x537445(0x26b)][_0x537445(0x1f7)]=_0x537445(0x256),_0x49fa60['onclick']=()=>{const _0x42fd35=_0x537445;document[_0x42fd35(0x283)][_0x42fd35(0x26e)](_0x2fdede),this[_0x42fd35(0x20a)](_0x3bae9f,!0x0,!0x0,!0x1),_0x1c0907();},_0x4e7d5d[_0x537445(0x2b2)](_0x49fa60);}}_0x11ebe9[_0x537445(0x2b2)](_0x5541e4),_0x11ebe9[_0x537445(0x2b2)](_0x1f31a2),_0x1f31a2[_0x537445(0x2b2)](_0x4e7d5d),_0x2fdede[_0x537445(0x2b2)](_0x11ebe9),document[_0x537445(0x283)][_0x537445(0x2b2)](_0x2fdede),_0x1ddb73&&setTimeout(()=>{const _0x404c08=_0x537445;document['body'][_0x404c08(0x1fd)](_0x2fdede)&&document['body']['removeChild'](_0x2fdede);},0x3e8*parseInt(_0x391908)),_0x2fdede[_0x537445(0x1d5)]('click',_0x50278c=>{const _0x428f65=_0x537445;_0x50278c['target']===_0x2fdede&&document[_0x428f65(0x283)][_0x428f65(0x26e)](_0x2fdede);});}async[_0x1e52a2(0x20a)](_0x25aea0,_0x432cbe,_0x552629,_0xe84616){const _0x2f1556=_0x1e52a2,_0x2302be=await this[_0x2f1556(0x25a)](_0x25aea0,_0x552629,_0x432cbe,_0xe84616);await this[_0x2f1556(0x2ac)](_0x2302be);}async[_0x1e52a2(0x206)](_0x586126){const _0x4efcdf=_0x1e52a2;this['currentUser']&&this[_0x4efcdf(0x1d9)]||((0x0,_0x2d124f['log'])(this[_0x4efcdf(0x1e1)],_0x4efcdf(0x26f)),await this['initialize']()),(this[_0x4efcdf(0x257)][_0x4efcdf(0x239)]>0x0||this['purchaseBatch']['length']>0x0||Object['keys'](this[_0x4efcdf(0x22b)])[_0x4efcdf(0x239)]>0x0)&&await this[_0x4efcdf(0x244)]();const _0x2f91a0=await this[_0x4efcdf(0x25a)](_0x586126,!0x0,!0x0);await this['processCampaignClick'](_0x2f91a0);}async[_0x1e52a2(0x2ac)](_0x2db03e){const _0x14f809=_0x1e52a2;try{const _0x4e6b0b=await fetch(this[_0x14f809(0x25f)]+_0x14f809(0x21d),{'method':_0x14f809(0x299),'headers':{'Content-Type':_0x14f809(0x217),'x-api-key':this['apiKey']},'body':JSON[_0x14f809(0x1f2)](_0x2db03e)});if(!_0x4e6b0b['ok'])throw new Error(_0x14f809(0x1ea)+_0x4e6b0b['status']);this[_0x14f809(0x1e1)]&&(0x0,_0x2d124f[_0x14f809(0x2b6)])(this['debug'],'process\x20campaign\x20click\x20dispatched\x20successfully:\x20'+_0x2db03e['campaignId']);}catch(_0x5ce406){throw(0x0,_0x2d124f[_0x14f809(0x2b6)])(this[_0x14f809(0x1e1)],_0x14f809(0x276),_0x5ce406),_0x5ce406;}}async['buildCampaignPayload'](_0x1ab526,_0x466eac,_0x558e4b,_0x2b178b){const _0x2bf97c=_0x1e52a2;var _0x17a64d,_0x41097a;const _0x365d5e=Date['now'](),_0x4715cd={'campaignId':_0x1ab526,'opened':_0x466eac,'clicked':_0x558e4b,'deviceId':this[_0x2bf97c(0x1f6)],'timestamp':_0x365d5e,'userId':null===(_0x17a64d=this[_0x2bf97c(0x1f3)])||void 0x0===_0x17a64d?void 0x0:_0x17a64d['id'],'guestUserId':null===(_0x41097a=this[_0x2bf97c(0x1f3)])||void 0x0===_0x41097a?void 0x0:_0x41097a[_0x2bf97c(0x2b9)],'deviceInfo':this[_0x2bf97c(0x1d9)]};return void 0x0!==_0x2b178b&&(_0x4715cd[_0x2bf97c(0x248)]=_0x2b178b),_0x4715cd;}};},0xb6(_0x462da1,_0x25f2e4,_0x5756a5){const _0x3e8e3f=a0_0xac42;Object[_0x3e8e3f(0x1e4)](_0x25f2e4,_0x3e8e3f(0x1d7),{'value':!0x0}),_0x25f2e4['version']=_0x25f2e4[_0x3e8e3f(0x1fe)]=_0x25f2e4['v7']=_0x25f2e4[_0x3e8e3f(0x262)]=_0x25f2e4['v6']=_0x25f2e4['v5']=_0x25f2e4['v4']=_0x25f2e4['v3']=_0x25f2e4[_0x3e8e3f(0x204)]=_0x25f2e4['v1']=_0x25f2e4[_0x3e8e3f(0x1f2)]=_0x25f2e4['parse']=_0x25f2e4[_0x3e8e3f(0x28a)]=_0x25f2e4[_0x3e8e3f(0x29d)]=void 0x0;var _0x2c82da=_0x5756a5(0xc4);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,_0x3e8e3f(0x29d),{'enumerable':!0x0,'get':function(){const _0x476a2f=_0x3e8e3f;return _0x2c82da[_0x476a2f(0x23a)];}});var _0x4b1104=_0x5756a5(0x1d1);Object['defineProperty'](_0x25f2e4,_0x3e8e3f(0x28a),{'enumerable':!0x0,'get':function(){return _0x4b1104['default'];}});var _0x1ac90f=_0x5756a5(0x31d);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,_0x3e8e3f(0x298),{'enumerable':!0x0,'get':function(){return _0x1ac90f['default'];}});var _0x2a9062=_0x5756a5(0xb);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'stringify',{'enumerable':!0x0,'get':function(){const _0x33e643=_0x3e8e3f;return _0x2a9062[_0x33e643(0x23a)];}});var _0xe82edd=_0x5756a5(0x1a9);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v1',{'enumerable':!0x0,'get':function(){const _0x37f177=_0x3e8e3f;return _0xe82edd[_0x37f177(0x23a)];}});var _0x365ee7=_0x5756a5(0x238);Object['defineProperty'](_0x25f2e4,_0x3e8e3f(0x204),{'enumerable':!0x0,'get':function(){const _0x41188f=_0x3e8e3f;return _0x365ee7[_0x41188f(0x23a)];}});var _0x45367a=_0x5756a5(0x24f);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v3',{'enumerable':!0x0,'get':function(){const _0x470f2a=_0x3e8e3f;return _0x45367a[_0x470f2a(0x23a)];}});var _0x33b5f5=_0x5756a5(0x11e);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v4',{'enumerable':!0x0,'get':function(){return _0x33b5f5['default'];}});var _0x5c9ac5=_0x5756a5(0x22d);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v5',{'enumerable':!0x0,'get':function(){const _0x323582=_0x3e8e3f;return _0x5c9ac5[_0x323582(0x23a)];}});var _0x4bc965=_0x5756a5(0x164);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v6',{'enumerable':!0x0,'get':function(){const _0x136826=_0x3e8e3f;return _0x4bc965[_0x136826(0x23a)];}});var _0x10a366=_0x5756a5(0x10c);Object['defineProperty'](_0x25f2e4,_0x3e8e3f(0x262),{'enumerable':!0x0,'get':function(){return _0x10a366['default'];}});var _0x37d94a=_0x5756a5(0x12b);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,'v7',{'enumerable':!0x0,'get':function(){const _0x3ef984=_0x3e8e3f;return _0x37d94a[_0x3ef984(0x23a)];}});var _0x5a280e=_0x5756a5(0x2ea);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,_0x3e8e3f(0x1fe),{'enumerable':!0x0,'get':function(){const _0x51066c=_0x3e8e3f;return _0x5a280e[_0x51066c(0x23a)];}});var _0x32969f=_0x5756a5(0x302);Object[_0x3e8e3f(0x1e4)](_0x25f2e4,_0x3e8e3f(0x273),{'enumerable':!0x0,'get':function(){return _0x32969f['default'];}});},0xc4(_0x51fabd,_0x5dcd2a){const _0x114513=a0_0xac42;Object[_0x114513(0x1e4)](_0x5dcd2a,_0x114513(0x1d7),{'value':!0x0}),_0x5dcd2a['default']='ffffffff-ffff-ffff-ffff-ffffffffffff';},0x152(_0x46ea57,_0x19f80b){const _0x24079b=a0_0xac42;function _0x46b27e(_0x4df0be){return 0xe+(_0x4df0be+0x40>>>0x9<<0x4)+0x1;}function _0x38a964(_0x377d6c,_0x11b7fd){const _0x3dcca5=(0xffff&_0x377d6c)+(0xffff&_0x11b7fd);return(_0x377d6c>>0x10)+(_0x11b7fd>>0x10)+(_0x3dcca5>>0x10)<<0x10|0xffff&_0x3dcca5;}function _0x1b6aa7(_0x23debf,_0x1f0897,_0x19221c,_0x4dba63,_0x236f48,_0x199a4d){return _0x38a964(function _0x57dc28(_0x243832,_0x29131c){return _0x243832<<_0x29131c|_0x243832>>>0x20-_0x29131c;}(_0x38a964(_0x38a964(_0x1f0897,_0x23debf),_0x38a964(_0x4dba63,_0x199a4d)),_0x236f48),_0x19221c);}function _0x58a62d(_0x1fd378,_0x3b483e,_0x4a0211,_0x1fe2af,_0x1c30f5,_0x360548,_0x2366eb){return _0x1b6aa7(_0x3b483e&_0x4a0211|~_0x3b483e&_0x1fe2af,_0x1fd378,_0x3b483e,_0x1c30f5,_0x360548,_0x2366eb);}function _0x17ce76(_0x459a52,_0x4bd37c,_0x57a13d,_0x6d7b36,_0x45cc9d,_0x1facb3,_0x1ae039){return _0x1b6aa7(_0x4bd37c&_0x6d7b36|_0x57a13d&~_0x6d7b36,_0x459a52,_0x4bd37c,_0x45cc9d,_0x1facb3,_0x1ae039);}function _0x2e7014(_0x5c870a,_0x397315,_0x1b2732,_0x1d9365,_0x2b2fb4,_0x383ec8,_0x5c4e9c){return _0x1b6aa7(_0x397315^_0x1b2732^_0x1d9365,_0x5c870a,_0x397315,_0x2b2fb4,_0x383ec8,_0x5c4e9c);}function _0x5ba823(_0x4a6799,_0x30ec5e,_0x384684,_0xabfc97,_0x55cc7f,_0x15cd6e,_0x38f7c2){return _0x1b6aa7(_0x384684^(_0x30ec5e|~_0xabfc97),_0x4a6799,_0x30ec5e,_0x55cc7f,_0x15cd6e,_0x38f7c2);}Object[_0x24079b(0x1e4)](_0x19f80b,_0x24079b(0x1d7),{'value':!0x0}),_0x19f80b[_0x24079b(0x23a)]=function _0x50a114(_0x4c2a6e){return function _0x14a2f5(_0xd99ee6){const _0x19d4d0=a0_0xac42,_0x39cce1=new Uint8Array(0x4*_0xd99ee6['length']);for(let _0x2ddce4=0x0;_0x2ddce4<0x4*_0xd99ee6[_0x19d4d0(0x239)];_0x2ddce4++)_0x39cce1[_0x2ddce4]=_0xd99ee6[_0x2ddce4>>0x2]>>>_0x2ddce4%0x4*0x8&0xff;return _0x39cce1;}(function _0x3f3c82(_0x3ee7be,_0x163ca3){const _0x1a08ab=a0_0xac42,_0x344e3a=new Uint32Array(_0x46b27e(_0x163ca3))[_0x1a08ab(0x281)](0x0);_0x344e3a[_0x1a08ab(0x2ab)](_0x3ee7be),_0x344e3a[_0x163ca3>>0x5]|=0x80<<_0x163ca3%0x20,_0x344e3a[_0x344e3a[_0x1a08ab(0x239)]-0x1]=_0x163ca3,_0x3ee7be=_0x344e3a;let _0x4f38e7=0x67452301,_0xb40027=-0x10325477,_0x3b3604=-0x67452302,_0x19257b=0x10325476;for(let _0x47de6a=0x0;_0x47de6a<_0x3ee7be[_0x1a08ab(0x239)];_0x47de6a+=0x10){const _0x45c1fd=_0x4f38e7,_0x911ed2=_0xb40027,_0x2556bc=_0x3b3604,_0x62e143=_0x19257b;_0x4f38e7=_0x58a62d(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a],0x7,-0x28955b88),_0x19257b=_0x58a62d(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x1],0xc,-0x173848aa),_0x3b3604=_0x58a62d(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x2],0x11,0x242070db),_0xb40027=_0x58a62d(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x3],0x16,-0x3e423112),_0x4f38e7=_0x58a62d(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x4],0x7,-0xa83f051),_0x19257b=_0x58a62d(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x5],0xc,0x4787c62a),_0x3b3604=_0x58a62d(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x6],0x11,-0x57cfb9ed),_0xb40027=_0x58a62d(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x7],0x16,-0x2b96aff),_0x4f38e7=_0x58a62d(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x8],0x7,0x698098d8),_0x19257b=_0x58a62d(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x9],0xc,-0x74bb0851),_0x3b3604=_0x58a62d(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xa],0x11,-0xa44f),_0xb40027=_0x58a62d(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xb],0x16,-0x76a32842),_0x4f38e7=_0x58a62d(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0xc],0x7,0x6b901122),_0x19257b=_0x58a62d(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xd],0xc,-0x2678e6d),_0x3b3604=_0x58a62d(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xe],0x11,-0x5986bc72),_0xb40027=_0x58a62d(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xf],0x16,0x49b40821),_0x4f38e7=_0x17ce76(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x1],0x5,-0x9e1da9e),_0x19257b=_0x17ce76(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x6],0x9,-0x3fbf4cc0),_0x3b3604=_0x17ce76(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xb],0xe,0x265e5a51),_0xb40027=_0x17ce76(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a],0x14,-0x16493856),_0x4f38e7=_0x17ce76(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x5],0x5,-0x29d0efa3),_0x19257b=_0x17ce76(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xa],0x9,0x2441453),_0x3b3604=_0x17ce76(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xf],0xe,-0x275e197f),_0xb40027=_0x17ce76(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x4],0x14,-0x182c0438),_0x4f38e7=_0x17ce76(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x9],0x5,0x21e1cde6),_0x19257b=_0x17ce76(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xe],0x9,-0x3cc8f82a),_0x3b3604=_0x17ce76(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x3],0xe,-0xb2af279),_0xb40027=_0x17ce76(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x8],0x14,0x455a14ed),_0x4f38e7=_0x17ce76(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0xd],0x5,-0x561c16fb),_0x19257b=_0x17ce76(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x2],0x9,-0x3105c08),_0x3b3604=_0x17ce76(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x7],0xe,0x676f02d9),_0xb40027=_0x17ce76(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xc],0x14,-0x72d5b376),_0x4f38e7=_0x2e7014(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x5],0x4,-0x5c6be),_0x19257b=_0x2e7014(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x8],0xb,-0x788e097f),_0x3b3604=_0x2e7014(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xb],0x10,0x6d9d6122),_0xb40027=_0x2e7014(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xe],0x17,-0x21ac7f4),_0x4f38e7=_0x2e7014(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x1],0x4,-0x5b4115bc),_0x19257b=_0x2e7014(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x4],0xb,0x4bdecfa9),_0x3b3604=_0x2e7014(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x7],0x10,-0x944b4a0),_0xb40027=_0x2e7014(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xa],0x17,-0x41404390),_0x4f38e7=_0x2e7014(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0xd],0x4,0x289b7ec6),_0x19257b=_0x2e7014(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a],0xb,-0x155ed806),_0x3b3604=_0x2e7014(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x3],0x10,-0x2b10cf7b),_0xb40027=_0x2e7014(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x6],0x17,0x4881d05),_0x4f38e7=_0x2e7014(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x9],0x4,-0x262b2fc7),_0x19257b=_0x2e7014(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xc],0xb,-0x1924661b),_0x3b3604=_0x2e7014(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xf],0x10,0x1fa27cf8),_0xb40027=_0x2e7014(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x2],0x17,-0x3b53a99b),_0x4f38e7=_0x5ba823(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a],0x6,-0xbd6ddbc),_0x19257b=_0x5ba823(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x7],0xa,0x432aff97),_0x3b3604=_0x5ba823(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xe],0xf,-0x546bdc59),_0xb40027=_0x5ba823(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x5],0x15,-0x36c5fc7),_0x4f38e7=_0x5ba823(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0xc],0x6,0x655b59c3),_0x19257b=_0x5ba823(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0x3],0xa,-0x70f3336e),_0x3b3604=_0x5ba823(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0xa],0xf,-0x100b83),_0xb40027=_0x5ba823(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x1],0x15,-0x7a7ba22f),_0x4f38e7=_0x5ba823(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x8],0x6,0x6fa87e4f),_0x19257b=_0x5ba823(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xf],0xa,-0x1d31920),_0x3b3604=_0x5ba823(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x6],0xf,-0x5cfebcec),_0xb40027=_0x5ba823(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0xd],0x15,0x4e0811a1),_0x4f38e7=_0x5ba823(_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b,_0x3ee7be[_0x47de6a+0x4],0x6,-0x8ac817e),_0x19257b=_0x5ba823(_0x19257b,_0x4f38e7,_0xb40027,_0x3b3604,_0x3ee7be[_0x47de6a+0xb],0xa,-0x42c50dcb),_0x3b3604=_0x5ba823(_0x3b3604,_0x19257b,_0x4f38e7,_0xb40027,_0x3ee7be[_0x47de6a+0x2],0xf,0x2ad7d2bb),_0xb40027=_0x5ba823(_0xb40027,_0x3b3604,_0x19257b,_0x4f38e7,_0x3ee7be[_0x47de6a+0x9],0x15,-0x14792c6f),_0x4f38e7=_0x38a964(_0x4f38e7,_0x45c1fd),_0xb40027=_0x38a964(_0xb40027,_0x911ed2),_0x3b3604=_0x38a964(_0x3b3604,_0x2556bc),_0x19257b=_0x38a964(_0x19257b,_0x62e143);}return Uint32Array['of'](_0x4f38e7,_0xb40027,_0x3b3604,_0x19257b);}(function _0x236ab1(_0x3635c1){const _0x22723d=a0_0xac42;if(0x0===_0x3635c1[_0x22723d(0x239)])return new Uint32Array();const _0x35dcd8=new Uint32Array(_0x46b27e(0x8*_0x3635c1[_0x22723d(0x239)]))[_0x22723d(0x281)](0x0);for(let _0x522930=0x0;_0x522930<_0x3635c1['length'];_0x522930++)_0x35dcd8[_0x522930>>0x2]|=(0xff&_0x3635c1[_0x522930])<<_0x522930%0x4*0x8;return _0x35dcd8;}(_0x4c2a6e),0x8*_0x4c2a6e['length']));};},0x30b(_0x11914c,_0x1e130f){const _0x3caa78=a0_0xac42;Object[_0x3caa78(0x1e4)](_0x1e130f,'__esModule',{'value':!0x0});const _0x12fed6='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto[_0x3caa78(0x251)][_0x3caa78(0x21f)](crypto);_0x1e130f[_0x3caa78(0x23a)]={'randomUUID':_0x12fed6};},0x1d1(_0x1a79b4,_0x16c0bb){const _0x2abcae=a0_0xac42;Object[_0x2abcae(0x1e4)](_0x16c0bb,_0x2abcae(0x1d7),{'value':!0x0}),_0x16c0bb['default']='00000000-0000-0000-0000-000000000000';},0x31d(_0xcbb1e2,_0x344d02,_0xb7ea69){const _0x37d76a=a0_0xac42;Object['defineProperty'](_0x344d02,_0x37d76a(0x1d7),{'value':!0x0});const _0x16d6a0=_0xb7ea69(0x2ea);_0x344d02[_0x37d76a(0x23a)]=function _0x355a7a(_0x56483d){const _0x2fa449=_0x37d76a;if(!(0x0,_0x16d6a0[_0x2fa449(0x23a)])(_0x56483d))throw TypeError(_0x2fa449(0x211));let _0x354c3d;return Uint8Array['of']((_0x354c3d=parseInt(_0x56483d['slice'](0x0,0x8),0x10))>>>0x18,_0x354c3d>>>0x10&0xff,_0x354c3d>>>0x8&0xff,0xff&_0x354c3d,(_0x354c3d=parseInt(_0x56483d[_0x2fa449(0x2ad)](0x9,0xd),0x10))>>>0x8,0xff&_0x354c3d,(_0x354c3d=parseInt(_0x56483d['slice'](0xe,0x12),0x10))>>>0x8,0xff&_0x354c3d,(_0x354c3d=parseInt(_0x56483d[_0x2fa449(0x2ad)](0x13,0x17),0x10))>>>0x8,0xff&_0x354c3d,(_0x354c3d=parseInt(_0x56483d['slice'](0x18,0x24),0x10))/0x10000000000&0xff,_0x354c3d/0x100000000&0xff,_0x354c3d>>>0x18&0xff,_0x354c3d>>>0x10&0xff,_0x354c3d>>>0x8&0xff,0xff&_0x354c3d);};},0x2b9(_0x151f4b,_0x213229){const _0x3cc991=a0_0xac42;Object['defineProperty'](_0x213229,'__esModule',{'value':!0x0}),_0x213229[_0x3cc991(0x23a)]=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;},0x123(_0x906e0d,_0x11829d){const _0x418b64=a0_0xac42;let _0x238225;Object[_0x418b64(0x1e4)](_0x11829d,'__esModule',{'value':!0x0});const _0x1f0919=new Uint8Array(0x10);_0x11829d[_0x418b64(0x23a)]=function _0x10144f(){const _0x45eb0a=_0x418b64;if(!_0x238225){if(_0x45eb0a(0x2aa)==typeof crypto||!crypto['getRandomValues'])throw new Error(_0x45eb0a(0x272));_0x238225=crypto['getRandomValues'][_0x45eb0a(0x21f)](crypto);}return _0x238225(_0x1f0919);};},0x33d(_0x43e483,_0xc942f7){const _0x50a0ae=a0_0xac42;function _0x569d10(_0x4edcf1,_0x7c13bb,_0x563593,_0x200c56){switch(_0x4edcf1){case 0x0:return _0x7c13bb&_0x563593^~_0x7c13bb&_0x200c56;case 0x1:case 0x3:return _0x7c13bb^_0x563593^_0x200c56;case 0x2:return _0x7c13bb&_0x563593^_0x7c13bb&_0x200c56^_0x563593&_0x200c56;}}function _0x120c43(_0xf79643,_0x4801b5){return _0xf79643<<_0x4801b5|_0xf79643>>>0x20-_0x4801b5;}Object[_0x50a0ae(0x1e4)](_0xc942f7,'__esModule',{'value':!0x0}),_0xc942f7[_0x50a0ae(0x23a)]=function _0x4cc295(_0x208bae){const _0x2ac771=_0x50a0ae,_0x12228e=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],_0x299dd9=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],_0x554e9c=new Uint8Array(_0x208bae[_0x2ac771(0x239)]+0x1);_0x554e9c[_0x2ac771(0x2ab)](_0x208bae),_0x554e9c[_0x208bae[_0x2ac771(0x239)]]=0x80;const _0xe73011=(_0x208bae=_0x554e9c)[_0x2ac771(0x239)]/0x4+0x2,_0x20e3fd=Math[_0x2ac771(0x21b)](_0xe73011/0x10),_0x51061b=new Array(_0x20e3fd);for(let _0x185727=0x0;_0x185727<_0x20e3fd;++_0x185727){const _0x3e7430=new Uint32Array(0x10);for(let _0x1c47a0=0x0;_0x1c47a0<0x10;++_0x1c47a0)_0x3e7430[_0x1c47a0]=_0x208bae[0x40*_0x185727+0x4*_0x1c47a0]<<0x18|_0x208bae[0x40*_0x185727+0x4*_0x1c47a0+0x1]<<0x10|_0x208bae[0x40*_0x185727+0x4*_0x1c47a0+0x2]<<0x8|_0x208bae[0x40*_0x185727+0x4*_0x1c47a0+0x3];_0x51061b[_0x185727]=_0x3e7430;}_0x51061b[_0x20e3fd-0x1][0xe]=0x8*(_0x208bae[_0x2ac771(0x239)]-0x1)/Math[_0x2ac771(0x2a9)](0x2,0x20),_0x51061b[_0x20e3fd-0x1][0xe]=Math[_0x2ac771(0x25c)](_0x51061b[_0x20e3fd-0x1][0xe]),_0x51061b[_0x20e3fd-0x1][0xf]=0x8*(_0x208bae[_0x2ac771(0x239)]-0x1)&0xffffffff;for(let _0x2bfa65=0x0;_0x2bfa65<_0x20e3fd;++_0x2bfa65){const _0x5ebe8d=new Uint32Array(0x50);for(let _0xc68573=0x0;_0xc68573<0x10;++_0xc68573)_0x5ebe8d[_0xc68573]=_0x51061b[_0x2bfa65][_0xc68573];for(let _0x190b73=0x10;_0x190b73<0x50;++_0x190b73)_0x5ebe8d[_0x190b73]=_0x120c43(_0x5ebe8d[_0x190b73-0x3]^_0x5ebe8d[_0x190b73-0x8]^_0x5ebe8d[_0x190b73-0xe]^_0x5ebe8d[_0x190b73-0x10],0x1);let _0x27d99d=_0x299dd9[0x0],_0xdd8f52=_0x299dd9[0x1],_0x3da0b7=_0x299dd9[0x2],_0x367c84=_0x299dd9[0x3],_0x388462=_0x299dd9[0x4];for(let _0x260e1e=0x0;_0x260e1e<0x50;++_0x260e1e){const _0x18cb8e=Math[_0x2ac771(0x25c)](_0x260e1e/0x14),_0x11efab=_0x120c43(_0x27d99d,0x5)+_0x569d10(_0x18cb8e,_0xdd8f52,_0x3da0b7,_0x367c84)+_0x388462+_0x12228e[_0x18cb8e]+_0x5ebe8d[_0x260e1e]>>>0x0;_0x388462=_0x367c84,_0x367c84=_0x3da0b7,_0x3da0b7=_0x120c43(_0xdd8f52,0x1e)>>>0x0,_0xdd8f52=_0x27d99d,_0x27d99d=_0x11efab;}_0x299dd9[0x0]=_0x299dd9[0x0]+_0x27d99d>>>0x0,_0x299dd9[0x1]=_0x299dd9[0x1]+_0xdd8f52>>>0x0,_0x299dd9[0x2]=_0x299dd9[0x2]+_0x3da0b7>>>0x0,_0x299dd9[0x3]=_0x299dd9[0x3]+_0x367c84>>>0x0,_0x299dd9[0x4]=_0x299dd9[0x4]+_0x388462>>>0x0;}return Uint8Array['of'](_0x299dd9[0x0]>>0x18,_0x299dd9[0x0]>>0x10,_0x299dd9[0x0]>>0x8,_0x299dd9[0x0],_0x299dd9[0x1]>>0x18,_0x299dd9[0x1]>>0x10,_0x299dd9[0x1]>>0x8,_0x299dd9[0x1],_0x299dd9[0x2]>>0x18,_0x299dd9[0x2]>>0x10,_0x299dd9[0x2]>>0x8,_0x299dd9[0x2],_0x299dd9[0x3]>>0x18,_0x299dd9[0x3]>>0x10,_0x299dd9[0x3]>>0x8,_0x299dd9[0x3],_0x299dd9[0x4]>>0x18,_0x299dd9[0x4]>>0x10,_0x299dd9[0x4]>>0x8,_0x299dd9[0x4]);};},0xb(_0x3c12ff,_0x2da549,_0x4417ed){const _0x3b49df=a0_0xac42;Object['defineProperty'](_0x2da549,_0x3b49df(0x1d7),{'value':!0x0}),_0x2da549[_0x3b49df(0x24b)]=void 0x0;const _0xc1b2b8=_0x4417ed(0x2ea),_0x2915e5=[];for(let _0x8bf5f6=0x0;_0x8bf5f6<0x100;++_0x8bf5f6)_0x2915e5['push']((_0x8bf5f6+0x100)['toString'](0x10)['slice'](0x1));function _0x3586cc(_0x1b89a1,_0x12e1f7=0x0){const _0x2e10a0=_0x3b49df;return(_0x2915e5[_0x1b89a1[_0x12e1f7+0x0]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x1]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x2]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x3]]+'-'+_0x2915e5[_0x1b89a1[_0x12e1f7+0x4]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x5]]+'-'+_0x2915e5[_0x1b89a1[_0x12e1f7+0x6]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x7]]+'-'+_0x2915e5[_0x1b89a1[_0x12e1f7+0x8]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0x9]]+'-'+_0x2915e5[_0x1b89a1[_0x12e1f7+0xa]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0xb]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0xc]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0xd]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0xe]]+_0x2915e5[_0x1b89a1[_0x12e1f7+0xf]])[_0x2e10a0(0x1e9)]();}_0x2da549[_0x3b49df(0x24b)]=_0x3586cc,_0x2da549[_0x3b49df(0x23a)]=function _0x58a869(_0x25492f,_0x1fff56=0x0){const _0x3ae72e=_0x3b49df,_0x2923e3=_0x3586cc(_0x25492f,_0x1fff56);if(!(0x0,_0xc1b2b8[_0x3ae72e(0x23a)])(_0x2923e3))throw TypeError('Stringified\x20UUID\x20is\x20invalid');return _0x2923e3;};},0x1a9(_0x19266e,_0x3ec4cd,_0x5eae0e){const _0x53a3b2=a0_0xac42;Object[_0x53a3b2(0x1e4)](_0x3ec4cd,_0x53a3b2(0x1d7),{'value':!0x0}),_0x3ec4cd[_0x53a3b2(0x212)]=void 0x0;const _0x1e8ade=_0x5eae0e(0x123),_0x59bbcb=_0x5eae0e(0xb),_0x18ec92={};function _0x3b3b44(_0xec6764,_0x2abcf4,_0xc631c6){const _0x3697e5=_0x53a3b2;return _0xec6764[_0x3697e5(0x2b8)]??=-0x1/0x0,_0xec6764[_0x3697e5(0x264)]??=0x0,_0x2abcf4===_0xec6764['msecs']?(_0xec6764[_0x3697e5(0x264)]++,_0xec6764[_0x3697e5(0x264)]>=0x2710&&(_0xec6764[_0x3697e5(0x23e)]=void 0x0,_0xec6764[_0x3697e5(0x264)]=0x0)):_0x2abcf4>_0xec6764['msecs']?_0xec6764[_0x3697e5(0x264)]=0x0:_0x2abcf4<_0xec6764['msecs']&&(_0xec6764[_0x3697e5(0x23e)]=void 0x0),_0xec6764[_0x3697e5(0x23e)]||(_0xec6764[_0x3697e5(0x23e)]=_0xc631c6[_0x3697e5(0x2ad)](0xa,0x10),_0xec6764[_0x3697e5(0x23e)][0x0]|=0x1,_0xec6764[_0x3697e5(0x22c)]=0x3fff&(_0xc631c6[0x8]<<0x8|_0xc631c6[0x9])),_0xec6764[_0x3697e5(0x2b8)]=_0x2abcf4,_0xec6764;}function _0x3658e4(_0xff1666,_0x2a727c,_0x1801a0,_0xbf9dc8,_0x4c4b7e,_0x363972,_0x326abf=0x0){const _0x5f3f6a=_0x53a3b2;if(_0xff1666[_0x5f3f6a(0x239)]<0x10)throw new Error(_0x5f3f6a(0x292));if(_0x363972){if(_0x326abf<0x0||_0x326abf+0x10>_0x363972[_0x5f3f6a(0x239)])throw new RangeError(_0x5f3f6a(0x2b4)+_0x326abf+':'+(_0x326abf+0xf)+_0x5f3f6a(0x219));}else _0x363972=new Uint8Array(0x10),_0x326abf=0x0;_0x2a727c??=Date[_0x5f3f6a(0x229)](),_0x1801a0??=0x0,_0xbf9dc8??=0x3fff&(_0xff1666[0x8]<<0x8|_0xff1666[0x9]),_0x4c4b7e??=_0xff1666[_0x5f3f6a(0x2ad)](0xa,0x10);const _0x5e3aaa=(0x2710*(0xfffffff&(_0x2a727c+=0xb1d069b5400))+_0x1801a0)%0x100000000;_0x363972[_0x326abf++]=_0x5e3aaa>>>0x18&0xff,_0x363972[_0x326abf++]=_0x5e3aaa>>>0x10&0xff,_0x363972[_0x326abf++]=_0x5e3aaa>>>0x8&0xff,_0x363972[_0x326abf++]=0xff&_0x5e3aaa;const _0x5dea07=_0x2a727c/0x100000000*0x2710&0xfffffff;_0x363972[_0x326abf++]=_0x5dea07>>>0x8&0xff,_0x363972[_0x326abf++]=0xff&_0x5dea07,_0x363972[_0x326abf++]=_0x5dea07>>>0x18&0xf|0x10,_0x363972[_0x326abf++]=_0x5dea07>>>0x10&0xff,_0x363972[_0x326abf++]=_0xbf9dc8>>>0x8|0x80,_0x363972[_0x326abf++]=0xff&_0xbf9dc8;for(let _0x39119d=0x0;_0x39119d<0x6;++_0x39119d)_0x363972[_0x326abf++]=_0x4c4b7e[_0x39119d];return _0x363972;}_0x3ec4cd[_0x53a3b2(0x212)]=_0x3b3b44,_0x3ec4cd[_0x53a3b2(0x23a)]=function _0x3fc94a(_0x5cea27,_0x34d796,_0x18e28c){const _0x48f3f9=_0x53a3b2;let _0x5b7b63;const _0x564a7b=_0x5cea27?.[_0x48f3f9(0x209)]??!0x1;if(_0x5cea27){const _0x5a2ff5=Object[_0x48f3f9(0x27d)](_0x5cea27);0x1===_0x5a2ff5[_0x48f3f9(0x239)]&&_0x48f3f9(0x209)===_0x5a2ff5[0x0]&&(_0x5cea27=void 0x0);}if(_0x5cea27)_0x5b7b63=_0x3658e4(_0x5cea27[_0x48f3f9(0x1ee)]??_0x5cea27[_0x48f3f9(0x242)]?.()??(0x0,_0x1e8ade[_0x48f3f9(0x23a)])(),_0x5cea27[_0x48f3f9(0x2b8)],_0x5cea27['nsecs'],_0x5cea27[_0x48f3f9(0x22c)],_0x5cea27['node'],_0x34d796,_0x18e28c);else{const _0x423174=Date[_0x48f3f9(0x229)](),_0x147744=(0x0,_0x1e8ade[_0x48f3f9(0x23a)])();_0x3b3b44(_0x18ec92,_0x423174,_0x147744),_0x5b7b63=_0x3658e4(_0x147744,_0x18ec92[_0x48f3f9(0x2b8)],_0x18ec92['nsecs'],_0x564a7b?void 0x0:_0x18ec92[_0x48f3f9(0x22c)],_0x564a7b?void 0x0:_0x18ec92['node'],_0x34d796,_0x18e28c);}return _0x34d796??(0x0,_0x59bbcb['unsafeStringify'])(_0x5b7b63);};},0x238(_0x1c7fdd,_0x27541e,_0x5167f3){const _0x1e3f73=a0_0xac42;Object[_0x1e3f73(0x1e4)](_0x27541e,_0x1e3f73(0x1d7),{'value':!0x0});const _0x355956=_0x5167f3(0x31d),_0x5a1f21=_0x5167f3(0xb);_0x27541e[_0x1e3f73(0x23a)]=function _0x35fba5(_0xdbf0d2){const _0x1e876d=_0x1e3f73,_0xf0fa90=function _0x33130c(_0x315c5e){return Uint8Array['of']((0xf&_0x315c5e[0x6])<<0x4|_0x315c5e[0x7]>>0x4&0xf,(0xf&_0x315c5e[0x7])<<0x4|(0xf0&_0x315c5e[0x4])>>0x4,(0xf&_0x315c5e[0x4])<<0x4|(0xf0&_0x315c5e[0x5])>>0x4,(0xf&_0x315c5e[0x5])<<0x4|(0xf0&_0x315c5e[0x0])>>0x4,(0xf&_0x315c5e[0x0])<<0x4|(0xf0&_0x315c5e[0x1])>>0x4,(0xf&_0x315c5e[0x1])<<0x4|(0xf0&_0x315c5e[0x2])>>0x4,0x60|0xf&_0x315c5e[0x2],_0x315c5e[0x3],_0x315c5e[0x8],_0x315c5e[0x9],_0x315c5e[0xa],_0x315c5e[0xb],_0x315c5e[0xc],_0x315c5e[0xd],_0x315c5e[0xe],_0x315c5e[0xf]);}('string'==typeof _0xdbf0d2?(0x0,_0x355956[_0x1e876d(0x23a)])(_0xdbf0d2):_0xdbf0d2);return _0x1e876d(0x289)==typeof _0xdbf0d2?(0x0,_0x5a1f21['unsafeStringify'])(_0xf0fa90):_0xf0fa90;};},0x24f(_0x2bd7b0,_0x52cc69,_0x104959){const _0x4e43bf=a0_0xac42;Object[_0x4e43bf(0x1e4)](_0x52cc69,_0x4e43bf(0x1d7),{'value':!0x0}),_0x52cc69[_0x4e43bf(0x2c7)]=_0x52cc69[_0x4e43bf(0x202)]=void 0x0;const _0x1d805e=_0x104959(0x152),_0x384f9b=_0x104959(0x3dc);var _0x39ee8b=_0x104959(0x3dc);function _0x2334a2(_0x2210a3,_0x21c782,_0x200f8f,_0x40312b){const _0x1c95c9=_0x4e43bf;return(0x0,_0x384f9b[_0x1c95c9(0x23a)])(0x30,_0x1d805e[_0x1c95c9(0x23a)],_0x2210a3,_0x21c782,_0x200f8f,_0x40312b);}Object[_0x4e43bf(0x1e4)](_0x52cc69,_0x4e43bf(0x202),{'enumerable':!0x0,'get':function(){return _0x39ee8b['DNS'];}}),Object[_0x4e43bf(0x1e4)](_0x52cc69,'URL',{'enumerable':!0x0,'get':function(){const _0x45ea86=_0x4e43bf;return _0x39ee8b[_0x45ea86(0x2c7)];}}),_0x2334a2[_0x4e43bf(0x202)]=_0x384f9b[_0x4e43bf(0x202)],_0x2334a2['URL']=_0x384f9b[_0x4e43bf(0x2c7)],_0x52cc69[_0x4e43bf(0x23a)]=_0x2334a2;},0x3dc(_0x539576,_0x3556f2,_0x445fcd){const _0x388a66=a0_0xac42;Object[_0x388a66(0x1e4)](_0x3556f2,_0x388a66(0x1d7),{'value':!0x0}),_0x3556f2[_0x388a66(0x2c7)]=_0x3556f2['DNS']=_0x3556f2[_0x388a66(0x1d6)]=void 0x0;const _0x5efa1b=_0x445fcd(0x31d),_0x325d1b=_0x445fcd(0xb);function _0x4ba659(_0x57c53d){const _0x107489=_0x388a66;_0x57c53d=unescape(encodeURIComponent(_0x57c53d));const _0x41cf6d=new Uint8Array(_0x57c53d['length']);for(let _0x1c4617=0x0;_0x1c4617<_0x57c53d[_0x107489(0x239)];++_0x1c4617)_0x41cf6d[_0x1c4617]=_0x57c53d[_0x107489(0x21a)](_0x1c4617);return _0x41cf6d;}_0x3556f2[_0x388a66(0x1d6)]=_0x4ba659,_0x3556f2[_0x388a66(0x202)]=_0x388a66(0x2c6),_0x3556f2['URL']='6ba7b811-9dad-11d1-80b4-00c04fd430c8',_0x3556f2[_0x388a66(0x23a)]=function _0x6848ad(_0x5386dc,_0x33e13e,_0x480eca,_0x108981,_0x37a442,_0x3a0684){const _0x43f016=_0x388a66,_0x2c05bc=_0x43f016(0x289)==typeof _0x480eca?_0x4ba659(_0x480eca):_0x480eca,_0x157871=_0x43f016(0x289)==typeof _0x108981?(0x0,_0x5efa1b['default'])(_0x108981):_0x108981;if(_0x43f016(0x289)==typeof _0x108981&&(_0x108981=(0x0,_0x5efa1b[_0x43f016(0x23a)])(_0x108981)),0x10!==_0x108981?.['length'])throw TypeError(_0x43f016(0x1f0));let _0x1f72e1=new Uint8Array(0x10+_0x2c05bc['length']);if(_0x1f72e1[_0x43f016(0x2ab)](_0x157871),_0x1f72e1[_0x43f016(0x2ab)](_0x2c05bc,_0x157871['length']),_0x1f72e1=_0x33e13e(_0x1f72e1),_0x1f72e1[0x6]=0xf&_0x1f72e1[0x6]|_0x5386dc,_0x1f72e1[0x8]=0x3f&_0x1f72e1[0x8]|0x80,_0x37a442){_0x3a0684=_0x3a0684||0x0;for(let _0x2d8c8c=0x0;_0x2d8c8c<0x10;++_0x2d8c8c)_0x37a442[_0x3a0684+_0x2d8c8c]=_0x1f72e1[_0x2d8c8c];return _0x37a442;}return(0x0,_0x325d1b['unsafeStringify'])(_0x1f72e1);};},0x11e(_0x2bc92d,_0x15e809,_0x8a6583){const _0x57feb2=a0_0xac42;Object[_0x57feb2(0x1e4)](_0x15e809,_0x57feb2(0x1d7),{'value':!0x0});const _0x235b7e=_0x8a6583(0x30b),_0x4990d1=_0x8a6583(0x123),_0x83d26d=_0x8a6583(0xb);_0x15e809[_0x57feb2(0x23a)]=function _0x4f553f(_0x565510,_0x10dd7b,_0x414122){const _0x4ab4e8=_0x57feb2;if(_0x235b7e[_0x4ab4e8(0x23a)]['randomUUID']&&!_0x10dd7b&&!_0x565510)return _0x235b7e[_0x4ab4e8(0x23a)][_0x4ab4e8(0x251)]();const _0x56abbf=(_0x565510=_0x565510||{})[_0x4ab4e8(0x1ee)]??_0x565510[_0x4ab4e8(0x242)]?.()??(0x0,_0x4990d1[_0x4ab4e8(0x23a)])();if(_0x56abbf[_0x4ab4e8(0x239)]<0x10)throw new Error(_0x4ab4e8(0x292));if(_0x56abbf[0x6]=0xf&_0x56abbf[0x6]|0x40,_0x56abbf[0x8]=0x3f&_0x56abbf[0x8]|0x80,_0x10dd7b){if((_0x414122=_0x414122||0x0)<0x0||_0x414122+0x10>_0x10dd7b[_0x4ab4e8(0x239)])throw new RangeError(_0x4ab4e8(0x2b4)+_0x414122+':'+(_0x414122+0xf)+_0x4ab4e8(0x219));for(let _0x533457=0x0;_0x533457<0x10;++_0x533457)_0x10dd7b[_0x414122+_0x533457]=_0x56abbf[_0x533457];return _0x10dd7b;}return(0x0,_0x83d26d[_0x4ab4e8(0x24b)])(_0x56abbf);};},0x22d(_0x2dee59,_0x14112f,_0x19b787){const _0x56f8c9=a0_0xac42;Object[_0x56f8c9(0x1e4)](_0x14112f,_0x56f8c9(0x1d7),{'value':!0x0}),_0x14112f[_0x56f8c9(0x2c7)]=_0x14112f[_0x56f8c9(0x202)]=void 0x0;const _0x5d9b3d=_0x19b787(0x33d),_0x116782=_0x19b787(0x3dc);var _0x28ce18=_0x19b787(0x3dc);function _0x2e08c4(_0x44c748,_0x27605a,_0x1345ed,_0x1f2e0a){const _0x4f091=_0x56f8c9;return(0x0,_0x116782[_0x4f091(0x23a)])(0x50,_0x5d9b3d['default'],_0x44c748,_0x27605a,_0x1345ed,_0x1f2e0a);}Object[_0x56f8c9(0x1e4)](_0x14112f,_0x56f8c9(0x202),{'enumerable':!0x0,'get':function(){const _0x240181=_0x56f8c9;return _0x28ce18[_0x240181(0x202)];}}),Object[_0x56f8c9(0x1e4)](_0x14112f,_0x56f8c9(0x2c7),{'enumerable':!0x0,'get':function(){const _0x6bac66=_0x56f8c9;return _0x28ce18[_0x6bac66(0x2c7)];}}),_0x2e08c4[_0x56f8c9(0x202)]=_0x116782[_0x56f8c9(0x202)],_0x2e08c4['URL']=_0x116782[_0x56f8c9(0x2c7)],_0x14112f[_0x56f8c9(0x23a)]=_0x2e08c4;},0x164(_0x2385e7,_0x322643,_0x58e8ab){const _0x36fed1=a0_0xac42;Object[_0x36fed1(0x1e4)](_0x322643,_0x36fed1(0x1d7),{'value':!0x0});const _0x1cb9dd=_0x58e8ab(0xb),_0x462ceb=_0x58e8ab(0x1a9),_0xb784e=_0x58e8ab(0x238);_0x322643[_0x36fed1(0x23a)]=function _0x2089c8(_0x572394,_0x52f807,_0x20e19a){const _0x4e1fbd=_0x36fed1;_0x572394??={},_0x20e19a??=0x0;let _0x395839=(0x0,_0x462ceb['default'])({..._0x572394,'_v6':!0x0},new Uint8Array(0x10));if(_0x395839=(0x0,_0xb784e[_0x4e1fbd(0x23a)])(_0x395839),_0x52f807){for(let _0x2c017a=0x0;_0x2c017a<0x10;_0x2c017a++)_0x52f807[_0x20e19a+_0x2c017a]=_0x395839[_0x2c017a];return _0x52f807;}return(0x0,_0x1cb9dd[_0x4e1fbd(0x24b)])(_0x395839);};},0x10c(_0x529031,_0x121a91,_0x7b5eef){const _0x427cf2=a0_0xac42;Object['defineProperty'](_0x121a91,'__esModule',{'value':!0x0});const _0x562638=_0x7b5eef(0x31d),_0x124077=_0x7b5eef(0xb);_0x121a91[_0x427cf2(0x23a)]=function _0x106856(_0x527ea7){const _0x451846=_0x427cf2,_0x43f17a=function _0x15bf11(_0x2c1f99){return Uint8Array['of']((0xf&_0x2c1f99[0x3])<<0x4|_0x2c1f99[0x4]>>0x4&0xf,(0xf&_0x2c1f99[0x4])<<0x4|(0xf0&_0x2c1f99[0x5])>>0x4,(0xf&_0x2c1f99[0x5])<<0x4|0xf&_0x2c1f99[0x6],_0x2c1f99[0x7],(0xf&_0x2c1f99[0x1])<<0x4|(0xf0&_0x2c1f99[0x2])>>0x4,(0xf&_0x2c1f99[0x2])<<0x4|(0xf0&_0x2c1f99[0x3])>>0x4,0x10|(0xf0&_0x2c1f99[0x0])>>0x4,(0xf&_0x2c1f99[0x0])<<0x4|(0xf0&_0x2c1f99[0x1])>>0x4,_0x2c1f99[0x8],_0x2c1f99[0x9],_0x2c1f99[0xa],_0x2c1f99[0xb],_0x2c1f99[0xc],_0x2c1f99[0xd],_0x2c1f99[0xe],_0x2c1f99[0xf]);}(_0x451846(0x289)==typeof _0x527ea7?(0x0,_0x562638[_0x451846(0x23a)])(_0x527ea7):_0x527ea7);return _0x451846(0x289)==typeof _0x527ea7?(0x0,_0x124077[_0x451846(0x24b)])(_0x43f17a):_0x43f17a;};},0x12b(_0x52e768,_0x24f6ce,_0x445cf8){const _0x2d4f0e=a0_0xac42;Object[_0x2d4f0e(0x1e4)](_0x24f6ce,_0x2d4f0e(0x1d7),{'value':!0x0}),_0x24f6ce['updateV7State']=void 0x0;const _0x37e266=_0x445cf8(0x123),_0x44fd8e=_0x445cf8(0xb),_0x2454db={};function _0x1f162b(_0x54a8e8,_0x222013,_0x58074d){const _0x3b368c=_0x2d4f0e;return _0x54a8e8[_0x3b368c(0x2b8)]??=-0x1/0x0,_0x54a8e8[_0x3b368c(0x215)]??=0x0,_0x222013>_0x54a8e8['msecs']?(_0x54a8e8[_0x3b368c(0x215)]=_0x58074d[0x6]<<0x17|_0x58074d[0x7]<<0x10|_0x58074d[0x8]<<0x8|_0x58074d[0x9],_0x54a8e8[_0x3b368c(0x2b8)]=_0x222013):(_0x54a8e8[_0x3b368c(0x215)]=_0x54a8e8['seq']+0x1|0x0,0x0===_0x54a8e8[_0x3b368c(0x215)]&&_0x54a8e8[_0x3b368c(0x2b8)]++),_0x54a8e8;}function _0x3d2875(_0x56f549,_0x14f159,_0x195e62,_0x5ad1a2,_0x133e2e=0x0){const _0x5a5ccb=_0x2d4f0e;if(_0x56f549[_0x5a5ccb(0x239)]<0x10)throw new Error(_0x5a5ccb(0x292));if(_0x5ad1a2){if(_0x133e2e<0x0||_0x133e2e+0x10>_0x5ad1a2[_0x5a5ccb(0x239)])throw new RangeError('UUID\x20byte\x20range\x20'+_0x133e2e+':'+(_0x133e2e+0xf)+_0x5a5ccb(0x219));}else _0x5ad1a2=new Uint8Array(0x10),_0x133e2e=0x0;return _0x14f159??=Date[_0x5a5ccb(0x229)](),_0x195e62??=0x7f*_0x56f549[0x6]<<0x18|_0x56f549[0x7]<<0x10|_0x56f549[0x8]<<0x8|_0x56f549[0x9],_0x5ad1a2[_0x133e2e++]=_0x14f159/0x10000000000&0xff,_0x5ad1a2[_0x133e2e++]=_0x14f159/0x100000000&0xff,_0x5ad1a2[_0x133e2e++]=_0x14f159/0x1000000&0xff,_0x5ad1a2[_0x133e2e++]=_0x14f159/0x10000&0xff,_0x5ad1a2[_0x133e2e++]=_0x14f159/0x100&0xff,_0x5ad1a2[_0x133e2e++]=0xff&_0x14f159,_0x5ad1a2[_0x133e2e++]=0x70|_0x195e62>>>0x1c&0xf,_0x5ad1a2[_0x133e2e++]=_0x195e62>>>0x14&0xff,_0x5ad1a2[_0x133e2e++]=0x80|_0x195e62>>>0xe&0x3f,_0x5ad1a2[_0x133e2e++]=_0x195e62>>>0x6&0xff,_0x5ad1a2[_0x133e2e++]=_0x195e62<<0x2&0xff|0x3&_0x56f549[0xa],_0x5ad1a2[_0x133e2e++]=_0x56f549[0xb],_0x5ad1a2[_0x133e2e++]=_0x56f549[0xc],_0x5ad1a2[_0x133e2e++]=_0x56f549[0xd],_0x5ad1a2[_0x133e2e++]=_0x56f549[0xe],_0x5ad1a2[_0x133e2e++]=_0x56f549[0xf],_0x5ad1a2;}_0x24f6ce[_0x2d4f0e(0x27f)]=_0x1f162b,_0x24f6ce['default']=function _0x2a40a0(_0x16953d,_0x4ba78d,_0x325b93){const _0x18eb0a=_0x2d4f0e;let _0x1fa880;if(_0x16953d)_0x1fa880=_0x3d2875(_0x16953d[_0x18eb0a(0x1ee)]??_0x16953d['rng']?.()??(0x0,_0x37e266[_0x18eb0a(0x23a)])(),_0x16953d[_0x18eb0a(0x2b8)],_0x16953d['seq'],_0x4ba78d,_0x325b93);else{const _0x30269d=Date[_0x18eb0a(0x229)](),_0x198949=(0x0,_0x37e266[_0x18eb0a(0x23a)])();_0x1f162b(_0x2454db,_0x30269d,_0x198949),_0x1fa880=_0x3d2875(_0x198949,_0x2454db[_0x18eb0a(0x2b8)],_0x2454db['seq'],_0x4ba78d,_0x325b93);}return _0x4ba78d??(0x0,_0x44fd8e[_0x18eb0a(0x24b)])(_0x1fa880);};},0x2ea(_0x4b5cfc,_0x1ebd26,_0x7421ee){const _0x1b926e=a0_0xac42;Object[_0x1b926e(0x1e4)](_0x1ebd26,_0x1b926e(0x1d7),{'value':!0x0});const _0x513f60=_0x7421ee(0x2b9);_0x1ebd26[_0x1b926e(0x23a)]=function _0xc6488d(_0x3587d5){const _0x207e6d=_0x1b926e;return _0x207e6d(0x289)==typeof _0x3587d5&&_0x513f60['default'][_0x207e6d(0x2ae)](_0x3587d5);};},0x302(_0x13755c,_0x240e50,_0x56872b){const _0x171495=a0_0xac42;Object[_0x171495(0x1e4)](_0x240e50,'__esModule',{'value':!0x0});const _0x1ff391=_0x56872b(0x2ea);_0x240e50['default']=function _0x2713d8(_0xe24293){const _0x30e11f=_0x171495;if(!(0x0,_0x1ff391[_0x30e11f(0x23a)])(_0xe24293))throw TypeError(_0x30e11f(0x211));return parseInt(_0xe24293['slice'](0xe,0xf),0x10);};},0x14a(_0x229bf2){const _0x25f645=a0_0xac42;_0x229bf2[_0x25f645(0x269)]=JSON[_0x25f645(0x298)](_0x25f645(0x275));}},_0x1d7c6b={};function _0x4c75d4(_0x518bee){const _0x4ca886=a0_0xac42;var _0x442924=_0x1d7c6b[_0x518bee];if(void 0x0!==_0x442924)return _0x442924[_0x4ca886(0x269)];var _0x3829a6=_0x1d7c6b[_0x518bee]={'exports':{}};return _0x17068f[_0x518bee](_0x3829a6,_0x3829a6['exports'],_0x4c75d4),_0x3829a6['exports'];}var _0x387df7={};return((()=>{const _0x363f98=a0_0xac42;var _0x3f8076=_0x387df7;Object['defineProperty'](_0x3f8076,_0x363f98(0x1d7),{'value':!0x0}),_0x3f8076[_0x363f98(0x20d)]=void 0x0;var _0x50246f=_0x4c75d4(0x1a7);Object['defineProperty'](_0x3f8076,_0x363f98(0x20d),{'enumerable':!0x0,'get':function(){const _0x2f2518=_0x363f98;return _0x50246f[_0x2f2518(0x20d)];}});})()),_0x387df7;})())));
@@ -13,6 +13,7 @@ export interface SDKConfig {
13
13
  batchSize?: number;
14
14
  batchInterval?: number;
15
15
  platform?: string;
16
+ storageType?: 'localStorage' | 'sessionStorage';
16
17
  }
17
18
  export interface PurchasePayload {
18
19
  externalId: string;
@@ -6,6 +6,7 @@ export declare class WebSDK {
6
6
  private readonly maxBatchSize;
7
7
  private readonly batchInterval;
8
8
  private readonly sdkVersion;
9
+ private readonly storage;
9
10
  private deviceId;
10
11
  private guestUserId;
11
12
  private deviceDetails?;
@@ -17,6 +18,7 @@ export declare class WebSDK {
17
18
  private batchProcessingInterval?;
18
19
  private platform;
19
20
  constructor(config: SDKConfig);
21
+ private getStorage;
20
22
  private initialize;
21
23
  identify(userId: string): void;
22
24
  clearUserData(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordersune/crm-web-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "publishConfig": {
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { WebSDK } from "./web-sdk";
2
- export { WebSDK as default } from "./web-sdk";
3
- export type { SDKConfig, EventOptions, UserProfile } from "./types";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AAA1B,iGAAA,MAAM,OAAA;AACf,qCAA8C;AAArC,kGAAA,MAAM,OAAW"}
@@ -1,86 +0,0 @@
1
- export interface UserProfile {
2
- id: string;
3
- guestUserId?: string;
4
- }
5
- export interface EventOptions {
6
- timestamp?: string;
7
- requestId?: string;
8
- }
9
- export interface SDKConfig {
10
- apiKey: string;
11
- endpoint: string;
12
- debug?: boolean;
13
- batchSize?: number;
14
- batchInterval?: number;
15
- }
16
- export interface PurchasePayload {
17
- externalId: string;
18
- itemId: string;
19
- itemName: string;
20
- unitPrice: number;
21
- quantity: number;
22
- source: string;
23
- channel: string;
24
- itemCategory?: string;
25
- }
26
- export interface DeviceDetails {
27
- deviceId: string;
28
- deviceIdentifier: string;
29
- platform: string;
30
- pushToken?: string;
31
- }
32
- export interface ButtonProperties {
33
- backgroundColor: string;
34
- borderColor: string;
35
- textColor: string;
36
- androidOnClickValue?: string;
37
- androidOnClickAction?: string;
38
- iOSOnClickValue?: string;
39
- iOSOnClickAction?: string;
40
- type?: string;
41
- [key: string]: any;
42
- }
43
- export interface ModalConfig {
44
- button1: ButtonProperties;
45
- button2: ButtonProperties;
46
- dismissMessageAutomatically: boolean;
47
- dismissMessageInSeconds: string;
48
- headerColor: string;
49
- messageColor: string;
50
- closeColor: string;
51
- }
52
- export interface MediaConfig {
53
- inAppImage: string;
54
- }
55
- export interface InAppMessageData {
56
- header: string;
57
- message: string;
58
- modal: ModalConfig;
59
- mediaConfig: MediaConfig;
60
- }
61
- export interface ShowInAppMessageOptions {
62
- context?: any;
63
- title: string;
64
- body: string;
65
- primaryButtonText: string;
66
- secondaryButtonText?: string;
67
- imageUrl: string;
68
- onClose?: () => void;
69
- buttonPropertiesPrimary: ButtonProperties;
70
- buttonPropertiesSecondary: ButtonProperties;
71
- dismissMessageAutomatically: boolean;
72
- dismissMessageInSeconds: string;
73
- headerColor: string;
74
- messageColor: string;
75
- closeColor: string;
76
- campaignId: string;
77
- }
78
- export interface CampaignPayload {
79
- campaignId: string;
80
- opened: boolean;
81
- clicked: boolean;
82
- deviceId: string;
83
- timestamp: number;
84
- dismissed?: boolean;
85
- }
86
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE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;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uBAAuB,EAAE,gBAAgB,CAAC;IAC1C,yBAAyB,EAAE,gBAAgB,CAAC;IAC5C,2BAA2B,EAAE,OAAO,CAAC;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;AA8FC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const log: (debug: boolean, message: string, ...args: any[]) => void;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,GAAI,OAAO,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,EAAE,SAIlE,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.log = void 0;
4
- const log = (debug, message, ...args) => {
5
- if (debug) {
6
- console.log(`[OrderSune CRM]`, message, ...args);
7
- }
8
- };
9
- exports.log = log;
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAO,MAAM,GAAG,GAAG,CAAC,KAAc,EAAE,OAAe,EAAE,GAAG,IAAW,EAAE,EAAE;IACrE,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACnD,CAAC;AACH,CAAC,CAAC;AAJW,QAAA,GAAG,OAId"}
package/dist/web-sdk.d.ts DELETED
@@ -1,52 +0,0 @@
1
- import { SDKConfig, EventOptions, UserProfile } from "./types";
2
- export declare class WebSDK {
3
- private readonly apiKey;
4
- private readonly endpoint;
5
- private readonly debug;
6
- private readonly maxBatchSize;
7
- private readonly batchInterval;
8
- private readonly sdkVersion;
9
- private deviceId;
10
- private deviceIdentifier;
11
- private guestUserId;
12
- private deviceDetails?;
13
- private currentUser?;
14
- private eventQueue;
15
- private purchaseBatch;
16
- private attributeQueue;
17
- private isProcessingQueue;
18
- private batchProcessingInterval?;
19
- constructor(config: SDKConfig);
20
- private initialize;
21
- identify(userId: string): void;
22
- clearUserData(): void;
23
- trackEvent(eventName: string, properties?: Record<string, any>, options?: EventOptions): void;
24
- setToken(token: string): void;
25
- trackCustomAttribute(attributeName: string, attributeValue: any): void;
26
- logProductPurchase(orderId: string, itemId: string, itemName: string, unitPrice: number, quantity: number, source: string, channel: string, itemCategory?: string): void;
27
- getUserProfile(): UserProfile | undefined;
28
- forceSend(): Promise<void>;
29
- dispose(): void;
30
- private getStoredDeviceId;
31
- private getStoredUserProfile;
32
- private storeDeviceId;
33
- private storeUserProfile;
34
- private storeCustomAttributes;
35
- private loadCustomAttributes;
36
- private getGuestUserId;
37
- private buildPurchasePayload;
38
- private initializeDeviceDetails;
39
- private startBatchProcessing;
40
- private queueEvent;
41
- private processBatch;
42
- private sendBatchToServer;
43
- displayInAppMessage(inAppMessageData: string, campaignId: string, context?: any): void;
44
- private hexToColor;
45
- private openWebUrl;
46
- private showInAppMessage;
47
- private logInAppMessageClick;
48
- logClick(campaignId: string): Promise<void>;
49
- private processCampaignClick;
50
- private buildCampaignPayload;
51
- }
52
- //# sourceMappingURL=web-sdk.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"web-sdk.d.ts","sourceRoot":"","sources":["../src/web-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EAMZ,MAAM,SAAS,CAAC;AAajB,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA8B;IAC3D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAC,CAAgB;IACtC,OAAO,CAAC,WAAW,CAAC,CAAc;IAClC,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,cAAc,CAA2B;IACjD,OAAO,CAAC,iBA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gBAAgB;YAsNV,oBAAoB;IAgBrB,QAAQ,CACnB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC;YAwBF,oBAAoB;YA2BpB,oBAAoB;CAuBnC"}
package/dist/web-sdk.js DELETED
@@ -1,604 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebSDK = void 0;
4
- const utils_1 = require("./utils");
5
- const uuid_1 = require("uuid");
6
- // @ts-ignore
7
- const DeviceUUID = require("device-uuid").DeviceUUID;
8
- // @ts-ignore
9
- const package_json_1 = require("../package.json");
10
- const STORAGE_PREFIX = "os.";
11
- const DEFAULT_BATCH_SIZE = 10;
12
- const DEFAULT_BATCH_INTERVAL = 10000;
13
- const SDK_VERSION = package_json_1.version;
14
- class WebSDK {
15
- constructor(config) {
16
- this.maxBatchSize = DEFAULT_BATCH_SIZE;
17
- this.batchInterval = DEFAULT_BATCH_INTERVAL;
18
- this.sdkVersion = SDK_VERSION;
19
- this.eventQueue = [];
20
- this.purchaseBatch = [];
21
- this.attributeQueue = {};
22
- this.isProcessingQueue = false;
23
- if (!config.apiKey || !config.endpoint) {
24
- throw new Error("API key and endpoint are required");
25
- }
26
- this.apiKey = config.apiKey;
27
- this.endpoint = config.endpoint;
28
- this.debug = config.debug ?? false;
29
- this.maxBatchSize = config.batchSize ?? DEFAULT_BATCH_SIZE;
30
- this.batchInterval = config.batchInterval ?? DEFAULT_BATCH_INTERVAL;
31
- this.deviceId = this.getStoredDeviceId() || (0, uuid_1.v4)();
32
- const deviceUUID = new DeviceUUID();
33
- this.deviceIdentifier = deviceUUID.get();
34
- this.guestUserId = this.getGuestUserId();
35
- // Initialize async
36
- this.initialize().catch((error) => {
37
- (0, utils_1.log)(this.debug, "Async initialization failed", error);
38
- });
39
- }
40
- async initialize() {
41
- try {
42
- (0, utils_1.log)(this.debug, "SDK Initialized");
43
- this.storeDeviceId();
44
- await this.initializeDeviceDetails();
45
- await this.loadCustomAttributes();
46
- const storedUser = this.getStoredUserProfile();
47
- if (storedUser) {
48
- this.currentUser = storedUser;
49
- (0, utils_1.log)(this.debug, "Loaded user profile", this.currentUser);
50
- }
51
- else {
52
- this.identify("");
53
- }
54
- try {
55
- const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
56
- this.trackCustomAttribute("timezone", timezone);
57
- }
58
- catch (error) {
59
- (0, utils_1.log)(this.debug, "Failed to detect timezone", error);
60
- }
61
- this.startBatchProcessing();
62
- this.trackEvent("app_started", {});
63
- }
64
- catch (error) {
65
- (0, utils_1.log)(this.debug, "Initialization failed", error);
66
- throw error;
67
- }
68
- }
69
- identify(userId) {
70
- if (typeof userId !== "string") {
71
- throw new Error("User ID must be a string");
72
- }
73
- const storedUser = this.getStoredUserProfile();
74
- if (storedUser?.id === userId)
75
- return;
76
- (0, utils_1.log)(this.debug, "Identifying user", userId);
77
- // If userId is empty or matches guest pattern, use guest user
78
- if (!userId) {
79
- this.currentUser = {
80
- id: this.guestUserId,
81
- guestUserId: this.guestUserId
82
- };
83
- }
84
- else {
85
- // Real user identification - include both userId and guestUserId
86
- this.currentUser = {
87
- id: userId,
88
- guestUserId: this.guestUserId
89
- };
90
- }
91
- this.storeUserProfile();
92
- }
93
- clearUserData() {
94
- // Generate new device ID using uuid v4 (keep original behavior)
95
- this.deviceId = (0, uuid_1.v4)();
96
- // Also regenerate device_identifier
97
- const deviceUUID = new DeviceUUID();
98
- this.deviceIdentifier = deviceUUID.get();
99
- this.guestUserId = this.getGuestUserId();
100
- this.initializeDeviceDetails();
101
- this.currentUser = {
102
- id: this.guestUserId,
103
- guestUserId: this.guestUserId
104
- };
105
- this.attributeQueue = {};
106
- this.eventQueue = [];
107
- this.purchaseBatch = [];
108
- this.storeDeviceId();
109
- sessionStorage.setItem(`${STORAGE_PREFIX}${this.apiKey}.current_user`, JSON.stringify(this.currentUser));
110
- sessionStorage.removeItem(`${STORAGE_PREFIX}${this.apiKey}.custom_attributes`);
111
- if (this.debug) {
112
- (0, utils_1.log)(this.debug, "User data cleared, new device ID generated");
113
- }
114
- }
115
- trackEvent(eventName, properties = {}, options = {}) {
116
- if (!eventName || typeof eventName !== "string") {
117
- throw new Error("Event name is required and must be a string");
118
- }
119
- const payload = {
120
- deviceId: this.deviceId,
121
- eventName,
122
- timestamp: options.timestamp || Date.now(),
123
- requestId: options.requestId || (0, uuid_1.v4)(),
124
- properties: properties,
125
- };
126
- this.queueEvent(payload);
127
- }
128
- setToken(token) {
129
- if (this.deviceDetails) {
130
- this.deviceDetails = {
131
- ...this.deviceDetails,
132
- pushToken: token,
133
- };
134
- }
135
- }
136
- trackCustomAttribute(attributeName, attributeValue) {
137
- if (!attributeName || typeof attributeName !== "string") {
138
- throw new Error("Attribute name is required and must be a string");
139
- }
140
- this.attributeQueue = {
141
- ...this.attributeQueue,
142
- [attributeName]: attributeValue,
143
- };
144
- (0, utils_1.log)(this.debug, "Custom attribute queued", attributeName, attributeValue);
145
- this.storeCustomAttributes();
146
- }
147
- logProductPurchase(orderId, itemId, itemName, unitPrice, quantity, source, channel, itemCategory) {
148
- const purchasePayload = this.buildPurchasePayload({
149
- externalId: orderId,
150
- itemId,
151
- itemName,
152
- unitPrice,
153
- quantity,
154
- source,
155
- channel,
156
- itemCategory,
157
- });
158
- this.purchaseBatch.push(purchasePayload);
159
- if (this.debug) {
160
- (0, utils_1.log)(this.debug, "Purchase event queued", purchasePayload);
161
- }
162
- }
163
- getUserProfile() {
164
- return this.currentUser;
165
- }
166
- async forceSend() {
167
- if (this.eventQueue.length > 0 ||
168
- this.purchaseBatch.length > 0 ||
169
- this.attributeQueue.length > 0) {
170
- await this.processBatch();
171
- }
172
- }
173
- dispose() {
174
- if (this.batchProcessingInterval) {
175
- clearInterval(this.batchProcessingInterval);
176
- }
177
- if (this.eventQueue.length > 0 ||
178
- this.purchaseBatch.length > 0 ||
179
- this.attributeQueue.length > 0) {
180
- this.processBatch().catch((error) => {
181
- (0, utils_1.log)(this.debug, "Error during disposal", error);
182
- });
183
- }
184
- }
185
- getStoredDeviceId() {
186
- return sessionStorage.getItem(`${STORAGE_PREFIX}${this.apiKey}.device_id`);
187
- }
188
- getStoredUserProfile() {
189
- const storedUser = sessionStorage.getItem(`${STORAGE_PREFIX}${this.apiKey}.current_user`);
190
- return storedUser ? JSON.parse(storedUser) : null;
191
- }
192
- storeDeviceId() {
193
- sessionStorage.setItem(`${STORAGE_PREFIX}${this.apiKey}.device_id`, this.deviceId);
194
- }
195
- storeUserProfile() {
196
- if (this.currentUser) {
197
- sessionStorage.setItem(`${STORAGE_PREFIX}${this.apiKey}.current_user`, JSON.stringify(this.currentUser));
198
- }
199
- }
200
- storeCustomAttributes() {
201
- const existingAttributes = sessionStorage.getItem(`${STORAGE_PREFIX}${this.apiKey}.custom_attributes`);
202
- const existingParsed = existingAttributes
203
- ? JSON.parse(existingAttributes)
204
- : {};
205
- const mergedAttributes = {
206
- ...existingParsed,
207
- ...this.attributeQueue,
208
- };
209
- sessionStorage.setItem(`${STORAGE_PREFIX}${this.apiKey}.custom_attributes`, JSON.stringify(mergedAttributes));
210
- }
211
- async loadCustomAttributes() {
212
- const stored = sessionStorage.getItem(`${STORAGE_PREFIX}${this.apiKey}.custom_attributes`);
213
- if (stored) {
214
- this.attributeQueue = {
215
- ...this.attributeQueue,
216
- ...JSON.parse(stored),
217
- };
218
- }
219
- }
220
- getGuestUserId() {
221
- return `guest_user_${this.deviceId}`;
222
- }
223
- buildPurchasePayload({ externalId, itemId, itemName, unitPrice, quantity, source, channel, itemCategory, }) {
224
- const timestamp = Date.now();
225
- return {
226
- external_id: externalId,
227
- item_id: itemId,
228
- item_name: itemName,
229
- item_category: itemCategory,
230
- quantity: quantity,
231
- unit_price: unitPrice,
232
- total_price: unitPrice * quantity,
233
- source: source,
234
- channel: channel,
235
- purchased_at: timestamp,
236
- };
237
- }
238
- async initializeDeviceDetails() {
239
- this.deviceDetails = {
240
- deviceId: this.deviceId,
241
- deviceIdentifier: this.deviceIdentifier,
242
- platform: 'web',
243
- };
244
- }
245
- startBatchProcessing() {
246
- this.batchProcessingInterval = setInterval(() => {
247
- if (this.eventQueue.length > 0 ||
248
- this.purchaseBatch.length > 0 ||
249
- this.attributeQueue.length > 0) {
250
- this.processBatch().catch((error) => {
251
- (0, utils_1.log)(this.debug, "Batch processing failed", error);
252
- });
253
- }
254
- }, this.batchInterval);
255
- }
256
- queueEvent(payload) {
257
- this.eventQueue.push(payload);
258
- (0, utils_1.log)(this.debug, "Event queued", payload);
259
- if (this.eventQueue.length >= this.maxBatchSize) {
260
- this.processBatch().catch((error) => {
261
- (0, utils_1.log)(this.debug, "Batch processing failed", error);
262
- });
263
- }
264
- }
265
- async processBatch() {
266
- if (this.isProcessingQueue)
267
- return;
268
- this.isProcessingQueue = true;
269
- const eventsToSend = [...this.eventQueue];
270
- const purchasesToSend = [...this.purchaseBatch];
271
- const attributesToSend = { ...this.attributeQueue };
272
- this.eventQueue = [];
273
- this.purchaseBatch = [];
274
- this.attributeQueue = {};
275
- try {
276
- await this.sendBatchToServer(eventsToSend, purchasesToSend, attributesToSend);
277
- }
278
- catch (error) {
279
- this.eventQueue.unshift(...eventsToSend);
280
- this.purchaseBatch.unshift(...purchasesToSend);
281
- this.attributeQueue = { ...this.attributeQueue, ...attributesToSend };
282
- (0, utils_1.log)(this.debug, "Batch processing failed", error);
283
- throw error;
284
- }
285
- finally {
286
- this.isProcessingQueue = false;
287
- }
288
- }
289
- async sendBatchToServer(events, purchases, currentAttributes) {
290
- if (!this.deviceDetails) {
291
- await this.initializeDeviceDetails();
292
- }
293
- const payload = {
294
- sdkVersion: this.sdkVersion,
295
- deviceInfo: this.deviceDetails,
296
- userId: this.currentUser?.id,
297
- guestUserId: this.currentUser?.guestUserId,
298
- time: Date.now(),
299
- events: events,
300
- purchases: purchases,
301
- userAttributes: currentAttributes,
302
- };
303
- (0, utils_1.log)(this.debug, "Sending batch to server", payload);
304
- try {
305
- const response = await fetch(`${this.endpoint}/analytics/data`, {
306
- method: "POST",
307
- headers: {
308
- "Content-Type": "application/json",
309
- "x-api-key": this.apiKey,
310
- },
311
- body: JSON.stringify(payload),
312
- });
313
- if (!response.ok) {
314
- throw new Error(`HTTP error! status: ${response.status}`);
315
- }
316
- if (this.debug) {
317
- (0, utils_1.log)(this.debug, `Batch dispatched successfully: ${payload.events.length} events, ${payload.purchases.length} purchases, ${Object.keys(payload.userAttributes).length} attributes`);
318
- }
319
- await response.json();
320
- if (Object.keys(currentAttributes).length > 0) {
321
- this.attributeQueue = {};
322
- sessionStorage.removeItem(`${STORAGE_PREFIX}${this.apiKey}.custom_attributes`);
323
- }
324
- }
325
- catch (error) {
326
- (0, utils_1.log)(this.debug, "Failed to send payload to server", error);
327
- throw error;
328
- }
329
- }
330
- displayInAppMessage(inAppMessageData, campaignId, context) {
331
- const transformedData = JSON.parse(inAppMessageData);
332
- const title = transformedData.header;
333
- const body = transformedData.message;
334
- const buttonDataPrimary = transformedData.modal.button1;
335
- const buttonDataSecondary = transformedData.modal.button2;
336
- const buttonTextPrimary = buttonDataPrimary.type || "";
337
- const buttonTextSecondary = buttonDataSecondary.type || "";
338
- const imageUrl = transformedData.mediaConfig.inAppImage;
339
- this.showInAppMessage({
340
- context,
341
- title,
342
- body,
343
- primaryButtonText: buttonTextPrimary,
344
- secondaryButtonText: buttonTextSecondary,
345
- imageUrl,
346
- buttonPropertiesPrimary: buttonDataPrimary,
347
- buttonPropertiesSecondary: buttonDataSecondary,
348
- dismissMessageAutomatically: transformedData.modal.dismissMessageAutomatically,
349
- dismissMessageInSeconds: transformedData.modal.dismissMessageInSeconds,
350
- headerColor: transformedData.modal.headerColor,
351
- messageColor: transformedData.modal.messageColor,
352
- closeColor: transformedData.modal.closeColor,
353
- campaignId: campaignId,
354
- });
355
- }
356
- hexToColor(hexColor) {
357
- hexColor = hexColor.toUpperCase().replace("#", "");
358
- if (hexColor.length === 6) {
359
- return `#${hexColor}`;
360
- }
361
- return `#${hexColor.substring(2)}`;
362
- }
363
- openWebUrl(url) {
364
- if (url) {
365
- window.open(url, '_blank');
366
- }
367
- }
368
- showInAppMessage(options) {
369
- const { title, body, primaryButtonText, secondaryButtonText, imageUrl, onClose, buttonPropertiesPrimary, buttonPropertiesSecondary, dismissMessageAutomatically, dismissMessageInSeconds, headerColor, messageColor, closeColor, campaignId, } = options;
370
- // Create modal container
371
- const modalOverlay = document.createElement('div');
372
- modalOverlay.style.position = 'fixed';
373
- modalOverlay.style.top = '0';
374
- modalOverlay.style.left = '0';
375
- modalOverlay.style.width = '100%';
376
- modalOverlay.style.height = '100%';
377
- modalOverlay.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
378
- modalOverlay.style.display = 'flex';
379
- modalOverlay.style.justifyContent = 'center';
380
- modalOverlay.style.alignItems = 'center';
381
- modalOverlay.style.zIndex = '9999';
382
- // Create modal dialog
383
- const modalDialog = document.createElement('div');
384
- modalDialog.style.backgroundColor = 'white';
385
- modalDialog.style.borderRadius = '12px';
386
- modalDialog.style.padding = '16px';
387
- modalDialog.style.maxWidth = '400px';
388
- modalDialog.style.width = '90%';
389
- modalDialog.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)';
390
- modalDialog.style.position = 'relative';
391
- // Close button
392
- const closeButton = document.createElement('button');
393
- closeButton.innerHTML = '&times;';
394
- closeButton.style.position = 'absolute';
395
- closeButton.style.top = '8px';
396
- closeButton.style.right = '8px';
397
- closeButton.style.background = 'none';
398
- closeButton.style.border = 'none';
399
- closeButton.style.fontSize = '20px';
400
- closeButton.style.cursor = 'pointer';
401
- closeButton.style.color = this.hexToColor(closeColor);
402
- closeButton.onclick = () => {
403
- if (onClose) {
404
- onClose();
405
- }
406
- this.logInAppMessageClick(campaignId, false, true, true);
407
- document.body.removeChild(modalOverlay);
408
- };
409
- // Create content
410
- const contentContainer = document.createElement('div');
411
- contentContainer.style.display = 'flex';
412
- contentContainer.style.flexDirection = 'column';
413
- contentContainer.style.alignItems = 'center';
414
- contentContainer.style.textAlign = 'center';
415
- // Image
416
- if (imageUrl && imageUrl.trim() !== '') {
417
- const image = document.createElement('img');
418
- image.src = imageUrl;
419
- image.style.width = '100px';
420
- image.style.height = '100px';
421
- image.style.marginBottom = '16px';
422
- image.style.marginTop = '16px';
423
- image.onerror = () => {
424
- image.style.display = 'none';
425
- };
426
- contentContainer.appendChild(image);
427
- }
428
- // Title
429
- const titleElement = document.createElement('h2');
430
- titleElement.textContent = title;
431
- titleElement.style.fontSize = '22px';
432
- titleElement.style.fontWeight = '600';
433
- titleElement.style.color = this.hexToColor(headerColor);
434
- titleElement.style.margin = '8px 0';
435
- contentContainer.appendChild(titleElement);
436
- // Body
437
- const bodyElement = document.createElement('p');
438
- bodyElement.textContent = body;
439
- bodyElement.style.fontSize = '14px';
440
- bodyElement.style.color = this.hexToColor(messageColor);
441
- bodyElement.style.fontWeight = '500';
442
- bodyElement.style.margin = '8px 0 24px 0';
443
- contentContainer.appendChild(bodyElement);
444
- // Button handlers
445
- const onPrimaryButtonPress = () => {
446
- if (buttonPropertiesPrimary.webOnClickValue === "redirect_to_web_url" ||
447
- buttonPropertiesPrimary.webOnClickValue === "deeplink_into_app") {
448
- this.openWebUrl(buttonPropertiesPrimary.webOnClickAction || '');
449
- }
450
- };
451
- const onSecondaryButtonPress = () => {
452
- if (buttonPropertiesSecondary.webOnClickValue === "redirect_to_web_url" ||
453
- buttonPropertiesSecondary.webOnClickValue === "deeplink_into_app") {
454
- this.openWebUrl(buttonPropertiesSecondary.webOnClickAction || '');
455
- }
456
- };
457
- // Create buttons
458
- const buttonsContainer = document.createElement('div');
459
- buttonsContainer.style.display = 'flex';
460
- buttonsContainer.style.justifyContent = 'center';
461
- buttonsContainer.style.width = '100%';
462
- buttonsContainer.style.gap = '16px';
463
- if (secondaryButtonText && secondaryButtonText.trim() !== '') {
464
- // Primary button
465
- const primaryButton = document.createElement('button');
466
- primaryButton.textContent = primaryButtonText;
467
- primaryButton.style.flex = '1';
468
- primaryButton.style.maxWidth = '140px';
469
- primaryButton.style.padding = '12px';
470
- primaryButton.style.backgroundColor = this.hexToColor(buttonPropertiesPrimary.backgroundColor);
471
- primaryButton.style.color = this.hexToColor(buttonPropertiesPrimary.textColor);
472
- primaryButton.style.border = `2px solid ${this.hexToColor(buttonPropertiesPrimary.borderColor)}`;
473
- primaryButton.style.borderRadius = '8px';
474
- primaryButton.style.fontSize = '16px';
475
- primaryButton.style.fontWeight = '600';
476
- primaryButton.style.cursor = 'pointer';
477
- primaryButton.onclick = () => {
478
- document.body.removeChild(modalOverlay);
479
- onPrimaryButtonPress();
480
- };
481
- buttonsContainer.appendChild(primaryButton);
482
- // Secondary button
483
- const secondaryButton = document.createElement('button');
484
- secondaryButton.textContent = secondaryButtonText;
485
- secondaryButton.style.flex = '1';
486
- secondaryButton.style.maxWidth = '140px';
487
- secondaryButton.style.padding = '12px';
488
- secondaryButton.style.backgroundColor = this.hexToColor(buttonPropertiesSecondary.backgroundColor);
489
- secondaryButton.style.color = this.hexToColor(buttonPropertiesSecondary.textColor);
490
- secondaryButton.style.border = `2px solid ${this.hexToColor(buttonPropertiesSecondary.borderColor)}`;
491
- secondaryButton.style.borderRadius = '8px';
492
- secondaryButton.style.fontSize = '16px';
493
- secondaryButton.style.fontWeight = '600';
494
- secondaryButton.style.cursor = 'pointer';
495
- secondaryButton.onclick = () => {
496
- document.body.removeChild(modalOverlay);
497
- this.logInAppMessageClick(campaignId, true, true, false);
498
- onSecondaryButtonPress();
499
- };
500
- buttonsContainer.appendChild(secondaryButton);
501
- }
502
- else {
503
- // Single button
504
- if (primaryButtonText && primaryButtonText.trim() !== '') {
505
- const primaryButton = document.createElement('button');
506
- primaryButton.textContent = primaryButtonText;
507
- primaryButton.style.width = '100%';
508
- primaryButton.style.padding = '12px';
509
- primaryButton.style.backgroundColor = this.hexToColor(buttonPropertiesPrimary.backgroundColor);
510
- primaryButton.style.color = this.hexToColor(buttonPropertiesPrimary.textColor);
511
- primaryButton.style.border = `2px solid ${this.hexToColor(buttonPropertiesPrimary.borderColor)}`;
512
- primaryButton.style.borderRadius = '8px';
513
- primaryButton.style.fontSize = '16px';
514
- primaryButton.style.fontWeight = '600';
515
- primaryButton.style.cursor = 'pointer';
516
- primaryButton.onclick = () => {
517
- document.body.removeChild(modalOverlay);
518
- this.logInAppMessageClick(campaignId, true, true, false);
519
- onPrimaryButtonPress();
520
- };
521
- buttonsContainer.appendChild(primaryButton);
522
- }
523
- }
524
- // Add all elements to the modal
525
- modalDialog.appendChild(closeButton);
526
- modalDialog.appendChild(contentContainer);
527
- contentContainer.appendChild(buttonsContainer);
528
- modalOverlay.appendChild(modalDialog);
529
- // Add to document
530
- document.body.appendChild(modalOverlay);
531
- // Auto dismiss if enabled
532
- if (dismissMessageAutomatically) {
533
- setTimeout(() => {
534
- if (document.body.contains(modalOverlay)) {
535
- document.body.removeChild(modalOverlay);
536
- }
537
- }, parseInt(dismissMessageInSeconds) * 1000);
538
- }
539
- // Add click event to close when clicking outside
540
- modalOverlay.addEventListener('click', (event) => {
541
- if (event.target === modalOverlay) {
542
- document.body.removeChild(modalOverlay);
543
- }
544
- });
545
- }
546
- async logInAppMessageClick(campaignId, clicked, opened, dismissed) {
547
- const campaignClickPayload = await this.buildCampaignPayload(campaignId, opened, clicked, dismissed);
548
- await this.processCampaignClick(campaignClickPayload);
549
- }
550
- async logClick(campaignId) {
551
- // Ensure SDK is initialized before processing click
552
- if (!this.currentUser || !this.deviceDetails) {
553
- (0, utils_1.log)(this.debug, "SDK not fully initialized, waiting for initialization");
554
- await this.initialize();
555
- }
556
- // Force send any pending events/attributes before processing click
557
- if (this.eventQueue.length > 0 ||
558
- this.purchaseBatch.length > 0 ||
559
- Object.keys(this.attributeQueue).length > 0) {
560
- await this.forceSend();
561
- }
562
- const pushCampaignClickPayload = await this.buildCampaignPayload(campaignId, true, true);
563
- await this.processCampaignClick(pushCampaignClickPayload);
564
- }
565
- async processCampaignClick(payload) {
566
- try {
567
- const response = await fetch(`${this.endpoint}/analytics/clicks`, {
568
- method: "POST",
569
- headers: {
570
- "Content-Type": "application/json",
571
- "x-api-key": this.apiKey,
572
- },
573
- body: JSON.stringify(payload),
574
- });
575
- if (!response.ok) {
576
- throw new Error(`HTTP error! status: ${response.status}`);
577
- }
578
- if (this.debug) {
579
- (0, utils_1.log)(this.debug, `process campaign click dispatched successfully: ${payload.campaignId}`);
580
- }
581
- }
582
- catch (error) {
583
- (0, utils_1.log)(this.debug, "Error processing campaign click:", error);
584
- throw error;
585
- }
586
- }
587
- async buildCampaignPayload(campaignId, opened, clicked, dismissed) {
588
- const timestamp = Date.now();
589
- const deviceId = this.deviceId;
590
- const payload = {
591
- campaignId,
592
- opened,
593
- clicked,
594
- deviceId,
595
- timestamp,
596
- };
597
- if (dismissed !== undefined) {
598
- payload.dismissed = dismissed;
599
- }
600
- return payload;
601
- }
602
- }
603
- exports.WebSDK = WebSDK;
604
- //# sourceMappingURL=web-sdk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"web-sdk.js","sourceRoot":"","sources":["../src/web-sdk.ts"],"names":[],"mappings":";;;AAUA,mCAA8B;AAC9B,+BAAoC;AACpC,aAAa;AACb,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC;AACrD,aAAa;AACb,kDAA0C;AAE1C,MAAM,cAAc,GAAG,KAAK,CAAC;AAC7B,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,sBAAsB,GAAG,KAAK,CAAC;AACrC,MAAM,WAAW,GAAG,sBAAO,CAAC;AAE5B,MAAa,MAAM;IAmBjB,YAAY,MAAiB;QAfZ,iBAAY,GAAW,kBAAkB,CAAC;QAC1C,kBAAa,GAAW,sBAAsB,CAAC;QAC/C,eAAU,GAAW,WAAW,CAAC;QAO1C,eAAU,GAA+B,EAAE,CAAC;QAC5C,kBAAa,GAA+B,EAAE,CAAC;QAC/C,mBAAc,GAAwB,EAAE,CAAC;QACzC,sBAAiB,GAAY,KAAK,CAAC;QAIzC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAA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