browserstack-node-sdk 1.35.10 → 1.36.1
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/ats/src/CFTemplates/aws-eks-cluster-dep.yaml +13 -1
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/templates/azureresources/akscluster.json +9 -1
- package/ats/src/templates/gcpresources/gkecluster.json +6 -2
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a80_0x5b18(_0x12633d,_0x4bf390){const _0x9ac3a0=a80_0x9ac3();return a80_0x5b18=function(_0x5b18f7,_0x237696){_0x5b18f7=_0x5b18f7-0xe1;let _0x55c9b7=_0x9ac3a0[_0x5b18f7];return _0x55c9b7;},a80_0x5b18(_0x12633d,_0x4bf390);}function a80_0x9ac3(){const _0x307b0f=['Error\x20in\x20writing\x20html\x20','nEfgB','errors','failure','OLXdI','fs/promises','appendFileSync','CpVnQ','stopMonitoring','platform','pushErrors','-start','length','name','match','measure','forEach','_measureEvents','getEventsFromJSON','CBcmF','index','WLLQT','<h1>Performance\x20Report</h1>','splice','hRLTy','finalizeErrors','writeFileSync','entryType','toString','errorReportFileName','util','cwd','readdirSync','stopAndGenerate','zFkYY','observe','function','perf_hooks','jsonReportDirPath','QRshW','2wmbYkm','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','captureError','calculateTimesFromMultipleFiles','mark','finalize','_events','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','reduce','548546TrzURm','disconnect','push','flpnP','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','generateHTMLReport','nwDwu','RVFAc','JflhI','52662630bPfEsR','10534680iNoBwF','_errorEvents','.json','314094eocPou','kpGcF','getPerformance','then','__platformCaps','PLlOj','AFpNL','success','generateJSON','readFile','end','readdir','assign','env','format','calculateTimeFromEvents','WnUOo','winstonLogger','mkdirSync','aJhHR','\x20for\x20all\x20processes\x20is\x20','kSJOu','isEnabled','utf-8','exports','Error\x20while\x20removing\x20files:\x20','/error-report-','5121760wVdFus','message','dKdnd','dekBZ','false','meta','tOKJc','existsSync','OTJJd','BAIqO','unlinkSync','readFileSync','PFntw','UNhpk','DGDqu','apply','entryTypes','details','</td><td>','measures','ydXXI','flat','startMonitoring','parse','catch','errorReportDirName','VcInE','joiTP','writeFile','finalizePerfMeasures','../processHelper','yYyGp','<tr><td>','OkFKS','/performance-report-','</td></tr>','../logger','203cSrLSa','toJSON','stringify','start','SgBUf','_observer','gxDhY','jsonReportFileName','performance-own.html','-end','21988SKstss','concat','jsonReportDirName','pushPerfMeasures','Error\x20stopping\x20monitoring\x20','eQXjo','all','qmOrZ','getCleanedPerfEvents','150492KWXJXB','map','abyNp','duration','started','join','BTPhB','testName','error-report','fJFtm','buffered','code','getEntries','resolve','1215jAoAcb','eventsMap','debug','slice'];a80_0x9ac3=function(){return _0x307b0f;};return a80_0x9ac3();}const a80_0x5cec23=a80_0x5b18;(function(_0x30a0e6,_0x276752){const _0x4374b6=a80_0x5b18,_0x4f34ad=_0x30a0e6();while(!![]){try{const _0x546d8c=parseInt(_0x4374b6(0x127))/0x1*(-parseInt(_0x4374b6(0x11e))/0x2)+-parseInt(_0x4374b6(0x134))/0x3+-parseInt(_0x4374b6(0x17e))/0x4*(parseInt(_0x4374b6(0xf2))/0x5)+-parseInt(_0x4374b6(0xe4))/0x6*(parseInt(_0x4374b6(0x174))/0x7)+-parseInt(_0x4374b6(0x14f))/0x8+-parseInt(_0x4374b6(0x131))/0x9+parseInt(_0x4374b6(0x130))/0xa;if(_0x546d8c===_0x276752)break;else _0x4f34ad['push'](_0x4f34ad['shift']());}catch(_0x1f636c){_0x4f34ad['push'](_0x4f34ad['shift']());}}}(a80_0x9ac3,0xb473a));const fs=require('fs'),fsPromise=require(a80_0x5cec23(0xfb)),{performance,PerformanceObserver}=require(a80_0x5cec23(0x11b)),path=require('path'),util=require(a80_0x5cec23(0x114)),logger=require(a80_0x5cec23(0x173))[a80_0x5cec23(0x145)],{getLogDir}=require(a80_0x5cec23(0x173)),{getProcessId,sleep,debug,getTestName}=require(a80_0x5cec23(0x16d));class PerformanceTester{static ['_observer'];static [a80_0x5cec23(0x124)]=[];static [a80_0x5cec23(0x107)]=[];static [a80_0x5cec23(0x132)]=[];static [a80_0x5cec23(0xe8)]=![];static [a80_0x5cec23(0x180)]='performance-report';static ['errorReportDirName']=process['env']['browserStackCwd']?path[a80_0x5cec23(0xe9)](process[a80_0x5cec23(0x141)]['browserStackCwd'],a80_0x5cec23(0xec)):path[a80_0x5cec23(0xe9)](process['cwd'](),a80_0x5cec23(0xec));static [a80_0x5cec23(0x113)]=this[a80_0x5cec23(0x168)]+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133);static [a80_0x5cec23(0x160)]={};static [a80_0x5cec23(0xf3)]={};static[a80_0x5cec23(0x165)](_0x441b8c,_0x38451a=this['errorReportDirName']+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133)){const _0x1efed8=a80_0x5cec23,_0x56ccf0={'yYyGp':function(_0x1a40fd,_0x5d9ded){return _0x1a40fd===_0x5d9ded;},'aJhHR':'measure','dKdnd':function(_0x770115){return _0x770115();},'fzkDz':function(_0x2ed63b){return _0x2ed63b();},'UNhpk':function(_0x8ab5a4,_0x18512f){return _0x8ab5a4+_0x18512f;},'eQXjo':_0x1efed8(0x11f),'CBcmF':_0x1efed8(0x11a)};try{this[_0x1efed8(0x11c)]=path[_0x1efed8(0xe9)](_0x56ccf0[_0x1efed8(0x151)](getLogDir),this[_0x1efed8(0x180)]),!_0x441b8c&&(_0x441b8c=this['jsonReportDirPath']+_0x1efed8(0x171)+_0x56ccf0['fzkDz'](getProcessId)+'.json'),!fs[_0x1efed8(0x156)](this['jsonReportDirPath'])&&fs[_0x1efed8(0x146)](this[_0x1efed8(0x11c)]);}catch(_0x360e5a){logger[_0x1efed8(0xf4)](_0x56ccf0[_0x1efed8(0x15c)](_0x56ccf0[_0x1efed8(0x183)],_0x360e5a));}if(this[_0x1efed8(0xe8)]||!this[_0x1efed8(0x14a)]())return;this[_0x1efed8(0x179)]=new PerformanceObserver(_0x40f78a=>{const _0x5842fc=_0x1efed8,_0x4d8b4c={'PKSJv':function(_0x13e0fa,_0x3b648b){const _0x4b4e4d=a80_0x5b18;return _0x56ccf0[_0x4b4e4d(0x16e)](_0x13e0fa,_0x3b648b);},'qmOrZ':_0x56ccf0[_0x5842fc(0x147)]};_0x40f78a[_0x5842fc(0xf0)]()[_0x5842fc(0x106)](_0x3817e3=>{const _0x511435=_0x5842fc;if(_0x4d8b4c['PKSJv'](_0x3817e3[_0x511435(0x111)],_0x4d8b4c[_0x511435(0xe2)])){let _0x3ca2da={};if(_0x3817e3[_0x511435(0x175)])_0x3ca2da=_0x3817e3[_0x511435(0x175)]();else for(const _0x4c6911 in _0x3817e3){_0x3ca2da[_0x4c6911]=_0x3817e3[_0x4c6911];}this[_0x511435(0x160)][_0x3817e3['name']]&&(_0x3ca2da=Object[_0x511435(0x140)](_0x3ca2da,this[_0x511435(0x160)][_0x3817e3[_0x511435(0x103)]])),delete this['details'][_0x3817e3['name']],this[_0x511435(0x107)][_0x511435(0x129)](_0x3ca2da);}else this[_0x511435(0x124)][_0x511435(0x129)](_0x3817e3);});});const _0x172785={};_0x172785[_0x1efed8(0xee)]=!![],_0x172785[_0x1efed8(0x15f)]=[_0x56ccf0[_0x1efed8(0x109)],_0x56ccf0[_0x1efed8(0x147)]],this[_0x1efed8(0x179)][_0x1efed8(0x119)](_0x172785),this['started']=!![],this[_0x1efed8(0x17b)]=_0x441b8c,this['errorReportFileName']=_0x38451a;}static[a80_0x5cec23(0x136)](){return performance;}static['calculateTimeFromEvents'](_0x5da1b5,_0x53971f){const _0x3c3b2c=a80_0x5cec23,_0x2e4bbb={};_0x2e4bbb[_0x3c3b2c(0xed)]=function(_0x58a1cc,_0x11ee36){return _0x58a1cc+_0x11ee36;},_0x2e4bbb[_0x3c3b2c(0xea)]=function(_0x3dc005,_0x599a67){return _0x3dc005||_0x599a67;},_0x2e4bbb[_0x3c3b2c(0x10b)]=function(_0x9b2cc5,_0x5b3015){return _0x9b2cc5===_0x5b3015;};const _0x1bf3c2=_0x2e4bbb,_0x3489ec={};if(!_0x5da1b5||_0x1bf3c2[_0x3c3b2c(0x10b)](_0x5da1b5['length'],0x0))return;_0x5da1b5[_0x3c3b2c(0xe5)](_0x4945d7=>{const _0x481b84=_0x3c3b2c;!_0x3489ec[_0x4945d7[_0x481b84(0x103)]]&&(_0x3489ec[_0x4945d7[_0x481b84(0x103)]]=0x0),_0x3489ec[_0x4945d7['name']]+=_0x4945d7[_0x481b84(0xe7)];});const _0x454631=_0x53971f[_0x3c3b2c(0x126)]((_0x104428,_0x353f6f)=>{const _0x440bbc=_0x3c3b2c;return _0x1bf3c2[_0x440bbc(0xed)](_0x3489ec[_0x353f6f],_0x1bf3c2[_0x440bbc(0xea)](_0x104428,0x0));},0x0);return _0x454631;}static async[a80_0x5cec23(0x121)](_0x6509fb,_0x4e1886){const _0x323611=a80_0x5cec23,_0x51890f={'ydXXI':function(_0x4780d2,_0x30dc1b){return _0x4780d2+_0x30dc1b;},'jfFUY':function(_0xfb3054,_0x1136c3){return _0xfb3054||_0x1136c3;},'JflhI':function(_0x1f6545,_0x4d1b67){return _0x1f6545===_0x4d1b67;},'UHNaU':function(_0x1e5336,_0x1a43dd){return _0x1e5336(_0x1a43dd);},'gxDhY':function(_0x41ba0b,_0x2c6d03){return _0x41ba0b(_0x2c6d03);}};if(!_0x6509fb||_0x51890f[_0x323611(0x12f)](_0x6509fb['length'],0x0))return 0x0;const _0x36e465=[];for(const _0x24b24a of _0x6509fb){const _0x32005e=path[_0x323611(0xe9)]('.',_0x24b24a);try{const _0x216133=this['getEventsFromJSON'](_0x32005e);_0x216133['map'](_0x3fc243=>{const _0x4c4c08=_0x323611;!_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]&&(_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]=0x0),_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]+=_0x3fc243['duration'];});}catch(_0x47d09a){_0x51890f['UHNaU'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x47d09a['toString']());}}const _0x165520=_0x4e1886[_0x323611(0x126)]((_0x577459,_0x1a2d8d)=>{const _0x4890f1=_0x323611;return _0x51890f[_0x4890f1(0x163)](_0x36e465[_0x1a2d8d],_0x51890f['jfFUY'](_0x577459,0x0));},0x0);return _0x51890f[_0x323611(0x17a)](debug,'Time\x20for\x20'+_0x4e1886+_0x323611(0x148)+_0x165520),_0x165520;}static[a80_0x5cec23(0x108)](_0xf9cb16){const _0x196087=a80_0x5cec23;if(_0xf9cb16){if(!fs['existsSync'](_0xf9cb16))return[];return JSON[_0x196087(0x166)](fs[_0x196087(0x15a)](_0xf9cb16)[_0x196087(0x112)]());}}static async[a80_0x5cec23(0x117)](_0xc80c3c=a80_0x5cec23(0x17c),_0xce3045=null){const _0x55f938=a80_0x5cec23,_0x23a70e={'AFpNL':function(_0x1cb7b7,_0x5be788){return _0x1cb7b7(_0x5be788);}};if(!this[_0x55f938(0xe8)])return;await _0x23a70e['AFpNL'](sleep,0x1e),this[_0x55f938(0x179)]['disconnect'](),this[_0x55f938(0xe8)]=![],this[_0x55f938(0x13c)](this['_events']);const _0x3e403f=this[_0x55f938(0x12c)](this[_0x55f938(0x124)]),_0x238b75=path[_0x55f938(0xe9)](process[_0x55f938(0x115)](),_0xc80c3c);fs[_0x55f938(0x16b)](_0x238b75,_0x3e403f,_0x43df82=>{const _0x340bd0=_0x55f938;if(_0x43df82){_0x23a70e[_0x340bd0(0x13a)](debug,_0x340bd0(0xf6)+_0x43df82[_0x340bd0(0x112)]());return;}_0x23a70e[_0x340bd0(0x13a)](debug,'Performance\x20report\x20is\x20at\x20'+_0x238b75);});if(_0xce3045)return this[_0x55f938(0x143)](this['_events'],_0xce3045);}static[a80_0x5cec23(0x12c)](_0x1bb182){const _0x18a904=a80_0x5cec23,_0x3a0271={};_0x3a0271['hRLTy']=_0x18a904(0x125),_0x3a0271[_0x18a904(0x155)]=_0x18a904(0x10c),_0x3a0271['NvHQa']=_0x18a904(0x12b),_0x3a0271[_0x18a904(0x11d)]='</tbody></table></body></html>';const _0x4c312d=_0x3a0271;let _0x40ed6c=_0x4c312d[_0x18a904(0x10e)];return _0x40ed6c+=_0x4c312d[_0x18a904(0x155)],_0x40ed6c+=_0x4c312d['NvHQa'],_0x1bb182['forEach'](_0x55b334=>{const _0x20dbf8=_0x18a904;_0x40ed6c+=_0x20dbf8(0x16f)+_0x55b334['name']+_0x20dbf8(0x161)+_0x55b334['duration']+_0x20dbf8(0x172);}),_0x40ed6c+=_0x4c312d[_0x18a904(0x11d)],_0x40ed6c;}static[a80_0x5cec23(0x13c)](_0x376efe){const _0x3b33bf=a80_0x5cec23;if(!this[_0x3b33bf(0x17b)])return;const _0x2a9266={};_0x376efe[_0x3b33bf(0xe5)](_0x561ed0=>{const _0x33fc37=_0x3b33bf;!_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]&&(_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]=0x0),_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]+=_0x561ed0[_0x33fc37(0xe7)];});const _0x26c6de=Object['entries'](_0x2a9266)[_0x3b33bf(0xe5)](([_0x37a2e3,_0x17cb84])=>{const _0x17b271=_0x3b33bf,_0x256c06={};return _0x256c06[_0x17b271(0x103)]=_0x37a2e3,_0x256c06[_0x17b271(0xe7)]=_0x17cb84,_0x256c06;});fs[_0x3b33bf(0x110)](this['jsonReportFileName'],JSON['stringify'](_0x26c6de));}static['isEnabled'](){const _0x524abb=a80_0x5cec23,_0x30b40e={};_0x30b40e[_0x524abb(0x118)]=function(_0xa4d3e7,_0x2288a0){return _0xa4d3e7===_0x2288a0;},_0x30b40e[_0x524abb(0x144)]=_0x524abb(0x153);const _0x1ec129=_0x30b40e;return!_0x1ec129[_0x524abb(0x118)](process[_0x524abb(0x141)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x1ec129[_0x524abb(0x144)]);}static[a80_0x5cec23(0x105)](_0x35489c,_0x56194c,_0x53af84=null,_0x4417cd={},_0x5c21d8=null){const _0x4d524b=a80_0x5cec23,_0x44bdba={'OkFKS':function(_0x49e2a4,_0x6bd66f){return _0x49e2a4(_0x6bd66f);},'nwDwu':function(_0xb6715d,_0x888ac5){return _0xb6715d instanceof _0x888ac5;}};try{if(this[_0x4d524b(0xe8)]&&this['isEnabled']()){let _0x1bd71c=_0x35489c;_0x53af84&&(_0x1bd71c=_0x35489c+'['+JSON[_0x4d524b(0x176)](_0x53af84)+']');PerformanceTester['start'](_0x1bd71c),this[_0x4d524b(0x160)]&&(this[_0x4d524b(0x160)][_0x1bd71c]=_0x4417cd);try{const _0x330020=_0x56194c['apply'](null,_0x5c21d8);if(_0x44bdba[_0x4d524b(0x12d)](_0x330020,Promise))return new Promise((_0x4efb33,_0x10d26d)=>{const _0x4c579f=_0x4d524b,_0x228835={'OTJJd':function(_0xa0b464,_0x1754a1){const _0x5a60f7=a80_0x5b18;return _0x44bdba[_0x5a60f7(0x170)](_0xa0b464,_0x1754a1);}};_0x330020[_0x4c579f(0x137)](_0x5f190c=>{PerformanceTester['end'](_0x1bd71c),_0x228835['OTJJd'](_0x4efb33,_0x5f190c);})[_0x4c579f(0x167)](_0x414ac0=>{const _0x5a3a3a=_0x4c579f;PerformanceTester[_0x5a3a3a(0x13e)](_0x1bd71c,![],util[_0x5a3a3a(0x142)](_0x414ac0)),_0x228835[_0x5a3a3a(0x157)](_0x10d26d,_0x414ac0);});});;return PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c),_0x330020;}catch(_0x154e5d){PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c,![],util[_0x4d524b(0x142)](_0x154e5d));throw _0x154e5d;}};return _0x56194c[_0x4d524b(0x15e)](null,_0x5c21d8);}catch(_0x2eab55){return _0x56194c['apply'](null,_0x5c21d8);}}static['measureWrapper'](_0x559b67,_0x50d263,_0x59185f={}){const _0x2d78a1=a80_0x5cec23,_0x263cc6={'HStEf':function(_0x2ca4d1){return _0x2ca4d1();},'nEfgB':function(_0x574793){return _0x574793();}},_0xe7e496=this;return _0x59185f['worker']=_0x263cc6['HStEf'](getProcessId),_0x59185f[_0x2d78a1(0xeb)]=_0x263cc6[_0x2d78a1(0xf7)](getTestName),_0x59185f[_0x2d78a1(0xff)]=global[_0x2d78a1(0x138)]&&global[_0x2d78a1(0x138)][_0x2d78a1(0x10a)],function(){const _0x3be737=_0x2d78a1,_0x4b23a1=[_0x559b67,_0x50d263,null,_0x59185f][_0x3be737(0x17f)](arguments);return _0xe7e496[_0x3be737(0x105)][_0x3be737(0x15e)](_0xe7e496,_0x4b23a1);};}static['getCleanedPerfEvents'](){const _0x584900=a80_0x5cec23,_0x2481c0=/(^.*)\[(.*)\]$/,_0x15f490={},_0x156736={},_0x4c612c=[],_0x21c162=this[_0x584900(0x107)][_0x584900(0x10d)](0x0,this['_measureEvents'][_0x584900(0x102)]);for(const _0x387634 of _0x21c162){const _0x3c1ba3=_0x387634[_0x584900(0x103)][_0x584900(0x104)](_0x2481c0),_0x4ce551=Object[_0x584900(0x140)]({},_0x387634);_0x3c1ba3&&(_0x4ce551[_0x584900(0x103)]=_0x3c1ba3[0x1],_0x4ce551[_0x584900(0x154)]=JSON[_0x584900(0x166)](_0x3c1ba3[0x2])),_0x4c612c[_0x584900(0x129)](_0x4ce551);}return _0x4c612c;}static[a80_0x5cec23(0x181)](){const _0x3fffc4=a80_0x5cec23,_0x1e4361={'skYtQ':function(_0x30fed0){return _0x30fed0();},'BAIqO':function(_0x157486,_0x9859db){return _0x157486+_0x9859db;},'VcInE':_0x3fffc4(0x14d),'abyNp':function(_0x11e939,_0x2c5bcb){return _0x11e939===_0x2c5bcb;}};try{this[_0x3fffc4(0x11c)]=path[_0x3fffc4(0xe9)](_0x1e4361['skYtQ'](getLogDir),this[_0x3fffc4(0x180)]);if(fs[_0x3fffc4(0x156)](this[_0x3fffc4(0x11c)])){const _0x5eab80=fs[_0x3fffc4(0x116)](this[_0x3fffc4(0x11c)]);for(const _0x2fa35c of _0x5eab80){fs[_0x3fffc4(0x159)](path[_0x3fffc4(0xe9)](this[_0x3fffc4(0x11c)],_0x2fa35c));}}}catch(_0x3f5231){logger['debug'](_0x1e4361[_0x3fffc4(0x158)](_0x1e4361[_0x3fffc4(0x169)],_0x3f5231));}if(_0x1e4361[_0x3fffc4(0xe6)](this[_0x3fffc4(0x107)]['length'],0x0))return;const _0x5ac031=this[_0x3fffc4(0xe3)](),_0x92fac6=JSON['stringify'](_0x5ac031),_0x44569d=_0x1e4361[_0x3fffc4(0x158)](_0x92fac6[_0x3fffc4(0xf5)](0x1,-0x1),',');fs[_0x3fffc4(0xfc)](this['jsonReportFileName'],_0x44569d);}static async[a80_0x5cec23(0x16c)](){const _0x257e16=a80_0x5cec23,_0x12a2cb={'PFntw':function(_0x279378){return _0x279378();},'YnpdH':function(_0x48d1a6,_0x244da9){return _0x48d1a6===_0x244da9;},'dekBZ':function(_0x101d49,_0x12c71a){return _0x101d49>_0x12c71a;}};this['jsonReportDirPath']=path[_0x257e16(0xe9)](_0x12a2cb[_0x257e16(0x15b)](getLogDir),this[_0x257e16(0x180)]);if(!this[_0x257e16(0xe8)]||_0x12a2cb['YnpdH'](this['_measureEvents']['length'],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x257e16(0x107)];const _0x11dabc=(await fsPromise[_0x257e16(0x13f)](this['jsonReportDirPath']))[_0x257e16(0xe5)](_0x12cacc=>path[_0x257e16(0xf1)](this[_0x257e16(0x11c)],_0x12cacc));let _0xbd31cf=(await Promise[_0x257e16(0xe1)](_0x11dabc[_0x257e16(0xe5)](_0x3a891c=>fsPromise[_0x257e16(0x13d)](_0x3a891c,_0x257e16(0x14b)))))[_0x257e16(0xe5)](_0x2792df=>'['+_0x2792df[_0x257e16(0xf5)](0x0,-0x1)+']')[_0x257e16(0xe5)](_0x2c2b6e=>JSON[_0x257e16(0x166)](_0x2c2b6e))[_0x257e16(0x164)]();return _0x12a2cb[_0x257e16(0x152)](this[_0x257e16(0x107)][_0x257e16(0x102)],0x0)&&(_0xbd31cf=_0xbd31cf['concat'](this[_0x257e16(0xe3)]())),this[_0x257e16(0x179)][_0x257e16(0x128)](),_0xbd31cf;}static[a80_0x5cec23(0x100)](){const _0x4e4c88=a80_0x5cec23,_0x3e27c3={};_0x3e27c3[_0x4e4c88(0xfd)]=function(_0x101c6a,_0x1bd688){return _0x101c6a===_0x1bd688;},_0x3e27c3[_0x4e4c88(0x178)]=function(_0x699766,_0x568b10){return _0x699766+_0x568b10;};const _0x3340e9=_0x3e27c3;if(_0x3340e9['CpVnQ'](this[_0x4e4c88(0x132)][_0x4e4c88(0x102)],0x0))return;const _0x862a9=JSON[_0x4e4c88(0x176)](this[_0x4e4c88(0x132)]),_0x3c5cc2=_0x3340e9['SgBUf'](_0x862a9[_0x4e4c88(0xf5)](0x1,-0x1),',');fs[_0x4e4c88(0xfc)](this['errorFile'],_0x3c5cc2);}static[a80_0x5cec23(0x10f)](){const _0xd318a9=a80_0x5cec23,_0x1ef2ea={};_0x1ef2ea[_0xd318a9(0x12e)]=function(_0x184048,_0x41996d){return _0x184048>_0x41996d;};const _0x47a66e=_0x1ef2ea;if(this['errorReportFileName']){if(!fs[_0xd318a9(0x156)](this[_0xd318a9(0x113)]))return this[_0xd318a9(0x132)];let _0x5da928=fs[_0xd318a9(0x15a)](this[_0xd318a9(0x113)])[_0xd318a9(0x112)]();_0x5da928='['+_0x5da928[_0xd318a9(0xf5)](0x0,-0x1)+']';let _0x5535f9=JSON[_0xd318a9(0x166)](_0x5da928);return _0x47a66e[_0xd318a9(0x12e)](this[_0xd318a9(0x132)][_0xd318a9(0x102)],0x0)&&(_0x5535f9=_0x5535f9[_0xd318a9(0x17f)](this[_0xd318a9(0x132)])),fs['unlinkSync'](this['errorReportFileName']),_0x5535f9;}}static[a80_0x5cec23(0x120)](_0x52830e){const _0x344bee=a80_0x5cec23;if(!this['isEnabled']())return;this[_0x344bee(0x132)][_0x344bee(0x129)]({'message':_0x52830e[_0x344bee(0x150)],'trace':_0x52830e['stack'],'code':_0x52830e[_0x344bee(0xef)]||null,'time':new Date()});}static[a80_0x5cec23(0xfe)](){const _0xe379b8=a80_0x5cec23;try{if(!this[_0xe379b8(0x14a)]())return;this[_0xe379b8(0x179)][_0xe379b8(0x128)](),this[_0xe379b8(0x181)](),this[_0xe379b8(0x100)]();}catch(_0x329f56){logger[_0xe379b8(0xf4)](_0xe379b8(0x182)+util['format'](_0x329f56));}}static async[a80_0x5cec23(0x123)](){const _0x98837c=a80_0x5cec23,_0x468ef8={'kpGcF':function(_0x4f5f17,_0x188873){return _0x4f5f17(_0x188873);}};await _0x468ef8[_0x98837c(0x135)](sleep,0x1e);const _0x3a7711=await this[_0x98837c(0x16c)](),_0x5256ea=this[_0x98837c(0x10f)]();if(!this['isEnabled']()){const _0x3b9c7b={};return _0x3b9c7b[_0x98837c(0x162)]=[],_0x3b9c7b[_0x98837c(0xf8)]=[],_0x3b9c7b;}const _0x317c1a={};return _0x317c1a[_0x98837c(0x162)]=_0x3a7711,_0x317c1a[_0x98837c(0xf8)]=_0x5256ea,_0x317c1a;}static[a80_0x5cec23(0x177)](_0x2042b3){const _0x14e1c0=a80_0x5cec23,_0x39d187={};_0x39d187[_0x14e1c0(0xfa)]=function(_0x1ccc77,_0x16313a){return _0x1ccc77+_0x16313a;},_0x39d187[_0x14e1c0(0x149)]=_0x14e1c0(0x101);const _0x58ead4=_0x39d187,_0x3540bb=_0x58ead4[_0x14e1c0(0xfa)](_0x2042b3,_0x58ead4[_0x14e1c0(0x149)]);if(this['eventsMap'][_0x3540bb])return;performance[_0x14e1c0(0x122)](_0x3540bb),this[_0x14e1c0(0xf3)][_0x3540bb]=0x1;}static[a80_0x5cec23(0x13e)](_0xc37b41,_0x8128d1=!![],_0x1e6c12=null,_0x217531={}){const _0x5c7e89=a80_0x5cec23,_0x3ec933={'joiTP':function(_0x56756f,_0x3753af){return _0x56756f+_0x3753af;},'DGDqu':_0x5c7e89(0x17d),'nhzIL':_0x5c7e89(0x101),'PLlOj':function(_0x4e6b90,_0x7f51bb){return _0x4e6b90+_0x7f51bb;},'flpnP':function(_0x2978e3){return _0x2978e3();}};performance[_0x5c7e89(0x122)](_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)])),performance['measure'](_0xc37b41,_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933['nhzIL']),_0x3ec933[_0x5c7e89(0x139)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)]));const _0x1a8dcb={};_0x1a8dcb[_0x5c7e89(0x13b)]=_0x8128d1,_0x1a8dcb[_0x5c7e89(0xf9)]=_0x1e6c12,this[_0x5c7e89(0x160)][_0xc37b41]=Object[_0x5c7e89(0x140)](_0x1a8dcb,Object[_0x5c7e89(0x140)](Object[_0x5c7e89(0x140)]({'worker':_0x3ec933[_0x5c7e89(0x12a)](getProcessId),'platform':global['__platformCaps']&&global[_0x5c7e89(0x138)][_0x5c7e89(0x10a)],'testName':_0x3ec933[_0x5c7e89(0x12a)](getTestName)},_0x217531),this[_0x5c7e89(0x160)][_0xc37b41]||{}));}}module[a80_0x5cec23(0x14c)]=PerformanceTester;
|
|
1
|
+
const a80_0x4933f4=a80_0x259e;function a80_0x259e(_0x2ad568,_0x30e9da){const _0x86cf73=a80_0x86cf();return a80_0x259e=function(_0x259ed5,_0x3bda82){_0x259ed5=_0x259ed5-0xfa;let _0xeb6e39=_0x86cf73[_0x259ed5];return _0xeb6e39;},a80_0x259e(_0x2ad568,_0x30e9da);}function a80_0x86cf(){const _0x39b945=['perf_hooks','.json','_observer','jsonReportDirName','toString','finalize','Error\x20while\x20removing\x20files:\x20','parse','-start','22gsFBUl','performance-report','jsonReportDirPath','testName','qoBAj','fs/promises','toJSON','jsonReportFileName','push','/performance-report-','JaIKr','index','LORWt','/error-report-','suUtx','calculateTimesFromMultipleFiles','IsmQO','startMonitoring','<h1>Performance\x20Report</h1>','6310zQdrrP','env','65814iQUffB','map','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','finalizeErrors','apply','all','stack','82632DjpYrS','join','getCleanedPerfEvents','appendFileSync','HipbU','stringify','then','ySLCw','<tr><td>','measure','WlTQV','lJieu','disconnect','code','assign','writeFileSync','calculateTimeFromEvents','false','</td></tr>','slice','buffered','Ivuau','BROWSERSTACK_SDK_INSTRUMENTATION','debug','entryTypes','worker','Error\x20in\x20doing\x20csv\x20operations:\x20','errorFile','existsSync','meta','SypLP','errorReportDirName','cwd','duration','BNSOB','started','error-report','captureError','mark','hgjDq','bBalh','getEntries','dRYxo','../logger','readdirSync','_measureEvents','7090uAClRG','__platformCaps','DZcTi','message','stopMonitoring','OizMa','667992JxGoUk','_events','963DLStVw','77zDPXUS','end','JKCwl','path','HJorK','success','OYNus','getPerformance','MGqeC','writeFile','details','OJPay','forEach','getEventsFromJSON','ZQOse','errors','xGgCn','splice','eventsMap','whFVi','wFUrH','rIvsX','generateJSON','48SjJAlJ','Error\x20in\x20writing\x20html\x20','name','entryType','lZSHC','format','WNSrk','concat','1316160ZCnyRX','measures','GIGZe','browserStackCwd','finalizePerfMeasures','mkdirSync','bteAY','readdir','isEnabled','unlinkSync','catch','length','function','EWVmZ','readFileSync','pushPerfMeasures','Error\x20stopping\x20monitoring\x20','YzvFv','LucGe','MdPvF','errorReportFileName','tQimQ','resolve','flat','bmvvQ','180ntZgtW','entries','start','generateHTMLReport','eLaJU','performance-own.html','5228WNCcwf','Performance\x20report\x20is\x20at\x20','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','tiJIa','_errorEvents'];a80_0x86cf=function(){return _0x39b945;};return a80_0x86cf();}(function(_0x4283ba,_0x3b10e6){const _0x3b5de7=a80_0x259e,_0x572932=_0x4283ba();while(!![]){try{const _0x2eacc2=-parseInt(_0x3b5de7(0x14e))/0x1+-parseInt(_0x3b5de7(0x12b))/0x2*(parseInt(_0x3b5de7(0x104))/0x3)+parseInt(_0x3b5de7(0x125))/0x4*(-parseInt(_0x3b5de7(0x183))/0x5)+-parseInt(_0x3b5de7(0x155))/0x6*(-parseInt(_0x3b5de7(0x18c))/0x7)+parseInt(_0x3b5de7(0x10c))/0x8+parseInt(_0x3b5de7(0x18b))/0x9*(parseInt(_0x3b5de7(0x14c))/0xa)+parseInt(_0x3b5de7(0x139))/0xb*(-parseInt(_0x3b5de7(0x189))/0xc);if(_0x2eacc2===_0x3b10e6)break;else _0x572932['push'](_0x572932['shift']());}catch(_0x45757a){_0x572932['push'](_0x572932['shift']());}}}(a80_0x86cf,0x1898d));const fs=require('fs'),fsPromise=require(a80_0x4933f4(0x13e)),{performance,PerformanceObserver}=require(a80_0x4933f4(0x130)),path=require(a80_0x4933f4(0x18f)),util=require('util'),logger=require('../logger')['winstonLogger'],{getLogDir}=require(a80_0x4933f4(0x180)),{getProcessId,sleep,debug,getTestName}=require('../processHelper');class PerformanceTester{static [a80_0x4933f4(0x132)];static ['_events']=[];static [a80_0x4933f4(0x182)]=[];static [a80_0x4933f4(0x12f)]=[];static ['started']=![];static [a80_0x4933f4(0x133)]=a80_0x4933f4(0x13a);static ['errorReportDirName']=process['env']['browserStackCwd']?path[a80_0x4933f4(0x156)](process[a80_0x4933f4(0x14d)][a80_0x4933f4(0x10f)],a80_0x4933f4(0x179)):path[a80_0x4933f4(0x156)](process[a80_0x4933f4(0x175)](),a80_0x4933f4(0x179));static [a80_0x4933f4(0x120)]=this['errorReportDirName']+'/error-report-'+getProcessId()+a80_0x4933f4(0x131);static [a80_0x4933f4(0x196)]={};static [a80_0x4933f4(0xff)]={};static[a80_0x4933f4(0x14a)](_0xa0b9bc,_0x45c3dd=this[a80_0x4933f4(0x174)]+a80_0x4933f4(0x146)+getProcessId()+'.json'){const _0x14786f=a80_0x4933f4,_0x1b7a8b={'Ivuau':function(_0x4bd936,_0x367f76){return _0x4bd936===_0x367f76;},'OJPay':_0x14786f(0x15e),'wFUrH':function(_0xde9dfe){return _0xde9dfe();},'BNSOB':function(_0x40a925,_0x4b4180){return _0x40a925+_0x4b4180;},'dRYxo':_0x14786f(0x150),'fmSyK':_0x14786f(0x118)};try{this[_0x14786f(0x13b)]=path[_0x14786f(0x156)](_0x1b7a8b[_0x14786f(0x101)](getLogDir),this[_0x14786f(0x133)]),!_0xa0b9bc&&(_0xa0b9bc=this[_0x14786f(0x13b)]+_0x14786f(0x142)+_0x1b7a8b[_0x14786f(0x101)](getProcessId)+_0x14786f(0x131)),!fs[_0x14786f(0x171)](this[_0x14786f(0x13b)])&&fs[_0x14786f(0x111)](this[_0x14786f(0x13b)]);}catch(_0x1223b3){logger[_0x14786f(0x16c)](_0x1b7a8b[_0x14786f(0x177)](_0x1b7a8b[_0x14786f(0x17f)],_0x1223b3));}if(this['started']||!this[_0x14786f(0x114)]())return;this[_0x14786f(0x132)]=new PerformanceObserver(_0x513c7c=>{const _0x47e2e8=_0x14786f;_0x513c7c[_0x47e2e8(0x17e)]()[_0x47e2e8(0x198)](_0x1e807e=>{const _0x4e4549=_0x47e2e8;if(_0x1b7a8b[_0x4e4549(0x16a)](_0x1e807e[_0x4e4549(0x107)],_0x1b7a8b[_0x4e4549(0x197)])){let _0x2d40e7={};if(_0x1e807e[_0x4e4549(0x13f)])_0x2d40e7=_0x1e807e[_0x4e4549(0x13f)]();else for(const _0x577855 in _0x1e807e){_0x2d40e7[_0x577855]=_0x1e807e[_0x577855];}this[_0x4e4549(0x196)][_0x1e807e[_0x4e4549(0x106)]]&&(_0x2d40e7=Object[_0x4e4549(0x163)](_0x2d40e7,this[_0x4e4549(0x196)][_0x1e807e['name']])),delete this[_0x4e4549(0x196)][_0x1e807e['name']],this[_0x4e4549(0x182)][_0x4e4549(0x141)](_0x2d40e7);}else this['_events'][_0x4e4549(0x141)](_0x1e807e);});});const _0x32ad06={};_0x32ad06[_0x14786f(0x169)]=!![],_0x32ad06[_0x14786f(0x16d)]=[_0x1b7a8b['fmSyK'],_0x1b7a8b[_0x14786f(0x197)]],this[_0x14786f(0x132)]['observe'](_0x32ad06),this['started']=!![],this[_0x14786f(0x140)]=_0xa0b9bc,this[_0x14786f(0x120)]=_0x45c3dd;}static[a80_0x4933f4(0x193)](){return performance;}static[a80_0x4933f4(0x165)](_0x2d8f7f,_0x437927){const _0x5774b7=a80_0x4933f4,_0x1af509={};_0x1af509[_0x5774b7(0x11d)]=function(_0x53c9dc,_0x1eb82c){return _0x53c9dc+_0x1eb82c;},_0x1af509[_0x5774b7(0xfd)]=function(_0xcf345b,_0x2a5275){return _0xcf345b||_0x2a5275;},_0x1af509[_0x5774b7(0x15f)]=function(_0x1569fd,_0x38406d){return _0x1569fd===_0x38406d;};const _0x358d33=_0x1af509,_0x2547df={};if(!_0x2d8f7f||_0x358d33['WlTQV'](_0x2d8f7f[_0x5774b7(0x117)],0x0))return;_0x2d8f7f[_0x5774b7(0x14f)](_0x453972=>{const _0x3fcd66=_0x5774b7;!_0x2547df[_0x453972[_0x3fcd66(0x106)]]&&(_0x2547df[_0x453972[_0x3fcd66(0x106)]]=0x0),_0x2547df[_0x453972[_0x3fcd66(0x106)]]+=_0x453972['duration'];});const _0x3ae714=_0x437927['reduce']((_0xa485f8,_0x59596b)=>{return _0x358d33['YzvFv'](_0x2547df[_0x59596b],_0x358d33['xGgCn'](_0xa485f8,0x0));},0x0);return _0x3ae714;}static async[a80_0x4933f4(0x148)](_0x384ace,_0x4bca65){const _0x59f05a=a80_0x4933f4,_0x564410={'OizMa':function(_0x1c48cb,_0xbaa4cb){return _0x1c48cb+_0xbaa4cb;},'tiJIa':function(_0x49b18c,_0x55cfad){return _0x49b18c||_0x55cfad;},'DZcTi':function(_0x2c6878,_0x1acc97){return _0x2c6878===_0x1acc97;},'IsmQO':function(_0x325235,_0x4337b8){return _0x325235(_0x4337b8);},'suUtx':function(_0x389e9b,_0x465bcf){return _0x389e9b(_0x465bcf);}};if(!_0x384ace||_0x564410[_0x59f05a(0x185)](_0x384ace['length'],0x0))return 0x0;const _0x490ac5=[];for(const _0x58a012 of _0x384ace){const _0x2ecbcb=path['join']('.',_0x58a012);try{const _0x482cc8=this[_0x59f05a(0xfa)](_0x2ecbcb);_0x482cc8[_0x59f05a(0x14f)](_0x548993=>{const _0xb3a6e=_0x59f05a;!_0x490ac5[_0x548993[_0xb3a6e(0x106)]]&&(_0x490ac5[_0x548993[_0xb3a6e(0x106)]]=0x0),_0x490ac5[_0x548993[_0xb3a6e(0x106)]]+=_0x548993[_0xb3a6e(0x176)];});}catch(_0x4d06ef){_0x564410[_0x59f05a(0x149)](debug,_0x59f05a(0x16f)+_0x4d06ef[_0x59f05a(0x134)]());}}const _0x317a0e=_0x4bca65['reduce']((_0x534f42,_0x1696da)=>{const _0x5866f3=_0x59f05a;return _0x564410[_0x5866f3(0x188)](_0x490ac5[_0x1696da],_0x564410[_0x5866f3(0x12e)](_0x534f42,0x0));},0x0);return _0x564410[_0x59f05a(0x147)](debug,'Time\x20for\x20'+_0x4bca65+'\x20for\x20all\x20processes\x20is\x20'+_0x317a0e),_0x317a0e;}static[a80_0x4933f4(0xfa)](_0x541ed1){const _0x1cbc05=a80_0x4933f4;if(_0x541ed1){if(!fs[_0x1cbc05(0x171)](_0x541ed1))return[];return JSON[_0x1cbc05(0x137)](fs[_0x1cbc05(0x11a)](_0x541ed1)[_0x1cbc05(0x134)]());}}static async['stopAndGenerate'](_0x16fd10=a80_0x4933f4(0x12a),_0x4d3ed4=null){const _0x3a7c5e=a80_0x4933f4,_0x116599={'eLaJU':function(_0x38d841,_0x598b30){return _0x38d841(_0x598b30);}};if(!this[_0x3a7c5e(0x178)])return;await _0x116599['eLaJU'](sleep,0x1e),this['_observer'][_0x3a7c5e(0x161)](),this[_0x3a7c5e(0x178)]=![],this['generateJSON'](this[_0x3a7c5e(0x18a)]);const _0x20af37=this[_0x3a7c5e(0x128)](this['_events']),_0x1e967e=path['join'](process[_0x3a7c5e(0x175)](),_0x16fd10);fs[_0x3a7c5e(0x195)](_0x1e967e,_0x20af37,_0x49c0fe=>{const _0x102f82=_0x3a7c5e;if(_0x49c0fe){_0x116599['eLaJU'](debug,_0x102f82(0x105)+_0x49c0fe[_0x102f82(0x134)]());return;}_0x116599[_0x102f82(0x129)](debug,_0x102f82(0x12c)+_0x1e967e);});if(_0x4d3ed4)return this[_0x3a7c5e(0x165)](this[_0x3a7c5e(0x18a)],_0x4d3ed4);}static['generateHTMLReport'](_0x275bde){const _0x5c0809=a80_0x4933f4,_0x2a6dc5={};_0x2a6dc5[_0x5c0809(0x10a)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2a6dc5[_0x5c0809(0x124)]=_0x5c0809(0x14b),_0x2a6dc5[_0x5c0809(0xfb)]=_0x5c0809(0x12d),_0x2a6dc5[_0x5c0809(0x194)]='</tbody></table></body></html>';const _0x4294e9=_0x2a6dc5;let _0x3f34b6=_0x4294e9[_0x5c0809(0x10a)];return _0x3f34b6+=_0x4294e9['bmvvQ'],_0x3f34b6+=_0x4294e9['ZQOse'],_0x275bde[_0x5c0809(0x198)](_0x43a10f=>{const _0x2ab0bf=_0x5c0809;_0x3f34b6+=_0x2ab0bf(0x15d)+_0x43a10f[_0x2ab0bf(0x106)]+'</td><td>'+_0x43a10f['duration']+_0x2ab0bf(0x167);}),_0x3f34b6+=_0x4294e9[_0x5c0809(0x194)],_0x3f34b6;}static[a80_0x4933f4(0x103)](_0x139563){const _0x558040=a80_0x4933f4;if(!this[_0x558040(0x140)])return;const _0x24d0f3={};_0x139563['map'](_0x29c4ef=>{const _0x55350b=_0x558040;!_0x24d0f3[_0x29c4ef[_0x55350b(0x106)]]&&(_0x24d0f3[_0x29c4ef[_0x55350b(0x106)]]=0x0),_0x24d0f3[_0x29c4ef[_0x55350b(0x106)]]+=_0x29c4ef[_0x55350b(0x176)];});const _0x55b22d=Object[_0x558040(0x126)](_0x24d0f3)['map'](([_0x3d6c00,_0x70c00d])=>{const _0x556949=_0x558040,_0x18f392={};return _0x18f392[_0x556949(0x106)]=_0x3d6c00,_0x18f392['duration']=_0x70c00d,_0x18f392;});fs[_0x558040(0x164)](this['jsonReportFileName'],JSON['stringify'](_0x55b22d));}static[a80_0x4933f4(0x114)](){const _0x4683eb=a80_0x4933f4,_0x30688d={};_0x30688d[_0x4683eb(0x121)]=function(_0x1ff4cd,_0x35a7a6){return _0x1ff4cd===_0x35a7a6;},_0x30688d[_0x4683eb(0x108)]=_0x4683eb(0x166);const _0x52b2c6=_0x30688d;return!_0x52b2c6[_0x4683eb(0x121)](process[_0x4683eb(0x14d)][_0x4683eb(0x16b)],_0x52b2c6[_0x4683eb(0x108)]);}static[a80_0x4933f4(0x15e)](_0x58f11e,_0x289946,_0x4fbc99=null,_0x1a902a={},_0x5b9ea5=null){const _0xb9942=a80_0x4933f4,_0xc91990={'MdPvF':function(_0x3d96be,_0x4bd5c5){return _0x3d96be(_0x4bd5c5);},'ghCGM':function(_0x5acdde,_0x5ab7e5){return _0x5acdde(_0x5ab7e5);},'rIvsX':function(_0x11a804,_0x31df50){return _0x11a804 instanceof _0x31df50;}};try{if(this['started']&&this['isEnabled']()){let _0xda25a0=_0x58f11e;_0x4fbc99&&(_0xda25a0=_0x58f11e+'['+JSON['stringify'](_0x4fbc99)+']');PerformanceTester['start'](_0xda25a0),this['details']&&(this[_0xb9942(0x196)][_0xda25a0]=_0x1a902a);try{const _0x4cf3fd=_0x289946[_0xb9942(0x152)](null,_0x5b9ea5);if(_0xc91990[_0xb9942(0x102)](_0x4cf3fd,Promise))return new Promise((_0x44574f,_0x3bb96e)=>{const _0x36a978=_0xb9942,_0x262eb2={'XtheQ':function(_0x150e76,_0x1a108c){return _0xc91990['ghCGM'](_0x150e76,_0x1a108c);}};_0x4cf3fd[_0x36a978(0x15b)](_0x165f9d=>{const _0x4930ac=_0x36a978;PerformanceTester[_0x4930ac(0x18d)](_0xda25a0),_0x262eb2['XtheQ'](_0x44574f,_0x165f9d);})[_0x36a978(0x116)](_0x126ecf=>{const _0x5a792c=_0x36a978;PerformanceTester[_0x5a792c(0x18d)](_0xda25a0,![],util[_0x5a792c(0x109)](_0x126ecf)),_0xc91990[_0x5a792c(0x11f)](_0x3bb96e,_0x126ecf);});});;return PerformanceTester[_0xb9942(0x18d)](_0xda25a0),_0x4cf3fd;}catch(_0x49a1c8){PerformanceTester[_0xb9942(0x18d)](_0xda25a0,![],util[_0xb9942(0x109)](_0x49a1c8));throw _0x49a1c8;}};return _0x289946[_0xb9942(0x152)](null,_0x5b9ea5);}catch(_0x3d074a){return _0x289946[_0xb9942(0x152)](null,_0x5b9ea5);}}static['measureWrapper'](_0x2c9f36,_0x3f18e0,_0x5a3246={}){const _0x4d14e9=a80_0x4933f4,_0x50a465={'lJieu':function(_0x198975){return _0x198975();}},_0x16b820=this;return _0x5a3246[_0x4d14e9(0x16e)]=_0x50a465['lJieu'](getProcessId),_0x5a3246[_0x4d14e9(0x13c)]=_0x50a465[_0x4d14e9(0x160)](getTestName),_0x5a3246['platform']=global[_0x4d14e9(0x184)]&&global['__platformCaps'][_0x4d14e9(0x144)],function(){const _0x5611c2=_0x4d14e9,_0x217fb5=[_0x2c9f36,_0x3f18e0,null,_0x5a3246][_0x5611c2(0x10b)](arguments);return _0x16b820[_0x5611c2(0x15e)][_0x5611c2(0x152)](_0x16b820,_0x217fb5);};}static[a80_0x4933f4(0x157)](){const _0x35c3d0=a80_0x4933f4,_0x47671c=/(^.*)\[(.*)\]$/,_0xd5d892={},_0x3b377c={},_0x3c2d13=[],_0x1c1cf8=this[_0x35c3d0(0x182)][_0x35c3d0(0xfe)](0x0,this[_0x35c3d0(0x182)]['length']);for(const _0x17c921 of _0x1c1cf8){const _0xba0a74=_0x17c921['name']['match'](_0x47671c),_0x44ed40=Object['assign']({},_0x17c921);_0xba0a74&&(_0x44ed40['name']=_0xba0a74[0x1],_0x44ed40[_0x35c3d0(0x172)]=JSON[_0x35c3d0(0x137)](_0xba0a74[0x2])),_0x3c2d13['push'](_0x44ed40);}return _0x3c2d13;}static[a80_0x4933f4(0x11b)](){const _0x3629ff=a80_0x4933f4,_0x5afe07={'hgjDq':function(_0x500af2){return _0x500af2();},'HJorK':function(_0x3103f0,_0x14e49f){return _0x3103f0+_0x14e49f;},'JaIKr':_0x3629ff(0x136),'HipbU':function(_0x1a7d13,_0x56572d){return _0x1a7d13===_0x56572d;}};try{this['jsonReportDirPath']=path['join'](_0x5afe07[_0x3629ff(0x17c)](getLogDir),this[_0x3629ff(0x133)]);if(fs['existsSync'](this[_0x3629ff(0x13b)])){const _0x36980f=fs[_0x3629ff(0x181)](this[_0x3629ff(0x13b)]);for(const _0x4a7661 of _0x36980f){fs[_0x3629ff(0x115)](path[_0x3629ff(0x156)](this[_0x3629ff(0x13b)],_0x4a7661));}}}catch(_0x269e30){logger['debug'](_0x5afe07['HJorK'](_0x5afe07[_0x3629ff(0x143)],_0x269e30));}if(_0x5afe07[_0x3629ff(0x159)](this['_measureEvents'][_0x3629ff(0x117)],0x0))return;const _0x2899c3=this[_0x3629ff(0x157)](),_0x58266b=JSON['stringify'](_0x2899c3),_0x204450=_0x5afe07[_0x3629ff(0x190)](_0x58266b[_0x3629ff(0x168)](0x1,-0x1),',');fs[_0x3629ff(0x158)](this[_0x3629ff(0x140)],_0x204450);}static async[a80_0x4933f4(0x110)](){const _0x53ce90=a80_0x4933f4,_0x29d0fc={'OYNus':function(_0x3a4109){return _0x3a4109();},'vuCTq':function(_0x2f6de7,_0x1824a2){return _0x2f6de7===_0x1824a2;},'bBalh':function(_0x452e19,_0x174029){return _0x452e19>_0x174029;}};this[_0x53ce90(0x13b)]=path[_0x53ce90(0x156)](_0x29d0fc[_0x53ce90(0x192)](getLogDir),this[_0x53ce90(0x133)]);if(!this[_0x53ce90(0x178)]||_0x29d0fc['vuCTq'](this['_measureEvents'][_0x53ce90(0x117)],0x0))return[];if(!fs[_0x53ce90(0x171)](this['jsonReportDirPath']))return this[_0x53ce90(0x182)];const _0x1b951c=(await fsPromise[_0x53ce90(0x113)](this[_0x53ce90(0x13b)]))[_0x53ce90(0x14f)](_0x1bf140=>path[_0x53ce90(0x122)](this[_0x53ce90(0x13b)],_0x1bf140));let _0x319fb3=(await Promise[_0x53ce90(0x153)](_0x1b951c[_0x53ce90(0x14f)](_0x3298d7=>fsPromise['readFile'](_0x3298d7,'utf-8'))))[_0x53ce90(0x14f)](_0x349b5d=>'['+_0x349b5d[_0x53ce90(0x168)](0x0,-0x1)+']')['map'](_0x1282fc=>JSON[_0x53ce90(0x137)](_0x1282fc))[_0x53ce90(0x123)]();return _0x29d0fc[_0x53ce90(0x17d)](this[_0x53ce90(0x182)]['length'],0x0)&&(_0x319fb3=_0x319fb3[_0x53ce90(0x10b)](this[_0x53ce90(0x157)]())),this[_0x53ce90(0x132)]['disconnect'](),_0x319fb3;}static['pushErrors'](){const _0x210b00=a80_0x4933f4,_0x2a5746={};_0x2a5746['SypLP']=function(_0x208912,_0x5b0d8a){return _0x208912===_0x5b0d8a;},_0x2a5746[_0x210b00(0x119)]=function(_0x4c3574,_0x5ee630){return _0x4c3574+_0x5ee630;};const _0x10f8a7=_0x2a5746;if(_0x10f8a7[_0x210b00(0x173)](this[_0x210b00(0x12f)][_0x210b00(0x117)],0x0))return;const _0x83897c=JSON[_0x210b00(0x15a)](this[_0x210b00(0x12f)]),_0x346f88=_0x10f8a7[_0x210b00(0x119)](_0x83897c['slice'](0x1,-0x1),',');fs[_0x210b00(0x158)](this[_0x210b00(0x170)],_0x346f88);}static[a80_0x4933f4(0x151)](){const _0x2b4fbd=a80_0x4933f4,_0x32350e={};_0x32350e[_0x2b4fbd(0x10e)]=function(_0x45f7e5,_0x277d01){return _0x45f7e5>_0x277d01;};const _0x23c047=_0x32350e;if(this[_0x2b4fbd(0x120)]){if(!fs[_0x2b4fbd(0x171)](this['errorReportFileName']))return this[_0x2b4fbd(0x12f)];let _0x15c08b=fs['readFileSync'](this[_0x2b4fbd(0x120)])[_0x2b4fbd(0x134)]();_0x15c08b='['+_0x15c08b[_0x2b4fbd(0x168)](0x0,-0x1)+']';let _0x5eced5=JSON[_0x2b4fbd(0x137)](_0x15c08b);return _0x23c047[_0x2b4fbd(0x10e)](this[_0x2b4fbd(0x12f)][_0x2b4fbd(0x117)],0x0)&&(_0x5eced5=_0x5eced5[_0x2b4fbd(0x10b)](this[_0x2b4fbd(0x12f)])),fs['unlinkSync'](this[_0x2b4fbd(0x120)]),_0x5eced5;}}static[a80_0x4933f4(0x17a)](_0x49c210){const _0x34efb0=a80_0x4933f4;if(!this[_0x34efb0(0x114)]())return;this[_0x34efb0(0x12f)][_0x34efb0(0x141)]({'message':_0x49c210[_0x34efb0(0x186)],'trace':_0x49c210[_0x34efb0(0x154)],'code':_0x49c210[_0x34efb0(0x162)]||null,'time':new Date()});}static[a80_0x4933f4(0x187)](){const _0x3d3f1b=a80_0x4933f4;try{if(!this[_0x3d3f1b(0x114)]())return;this[_0x3d3f1b(0x132)][_0x3d3f1b(0x161)](),this[_0x3d3f1b(0x11b)](),this['pushErrors']();}catch(_0xe4e09d){logger[_0x3d3f1b(0x16c)](_0x3d3f1b(0x11c)+util[_0x3d3f1b(0x109)](_0xe4e09d));}}static async[a80_0x4933f4(0x135)](){const _0x14ff1d=a80_0x4933f4,_0x91333c={'ehOtS':function(_0x3acc1d,_0x28c9bb){return _0x3acc1d(_0x28c9bb);}};await _0x91333c['ehOtS'](sleep,0x1e);const _0x32c35f=await this[_0x14ff1d(0x110)](),_0x174b0f=this[_0x14ff1d(0x151)]();if(!this['isEnabled']()){const _0x3669f3={};return _0x3669f3[_0x14ff1d(0x10d)]=[],_0x3669f3[_0x14ff1d(0xfc)]=[],_0x3669f3;}const _0x387aaa={};return _0x387aaa[_0x14ff1d(0x10d)]=_0x32c35f,_0x387aaa[_0x14ff1d(0xfc)]=_0x174b0f,_0x387aaa;}static[a80_0x4933f4(0x127)](_0x4d72db){const _0x234223=a80_0x4933f4,_0x43b3e2={};_0x43b3e2[_0x234223(0x100)]=function(_0x527403,_0xbf8f9c){return _0x527403+_0xbf8f9c;},_0x43b3e2['JKCwl']=_0x234223(0x138);const _0x5d9923=_0x43b3e2,_0x27c5de=_0x5d9923['whFVi'](_0x4d72db,_0x5d9923[_0x234223(0x18e)]);if(this[_0x234223(0xff)][_0x27c5de])return;performance[_0x234223(0x17b)](_0x27c5de),this[_0x234223(0xff)][_0x27c5de]=0x1;}static[a80_0x4933f4(0x18d)](_0x196886,_0x58649c=!![],_0x344963=null,_0x411e13={}){const _0x1fd59b=a80_0x4933f4,_0x5dabab={'YlxMD':function(_0x4d2ff2,_0x3ad6b8){return _0x4d2ff2+_0x3ad6b8;},'qoBAj':'-end','LucGe':function(_0xab279,_0x6dc453){return _0xab279+_0x6dc453;},'KQCga':'-start','LORWt':function(_0x4e8ae5,_0x45deb3){return _0x4e8ae5+_0x45deb3;},'ySLCw':function(_0x1882f2){return _0x1882f2();},'bteAY':function(_0x4daa0b){return _0x4daa0b();}};performance[_0x1fd59b(0x17b)](_0x5dabab['YlxMD'](_0x196886,_0x5dabab[_0x1fd59b(0x13d)])),performance[_0x1fd59b(0x15e)](_0x196886,_0x5dabab[_0x1fd59b(0x11e)](_0x196886,_0x5dabab['KQCga']),_0x5dabab[_0x1fd59b(0x145)](_0x196886,_0x5dabab[_0x1fd59b(0x13d)]));const _0x2ed4a8={};_0x2ed4a8[_0x1fd59b(0x191)]=_0x58649c,_0x2ed4a8['failure']=_0x344963,this['details'][_0x196886]=Object[_0x1fd59b(0x163)](_0x2ed4a8,Object['assign'](Object[_0x1fd59b(0x163)]({'worker':_0x5dabab[_0x1fd59b(0x15c)](getProcessId),'platform':global[_0x1fd59b(0x184)]&&global[_0x1fd59b(0x184)][_0x1fd59b(0x144)],'testName':_0x5dabab[_0x1fd59b(0x112)](getTestName)},_0x411e13),this[_0x1fd59b(0x196)][_0x196886]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x384a68=a81_0x5e78;(function(_0x4d20ba,_0x666889){const _0x2fbd46=a81_0x5e78,_0x4d4461=_0x4d20ba();while(!![]){try{const _0x1189c5=-parseInt(_0x2fbd46(0x9d))/0x1+parseInt(_0x2fbd46(0x9c))/0x2+parseInt(_0x2fbd46(0x92))/0x3+parseInt(_0x2fbd46(0x98))/0x4*(parseInt(_0x2fbd46(0x99))/0x5)+parseInt(_0x2fbd46(0xa4))/0x6*(parseInt(_0x2fbd46(0xa0))/0x7)+-parseInt(_0x2fbd46(0x9a))/0x8*(parseInt(_0x2fbd46(0xa6))/0x9)+parseInt(_0x2fbd46(0x9b))/0xa;if(_0x1189c5===_0x666889)break;else _0x4d4461['push'](_0x4d4461['shift']());}catch(_0x1ba92c){_0x4d4461['push'](_0x4d4461['shift']());}}}(a81_0x17ad,0x83be0));function a81_0x5e78(_0x314e87,_0x3bda3f){const _0x17ade3=a81_0x17ad();return a81_0x5e78=function(_0x5e7806,_0x208405){_0x5e7806=_0x5e7806-0x8f;let _0xe69396=_0x17ade3[_0x5e7806];return _0xe69396;},a81_0x5e78(_0x314e87,_0x3bda3f);}function a81_0x17ad(){const _0x14b92c=['9233pzxMei','browserstackTestName','getGlobal','./logger','132UWEIgS','threadId','603hEqYxV','worker_threads','DHhzz','toISOString','BROWSERSTACK_OBSERVABILITY_DEBUG','iNBIj','debug','getProcessId','280530ihLuda','SlyYo','pid','true','sleep','][\x20OBSERVABILITY\x20]\x20','20KsStKS','623715bSClwI','52616IbjzaK','7223410GOQTdj','822498wVGUQQ','899558nyHLrZ','./globals','JTAvN'];a81_0x17ad=function(){return _0x14b92c;};return a81_0x17ad();}const worker=require(a81_0x384a68(0xa7)),{fileLogger}=require(a81_0x384a68(0xa3)),{consoleHolder}=require('./test-observability/constants'),globals=require(a81_0x384a68(0x9e));exports[a81_0x384a68(0x91)]=()=>{const _0x34fc65=a81_0x384a68;return process[_0x34fc65(0x94)]+'-'+worker[_0x34fc65(0xa5)];},exports['getTestName']=()=>{const _0x27ca52=a81_0x384a68,_0x223ce9={};_0x223ce9['DHhzz']=_0x27ca52(0xa1);const _0x16b1e6=_0x223ce9;return globals[_0x27ca52(0xa2)](_0x16b1e6[_0x27ca52(0xa8)]);},exports[a81_0x384a68(0x96)]=(_0x2c7984=0x64)=>new Promise(_0x1719d8=>setTimeout(_0x1719d8,_0x2c7984)),exports[a81_0x384a68(0x90)]=_0x54f7e4=>{const _0x33ae7d=a81_0x384a68,_0x56079c={};_0x56079c[_0x33ae7d(0x93)]=function(_0xf0c4c8,_0x1b60c7){return _0xf0c4c8===_0x1b60c7;},_0x56079c[_0x33ae7d(0x8f)]=_0x33ae7d(0x95),_0x56079c['JTAvN']=function(_0x2dcbae,_0x5ce375){return _0x2dcbae===_0x5ce375;};const _0x29b4ef=_0x56079c;fileLogger[_0x33ae7d(0x90)]('['+new Date()[_0x33ae7d(0xa9)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x54f7e4),(_0x29b4ef[_0x33ae7d(0x93)](process['env'][_0x33ae7d(0xaa)],_0x29b4ef['iNBIj'])||_0x29b4ef[_0x33ae7d(0x9f)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x33ae7d(0xa9)]()+_0x33ae7d(0x97)+_0x54f7e4+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a82_0x271e6e=a82_0x3d37;(function(_0x273784,_0x5cfd13){const _0x35f72f=a82_0x3d37,_0x18bd38=_0x273784();while(!![]){try{const _0x349cf8=parseInt(_0x35f72f(0x7d))/0x1+-parseInt(_0x35f72f(0x7b))/0x2+parseInt(_0x35f72f(0x7f))/0x3+-parseInt(_0x35f72f(0x9b))/0x4*(-parseInt(_0x35f72f(0x81))/0x5)+parseInt(_0x35f72f(0x7a))/0x6+parseInt(_0x35f72f(0xa0))/0x7*(parseInt(_0x35f72f(0x98))/0x8)+parseInt(_0x35f72f(0x91))/0x9*(-parseInt(_0x35f72f(0x82))/0xa);if(_0x349cf8===_0x5cfd13)break;else _0x18bd38['push'](_0x18bd38['shift']());}catch(_0x250eb1){_0x18bd38['push'](_0x18bd38['shift']());}}}(a82_0x10c7,0xebce3));const http=require('http'),https=require(a82_0x271e6e(0x93)),monkeypatch=require(a82_0x271e6e(0xa2));function a82_0x10c7(){const _0x108c0d=['3517616MUPuOm','prototype','Jqmib','25556QmkEqw','status_code','removeListener','restore','WcPAs','7eKFQhn','socket','monkeypatch','mYxnI','WzUNW','statusCode','hostname','error','headers','apply','WBvUb','assign','BbjBx','2577144QrWxIX','3853612CiJkPd','method','1433362yCxdyt','once','4701129WGGBqy','vYtdL','105BSXvcE','50tFcxbJ','path','object','oNnwT','host','pathname','slice','fAGwa','hkHeJ','YjQmK','request','EsjKE','unpatch','call','exports','2000043EsPPYT','url','https','now','response','spy','SewKz'];a82_0x10c7=function(){return _0x108c0d;};return a82_0x10c7();}function spy(_0x1df3ab){const _0x57a702=a82_0x271e6e,_0x3387a2={'YjQmK':function(_0x197539,_0x14f42d){return _0x197539-_0x14f42d;},'BbjBx':function(_0x5b7725,_0x5a0b33,_0x9b05ba){return _0x5b7725(_0x5a0b33,_0x9b05ba);},'SewKz':_0x57a702(0xa7),'JZHLm':function(_0x24e319,..._0x592391){return _0x24e319(..._0x592391);},'Jqmib':function(_0x3ea5f9,_0x345c91){return _0x3ea5f9 instanceof _0x345c91;},'hkHeJ':function(_0x38225f,_0x26723a){return _0x38225f===_0x26723a;},'UWZwU':_0x57a702(0x84),'fAGwa':function(_0x49cbf3,_0x45f741,_0x5f0ce8){return _0x49cbf3(_0x45f741,_0x5f0ce8);},'oNnwT':_0x57a702(0x95),'WzUNW':_0x57a702(0xa1),'mYxnI':function(_0x255942,_0x17abf8,_0x4c6002,_0x5a4119){return _0x255942(_0x17abf8,_0x4c6002,_0x5a4119);},'vYtdL':'end','Zjocv':_0x57a702(0x8c)},_0x4b5a89=function(){const _0x143639=_0x57a702,_0x3d0a9b={'WBvUb':function(_0x2647f7,_0x5ea665){const _0x36f39d=a82_0x3d37;return _0x3387a2[_0x36f39d(0x9a)](_0x2647f7,_0x5ea665);},'WcPAs':function(_0x3588bb,_0x1f6633){const _0x2db077=a82_0x3d37;return _0x3387a2[_0x2db077(0x8a)](_0x3588bb,_0x1f6633);},'EsjKE':_0x3387a2['UWZwU'],'FUWBT':function(_0x406b68,_0x357a56,_0x3d3916){const _0x405de7=a82_0x3d37;return _0x3387a2[_0x405de7(0x89)](_0x406b68,_0x357a56,_0x3d3916);}},_0x2fca28=arguments[0x0],_0x178d86=Array[_0x143639(0x99)][_0x143639(0x88)][_0x143639(0x8f)](arguments,0x1),_0x243114=_0x2fca28[_0x143639(0x76)](this,_0x178d86);let _0x31e481=Date['now'](),_0x378ea6;const _0x93ef98={};_0x178d86['forEach'](_0x394817=>{const _0x5e626c=_0x143639;if(_0x3d0a9b[_0x5e626c(0x77)](_0x394817,URL)){const _0x42d965={};_0x42d965[_0x5e626c(0x92)]=_0x394817,Object[_0x5e626c(0x78)](_0x93ef98,_0x42d965);}else _0x3d0a9b[_0x5e626c(0x9f)](typeof _0x394817,_0x3d0a9b[_0x5e626c(0x8d)])&&Object[_0x5e626c(0x78)](_0x93ef98,_0x394817);});const _0x1395ce=_0x5a2139=>{const _0x243b73=_0x143639,_0x138d9a={};_0x138d9a[_0x243b73(0x86)]=_0x93ef98[_0x243b73(0x86)]||_0x93ef98[_0x243b73(0xa6)]||_0x93ef98[_0x243b73(0x92)]&&(_0x93ef98[_0x243b73(0x92)][_0x243b73(0x86)]||_0x93ef98[_0x243b73(0x92)][_0x243b73(0xa6)]),_0x138d9a[_0x243b73(0x83)]=_0x93ef98[_0x243b73(0x83)]||_0x93ef98['url']&&_0x93ef98[_0x243b73(0x92)][_0x243b73(0x87)],_0x138d9a[_0x243b73(0x7c)]=_0x93ef98['method'],_0x138d9a[_0x243b73(0xa8)]=_0x93ef98[_0x243b73(0xa8)],_0x3d0a9b['FUWBT'](_0x1df3ab,_0x5a2139,_0x138d9a);};return _0x243114[_0x143639(0x7e)](_0x3387a2[_0x143639(0x85)],_0x43fe97=>{const _0x3bc0b9=_0x143639,_0x21c042=_0x3387a2[_0x3bc0b9(0x8b)](Date[_0x3bc0b9(0x94)](),_0x31e481),_0x57690f={};_0x57690f[_0x3bc0b9(0xa6)]=_0x93ef98[_0x3bc0b9(0x86)]||_0x93ef98[_0x3bc0b9(0xa6)]||_0x93ef98[_0x3bc0b9(0x92)]&&(_0x93ef98[_0x3bc0b9(0x92)][_0x3bc0b9(0x86)]||_0x93ef98[_0x3bc0b9(0x92)]['hostname']),_0x57690f[_0x3bc0b9(0x83)]=_0x93ef98[_0x3bc0b9(0x83)]||_0x93ef98['url']&&_0x93ef98[_0x3bc0b9(0x92)][_0x3bc0b9(0x87)],_0x57690f[_0x3bc0b9(0x7c)]=_0x93ef98[_0x3bc0b9(0x7c)],_0x57690f[_0x3bc0b9(0xa8)]=_0x93ef98[_0x3bc0b9(0xa8)],_0x57690f[_0x3bc0b9(0x9c)]=_0x43fe97[_0x3bc0b9(0xa5)],_0x57690f['duration_ms']=_0x21c042,_0x3387a2[_0x3bc0b9(0x79)](_0x1df3ab,null,_0x57690f),_0x378ea6[_0x3bc0b9(0x9d)](_0x3387a2[_0x3bc0b9(0x97)],_0x1395ce);}),_0x243114['on'](_0x3387a2[_0x143639(0xa4)],_0x443f9e=>{const _0x1dce54=_0x143639;_0x378ea6=_0x443f9e,_0x443f9e['once'](_0x3387a2[_0x1dce54(0x97)],_0x1395ce);}),_0x3387a2[_0x143639(0xa3)](monkeypatch,_0x243114,_0x3387a2[_0x143639(0x80)],(_0x31302a,..._0x2c42c0)=>{const _0x1da962=_0x143639;_0x31e481=Date[_0x1da962(0x94)](),_0x3387a2['JZHLm'](_0x31302a,..._0x2c42c0);}),_0x243114;};_0x3387a2['mYxnI'](monkeypatch,http,_0x3387a2['Zjocv'],_0x4b5a89),_0x3387a2['mYxnI'](monkeypatch,https,_0x3387a2['Zjocv'],_0x4b5a89);}function restore(){const _0x43537b=a82_0x271e6e;http[_0x43537b(0x8c)][_0x43537b(0x8e)](),https[_0x43537b(0x8c)]['unpatch']();}const a82_0x13a021={};function a82_0x3d37(_0xa8a5,_0x31d604){const _0x10c7b5=a82_0x10c7();return a82_0x3d37=function(_0x3d3748,_0x5f0920){_0x3d3748=_0x3d3748-0x76;let _0x425e8a=_0x10c7b5[_0x3d3748];return _0x425e8a;},a82_0x3d37(_0xa8a5,_0x31d604);}a82_0x13a021[a82_0x271e6e(0x96)]=spy,a82_0x13a021[a82_0x271e6e(0x9e)]=restore,module[a82_0x271e6e(0x90)]=a82_0x13a021;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x88dc(_0x4cd909,_0x21e285){const _0x486a5a=a83_0x486a();return a83_0x88dc=function(_0x88dcd9,_0x284edf){_0x88dcd9=_0x88dcd9-0x18b;let _0x4cf0f1=_0x486a5a[_0x88dcd9];return _0x4cf0f1;},a83_0x88dc(_0x4cd909,_0x21e285);}function a83_0x486a(){const _0x19b937=['http','prototype','68272BZivpI','1506bPsqOi','haNIC','keepAlive','10NhoSUr','./performance/performance-tester','4171707LLUtDW','zQznG','./performance/constants','call','KEEP_ALIVE','417732uETebB','whenM','globalAgent','7415UzytvU','LRzqz','exports','https','1254783pbyMJa','agent','measureWrapper','keepAliveMsecs','Agent','1261732dnatlL','Hqdvk','protocol','hasOwnProperty','228062ZimIyN','ezeHP','315dpsqyK','request','rmhjT'];a83_0x486a=function(){return _0x19b937;};return a83_0x486a();}const a83_0x35a51d=a83_0x88dc;(function(_0x72f833,_0x44f6d9){const _0x468afe=a83_0x88dc,_0x182316=_0x72f833();while(!![]){try{const _0xc903ee=-parseInt(_0x468afe(0x1a7))/0x1+parseInt(_0x468afe(0x195))/0x2+parseInt(_0x468afe(0x18c))/0x3+-parseInt(_0x468afe(0x191))/0x4+parseInt(_0x468afe(0x1aa))/0x5*(-parseInt(_0x468afe(0x19d))/0x6)+-parseInt(_0x468afe(0x197))/0x7*(-parseInt(_0x468afe(0x19c))/0x8)+parseInt(_0x468afe(0x1a2))/0x9*(parseInt(_0x468afe(0x1a0))/0xa);if(_0xc903ee===_0x44f6d9)break;else _0x182316['push'](_0x182316['shift']());}catch(_0x45171e){_0x182316['push'](_0x182316['shift']());}}}(a83_0x486a,0x4300f));const PerformanceTester=require(a83_0x35a51d(0x1a1)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x35a51d(0x1a4));module[a83_0x35a51d(0x1ac)]=PerformanceTester[a83_0x35a51d(0x18e)](PerformanceEvents[a83_0x35a51d(0x1a6)],function(){const _0x1bb78f=a83_0x35a51d,_0x4e89ce={'iNRPX':function(_0x481ff5,_0x5ef1bf){return _0x481ff5===_0x5ef1bf;},'ezeHP':'https:','LRzqz':_0x1bb78f(0x18d),'rmhjT':function(_0x292723,_0x4a6ffe,_0x39c832){return _0x292723(_0x4a6ffe,_0x39c832);},'LiAym':function(_0x4b0c9f,_0x4739a3,_0x888dd7){return _0x4b0c9f(_0x4739a3,_0x888dd7);},'whenM':function(_0x1984aa,_0x5341fb){return _0x1984aa(_0x5341fb);},'zQznG':_0x1bb78f(0x19a),'haNIC':_0x1bb78f(0x18b),'Hqdvk':function(_0x1b4c1d,_0x35f735){return _0x1b4c1d*_0x35f735;},'mKYpv':_0x1bb78f(0x19f)},_0x1cbe2e=_0x4e89ce['whenM'](require,_0x4e89ce[_0x1bb78f(0x1a3)]),_0x2d2a0f=_0x4e89ce[_0x1bb78f(0x1a8)](require,_0x4e89ce[_0x1bb78f(0x19e)]),_0x5633f1=_0x4e89ce[_0x1bb78f(0x192)](0x1e,0x3e8);if(_0x1cbe2e['globalAgent']&&Object[_0x1bb78f(0x19b)][_0x1bb78f(0x194)][_0x1bb78f(0x1a5)](_0x1cbe2e[_0x1bb78f(0x1a9)],_0x4e89ce['mKYpv']))_0x1cbe2e['globalAgent'][_0x1bb78f(0x19f)]=!![],_0x2d2a0f[_0x1bb78f(0x1a9)][_0x1bb78f(0x19f)]=!![],_0x1cbe2e['globalAgent']['keepAliveMsecs']=_0x5633f1,_0x2d2a0f[_0x1bb78f(0x1a9)][_0x1bb78f(0x18f)]=_0x5633f1;else{const _0x5756ff={};_0x5756ff[_0x1bb78f(0x19f)]=!![],_0x5756ff[_0x1bb78f(0x18f)]=_0x5633f1;const _0x5f2e10=new _0x1cbe2e[(_0x1bb78f(0x190))](_0x5756ff),_0x5e2457={};_0x5e2457[_0x1bb78f(0x19f)]=!![],_0x5e2457[_0x1bb78f(0x18f)]=_0x5633f1;const _0x469db2=new _0x2d2a0f['Agent'](_0x5e2457),_0x7e6e12=_0x1cbe2e[_0x1bb78f(0x198)],_0x556043=_0x2d2a0f[_0x1bb78f(0x198)];_0x1cbe2e[_0x1bb78f(0x198)]=function(_0x392051,_0x3cab66){const _0x55bcb3=_0x1bb78f;if(_0x4e89ce['iNRPX'](_0x392051[_0x55bcb3(0x193)],_0x4e89ce[_0x55bcb3(0x196)]))return _0x392051[_0x4e89ce[_0x55bcb3(0x1ab)]]=_0x469db2,_0x4e89ce[_0x55bcb3(0x199)](_0x556043,_0x392051,_0x3cab66);return _0x392051[_0x4e89ce[_0x55bcb3(0x1ab)]]=_0x5f2e10,_0x4e89ce['LiAym'](_0x7e6e12,_0x392051,_0x3cab66);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84_0x53240b=a84_0x2204;(function(_0x15e689,_0x586eda){var _0x3a290d=a84_0x2204,_0x32c287=_0x15e689();while(!![]){try{var _0x5d568f=parseInt(_0x3a290d(0xa2))/0x1*(-parseInt(_0x3a290d(0x99))/0x2)+-parseInt(_0x3a290d(0xa5))/0x3+-parseInt(_0x3a290d(0x91))/0x4*(-parseInt(_0x3a290d(0x8f))/0x5)+-parseInt(_0x3a290d(0xa3))/0x6*(parseInt(_0x3a290d(0x9f))/0x7)+-parseInt(_0x3a290d(0x9d))/0x8*(parseInt(_0x3a290d(0xa6))/0x9)+-parseInt(_0x3a290d(0x9b))/0xa*(-parseInt(_0x3a290d(0x9a))/0xb)+parseInt(_0x3a290d(0x93))/0xc;if(_0x5d568f===_0x586eda)break;else _0x32c287['push'](_0x32c287['shift']());}catch(_0x5878d5){_0x32c287['push'](_0x32c287['shift']());}}}(a84_0x3699,0x8d0bb));function a84_0x2204(_0x440f81,_0x3abe57){var _0x3699a9=a84_0x3699();return a84_0x2204=function(_0x220456,_0x5de4dd){_0x220456=_0x220456-0x8f;var _0x451f12=_0x3699a9[_0x220456];return _0x451f12;},a84_0x2204(_0x440f81,_0x3abe57);}function a84_0x3699(){var _0x437d9d=['546768cleEIB','18svMxmu','MOCHA','jest','4542035BpYTxC','api/v1/batch','4FDXqio','api/v1/event','3968568dltyaM','cucumber','Playwright','mocha','exports','JEST','17498XomWDW','187TsumnL','647960MzVSWh','CODECEPT','2474392yTpvqn','assign','7QTCDRW','upload-attachments','https://upload-observability.browserstack.com','88sqxDla','1152984mLSngp','codeceptjs-cucumber'];a84_0x3699=function(){return _0x437d9d;};return a84_0x3699();}var a84_0x37e0da={};a84_0x37e0da['PLAYWRIGHT']=a84_0x53240b(0x95),a84_0x37e0da[a84_0x53240b(0xa7)]=a84_0x53240b(0x96),a84_0x37e0da[a84_0x53240b(0x9c)]='codeceptjs',a84_0x37e0da['CODECEPT_CUCUMBER']=a84_0x53240b(0xa4),a84_0x37e0da[a84_0x53240b(0x98)]=a84_0x53240b(0xa8),a84_0x37e0da['CUCUMBER']=a84_0x53240b(0x94),module[a84_0x53240b(0x97)]={'consoleHolder':Object[a84_0x53240b(0x9e)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','OBSERVABILITY_UPLOAD_API_URL':a84_0x53240b(0xa1),'EVENT_ENDPOINT':a84_0x53240b(0x92),'BATCH_ENDPOINT':a84_0x53240b(0x90),'SCREENSHOT_ENDPOINT':'api/v1/screenshots','UPLOAD_ATTACHMENT_ENDPOINT':a84_0x53240b(0xa0),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a84_0x37e0da};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x105f8b=a85_0x36ab;function a85_0x36ab(_0x3768e2,_0xe2c570){const _0x51228b=a85_0x5122();return a85_0x36ab=function(_0x36abec,_0x3c7331){_0x36abec=_0x36abec-0x6f;let _0x517e34=_0x51228b[_0x36abec];return _0x517e34;},a85_0x36ab(_0x3768e2,_0xe2c570);}(function(_0x557ca3,_0x207247){const _0x5f0546=a85_0x36ab,_0x17f4ca=_0x557ca3();while(!![]){try{const _0x4bc2c3=-parseInt(_0x5f0546(0xd6))/0x1*(parseInt(_0x5f0546(0x7f))/0x2)+parseInt(_0x5f0546(0x76))/0x3+parseInt(_0x5f0546(0xa5))/0x4*(-parseInt(_0x5f0546(0xc3))/0x5)+-parseInt(_0x5f0546(0x9d))/0x6*(parseInt(_0x5f0546(0xd0))/0x7)+parseInt(_0x5f0546(0xba))/0x8*(parseInt(_0x5f0546(0xbc))/0x9)+parseInt(_0x5f0546(0x88))/0xa*(-parseInt(_0x5f0546(0xc6))/0xb)+parseInt(_0x5f0546(0x7e))/0xc*(parseInt(_0x5f0546(0xc2))/0xd);if(_0x4bc2c3===_0x207247)break;else _0x17f4ca['push'](_0x17f4ca['shift']());}catch(_0x5510e0){_0x17f4ca['push'](_0x17f4ca['shift']());}}}(a85_0x5122,0xdead5));function a85_0x5122(){const _0x1e461f=['then','username','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','BmctX','format','getFramework','function','defineProperty','2156930lStvTH','initialize','\x20--\x20','key','Zvdrf','stringify','.\x20Error\x20-\x20','length','CREDENTIALS_FOR_CRASH_REPORTING','Error\x20in\x20executing\x20','depth',',\x20PID\x20-\x20','getPerformance','WMAlm','POST','forEach','oTVfh','frameworkVersion','Finished\x20::\x20','env','setCredentials','6jJopKr','exports','UTcvV','accessKey','frameworkDetails','/api/v1/analytics','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','setConfigDetails','2497788nWRjej','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','keys','constructor','gFTiA','qqHTH','includes','parse','YMbPK','Started\x20::\x20','CrashReporter','gUhud','getOwnPropertyNames','rrkwZ','captureError','setFrameworkDetails','application/json','USER_CONFIG_FOR_REPORTING','X-BSTACK-TESTOPS',',\x20Argument\x20-\x20','toString','1287080pJxINj','timerify','45PBSsGK','wzXHI','Content-Type','QeueB','BzcQX','AGLSM','13fIfIDv','10jqjHyy','credentials','NhWNU','88jaPOpL','.\x20Args\x20-\x20','object','vEesv','password','recursivelyDeletePIIKeysFromObject','BROWSERSTACK_O11Y_PERF_MEASUREMENT','kIXGa','inspect','BeQpX','3718050BQyIML','WUfMx','UcYzo','wUzhj','filterPII','prototype','347222YmxNhs','XCTeF','o11yErrorHandler','jxMLM','wRhWz','stack','headers','bcbSq','gZJXh','getCredentials','user','setAllDetails','hTohN','MilzH','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1474641JKiaPY','name','catch','RGDsm','frameworkName','getConfig','userConfig','SXlCj','45793740qGONFQ','4QcqKoc'];a85_0x5122=function(){return _0x1e461f;};return a85_0x5122();}const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x1f0275,_0x4baccd='',_0x260848=[''],_0x2e0082=![])=>{const _0x48b2be={'BmctX':function(_0x49bce3,_0x3d8974){return _0x49bce3(_0x3d8974);},'vEesv':function(_0x415603,_0x393754,_0x4d5412){return _0x415603(_0x393754,_0x4d5412);},'QaUWm':function(_0x523e47,_0x468690){return _0x523e47(_0x468690);},'qqHTH':function(_0x3b5e88,_0x22bd3e){return _0x3b5e88 instanceof _0x22bd3e;},'QeueB':function(_0x1717bb,_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69){return _0x1717bb(_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69);}};return function(..._0xc9ba6d){const _0x190fdc=a85_0x36ab;try{let _0x5d7162=_0x1f0275;process['env'][_0x190fdc(0xcc)]&&(_0x5d7162=PerformanceTester[_0x190fdc(0x94)]()[_0x190fdc(0xbb)](_0x5d7162));_0x2e0082&&_0x48b2be[_0x190fdc(0x83)](trace,_0x190fdc(0xae)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be[_0x190fdc(0xc9)](nestedKeyValue,arguments[0x0],_0x260848));const _0x3a13f1=_0x5d7162['apply'](null,arguments);_0x2e0082&&_0x48b2be['QaUWm'](trace,_0x190fdc(0x9a)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be['vEesv'](nestedKeyValue,arguments[0x0],_0x260848));if(_0x48b2be[_0x190fdc(0xaa)](_0x3a13f1,Promise))return _0x3a13f1['catch'](_0x30c090=>processError(_0x30c090,_0x1f0275,_0xc9ba6d,_0x4baccd));return _0x3a13f1;}catch(_0x48b29d){_0x48b2be[_0x190fdc(0xbf)](processError,_0x48b29d,_0x1f0275,_0xc9ba6d,_0x4baccd);}};},o11yClassErrorHandler=(_0x6b529a,_0x3b8fde,_0x3aef9a='')=>{const _0x57f738=a85_0x36ab,_0x455392={'bcbSq':function(_0x5732dd,_0x2b8ab0){return _0x5732dd instanceof _0x2b8ab0;},'VvkOj':function(_0xe32f02,_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7){return _0xe32f02(_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7);},'MilzH':function(_0x4bc1d2,_0x3aaea6){return _0x4bc1d2===_0x3aaea6;},'pWGkV':_0x57f738(0x86),'gUhud':function(_0x470e20,_0x1eb316){return _0x470e20!==_0x1eb316;},'AGLSM':_0x57f738(0xa8),'WUfMx':function(_0x17a139,_0x279a20){return _0x17a139<_0x279a20;}},_0xda1696=_0x6b529a[_0x57f738(0xd5)];if(_0x455392[_0x57f738(0xd1)](Object[_0x57f738(0xb1)](_0xda1696)[_0x57f738(0x8f)],0x2))return _0x6b529a;return Object['getOwnPropertyNames'](_0xda1696)[_0x57f738(0x97)](_0x3d28ff=>{const _0x384a61=_0x57f738,_0x37194c={'UcYzo':function(_0x3d3fe3,_0x37a5e5){const _0x300255=a85_0x36ab;return _0x455392[_0x300255(0xdd)](_0x3d3fe3,_0x37a5e5);},'RGDsm':function(_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3){return _0x455392['VvkOj'](_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3);}};if(!(_0x3b8fde&&_0x3b8fde[_0x384a61(0xab)](_0x3d28ff)))return;const _0x35b2f3=_0xda1696[_0x3d28ff];_0x455392[_0x384a61(0x74)](typeof _0x35b2f3,_0x455392['pWGkV'])&&_0x455392[_0x384a61(0xb0)](_0x3d28ff,_0x455392[_0x384a61(0xc1)])&&Object[_0x384a61(0x87)](_0xda1696,_0x3d28ff,{'writable':!![],'value':function(..._0x4e7027){const _0x243c9c=_0x384a61;try{const _0x5bcf2a=(process['env'][_0x243c9c(0xcc)]?PerformanceTester[_0x243c9c(0x94)]()[_0x243c9c(0xbb)](_0x35b2f3):_0x35b2f3)['call'](this,..._0x4e7027);if(_0x37194c[_0x243c9c(0xd2)](_0x5bcf2a,Promise))return _0x5bcf2a[_0x243c9c(0x78)](_0x5700e3=>processError(_0x5700e3,_0x35b2f3,_0x4e7027,_0x3aef9a));return _0x5bcf2a;}catch(_0x356654){_0x37194c[_0x243c9c(0x79)](processError,_0x356654,_0x35b2f3,_0x4e7027,_0x3aef9a);}}});}),_0x6b529a;};function processError(_0x53ec3e,_0x1af543,_0x5afe58,_0x2684b1){const _0x3c063a=a85_0x36ab,_0x1d2a4d={'rrkwZ':function(_0x275f22,_0x47ad5b){return _0x275f22(_0x47ad5b);}};_0x1d2a4d[_0x3c063a(0xb2)](debug,'Error\x20in\x20executing\x20'+_0x1af543['name']+_0x3c063a(0x8a)+_0x2684b1+_0x3c063a(0x8e)+util[_0x3c063a(0x84)](_0x53ec3e)+'.\x20Args\x20-\x20'+_0x5afe58+'.'),PerformanceTester[_0x3c063a(0xb3)](_0x53ec3e);let _0x499ebe;try{_0x499ebe=JSON['stringify'](_0x5afe58);}catch(_0x5bb98d){const _0x158610={};_0x158610[_0x3c063a(0x92)]=0x2,_0x499ebe=util[_0x3c063a(0xce)](_0x5afe58,_0x158610);}CrashReporter['uploadCrashReport'](_0x3c063a(0x91)+_0x1af543[_0x3c063a(0x77)]+_0x3c063a(0x8a)+_0x2684b1+'.\x20Error\x20-\x20'+_0x53ec3e+_0x3c063a(0xc7)+_0x499ebe+'.',_0x53ec3e&&_0x53ec3e[_0x3c063a(0xdb)]);}class CrashReporter{static [a85_0x105f8b(0x7c)]={};static [a85_0x105f8b(0xc4)];static [a85_0x105f8b(0xa1)]={};static[a85_0x105f8b(0x89)](_0x14ff41,_0x16eac5,_0x82780c=null){const _0x279735=a85_0x105f8b,_0x120d71={'wRhWz':function(_0x29256f,_0xbb3cfd){return _0x29256f(_0xbb3cfd);},'kIXGa':function(_0x2b8a55,_0x54c1f9){return _0x2b8a55(_0x54c1f9);},'WMAlm':function(_0x1cc3bf,_0x13f90e){return _0x1cc3bf(_0x13f90e);}},_0x539a57=_0x14ff41[_0x279735(0x7a)],_0xe44d4b=_0x14ff41['frameworkVersion'];!_0x82780c&&(_0x82780c=_0x120d71[_0x279735(0xda)](getBrowserStackConfig,_0x539a57));!_0xe44d4b&&_0x120d71[_0x279735(0xcd)](getFrameworkVersion,_0x539a57);const _0x175770={};_0x175770[_0x279735(0x7a)]=_0x539a57,_0x175770['frameworkVersion']=_0xe44d4b,this[_0x279735(0x72)](_0x175770,_0x16eac5,_0x120d71[_0x279735(0x95)](getUserCredentials,_0x82780c));}static[a85_0x105f8b(0x9c)](_0x53f608,_0x47c99f){const _0x2508d5=a85_0x105f8b,_0x3db5a6={};_0x3db5a6[_0x2508d5(0x81)]=_0x53f608,_0x3db5a6[_0x2508d5(0xa0)]=_0x47c99f,this[_0x2508d5(0xc4)]=_0x3db5a6,process['env'][_0x2508d5(0x90)]=JSON[_0x2508d5(0x8d)](this[_0x2508d5(0xc4)]);}static['getCredentials'](){const _0x2cb1bb=a85_0x105f8b,_0x5c92d8={'gZJXh':function(_0x252900,_0x5045a4){return _0x252900(_0x5045a4);}};if(!this[_0x2cb1bb(0xc4)]&&process['env']['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x2cb1bb(0xc4)]=JSON[_0x2cb1bb(0xac)](process[_0x2cb1bb(0x9b)][_0x2cb1bb(0x90)]);}catch(_0x9d648c){_0x5c92d8[_0x2cb1bb(0x6f)](debug,_0x2cb1bb(0x75)+_0x9d648c[_0x2cb1bb(0xb9)]());}return this[_0x2cb1bb(0xc4)];}static[a85_0x105f8b(0xa4)](_0x174d33){const _0x236b8e=a85_0x105f8b;this['userConfig']=this[_0x236b8e(0xd4)](_0x174d33),process[_0x236b8e(0x9b)][_0x236b8e(0xb6)]=JSON['stringify'](this[_0x236b8e(0x7c)]);}static[a85_0x105f8b(0x7b)](){const _0x16837b=a85_0x105f8b,_0x213f4f={'NhWNU':function(_0x2ee5e9,_0x104b58){return _0x2ee5e9===_0x104b58;},'wUzhj':function(_0x4cecb4,_0x1e4941){return _0x4cecb4(_0x1e4941);}};if(_0x213f4f[_0x16837b(0xc5)](Object[_0x16837b(0xa7)](this['userConfig'])[_0x16837b(0x8f)],0x0)&&process['env'][_0x16837b(0xb6)])try{this['userConfig']=JSON[_0x16837b(0xac)](process[_0x16837b(0x9b)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x5704c3){_0x213f4f[_0x16837b(0xd3)](debug,_0x16837b(0xa6)+_0x5704c3['toString']()),this[_0x16837b(0x7c)]={};}return this[_0x16837b(0x7c)];}static[a85_0x105f8b(0xb4)](_0x5ed9d4){const _0x16c9b7=a85_0x105f8b;this[_0x16c9b7(0xa1)]=_0x5ed9d4,process['env'][_0x16c9b7(0xa3)]=JSON[_0x16c9b7(0x8d)](this['frameworkDetails']);}static[a85_0x105f8b(0x85)](){const _0x452bbd=a85_0x105f8b,_0x11601d={'YMbPK':function(_0x4fc952,_0x4ebfa6){return _0x4fc952===_0x4ebfa6;},'SXlCj':function(_0x3f798b,_0x57516a){return _0x3f798b(_0x57516a);}};if(_0x11601d[_0x452bbd(0xad)](Object['keys'](this['frameworkDetails'])['length'],0x0)&&process[_0x452bbd(0x9b)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x452bbd(0xa1)]=JSON[_0x452bbd(0xac)](process[_0x452bbd(0x9b)][_0x452bbd(0xa3)]);}catch(_0x478e63){_0x11601d[_0x452bbd(0x7d)](debug,_0x452bbd(0x75)+_0x478e63[_0x452bbd(0xb9)]());}return this[_0x452bbd(0xa1)];}static[a85_0x105f8b(0x72)](_0x5c9601,_0x4fcc6a,_0x3ced8d){const _0xba0c81=a85_0x105f8b;_0x5c9601&&this[_0xba0c81(0xb4)](_0x5c9601),_0x4fcc6a&&this[_0xba0c81(0xa4)](_0x4fcc6a),_0x3ced8d&&this[_0xba0c81(0x9c)](_0x3ced8d['username'],_0x3ced8d[_0xba0c81(0xa0)]);}static async['uploadCrashReport'](_0x10d993,_0x3560a9){const _0x587a6d=a85_0x105f8b,_0x4b229f={'hTohN':function(_0x2c9322,_0x25e572){return _0x2c9322(_0x25e572);},'KqfhZ':_0x587a6d(0x82),'gFTiA':function(_0x43b80d){return _0x43b80d();},'pEBZa':_0x587a6d(0xa2),'eHHQf':_0x587a6d(0xb5),'aWLfN':'true','dbEUH':function(_0x4499c7,_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f){return _0x4499c7(_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f);},'oTVfh':_0x587a6d(0x96)};this[_0x587a6d(0x70)]();if(!this[_0x587a6d(0xc4)])return _0x4b229f['hTohN'](debug,_0x4b229f['KqfhZ']);this[_0x587a6d(0x7b)](),this['getFramework']();const _0x171f25={'hashed_id':process[_0x587a6d(0x9b)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x4b229f[_0x587a6d(0xa9)](getAgentVersion),'frameworkName':this[_0x587a6d(0xa1)][_0x587a6d(0x7a)],'frameworkVersion':this[_0x587a6d(0xa1)][_0x587a6d(0x99)]},'exception':{'error':_0x10d993['toString'](),'stackTrace':_0x3560a9},'config':this['userConfig']},_0x33d31d=_0x4b229f['pEBZa'],_0x1d8e98={};_0x1d8e98['username']=this[_0x587a6d(0xc4)][_0x587a6d(0x81)],_0x1d8e98[_0x587a6d(0xca)]=this[_0x587a6d(0xc4)][_0x587a6d(0xa0)];const _0xc51f7f={};_0xc51f7f[_0x587a6d(0xbe)]=_0x4b229f['eHHQf'],_0xc51f7f[_0x587a6d(0xb7)]=_0x4b229f['aWLfN'];const _0x52bbdb={};_0x52bbdb['auth']=_0x1d8e98,_0x52bbdb[_0x587a6d(0xdc)]=_0xc51f7f;const _0x490d0d=_0x52bbdb;_0x4b229f['dbEUH'](nodeRequest,_0x4b229f[_0x587a6d(0x98)],_0x33d31d,_0x171f25,_0x490d0d,![])[_0x587a6d(0x80)](_0x176d58=>{const _0x43233e=_0x587a6d;_0x4b229f[_0x43233e(0x73)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x43233e(0x8d)](_0x176d58));})[_0x587a6d(0x78)](_0x5f232e=>{const _0x2827cb=_0x587a6d;_0x4b229f[_0x2827cb(0x73)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x2827cb(0x84)](_0x5f232e));});}static['recursivelyDeletePIIKeysFromObject'](_0x19c396){const _0x234a7c=a85_0x105f8b,_0x409ab2={};_0x409ab2[_0x234a7c(0x9f)]=_0x234a7c(0x71),_0x409ab2[_0x234a7c(0xcf)]='username',_0x409ab2[_0x234a7c(0xbd)]=_0x234a7c(0x8b),_0x409ab2['BzcQX']=_0x234a7c(0xa0),_0x409ab2['Zvdrf']=_0x234a7c(0xca),_0x409ab2[_0x234a7c(0xd7)]=function(_0x507cdf,_0x52bbf2){return _0x507cdf===_0x52bbf2;},_0x409ab2[_0x234a7c(0xd9)]=_0x234a7c(0xc8);const _0x5bbe7d=_0x409ab2;if(!_0x19c396)return;const _0x3d458a=[_0x5bbe7d[_0x234a7c(0x9f)],_0x5bbe7d[_0x234a7c(0xcf)],_0x5bbe7d[_0x234a7c(0xbd)],_0x5bbe7d[_0x234a7c(0xc0)],_0x5bbe7d[_0x234a7c(0x8c)]];for(const _0x226efd in _0x19c396){if(_0x3d458a['includes'](_0x226efd['toLowerCase']()))delete _0x19c396[_0x226efd];else _0x5bbe7d[_0x234a7c(0xd7)](typeof _0x19c396[_0x226efd],_0x5bbe7d[_0x234a7c(0xd9)])&&this[_0x234a7c(0xcb)](_0x19c396[_0x226efd]);}}static['filterPII'](_0xfd64b2){const _0xc25b13=a85_0x105f8b,_0x1069fd=JSON[_0xc25b13(0xac)](JSON[_0xc25b13(0x8d)](_0xfd64b2));return this[_0xc25b13(0xcb)](_0x1069fd),_0x1069fd;}}const a85_0x55fcba={};a85_0x55fcba[a85_0x105f8b(0xd8)]=o11yErrorHandler,a85_0x55fcba['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x55fcba[a85_0x105f8b(0xaf)]=CrashReporter,module[a85_0x105f8b(0x9e)]=a85_0x55fcba;
|
|
1
|
+
const a85_0x4f3d68=a85_0xddce;(function(_0x433ffe,_0x100333){const _0x27fd3b=a85_0xddce,_0x17a36d=_0x433ffe();while(!![]){try{const _0x3661ed=-parseInt(_0x27fd3b(0x1c1))/0x1*(-parseInt(_0x27fd3b(0x209))/0x2)+-parseInt(_0x27fd3b(0x1d5))/0x3+-parseInt(_0x27fd3b(0x1d9))/0x4*(parseInt(_0x27fd3b(0x1bd))/0x5)+-parseInt(_0x27fd3b(0x21e))/0x6+parseInt(_0x27fd3b(0x1b6))/0x7*(-parseInt(_0x27fd3b(0x1d8))/0x8)+parseInt(_0x27fd3b(0x1c4))/0x9+parseInt(_0x27fd3b(0x1f7))/0xa;if(_0x3661ed===_0x100333)break;else _0x17a36d['push'](_0x17a36d['shift']());}catch(_0x45098f){_0x17a36d['push'](_0x17a36d['shift']());}}}(a85_0x33e5,0x98c01));const util=require(a85_0x4f3d68(0x1d4)),PerformanceTester=require(a85_0x4f3d68(0x1e1)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a85_0x4f3d68(0x1eb)),o11yErrorHandler=(_0x294938,_0x17013a='',_0x2d87d7=[''],_0xfb0c64=![])=>{const _0x4cfee9={'sQUDH':function(_0x4d9113,_0x412ccb){return _0x4d9113(_0x412ccb);},'BaXXR':function(_0x4b44c6,_0x3eaf5d,_0x14e08c){return _0x4b44c6(_0x3eaf5d,_0x14e08c);},'mPQDV':function(_0x213881,_0x43f401){return _0x213881 instanceof _0x43f401;},'aoyOL':function(_0x236c8a,_0x24d76a,_0x141d3f,_0x4cb04e,_0x2cc678){return _0x236c8a(_0x24d76a,_0x141d3f,_0x4cb04e,_0x2cc678);}};return function(..._0xc33593){const _0x33b36e=a85_0xddce;try{let _0x3a4e91=_0x294938;process['env'][_0x33b36e(0x220)]&&(_0x3a4e91=PerformanceTester[_0x33b36e(0x1cc)]()['timerify'](_0x3a4e91));_0xfb0c64&&_0x4cfee9['sQUDH'](trace,'Started\x20::\x20'+_0x17013a+_0x33b36e(0x1c7)+process[_0x33b36e(0x212)]+_0x33b36e(0x1ed)+_0x4cfee9['BaXXR'](nestedKeyValue,arguments[0x0],_0x2d87d7));const _0xeb8ee1=_0x3a4e91[_0x33b36e(0x1c2)](null,arguments);_0xfb0c64&&_0x4cfee9['sQUDH'](trace,_0x33b36e(0x1c5)+_0x17013a+_0x33b36e(0x1c7)+process['pid']+_0x33b36e(0x1ed)+_0x4cfee9['BaXXR'](nestedKeyValue,arguments[0x0],_0x2d87d7));if(_0x4cfee9[_0x33b36e(0x1e6)](_0xeb8ee1,Promise))return _0xeb8ee1[_0x33b36e(0x1cb)](_0x4d8c4d=>processError(_0x4d8c4d,_0x294938,_0xc33593,_0x17013a));return _0xeb8ee1;}catch(_0x31b466){_0x4cfee9[_0x33b36e(0x1ef)](processError,_0x31b466,_0x294938,_0xc33593,_0x17013a);}};},o11yClassErrorHandler=(_0x5985b4,_0x1f6a30,_0x406b4e='')=>{const _0x54a05c=a85_0x4f3d68,_0x5ea4c1={'TTHMN':function(_0x440860,_0x50c20b){return _0x440860 instanceof _0x50c20b;},'whpYB':function(_0x5b82c9,_0x27f455,_0x5d9243,_0x2a3fef,_0x1c5990){return _0x5b82c9(_0x27f455,_0x5d9243,_0x2a3fef,_0x1c5990);},'XAtjc':function(_0x565a53,_0x2e5a58){return _0x565a53===_0x2e5a58;},'NIKXy':_0x54a05c(0x203),'jPhTP':function(_0x339992,_0x42ec48){return _0x339992!==_0x42ec48;},'oNFiM':'constructor','YPXjP':function(_0x4be5c9,_0x582e81){return _0x4be5c9<_0x582e81;}},_0x203fac=_0x5985b4[_0x54a05c(0x1bb)];if(_0x5ea4c1['YPXjP'](Object[_0x54a05c(0x21c)](_0x203fac)['length'],0x2))return _0x5985b4;return Object['getOwnPropertyNames'](_0x203fac)[_0x54a05c(0x219)](_0x3ae605=>{const _0x37ca8b=_0x54a05c,_0x1e9505={'ugEzJ':function(_0x356793,_0x325558){const _0x33ad49=a85_0xddce;return _0x5ea4c1[_0x33ad49(0x201)](_0x356793,_0x325558);},'LYowt':function(_0x4ed40a,_0x3db751,_0x4e431b,_0x4faebe,_0x1d7350){const _0x465ddd=a85_0xddce;return _0x5ea4c1[_0x465ddd(0x211)](_0x4ed40a,_0x3db751,_0x4e431b,_0x4faebe,_0x1d7350);}};if(!(_0x1f6a30&&_0x1f6a30[_0x37ca8b(0x1e0)](_0x3ae605)))return;const _0x18928b=_0x203fac[_0x3ae605];_0x5ea4c1[_0x37ca8b(0x1f1)](typeof _0x18928b,_0x5ea4c1['NIKXy'])&&_0x5ea4c1[_0x37ca8b(0x1dd)](_0x3ae605,_0x5ea4c1[_0x37ca8b(0x1d2)])&&Object[_0x37ca8b(0x20c)](_0x203fac,_0x3ae605,{'writable':!![],'value':function(..._0xb830b3){const _0x1e4b29=_0x37ca8b;try{const _0x5d27a9=(process[_0x1e4b29(0x1da)][_0x1e4b29(0x220)]?PerformanceTester[_0x1e4b29(0x1cc)]()[_0x1e4b29(0x21a)](_0x18928b):_0x18928b)[_0x1e4b29(0x1d0)](this,..._0xb830b3);if(_0x1e9505[_0x1e4b29(0x216)](_0x5d27a9,Promise))return _0x5d27a9[_0x1e4b29(0x1cb)](_0x2ddd46=>processError(_0x2ddd46,_0x18928b,_0xb830b3,_0x406b4e));return _0x5d27a9;}catch(_0x1eb10c){_0x1e9505[_0x1e4b29(0x217)](processError,_0x1eb10c,_0x18928b,_0xb830b3,_0x406b4e);}}});}),_0x5985b4;};function processError(_0x4e0e97,_0x10c566,_0x159828,_0x458ad3){const _0x570aef=a85_0x4f3d68,_0x3a620a={'hfKhY':function(_0x110d02,_0x5deb33){return _0x110d02(_0x5deb33);}};_0x3a620a['hfKhY'](debug,_0x570aef(0x1db)+_0x10c566[_0x570aef(0x20d)]+_0x570aef(0x222)+_0x458ad3+'.\x20Error\x20-\x20'+util[_0x570aef(0x1de)](_0x4e0e97)+_0x570aef(0x1d3)+_0x159828+'.'),PerformanceTester[_0x570aef(0x1e4)](_0x4e0e97);let _0x4a6ee7;try{_0x4a6ee7=JSON['stringify'](_0x159828);}catch(_0x491a5b){const _0x31c2c6={};_0x31c2c6[_0x570aef(0x1f4)]=0x2,_0x4a6ee7=util[_0x570aef(0x20a)](_0x159828,_0x31c2c6);}CrashReporter[_0x570aef(0x1b5)](_0x570aef(0x1db)+_0x10c566[_0x570aef(0x20d)]+'\x20--\x20'+_0x458ad3+_0x570aef(0x210)+_0x4e0e97+_0x570aef(0x1d3)+_0x4a6ee7+'.',_0x4e0e97&&_0x4e0e97[_0x570aef(0x1fd)]);}class CrashReporter{static ['userConfig']={};static [a85_0x4f3d68(0x21b)];static [a85_0x4f3d68(0x221)]={};static['initialize'](_0x2ff7d8,_0x590110,_0xfc20a0=null){const _0x25c123=a85_0x4f3d68,_0x2a06f4={'OjmXu':function(_0x1a77ec,_0xc43ddb){return _0x1a77ec(_0xc43ddb);}},_0x4de819=_0x2ff7d8[_0x25c123(0x1fa)],_0x7cf25=_0x2ff7d8[_0x25c123(0x1ba)];!_0xfc20a0&&(_0xfc20a0=_0x2a06f4[_0x25c123(0x1c6)](getBrowserStackConfig,_0x4de819));!_0x7cf25&&_0x2a06f4[_0x25c123(0x1c6)](getFrameworkVersion,_0x4de819);const _0xdf6b95={};_0xdf6b95[_0x25c123(0x1fa)]=_0x4de819,_0xdf6b95['frameworkVersion']=_0x7cf25,this[_0x25c123(0x1d7)](_0xdf6b95,_0x590110,_0x2a06f4[_0x25c123(0x1c6)](getUserCredentials,_0xfc20a0));}static[a85_0x4f3d68(0x20f)](_0x3f04cd,_0x49cc94){const _0x222d38=a85_0x4f3d68,_0x516ef3={};_0x516ef3[_0x222d38(0x1f5)]=_0x3f04cd,_0x516ef3[_0x222d38(0x21d)]=_0x49cc94,this[_0x222d38(0x21b)]=_0x516ef3,process['env'][_0x222d38(0x1c0)]=JSON[_0x222d38(0x215)](this[_0x222d38(0x21b)]);}static[a85_0x4f3d68(0x1cd)](){const _0x39ea88=a85_0x4f3d68,_0x36d2c7={'CFyPj':function(_0x441554,_0x450cbb){return _0x441554(_0x450cbb);}};if(!this[_0x39ea88(0x21b)]&&process[_0x39ea88(0x1da)][_0x39ea88(0x1c0)])try{this[_0x39ea88(0x21b)]=JSON[_0x39ea88(0x1fc)](process['env'][_0x39ea88(0x1c0)]);}catch(_0x157f5b){_0x36d2c7['CFyPj'](debug,_0x39ea88(0x208)+_0x157f5b[_0x39ea88(0x1c8)]());}return this['credentials'];}static[a85_0x4f3d68(0x1b7)](_0x3af84a){const _0x2d8326=a85_0x4f3d68;this[_0x2d8326(0x1e9)]=this[_0x2d8326(0x1ee)](_0x3af84a),process[_0x2d8326(0x1da)][_0x2d8326(0x1c3)]=JSON['stringify'](this[_0x2d8326(0x1e9)]);}static[a85_0x4f3d68(0x1e2)](){const _0x4e123a=a85_0x4f3d68,_0x14ff0d={'PmFmu':function(_0x24ca5c,_0x5cd819){return _0x24ca5c===_0x5cd819;},'cQsld':function(_0xb6f4bb,_0x207b4e){return _0xb6f4bb(_0x207b4e);}};if(_0x14ff0d['PmFmu'](Object[_0x4e123a(0x1e3)](this[_0x4e123a(0x1e9)])[_0x4e123a(0x1dc)],0x0)&&process[_0x4e123a(0x1da)][_0x4e123a(0x1c3)])try{this[_0x4e123a(0x1e9)]=JSON[_0x4e123a(0x1fc)](process['env'][_0x4e123a(0x1c3)]);}catch(_0x575188){_0x14ff0d[_0x4e123a(0x1d1)](debug,_0x4e123a(0x1bf)+_0x575188['toString']()),this[_0x4e123a(0x1e9)]={};}return this[_0x4e123a(0x1e9)];}static[a85_0x4f3d68(0x1f8)](_0x5133c6){const _0x498095=a85_0x4f3d68;this[_0x498095(0x221)]=_0x5133c6,process[_0x498095(0x1da)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x498095(0x215)](this[_0x498095(0x221)]);}static[a85_0x4f3d68(0x20b)](){const _0x59c166=a85_0x4f3d68,_0x2edf9b={'XXVBr':function(_0x3c73ae,_0x37b63b){return _0x3c73ae===_0x37b63b;},'BEnIM':function(_0x5734be,_0x3b227f){return _0x5734be(_0x3b227f);}};if(_0x2edf9b[_0x59c166(0x1d6)](Object[_0x59c166(0x1e3)](this['frameworkDetails'])['length'],0x0)&&process[_0x59c166(0x1da)][_0x59c166(0x206)])try{this[_0x59c166(0x221)]=JSON[_0x59c166(0x1fc)](process[_0x59c166(0x1da)][_0x59c166(0x206)]);}catch(_0x27a3f1){_0x2edf9b[_0x59c166(0x1c9)](debug,_0x59c166(0x208)+_0x27a3f1[_0x59c166(0x1c8)]());}return this[_0x59c166(0x221)];}static[a85_0x4f3d68(0x1d7)](_0x5ddc03,_0x2f099b,_0x1ae6c8){const _0x215569=a85_0x4f3d68;_0x5ddc03&&this[_0x215569(0x1f8)](_0x5ddc03),_0x2f099b&&this[_0x215569(0x1b7)](_0x2f099b),_0x1ae6c8&&this[_0x215569(0x20f)](_0x1ae6c8['username'],_0x1ae6c8[_0x215569(0x21d)]);}static async[a85_0x4f3d68(0x1b5)](_0x2d5069,_0x4c44b4){const _0x2657a0=a85_0x4f3d68,_0x3d1d92={'lHyjO':function(_0x2688e8,_0xbb5afc){return _0x2688e8(_0xbb5afc);},'lSZmY':function(_0x205c1b,_0x33426e){return _0x205c1b(_0x33426e);},'rLhxH':_0x2657a0(0x1b8),'AXRAW':function(_0x387854){return _0x387854();},'ighmB':_0x2657a0(0x200),'VQMyn':_0x2657a0(0x1cf),'JhNor':_0x2657a0(0x214),'DasrO':function(_0xd6fd63,_0x4ac965,_0x1beb90,_0xec6162,_0x3e0980,_0x159bad){return _0xd6fd63(_0x4ac965,_0x1beb90,_0xec6162,_0x3e0980,_0x159bad);},'JaWQe':_0x2657a0(0x1be)};this[_0x2657a0(0x1cd)]();if(!this[_0x2657a0(0x21b)])return _0x3d1d92['lHyjO'](debug,_0x3d1d92['rLhxH']);this[_0x2657a0(0x1e2)](),this[_0x2657a0(0x20b)]();const _0x2c085d={'hashed_id':process[_0x2657a0(0x1da)][_0x2657a0(0x20e)],'observability_version':{'sdkVersion':_0x3d1d92[_0x2657a0(0x1f9)](getAgentVersion),'frameworkName':this[_0x2657a0(0x221)][_0x2657a0(0x1fa)],'frameworkVersion':this['frameworkDetails'][_0x2657a0(0x1ba)]},'exception':{'error':_0x2d5069[_0x2657a0(0x1c8)](),'stackTrace':_0x4c44b4},'config':this[_0x2657a0(0x1e9)]},_0x5cc70d=_0x3d1d92[_0x2657a0(0x1bc)],_0x49c4b7={};_0x49c4b7['username']=this['credentials'][_0x2657a0(0x1f5)],_0x49c4b7[_0x2657a0(0x1e8)]=this[_0x2657a0(0x21b)][_0x2657a0(0x21d)];const _0xac0a73={};_0xac0a73['Content-Type']=_0x3d1d92['VQMyn'],_0xac0a73[_0x2657a0(0x202)]=_0x3d1d92[_0x2657a0(0x1f6)];const _0x1eecbf={};_0x1eecbf['auth']=_0x49c4b7,_0x1eecbf[_0x2657a0(0x204)]=_0xac0a73;const _0x2e0ee8=_0x1eecbf;_0x3d1d92[_0x2657a0(0x1ea)](nodeRequest,_0x3d1d92[_0x2657a0(0x21f)],_0x5cc70d,_0x2c085d,_0x2e0ee8,![])[_0x2657a0(0x213)](_0x1da36a=>{const _0xe51187=_0x2657a0;_0x3d1d92['lHyjO'](debug,_0xe51187(0x1e7)+JSON['stringify'](_0x1da36a));})[_0x2657a0(0x1cb)](_0x4b9ee7=>{const _0x2d64dd=_0x2657a0;_0x3d1d92[_0x2d64dd(0x205)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x2d64dd(0x1de)](_0x4b9ee7));});}static[a85_0x4f3d68(0x1f0)](_0x51165a){const _0xaa790e=a85_0x4f3d68,_0x56c243={};_0x56c243[_0xaa790e(0x1fe)]='user',_0x56c243[_0xaa790e(0x1ff)]='username',_0x56c243['QoRQF']=_0xaa790e(0x1ca),_0x56c243[_0xaa790e(0x223)]=_0xaa790e(0x21d),_0x56c243[_0xaa790e(0x207)]=_0xaa790e(0x1e8),_0x56c243[_0xaa790e(0x218)]=function(_0x8d6078,_0x588d5c){return _0x8d6078===_0x588d5c;},_0x56c243[_0xaa790e(0x1f3)]=_0xaa790e(0x1fb);const _0x38480d=_0x56c243;if(!_0x51165a)return;const _0x193a46=[_0x38480d[_0xaa790e(0x1fe)],_0x38480d[_0xaa790e(0x1ff)],_0x38480d[_0xaa790e(0x1ce)],_0x38480d[_0xaa790e(0x223)],_0x38480d[_0xaa790e(0x207)]];for(const _0x1d8ed0 in _0x51165a){if(_0x193a46[_0xaa790e(0x1e0)](_0x1d8ed0[_0xaa790e(0x1e5)]()))delete _0x51165a[_0x1d8ed0];else _0x38480d[_0xaa790e(0x218)](typeof _0x51165a[_0x1d8ed0],_0x38480d['jNxVo'])&&this['recursivelyDeletePIIKeysFromObject'](_0x51165a[_0x1d8ed0]);}}static[a85_0x4f3d68(0x1ee)](_0x573524){const _0x42020a=a85_0x4f3d68,_0xfd7c9e=JSON[_0x42020a(0x1fc)](JSON[_0x42020a(0x215)](_0x573524));return this[_0x42020a(0x1f0)](_0xfd7c9e),_0xfd7c9e;}}function a85_0xddce(_0x293fee,_0x4ce8f4){const _0x33e52c=a85_0x33e5();return a85_0xddce=function(_0xddce0b,_0x4a32f4){_0xddce0b=_0xddce0b-0x1b5;let _0x202dfa=_0x33e52c[_0xddce0b];return _0x202dfa;},a85_0xddce(_0x293fee,_0x4ce8f4);}const a85_0x39eb6b={};a85_0x39eb6b[a85_0x4f3d68(0x1f2)]=o11yErrorHandler,a85_0x39eb6b[a85_0x4f3d68(0x1b9)]=o11yClassErrorHandler,a85_0x39eb6b[a85_0x4f3d68(0x1df)]=CrashReporter,module[a85_0x4f3d68(0x1ec)]=a85_0x39eb6b;function a85_0x33e5(){const _0x3f7f7e=['frameworkVersion','prototype','ighmB','113780yqgxyT','POST','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','CREDENTIALS_FOR_CRASH_REPORTING','1015reyUsF','apply','USER_CONFIG_FOR_REPORTING','7569315HqdJJB','Finished\x20::\x20','OjmXu',',\x20PID\x20-\x20','toString','BEnIM','key','catch','getPerformance','getCredentials','QoRQF','application/json','call','cQsld','oNFiM','.\x20Args\x20-\x20','util','1220925WaxipQ','XXVBr','setAllDetails','7090744riWgdx','28QsARbq','env','Error\x20in\x20executing\x20','length','jPhTP','format','CrashReporter','includes','../performance/performance-tester','getConfig','keys','captureError','toLowerCase','mPQDV','[Crash_Report_Upload]\x20Success\x20response:\x20','password','userConfig','DasrO','../helper','exports',',\x20Argument\x20-\x20','filterPII','aoyOL','recursivelyDeletePIIKeysFromObject','XAtjc','o11yErrorHandler','jNxVo','depth','username','JhNor','15356610KmiflR','setFrameworkDetails','AXRAW','frameworkName','object','parse','stack','NrNGw','xsFbZ','/api/v1/analytics','TTHMN','X-BSTACK-TESTOPS','function','headers','lSZmY','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','NCFZT','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','230omztKb','inspect','getFramework','defineProperty','name','BS_TESTOPS_BUILD_HASHED_ID','setCredentials','.\x20Error\x20-\x20','whpYB','pid','then','true','stringify','ugEzJ','LYowt','xAtUX','forEach','timerify','credentials','getOwnPropertyNames','accessKey','2490876iZOvRT','JaWQe','BROWSERSTACK_O11Y_PERF_MEASUREMENT','frameworkDetails','\x20--\x20','WSVKf','uploadCrashReport','7JwMAgB','setConfigDetails','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','o11yClassErrorHandler'];a85_0x33e5=function(){return _0x3f7f7e;};return a85_0x33e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a86_0x3d07(_0x399e3a,_0x14d0e4){const _0x2f9420=a86_0x2f94();return a86_0x3d07=function(_0x3d07e6,_0x145f62){_0x3d07e6=_0x3d07e6-0x13e;let _0x882633=_0x2f9420[_0x3d07e6];return _0x882633;},a86_0x3d07(_0x399e3a,_0x14d0e4);}const a86_0x485998=a86_0x3d07;function a86_0x2f94(){const _0x180814=['./constants','tMQeJ','resetEventBatchPolling','wYfFh','start','mCvAK','\x20--\x20','qQham','hook_run','kIyEM','uuid','.\x20Request\x20Size\x20-\x20','max','byteLength','ZcevY','Processing\x20batch\x20events\x20for\x20','BATCH_EVENT_TYPES','aHHJI','POST','lmiiD','nQnVh','pollEventBatchInterval','eSDCX','TEST_ATTACHMENT','Shutdown-Queue','screenshotEventUrl','queue','splice','KtshV','lOIMR','113134uLICNK','9670yVzEJk','\x20bytes.\x20Events\x20are\x20','164772xeHLmo','81SITblJ','eventUrl','api/v1/batch','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','pfTXW','YOmRv','message','batchAndPostEvents','join','uYIAw','WvGMD','554708gfRuWr','removeEventBatchPolling','kaGSV','util','api/v1/screenshots','proceedWithUrl','shouldProceed','EXCEPTION\x20IN\x20','proceedWithData','DbYJX','HookRunFinished','TestRunFinished','RESETTING','dVJJa','length','238870dWvWDj','../helper','LBDdv','HookRunStarted','fbfeg','Xrhhr','map','HHDiN','statusText','cGMzL','kOyWG','./utils','eBJzx','slice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','exports','kind','kbzLK','lfZFv','CUoCl','TEST_SCREENSHOT','pendingUploads','16DHevPW','uploadAttachmentUrl','uploadPending','utf8','ydJHH','REMOVING','48uLtSlD','eIOyM','logs','add','event_type','test_run','kHgnW','157745MnzryV','SiGee','status','9ExaQhy','Processing\x20events.\x20Queue\x20Length\x20-\x20','gwmOk','haOHS','startEventBatchPolling','instance','response','started','TestRunSkipped','absRV','Remaining\x20Queue\x20Length\x20-\x20','GilqK','1698150GnyYXn','format','wVAEi','error','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','getInstance'];a86_0x2f94=function(){return _0x180814;};return a86_0x2f94();}(function(_0x121e9d,_0x34ac2f){const _0x161a3a=a86_0x3d07,_0x8532ca=_0x121e9d();while(!![]){try{const _0x7f3dfa=-parseInt(_0x161a3a(0x195))/0x1+parseInt(_0x161a3a(0x1b0))/0x2*(parseInt(_0x161a3a(0x161))/0x3)+-parseInt(_0x161a3a(0x151))/0x4*(parseInt(_0x161a3a(0x15e))/0x5)+parseInt(_0x161a3a(0x16d))/0x6+-parseInt(_0x161a3a(0x192))/0x7*(parseInt(_0x161a3a(0x157))/0x8)+parseInt(_0x161a3a(0x196))/0x9*(-parseInt(_0x161a3a(0x193))/0xa)+-parseInt(_0x161a3a(0x1a1))/0xb;if(_0x7f3dfa===_0x34ac2f)break;else _0x8532ca['push'](_0x8532ca['shift']());}catch(_0x4f06ea){_0x8532ca['push'](_0x8532ca['shift']());}}}(a86_0x2f94,0x2f6d3));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x485998(0x174)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x485998(0x146)),{nestedKeyValue}=require(a86_0x485998(0x1b1)),util=require(a86_0x485998(0x1a4));class RequestQueueHandler{static [a86_0x485998(0x166)];[a86_0x485998(0x150)]=0x0;constructor(){const _0x299883=a86_0x485998,_0x45b57c={};_0x45b57c[_0x299883(0x1aa)]='0|1|5|6|4|3|2',_0x45b57c[_0x299883(0x145)]='LogCreated',_0x45b57c[_0x299883(0x191)]='CBTSessionCreated',_0x45b57c[_0x299883(0x14d)]=_0x299883(0x1ac),_0x45b57c['ydJHH']=_0x299883(0x169),_0x45b57c[_0x299883(0x19f)]=_0x299883(0x1ab),_0x45b57c[_0x299883(0x188)]='TestRunStarted',_0x45b57c[_0x299883(0x1a0)]=_0x299883(0x13e),_0x45b57c[_0x299883(0x187)]='upload-attachments',_0x45b57c['IoLta']=_0x299883(0x198),_0x45b57c[_0x299883(0x163)]=_0x299883(0x1a5);const _0x399690=_0x45b57c,_0x120b0a=_0x399690[_0x299883(0x1aa)][_0x299883(0x171)]('|');let _0x5a155b=0x0;while(!![]){switch(_0x120b0a[_0x5a155b++]){case'0':this[_0x299883(0x18e)]=[];continue;case'1':this[_0x299883(0x168)]=![];continue;case'2':this[_0x299883(0x189)]=null;continue;case'3':this[_0x299883(0x184)]=[_0x399690[_0x299883(0x145)],_0x399690[_0x299883(0x191)],_0x399690['lfZFv'],_0x399690[_0x299883(0x155)],_0x399690[_0x299883(0x19f)],_0x399690[_0x299883(0x188)],_0x399690[_0x299883(0x1a0)]];continue;case'4':this[_0x299883(0x152)]=_0x399690[_0x299883(0x187)];continue;case'5':this[_0x299883(0x197)]=_0x399690['IoLta'];continue;case'6':this[_0x299883(0x18d)]=_0x399690['gwmOk'];continue;}break;}}static[a86_0x485998(0x173)](){const _0x58e9a0=a86_0x485998;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x58e9a0(0x166)]=new RequestQueueHandler()),RequestQueueHandler[_0x58e9a0(0x166)];}[a86_0x485998(0x178)]=()=>{const _0x140ea9=a86_0x485998;!this[_0x140ea9(0x168)]&&(this[_0x140ea9(0x168)]=!![],this[_0x140ea9(0x165)]());};[a86_0x485998(0x15a)]=_0x33d720=>{const _0x14984b=a86_0x485998,_0x13a203={'kIyEM':function(_0x3c4f13,_0x251893){return _0x3c4f13===_0x251893;},'aHHJI':_0x14984b(0x14f),'KtshV':function(_0x3b3588,_0x412a99){return _0x3b3588>_0x412a99;},'LBDdv':_0x14984b(0x18b),'eSDCX':function(_0x3f32d1,_0x56c4be){return _0x3f32d1!==_0x56c4be;},'HHDiN':_0x14984b(0x1ac),'ZcevY':function(_0x9d11c3,_0x365435){return _0x9d11c3(_0x365435);},'mCvAK':_0x14984b(0x172)};if(this[_0x14984b(0x184)]['includes'](_0x33d720[_0x14984b(0x15b)])){if(_0x33d720[_0x14984b(0x159)]&&_0x33d720['logs'][0x0]&&_0x13a203['kIyEM'](_0x33d720[_0x14984b(0x159)][0x0][_0x14984b(0x14b)],_0x13a203[_0x14984b(0x185)])){const _0x2eacc3={};return _0x2eacc3[_0x14984b(0x1a7)]=!![],_0x2eacc3[_0x14984b(0x1a9)]=[_0x33d720],_0x2eacc3[_0x14984b(0x1a6)]=this[_0x14984b(0x18d)],_0x2eacc3;}if(_0x33d720[_0x14984b(0x159)]&&_0x13a203[_0x14984b(0x190)](_0x33d720[_0x14984b(0x159)]['length'],0x0)&&_0x13a203[_0x14984b(0x17d)](_0x33d720[_0x14984b(0x159)][0x0]['kind'],_0x13a203[_0x14984b(0x1b2)])&&_0x13a203[_0x14984b(0x18a)](_0x33d720[_0x14984b(0x15b)],_0x13a203[_0x14984b(0x142)])){const _0x39dfdc={};return _0x39dfdc[_0x14984b(0x1a7)]=!![],_0x39dfdc[_0x14984b(0x1a9)]=[_0x33d720],_0x39dfdc['proceedWithUrl']=this[_0x14984b(0x152)],_0x39dfdc;}this[_0x14984b(0x18e)]['push'](_0x33d720);let _0x4b9387=null;const _0x58653e=this[_0x14984b(0x1a7)]();_0x58653e&&(_0x13a203[_0x14984b(0x182)](trace,_0x13a203[_0x14984b(0x179)]),_0x4b9387=this[_0x14984b(0x18e)][_0x14984b(0x148)](0x0,BATCH_SIZE),this['queue'][_0x14984b(0x18f)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x8a9986={};return _0x8a9986[_0x14984b(0x1a7)]=_0x58653e,_0x8a9986[_0x14984b(0x1a9)]=_0x4b9387,_0x8a9986[_0x14984b(0x1a6)]=this[_0x14984b(0x197)],_0x8a9986;}const _0x418f7b={};return _0x418f7b[_0x14984b(0x1a7)]=!![],_0x418f7b;};['shutdown']=async()=>{const _0x2bd02e=a86_0x485998,_0x18febd={'CUoCl':_0x2bd02e(0x156),'eBJzx':function(_0x55eda5,_0x29c23d){return _0x55eda5>_0x29c23d;},'haOHS':_0x2bd02e(0x18c),'kHgnW':function(_0x2e507c,_0x3d23fd){return _0x2e507c(_0x3d23fd);}};await this[_0x2bd02e(0x153)](),this['removeEventBatchPolling'](_0x18febd[_0x2bd02e(0x14e)]);while(_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x18e)][_0x2bd02e(0x1af)],0x0)){const _0x47a279=this[_0x2bd02e(0x18e)]['slice'](0x0,BATCH_SIZE);this[_0x2bd02e(0x18e)][_0x2bd02e(0x18f)](0x0,BATCH_SIZE),await this[_0x2bd02e(0x19d)](this[_0x2bd02e(0x197)],_0x18febd[_0x2bd02e(0x164)],_0x47a279);}_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x150)],0x0)&&_0x18febd[_0x2bd02e(0x15d)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2bd02e(0x150)]);};[a86_0x485998(0x19d)]=async(_0x2e9598,_0x531f03,_0x518825)=>{const _0x3ec646=a86_0x485998,_0x2c487a={'wYfFh':function(_0x4810d9,_0x30fdf5){return _0x4810d9(_0x30fdf5);},'Xrhhr':_0x3ec646(0x154),'pfTXW':function(_0x25c42,_0x5dd33e){return _0x25c42(_0x5dd33e);},'kaGSV':function(_0x1e41ed){return _0x1e41ed();},'sKsjq':function(_0x4c2702,_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365){return _0x4c2702(_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365);},'THHKg':_0x3ec646(0x186),'GilqK':function(_0x58e5e1,_0x30a5be){return _0x58e5e1(_0x30a5be);},'absRV':function(_0x14ab0e,_0x99bf43){return _0x14ab0e-_0x99bf43;},'fbfeg':function(_0x102c7d,_0xcd18b1){return _0x102c7d(_0xcd18b1);}};let _0x3e056e='';try{_0x3e056e=_0x518825[_0x3ec646(0x141)](_0x297675=>'\x27'+_0x297675[_0x3ec646(0x15b)]+'\x27:'+(nestedKeyValue(_0x297675,[_0x3ec646(0x15c),_0x3ec646(0x17e)])||nestedKeyValue(_0x297675,[_0x3ec646(0x17c),_0x3ec646(0x17e)])))[_0x3ec646(0x19e)](','),_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x183)+_0x531f03+_0x3ec646(0x17f)+Buffer[_0x3ec646(0x181)](util[_0x3ec646(0x16e)]('%j',_0x518825),_0x2c487a[_0x3ec646(0x140)])+_0x3ec646(0x194)+_0x3e056e);}catch(_0x2be7e8){_0x2c487a[_0x3ec646(0x19a)](debug,_0x3ec646(0x149)+util[_0x3ec646(0x16e)](_0x2be7e8)+'}');}const _0x8846ee={'headers':_0x2c487a[_0x3ec646(0x1a3)](getDefaultHeaders)};try{const _0x2cd934=await _0x2c487a['sKsjq'](nodeRequest,_0x2c487a['THHKg'],_0x2e9598,_0x518825,_0x8846ee);if(_0x2cd934['data'][_0x3ec646(0x170)]){const _0xe95b1={};_0xe95b1['message']=_0x2cd934['data']['error'];throw _0xe95b1;}else _0x2c487a[_0x3ec646(0x16c)](debug,_0x531f03+'\x20event\x20successful\x20for\x20events\x20'+_0x3e056e+_0x3ec646(0x17a)+util[_0x3ec646(0x16e)]('%j',_0x2cd934['data'])),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825['length']));}catch(_0x3e57d1){_0x3e57d1[_0x3ec646(0x167)]?_0x2c487a[_0x3ec646(0x13f)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+_0x3e57d1['response'][_0x3ec646(0x160)]+'\x20'+_0x3e57d1[_0x3ec646(0x167)][_0x3ec646(0x143)]+'\x20'+util['format']('%j',_0x3e57d1[_0x3ec646(0x167)])):_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+(_0x3e57d1[_0x3ec646(0x19c)]||_0x3e57d1)),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825[_0x3ec646(0x1af)]));}};['startEventBatchPolling']=()=>{const _0x18a47f=a86_0x485998,_0x146889={'hMnfr':function(_0xd9a417,_0x575a06){return _0xd9a417>_0x575a06;},'EjWGP':function(_0x31d6b6,_0x255409){return _0x31d6b6(_0x255409);},'cGMzL':'Interval-Queue','qQham':function(_0x597139,_0x388dbb){return _0x597139(_0x388dbb);},'YOmRv':function(_0x28ca31,_0x41f4c1,_0x1ffccb){return _0x28ca31(_0x41f4c1,_0x1ffccb);}};this[_0x18a47f(0x189)]=_0x146889[_0x18a47f(0x19b)](setInterval,async()=>{const _0x243e52=_0x18a47f;if(_0x146889['hMnfr'](this['queue'][_0x243e52(0x1af)],0x0)){_0x146889['EjWGP'](trace,_0x243e52(0x162)+this['queue'][_0x243e52(0x1af)]);const _0x16dea6=this[_0x243e52(0x18e)][_0x243e52(0x148)](0x0,BATCH_SIZE);this[_0x243e52(0x18e)][_0x243e52(0x18f)](0x0,BATCH_SIZE),await this[_0x243e52(0x19d)](this['eventUrl'],_0x146889[_0x243e52(0x144)],_0x16dea6),_0x146889[_0x243e52(0x17b)](trace,_0x243e52(0x16b)+this[_0x243e52(0x18e)][_0x243e52(0x1af)]);}},BATCH_INTERVAL);};[a86_0x485998(0x176)]=()=>{const _0x59bcd7=a86_0x485998,_0x245a6b={};_0x245a6b[_0x59bcd7(0x158)]=_0x59bcd7(0x1ad);const _0x22499b=_0x245a6b;this['removeEventBatchPolling'](_0x22499b['eIOyM']),this[_0x59bcd7(0x165)]();};[a86_0x485998(0x1a2)]=_0x1e745c=>{const _0x96398e=a86_0x485998,_0x3cc899={'WToaq':function(_0x36f114,_0x26c602){return _0x36f114(_0x26c602);},'SWHdQ':function(_0x8cdd07,_0x26783e){return _0x8cdd07===_0x26783e;},'tMQeJ':_0x96398e(0x156)};this[_0x96398e(0x189)]&&(_0x3cc899['WToaq'](clearInterval,this[_0x96398e(0x189)]),this['pollEventBatchInterval']=null,_0x3cc899['SWHdQ'](_0x1e745c,_0x3cc899[_0x96398e(0x175)])&&(this[_0x96398e(0x168)]=![]));};[a86_0x485998(0x1a7)]=()=>{const _0x527a0c=a86_0x485998,_0x592436={};_0x592436[_0x527a0c(0x14c)]=function(_0x1960d0,_0x4b6a37){return _0x1960d0>=_0x4b6a37;};const _0xbcbf1d=_0x592436;return _0xbcbf1d[_0x527a0c(0x14c)](this[_0x527a0c(0x18e)][_0x527a0c(0x1af)],BATCH_SIZE);};async[a86_0x485998(0x153)](_0xeda75d=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x23408f=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x889c22=a86_0x485998,_0xa193c7={'SiGee':function(_0x2ee475,_0x21da39){return _0x2ee475<=_0x21da39;},'dVJJa':function(_0x541baf,_0x392f5c){return _0x541baf(_0x392f5c);},'wVAEi':function(_0x25ffe6,_0x3dbb4c){return _0x25ffe6-_0x3dbb4c;}};if(_0xa193c7[_0x889c22(0x15f)](this[_0x889c22(0x150)],0x0)||_0xa193c7[_0x889c22(0x15f)](_0xeda75d,0x0))return;return await _0xa193c7[_0x889c22(0x1ae)](sleep,_0x23408f),this[_0x889c22(0x153)](_0xa193c7[_0x889c22(0x16f)](_0xeda75d,_0x23408f));}}module[a86_0x485998(0x14a)]=RequestQueueHandler;
|
|
1
|
+
const a86_0x2035f9=a86_0x557e;function a86_0x5ef8(){const _0x35d719=['response','resetEventBatchPolling','PvHEf','uploadPending','YukWv','format','7263300sLoudL','WftvW','JgqeF','SDWjy','dQbSQ','TestRunSkipped','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','message','\x20bytes.\x20Events\x20are\x20','logs','YEHLF','error','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','2721048EBFrGg','../helper','length','screenshotEventUrl','statusText','NqndU','started','hook_run','LdrmI','BIckF','2672XSIOyc','uUNmV','jBqmV','EHlTZ','ujhAH','queue','Rshyi','TEST_SCREENSHOT','CBTSessionCreated','hBkll','fPKwB','data','eGDKy','IjrFx','proceedWithUrl','yEFpX','PDzhW','POST','TestRunFinished','WMJzf','HookRunFinished','VMZVw','REMOVING','iEluK','5|6|3|2|4|0|1','util','.\x20Request\x20Size\x20-\x20','LogCreated','shouldProceed','JRdJw','TestRunStarted','NymaQ','LTuFe','LZrFf','hCZgp','3196575tbHjya','pollEventBatchInterval','instance','1520211zlxqCn','WJnAL','4ZJONmt','event_type','ACZcy','splice','Processing\x20events.\x20Queue\x20Length\x20-\x20','eventUrl','utf8','removeEventBatchPolling','max','split','EDCKD','gUiBd','lvhNe','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','EXCEPTION\x20IN\x20','startEventBatchPolling','uploadAttachmentUrl','TEST_ATTACHMENT','NubGG','pAjiM','includes','AhJAE','pendingUploads','ZNGFc','getInstance','144BvGSUt','\x20event\x20successful\x20for\x20events\x20','api/v1/screenshots','BATCH_EVENT_TYPES','add','2404128hAzhOk','kind','proceedWithData','./utils','639422ozNbkl','slice','MmJho','upload-attachments','batchAndPostEvents','start','Processing\x20batch\x20events\x20for\x20'];a86_0x5ef8=function(){return _0x35d719;};return a86_0x5ef8();}(function(_0x544e4a,_0x42acb1){const _0x44ba77=a86_0x557e,_0xa67f29=_0x544e4a();while(!![]){try{const _0x1f3e93=parseInt(_0x44ba77(0x180))/0x1*(-parseInt(_0x44ba77(0x15e))/0x2)+parseInt(_0x44ba77(0x19a))/0x3+-parseInt(_0x44ba77(0x17c))/0x4+parseInt(_0x44ba77(0x159))/0x5+parseInt(_0x44ba77(0x18d))/0x6+-parseInt(_0x44ba77(0x15c))/0x7+-parseInt(_0x44ba77(0x136))/0x8*(parseInt(_0x44ba77(0x177))/0x9);if(_0x1f3e93===_0x42acb1)break;else _0xa67f29['push'](_0xa67f29['shift']());}catch(_0x2d5926){_0xa67f29['push'](_0xa67f29['shift']());}}}(a86_0x5ef8,0x9fc98));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x2035f9(0x17f)),{nestedKeyValue}=require(a86_0x2035f9(0x19b)),util=require(a86_0x2035f9(0x14f));function a86_0x557e(_0x3f8661,_0x157b61){const _0x5ef803=a86_0x5ef8();return a86_0x557e=function(_0x557e6e,_0x4a3c67){_0x557e6e=_0x557e6e-0x12e;let _0x137e24=_0x5ef803[_0x557e6e];return _0x137e24;},a86_0x557e(_0x3f8661,_0x157b61);}class RequestQueueHandler{static [a86_0x2035f9(0x15b)];[a86_0x2035f9(0x174)]=0x0;constructor(){const _0x5f1d1d=a86_0x2035f9,_0xba320f={};_0xba320f[_0x5f1d1d(0x153)]=_0x5f1d1d(0x14e),_0xba320f[_0x5f1d1d(0x139)]=_0x5f1d1d(0x151),_0xba320f['ACZcy']=_0x5f1d1d(0x13e),_0xba320f[_0x5f1d1d(0x156)]='TestRunFinished',_0xba320f[_0x5f1d1d(0x134)]=_0x5f1d1d(0x192),_0xba320f[_0x5f1d1d(0x190)]=_0x5f1d1d(0x14a),_0xba320f[_0x5f1d1d(0x168)]=_0x5f1d1d(0x154),_0xba320f[_0x5f1d1d(0x18e)]='HookRunStarted',_0xba320f[_0x5f1d1d(0x13a)]=_0x5f1d1d(0x179),_0xba320f[_0x5f1d1d(0x158)]='api/v1/batch',_0xba320f[_0x5f1d1d(0x143)]=_0x5f1d1d(0x183);const _0x3fac02=_0xba320f,_0x5ec4b7=_0x3fac02['JRdJw'][_0x5f1d1d(0x167)]('|');let _0x5f15d2=0x0;while(!![]){switch(_0x5ec4b7[_0x5f15d2++]){case'0':this[_0x5f1d1d(0x17a)]=[_0x3fac02[_0x5f1d1d(0x139)],_0x3fac02[_0x5f1d1d(0x160)],_0x3fac02[_0x5f1d1d(0x156)],_0x3fac02[_0x5f1d1d(0x134)],_0x3fac02[_0x5f1d1d(0x190)],_0x3fac02[_0x5f1d1d(0x168)],_0x3fac02['WftvW']];continue;case'1':this['pollEventBatchInterval']=null;continue;case'2':this[_0x5f1d1d(0x12f)]=_0x3fac02[_0x5f1d1d(0x13a)];continue;case'3':this['eventUrl']=_0x3fac02[_0x5f1d1d(0x158)];continue;case'4':this[_0x5f1d1d(0x16e)]=_0x3fac02[_0x5f1d1d(0x143)];continue;case'5':this[_0x5f1d1d(0x13b)]=[];continue;case'6':this[_0x5f1d1d(0x132)]=![];continue;}break;}}static[a86_0x2035f9(0x176)](){const _0xd5cbb9=a86_0x2035f9;return!RequestQueueHandler[_0xd5cbb9(0x15b)]&&(RequestQueueHandler[_0xd5cbb9(0x15b)]=new RequestQueueHandler()),RequestQueueHandler[_0xd5cbb9(0x15b)];}[a86_0x2035f9(0x185)]=()=>{const _0x42296e=a86_0x2035f9;!this[_0x42296e(0x132)]&&(this[_0x42296e(0x132)]=!![],this[_0x42296e(0x16d)]());};[a86_0x2035f9(0x17b)]=_0x3153a9=>{const _0x41db08=a86_0x2035f9,_0x5977d0={'PDzhW':function(_0x302859,_0x229588){return _0x302859===_0x229588;},'RUSaw':_0x41db08(0x13d),'YEHLF':function(_0xc797a9,_0x5d5499){return _0xc797a9>_0x5d5499;},'BsBuh':_0x41db08(0x16f),'dAqtG':function(_0x27d320,_0xe31d67){return _0x27d320!==_0xe31d67;},'MzRJk':_0x41db08(0x148),'iEluK':function(_0x75497c,_0x2bec78){return _0x75497c(_0x2bec78);},'NqndU':'Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..'};if(this[_0x41db08(0x17a)][_0x41db08(0x172)](_0x3153a9[_0x41db08(0x15f)])){if(_0x3153a9['logs']&&_0x3153a9[_0x41db08(0x196)][0x0]&&_0x5977d0[_0x41db08(0x146)](_0x3153a9[_0x41db08(0x196)][0x0][_0x41db08(0x17d)],_0x5977d0['RUSaw'])){const _0x5b4244={};return _0x5b4244[_0x41db08(0x152)]=!![],_0x5b4244[_0x41db08(0x17e)]=[_0x3153a9],_0x5b4244[_0x41db08(0x144)]=this['screenshotEventUrl'],_0x5b4244;}if(_0x3153a9['logs']&&_0x5977d0[_0x41db08(0x197)](_0x3153a9[_0x41db08(0x196)]['length'],0x0)&&_0x5977d0[_0x41db08(0x146)](_0x3153a9[_0x41db08(0x196)][0x0]['kind'],_0x5977d0['BsBuh'])&&_0x5977d0['dAqtG'](_0x3153a9[_0x41db08(0x15f)],_0x5977d0['MzRJk'])){const _0x5b0a8d={};return _0x5b0a8d['shouldProceed']=!![],_0x5b0a8d[_0x41db08(0x17e)]=[_0x3153a9],_0x5b0a8d[_0x41db08(0x144)]=this[_0x41db08(0x16e)],_0x5b0a8d;}this['queue']['push'](_0x3153a9);let _0x5e278d=null;const _0x7fe10c=this['shouldProceed']();_0x7fe10c&&(_0x5977d0[_0x41db08(0x14d)](trace,_0x5977d0[_0x41db08(0x131)]),_0x5e278d=this[_0x41db08(0x13b)]['slice'](0x0,BATCH_SIZE),this[_0x41db08(0x13b)][_0x41db08(0x161)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x5b75cf={};return _0x5b75cf[_0x41db08(0x152)]=_0x7fe10c,_0x5b75cf[_0x41db08(0x17e)]=_0x5e278d,_0x5b75cf['proceedWithUrl']=this[_0x41db08(0x163)],_0x5b75cf;}const _0x355d19={};return _0x355d19[_0x41db08(0x152)]=!![],_0x355d19;};['shutdown']=async()=>{const _0x10df28=a86_0x2035f9,_0x12424e={'NubGG':_0x10df28(0x14c),'ZNGFc':function(_0xdffa8e,_0x414365){return _0xdffa8e>_0x414365;},'pAjiM':'Shutdown-Queue','eGDKy':function(_0x5b5cbc,_0x536082){return _0x5b5cbc(_0x536082);}};await this[_0x10df28(0x18a)](),this['removeEventBatchPolling'](_0x12424e[_0x10df28(0x170)]);while(_0x12424e[_0x10df28(0x175)](this['queue'][_0x10df28(0x12e)],0x0)){const _0x5cdcab=this[_0x10df28(0x13b)][_0x10df28(0x181)](0x0,BATCH_SIZE);this[_0x10df28(0x13b)][_0x10df28(0x161)](0x0,BATCH_SIZE),await this[_0x10df28(0x184)](this[_0x10df28(0x163)],_0x12424e[_0x10df28(0x171)],_0x5cdcab);}_0x12424e[_0x10df28(0x175)](this[_0x10df28(0x174)],0x0)&&_0x12424e[_0x10df28(0x142)](debug,_0x10df28(0x16b)+this[_0x10df28(0x174)]);};[a86_0x2035f9(0x184)]=async(_0x73be38,_0x149cfa,_0x2c1cb9)=>{const _0x5b46a9=a86_0x2035f9,_0x338904={'Rshyi':function(_0x39278c,_0x317176){return _0x39278c(_0x317176);},'dQbSQ':_0x5b46a9(0x164),'AhJAE':function(_0x63b9b4,_0x18c993){return _0x63b9b4(_0x18c993);},'BIckF':function(_0x186468){return _0x186468();},'PvHEf':function(_0x2e7430,_0x3638a1,_0x4dae77,_0x28055d,_0x8e6c0d){return _0x2e7430(_0x3638a1,_0x4dae77,_0x28055d,_0x8e6c0d);},'jBqmV':_0x5b46a9(0x147),'uUNmV':function(_0x2feb6e,_0x399cef){return _0x2feb6e(_0x399cef);},'WJnAL':function(_0xb5846e,_0x54f684){return _0xb5846e-_0x54f684;},'LZrFf':function(_0x43582f,_0x2928ec){return _0x43582f(_0x2928ec);}};let _0x31c886='';try{_0x31c886=_0x2c1cb9['map'](_0x12cf3d=>'\x27'+_0x12cf3d['event_type']+'\x27:'+(nestedKeyValue(_0x12cf3d,['test_run','uuid'])||nestedKeyValue(_0x12cf3d,[_0x5b46a9(0x133),'uuid'])))['join'](','),_0x338904[_0x5b46a9(0x13c)](debug,_0x5b46a9(0x186)+_0x149cfa+_0x5b46a9(0x150)+Buffer['byteLength'](util[_0x5b46a9(0x18c)]('%j',_0x2c1cb9),_0x338904[_0x5b46a9(0x191)])+_0x5b46a9(0x195)+_0x31c886);}catch(_0x4fbbdc){_0x338904[_0x5b46a9(0x173)](debug,_0x5b46a9(0x199)+util[_0x5b46a9(0x18c)](_0x4fbbdc)+'}');}const _0xc11efa={'headers':_0x338904[_0x5b46a9(0x135)](getDefaultHeaders)};try{const _0x500a77=await _0x338904[_0x5b46a9(0x189)](nodeRequest,_0x338904[_0x5b46a9(0x138)],_0x73be38,_0x2c1cb9,_0xc11efa);if(_0x500a77[_0x5b46a9(0x141)][_0x5b46a9(0x198)]){const _0x111b08={};_0x111b08[_0x5b46a9(0x194)]=_0x500a77[_0x5b46a9(0x141)]['error'];throw _0x111b08;}else _0x338904[_0x5b46a9(0x137)](debug,_0x149cfa+_0x5b46a9(0x178)+_0x31c886+'\x20--\x20'+util[_0x5b46a9(0x18c)]('%j',_0x500a77[_0x5b46a9(0x141)])),this[_0x5b46a9(0x174)]=Math[_0x5b46a9(0x166)](0x0,_0x338904['WJnAL'](this[_0x5b46a9(0x174)],_0x2c1cb9[_0x5b46a9(0x12e)]));}catch(_0x4f1066){_0x4f1066[_0x5b46a9(0x187)]?_0x338904[_0x5b46a9(0x173)](debug,'EXCEPTION\x20IN\x20'+_0x149cfa+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x4f1066[_0x5b46a9(0x187)]['status']+'\x20'+_0x4f1066[_0x5b46a9(0x187)][_0x5b46a9(0x130)]+'\x20'+util[_0x5b46a9(0x18c)]('%j',_0x4f1066[_0x5b46a9(0x187)])):_0x338904[_0x5b46a9(0x157)](debug,_0x5b46a9(0x16c)+_0x149cfa+_0x5b46a9(0x193)+(_0x4f1066['message']||_0x4f1066)),this[_0x5b46a9(0x174)]=Math['max'](0x0,_0x338904[_0x5b46a9(0x15d)](this[_0x5b46a9(0x174)],_0x2c1cb9[_0x5b46a9(0x12e)]));}};[a86_0x2035f9(0x16d)]=()=>{const _0x114e58=a86_0x2035f9,_0x19cbe7={'JgqeF':function(_0x56aaf9,_0x1c3901){return _0x56aaf9>_0x1c3901;},'hBkll':function(_0x3aa576,_0x1395e8){return _0x3aa576(_0x1395e8);},'fPKwB':'Interval-Queue','MmJho':function(_0x3d402f,_0x16c02c){return _0x3d402f(_0x16c02c);},'gUiBd':function(_0x511a21,_0x38d34f,_0x21fbbf){return _0x511a21(_0x38d34f,_0x21fbbf);}};this[_0x114e58(0x15a)]=_0x19cbe7[_0x114e58(0x169)](setInterval,async()=>{const _0x349249=_0x114e58;if(_0x19cbe7[_0x349249(0x18f)](this[_0x349249(0x13b)]['length'],0x0)){_0x19cbe7[_0x349249(0x13f)](trace,_0x349249(0x162)+this[_0x349249(0x13b)][_0x349249(0x12e)]);const _0xdb9888=this[_0x349249(0x13b)][_0x349249(0x181)](0x0,BATCH_SIZE);this[_0x349249(0x13b)][_0x349249(0x161)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this['eventUrl'],_0x19cbe7[_0x349249(0x140)],_0xdb9888),_0x19cbe7[_0x349249(0x182)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x349249(0x13b)][_0x349249(0x12e)]);}},BATCH_INTERVAL);};[a86_0x2035f9(0x188)]=()=>{const _0x52cf8d=a86_0x2035f9,_0x681b36={};_0x681b36[_0x52cf8d(0x149)]='RESETTING';const _0x13c74b=_0x681b36;this[_0x52cf8d(0x165)](_0x13c74b[_0x52cf8d(0x149)]),this[_0x52cf8d(0x16d)]();};[a86_0x2035f9(0x165)]=_0x50d723=>{const _0x19039a=a86_0x2035f9,_0x45d0ad={'jKrpW':function(_0xea4b85,_0x464204){return _0xea4b85(_0x464204);},'pbTBB':function(_0x35bd42,_0x978d25){return _0x35bd42===_0x978d25;},'VMZVw':_0x19039a(0x14c)};this[_0x19039a(0x15a)]&&(_0x45d0ad['jKrpW'](clearInterval,this[_0x19039a(0x15a)]),this[_0x19039a(0x15a)]=null,_0x45d0ad['pbTBB'](_0x50d723,_0x45d0ad[_0x19039a(0x14b)])&&(this['started']=![]));};[a86_0x2035f9(0x152)]=()=>{const _0x54d79b=a86_0x2035f9,_0x509ea1={};_0x509ea1['lvhNe']=function(_0x50b777,_0x135c73){return _0x50b777>=_0x135c73;};const _0x4c1379=_0x509ea1;return _0x4c1379[_0x54d79b(0x16a)](this[_0x54d79b(0x13b)][_0x54d79b(0x12e)],BATCH_SIZE);};async[a86_0x2035f9(0x18a)](_0x2465b5=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x384a8a=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x7beff6=a86_0x2035f9,_0x1b706c={'yEFpX':function(_0x345056,_0x116ea7){return _0x345056<=_0x116ea7;},'NymaQ':function(_0x24b97a,_0x206e77){return _0x24b97a(_0x206e77);},'YukWv':function(_0x6634ef,_0x1bfbc2){return _0x6634ef-_0x1bfbc2;}};if(_0x1b706c[_0x7beff6(0x145)](this[_0x7beff6(0x174)],0x0)||_0x1b706c[_0x7beff6(0x145)](_0x2465b5,0x0))return;return await _0x1b706c[_0x7beff6(0x155)](sleep,_0x384a8a),this['uploadPending'](_0x1b706c[_0x7beff6(0x18b)](_0x2465b5,_0x384a8a));}}module['exports']=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a87_0x4967eb=a87_0x302b;(function(_0x309a1c,_0x1e819b){const _0x4d9834=a87_0x302b,_0x1ca64d=_0x309a1c();while(!![]){try{const _0x2d8308=parseInt(_0x4d9834(0x208))/0x1*(-parseInt(_0x4d9834(0x214))/0x2)+parseInt(_0x4d9834(0x1b1))/0x3+parseInt(_0x4d9834(0x1d9))/0x4+parseInt(_0x4d9834(0x1f1))/0x5*(parseInt(_0x4d9834(0x211))/0x6)+-parseInt(_0x4d9834(0x221))/0x7*(parseInt(_0x4d9834(0x236))/0x8)+parseInt(_0x4d9834(0x1e3))/0x9+-parseInt(_0x4d9834(0x1f0))/0xa*(parseInt(_0x4d9834(0x22b))/0xb);if(_0x2d8308===_0x1e819b)break;else _0x1ca64d['push'](_0x1ca64d['shift']());}catch(_0x4e51de){_0x1ca64d['push'](_0x1ca64d['shift']());}}}(a87_0x175c,0x4572f));function a87_0x302b(_0x5b8253,_0x173b42){const _0x175c95=a87_0x175c();return a87_0x302b=function(_0x302b1a,_0x25acde){_0x302b1a=_0x302b1a-0x193;let _0x149042=_0x175c95[_0x302b1a];return _0x149042;},a87_0x302b(_0x5b8253,_0x173b42);}function a87_0x175c(){const _0x2ac547=['getAgentVersion','pjnBQ','test_run','add','Sending\x20trace\x20zip\x20for\x20test:\x20','sVfMq','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','length','winstonLogger','util','iOiLC','AczvY','NvART','data','../helper','BS_TESTOPS_BUILD_HASHED_ID','ENkAm','getHostInfo','smwtw','CQWdV','BrMSD','AUMeb','vdvaP','YnABK','getGitMetaData','event_type','sendTraceZip','frameworkName','Bearer\x20','gwWgc','password','cJUgA','tUdwD','232866DAwaQV','Processing\x20event\x20-\x20\x27','wCQPK','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','frameworkVersion','null','../logger','browserstackAutomation','UKMcR','EXCEPTION\x20IN\x20','getUserName','ERROR_SDK_DEPRECATED','JMDYn','GsLhu','HookRunStarted','true','eaEma','RflUk','CBT_Upload','IQjee','CGYpI','bXJjT','start','TXiBM','includes','projectName','mWFFY','getCiInfo','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Batch-Queue','dtEbe','success','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Hook_Start_Upload','mtKPo','./requestQueueHandler','sendEventData','NaSiH','application/json','hook_run','926264tWTzWn','USVkP','status','TJKWk','BROWSERSTACK_RERUN','toString','CREDENTIALS_FOR_CRASH_REPORTING','launch','GaxnV','cwd','3091194BVfipA','HbnVB','format','zRFjg','error','hcWJz','XPskK','QqCFZ','build_hashed_id','BS_TESTOPS_BUILD_COMPLETED','buildDescription','mIiTk','api/v1/builds','530rwrAPp','10qADaJp','message','buildName','allow_screenshots','UHQCP','HLkFV','pendingUploads','logs','env','path','bxszM','response','TestRunSkipped','stringify','niPxy','Kryft','NSHSA','getLogTag','\x20retry\x20runs\x20exceeded','Log_Upload','TestRunStarted','kmmMY','statusText','206533fmiQXN','ERROR_ACCESS_DENIED','eventUrl','Test_Skipped_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','BROWSERSTACK_TESTHUB_UUID','info','CZFRS','uuid','1201362KlWimm','debug','fpjvi','2LcRlwe','aZLiY','BROWSERSTACK_TESTHUB_JWT','max','Retry\x20runs\x20exceeded','ZPiuV','dzJYA','X-BSTACK-TESTOPS','uploadEventData','waitForBuildStatus','username','sGfhi','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','22701myFGYz','nestedKeyValue','JGeKz','api/v1/event','Fkopl','Hook_End_Upload','qDFXX','feaCG','exports','opycX','74261ALprHt','klgnV','false','ExJrx','errorType','json','zVSQZ','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','jwt','ULyay','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','504VEGYnT','requestQueueHandler','POST'];a87_0x175c=function(){return _0x2ac547;};return a87_0x175c();}const bsSetupHelper=require(a87_0x4967eb(0x19e)),path=require(a87_0x4967eb(0x1fa)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x4967eb(0x1d4)),logger=require(a87_0x4967eb(0x1b7))[a87_0x4967eb(0x198)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0x4967eb(0x199));class SessionHandler{static [a87_0x4967eb(0x237)]=RequestQueueHandler['getInstance']();static async[a87_0x4967eb(0x1e0)](_0x661741,_0x31d899){const _0x5ea5c3=a87_0x4967eb,_0xd81dc9={'YnABK':function(_0x31daaa,_0xef8ca9){return _0x31daaa||_0xef8ca9;},'hcWJz':function(_0x38eeba,_0x31bd14){return _0x38eeba===_0x31bd14;},'Kryft':function(_0x2380be,_0x26c016){return _0x2380be(_0x26c016);},'boMWh':_0x5ea5c3(0x1cd),'opycX':_0x5ea5c3(0x22d),'qDFXX':_0x5ea5c3(0x230),'CZFRS':function(_0x1db395,_0x2b33a2){return _0x1db395(_0x2b33a2);},'klgnV':function(_0x361bd7,_0x335498){return _0x361bd7(_0x335498);},'Vfjfe':function(_0x84e923,_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838){return _0x84e923(_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838);},'sGfhi':_0x5ea5c3(0x238),'QqCFZ':_0x5ea5c3(0x1ef),'Wdrmy':function(_0x19d68c,_0x5b5501){return _0x19d68c(_0x5b5501);},'wCQPK':'Build\x20creation\x20successful!','dtEbe':function(_0x48167e){return _0x48167e();},'HLkFV':'true','USVkP':_0x5ea5c3(0x1b6),'UHQCP':function(_0x1f408a,_0xddb06b){return _0x1f408a(_0xddb06b);},'UKMcR':function(_0x1aec34,_0x169ca7){return _0x1aec34(_0x169ca7);},'sVOhE':'ERROR_INVALID_CREDENTIALS','JMDYn':_0x5ea5c3(0x209),'Fkopl':_0x5ea5c3(0x1bc)},_0x44e4e0=bsSetupHelper[_0x5ea5c3(0x1bb)](_0x661741),_0x4f73b8=bsSetupHelper['getAccessKey'](_0x661741),_0x346e3c=_0xd81dc9['YnABK'](_0x44e4e0,'')+':'+_0xd81dc9[_0x5ea5c3(0x1a7)](_0x4f73b8,'');if(_0xd81dc9[_0x5ea5c3(0x1e8)](_0x346e3c,':'))return _0xd81dc9[_0x5ea5c3(0x200)](debug,_0xd81dc9['boMWh']),process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x22a)],[null,null];let _0x17d7a3=![],_0x16b517=![];if(_0x661741[_0x5ea5c3(0x1b8)]&&_0x661741['app'])_0x16b517=!![];else _0x661741[_0x5ea5c3(0x1b8)]&&(_0x17d7a3=!![]);try{const _0x3d2564={'format':_0xd81dc9[_0x5ea5c3(0x227)],'project_name':_0x661741[_0x5ea5c3(0x1ca)]||'','name':_0x661741[_0x5ea5c3(0x1f3)]||path['basename'](path['resolve'](process[_0x5ea5c3(0x1e2)]())),'build_identifier':_0x661741['buildIdentifier'],'description':_0x661741[_0x5ea5c3(0x1ed)]||'','start_time':new Date()['toISOString'](),'tags':_0xd81dc9['CZFRS'](getCustomTags,_0x661741),'host_info':bsSetupHelper[_0x5ea5c3(0x1a1)](),'ci_info':bsSetupHelper[_0x5ea5c3(0x1cc)](),'build_run_identifier':process[_0x5ea5c3(0x1f9)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1dd)]||![],'version_control':await bsSetupHelper[_0x5ea5c3(0x1a8)](),'observability_version':{'frameworkName':_0x31d899[_0x5ea5c3(0x1ab)],'frameworkVersion':_0x31d899[_0x5ea5c3(0x1b5)],'sdkVersion':bsSetupHelper[_0x5ea5c3(0x239)]()},'product_map':_0xd81dc9[_0x5ea5c3(0x20f)](getProductMap,_0x661741)},_0x57e648={};_0x57e648[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x57e648[_0x5ea5c3(0x1ae)]=_0x4f73b8;const _0x541b76={'auth':_0x57e648,'headers':_0xd81dc9[_0x5ea5c3(0x22c)](getDefaultHeaders,![])},_0x25a8c8=await _0xd81dc9['Vfjfe'](nodeRequest,_0xd81dc9[_0x5ea5c3(0x21f)],_0xd81dc9[_0x5ea5c3(0x1ea)],_0x3d2564,_0x541b76);_0xd81dc9['Wdrmy'](debug,_0xd81dc9[_0x5ea5c3(0x1b3)]);const _0x54f095=_0x25a8c8[_0x5ea5c3(0x19d)];_0x54f095[_0x5ea5c3(0x1eb)]&&(process['env'][_0x5ea5c3(0x20d)]=_0x54f095['build_hashed_id']);if(_0xd81dc9[_0x5ea5c3(0x1cf)](isTestObservabilitySession)){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x1f6)];if(_0x54f095[_0x5ea5c3(0x233)]){process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_JWT']=_0x54f095[_0x5ea5c3(0x233)];const _0x5bac25={};_0x5bac25[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x5bac25[_0x5ea5c3(0x1ae)]=_0x4f73b8,process['env'][_0x5ea5c3(0x1df)]=JSON[_0x5ea5c3(0x1fe)](_0x5bac25);}_0x54f095['build_hashed_id']&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0x54f095[_0x5ea5c3(0x1eb)]),_0x54f095[_0x5ea5c3(0x1f4)]&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0x54f095[_0x5ea5c3(0x1f4)][_0x5ea5c3(0x1de)]());}return[_0x25a8c8[_0x5ea5c3(0x19d)][_0x5ea5c3(0x233)],_0x25a8c8['data'][_0x5ea5c3(0x1eb)],_0x25a8c8['data']['allow_screenshots']];}catch(_0x5ad1ff){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20d)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED']=_0xd81dc9[_0x5ea5c3(0x22a)],process['env']['BS_TESTOPS_JWT']=_0xd81dc9['USVkP'],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0xd81dc9[_0x5ea5c3(0x1da)];_0x5ad1ff[_0x5ea5c3(0x1fc)]?_0xd81dc9[_0x5ea5c3(0x1f5)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)]['status']+'\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x207)]+'\x20'+JSON[_0x5ea5c3(0x1fe)](_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x19d)])):_0xd81dc9[_0x5ea5c3(0x1b9)](debug,_0x5ea5c3(0x1d1)+(_0x5ad1ff[_0x5ea5c3(0x1f2)]||_0x5ad1ff));if(_0x5ad1ff&&_0x5ad1ff[_0x5ea5c3(0x1f2)]){const _0x2f3f36=_0x5ad1ff[_0x5ea5c3(0x1f2)];switch(_0x5ad1ff[_0x5ea5c3(0x22f)]){case _0xd81dc9['sVOhE']:logger['error'](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x1bd)]:logger[_0x5ea5c3(0x20e)](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x225)]:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);break;default:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);}}else console[_0x5ea5c3(0x20e)](_0x5ea5c3(0x1b4)+_0x5ad1ff);return[null,null,null];}}static async[a87_0x4967eb(0x21d)](){const _0x18a6aa=a87_0x4967eb,_0x410d33={'kmmMY':_0x18a6aa(0x1c0),'AUMeb':_0x18a6aa(0x22d),'TJKWk':function(_0x2f1f8d,_0x1f4c79){return _0x2f1f8d(_0x1f4c79);}},_0x341894=process[_0x18a6aa(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]]['includes'](_0x341894))return;while([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]][_0x18a6aa(0x1c9)](_0x341894)){await _0x410d33[_0x18a6aa(0x1dc)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x4967eb(0x202)](_0x516cd5){const _0x3abc03=a87_0x4967eb,_0x31c1ca={};_0x31c1ca['mtKPo']='Test_Start_Upload',_0x31c1ca['ZPiuV']='Test_End_Upload',_0x31c1ca[_0x3abc03(0x1a3)]=_0x3abc03(0x20b),_0x31c1ca[_0x3abc03(0x1d6)]=_0x3abc03(0x204),_0x31c1ca[_0x3abc03(0x1e6)]=_0x3abc03(0x1d2),_0x31c1ca[_0x3abc03(0x228)]=_0x3abc03(0x226),_0x31c1ca['iOiLC']=_0x3abc03(0x1c3);const _0x29da86=_0x31c1ca,_0x269872={};return _0x269872[_0x3abc03(0x205)]=_0x29da86[_0x3abc03(0x1d3)],_0x269872['TestRunFinished']=_0x29da86[_0x3abc03(0x219)],_0x269872[_0x3abc03(0x1fd)]=_0x29da86[_0x3abc03(0x1a3)],_0x269872['LogCreated']=_0x29da86[_0x3abc03(0x1d6)],_0x269872[_0x3abc03(0x1bf)]=_0x29da86[_0x3abc03(0x1e6)],_0x269872['HookRunFinished']=_0x29da86['feaCG'],_0x269872['CBTSessionCreated']=_0x29da86[_0x3abc03(0x19a)],_0x269872[_0x516cd5[_0x3abc03(0x1a9)]];}static async[a87_0x4967eb(0x1d5)](_0x26f7bb,_0x389526=0x0,_0x34d08b=null){const _0x1d5bf6=a87_0x4967eb,_0x450dc6={'bXJjT':function(_0x425acf,_0x59cc7a){return _0x425acf===_0x59cc7a;},'NSHSA':_0x1d5bf6(0x1aa),'fpjvi':function(_0x3c26e0,_0x2430a5){return _0x3c26e0!==_0x2430a5;},'AjZJB':_0x1d5bf6(0x1d7),'ENkAm':_0x1d5bf6(0x1c0),'TXiBM':function(_0x1756a0,_0x251f21){return _0x1756a0===_0x251f21;},'XPskK':function(_0x5b2a6f,_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c){return _0x5b2a6f(_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c);},'BrMSD':_0x1d5bf6(0x238),'NvART':function(_0x3111ef,_0x576208,_0x32e2d2,_0x571841,_0x29af27){return _0x3111ef(_0x576208,_0x32e2d2,_0x571841,_0x29af27);},'IQjee':function(_0x20d192,_0xb422d4){return _0x20d192(_0xb422d4);},'CGYpI':function(_0x38295e,_0x155807){return _0x38295e!==_0x155807;},'pjnBQ':_0x1d5bf6(0x1ce),'zVSQZ':function(_0x3f2ab4,_0x10d2b0){return _0x3f2ab4-_0x10d2b0;},'cJUgA':_0x1d5bf6(0x224),'niPxy':_0x1d5bf6(0x1d0),'JGeKz':function(_0x4c47fb,_0x325a4f){return _0x4c47fb!==_0x325a4f;},'HbnVB':_0x1d5bf6(0x1e7)};_0x450dc6[_0x1d5bf6(0x1c6)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])&&logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x194)+_0x26f7bb[_0x1d5bf6(0x1f8)][0x0]['test_run_uuid']);const _0x5e45c2=await this[_0x1d5bf6(0x202)](_0x26f7bb);let _0x5ca61f=_0x26f7bb,_0x50cf54=EVENT_ENDPOINT;_0x450dc6[_0x1d5bf6(0x213)](_0x34d08b,_0x450dc6['NSHSA'])&&this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1c7)]();const {shouldProceed:_0x3e0024,proceedWithData:_0x112373,proceedWithUrl:_0x1cabf1}=this['requestQueueHandler'][_0x1d5bf6(0x193)](_0x26f7bb);if(!_0x3e0024)return;else _0x112373&&(_0x5ca61f=_0x112373,_0x50cf54=_0x1cabf1);const _0x332d41={};_0x332d41['Authorization']=_0x1d5bf6(0x1ac)+process[_0x1d5bf6(0x1f9)][_0x1d5bf6(0x216)],_0x332d41['Content-Type']=_0x450dc6['AjZJB'],_0x332d41[_0x1d5bf6(0x21b)]=_0x450dc6[_0x1d5bf6(0x1a0)];const _0x33eb29={};_0x33eb29['headers']=_0x332d41;const _0x5cfdad=_0x33eb29;let _0x2e34b1;try{_0x450dc6[_0x1d5bf6(0x1c8)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])?(logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x196)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid']),_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x1e9)](asyncAwaitNodeReq,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad),logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x232)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid'])):_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x19c)](nodeRequest,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad);if(_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)]){const _0x41e977={};_0x41e977[_0x1d5bf6(0x1f2)]=_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)];throw _0x41e977;}else{_0x450dc6[_0x1d5bf6(0x1c4)](debug,(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this['requestQueueHandler']['eventUrl'])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+'['+_0x389526+']\x20event\x20successful!'),this[_0x1d5bf6(0x237)]['pendingUploads']=Math[_0x1d5bf6(0x217)](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)]['pendingUploads'],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6['cJUgA'])?0x1:_0x5ca61f[_0x1d5bf6(0x197)]));const _0x3dc0f9={};return _0x3dc0f9[_0x1d5bf6(0x1db)]=_0x450dc6[_0x1d5bf6(0x1ff)],_0x3dc0f9['message']='',_0x3dc0f9;}}catch(_0x4a9870){_0x4a9870['response']?_0x450dc6['IQjee'](debug,_0x1d5bf6(0x1ba)+(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+_0x1d5bf6(0x235)+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x1db)]+'\x20'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]+'\x20'+util[_0x1d5bf6(0x1e5)](_0x4a9870[_0x1d5bf6(0x1fc)]['data'])):_0x450dc6[_0x1d5bf6(0x1c4)](debug,'EXCEPTION\x20IN\x20'+(_0x450dc6[_0x1d5bf6(0x223)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6['pjnBQ'])+_0x1d5bf6(0x235)+util[_0x1d5bf6(0x1e5)](_0x4a9870));this['requestQueueHandler'][_0x1d5bf6(0x1f7)]=Math['max'](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1f7)],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6[_0x1d5bf6(0x1af)])?0x1:_0x5ca61f['length']));const _0x368033={};return _0x368033['status']=_0x450dc6[_0x1d5bf6(0x1e4)],_0x368033[_0x1d5bf6(0x1f2)]=_0x4a9870[_0x1d5bf6(0x1f2)]||(_0x4a9870[_0x1d5bf6(0x1fc)]?_0x4a9870[_0x1d5bf6(0x1fc)]['status']+':'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]:_0x4a9870),_0x368033;}}static async['uploadEventData'](_0xa409ec,_0x3171f6=0x0){const _0x390294=a87_0x4967eb,_0x26121f={'GsLhu':function(_0x1eff10,_0x19cbe0){return _0x1eff10+_0x19cbe0;},'ULyay':function(_0xc5f8f5,_0x48f947){return _0xc5f8f5(_0x48f947);},'AMRRt':_0x390294(0x23b),'RflUk':_0x390294(0x210),'tUdwD':_0x390294(0x1d8),'XDcST':function(_0x4da6ef,_0x5bff5e,_0x3f42ff){return _0x4da6ef(_0x5bff5e,_0x3f42ff);},'bxszM':_0x390294(0x21c),'mWFFY':function(_0x299c1d,_0x3b5c8a){return _0x299c1d===_0x3b5c8a;},'gwWgc':function(_0x5570b5,_0x470cbd){return _0x5570b5!==_0x470cbd;},'AczvY':_0x390294(0x1b6),'CnrQU':_0x390294(0x1c0),'aZLiY':function(_0x593b4e){return _0x593b4e();},'smwtw':function(_0x562021,_0x24011f){return _0x562021===_0x24011f;},'vdvaP':function(_0x389701,_0x494447){return _0x389701(_0x494447);},'GaxnV':function(_0x2004d2,_0x2c9418){return _0x2004d2-_0x2c9418;},'mIiTk':_0x390294(0x1e7),'ExJrx':_0x390294(0x220),'iFvTr':function(_0x51b387,_0x15a36d){return _0x51b387>=_0x15a36d;},'LXeKL':function(_0x22730f,_0x3918b7){return _0x22730f!==_0x3918b7;},'sVfMq':function(_0x2f0972,_0x3ae783){return _0x2f0972-_0x3ae783;},'dzJYA':_0x390294(0x218),'eaEma':_0x390294(0x22d),'KNqwV':function(_0x417a4e,_0x18fa69,_0x4bf58c){return _0x417a4e(_0x18fa69,_0x4bf58c);}},_0x54f786=this[_0x390294(0x202)](_0xa409ec);_0x26121f[_0x390294(0x234)](trace,_0x390294(0x1b2)+_0xa409ec['event_type']+'\x27\x20'+(bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f['AMRRt'],_0x26121f[_0x390294(0x1c2)]])||bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f[_0x390294(0x1b0)],_0x26121f['RflUk']])));if(!_0x26121f['XDcST'](shouldProcessEventForTesthub,_0xa409ec[_0x390294(0x1a9)],_0x26121f[_0x390294(0x1fb)]))return;_0x26121f['mWFFY'](_0x3171f6,0x0)&&process[_0x390294(0x1f9)][_0x390294(0x216)]&&_0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f[_0x390294(0x19b)])&&(this[_0x390294(0x237)]['pendingUploads']+=0x1);if(_0x26121f[_0x390294(0x1cb)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f['CnrQU'])||process['env']['BS_A11Y_JWT']||_0x26121f[_0x390294(0x215)](isPercyBuild)){if(_0x26121f[_0x390294(0x1a2)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f['AczvY'])){_0x26121f[_0x390294(0x1a6)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0x26121f[_0x390294(0x1e1)](this[_0x390294(0x237)][_0x390294(0x1f7)],0x1));const _0x723939={};return _0x723939[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x723939[_0x390294(0x1f2)]=_0x26121f[_0x390294(0x22e)],_0x723939;}return await this['sendEventData'](_0xa409ec,_0x3171f6);}else{if(_0x26121f['iFvTr'](_0x3171f6,0x5)){_0x26121f[_0x390294(0x234)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x54f786+_0x390294(0x203));_0x26121f['LXeKL'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x26121f['AczvY'])&&(this[_0x390294(0x237)][_0x390294(0x1f7)]=Math[_0x390294(0x217)](0x0,_0x26121f[_0x390294(0x195)](this['requestQueueHandler']['pendingUploads'],0x1)));const _0x4d0b4d={};return _0x4d0b4d[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x4d0b4d['message']=_0x26121f[_0x390294(0x21a)],_0x4d0b4d;}else _0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f[_0x390294(0x1c1)])&&_0x26121f['KNqwV'](setTimeout,()=>{const _0x3aaa07=_0x390294;this[_0x3aaa07(0x21c)](_0xa409ec,_0x26121f[_0x3aaa07(0x1be)](_0x3171f6,0x1));},0x3e8);}}}module[a87_0x4967eb(0x229)]=SessionHandler;
|
|
1
|
+
const a87_0x45959d=a87_0x4a67;function a87_0x2253(){const _0xaca908=['Authorization','EXCEPTION\x20IN\x20','statusText','logs','HookRunFinished','6729ZrJSFb','3557144IsjMUz','wczEn','cYlvI','ueGlN','GSIxv','Hxrbn','getAgentVersion','jRpIF','browserstackAutomation','BS_TESTOPS_BUILD_HASHED_ID','Content-Type','QfiLA','basename','qjphZ','qKlJP','../../helpers/testhub/utils','mtqqd','uploadEventData','includes','format','RfxPc','haHJE','json','username','allow_screenshots','util','null','Yvsjt','message','launch','jwt','BS_A11Y_JWT','NzQDn','application/json','BS_TESTOPS_BUILD_COMPLETED','BS_TESTOPS_ALLOW_SCREENSHOTS','lEXmF','sBQmU','pgxsb','app','IzjIE','ERROR_INVALID_CREDENTIALS','RAZVS','TestRunStarted','oOYDP','info','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','api/v1/event','success','ERROR_SDK_DEPRECATED','getInstance','status','gvSHw','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','error','wJLIN','TestRunFinished','test_run_uuid','QLydy','Retry\x20runs\x20exceeded','FBxKy','SdpNL','event_type','response','getLogTag','./utils','4255629hnjcBw','CBTSessionCreated','162SNoLCJ','Hook_Start_Upload','brMiR','PBIhw','debug','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','max','toISOString','YGJVu','4pcAYbX','BROWSERSTACK_RERUN','Mpacb','getGitMetaData','Test_Start_Upload','sendEventData','buildName','./constants','5104429HWTtgO','Batch-Queue','huKUE','getUserName','data','api/v1/builds','start','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','errorType','TBURv','getHostInfo','piOHX','tAaxR','UEvBX','cwd','buildDescription','iONBL','env','requestQueueHandler','RbhGb','build_hashed_id','9GWsyQj','pXfDs','HoDpm','password','Hook_End_Upload','HookRunStarted','POST','toString','TestRunSkipped','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','kKTaS','fbshn','zalyT','fcwYR','Bearer\x20','LogCreated','kQvuL','Test_End_Upload','eventUrl','getAccessKey','waitForBuildStatus','OJjiv','../helper','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','gtTBZ','PuyEN','NKVvj','BROWSERSTACK_TESTHUB_JWT','ywpMF','sendTraceZip','uuid','BROWSERSTACK_BUILD_RUN_IDENTIFIER','pendingUploads','WLndL','AjEXq','path','776289bzhSXq','test_run','./requestQueueHandler','PRboT','exports','4688250dvOYFo','POUfk','iZjDK','xtJbS','Sending\x20trace\x20zip\x20for\x20test:\x20','zkXWo','false','5xpupfN','BROWSERSTACK_TESTHUB_UUID','805362OpLhOR','sgWjM','stringify','getCiInfo','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','lQtMA',']\x20event\x20successful!','length','true','buildIdentifier','FFHuI','BS_TESTOPS_JWT','CREDENTIALS_FOR_CRASH_REPORTING','uOSsu','wPfWI'];a87_0x2253=function(){return _0xaca908;};return a87_0x2253();}(function(_0x268b92,_0x22fa16){const _0x27900e=a87_0x4a67,_0x30aeb2=_0x268b92();while(!![]){try{const _0x42e49f=parseInt(_0x27900e(0x113))/0x1*(-parseInt(_0x27900e(0xa7))/0x2)+parseInt(_0x27900e(0xf1))/0x3*(-parseInt(_0x27900e(0xb0))/0x4)+-parseInt(_0x27900e(0xfd))/0x5*(-parseInt(_0x27900e(0xff))/0x6)+parseInt(_0x27900e(0xa5))/0x7+parseInt(_0x27900e(0x114))/0x8+parseInt(_0x27900e(0xcd))/0x9*(-parseInt(_0x27900e(0xf6))/0xa)+parseInt(_0x27900e(0xb8))/0xb;if(_0x42e49f===_0x22fa16)break;else _0x30aeb2['push'](_0x30aeb2['shift']());}catch(_0x30ccef){_0x30aeb2['push'](_0x30aeb2['shift']());}}}(a87_0x2253,0x5c56b));const bsSetupHelper=require(a87_0x45959d(0xe3)),path=require(a87_0x45959d(0xf0)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x45959d(0xa4)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x45959d(0xb7)),RequestQueueHandler=require(a87_0x45959d(0xf3)),logger=require('../logger')['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x45959d(0x72)),util=require(a87_0x45959d(0x7c));class SessionHandler{static [a87_0x45959d(0xca)]=RequestQueueHandler[a87_0x45959d(0x95)]();static async[a87_0x45959d(0x80)](_0x1e7f23,_0x1881c3){const _0x2a0ab9=a87_0x45959d,_0x47fdc6={'kKTaS':function(_0x41700e,_0x4056ef){return _0x41700e||_0x4056ef;},'Hxrbn':function(_0x2f776c,_0x3e1c99){return _0x2f776c===_0x3e1c99;},'piOHX':function(_0x17ddf6,_0x4b141b){return _0x17ddf6(_0x4b141b);},'FLCaQ':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','uOSsu':_0x2a0ab9(0xfc),'hDevv':_0x2a0ab9(0x79),'NzQDn':function(_0x2a01ec,_0x4f92fc){return _0x2a01ec(_0x4f92fc);},'sgWjM':function(_0x4ca5bf,_0x33b506){return _0x4ca5bf(_0x33b506);},'YGJVu':function(_0x4499d6,_0xd5309e,_0x264f7e,_0x19a93a,_0x21b743){return _0x4499d6(_0xd5309e,_0x264f7e,_0x19a93a,_0x21b743);},'QLydy':_0x2a0ab9(0xd3),'UEvBX':_0x2a0ab9(0xbd),'ueGlN':function(_0x2fd014,_0x3e4286){return _0x2fd014(_0x3e4286);},'GSIxv':'Build\x20creation\x20successful!','FFHuI':function(_0x33ecb3){return _0x33ecb3();},'ywpMF':'true','jRpIF':'null','iZjDK':function(_0x17e4af,_0x342187){return _0x17e4af(_0x342187);},'pXfDs':_0x2a0ab9(0x8c),'OrWeh':'ERROR_ACCESS_DENIED','KVtsG':_0x2a0ab9(0x94)},_0x2e8dd3=bsSetupHelper[_0x2a0ab9(0xbb)](_0x1e7f23),_0x23aca8=bsSetupHelper[_0x2a0ab9(0xe0)](_0x1e7f23),_0x3b3930=_0x47fdc6[_0x2a0ab9(0xd7)](_0x2e8dd3,'')+':'+_0x47fdc6['kKTaS'](_0x23aca8,'');if(_0x47fdc6[_0x2a0ab9(0x119)](_0x3b3930,':'))return _0x47fdc6['piOHX'](debug,_0x47fdc6['FLCaQ']),process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x85)]=_0x47fdc6[_0x2a0ab9(0x10c)],[null,null];let _0x43cc6b=![],_0xff433f=![];if(_0x1e7f23['browserstackAutomation']&&_0x1e7f23[_0x2a0ab9(0x8a)])_0xff433f=!![];else _0x1e7f23[_0x2a0ab9(0x11c)]&&(_0x43cc6b=!![]);try{const _0x3a7a93={'format':_0x47fdc6['hDevv'],'project_name':_0x1e7f23['projectName']||'','name':_0x1e7f23[_0x2a0ab9(0xb6)]||path[_0x2a0ab9(0x6f)](path['resolve'](process[_0x2a0ab9(0xc6)]())),'build_identifier':_0x1e7f23[_0x2a0ab9(0x108)],'description':_0x1e7f23[_0x2a0ab9(0xc7)]||'','start_time':new Date()[_0x2a0ab9(0xae)](),'tags':_0x47fdc6[_0x2a0ab9(0xc3)](getCustomTags,_0x1e7f23),'host_info':bsSetupHelper[_0x2a0ab9(0xc2)](),'ci_info':bsSetupHelper[_0x2a0ab9(0x102)](),'build_run_identifier':process[_0x2a0ab9(0xc9)][_0x2a0ab9(0xec)],'failed_tests_rerun':process[_0x2a0ab9(0xc9)][_0x2a0ab9(0xb1)]||![],'version_control':await bsSetupHelper[_0x2a0ab9(0xb3)](),'observability_version':{'frameworkName':_0x1881c3['frameworkName'],'frameworkVersion':_0x1881c3['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x2a0ab9(0x11a)]()},'product_map':_0x47fdc6[_0x2a0ab9(0x83)](getProductMap,_0x1e7f23)},_0x1b1085={};_0x1b1085[_0x2a0ab9(0x7a)]=_0x2e8dd3,_0x1b1085[_0x2a0ab9(0xd0)]=_0x23aca8;const _0x55699b={'auth':_0x1b1085,'headers':_0x47fdc6[_0x2a0ab9(0x100)](getDefaultHeaders,![])},_0xee8d19=await _0x47fdc6[_0x2a0ab9(0xaf)](nodeRequest,_0x47fdc6[_0x2a0ab9(0x9d)],_0x47fdc6[_0x2a0ab9(0xc5)],_0x3a7a93,_0x55699b);_0x47fdc6[_0x2a0ab9(0x117)](debug,_0x47fdc6[_0x2a0ab9(0x118)]);const _0x555e98=_0xee8d19[_0x2a0ab9(0xbc)];_0x555e98[_0x2a0ab9(0xcc)]&&(process[_0x2a0ab9(0xc9)][_0x2a0ab9(0xfe)]=_0x555e98[_0x2a0ab9(0xcc)]);if(_0x47fdc6[_0x2a0ab9(0x109)](isTestObservabilitySession)){process['env'][_0x2a0ab9(0x85)]=_0x47fdc6[_0x2a0ab9(0xe9)];if(_0x555e98[_0x2a0ab9(0x81)]){process['env'][_0x2a0ab9(0x10a)]=_0x555e98[_0x2a0ab9(0x81)];const _0x2d497a={};_0x2d497a[_0x2a0ab9(0x7a)]=_0x2e8dd3,_0x2d497a['password']=_0x23aca8,process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x10b)]=JSON[_0x2a0ab9(0x101)](_0x2d497a);}_0x555e98[_0x2a0ab9(0xcc)]&&(process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x6c)]=_0x555e98[_0x2a0ab9(0xcc)]),_0x555e98[_0x2a0ab9(0x7b)]&&(process['env'][_0x2a0ab9(0x86)]=_0x555e98[_0x2a0ab9(0x7b)][_0x2a0ab9(0xd4)]());}return[_0xee8d19[_0x2a0ab9(0xbc)][_0x2a0ab9(0x81)],_0xee8d19[_0x2a0ab9(0xbc)][_0x2a0ab9(0xcc)],_0xee8d19[_0x2a0ab9(0xbc)][_0x2a0ab9(0x7b)]];}catch(_0x286a21){process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x47fdc6[_0x2a0ab9(0x11b)],process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x85)]=_0x47fdc6[_0x2a0ab9(0x10c)],process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x10a)]=_0x47fdc6[_0x2a0ab9(0x11b)],process[_0x2a0ab9(0xc9)][_0x2a0ab9(0x6c)]=_0x47fdc6[_0x2a0ab9(0x11b)],process['env'][_0x2a0ab9(0x86)]=_0x47fdc6[_0x2a0ab9(0x11b)];_0x286a21[_0x2a0ab9(0xa2)]?_0x47fdc6[_0x2a0ab9(0x117)](debug,_0x2a0ab9(0x98)+_0x286a21[_0x2a0ab9(0xa2)][_0x2a0ab9(0x96)]+'\x20'+_0x286a21['response'][_0x2a0ab9(0x110)]+'\x20'+JSON[_0x2a0ab9(0x101)](_0x286a21[_0x2a0ab9(0xa2)][_0x2a0ab9(0xbc)])):_0x47fdc6[_0x2a0ab9(0xf8)](debug,_0x2a0ab9(0x98)+(_0x286a21[_0x2a0ab9(0x7f)]||_0x286a21));if(_0x286a21&&_0x286a21['message']){const _0x573134=_0x286a21[_0x2a0ab9(0x7f)];switch(_0x286a21[_0x2a0ab9(0xc0)]){case _0x47fdc6[_0x2a0ab9(0xce)]:logger[_0x2a0ab9(0x99)](_0x573134);break;case _0x47fdc6['OrWeh']:logger[_0x2a0ab9(0x90)](_0x573134);break;case _0x47fdc6['KVtsG']:logger[_0x2a0ab9(0x99)](_0x573134);break;default:logger['error'](_0x573134);}}else console[_0x2a0ab9(0x90)](_0x2a0ab9(0x103)+_0x286a21);return[null,null,null];}}static async[a87_0x45959d(0xe1)](){const _0x203090=a87_0x45959d,_0x224990={'AjEXq':_0x203090(0x107),'pgxsb':'false','lEXmF':function(_0x5eeded,_0xb21e59){return _0x5eeded(_0xb21e59);}},_0x18563e=process[_0x203090(0xc9)][_0x203090(0x85)];if([_0x224990[_0x203090(0xef)],_0x224990[_0x203090(0x89)]][_0x203090(0x75)](_0x18563e))return;while([_0x224990[_0x203090(0xef)],_0x224990[_0x203090(0x89)]]['includes'](_0x18563e)){await _0x224990[_0x203090(0x87)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x45959d(0xa3)](_0x5ea86e){const _0x149564=a87_0x45959d,_0x4210ee={};_0x4210ee[_0x149564(0xa9)]=_0x149564(0xb4),_0x4210ee[_0x149564(0xf4)]=_0x149564(0xde),_0x4210ee[_0x149564(0xc8)]='Test_Skipped_Upload',_0x4210ee[_0x149564(0xd8)]='Log_Upload',_0x4210ee['HoDpm']=_0x149564(0xa8),_0x4210ee[_0x149564(0xda)]=_0x149564(0xd1),_0x4210ee[_0x149564(0xe5)]='CBT_Upload';const _0x3d2d93=_0x4210ee,_0xa7c93={};return _0xa7c93[_0x149564(0x8e)]=_0x3d2d93[_0x149564(0xa9)],_0xa7c93[_0x149564(0x9b)]=_0x3d2d93[_0x149564(0xf4)],_0xa7c93[_0x149564(0xd5)]=_0x3d2d93[_0x149564(0xc8)],_0xa7c93[_0x149564(0xdc)]=_0x3d2d93[_0x149564(0xd8)],_0xa7c93[_0x149564(0xd2)]=_0x3d2d93[_0x149564(0xcf)],_0xa7c93[_0x149564(0x112)]=_0x3d2d93[_0x149564(0xda)],_0xa7c93[_0x149564(0xa6)]=_0x3d2d93[_0x149564(0xe5)],_0xa7c93[_0x5ea86e[_0x149564(0xa1)]];}static async['sendEventData'](_0x38ed01,_0x2cdfbf=0x0,_0x13e684=null){const _0x2d1238=a87_0x45959d,_0x5ab63e={'ptKrt':function(_0x17d242,_0x46fd7a){return _0x17d242===_0x46fd7a;},'RAZVS':_0x2d1238(0xea),'wPfWI':function(_0x166e56,_0x163b2a){return _0x166e56!==_0x163b2a;},'haHJE':_0x2d1238(0x84),'RbhGb':_0x2d1238(0x107),'SdpNL':function(_0x40be55,_0x17bfea){return _0x40be55===_0x17bfea;},'Mpacb':function(_0x3b7262,_0x1254ca,_0x4b5b5b,_0x4feb5d,_0x3f583e){return _0x3b7262(_0x1254ca,_0x4b5b5b,_0x4feb5d,_0x3f583e);},'POUfk':_0x2d1238(0xd3),'NKVvj':function(_0x5d2c96,_0x4f9791){return _0x5d2c96(_0x4f9791);},'xtJbS':function(_0x3cd005,_0x530441){return _0x3cd005!==_0x530441;},'IzjIE':_0x2d1238(0xb9),'zalyT':function(_0x14307b,_0x130229){return _0x14307b-_0x130229;},'PBIhw':function(_0x340bb0,_0x199738){return _0x340bb0===_0x199738;},'TBURv':_0x2d1238(0x92),'qKlJP':_0x2d1238(0x93),'gvSHw':function(_0x45f9d2,_0x368337){return _0x45f9d2!==_0x368337;},'PuyEN':function(_0x11aa68,_0x48bd28){return _0x11aa68===_0x48bd28;},'nkfTa':_0x2d1238(0x99)};_0x5ab63e['ptKrt'](_0x13e684,_0x5ab63e['RAZVS'])&&logger['debug'](_0x2d1238(0xfa)+_0x38ed01['logs'][0x0][_0x2d1238(0x9c)]);const _0x3b9543=await this[_0x2d1238(0xa3)](_0x38ed01);let _0xe4c91=_0x38ed01,_0x3d9f98=EVENT_ENDPOINT;_0x5ab63e[_0x2d1238(0x10d)](_0x13e684,_0x5ab63e[_0x2d1238(0x8d)])&&this[_0x2d1238(0xca)][_0x2d1238(0xbe)]();const {shouldProceed:_0xd622f,proceedWithData:_0x22a221,proceedWithUrl:_0x29bc8a}=this[_0x2d1238(0xca)]['add'](_0x38ed01);if(!_0xd622f)return;else _0x22a221&&(_0xe4c91=_0x22a221,_0x3d9f98=_0x29bc8a);const _0x577088={};_0x577088[_0x2d1238(0x10e)]=_0x2d1238(0xdb)+process[_0x2d1238(0xc9)][_0x2d1238(0xe8)],_0x577088[_0x2d1238(0x6d)]=_0x5ab63e[_0x2d1238(0x78)],_0x577088['X-BSTACK-TESTOPS']=_0x5ab63e[_0x2d1238(0xcb)];const _0x55a079={};_0x55a079['headers']=_0x577088;const _0x3abf93=_0x55a079;let _0x46ce9a;try{_0x5ab63e[_0x2d1238(0xa0)](_0x13e684,_0x5ab63e[_0x2d1238(0x8d)])?(logger[_0x2d1238(0xab)](_0x2d1238(0xbf)+_0x38ed01?.['logs'][0x0]?.[_0x2d1238(0x9c)]),_0x46ce9a=await _0x5ab63e[_0x2d1238(0xb2)](asyncAwaitNodeReq,_0x5ab63e['POUfk'],_0x3d9f98,_0xe4c91,_0x3abf93),logger[_0x2d1238(0xab)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x38ed01?.[_0x2d1238(0x111)][0x0]?.[_0x2d1238(0x9c)])):_0x46ce9a=await _0x5ab63e['Mpacb'](nodeRequest,_0x5ab63e[_0x2d1238(0xf7)],_0x3d9f98,_0xe4c91,_0x3abf93);if(_0x46ce9a['data'][_0x2d1238(0x99)]){const _0x8310c3={};_0x8310c3[_0x2d1238(0x7f)]=_0x46ce9a[_0x2d1238(0xbc)][_0x2d1238(0x99)];throw _0x8310c3;}else{_0x5ab63e[_0x2d1238(0xe7)](debug,(_0x5ab63e[_0x2d1238(0xf9)](_0x3d9f98,this[_0x2d1238(0xca)][_0x2d1238(0xdf)])?_0x3b9543:_0x5ab63e[_0x2d1238(0x8b)])+'['+_0x2cdfbf+_0x2d1238(0x105)),this[_0x2d1238(0xca)][_0x2d1238(0xed)]=Math[_0x2d1238(0xad)](0x0,_0x5ab63e[_0x2d1238(0xd9)](this[_0x2d1238(0xca)]['pendingUploads'],_0x5ab63e[_0x2d1238(0xaa)](_0x3d9f98,_0x5ab63e[_0x2d1238(0xc1)])?0x1:_0xe4c91[_0x2d1238(0x106)]));const _0x478e2e={};return _0x478e2e[_0x2d1238(0x96)]=_0x5ab63e[_0x2d1238(0x71)],_0x478e2e[_0x2d1238(0x7f)]='',_0x478e2e;}}catch(_0x6ef797){_0x6ef797[_0x2d1238(0xa2)]?_0x5ab63e[_0x2d1238(0xe7)](debug,_0x2d1238(0x10f)+(_0x5ab63e[_0x2d1238(0x97)](_0x3d9f98,this[_0x2d1238(0xca)][_0x2d1238(0xdf)])?_0x3b9543:_0x5ab63e['IzjIE'])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x6ef797['response'][_0x2d1238(0x96)]+'\x20'+_0x6ef797['response'][_0x2d1238(0x110)]+'\x20'+util[_0x2d1238(0x76)](_0x6ef797[_0x2d1238(0xa2)][_0x2d1238(0xbc)])):_0x5ab63e['NKVvj'](debug,_0x2d1238(0x10f)+(_0x5ab63e['gvSHw'](_0x3d9f98,this[_0x2d1238(0xca)][_0x2d1238(0xdf)])?_0x3b9543:_0x5ab63e[_0x2d1238(0x8b)])+_0x2d1238(0x91)+util[_0x2d1238(0x76)](_0x6ef797));this[_0x2d1238(0xca)][_0x2d1238(0xed)]=Math[_0x2d1238(0xad)](0x0,_0x5ab63e[_0x2d1238(0xd9)](this[_0x2d1238(0xca)][_0x2d1238(0xed)],_0x5ab63e[_0x2d1238(0xe6)](_0x3d9f98,_0x5ab63e[_0x2d1238(0xc1)])?0x1:_0xe4c91[_0x2d1238(0x106)]));const _0x25b1f7={};return _0x25b1f7['status']=_0x5ab63e['nkfTa'],_0x25b1f7[_0x2d1238(0x7f)]=_0x6ef797[_0x2d1238(0x7f)]||(_0x6ef797[_0x2d1238(0xa2)]?_0x6ef797[_0x2d1238(0xa2)]['status']+':'+_0x6ef797[_0x2d1238(0xa2)]['statusText']:_0x6ef797),_0x25b1f7;}}static async[a87_0x45959d(0x74)](_0x2c46a0,_0x13c2dd=0x0){const _0x2c1748=a87_0x45959d,_0x2da268={'huKUE':function(_0x451ebc,_0x5c3b7f){return _0x451ebc+_0x5c3b7f;},'lQtMA':function(_0x1d8811,_0x3083e3){return _0x1d8811(_0x3083e3);},'cYlvI':_0x2c1748(0xf2),'FBxKy':_0x2c1748(0xeb),'nouiu':'hook_run','tAaxR':function(_0xf18a89,_0x353393,_0x2d0cb3){return _0xf18a89(_0x353393,_0x2d0cb3);},'OJjiv':_0x2c1748(0x74),'zkXWo':function(_0x5ecc8c,_0x2cbc7b){return _0x5ecc8c===_0x2cbc7b;},'Yvsjt':function(_0x10ba3c,_0x47ceb4){return _0x10ba3c!==_0x47ceb4;},'qjphZ':_0x2c1748(0x7d),'wJLIN':function(_0x2ab90e,_0x2b021b){return _0x2ab90e===_0x2b021b;},'wczEn':_0x2c1748(0x107),'mtqqd':function(_0x5cc036){return _0x5cc036();},'sBQmU':function(_0x2ed956,_0xca8f19){return _0x2ed956(_0xca8f19);},'WLndL':function(_0x295780,_0x3e687a){return _0x295780-_0x3e687a;},'QfiLA':_0x2c1748(0x99),'fzqJq':_0x2c1748(0xd6),'gJVAZ':function(_0x2b5a35,_0x360a88){return _0x2b5a35>=_0x360a88;},'doier':function(_0x468ffe,_0x1842dd){return _0x468ffe-_0x1842dd;},'kQvuL':_0x2c1748(0x9e),'RfxPc':_0x2c1748(0xfc),'oOYDP':function(_0x994f30,_0x138cfc,_0x4ca2d3){return _0x994f30(_0x138cfc,_0x4ca2d3);}},_0x2afbd0=this[_0x2c1748(0xa3)](_0x2c46a0);_0x2da268[_0x2c1748(0x104)](trace,'Processing\x20event\x20-\x20\x27'+_0x2c46a0[_0x2c1748(0xa1)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x2c46a0,[_0x2da268[_0x2c1748(0x116)],_0x2da268[_0x2c1748(0x9f)]])||bsSetupHelper['nestedKeyValue'](_0x2c46a0,[_0x2da268['nouiu'],_0x2da268[_0x2c1748(0x9f)]])));if(!_0x2da268[_0x2c1748(0xc4)](shouldProcessEventForTesthub,_0x2c46a0['event_type'],_0x2da268[_0x2c1748(0xe2)]))return;_0x2da268[_0x2c1748(0xfb)](_0x13c2dd,0x0)&&process[_0x2c1748(0xc9)]['BROWSERSTACK_TESTHUB_JWT']&&_0x2da268['Yvsjt'](process[_0x2c1748(0xc9)][_0x2c1748(0xe8)],_0x2da268[_0x2c1748(0x70)])&&(this[_0x2c1748(0xca)]['pendingUploads']+=0x1);if(_0x2da268[_0x2c1748(0x9a)](process[_0x2c1748(0xc9)]['BS_TESTOPS_BUILD_COMPLETED'],_0x2da268[_0x2c1748(0x115)])||process[_0x2c1748(0xc9)][_0x2c1748(0x82)]||_0x2da268[_0x2c1748(0x73)](isPercyBuild)){if(_0x2da268[_0x2c1748(0x9a)](process[_0x2c1748(0xc9)][_0x2c1748(0xe8)],_0x2da268[_0x2c1748(0x70)])){_0x2da268[_0x2c1748(0x88)](debug,'EXCEPTION\x20IN\x20'+_0x2afbd0+_0x2c1748(0xe4)),this[_0x2c1748(0xca)]['pendingUploads']=Math[_0x2c1748(0xad)](0x0,_0x2da268[_0x2c1748(0xee)](this['requestQueueHandler'][_0x2c1748(0xed)],0x1));const _0x1f5298={};return _0x1f5298['status']=_0x2da268[_0x2c1748(0x6e)],_0x1f5298[_0x2c1748(0x7f)]=_0x2da268['fzqJq'],_0x1f5298;}return await this[_0x2c1748(0xb5)](_0x2c46a0,_0x13c2dd);}else{if(_0x2da268['gJVAZ'](_0x13c2dd,0x5)){_0x2da268[_0x2c1748(0x88)](debug,_0x2c1748(0x10f)+_0x2afbd0+_0x2c1748(0xac)+_0x2afbd0+'\x20retry\x20runs\x20exceeded');_0x2da268[_0x2c1748(0x7e)](process['env'][_0x2c1748(0xe8)],_0x2da268[_0x2c1748(0x70)])&&(this['requestQueueHandler'][_0x2c1748(0xed)]=Math[_0x2c1748(0xad)](0x0,_0x2da268['doier'](this[_0x2c1748(0xca)][_0x2c1748(0xed)],0x1)));const _0x2c3a57={};return _0x2c3a57[_0x2c1748(0x96)]=_0x2da268['QfiLA'],_0x2c3a57['message']=_0x2da268[_0x2c1748(0xdd)],_0x2c3a57;}else _0x2da268['Yvsjt'](process[_0x2c1748(0xc9)]['BS_TESTOPS_BUILD_COMPLETED'],_0x2da268[_0x2c1748(0x77)])&&_0x2da268[_0x2c1748(0x8f)](setTimeout,()=>{const _0x485b0c=_0x2c1748;this[_0x485b0c(0x74)](_0x2c46a0,_0x2da268[_0x485b0c(0xba)](_0x13c2dd,0x1));},0x3e8);}}}function a87_0x4a67(_0x36c0d2,_0x372eb9){const _0x2253fb=a87_0x2253();return a87_0x4a67=function(_0x4a673d,_0x29de9e){_0x4a673d=_0x4a673d-0x6c;let _0x14eb8f=_0x2253fb[_0x4a673d];return _0x14eb8f;},a87_0x4a67(_0x36c0d2,_0x372eb9);}module[a87_0x45959d(0xf5)]=SessionHandler;
|