browserstack-node-sdk 1.34.53 → 1.34.55

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.
Files changed (138) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/templates/hubharesources/turboscale-uploader.yaml +10 -0
  27. package/ats/src/utils/AWSUtils.js +1 -1
  28. package/ats/src/utils/createAutoscalerStack.js +1 -1
  29. package/ats/src/utils/createClusterStack.js +1 -1
  30. package/ats/src/utils/createHubHaStack.js +1 -1
  31. package/ats/src/utils/createk8sClient.js +1 -1
  32. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  33. package/ats/src/utils/deleteStack.js +1 -1
  34. package/ats/src/utils/describeStack.js +1 -1
  35. package/ats/src/utils/gridComponents.js +1 -1
  36. package/ats/src/utils/hstUtils.js +1 -1
  37. package/ats/src/utils/instrumentationUtils.js +1 -1
  38. package/ats/src/utils/userInput.js +1 -1
  39. package/ats/src/utils/utilityMethods.js +1 -1
  40. package/ats/src/utils/webSocketUtils.js +1 -1
  41. package/package.json +1 -1
  42. package/src/ai-sdk-node/bundle.js +1 -1
  43. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  44. package/src/bin/codeceptjs/command.js +1 -1
  45. package/src/bin/codeceptjs/helper.js +1 -1
  46. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  47. package/src/bin/cucumber-js/command.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/test-observability.js +1 -1
  51. package/src/bin/cucumber-js/test.setup.js +1 -1
  52. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  53. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  54. package/src/bin/integrations/command.js +1 -1
  55. package/src/bin/integrations/constants.js +1 -1
  56. package/src/bin/jest/command.js +1 -1
  57. package/src/bin/jest/customImplements/customCircus.js +1 -1
  58. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  59. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  69. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  70. package/src/bin/mocha/command.js +1 -1
  71. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  72. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  73. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  74. package/src/bin/mocha/test.setup.js +1 -1
  75. package/src/bin/nightwatch/command.js +1 -1
  76. package/src/bin/playwright/accessibility-helper.js +1 -1
  77. package/src/bin/playwright/command.js +1 -1
  78. package/src/bin/playwright/globalSetup.js +1 -1
  79. package/src/bin/playwright/mock-process.js +1 -1
  80. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  81. package/src/bin/playwright/patches.js +1 -1
  82. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  83. package/src/bin/playwright/reporter/reporter.js +1 -1
  84. package/src/bin/playwright/reporter/test-details.js +1 -1
  85. package/src/bin/playwright/sessionDetails.js +1 -1
  86. package/src/bin/runner.js +1 -1
  87. package/src/bin/setup.js +1 -1
  88. package/src/bin/test-runner/index.js +1 -1
  89. package/src/bin/test-runner/runTest.js +1 -1
  90. package/src/bin/test-runner/testWorker.js +1 -1
  91. package/src/bin/utils/constants.js +1 -1
  92. package/src/bin/utils/log4jsAppender.js +1 -1
  93. package/src/bin/utils/logPatcher.js +1 -1
  94. package/src/bin/utils/logReportingAPI.js +1 -1
  95. package/src/bin/vanilla-js/command.js +1 -1
  96. package/src/browserStackSdk.js +1 -1
  97. package/src/helpers/BrowserStackSetup.js +1 -1
  98. package/src/helpers/accessibility-automation/constants.js +1 -1
  99. package/src/helpers/accessibility-automation/helper.js +1 -1
  100. package/src/helpers/accessibility-automation/scripts.js +1 -1
  101. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  102. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  103. package/src/helpers/ats/constants.js +1 -1
  104. package/src/helpers/ats/helper.js +1 -1
  105. package/src/helpers/capsMapping.js +1 -1
  106. package/src/helpers/central-scanner/constants.js +1 -1
  107. package/src/helpers/central-scanner/helpers.js +1 -1
  108. package/src/helpers/globals.js +1 -1
  109. package/src/helpers/helper.js +1 -1
  110. package/src/helpers/logger.js +1 -1
  111. package/src/helpers/metadata.js +1 -1
  112. package/src/helpers/patchHelper.js +1 -1
  113. package/src/helpers/patchHelpers.js +1 -1
  114. package/src/helpers/percy/Percy.js +1 -1
  115. package/src/helpers/percy/PercyBinary.js +1 -1
  116. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  117. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  118. package/src/helpers/percy/PercySDK.js +1 -1
  119. package/src/helpers/percy/index.js +1 -1
  120. package/src/helpers/percy/utils.js +1 -1
  121. package/src/helpers/performance/constants.js +1 -1
  122. package/src/helpers/performance/performance-tester.js +1 -1
  123. package/src/helpers/processHelper.js +1 -1
  124. package/src/helpers/request-spy.js +1 -1
  125. package/src/helpers/setKeepAlive.js +1 -1
  126. package/src/helpers/test-observability/constants.js +1 -1
  127. package/src/helpers/test-observability/error-handler.js +1 -1
  128. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  129. package/src/helpers/test-observability/sessionHandler.js +1 -1
  130. package/src/helpers/test-observability/utils.js +1 -1
  131. package/src/helpers/testhub/constants.js +1 -1
  132. package/src/helpers/testhub/testhubHandler.js +1 -1
  133. package/src/helpers/testhub/utils.js +1 -1
  134. package/src/helpers/timeoutPromise.js +1 -1
  135. package/src/helpers/utilities.js +1 -1
  136. package/src/helpers/w3cMapping.js +1 -1
  137. package/src/hubAllocationMethods.js +1 -1
  138. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a80_0x42ebb2=a80_0x3555;(function(_0x5b9f70,_0x3389f0){const _0x4d9081=a80_0x3555,_0xd14228=_0x5b9f70();while(!![]){try{const _0xfa43a8=-parseInt(_0x4d9081(0x1c2))/0x1*(parseInt(_0x4d9081(0x228))/0x2)+-parseInt(_0x4d9081(0x24f))/0x3*(-parseInt(_0x4d9081(0x1c7))/0x4)+-parseInt(_0x4d9081(0x1e7))/0x5*(parseInt(_0x4d9081(0x261))/0x6)+parseInt(_0x4d9081(0x23e))/0x7+parseInt(_0x4d9081(0x206))/0x8*(parseInt(_0x4d9081(0x214))/0x9)+parseInt(_0x4d9081(0x1e4))/0xa*(parseInt(_0x4d9081(0x266))/0xb)+-parseInt(_0x4d9081(0x224))/0xc;if(_0xfa43a8===_0x3389f0)break;else _0xd14228['push'](_0xd14228['shift']());}catch(_0x2fd0c5){_0xd14228['push'](_0xd14228['shift']());}}}(a80_0x5ebf,0x9d126));function a80_0x3555(_0x26ee1f,_0x319032){const _0x5ebf2b=a80_0x5ebf();return a80_0x3555=function(_0x3555a1,_0x70a8ea){_0x3555a1=_0x3555a1-0x1c2;let _0x489377=_0x5ebf2b[_0x3555a1];return _0x489377;},a80_0x3555(_0x26ee1f,_0x319032);}const fs=require('fs'),fsPromise=require(a80_0x42ebb2(0x230)),{performance,PerformanceObserver}=require(a80_0x42ebb2(0x219)),path=require('path'),util=require(a80_0x42ebb2(0x1db)),logger=require(a80_0x42ebb2(0x24b))['winstonLogger'],{getProcessId,sleep,debug,getTestName}=require(a80_0x42ebb2(0x257));function a80_0x5ebf(){const _0x24ee01=['push','mark','false','SwUnf','eventsMap','catch','start','BROWSERSTACK_SDK_INSTRUMENTATION','getCleanedPerfEvents','readFile','qIolt','entries','8DGppaG','</td><td>','</td></tr>','measure','browserStackCwd','Performance\x20report\x20is\x20at\x20','_observer','performance-report','concat','pushErrors','/performance-report-','JmCaU','duration','failure','3981915VvSlXC','AqtTT','Error\x20while\x20removing\x20files:\x20','_events','reduce','perf_hooks','debug','length','error-report','getEventsFromJSON','errorReportDirName','pQLXG','wplHV','finalizeErrors','Error\x20in\x20doing\x20csv\x20operations:\x20','end','360468mOAIch','mkdirSync','captureError','started','1128488ibwURL','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','apply','hMkBR','jsonReportDirName','_errorEvents','toJSON','stopMonitoring','fs/promises','vMFzo','-end','generateHTMLReport','yZKvK','zUBJy','stringify','ZxJGl','flat','ethMN','finalize','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','parse','grZAS','7741153vHvaaK','getPerformance','unlinkSync','nFQup','calculateTimesFromMultipleFiles','cwd','YPxYQ','Error\x20in\x20writing\x20html\x20','exports','success','UdEix','entryTypes','function','../logger','isEnabled','eGgfK','performance-own.html','1227KpjmNZ','writeFile','log','platform','KGonl','index','FfCWS','aYYbw','../processHelper','splice','toString','-start','ArDFp','meta','slice','.json','errors','egRXZ','273570WJHdKs','errorFile','/error-report-','testName','wLRID','11xfFivO','OSZUK','dqHMZ','2VrGjOx','ZPpXV','wUwvp','finalizePerfMeasures','MgRcz','4968OLCSis','jUKvR','</tbody></table></body></html>','stopAndGenerate','generateJSON','disconnect','startMonitoring','jsonReportFileName','name','xfrIY','readFileSync','ZklpM','QRObA','<tr><td>','all','existsSync','pushPerfMeasures','worker','_measureEvents','Time\x20for\x20','util','OYtuS','entryType','xATtY','writeFileSync','utf-8','jsonReportDirPath','readdir','map','7486910NuzYof','readdirSync','join','110uOfjSh','assign','env','message','forEach','\x20for\x20all\x20processes\x20is\x20','RnbEY','details','mJCUZ','code','VIwQu','appendFileSync','xGcxm','errorReportFileName','format','__platformCaps','fQNeU','calculateTimeFromEvents','fAIQM'];a80_0x5ebf=function(){return _0x24ee01;};return a80_0x5ebf();}class PerformanceTester{static [a80_0x42ebb2(0x20c)];static ['_events']=[];static [a80_0x42ebb2(0x1d9)]=[];static ['_errorEvents']=[];static [a80_0x42ebb2(0x227)]=![];static ['jsonReportDirName']=a80_0x42ebb2(0x20d);static [a80_0x42ebb2(0x1e1)]=process[a80_0x42ebb2(0x1e9)][a80_0x42ebb2(0x20a)]?path['join'](process['env']['browserStackCwd'],this[a80_0x42ebb2(0x22c)]):path['join'](process[a80_0x42ebb2(0x243)](),a80_0x42ebb2(0x251),this['jsonReportDirName']);static ['errorReportDirName']=process[a80_0x42ebb2(0x1e9)]['browserStackCwd']?path[a80_0x42ebb2(0x1e6)](process['env'][a80_0x42ebb2(0x20a)],a80_0x42ebb2(0x21c)):path[a80_0x42ebb2(0x1e6)](process[a80_0x42ebb2(0x243)](),a80_0x42ebb2(0x21c));static [a80_0x42ebb2(0x1ce)]=this[a80_0x42ebb2(0x1e1)]+a80_0x42ebb2(0x210)+getProcessId()+a80_0x42ebb2(0x25e);static [a80_0x42ebb2(0x1f4)]=this[a80_0x42ebb2(0x21e)]+a80_0x42ebb2(0x263)+getProcessId()+a80_0x42ebb2(0x25e);static [a80_0x42ebb2(0x1ee)]={};static [a80_0x42ebb2(0x1fe)]={};static[a80_0x42ebb2(0x1cd)](_0x12030a=this[a80_0x42ebb2(0x1e1)]+a80_0x42ebb2(0x210)+getProcessId()+a80_0x42ebb2(0x25e),_0x2fb44f=this[a80_0x42ebb2(0x21e)]+a80_0x42ebb2(0x263)+getProcessId()+a80_0x42ebb2(0x25e)){const _0x5b768f=a80_0x42ebb2,_0x1ae113={};_0x1ae113['wLRID']=function(_0x29da52,_0x1b9eff){return _0x29da52===_0x1b9eff;},_0x1ae113[_0x5b768f(0x248)]=_0x5b768f(0x209),_0x1ae113[_0x5b768f(0x1d2)]=function(_0xc5f677,_0x398f73){return _0xc5f677+_0x398f73;},_0x1ae113[_0x5b768f(0x1fd)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x1ae113['BasgL']=_0x5b768f(0x24a);const _0x1919fa=_0x1ae113;try{!fs[_0x5b768f(0x1d6)](this['jsonReportDirPath'])&&fs[_0x5b768f(0x225)](this[_0x5b768f(0x1e1)]);}catch(_0x2c1256){logger[_0x5b768f(0x21a)](_0x1919fa[_0x5b768f(0x1d2)](_0x1919fa[_0x5b768f(0x1fd)],_0x2c1256));}if(this[_0x5b768f(0x227)]||!this['isEnabled']())return;this[_0x5b768f(0x20c)]=new PerformanceObserver(_0xf9bdf3=>{const _0x2d3c73=_0x5b768f,_0x52bd12={'sLfjN':function(_0x520713,_0x47eb46){const _0x209866=a80_0x3555;return _0x1919fa[_0x209866(0x265)](_0x520713,_0x47eb46);},'wplHV':_0x1919fa[_0x2d3c73(0x248)]};_0xf9bdf3['getEntries']()[_0x2d3c73(0x1eb)](_0x3fdf3e=>{const _0x25bc00=_0x2d3c73;if(_0x52bd12['sLfjN'](_0x3fdf3e[_0x25bc00(0x1dd)],_0x52bd12[_0x25bc00(0x220)])){let _0x4906c6={};if(_0x3fdf3e['toJSON'])_0x4906c6=_0x3fdf3e[_0x25bc00(0x22e)]();else for(const _0x4afd76 in _0x3fdf3e){_0x4906c6[_0x4afd76]=_0x3fdf3e[_0x4afd76];}this['details'][_0x3fdf3e[_0x25bc00(0x1cf)]]&&(_0x4906c6=Object[_0x25bc00(0x1e8)](_0x4906c6,this[_0x25bc00(0x1ee)][_0x3fdf3e['name']])),delete this[_0x25bc00(0x1ee)][_0x3fdf3e[_0x25bc00(0x1cf)]],this[_0x25bc00(0x1d9)][_0x25bc00(0x1fa)](_0x4906c6);}else this['_events'][_0x25bc00(0x1fa)](_0x3fdf3e);});});const _0xeb3003={};_0xeb3003['buffered']=!![],_0xeb3003[_0x5b768f(0x249)]=[_0x1919fa['BasgL'],_0x1919fa[_0x5b768f(0x248)]],this['_observer']['observe'](_0xeb3003),this[_0x5b768f(0x227)]=!![],this[_0x5b768f(0x1ce)]=_0x12030a,this[_0x5b768f(0x1f4)]=_0x2fb44f;}static[a80_0x42ebb2(0x23f)](){return performance;}static[a80_0x42ebb2(0x1f8)](_0x8d86f0,_0x4d0223){const _0x584760=a80_0x42ebb2,_0x56f96e={};_0x56f96e[_0x584760(0x260)]=function(_0x3fd9dc,_0x828bb0){return _0x3fd9dc+_0x828bb0;},_0x56f96e[_0x584760(0x1ef)]=function(_0x4e951a,_0x256aa1){return _0x4e951a||_0x256aa1;},_0x56f96e[_0x584760(0x21f)]=function(_0x368d17,_0x15eb4a){return _0x368d17===_0x15eb4a;};const _0x28501e=_0x56f96e,_0x5b03ed={};if(!_0x8d86f0||_0x28501e[_0x584760(0x21f)](_0x8d86f0[_0x584760(0x21b)],0x0))return;_0x8d86f0['map'](_0x255d7e=>{const _0x477aaa=_0x584760;!_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]&&(_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]=0x0),_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]+=_0x255d7e[_0x477aaa(0x212)];});const _0x12c897=_0x4d0223[_0x584760(0x218)]((_0x9a068b,_0x4356d6)=>{const _0x18224e=_0x584760;return _0x28501e[_0x18224e(0x260)](_0x5b03ed[_0x4356d6],_0x28501e[_0x18224e(0x1ef)](_0x9a068b,0x0));},0x0);return _0x12c897;}static async[a80_0x42ebb2(0x242)](_0x4d42b8,_0x266d06){const _0x3bcd29=a80_0x42ebb2,_0x4b78ca={'AqtTT':function(_0x473fcd,_0x3f842f){return _0x473fcd+_0x3f842f;},'PbPsi':function(_0x29595b,_0x384f5c){return _0x29595b||_0x384f5c;},'YdeDp':function(_0x55104f,_0x1d0212){return _0x55104f===_0x1d0212;},'FfCWS':function(_0x20c309,_0x3b786f){return _0x20c309(_0x3b786f);},'yZKvK':function(_0x50169d,_0x59fcc5){return _0x50169d(_0x59fcc5);}};if(!_0x4d42b8||_0x4b78ca['YdeDp'](_0x4d42b8[_0x3bcd29(0x21b)],0x0))return 0x0;const _0x270b0a=[];for(const _0x165f05 of _0x4d42b8){const _0x36d560=path[_0x3bcd29(0x1e6)]('.',_0x165f05);try{const _0x368904=this[_0x3bcd29(0x21d)](_0x36d560);_0x368904[_0x3bcd29(0x1e3)](_0x79a0b4=>{const _0x2d0158=_0x3bcd29;!_0x270b0a[_0x79a0b4[_0x2d0158(0x1cf)]]&&(_0x270b0a[_0x79a0b4[_0x2d0158(0x1cf)]]=0x0),_0x270b0a[_0x79a0b4['name']]+=_0x79a0b4[_0x2d0158(0x212)];});}catch(_0x552f98){_0x4b78ca[_0x3bcd29(0x255)](debug,_0x3bcd29(0x222)+_0x552f98[_0x3bcd29(0x259)]());}}const _0x3bae0d=_0x266d06[_0x3bcd29(0x218)]((_0x491289,_0x5b5a22)=>{const _0xaa36be=_0x3bcd29;return _0x4b78ca[_0xaa36be(0x215)](_0x270b0a[_0x5b5a22],_0x4b78ca['PbPsi'](_0x491289,0x0));},0x0);return _0x4b78ca[_0x3bcd29(0x234)](debug,_0x3bcd29(0x1da)+_0x266d06+_0x3bcd29(0x1ec)+_0x3bae0d),_0x3bae0d;}static['getEventsFromJSON'](_0x1b4518){const _0x5eca6a=a80_0x42ebb2;if(_0x1b4518){if(!fs[_0x5eca6a(0x1d6)](_0x1b4518))return[];return JSON[_0x5eca6a(0x23c)](fs[_0x5eca6a(0x1d1)](_0x1b4518)['toString']());}}static async[a80_0x42ebb2(0x1ca)](_0x357b82=a80_0x42ebb2(0x24e),_0x2686fa=null){const _0x352c7c=a80_0x42ebb2,_0x4fc1f7={'YPxYQ':function(_0x373998,_0x205e21){return _0x373998(_0x205e21);},'Exhlt':function(_0x22f64b,_0x3e27cd){return _0x22f64b(_0x3e27cd);}};if(!this['started'])return;await _0x4fc1f7['YPxYQ'](sleep,0x1e),this['_observer'][_0x352c7c(0x1cc)](),this[_0x352c7c(0x227)]=![],this[_0x352c7c(0x1cb)](this[_0x352c7c(0x217)]);const _0x4fd5ef=this[_0x352c7c(0x233)](this[_0x352c7c(0x217)]),_0x5c40a9=path[_0x352c7c(0x1e6)](process['cwd'](),_0x357b82);fs[_0x352c7c(0x250)](_0x5c40a9,_0x4fd5ef,_0x2ef8ea=>{const _0x34cbf6=_0x352c7c;if(_0x2ef8ea){_0x4fc1f7[_0x34cbf6(0x244)](debug,_0x34cbf6(0x245)+_0x2ef8ea[_0x34cbf6(0x259)]());return;}_0x4fc1f7['Exhlt'](debug,_0x34cbf6(0x20b)+_0x5c40a9);});if(_0x2686fa)return this['calculateTimeFromEvents'](this[_0x352c7c(0x217)],_0x2686fa);}static[a80_0x42ebb2(0x233)](_0x365524){const _0x25dc23=a80_0x42ebb2,_0x14e17a={};_0x14e17a['MgRcz']=_0x25dc23(0x229),_0x14e17a[_0x25dc23(0x235)]='<h1>Performance\x20Report</h1>',_0x14e17a[_0x25dc23(0x231)]=_0x25dc23(0x23b),_0x14e17a[_0x25dc23(0x268)]=_0x25dc23(0x1c9);const _0x442fab=_0x14e17a;let _0x11db0a=_0x442fab[_0x25dc23(0x1c6)];return _0x11db0a+=_0x442fab[_0x25dc23(0x235)],_0x11db0a+=_0x442fab[_0x25dc23(0x231)],_0x365524[_0x25dc23(0x1eb)](_0x29d5cd=>{const _0x1b1135=_0x25dc23;_0x11db0a+=_0x1b1135(0x1d4)+_0x29d5cd[_0x1b1135(0x1cf)]+_0x1b1135(0x207)+_0x29d5cd[_0x1b1135(0x212)]+_0x1b1135(0x208);}),_0x11db0a+=_0x442fab[_0x25dc23(0x268)],_0x11db0a;}static[a80_0x42ebb2(0x1cb)](_0x45c3f1){const _0x3f57e5=a80_0x42ebb2;if(!this[_0x3f57e5(0x1ce)])return;const _0x58c64d={};_0x45c3f1[_0x3f57e5(0x1e3)](_0x46b734=>{const _0x27e2ab=_0x3f57e5;!_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]&&(_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]=0x0),_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]+=_0x46b734[_0x27e2ab(0x212)];});const _0x5e1c16=Object[_0x3f57e5(0x205)](_0x58c64d)[_0x3f57e5(0x1e3)](([_0x31ec0e,_0x3bc851])=>{const _0x12083f={};return _0x12083f['name']=_0x31ec0e,_0x12083f['duration']=_0x3bc851,_0x12083f;});fs[_0x3f57e5(0x1df)](this['jsonReportFileName'],JSON['stringify'](_0x5e1c16));}static[a80_0x42ebb2(0x24c)](){const _0x428cb3=a80_0x42ebb2,_0x16b993={};_0x16b993[_0x428cb3(0x22b)]=function(_0x1c91f9,_0x4f18f6){return _0x1c91f9===_0x4f18f6;},_0x16b993[_0x428cb3(0x23d)]=_0x428cb3(0x1fc);const _0x34e439=_0x16b993;return!_0x34e439[_0x428cb3(0x22b)](process[_0x428cb3(0x1e9)][_0x428cb3(0x201)],_0x34e439[_0x428cb3(0x23d)]);}static[a80_0x42ebb2(0x209)](_0x4c1013,_0x2023dd,_0x37feec=null,_0x551470={},_0x3029fa=null){const _0x581d9e=a80_0x42ebb2,_0x1e112d={'ZxJGl':function(_0x1f8c75,_0x988cf4){return _0x1f8c75(_0x988cf4);},'xATtY':function(_0x4719f3,_0x54aa3d){return _0x4719f3(_0x54aa3d);},'OYtuS':function(_0x1c5aad,_0x5dde58){return _0x1c5aad instanceof _0x5dde58;}};try{if(this['started']&&this[_0x581d9e(0x24c)]()){let _0x3416d8=_0x4c1013;_0x37feec&&(_0x3416d8=_0x4c1013+'['+JSON[_0x581d9e(0x236)](_0x37feec)+']');PerformanceTester['start'](_0x3416d8),this[_0x581d9e(0x1ee)]&&(this[_0x581d9e(0x1ee)][_0x3416d8]=_0x551470);try{const _0x164723=_0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);if(_0x1e112d[_0x581d9e(0x1dc)](_0x164723,Promise))return new Promise((_0x15f531,_0x3a8a2f)=>{const _0x4bf876=_0x581d9e,_0x533aaa={'jUKvR':function(_0x573768,_0x5f3c24){const _0x34614d=a80_0x3555;return _0x1e112d[_0x34614d(0x237)](_0x573768,_0x5f3c24);},'fAIQM':function(_0x20e8ac,_0x54cfae){const _0x2f63bd=a80_0x3555;return _0x1e112d[_0x2f63bd(0x1de)](_0x20e8ac,_0x54cfae);}};_0x164723['then'](_0xb1160b=>{const _0x958174=a80_0x3555;PerformanceTester[_0x958174(0x223)](_0x3416d8),_0x533aaa[_0x958174(0x1c8)](_0x15f531,_0xb1160b);})[_0x4bf876(0x1ff)](_0x1d9137=>{const _0x5bbafd=_0x4bf876;PerformanceTester[_0x5bbafd(0x223)](_0x3416d8,![],util[_0x5bbafd(0x1f5)](_0x1d9137)),_0x533aaa[_0x5bbafd(0x1f9)](_0x3a8a2f,_0x1d9137);});});;return PerformanceTester['end'](_0x3416d8),_0x164723;}catch(_0x5b0005){PerformanceTester['end'](_0x3416d8,![],util['format'](_0x5b0005));throw _0x5b0005;}};return _0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);}catch(_0x4af522){return _0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);}}static['measureWrapper'](_0x5443e2,_0x5afd7c,_0x1fa264={}){const _0x437430=a80_0x42ebb2,_0x18e756={'ethMN':function(_0x6f48d9){return _0x6f48d9();}},_0x2cc49d=this;return _0x1fa264[_0x437430(0x1d8)]=_0x18e756[_0x437430(0x239)](getProcessId),_0x1fa264[_0x437430(0x264)]=_0x18e756[_0x437430(0x239)](getTestName),_0x1fa264[_0x437430(0x252)]=global[_0x437430(0x1f6)]&&global['__platformCaps'][_0x437430(0x254)],function(){const _0x4e2855=_0x437430,_0x1ea911=[_0x5443e2,_0x5afd7c,null,_0x1fa264][_0x4e2855(0x20e)](arguments);return _0x2cc49d[_0x4e2855(0x209)]['apply'](_0x2cc49d,_0x1ea911);};}static['getCleanedPerfEvents'](){const _0x1df6c3=a80_0x42ebb2,_0x2a1872=/(^.*)\[(.*)\]$/,_0x5bd5f2={},_0x41a000={},_0x4b3c34=[],_0x366713=this[_0x1df6c3(0x1d9)][_0x1df6c3(0x258)](0x0,this[_0x1df6c3(0x1d9)]['length']);for(const _0x2ad83f of _0x366713){const _0x1b3dd1=_0x2ad83f[_0x1df6c3(0x1cf)]['match'](_0x2a1872),_0x2717b3=Object[_0x1df6c3(0x1e8)]({},_0x2ad83f);_0x1b3dd1&&(_0x2717b3[_0x1df6c3(0x1cf)]=_0x1b3dd1[0x1],_0x2717b3[_0x1df6c3(0x25c)]=JSON['parse'](_0x1b3dd1[0x2])),_0x4b3c34[_0x1df6c3(0x1fa)](_0x2717b3);}return _0x4b3c34;}static['pushPerfMeasures'](){const _0x5146f7=a80_0x42ebb2,_0x35a1bc={};_0x35a1bc[_0x5146f7(0x1d0)]=function(_0x57891a,_0x41b55d){return _0x57891a+_0x41b55d;},_0x35a1bc[_0x5146f7(0x241)]=_0x5146f7(0x216),_0x35a1bc[_0x5146f7(0x1d3)]=function(_0x21bc5a,_0x315dad){return _0x21bc5a===_0x315dad;},_0x35a1bc[_0x5146f7(0x1f3)]=function(_0x8e65fd,_0x4a8fe1){return _0x8e65fd+_0x4a8fe1;};const _0x5ade13=_0x35a1bc;try{if(fs[_0x5146f7(0x1d6)](this[_0x5146f7(0x1e1)])){const _0x57aa00=fs[_0x5146f7(0x1e5)](this[_0x5146f7(0x1e1)]);for(const _0x1650a2 of _0x57aa00){fs[_0x5146f7(0x240)](path[_0x5146f7(0x1e6)](this['jsonReportDirPath'],_0x1650a2));}}}catch(_0x453c3a){logger[_0x5146f7(0x21a)](_0x5ade13[_0x5146f7(0x1d0)](_0x5ade13[_0x5146f7(0x241)],_0x453c3a));}if(_0x5ade13[_0x5146f7(0x1d3)](this[_0x5146f7(0x1d9)][_0x5146f7(0x21b)],0x0))return;const _0x139109=this[_0x5146f7(0x202)](),_0x343490=JSON[_0x5146f7(0x236)](_0x139109),_0x102988=_0x5ade13[_0x5146f7(0x1f3)](_0x343490[_0x5146f7(0x25d)](0x1,-0x1),',');fs[_0x5146f7(0x1f2)](this['jsonReportFileName'],_0x102988);}static async['finalizePerfMeasures'](){const _0x417e34=a80_0x42ebb2,_0x1e0882={};_0x1e0882[_0x417e34(0x1c3)]=function(_0x4dbe4d,_0x397d09){return _0x4dbe4d===_0x397d09;},_0x1e0882[_0x417e34(0x24d)]=function(_0x2766ac,_0x25fa68){return _0x2766ac>_0x25fa68;};const _0x5c75d3=_0x1e0882;if(!this[_0x417e34(0x227)]||_0x5c75d3[_0x417e34(0x1c3)](this['_measureEvents'][_0x417e34(0x21b)],0x0))return[];if(!fs[_0x417e34(0x1d6)](this[_0x417e34(0x1e1)]))return this[_0x417e34(0x1d9)];const _0x4cbae3=(await fsPromise[_0x417e34(0x1e2)](this['jsonReportDirPath']))[_0x417e34(0x1e3)](_0x75d697=>path['resolve'](this[_0x417e34(0x1e1)],_0x75d697));let _0x41ada7=(await Promise[_0x417e34(0x1d5)](_0x4cbae3[_0x417e34(0x1e3)](_0x5b36a2=>fsPromise[_0x417e34(0x203)](_0x5b36a2,_0x417e34(0x1e0)))))[_0x417e34(0x1e3)](_0x3363da=>'['+_0x3363da[_0x417e34(0x25d)](0x0,-0x1)+']')['map'](_0x18b391=>JSON[_0x417e34(0x23c)](_0x18b391))[_0x417e34(0x238)]();return _0x5c75d3[_0x417e34(0x24d)](this[_0x417e34(0x1d9)]['length'],0x0)&&(_0x41ada7=_0x41ada7[_0x417e34(0x20e)](this['getCleanedPerfEvents']())),this[_0x417e34(0x20c)]['disconnect'](),_0x41ada7;}static[a80_0x42ebb2(0x20f)](){const _0x4d67c5=a80_0x42ebb2,_0x4096e={};_0x4096e[_0x4d67c5(0x211)]=function(_0xfe6380,_0x22c49c){return _0xfe6380===_0x22c49c;},_0x4096e[_0x4d67c5(0x256)]=function(_0x3936e5,_0x4886f5){return _0x3936e5+_0x4886f5;};const _0xb21b56=_0x4096e;if(_0xb21b56[_0x4d67c5(0x211)](this['_errorEvents'][_0x4d67c5(0x21b)],0x0))return;const _0x104769=JSON[_0x4d67c5(0x236)](this[_0x4d67c5(0x22d)]),_0x5c3616=_0xb21b56[_0x4d67c5(0x256)](_0x104769[_0x4d67c5(0x25d)](0x1,-0x1),',');fs['appendFileSync'](this[_0x4d67c5(0x262)],_0x5c3616);}static[a80_0x42ebb2(0x221)](){const _0x3e082d=a80_0x42ebb2,_0x3d4cfe={};_0x3d4cfe[_0x3e082d(0x1ed)]=function(_0x2e0fed,_0x55b83b){return _0x2e0fed>_0x55b83b;};const _0x261146=_0x3d4cfe;if(this[_0x3e082d(0x1f4)]){if(!fs[_0x3e082d(0x1d6)](this[_0x3e082d(0x1f4)]))return this[_0x3e082d(0x22d)];let _0xb02da4=fs[_0x3e082d(0x1d1)](this[_0x3e082d(0x1f4)])[_0x3e082d(0x259)]();_0xb02da4='['+_0xb02da4[_0x3e082d(0x25d)](0x0,-0x1)+']';let _0x3380b9=JSON[_0x3e082d(0x23c)](_0xb02da4);return _0x261146[_0x3e082d(0x1ed)](this[_0x3e082d(0x22d)][_0x3e082d(0x21b)],0x0)&&(_0x3380b9=_0x3380b9[_0x3e082d(0x20e)](this[_0x3e082d(0x22d)])),fs[_0x3e082d(0x240)](this[_0x3e082d(0x1f4)]),_0x3380b9;}}static[a80_0x42ebb2(0x226)](_0x5a2685){const _0x518d32=a80_0x42ebb2;if(!this[_0x518d32(0x24c)]())return;this[_0x518d32(0x22d)][_0x518d32(0x1fa)]({'message':_0x5a2685[_0x518d32(0x1ea)],'trace':_0x5a2685['stack'],'code':_0x5a2685[_0x518d32(0x1f0)]||null,'time':new Date()});}static[a80_0x42ebb2(0x22f)](){const _0x53d8ae=a80_0x42ebb2;try{if(!this['isEnabled']())return;this[_0x53d8ae(0x20c)][_0x53d8ae(0x1cc)](),this[_0x53d8ae(0x1d7)](),this[_0x53d8ae(0x20f)]();}catch(_0x4e7df7){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x53d8ae(0x1f5)](_0x4e7df7));}}static async[a80_0x42ebb2(0x23a)](){const _0x2ad177=a80_0x42ebb2,_0x94f93e={'yIzYv':function(_0x1e4a8d,_0x36b19b){return _0x1e4a8d(_0x36b19b);}};await _0x94f93e['yIzYv'](sleep,0x1e);const _0x16c023=await this[_0x2ad177(0x1c5)](),_0x2f1852=this['finalizeErrors']();if(!this[_0x2ad177(0x24c)]()){const _0x2a5770={};return _0x2a5770['measures']=[],_0x2a5770[_0x2ad177(0x25f)]=[],_0x2a5770;}const _0x1b98ab={};return _0x1b98ab['measures']=_0x16c023,_0x1b98ab[_0x2ad177(0x25f)]=_0x2f1852,_0x1b98ab;}static[a80_0x42ebb2(0x200)](_0x2a82e0){const _0x53fc31=a80_0x42ebb2,_0x1d8905={};_0x1d8905[_0x53fc31(0x1f7)]=function(_0x5ed038,_0x468921){return _0x5ed038+_0x468921;},_0x1d8905[_0x53fc31(0x267)]=_0x53fc31(0x25a);const _0x1d139d=_0x1d8905,_0x23befc=_0x1d139d[_0x53fc31(0x1f7)](_0x2a82e0,_0x1d139d[_0x53fc31(0x267)]);if(this['eventsMap'][_0x23befc])return;performance[_0x53fc31(0x1fb)](_0x23befc),this['eventsMap'][_0x23befc]=0x1;}static[a80_0x42ebb2(0x223)](_0x3dfae2,_0x28e7c2=!![],_0x6ca918=null,_0x81d43c={}){const _0x3f962a=a80_0x42ebb2,_0x4a4642={'KGonl':function(_0x176bac,_0x59d222){return _0x176bac+_0x59d222;},'wUwvp':_0x3f962a(0x232),'qIolt':function(_0xdfa227,_0x2b2b33){return _0xdfa227+_0x2b2b33;},'ArDFp':_0x3f962a(0x25a),'VIwQu':function(_0x1014cb){return _0x1014cb();}};performance[_0x3f962a(0x1fb)](_0x4a4642[_0x3f962a(0x253)](_0x3dfae2,_0x4a4642['wUwvp'])),performance[_0x3f962a(0x209)](_0x3dfae2,_0x4a4642[_0x3f962a(0x204)](_0x3dfae2,_0x4a4642[_0x3f962a(0x25b)]),_0x4a4642[_0x3f962a(0x253)](_0x3dfae2,_0x4a4642[_0x3f962a(0x1c4)]));const _0x38aaf0={};_0x38aaf0[_0x3f962a(0x247)]=_0x28e7c2,_0x38aaf0[_0x3f962a(0x213)]=_0x6ca918,this[_0x3f962a(0x1ee)][_0x3dfae2]=Object[_0x3f962a(0x1e8)](_0x38aaf0,Object[_0x3f962a(0x1e8)](Object[_0x3f962a(0x1e8)]({'worker':_0x4a4642['VIwQu'](getProcessId),'platform':global[_0x3f962a(0x1f6)]&&global[_0x3f962a(0x1f6)][_0x3f962a(0x254)],'testName':_0x4a4642[_0x3f962a(0x1f1)](getTestName)},_0x81d43c),this[_0x3f962a(0x1ee)][_0x3dfae2]||{}));}}module[a80_0x42ebb2(0x246)]=PerformanceTester;
1
+ function a80_0x221e(_0xbabf0e,_0x2c415e){const _0x43bb51=a80_0x43bb();return a80_0x221e=function(_0x221e52,_0xb32b60){_0x221e52=_0x221e52-0x179;let _0x66f8b5=_0x43bb51[_0x221e52];return _0x66f8b5;},a80_0x221e(_0xbabf0e,_0x2c415e);}const a80_0x425f11=a80_0x221e;(function(_0x417454,_0x13aa63){const _0x2c2595=a80_0x221e,_0x37bac9=_0x417454();while(!![]){try{const _0x425dca=-parseInt(_0x2c2595(0x1fd))/0x1*(parseInt(_0x2c2595(0x1ce))/0x2)+parseInt(_0x2c2595(0x1a5))/0x3+-parseInt(_0x2c2595(0x1ba))/0x4*(-parseInt(_0x2c2595(0x1ff))/0x5)+parseInt(_0x2c2595(0x198))/0x6+parseInt(_0x2c2595(0x1e7))/0x7*(parseInt(_0x2c2595(0x1b0))/0x8)+-parseInt(_0x2c2595(0x1a9))/0x9+parseInt(_0x2c2595(0x18e))/0xa;if(_0x425dca===_0x13aa63)break;else _0x37bac9['push'](_0x37bac9['shift']());}catch(_0x59dcec){_0x37bac9['push'](_0x37bac9['shift']());}}}(a80_0x43bb,0xa2ca5));const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a80_0x425f11(0x20b)),path=require('path'),util=require(a80_0x425f11(0x1d6)),logger=require(a80_0x425f11(0x1ef))[a80_0x425f11(0x20a)],{getProcessId,sleep,debug,getTestName}=require(a80_0x425f11(0x183));class PerformanceTester{static [a80_0x425f11(0x1da)];static [a80_0x425f11(0x1a0)]=[];static [a80_0x425f11(0x193)]=[];static ['_errorEvents']=[];static [a80_0x425f11(0x18b)]=![];static [a80_0x425f11(0x19c)]='performance-report';static [a80_0x425f11(0x180)]=process['env'][a80_0x425f11(0x1ca)]?path[a80_0x425f11(0x1c3)](process[a80_0x425f11(0x17c)][a80_0x425f11(0x1ca)],this['jsonReportDirName']):path[a80_0x425f11(0x1c3)](process[a80_0x425f11(0x1cb)](),a80_0x425f11(0x211),this['jsonReportDirName']);static ['errorReportDirName']=process[a80_0x425f11(0x17c)][a80_0x425f11(0x1ca)]?path[a80_0x425f11(0x1c3)](process[a80_0x425f11(0x17c)]['browserStackCwd'],'error-report'):path[a80_0x425f11(0x1c3)](process[a80_0x425f11(0x1cb)](),a80_0x425f11(0x195));static [a80_0x425f11(0x1fa)]=this[a80_0x425f11(0x180)]+a80_0x425f11(0x1fb)+getProcessId()+a80_0x425f11(0x1dd);static ['errorReportFileName']=this[a80_0x425f11(0x199)]+'/error-report-'+getProcessId()+a80_0x425f11(0x1dd);static [a80_0x425f11(0x190)]={};static [a80_0x425f11(0x19b)]={};static['startMonitoring'](_0x5d3af4=this['jsonReportDirPath']+a80_0x425f11(0x1fb)+getProcessId()+a80_0x425f11(0x1dd),_0x5d26f2=this[a80_0x425f11(0x199)]+a80_0x425f11(0x204)+getProcessId()+a80_0x425f11(0x1dd)){const _0x297c58=a80_0x425f11,_0x482ea2={};_0x482ea2['HVdik']=function(_0x37ff7e,_0x5a9851){return _0x37ff7e===_0x5a9851;},_0x482ea2[_0x297c58(0x188)]=_0x297c58(0x17a),_0x482ea2[_0x297c58(0x197)]=function(_0x396e32,_0x557804){return _0x396e32+_0x557804;},_0x482ea2['HrPZb']=_0x297c58(0x1b8),_0x482ea2[_0x297c58(0x18a)]=_0x297c58(0x1f2);const _0x5b9c7e=_0x482ea2;try{!fs[_0x297c58(0x1c2)](this['jsonReportDirPath'])&&fs[_0x297c58(0x1ec)](this['jsonReportDirPath']);}catch(_0x560bfd){logger['debug'](_0x5b9c7e[_0x297c58(0x197)](_0x5b9c7e['HrPZb'],_0x560bfd));}if(this['started']||!this['isEnabled']())return;this['_observer']=new PerformanceObserver(_0x4c472f=>{const _0x2ef4f5=_0x297c58;_0x4c472f[_0x2ef4f5(0x1f5)]()[_0x2ef4f5(0x210)](_0x4953a7=>{const _0x348c43=_0x2ef4f5;if(_0x5b9c7e[_0x348c43(0x1db)](_0x4953a7['entryType'],_0x5b9c7e[_0x348c43(0x188)])){let _0x143885={};if(_0x4953a7[_0x348c43(0x1e6)])_0x143885=_0x4953a7['toJSON']();else for(const _0x29a1df in _0x4953a7){_0x143885[_0x29a1df]=_0x4953a7[_0x29a1df];}this[_0x348c43(0x190)][_0x4953a7[_0x348c43(0x1a6)]]&&(_0x143885=Object[_0x348c43(0x19a)](_0x143885,this[_0x348c43(0x190)][_0x4953a7[_0x348c43(0x1a6)]])),delete this[_0x348c43(0x190)][_0x4953a7[_0x348c43(0x1a6)]],this[_0x348c43(0x193)][_0x348c43(0x1d0)](_0x143885);}else this[_0x348c43(0x1a0)][_0x348c43(0x1d0)](_0x4953a7);});});const _0xbe1dda={};_0xbe1dda[_0x297c58(0x1bf)]=!![],_0xbe1dda[_0x297c58(0x1a7)]=[_0x5b9c7e[_0x297c58(0x18a)],_0x5b9c7e[_0x297c58(0x188)]],this[_0x297c58(0x1da)][_0x297c58(0x1d4)](_0xbe1dda),this[_0x297c58(0x18b)]=!![],this[_0x297c58(0x1fa)]=_0x5d3af4,this[_0x297c58(0x1c5)]=_0x5d26f2;}static[a80_0x425f11(0x182)](){return performance;}static['calculateTimeFromEvents'](_0x4f4cf0,_0x52a2ae){const _0x289391=a80_0x425f11,_0x1ed2b1={};_0x1ed2b1[_0x289391(0x1c0)]=function(_0x3410c8,_0x454fb6){return _0x3410c8+_0x454fb6;},_0x1ed2b1['uDzrg']=function(_0x31aa94,_0xc62d50){return _0x31aa94||_0xc62d50;},_0x1ed2b1[_0x289391(0x1e9)]=function(_0x444f35,_0x3c955d){return _0x444f35===_0x3c955d;};const _0x933e23=_0x1ed2b1,_0x9d92c0={};if(!_0x4f4cf0||_0x933e23['AgUUu'](_0x4f4cf0['length'],0x0))return;_0x4f4cf0[_0x289391(0x181)](_0x5a6487=>{const _0x1f3896=_0x289391;!_0x9d92c0[_0x5a6487['name']]&&(_0x9d92c0[_0x5a6487[_0x1f3896(0x1a6)]]=0x0),_0x9d92c0[_0x5a6487['name']]+=_0x5a6487[_0x1f3896(0x207)];});const _0x1cfb5c=_0x52a2ae[_0x289391(0x1ea)]((_0x37687d,_0x2db396)=>{const _0x8142b2=_0x289391;return _0x933e23[_0x8142b2(0x1c0)](_0x9d92c0[_0x2db396],_0x933e23[_0x8142b2(0x1b5)](_0x37687d,0x0));},0x0);return _0x1cfb5c;}static async['calculateTimesFromMultipleFiles'](_0x2c412c,_0x807c54){const _0x530688=a80_0x425f11,_0x1ebb0d={'QmJzX':function(_0xb95a0a,_0x5b5f1f){return _0xb95a0a+_0x5b5f1f;},'Vdymj':function(_0x2efa91,_0x59a1d7){return _0x2efa91||_0x59a1d7;},'ujssr':function(_0x2d0c20,_0x28dd37){return _0x2d0c20===_0x28dd37;},'TEvlg':function(_0x132870,_0x25b0bb){return _0x132870(_0x25b0bb);}};if(!_0x2c412c||_0x1ebb0d['ujssr'](_0x2c412c[_0x530688(0x1c1)],0x0))return 0x0;const _0x2b3ab2=[];for(const _0x547169 of _0x2c412c){const _0x5e5544=path[_0x530688(0x1c3)]('.',_0x547169);try{const _0x3453cb=this[_0x530688(0x20d)](_0x5e5544);_0x3453cb['map'](_0x365f79=>{const _0x1eeef4=_0x530688;!_0x2b3ab2[_0x365f79[_0x1eeef4(0x1a6)]]&&(_0x2b3ab2[_0x365f79['name']]=0x0),_0x2b3ab2[_0x365f79[_0x1eeef4(0x1a6)]]+=_0x365f79[_0x1eeef4(0x207)];});}catch(_0x4f7211){_0x1ebb0d[_0x530688(0x1b7)](debug,_0x530688(0x1de)+_0x4f7211[_0x530688(0x200)]());}}const _0x52fb7d=_0x807c54['reduce']((_0xe5e9a2,_0xcc1ba8)=>{return _0x1ebb0d['QmJzX'](_0x2b3ab2[_0xcc1ba8],_0x1ebb0d['Vdymj'](_0xe5e9a2,0x0));},0x0);return _0x1ebb0d[_0x530688(0x1b7)](debug,_0x530688(0x194)+_0x807c54+_0x530688(0x1d9)+_0x52fb7d),_0x52fb7d;}static[a80_0x425f11(0x20d)](_0xc851f1){const _0x9c2b62=a80_0x425f11;if(_0xc851f1){if(!fs['existsSync'](_0xc851f1))return[];return JSON[_0x9c2b62(0x1b3)](fs[_0x9c2b62(0x20e)](_0xc851f1)['toString']());}}static async[a80_0x425f11(0x1ee)](_0x300e6a=a80_0x425f11(0x185),_0x2deb69=null){const _0x49f903=a80_0x425f11,_0x1e66df={'tMTvQ':function(_0x54975f,_0x1023fd){return _0x54975f(_0x1023fd);},'lYKdH':function(_0x3c6685,_0x56b59d){return _0x3c6685(_0x56b59d);},'WHWEK':function(_0x98ba16,_0x53dc00){return _0x98ba16(_0x53dc00);}};if(!this['started'])return;await _0x1e66df[_0x49f903(0x1cc)](sleep,0x1e),this['_observer'][_0x49f903(0x1f7)](),this['started']=![],this['generateJSON'](this[_0x49f903(0x1a0)]);const _0x377790=this['generateHTMLReport'](this[_0x49f903(0x1a0)]),_0x5c291f=path[_0x49f903(0x1c3)](process[_0x49f903(0x1cb)](),_0x300e6a);fs[_0x49f903(0x1c7)](_0x5c291f,_0x377790,_0x5acf62=>{const _0x84019c=_0x49f903;if(_0x5acf62){_0x1e66df[_0x84019c(0x1ed)](debug,_0x84019c(0x179)+_0x5acf62['toString']());return;}_0x1e66df[_0x84019c(0x1a3)](debug,'Performance\x20report\x20is\x20at\x20'+_0x5c291f);});if(_0x2deb69)return this[_0x49f903(0x1dc)](this['_events'],_0x2deb69);}static['generateHTMLReport'](_0x1ea097){const _0x25b307=a80_0x425f11,_0xcb2cbe={};_0xcb2cbe[_0x25b307(0x17e)]=_0x25b307(0x20c),_0xcb2cbe[_0x25b307(0x1ac)]=_0x25b307(0x18c),_0xcb2cbe[_0x25b307(0x192)]=_0x25b307(0x18d),_0xcb2cbe[_0x25b307(0x205)]=_0x25b307(0x1d8);const _0x26ac6d=_0xcb2cbe;let _0x92a99f=_0x26ac6d[_0x25b307(0x17e)];return _0x92a99f+=_0x26ac6d[_0x25b307(0x1ac)],_0x92a99f+=_0x26ac6d[_0x25b307(0x192)],_0x1ea097[_0x25b307(0x210)](_0x544a53=>{const _0x50ca4e=_0x25b307;_0x92a99f+=_0x50ca4e(0x1af)+_0x544a53[_0x50ca4e(0x1a6)]+'</td><td>'+_0x544a53[_0x50ca4e(0x207)]+_0x50ca4e(0x1bc);}),_0x92a99f+=_0x26ac6d[_0x25b307(0x205)],_0x92a99f;}static['generateJSON'](_0x37054f){const _0x53619a=a80_0x425f11;if(!this['jsonReportFileName'])return;const _0x60f828={};_0x37054f[_0x53619a(0x181)](_0xf76d50=>{const _0x57caee=_0x53619a;!_0x60f828[_0xf76d50[_0x57caee(0x1a6)]]&&(_0x60f828[_0xf76d50[_0x57caee(0x1a6)]]=0x0),_0x60f828[_0xf76d50[_0x57caee(0x1a6)]]+=_0xf76d50[_0x57caee(0x207)];});const _0x5e374d=Object['entries'](_0x60f828)[_0x53619a(0x181)](([_0x316235,_0x5cd6ae])=>{const _0x3f01e2=_0x53619a,_0x11cd6={};return _0x11cd6[_0x3f01e2(0x1a6)]=_0x316235,_0x11cd6[_0x3f01e2(0x207)]=_0x5cd6ae,_0x11cd6;});fs['writeFileSync'](this['jsonReportFileName'],JSON['stringify'](_0x5e374d));}static[a80_0x425f11(0x1f8)](){const _0x4ca946=a80_0x425f11,_0x452bc3={};_0x452bc3['gxHhh']=function(_0x5e6d67,_0x300423){return _0x5e6d67===_0x300423;},_0x452bc3['GvmpU']='false';const _0x3d698f=_0x452bc3;return!_0x3d698f[_0x4ca946(0x1e8)](process[_0x4ca946(0x17c)][_0x4ca946(0x1ae)],_0x3d698f[_0x4ca946(0x184)]);}static['measure'](_0x10a30c,_0x4d3a74,_0x4265ae=null,_0xcee3a3={},_0x1bd280=null){const _0x59a246=a80_0x425f11,_0x48edf9={'McCiw':function(_0x5a0edd,_0x122074){return _0x5a0edd(_0x122074);},'JDLlX':function(_0x257722,_0x26b9d9){return _0x257722 instanceof _0x26b9d9;}};try{if(this[_0x59a246(0x18b)]&&this[_0x59a246(0x1f8)]()){let _0x2768fb=_0x10a30c;_0x4265ae&&(_0x2768fb=_0x10a30c+'['+JSON[_0x59a246(0x206)](_0x4265ae)+']');PerformanceTester[_0x59a246(0x1ab)](_0x2768fb),this[_0x59a246(0x190)]&&(this[_0x59a246(0x190)][_0x2768fb]=_0xcee3a3);try{const _0xea123c=_0x4d3a74[_0x59a246(0x1cf)](null,_0x1bd280);if(_0x48edf9[_0x59a246(0x17b)](_0xea123c,Promise))return new Promise((_0x1be25b,_0x463e11)=>{const _0x57ab23=_0x59a246,_0x4a3e6d={'DstLT':function(_0x2ba60e,_0x289b7){return _0x48edf9['McCiw'](_0x2ba60e,_0x289b7);}};_0xea123c[_0x57ab23(0x1e3)](_0x2f685a=>{const _0x26168d=_0x57ab23;PerformanceTester[_0x26168d(0x1c8)](_0x2768fb),_0x4a3e6d[_0x26168d(0x201)](_0x1be25b,_0x2f685a);})['catch'](_0x107a73=>{const _0x46b0fe=_0x57ab23;PerformanceTester['end'](_0x2768fb,![],util[_0x46b0fe(0x1f0)](_0x107a73)),_0x4a3e6d[_0x46b0fe(0x201)](_0x463e11,_0x107a73);});});;return PerformanceTester['end'](_0x2768fb),_0xea123c;}catch(_0x24675a){PerformanceTester[_0x59a246(0x1c8)](_0x2768fb,![],util[_0x59a246(0x1f0)](_0x24675a));throw _0x24675a;}};return _0x4d3a74['apply'](null,_0x1bd280);}catch(_0x574418){return _0x4d3a74[_0x59a246(0x1cf)](null,_0x1bd280);}}static[a80_0x425f11(0x1bd)](_0x5ddec1,_0x1fc4f4,_0x5382c9={}){const _0x5a55d7=a80_0x425f11,_0x65648f={'CmDjf':function(_0x5396f1){return _0x5396f1();},'maVyV':function(_0x39def4){return _0x39def4();}},_0x46e700=this;return _0x5382c9[_0x5a55d7(0x1e1)]=_0x65648f[_0x5a55d7(0x1f3)](getProcessId),_0x5382c9[_0x5a55d7(0x1d3)]=_0x65648f[_0x5a55d7(0x1d7)](getTestName),_0x5382c9[_0x5a55d7(0x1c6)]=global[_0x5a55d7(0x1c9)]&&global['__platformCaps'][_0x5a55d7(0x191)],function(){const _0x590cd4=_0x5a55d7,_0xde1f94=[_0x5ddec1,_0x1fc4f4,null,_0x5382c9][_0x590cd4(0x1e0)](arguments);return _0x46e700[_0x590cd4(0x17a)][_0x590cd4(0x1cf)](_0x46e700,_0xde1f94);};}static['getCleanedPerfEvents'](){const _0x432102=a80_0x425f11,_0x96f9dc=/(^.*)\[(.*)\]$/,_0x2dc7a6={},_0xf02c5a={},_0x68cc43=[],_0x595da8=this[_0x432102(0x193)][_0x432102(0x1e4)](0x0,this[_0x432102(0x193)]['length']);for(const _0x8b2f23 of _0x595da8){const _0x562d2a=_0x8b2f23['name'][_0x432102(0x17d)](_0x96f9dc),_0x1faaf8=Object[_0x432102(0x19a)]({},_0x8b2f23);_0x562d2a&&(_0x1faaf8[_0x432102(0x1a6)]=_0x562d2a[0x1],_0x1faaf8[_0x432102(0x19d)]=JSON[_0x432102(0x1b3)](_0x562d2a[0x2])),_0x68cc43[_0x432102(0x1d0)](_0x1faaf8);}return _0x68cc43;}static[a80_0x425f11(0x1d1)](){const _0x725959=a80_0x425f11,_0x2fc6e4={};_0x2fc6e4[_0x725959(0x208)]=function(_0x2143da,_0x3c7de4){return _0x2143da+_0x3c7de4;},_0x2fc6e4[_0x725959(0x19e)]='Error\x20while\x20removing\x20files:\x20',_0x2fc6e4[_0x725959(0x18f)]=function(_0x43f348,_0x2babc9){return _0x43f348===_0x2babc9;};const _0x4f2174=_0x2fc6e4;try{if(fs['existsSync'](this[_0x725959(0x180)])){const _0x22630a=fs[_0x725959(0x1c4)](this[_0x725959(0x180)]);for(const _0x18da83 of _0x22630a){fs[_0x725959(0x1fc)](path[_0x725959(0x1c3)](this[_0x725959(0x180)],_0x18da83));}}}catch(_0x42a399){logger[_0x725959(0x189)](_0x4f2174[_0x725959(0x208)](_0x4f2174[_0x725959(0x19e)],_0x42a399));}if(_0x4f2174['MqKsY'](this['_measureEvents'][_0x725959(0x1c1)],0x0))return;const _0x4994f6=this['getCleanedPerfEvents'](),_0x458ebd=JSON[_0x725959(0x206)](_0x4994f6),_0x39fb0a=_0x4f2174[_0x725959(0x208)](_0x458ebd['slice'](0x1,-0x1),',');fs[_0x725959(0x1ad)](this['jsonReportFileName'],_0x39fb0a);}static async['finalizePerfMeasures'](){const _0x513430=a80_0x425f11,_0x1af972={};_0x1af972[_0x513430(0x1eb)]=function(_0x1ac4be,_0x454742){return _0x1ac4be===_0x454742;},_0x1af972[_0x513430(0x1a4)]=function(_0x3006e6,_0x10200a){return _0x3006e6>_0x10200a;};const _0x297567=_0x1af972;if(!this[_0x513430(0x18b)]||_0x297567[_0x513430(0x1eb)](this[_0x513430(0x193)][_0x513430(0x1c1)],0x0))return[];if(!fs[_0x513430(0x1c2)](this[_0x513430(0x180)]))return this[_0x513430(0x193)];const _0x1ddb6f=(await fsPromise[_0x513430(0x1b2)](this[_0x513430(0x180)]))[_0x513430(0x181)](_0x8f37c8=>path[_0x513430(0x1bb)](this[_0x513430(0x180)],_0x8f37c8));let _0x46ccdf=(await Promise['all'](_0x1ddb6f[_0x513430(0x181)](_0x1ea207=>fsPromise['readFile'](_0x1ea207,'utf-8'))))[_0x513430(0x181)](_0xcd5aa4=>'['+_0xcd5aa4['slice'](0x0,-0x1)+']')[_0x513430(0x181)](_0x91bf7c=>JSON[_0x513430(0x1b3)](_0x91bf7c))[_0x513430(0x1a2)]();return _0x297567[_0x513430(0x1a4)](this[_0x513430(0x193)][_0x513430(0x1c1)],0x0)&&(_0x46ccdf=_0x46ccdf[_0x513430(0x1e0)](this[_0x513430(0x1a1)]())),this[_0x513430(0x1da)][_0x513430(0x1f7)](),_0x46ccdf;}static[a80_0x425f11(0x20f)](){const _0x5eb2f7=a80_0x425f11,_0x36e966={};_0x36e966['AyIaF']=function(_0x43c77b,_0x323938){return _0x43c77b===_0x323938;},_0x36e966['vgHQe']=function(_0x30e1b6,_0x44b140){return _0x30e1b6+_0x44b140;};const _0x4ddcb5=_0x36e966;if(_0x4ddcb5[_0x5eb2f7(0x1aa)](this[_0x5eb2f7(0x196)]['length'],0x0))return;const _0x4cea1d=JSON[_0x5eb2f7(0x206)](this[_0x5eb2f7(0x196)]),_0x3ae19e=_0x4ddcb5['vgHQe'](_0x4cea1d[_0x5eb2f7(0x1f4)](0x1,-0x1),',');fs['appendFileSync'](this[_0x5eb2f7(0x1e2)],_0x3ae19e);}static['finalizeErrors'](){const _0x40a826=a80_0x425f11,_0x1f2216={};_0x1f2216[_0x40a826(0x1b4)]=function(_0x4393d9,_0x570117){return _0x4393d9>_0x570117;};const _0x1bbf48=_0x1f2216;if(this['errorReportFileName']){if(!fs[_0x40a826(0x1c2)](this['errorReportFileName']))return this['_errorEvents'];let _0x2db7ca=fs[_0x40a826(0x20e)](this[_0x40a826(0x1c5)])[_0x40a826(0x200)]();_0x2db7ca='['+_0x2db7ca['slice'](0x0,-0x1)+']';let _0x233ae6=JSON[_0x40a826(0x1b3)](_0x2db7ca);return _0x1bbf48[_0x40a826(0x1b4)](this['_errorEvents'][_0x40a826(0x1c1)],0x0)&&(_0x233ae6=_0x233ae6[_0x40a826(0x1e0)](this[_0x40a826(0x196)])),fs[_0x40a826(0x1fc)](this['errorReportFileName']),_0x233ae6;}}static[a80_0x425f11(0x187)](_0x56e27b){const _0x1616b6=a80_0x425f11;if(!this[_0x1616b6(0x1f8)]())return;this[_0x1616b6(0x196)][_0x1616b6(0x1d0)]({'message':_0x56e27b[_0x1616b6(0x1b1)],'trace':_0x56e27b['stack'],'code':_0x56e27b[_0x1616b6(0x1a8)]||null,'time':new Date()});}static['stopMonitoring'](){const _0xbafb98=a80_0x425f11;try{if(!this[_0xbafb98(0x1f8)]())return;this[_0xbafb98(0x1da)][_0xbafb98(0x1f7)](),this['pushPerfMeasures'](),this[_0xbafb98(0x20f)]();}catch(_0x1b85eb){logger[_0xbafb98(0x189)](_0xbafb98(0x1d5)+util[_0xbafb98(0x1f0)](_0x1b85eb));}}static async[a80_0x425f11(0x1d2)](){const _0x4f15fb=a80_0x425f11,_0x41bd39={'lvDDs':function(_0x372e9e,_0x5f494a){return _0x372e9e(_0x5f494a);}};await _0x41bd39['lvDDs'](sleep,0x1e);const _0xc89bdc=await this[_0x4f15fb(0x17f)](),_0x27aef6=this[_0x4f15fb(0x1e5)]();if(!this[_0x4f15fb(0x1f8)]()){const _0x415a4c={};return _0x415a4c[_0x4f15fb(0x186)]=[],_0x415a4c[_0x4f15fb(0x209)]=[],_0x415a4c;}const _0x3b4e64={};return _0x3b4e64[_0x4f15fb(0x186)]=_0xc89bdc,_0x3b4e64['errors']=_0x27aef6,_0x3b4e64;}static[a80_0x425f11(0x1ab)](_0x1ab780){const _0x208db6=a80_0x425f11,_0x172df9={};_0x172df9[_0x208db6(0x203)]=function(_0x33a785,_0x8a65a4){return _0x33a785+_0x8a65a4;},_0x172df9[_0x208db6(0x1be)]=_0x208db6(0x1f6);const _0x1aad6f=_0x172df9,_0x58700f=_0x1aad6f['WoqDU'](_0x1ab780,_0x1aad6f['ZDfaF']);if(this['eventsMap'][_0x58700f])return;performance[_0x208db6(0x1df)](_0x58700f),this[_0x208db6(0x19b)][_0x58700f]=0x1;}static[a80_0x425f11(0x1c8)](_0xada10d,_0x3efe28=!![],_0x1dc9ff=null,_0x2c2765={}){const _0x572385=a80_0x425f11,_0x4d28ca={'ydKpI':function(_0x4d66a4,_0x2be929){return _0x4d66a4+_0x2be929;},'fuDdd':_0x572385(0x202),'BWFua':_0x572385(0x1f6),'qdaNE':function(_0x304b60){return _0x304b60();}};performance['mark'](_0x4d28ca['ydKpI'](_0xada10d,_0x4d28ca[_0x572385(0x19f)])),performance[_0x572385(0x17a)](_0xada10d,_0x4d28ca['ydKpI'](_0xada10d,_0x4d28ca[_0x572385(0x1b6)]),_0x4d28ca[_0x572385(0x1f9)](_0xada10d,_0x4d28ca[_0x572385(0x19f)]));const _0x591db3={};_0x591db3[_0x572385(0x1f1)]=_0x3efe28,_0x591db3[_0x572385(0x1b9)]=_0x1dc9ff,this[_0x572385(0x190)][_0xada10d]=Object['assign'](_0x591db3,Object[_0x572385(0x19a)](Object[_0x572385(0x19a)]({'worker':_0x4d28ca['qdaNE'](getProcessId),'platform':global['__platformCaps']&&global['__platformCaps']['index'],'testName':_0x4d28ca[_0x572385(0x1cd)](getTestName)},_0x2c2765),this[_0x572385(0x190)][_0xada10d]||{}));}}module[a80_0x425f11(0x1fe)]=PerformanceTester;function a80_0x43bb(){const _0x4c710e=['forEach','log','Error\x20in\x20writing\x20html\x20','measure','JDLlX','env','match','lIgyo','finalizePerfMeasures','jsonReportDirPath','map','getPerformance','../processHelper','GvmpU','performance-own.html','measures','captureError','oeCKI','debug','xTcXu','started','<h1>Performance\x20Report</h1>','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','20397430uVNlNT','MqKsY','details','index','GzjrV','_measureEvents','Time\x20for\x20','error-report','_errorEvents','outLK','3742230NFFLQJ','errorReportDirName','assign','eventsMap','jsonReportDirName','meta','KXXqu','fuDdd','_events','getCleanedPerfEvents','flat','lYKdH','TxWTA','416853uWdZxi','name','entryTypes','code','8942463VyiVbd','AyIaF','start','SKVhU','appendFileSync','BROWSERSTACK_SDK_INSTRUMENTATION','<tr><td>','187008OJFWAd','message','readdir','parse','xoOUU','uDzrg','BWFua','TEvlg','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','failure','1260owcSxN','resolve','</td></tr>','measureWrapper','ZDfaF','buffered','bMFHc','length','existsSync','join','readdirSync','errorReportFileName','platform','writeFile','end','__platformCaps','browserStackCwd','cwd','WHWEK','qdaNE','956eMkXul','apply','push','pushPerfMeasures','finalize','testName','observe','Error\x20stopping\x20monitoring\x20','util','maVyV','</tbody></table></body></html>','\x20for\x20all\x20processes\x20is\x20','_observer','HVdik','calculateTimeFromEvents','.json','Error\x20in\x20doing\x20csv\x20operations:\x20','mark','concat','worker','errorFile','then','splice','finalizeErrors','toJSON','7PZtGzh','gxHhh','AgUUu','reduce','GPmCX','mkdirSync','tMTvQ','stopAndGenerate','../logger','format','success','function','CmDjf','slice','getEntries','-start','disconnect','isEnabled','ydKpI','jsonReportFileName','/performance-report-','unlinkSync','2498qCktji','exports','455ExxcvV','toString','DstLT','-end','WoqDU','/error-report-','nmXIn','stringify','duration','XgcSu','errors','winstonLogger','perf_hooks','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','getEventsFromJSON','readFileSync','pushErrors'];a80_0x43bb=function(){return _0x4c710e;};return a80_0x43bb();}
@@ -1 +1 @@
1
- function a81_0x2df8(){const _0x5c90a7=['debug','./test-observability/constants','2229292bHLYOk','7577559PDwHqS','env','./globals','92185afPySE','BROWSERSTACK_OBSERVABILITY_DEBUG','][\x20OBSERVABILITY\x20]\x20','1351zVhjbY','3JNeVVT','43800NsQHsj','threadId','worker_threads','40040280gPPIos','151GuGuSv','WEqcy','YoRbV','pbxqP','96XwjKNW','log','browserstackTestName','69707duineu','true','1250ZmdISu','9928kzpwXa','sleep','getProcessId'];a81_0x2df8=function(){return _0x5c90a7;};return a81_0x2df8();}const a81_0x38fbad=a81_0x5e32;(function(_0x6e2265,_0x33e3b4){const _0x5547e3=a81_0x5e32,_0x1005df=_0x6e2265();while(!![]){try{const _0x343401=-parseInt(_0x5547e3(0xcb))/0x1*(-parseInt(_0x5547e3(0xb9))/0x2)+-parseInt(_0x5547e3(0xc6))/0x3*(parseInt(_0x5547e3(0xbe))/0x4)+parseInt(_0x5547e3(0xc2))/0x5*(-parseInt(_0x5547e3(0xcf))/0x6)+parseInt(_0x5547e3(0xc5))/0x7*(-parseInt(_0x5547e3(0xc7))/0x8)+-parseInt(_0x5547e3(0xbf))/0x9+parseInt(_0x5547e3(0xb8))/0xa*(-parseInt(_0x5547e3(0xd2))/0xb)+parseInt(_0x5547e3(0xca))/0xc;if(_0x343401===_0x33e3b4)break;else _0x1005df['push'](_0x1005df['shift']());}catch(_0x3274f7){_0x1005df['push'](_0x1005df['shift']());}}}(a81_0x2df8,0x849d4));function a81_0x5e32(_0x506008,_0x343c0a){const _0x2df842=a81_0x2df8();return a81_0x5e32=function(_0x5e3270,_0x522c2e){_0x5e3270=_0x5e3270-0xb8;let _0x2d6e48=_0x2df842[_0x5e3270];return _0x2d6e48;},a81_0x5e32(_0x506008,_0x343c0a);}const worker=require(a81_0x38fbad(0xc9)),{fileLogger}=require('./logger'),{consoleHolder}=require(a81_0x38fbad(0xbd)),globals=require(a81_0x38fbad(0xc1));exports[a81_0x38fbad(0xbb)]=()=>{const _0x201e45=a81_0x38fbad;return process['pid']+'-'+worker[_0x201e45(0xc8)];},exports['getTestName']=()=>{const _0x53d11f=a81_0x38fbad,_0x404cea={};_0x404cea[_0x53d11f(0xcc)]=_0x53d11f(0xd1);const _0x598c78=_0x404cea;return globals['getGlobal'](_0x598c78[_0x53d11f(0xcc)]);},exports[a81_0x38fbad(0xba)]=(_0xb4faa0=0x64)=>new Promise(_0x2839b5=>setTimeout(_0x2839b5,_0xb4faa0)),exports[a81_0x38fbad(0xbc)]=_0x490799=>{const _0x4d9adb=a81_0x38fbad,_0x9f6263={};_0x9f6263['YoRbV']=function(_0x29aae9,_0x556362){return _0x29aae9===_0x556362;},_0x9f6263[_0x4d9adb(0xce)]=_0x4d9adb(0xd3);const _0x358028=_0x9f6263;fileLogger[_0x4d9adb(0xbc)]('['+new Date()['toISOString']()+_0x4d9adb(0xc4)+_0x490799),(_0x358028[_0x4d9adb(0xcd)](process[_0x4d9adb(0xc0)][_0x4d9adb(0xc3)],_0x358028['pbxqP'])||_0x358028[_0x4d9adb(0xcd)](process[_0x4d9adb(0xc0)][_0x4d9adb(0xc3)],'1'))&&consoleHolder[_0x4d9adb(0xd0)]('\x0a['+new Date()['toISOString']()+_0x4d9adb(0xc4)+_0x490799+'\x0a');};
1
+ const a81_0x366e6b=a81_0x5842;(function(_0x22b5d7,_0x11a0fa){const _0x4ecf39=a81_0x5842,_0xfed6c=_0x22b5d7();while(!![]){try{const _0x3f6031=parseInt(_0x4ecf39(0x1a7))/0x1*(-parseInt(_0x4ecf39(0x1a4))/0x2)+parseInt(_0x4ecf39(0x1ae))/0x3+-parseInt(_0x4ecf39(0x1a6))/0x4+parseInt(_0x4ecf39(0x1af))/0x5*(parseInt(_0x4ecf39(0x196))/0x6)+parseInt(_0x4ecf39(0x1b0))/0x7*(parseInt(_0x4ecf39(0x1ad))/0x8)+-parseInt(_0x4ecf39(0x1ab))/0x9+parseInt(_0x4ecf39(0x19b))/0xa*(-parseInt(_0x4ecf39(0x198))/0xb);if(_0x3f6031===_0x11a0fa)break;else _0xfed6c['push'](_0xfed6c['shift']());}catch(_0x23a970){_0xfed6c['push'](_0xfed6c['shift']());}}}(a81_0x37b8,0x50a27));const worker=require(a81_0x366e6b(0x194)),{fileLogger}=require(a81_0x366e6b(0x1ac)),{consoleHolder}=require(a81_0x366e6b(0x19a)),globals=require(a81_0x366e6b(0x19c));function a81_0x5842(_0x1b3694,_0x2d2ad8){const _0x37b8a7=a81_0x37b8();return a81_0x5842=function(_0x584282,_0x2a3c53){_0x584282=_0x584282-0x194;let _0x447e93=_0x37b8a7[_0x584282];return _0x447e93;},a81_0x5842(_0x1b3694,_0x2d2ad8);}function a81_0x37b8(){const _0x48868a=['30EWFUZQ','./globals','debug','AHaDC','true','getTestName','sleep','getProcessId','toISOString','183676ZOYTCf','threadId','379432cWvNjJ','2NoFOxo','env','BROWSERSTACK_OBSERVABILITY_DEBUG','][\x20OBSERVABILITY\x20]\x20','3800520YRNpLu','./logger','302696vlHLkQ','1170795ibBsRL','15FSxhZe','91PiAvqY','worker_threads','log','356928KGyXPS','pid','108229RMIByV','DcihJ','./test-observability/constants'];a81_0x37b8=function(){return _0x48868a;};return a81_0x37b8();}exports[a81_0x366e6b(0x1a2)]=()=>{const _0x48c421=a81_0x366e6b;return process[_0x48c421(0x197)]+'-'+worker[_0x48c421(0x1a5)];},exports[a81_0x366e6b(0x1a0)]=()=>{const _0x4e4271=a81_0x366e6b,_0x54ec4e={};_0x54ec4e[_0x4e4271(0x199)]='browserstackTestName';const _0x4a9e8b=_0x54ec4e;return globals['getGlobal'](_0x4a9e8b[_0x4e4271(0x199)]);},exports[a81_0x366e6b(0x1a1)]=(_0x2bf7cd=0x64)=>new Promise(_0xe5352e=>setTimeout(_0xe5352e,_0x2bf7cd)),exports[a81_0x366e6b(0x19d)]=_0x30564a=>{const _0x2657de=a81_0x366e6b,_0x145dab={};_0x145dab[_0x2657de(0x19e)]=function(_0x37903a,_0x33ce35){return _0x37903a===_0x33ce35;},_0x145dab['LkKtG']=_0x2657de(0x19f);const _0x205d8a=_0x145dab;fileLogger[_0x2657de(0x19d)]('['+new Date()['toISOString']()+_0x2657de(0x1aa)+_0x30564a),(_0x205d8a[_0x2657de(0x19e)](process[_0x2657de(0x1a8)][_0x2657de(0x1a9)],_0x205d8a['LkKtG'])||_0x205d8a['AHaDC'](process['env'][_0x2657de(0x1a9)],'1'))&&consoleHolder[_0x2657de(0x195)]('\x0a['+new Date()[_0x2657de(0x1a3)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x30564a+'\x0a');};
@@ -1 +1 @@
1
- const a82_0x2ced7f=a82_0x3a9e;(function(_0xe74a68,_0x292608){const _0x2000b4=a82_0x3a9e,_0x37ef27=_0xe74a68();while(!![]){try{const _0x40bbb9=-parseInt(_0x2000b4(0x17b))/0x1*(-parseInt(_0x2000b4(0x1a2))/0x2)+-parseInt(_0x2000b4(0x18f))/0x3+parseInt(_0x2000b4(0x178))/0x4*(parseInt(_0x2000b4(0x188))/0x5)+-parseInt(_0x2000b4(0x18b))/0x6+parseInt(_0x2000b4(0x19e))/0x7*(parseInt(_0x2000b4(0x1a1))/0x8)+parseInt(_0x2000b4(0x177))/0x9+parseInt(_0x2000b4(0x175))/0xa*(-parseInt(_0x2000b4(0x186))/0xb);if(_0x40bbb9===_0x292608)break;else _0x37ef27['push'](_0x37ef27['shift']());}catch(_0x51ff9d){_0x37ef27['push'](_0x37ef27['shift']());}}}(a82_0x368d,0xef675));const http=require(a82_0x2ced7f(0x17f)),https=require(a82_0x2ced7f(0x198)),monkeypatch=require(a82_0x2ced7f(0x191));function a82_0x3a9e(_0x2a23ed,_0x142195){const _0x368d6b=a82_0x368d();return a82_0x3a9e=function(_0x3a9e3d,_0x3a4d6d){_0x3a9e3d=_0x3a9e3d-0x174;let _0x7f8045=_0x368d6b[_0x3a9e3d];return _0x7f8045;},a82_0x3a9e(_0x2a23ed,_0x142195);}function spy(_0x50995d){const _0xf29b09=a82_0x2ced7f,_0xab4e6c={'vUyAw':function(_0x5c870e,_0x431f8d){return _0x5c870e instanceof _0x431f8d;},'rDvrk':function(_0x4cc7c1,_0xc8a1e4){return _0x4cc7c1===_0xc8a1e4;},'EpxYX':'object','VXjrn':function(_0x4170b0,_0xf09fb5,_0x5048e3){return _0x4170b0(_0xf09fb5,_0x5048e3);},'qVQhw':function(_0x2d43e6,_0x26e152){return _0x2d43e6-_0x26e152;},'EdWiN':'error','UdHuJ':function(_0x4228cd,..._0x4d364){return _0x4228cd(..._0x4d364);},'MswCv':'response','TspNr':_0xf29b09(0x19f),'xWjHF':function(_0x194a9d,_0x33c3a9,_0x1e7407,_0x900910){return _0x194a9d(_0x33c3a9,_0x1e7407,_0x900910);},'WXBKC':_0xf29b09(0x18d),'RTDow':function(_0x58f45f,_0x4cf062,_0x4e3c6f,_0x458ce7){return _0x58f45f(_0x4cf062,_0x4e3c6f,_0x458ce7);},'zVVRZ':_0xf29b09(0x190),'UITeP':function(_0x3ffceb,_0x17bb70,_0x4f325d,_0xb3e08b){return _0x3ffceb(_0x17bb70,_0x4f325d,_0xb3e08b);}},_0x44d845=function(){const _0x16cf01=_0xf29b09,_0x36ad89={'Rhtwh':function(_0xea32eb,_0xed9ab9){const _0x1efee8=a82_0x3a9e;return _0xab4e6c[_0x1efee8(0x197)](_0xea32eb,_0xed9ab9);},'FtUYM':function(_0x537f22,_0x1cf03c){const _0xc36ec7=a82_0x3a9e;return _0xab4e6c[_0xc36ec7(0x184)](_0x537f22,_0x1cf03c);},'KGjai':_0xab4e6c['EpxYX'],'cdMKr':function(_0x42e3c8,_0x45bd92,_0x2270ac){const _0x2fbc62=a82_0x3a9e;return _0xab4e6c[_0x2fbc62(0x18e)](_0x42e3c8,_0x45bd92,_0x2270ac);},'DlWvx':function(_0x2b6bc0,_0x3acc2d){const _0x4dc44c=a82_0x3a9e;return _0xab4e6c[_0x4dc44c(0x195)](_0x2b6bc0,_0x3acc2d);},'wvFLO':function(_0x3c4ef0,_0x4f2dd6,_0x96e338){const _0xbb199d=a82_0x3a9e;return _0xab4e6c[_0xbb199d(0x18e)](_0x3c4ef0,_0x4f2dd6,_0x96e338);},'FYILz':_0xab4e6c[_0x16cf01(0x182)],'ptiHj':function(_0x2744c5,..._0x3ccb8a){return _0xab4e6c['UdHuJ'](_0x2744c5,..._0x3ccb8a);}},_0x32c4f9=arguments[0x0],_0x333f8e=Array[_0x16cf01(0x194)][_0x16cf01(0x19d)]['call'](arguments,0x1),_0x12eca1=_0x32c4f9[_0x16cf01(0x181)](this,_0x333f8e);let _0x586849=Date[_0x16cf01(0x185)](),_0x292cc9;const _0x1de795={};_0x333f8e[_0x16cf01(0x19c)](_0x875e50=>{const _0x3247de=_0x16cf01;if(_0x36ad89[_0x3247de(0x17e)](_0x875e50,URL)){const _0x56a7bc={};_0x56a7bc[_0x3247de(0x189)]=_0x875e50,Object['assign'](_0x1de795,_0x56a7bc);}else _0x36ad89[_0x3247de(0x196)](typeof _0x875e50,_0x36ad89[_0x3247de(0x17c)])&&Object['assign'](_0x1de795,_0x875e50);});const _0x52f728=_0x264645=>{const _0x13a547=_0x16cf01,_0x16c228={};_0x16c228['host']=_0x1de795[_0x13a547(0x193)]||_0x1de795[_0x13a547(0x1a5)]||_0x1de795[_0x13a547(0x189)]&&(_0x1de795['url'][_0x13a547(0x193)]||_0x1de795[_0x13a547(0x189)][_0x13a547(0x1a5)]),_0x16c228[_0x13a547(0x17a)]=_0x1de795['path']||_0x1de795[_0x13a547(0x189)]&&_0x1de795[_0x13a547(0x189)][_0x13a547(0x176)],_0x16c228[_0x13a547(0x187)]=_0x1de795['method'],_0x16c228[_0x13a547(0x19b)]=_0x1de795[_0x13a547(0x19b)],_0x36ad89['cdMKr'](_0x50995d,_0x264645,_0x16c228);};return _0x12eca1[_0x16cf01(0x180)](_0xab4e6c['MswCv'],_0x5ebaf4=>{const _0x11d4a3=_0x16cf01,_0xcc0c09=_0x36ad89[_0x11d4a3(0x1a0)](Date[_0x11d4a3(0x185)](),_0x586849),_0x4f861f={};_0x4f861f[_0x11d4a3(0x1a5)]=_0x1de795['host']||_0x1de795[_0x11d4a3(0x1a5)]||_0x1de795[_0x11d4a3(0x189)]&&(_0x1de795[_0x11d4a3(0x189)][_0x11d4a3(0x193)]||_0x1de795[_0x11d4a3(0x189)][_0x11d4a3(0x1a5)]),_0x4f861f[_0x11d4a3(0x17a)]=_0x1de795[_0x11d4a3(0x17a)]||_0x1de795['url']&&_0x1de795[_0x11d4a3(0x189)]['pathname'],_0x4f861f[_0x11d4a3(0x187)]=_0x1de795[_0x11d4a3(0x187)],_0x4f861f['headers']=_0x1de795[_0x11d4a3(0x19b)],_0x4f861f[_0x11d4a3(0x1a4)]=_0x5ebaf4['statusCode'],_0x4f861f['duration_ms']=_0xcc0c09,_0x36ad89[_0x11d4a3(0x192)](_0x50995d,null,_0x4f861f),_0x292cc9['removeListener'](_0x36ad89['FYILz'],_0x52f728);}),_0x12eca1['on'](_0xab4e6c[_0x16cf01(0x18a)],_0x558d35=>{const _0x14d2de=_0x16cf01;_0x292cc9=_0x558d35,_0x558d35[_0x14d2de(0x180)](_0x36ad89[_0x14d2de(0x19a)],_0x52f728);}),_0xab4e6c[_0x16cf01(0x1a6)](monkeypatch,_0x12eca1,_0xab4e6c[_0x16cf01(0x179)],(_0x12ebaa,..._0x65e104)=>{const _0x5d7a4c=_0x16cf01;_0x586849=Date[_0x5d7a4c(0x185)](),_0x36ad89[_0x5d7a4c(0x17d)](_0x12ebaa,..._0x65e104);}),_0x12eca1;};_0xab4e6c['RTDow'](monkeypatch,http,_0xab4e6c[_0xf29b09(0x174)],_0x44d845),_0xab4e6c['UITeP'](monkeypatch,https,_0xab4e6c['zVVRZ'],_0x44d845);}function restore(){const _0x5d135d=a82_0x2ced7f;http[_0x5d135d(0x190)][_0x5d135d(0x18c)](),https[_0x5d135d(0x190)]['unpatch']();}const a82_0x5625ac={};function a82_0x368d(){const _0x3d320c=['monkeypatch','wvFLO','host','prototype','qVQhw','FtUYM','vUyAw','https','exports','FYILz','headers','forEach','slice','8015StNDai','socket','DlWvx','1864JjRiAO','681794kmLlFX','spy','status_code','hostname','xWjHF','zVVRZ','101320YAynXt','pathname','13249575VpgSys','612wPUIyE','WXBKC','path','1lYpOQO','KGjai','ptiHj','Rhtwh','http','once','apply','EdWiN','restore','rDvrk','now','1683tNQVrv','method','53085JwgljY','url','TspNr','5231544eoyKgR','unpatch','end','VXjrn','904623rYcvrA','request'];a82_0x368d=function(){return _0x3d320c;};return a82_0x368d();}a82_0x5625ac[a82_0x2ced7f(0x1a3)]=spy,a82_0x5625ac[a82_0x2ced7f(0x183)]=restore,module[a82_0x2ced7f(0x199)]=a82_0x5625ac;
1
+ const a82_0x35d2c5=a82_0x3ce1;(function(_0x3f5eee,_0x541856){const _0x469b59=a82_0x3ce1,_0x11d6a0=_0x3f5eee();while(!![]){try{const _0x4b958e=-parseInt(_0x469b59(0x115))/0x1+-parseInt(_0x469b59(0x10d))/0x2*(-parseInt(_0x469b59(0x129))/0x3)+parseInt(_0x469b59(0x118))/0x4+parseInt(_0x469b59(0x122))/0x5*(parseInt(_0x469b59(0x10c))/0x6)+parseInt(_0x469b59(0x127))/0x7+-parseInt(_0x469b59(0x134))/0x8+parseInt(_0x469b59(0x12e))/0x9*(-parseInt(_0x469b59(0x128))/0xa);if(_0x4b958e===_0x541856)break;else _0x11d6a0['push'](_0x11d6a0['shift']());}catch(_0x41dc99){_0x11d6a0['push'](_0x11d6a0['shift']());}}}(a82_0x3d56,0xb67ba));const http=require(a82_0x35d2c5(0x113)),https=require(a82_0x35d2c5(0x11e)),monkeypatch=require(a82_0x35d2c5(0x121));function spy(_0x291748){const _0x2b55ca=a82_0x35d2c5,_0x5f27fa={'uIYrI':function(_0xb687a4,_0x5f1e28){return _0xb687a4-_0x5f1e28;},'YEEFs':function(_0x30542b,_0x1a9769,_0x37a297){return _0x30542b(_0x1a9769,_0x37a297);},'OCcQJ':_0x2b55ca(0x132),'seDui':function(_0x4e1334,_0x7ff6f0){return _0x4e1334 instanceof _0x7ff6f0;},'KPdOj':function(_0x436d75,_0xc943af){return _0x436d75===_0xc943af;},'OEzGa':_0x2b55ca(0x11c),'jdsZE':function(_0x1e7e1d,_0x1bd928,_0x412540){return _0x1e7e1d(_0x1bd928,_0x412540);},'llSpv':function(_0x462f0a,..._0x2ab0f0){return _0x462f0a(..._0x2ab0f0);},'YWNuh':_0x2b55ca(0x138),'arrlu':_0x2b55ca(0x117),'ZqYhB':function(_0x6fb0be,_0x48813d,_0x489bb9,_0x4e0c1c){return _0x6fb0be(_0x48813d,_0x489bb9,_0x4e0c1c);},'Tclhr':'end','rVtVc':_0x2b55ca(0x131),'qqQbd':function(_0x192473,_0x1d6a52,_0x735ba6,_0x1225dd){return _0x192473(_0x1d6a52,_0x735ba6,_0x1225dd);}},_0x18f009=function(){const _0x13d8e6=_0x2b55ca,_0x60c1be={'ttqpP':function(_0x2757e3,_0x593d08){return _0x5f27fa['seDui'](_0x2757e3,_0x593d08);},'zVzxW':function(_0x14dc59,_0x456e59){const _0x414ed0=a82_0x3ce1;return _0x5f27fa[_0x414ed0(0x125)](_0x14dc59,_0x456e59);},'CPtsY':_0x5f27fa[_0x13d8e6(0x13b)],'WEgoO':function(_0x4cec81,_0x50bb71,_0x4ba835){const _0x3e586c=_0x13d8e6;return _0x5f27fa[_0x3e586c(0x137)](_0x4cec81,_0x50bb71,_0x4ba835);},'hgYRi':function(_0x51a571,..._0x57e37c){const _0x223d9e=_0x13d8e6;return _0x5f27fa[_0x223d9e(0x13c)](_0x51a571,..._0x57e37c);}},_0x3c1566=arguments[0x0],_0x1c2c19=Array[_0x13d8e6(0x133)][_0x13d8e6(0x124)][_0x13d8e6(0x130)](arguments,0x1),_0x164a05=_0x3c1566[_0x13d8e6(0x11d)](this,_0x1c2c19);let _0x240845=Date[_0x13d8e6(0x12f)](),_0x30eea2;const _0x3a0819={};_0x1c2c19['forEach'](_0x2b63e8=>{const _0x3573d6=_0x13d8e6;if(_0x60c1be[_0x3573d6(0x11a)](_0x2b63e8,URL)){const _0x585bc2={};_0x585bc2[_0x3573d6(0x13a)]=_0x2b63e8,Object[_0x3573d6(0x10a)](_0x3a0819,_0x585bc2);}else _0x60c1be[_0x3573d6(0x12a)](typeof _0x2b63e8,_0x60c1be[_0x3573d6(0x139)])&&Object['assign'](_0x3a0819,_0x2b63e8);});const _0x16f8d3=_0x488a59=>{const _0x5214e7=_0x13d8e6,_0x292aec={};_0x292aec[_0x5214e7(0x10b)]=_0x3a0819[_0x5214e7(0x10b)]||_0x3a0819[_0x5214e7(0x11f)]||_0x3a0819[_0x5214e7(0x13a)]&&(_0x3a0819[_0x5214e7(0x13a)][_0x5214e7(0x10b)]||_0x3a0819['url'][_0x5214e7(0x11f)]),_0x292aec[_0x5214e7(0x12c)]=_0x3a0819[_0x5214e7(0x12c)]||_0x3a0819[_0x5214e7(0x13a)]&&_0x3a0819['url'][_0x5214e7(0x10f)],_0x292aec['method']=_0x3a0819[_0x5214e7(0x13d)],_0x292aec[_0x5214e7(0x10e)]=_0x3a0819[_0x5214e7(0x10e)],_0x60c1be[_0x5214e7(0x123)](_0x291748,_0x488a59,_0x292aec);};return _0x164a05['once'](_0x5f27fa[_0x13d8e6(0x11b)],_0x30ea14=>{const _0x5a7996=_0x13d8e6,_0x499c6e=_0x5f27fa[_0x5a7996(0x12b)](Date['now'](),_0x240845),_0x123074={};_0x123074[_0x5a7996(0x11f)]=_0x3a0819[_0x5a7996(0x10b)]||_0x3a0819[_0x5a7996(0x11f)]||_0x3a0819['url']&&(_0x3a0819[_0x5a7996(0x13a)]['host']||_0x3a0819[_0x5a7996(0x13a)]['hostname']),_0x123074['path']=_0x3a0819['path']||_0x3a0819[_0x5a7996(0x13a)]&&_0x3a0819[_0x5a7996(0x13a)][_0x5a7996(0x10f)],_0x123074['method']=_0x3a0819[_0x5a7996(0x13d)],_0x123074['headers']=_0x3a0819[_0x5a7996(0x10e)],_0x123074[_0x5a7996(0x108)]=_0x30ea14['statusCode'],_0x123074[_0x5a7996(0x114)]=_0x499c6e,_0x5f27fa[_0x5a7996(0x110)](_0x291748,null,_0x123074),_0x30eea2['removeListener'](_0x5f27fa[_0x5a7996(0x111)],_0x16f8d3);}),_0x164a05['on'](_0x5f27fa['arrlu'],_0x39e3c3=>{const _0x883353=_0x13d8e6;_0x30eea2=_0x39e3c3,_0x39e3c3[_0x883353(0x12d)](_0x5f27fa[_0x883353(0x111)],_0x16f8d3);}),_0x5f27fa[_0x13d8e6(0x120)](monkeypatch,_0x164a05,_0x5f27fa['Tclhr'],(_0x386ae5,..._0x32c07e)=>{const _0x200555=_0x13d8e6;_0x240845=Date[_0x200555(0x12f)](),_0x60c1be[_0x200555(0x109)](_0x386ae5,..._0x32c07e);}),_0x164a05;};_0x5f27fa[_0x2b55ca(0x120)](monkeypatch,http,_0x5f27fa[_0x2b55ca(0x112)],_0x18f009),_0x5f27fa[_0x2b55ca(0x136)](monkeypatch,https,_0x5f27fa[_0x2b55ca(0x112)],_0x18f009);}function a82_0x3d56(){const _0x4ea93e=['hgYRi','assign','host','90iOmmgq','6zskmRZ','headers','pathname','YEEFs','OCcQJ','rVtVc','http','duration_ms','1440352BSKDxj','unpatch','socket','4847208RgVIkP','spy','ttqpP','YWNuh','object','apply','https','hostname','ZqYhB','monkeypatch','66895LmJXTn','WEgoO','slice','KPdOj','exports','7627284HGUDWe','4593430gMdWQP','997731EETgTU','zVzxW','uIYrI','path','once','18BLrjoL','now','call','request','error','prototype','3146736TeNdtW','restore','qqQbd','jdsZE','response','CPtsY','url','OEzGa','llSpv','method','status_code'];a82_0x3d56=function(){return _0x4ea93e;};return a82_0x3d56();}function restore(){const _0x25337d=a82_0x35d2c5;http['request'][_0x25337d(0x116)](),https[_0x25337d(0x131)][_0x25337d(0x116)]();}const a82_0x4c7f3a={};function a82_0x3ce1(_0x4a8120,_0x5c5411){const _0x3d5664=a82_0x3d56();return a82_0x3ce1=function(_0x3ce17c,_0x14597a){_0x3ce17c=_0x3ce17c-0x108;let _0x4fb8fa=_0x3d5664[_0x3ce17c];return _0x4fb8fa;},a82_0x3ce1(_0x4a8120,_0x5c5411);}a82_0x4c7f3a[a82_0x35d2c5(0x119)]=spy,a82_0x4c7f3a[a82_0x35d2c5(0x135)]=restore,module[a82_0x35d2c5(0x126)]=a82_0x4c7f3a;
@@ -1 +1 @@
1
- function a83_0x264c(){const _0x3fcbc8=['573228IUyvaH','http','232742MdhuVL','2464ypxbzy','https','globalAgent','YkeCf','measureWrapper','keepAliveMsecs','./performance/performance-tester','9873gUqDiX','HcDqC','peTfb','42YgHDbJ','protocol','hasOwnProperty','KEEP_ALIVE','keepAlive','call','Agent','pbjcU','fexej','606910wJYmoU','1WkPYWz','207366ayVeyO','agent','crwWg','76TwtfjE','./performance/constants','678464Gcdukl','5930VLsDEL','request','vSitq'];a83_0x264c=function(){return _0x3fcbc8;};return a83_0x264c();}function a83_0x23c5(_0x2f1046,_0x2cc904){const _0x264c80=a83_0x264c();return a83_0x23c5=function(_0x23c5f7,_0x46ca15){_0x23c5f7=_0x23c5f7-0x89;let _0x1b93d9=_0x264c80[_0x23c5f7];return _0x1b93d9;},a83_0x23c5(_0x2f1046,_0x2cc904);}const a83_0x1e49b0=a83_0x23c5;(function(_0x21f713,_0x41efd6){const _0x114d8b=a83_0x23c5,_0x20c483=_0x21f713();while(!![]){try{const _0x24f6f1=parseInt(_0x114d8b(0x9f))/0x1*(parseInt(_0x114d8b(0x8a))/0x2)+parseInt(_0x114d8b(0x92))/0x3*(parseInt(_0x114d8b(0xa3))/0x4)+parseInt(_0x114d8b(0x9e))/0x5+parseInt(_0x114d8b(0xa0))/0x6*(-parseInt(_0x114d8b(0x95))/0x7)+parseInt(_0x114d8b(0xa5))/0x8+parseInt(_0x114d8b(0xa9))/0x9+-parseInt(_0x114d8b(0xa6))/0xa*(parseInt(_0x114d8b(0x8b))/0xb);if(_0x24f6f1===_0x41efd6)break;else _0x20c483['push'](_0x20c483['shift']());}catch(_0x13b5c6){_0x20c483['push'](_0x20c483['shift']());}}}(a83_0x264c,0x1a828));const PerformanceTester=require(a83_0x1e49b0(0x91)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x1e49b0(0xa4));module['exports']=PerformanceTester[a83_0x1e49b0(0x8f)](PerformanceEvents[a83_0x1e49b0(0x98)],function(){const _0x3ec190=a83_0x1e49b0,_0x323e8f={'pbjcU':function(_0x5686a2,_0x170882){return _0x5686a2===_0x170882;},'KGhOj':'https:','fexej':_0x3ec190(0xa1),'crwWg':function(_0x2a290d,_0x12a811,_0x343aa7){return _0x2a290d(_0x12a811,_0x343aa7);},'YkeCf':function(_0x586f2c,_0x38a3ed,_0x2fda09){return _0x586f2c(_0x38a3ed,_0x2fda09);},'peTfb':function(_0x5d71d1,_0x29bc83){return _0x5d71d1(_0x29bc83);},'DTsxX':_0x3ec190(0x89),'ccNch':_0x3ec190(0x8c),'HcDqC':function(_0x11392f,_0x50242d){return _0x11392f*_0x50242d;},'vSitq':_0x3ec190(0x99)},_0x937bb8=_0x323e8f[_0x3ec190(0x94)](require,_0x323e8f['DTsxX']),_0x4a5352=_0x323e8f['peTfb'](require,_0x323e8f['ccNch']),_0x2de542=_0x323e8f[_0x3ec190(0x93)](0x1e,0x3e8);if(_0x937bb8[_0x3ec190(0x8d)]&&Object['prototype'][_0x3ec190(0x97)][_0x3ec190(0x9a)](_0x937bb8['globalAgent'],_0x323e8f[_0x3ec190(0xa8)]))_0x937bb8[_0x3ec190(0x8d)][_0x3ec190(0x99)]=!![],_0x4a5352['globalAgent'][_0x3ec190(0x99)]=!![],_0x937bb8['globalAgent'][_0x3ec190(0x90)]=_0x2de542,_0x4a5352[_0x3ec190(0x8d)][_0x3ec190(0x90)]=_0x2de542;else{const _0x3a060b={};_0x3a060b[_0x3ec190(0x99)]=!![],_0x3a060b[_0x3ec190(0x90)]=_0x2de542;const _0x3dedf8=new _0x937bb8[(_0x3ec190(0x9b))](_0x3a060b),_0x58339b={};_0x58339b[_0x3ec190(0x99)]=!![],_0x58339b['keepAliveMsecs']=_0x2de542;const _0x7f87d4=new _0x4a5352['Agent'](_0x58339b),_0x536408=_0x937bb8[_0x3ec190(0xa7)],_0x19722=_0x4a5352[_0x3ec190(0xa7)];_0x937bb8[_0x3ec190(0xa7)]=function(_0x45a8e5,_0x5eebf0){const _0x283b4e=_0x3ec190;if(_0x323e8f[_0x283b4e(0x9c)](_0x45a8e5[_0x283b4e(0x96)],_0x323e8f['KGhOj']))return _0x45a8e5[_0x323e8f[_0x283b4e(0x9d)]]=_0x7f87d4,_0x323e8f[_0x283b4e(0xa2)](_0x19722,_0x45a8e5,_0x5eebf0);return _0x45a8e5[_0x323e8f[_0x283b4e(0x9d)]]=_0x3dedf8,_0x323e8f[_0x283b4e(0x8e)](_0x536408,_0x45a8e5,_0x5eebf0);};}});
1
+ const a83_0x22626b=a83_0x3f9f;function a83_0x3f9f(_0x387bc2,_0x495f94){const _0x9337e4=a83_0x9337();return a83_0x3f9f=function(_0x3f9fd2,_0x41fc90){_0x3f9fd2=_0x3f9fd2-0xa2;let _0x361b51=_0x9337e4[_0x3f9fd2];return _0x361b51;},a83_0x3f9f(_0x387bc2,_0x495f94);}(function(_0x55a714,_0x208e46){const _0x14a800=a83_0x3f9f,_0x2a67ed=_0x55a714();while(!![]){try{const _0x2e375e=parseInt(_0x14a800(0xbc))/0x1*(-parseInt(_0x14a800(0xa7))/0x2)+parseInt(_0x14a800(0xaa))/0x3*(parseInt(_0x14a800(0xa9))/0x4)+parseInt(_0x14a800(0xbe))/0x5*(-parseInt(_0x14a800(0xa5))/0x6)+parseInt(_0x14a800(0xb4))/0x7+parseInt(_0x14a800(0xa6))/0x8+-parseInt(_0x14a800(0xb1))/0x9+parseInt(_0x14a800(0xba))/0xa;if(_0x2e375e===_0x208e46)break;else _0x2a67ed['push'](_0x2a67ed['shift']());}catch(_0x3dece1){_0x2a67ed['push'](_0x2a67ed['shift']());}}}(a83_0x9337,0x511ca));const PerformanceTester=require(a83_0x22626b(0xb9)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module[a83_0x22626b(0xad)]=PerformanceTester[a83_0x22626b(0xae)](PerformanceEvents[a83_0x22626b(0xa2)],function(){const _0x245d1e=a83_0x22626b,_0x149272={'YhEDw':function(_0x4674bb,_0x4f19f7){return _0x4674bb===_0x4f19f7;},'rqXst':_0x245d1e(0xb5),'caXjD':'agent','tmUtO':function(_0xaf7bcf,_0x878c31,_0x2fc394){return _0xaf7bcf(_0x878c31,_0x2fc394);},'FvNrM':function(_0x3e84b0,_0x268c30){return _0x3e84b0(_0x268c30);},'JKGrM':_0x245d1e(0xa4),'yQivt':_0x245d1e(0xb7),'rHZLi':function(_0x5c92fe,_0x3dc5ba){return _0x5c92fe*_0x3dc5ba;},'LQoIA':_0x245d1e(0xb6)},_0x16e481=_0x149272[_0x245d1e(0xbf)](require,_0x149272[_0x245d1e(0xb0)]),_0x1cef12=_0x149272[_0x245d1e(0xbf)](require,_0x149272[_0x245d1e(0xac)]),_0x3ebc2c=_0x149272[_0x245d1e(0xb3)](0x1e,0x3e8);if(_0x16e481[_0x245d1e(0xb2)]&&Object[_0x245d1e(0xa3)]['hasOwnProperty'][_0x245d1e(0xaf)](_0x16e481[_0x245d1e(0xb2)],_0x149272['LQoIA']))_0x16e481[_0x245d1e(0xb2)][_0x245d1e(0xb6)]=!![],_0x1cef12[_0x245d1e(0xb2)]['keepAlive']=!![],_0x16e481[_0x245d1e(0xb2)][_0x245d1e(0xa8)]=_0x3ebc2c,_0x1cef12['globalAgent'][_0x245d1e(0xa8)]=_0x3ebc2c;else{const _0xad33b={};_0xad33b[_0x245d1e(0xb6)]=!![],_0xad33b['keepAliveMsecs']=_0x3ebc2c;const _0x394920=new _0x16e481[(_0x245d1e(0xb8))](_0xad33b),_0xacc8c={};_0xacc8c[_0x245d1e(0xb6)]=!![],_0xacc8c['keepAliveMsecs']=_0x3ebc2c;const _0xd1badd=new _0x1cef12['Agent'](_0xacc8c),_0x14d3bb=_0x16e481[_0x245d1e(0xab)],_0x4c1201=_0x1cef12[_0x245d1e(0xab)];_0x16e481[_0x245d1e(0xab)]=function(_0x16ca7a,_0x3e778b){const _0x5ae79f=_0x245d1e;if(_0x149272[_0x5ae79f(0xbb)](_0x16ca7a['protocol'],_0x149272[_0x5ae79f(0xbd)]))return _0x16ca7a[_0x149272[_0x5ae79f(0xc0)]]=_0xd1badd,_0x149272[_0x5ae79f(0xc1)](_0x4c1201,_0x16ca7a,_0x3e778b);return _0x16ca7a[_0x149272['caXjD']]=_0x394920,_0x149272[_0x5ae79f(0xc1)](_0x14d3bb,_0x16ca7a,_0x3e778b);};}});function a83_0x9337(){const _0x50e7eb=['yQivt','exports','measureWrapper','call','JKGrM','5890815ffQDTB','globalAgent','rHZLi','703990xUiUbo','https:','keepAlive','https','Agent','./performance/performance-tester','11961710uxJyML','YhEDw','140267EsHfUe','rqXst','5nJVvBi','FvNrM','caXjD','tmUtO','KEEP_ALIVE','prototype','http','3623622BdSHsx','1719968SIzGct','4NwhqzN','keepAliveMsecs','1438012XrjFEE','3PGYaDh','request'];a83_0x9337=function(){return _0x50e7eb;};return a83_0x9337();}
@@ -1 +1 @@
1
- var a84_0x236141=a84_0x1323;(function(_0x233fc6,_0x4fe841){var _0x261d2b=a84_0x1323,_0x345032=_0x233fc6();while(!![]){try{var _0x4bd397=-parseInt(_0x261d2b(0x19e))/0x1*(parseInt(_0x261d2b(0x1a1))/0x2)+-parseInt(_0x261d2b(0x191))/0x3*(-parseInt(_0x261d2b(0x1a7))/0x4)+parseInt(_0x261d2b(0x194))/0x5*(parseInt(_0x261d2b(0x1a0))/0x6)+parseInt(_0x261d2b(0x19b))/0x7*(-parseInt(_0x261d2b(0x1a2))/0x8)+parseInt(_0x261d2b(0x19d))/0x9+parseInt(_0x261d2b(0x1a9))/0xa*(-parseInt(_0x261d2b(0x197))/0xb)+parseInt(_0x261d2b(0x1a5))/0xc;if(_0x4bd397===_0x4fe841)break;else _0x345032['push'](_0x345032['shift']());}catch(_0x5b6412){_0x345032['push'](_0x345032['shift']());}}}(a84_0x1b61,0x7f0f2));var a84_0x30e740={};function a84_0x1323(_0xd44c3d,_0x4fdf50){var _0x1b61d5=a84_0x1b61();return a84_0x1323=function(_0x132300,_0x1e8fdc){_0x132300=_0x132300-0x191;var _0x57b8f6=_0x1b61d5[_0x132300];return _0x57b8f6;},a84_0x1323(_0xd44c3d,_0x4fdf50);}a84_0x30e740[a84_0x236141(0x19a)]=a84_0x236141(0x1ab),a84_0x30e740[a84_0x236141(0x196)]=a84_0x236141(0x192),a84_0x30e740[a84_0x236141(0x1a8)]='codeceptjs',a84_0x30e740[a84_0x236141(0x195)]=a84_0x236141(0x199),a84_0x30e740['JEST']=a84_0x236141(0x1a6),a84_0x30e740['CUCUMBER']=a84_0x236141(0x19c),module['exports']={'consoleHolder':Object[a84_0x236141(0x1a4)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','OBSERVABILITY_UPLOAD_API_URL':a84_0x236141(0x1aa),'EVENT_ENDPOINT':a84_0x236141(0x193),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x236141(0x19f),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x236141(0x198),'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':a84_0x236141(0x1a3),'FRAMEWORKS':a84_0x30e740};function a84_0x1b61(){var _0x25bee6=['assign','39024PAheUS','jest','132652eGpoWm','CODECEPT','40070TJUmHw','https://upload-observability.browserstack.com','Playwright','93VjgrJs','mocha','api/v1/event','617725spYGHr','CODECEPT_CUCUMBER','MOCHA','2255uzabML','upload-attachments','codeceptjs-cucumber','PLAYWRIGHT','14lCXVQb','cucumber','8338968nQffql','7kmJdgr','api/v1/screenshots','42tsGBWq','252534kpYBHV','2387736rjfpJI','.obs_test_details'];a84_0x1b61=function(){return _0x25bee6;};return a84_0x1b61();}
1
+ var a84_0x29159d=a84_0x2d59;function a84_0x2d59(_0xcd37e,_0x763c8a){var _0x414ecc=a84_0x414e();return a84_0x2d59=function(_0x2d59fb,_0x93fa0c){_0x2d59fb=_0x2d59fb-0x123;var _0x4fc4b7=_0x414ecc[_0x2d59fb];return _0x4fc4b7;},a84_0x2d59(_0xcd37e,_0x763c8a);}(function(_0x337409,_0x3e9229){var _0x1b1d8f=a84_0x2d59,_0x11e0d9=_0x337409();while(!![]){try{var _0x5c0bf8=parseInt(_0x1b1d8f(0x132))/0x1*(parseInt(_0x1b1d8f(0x12f))/0x2)+parseInt(_0x1b1d8f(0x126))/0x3+parseInt(_0x1b1d8f(0x13a))/0x4+parseInt(_0x1b1d8f(0x12d))/0x5+parseInt(_0x1b1d8f(0x128))/0x6+parseInt(_0x1b1d8f(0x139))/0x7*(parseInt(_0x1b1d8f(0x12a))/0x8)+parseInt(_0x1b1d8f(0x12e))/0x9*(-parseInt(_0x1b1d8f(0x135))/0xa);if(_0x5c0bf8===_0x3e9229)break;else _0x11e0d9['push'](_0x11e0d9['shift']());}catch(_0x514308){_0x11e0d9['push'](_0x11e0d9['shift']());}}}(a84_0x414e,0x2c156));var a84_0x3a069f={};function a84_0x414e(){var _0x24b5b6=['cucumber','88THYvNY','.obs_test_details','https://collector-observability.browserstack.com','1589210EQNQkD','477MOXILj','5708TDYJbb','CODECEPT','Playwright','97QsSHdH','JEST','codeceptjs','167540LSiHbl','mocha','jest','upload-attachments','228235qroXXC','223964QfOdNt','assign','https://upload-observability.browserstack.com','api/v1/event','106323uVQLBJ','MOCHA','142566aiiKFw'];a84_0x414e=function(){return _0x24b5b6;};return a84_0x414e();}a84_0x3a069f['PLAYWRIGHT']=a84_0x29159d(0x131),a84_0x3a069f[a84_0x29159d(0x127)]=a84_0x29159d(0x136),a84_0x3a069f[a84_0x29159d(0x130)]=a84_0x29159d(0x134),a84_0x3a069f['CODECEPT_CUCUMBER']='codeceptjs-cucumber',a84_0x3a069f[a84_0x29159d(0x133)]=a84_0x29159d(0x137),a84_0x3a069f['CUCUMBER']=a84_0x29159d(0x129),module['exports']={'consoleHolder':Object[a84_0x29159d(0x123)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x29159d(0x12c),'OBSERVABILITY_UPLOAD_API_URL':a84_0x29159d(0x124),'EVENT_ENDPOINT':a84_0x29159d(0x125),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':'api/v1/screenshots','UPLOAD_ATTACHMENT_ENDPOINT':a84_0x29159d(0x138),'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':a84_0x29159d(0x12b),'FRAMEWORKS':a84_0x3a069f};
@@ -1 +1 @@
1
- function a85_0x549b(_0x30910c,_0x69afeb){const _0x38dce5=a85_0x38dc();return a85_0x549b=function(_0x549bea,_0x3bed9a){_0x549bea=_0x549bea-0x1ad;let _0x5197bd=_0x38dce5[_0x549bea];return _0x5197bd;},a85_0x549b(_0x30910c,_0x69afeb);}const a85_0x18e6a1=a85_0x549b;(function(_0x4a2cf,_0xa9a3b8){const _0x290865=a85_0x549b,_0x5ac830=_0x4a2cf();while(!![]){try{const _0x33fd12=-parseInt(_0x290865(0x1f1))/0x1*(-parseInt(_0x290865(0x1fb))/0x2)+parseInt(_0x290865(0x201))/0x3*(parseInt(_0x290865(0x1e3))/0x4)+parseInt(_0x290865(0x1f0))/0x5+-parseInt(_0x290865(0x1b1))/0x6*(-parseInt(_0x290865(0x1c1))/0x7)+-parseInt(_0x290865(0x1ad))/0x8*(parseInt(_0x290865(0x20b))/0x9)+parseInt(_0x290865(0x1f4))/0xa*(parseInt(_0x290865(0x1ff))/0xb)+parseInt(_0x290865(0x1dc))/0xc*(-parseInt(_0x290865(0x1b0))/0xd);if(_0x33fd12===_0xa9a3b8)break;else _0x5ac830['push'](_0x5ac830['shift']());}catch(_0x38f382){_0x5ac830['push'](_0x5ac830['shift']());}}}(a85_0x38dc,0x73975));const util=require(a85_0x18e6a1(0x1c4)),PerformanceTester=require(a85_0x18e6a1(0x1c9)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x18e6a1(0x1af)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x23674f,_0x4bf5a9='',_0x26f483=[''],_0x11f44f=![])=>{const _0x1bee1e={'RcmRI':function(_0x1f686d,_0xbb9b72){return _0x1f686d(_0xbb9b72);},'zlGTb':function(_0x2bc814,_0x5c26a9,_0x78de6c){return _0x2bc814(_0x5c26a9,_0x78de6c);},'oDhXs':function(_0xdef87c,_0x2b3809,_0x398608){return _0xdef87c(_0x2b3809,_0x398608);},'mAYAK':function(_0x585323,_0x25a6a9){return _0x585323 instanceof _0x25a6a9;},'hrNXX':function(_0x44e235,_0xb1cfe4,_0xf8803f,_0x12400e,_0x10fe9a){return _0x44e235(_0xb1cfe4,_0xf8803f,_0x12400e,_0x10fe9a);}};return function(..._0x367768){const _0x5d081c=a85_0x549b;try{let _0x4f93d0=_0x23674f;process[_0x5d081c(0x20d)][_0x5d081c(0x1d2)]&&(_0x4f93d0=PerformanceTester[_0x5d081c(0x207)]()['timerify'](_0x4f93d0));_0x11f44f&&_0x1bee1e[_0x5d081c(0x1b9)](trace,_0x5d081c(0x206)+_0x4bf5a9+_0x5d081c(0x1d8)+process['pid']+_0x5d081c(0x1cc)+_0x1bee1e['zlGTb'](nestedKeyValue,arguments[0x0],_0x26f483));const _0x312363=_0x4f93d0[_0x5d081c(0x1c7)](null,arguments);_0x11f44f&&_0x1bee1e[_0x5d081c(0x1b9)](trace,_0x5d081c(0x1ec)+_0x4bf5a9+_0x5d081c(0x1d8)+process[_0x5d081c(0x20c)]+_0x5d081c(0x1cc)+_0x1bee1e[_0x5d081c(0x219)](nestedKeyValue,arguments[0x0],_0x26f483));if(_0x1bee1e[_0x5d081c(0x1e2)](_0x312363,Promise))return _0x312363[_0x5d081c(0x1f5)](_0x5c15ad=>processError(_0x5c15ad,_0x23674f,_0x367768,_0x4bf5a9));return _0x312363;}catch(_0x481f63){_0x1bee1e[_0x5d081c(0x216)](processError,_0x481f63,_0x23674f,_0x367768,_0x4bf5a9);}};},o11yClassErrorHandler=(_0x882540,_0xec85cc,_0x21aa54='')=>{const _0x38aa1a=a85_0x18e6a1,_0x2acba8={'nYfVx':function(_0x15c78c,_0x4977a2){return _0x15c78c instanceof _0x4977a2;},'LwUDG':function(_0x2c3f3b,_0x3c7afb,_0xf7c955,_0x2fc317,_0x1d4f2e){return _0x2c3f3b(_0x3c7afb,_0xf7c955,_0x2fc317,_0x1d4f2e);},'iutme':function(_0x39536f,_0x4703d3){return _0x39536f===_0x4703d3;},'MFffM':_0x38aa1a(0x1fe),'GBADU':function(_0x438eaa,_0x3df289){return _0x438eaa!==_0x3df289;},'ZKswe':_0x38aa1a(0x1d1),'ugNDf':function(_0x2d0848,_0x541c98){return _0x2d0848<_0x541c98;}},_0x3aace2=_0x882540['prototype'];if(_0x2acba8[_0x38aa1a(0x1cf)](Object[_0x38aa1a(0x1e0)](_0x3aace2)[_0x38aa1a(0x210)],0x2))return _0x882540;return Object[_0x38aa1a(0x1e0)](_0x3aace2)[_0x38aa1a(0x211)](_0x71bc66=>{const _0x22a358=_0x38aa1a,_0x2cdd1b={'GHpdQ':function(_0x3a4479,_0x23dc5a){const _0x119740=a85_0x549b;return _0x2acba8[_0x119740(0x217)](_0x3a4479,_0x23dc5a);},'ktDsz':function(_0x3f1c35,_0x4bfdb5,_0xce7d3f,_0x6c2e8,_0xedc0f9){const _0x1be999=a85_0x549b;return _0x2acba8[_0x1be999(0x1e6)](_0x3f1c35,_0x4bfdb5,_0xce7d3f,_0x6c2e8,_0xedc0f9);}};if(!(_0xec85cc&&_0xec85cc[_0x22a358(0x1b5)](_0x71bc66)))return;const _0x17714f=_0x3aace2[_0x71bc66];_0x2acba8[_0x22a358(0x1d6)](typeof _0x17714f,_0x2acba8[_0x22a358(0x1d3)])&&_0x2acba8['GBADU'](_0x71bc66,_0x2acba8['ZKswe'])&&Object[_0x22a358(0x203)](_0x3aace2,_0x71bc66,{'writable':!![],'value':function(..._0x203e95){const _0x32973f=_0x22a358;try{const _0x5ca2f5=(process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x32973f(0x207)]()['timerify'](_0x17714f):_0x17714f)[_0x32973f(0x1f6)](this,..._0x203e95);if(_0x2cdd1b['GHpdQ'](_0x5ca2f5,Promise))return _0x5ca2f5['catch'](_0xd9123a=>processError(_0xd9123a,_0x17714f,_0x203e95,_0x21aa54));return _0x5ca2f5;}catch(_0x14358e){_0x2cdd1b[_0x32973f(0x202)](processError,_0x14358e,_0x17714f,_0x203e95,_0x21aa54);}}});}),_0x882540;};function processError(_0x4fb889,_0x96f47c,_0x3414c7,_0x148eb2){const _0x492017=a85_0x18e6a1,_0x31ef58={'HywfP':function(_0x5e7c57,_0x5a4fdd){return _0x5e7c57(_0x5a4fdd);}};_0x31ef58[_0x492017(0x1b2)](debug,_0x492017(0x1f2)+_0x96f47c[_0x492017(0x1cd)]+_0x492017(0x1e1)+_0x148eb2+_0x492017(0x1cb)+_0x4fb889+_0x492017(0x1bc)+_0x3414c7+'.'),PerformanceTester[_0x492017(0x214)](_0x4fb889);let _0x19f6de;try{_0x19f6de=JSON['stringify'](_0x3414c7);}catch(_0x1406ca){const _0x3a4759={};_0x3a4759[_0x492017(0x1f7)]=0x2,_0x19f6de=util[_0x492017(0x1ae)](_0x3414c7,_0x3a4759);}CrashReporter[_0x492017(0x1dd)](_0x492017(0x1f2)+_0x96f47c[_0x492017(0x1cd)]+_0x492017(0x1e1)+_0x148eb2+'.\x20Error\x20-\x20'+_0x4fb889+'.\x20Args\x20-\x20'+_0x19f6de+'.',_0x4fb889&&_0x4fb889['stack']);}function a85_0x38dc(){const _0x1d6e28=['XsdBu','POST','12bsapPB','uploadCrashReport','/api/v1/analytics','frameworkDetails','getOwnPropertyNames','\x20--\x20','mAYAK','18860bzCqKQ','getConfig','Content-Type','LwUDG','setCredentials','MEJJQ','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','YGRsd','ZRnWT','Finished\x20::\x20','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','ThIIn','user','4426485UFMJbF','147770cMhsZL','Error\x20in\x20executing\x20','setFrameworkDetails','10PWDohc','catch','call','depth','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','toString','auth','2DLnqhn','Kqfwu','toLowerCase','function','7883381OklDNH','setAllDetails','456EhoCly','ktDsz','defineProperty','stringify','X-BSTACK-TESTOPS','Started\x20::\x20','getPerformance','true','USER_CONFIG_FOR_REPORTING','TpqWG','99CHRxjW','pid','env','userConfig','o11yErrorHandler','length','forEach','password','credentials','captureError','getCredentials','hrNXX','nYfVx','username','oDhXs','kOyoD','then','initialize','MLzMW','kCwFC','16272ipAFXz','inspect','./utils','26914810yzNYNc','6gLGTxt','HywfP','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','filterPII','includes','parse','wwvPN','XpZhg','RcmRI','headers','recursivelyDeletePIIKeysFromObject','.\x20Args\x20-\x20','getFramework','BS_TESTOPS_BUILD_HASHED_ID','hRcWV','setConfigDetails','698509VIcnpg','frameworkVersion','CREDENTIALS_FOR_CRASH_REPORTING','util','lrSsp','accessKey','apply','exports','../performance/performance-tester','frameworkName','.\x20Error\x20-\x20',',\x20Argument\x20-\x20','name','SHARu','ugNDf','CrashReporter','constructor','BROWSERSTACK_O11Y_PERF_MEASUREMENT','MFffM','KIiPg','application/json','iutme','key',',\x20PID\x20-\x20','keys'];a85_0x38dc=function(){return _0x1d6e28;};return a85_0x38dc();}class CrashReporter{static ['userConfig']={};static ['credentials'];static ['frameworkDetails']={};static[a85_0x18e6a1(0x21c)](_0x5f660a,_0xc0c9e2,_0xd04b6a=null){const _0x5012fb=a85_0x18e6a1,_0x1663cc={'lrSsp':function(_0x35325a,_0x30425b){return _0x35325a(_0x30425b);},'bbuTX':function(_0x2c78e3,_0x2b5df7){return _0x2c78e3(_0x2b5df7);}},_0x3be17b=_0x5f660a[_0x5012fb(0x1ca)],_0x5803c3=_0x5f660a[_0x5012fb(0x1c2)];!_0xd04b6a&&(_0xd04b6a=_0x1663cc[_0x5012fb(0x1c5)](getBrowserStackConfig,_0x3be17b));!_0x5803c3&&_0x1663cc[_0x5012fb(0x1c5)](getFrameworkVersion,_0x3be17b);const _0x2f4dc4={};_0x2f4dc4[_0x5012fb(0x1ca)]=_0x3be17b,_0x2f4dc4[_0x5012fb(0x1c2)]=_0x5803c3,this['setAllDetails'](_0x2f4dc4,_0xc0c9e2,_0x1663cc['bbuTX'](getUserCredentials,_0xd04b6a));}static[a85_0x18e6a1(0x1e7)](_0x4312d,_0x3aa6dc){const _0x2a5f1d=a85_0x18e6a1,_0xaea13b={};_0xaea13b['username']=_0x4312d,_0xaea13b['accessKey']=_0x3aa6dc,this[_0x2a5f1d(0x213)]=_0xaea13b,process[_0x2a5f1d(0x20d)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x2a5f1d(0x204)](this[_0x2a5f1d(0x213)]);}static[a85_0x18e6a1(0x215)](){const _0xcafdf6=a85_0x18e6a1,_0x6f6aa8={'LXzZQ':function(_0x57d9d8,_0xca1108){return _0x57d9d8(_0xca1108);}};if(!this[_0xcafdf6(0x213)]&&process['env'][_0xcafdf6(0x1c3)])try{this['credentials']=JSON[_0xcafdf6(0x1b6)](process[_0xcafdf6(0x20d)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x41807a){_0x6f6aa8['LXzZQ'](debug,_0xcafdf6(0x1f8)+_0x41807a[_0xcafdf6(0x1f9)]());}return this[_0xcafdf6(0x213)];}static[a85_0x18e6a1(0x1c0)](_0x5ae4e8){const _0x194a1f=a85_0x18e6a1;this['userConfig']=this[_0x194a1f(0x1b4)](_0x5ae4e8),process[_0x194a1f(0x20d)][_0x194a1f(0x209)]=JSON['stringify'](this[_0x194a1f(0x20e)]);}static[a85_0x18e6a1(0x1e4)](){const _0x18651b=a85_0x18e6a1,_0x14b3bc={'KIiPg':function(_0x3cc518,_0x3e863f){return _0x3cc518===_0x3e863f;},'SHARu':function(_0x522fb6,_0x2d314e){return _0x522fb6(_0x2d314e);}};if(_0x14b3bc[_0x18651b(0x1d4)](Object[_0x18651b(0x1d9)](this[_0x18651b(0x20e)])[_0x18651b(0x210)],0x0)&&process[_0x18651b(0x20d)][_0x18651b(0x209)])try{this['userConfig']=JSON['parse'](process['env'][_0x18651b(0x209)]);}catch(_0x5b40f1){_0x14b3bc[_0x18651b(0x1ce)](debug,_0x18651b(0x1b3)+_0x5b40f1[_0x18651b(0x1f9)]()),this[_0x18651b(0x20e)]={};}return this['userConfig'];}static[a85_0x18e6a1(0x1f3)](_0x17c20e){const _0x502687=a85_0x18e6a1;this[_0x502687(0x1df)]=_0x17c20e,process[_0x502687(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x502687(0x204)](this['frameworkDetails']);}static['getFramework'](){const _0x5ac558=a85_0x18e6a1,_0x41928f={'kOyoD':function(_0xea06f2,_0x2fafb0){return _0xea06f2===_0x2fafb0;},'OpWoF':function(_0x5d1a6b,_0x427870){return _0x5d1a6b(_0x427870);}};if(_0x41928f[_0x5ac558(0x21a)](Object['keys'](this['frameworkDetails'])[_0x5ac558(0x210)],0x0)&&process[_0x5ac558(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x5ac558(0x1df)]=JSON['parse'](process[_0x5ac558(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0x3a1fe9){_0x41928f['OpWoF'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x3a1fe9[_0x5ac558(0x1f9)]());}return this[_0x5ac558(0x1df)];}static[a85_0x18e6a1(0x200)](_0x2eb267,_0x5c3110,_0x4e4285){const _0x1b1325=a85_0x18e6a1;_0x2eb267&&this[_0x1b1325(0x1f3)](_0x2eb267),_0x5c3110&&this[_0x1b1325(0x1c0)](_0x5c3110),_0x4e4285&&this['setCredentials'](_0x4e4285[_0x1b1325(0x218)],_0x4e4285[_0x1b1325(0x1c6)]);}static async['uploadCrashReport'](_0x4a3e79,_0x5588ca){const _0x4b9cc5=a85_0x18e6a1,_0x39c518={'XsdBu':function(_0x18b09d,_0x5431a9){return _0x18b09d(_0x5431a9);},'Kqfwu':function(_0x3d4289,_0x3841ea){return _0x3d4289(_0x3841ea);},'MEJJQ':_0x4b9cc5(0x1ed),'HvVaq':function(_0x56ec72){return _0x56ec72();},'TRVJF':_0x4b9cc5(0x1de),'ThIIn':_0x4b9cc5(0x1d5),'qgEvn':_0x4b9cc5(0x208),'KbMDW':function(_0x3f4049,_0x30cb64,_0x4b94cb,_0x23a002,_0x11259f,_0x182b8a){return _0x3f4049(_0x30cb64,_0x4b94cb,_0x23a002,_0x11259f,_0x182b8a);},'MLzMW':_0x4b9cc5(0x1db)};this[_0x4b9cc5(0x215)]();if(!this[_0x4b9cc5(0x213)])return _0x39c518[_0x4b9cc5(0x1fc)](debug,_0x39c518[_0x4b9cc5(0x1e8)]);this['getConfig'](),this[_0x4b9cc5(0x1bd)]();const _0x176ecd={'hashed_id':process[_0x4b9cc5(0x20d)][_0x4b9cc5(0x1be)],'observability_version':{'sdkVersion':_0x39c518['HvVaq'](getAgentVersion),'frameworkName':this[_0x4b9cc5(0x1df)][_0x4b9cc5(0x1ca)],'frameworkVersion':this['frameworkDetails'][_0x4b9cc5(0x1c2)]},'exception':{'error':_0x4a3e79[_0x4b9cc5(0x1f9)](),'stackTrace':_0x5588ca},'config':this[_0x4b9cc5(0x20e)]},_0x181ebf=_0x39c518['TRVJF'],_0xace4ce={};_0xace4ce[_0x4b9cc5(0x218)]=this[_0x4b9cc5(0x213)][_0x4b9cc5(0x218)],_0xace4ce[_0x4b9cc5(0x212)]=this['credentials']['accessKey'];const _0x179cf8={};_0x179cf8[_0x4b9cc5(0x1e5)]=_0x39c518[_0x4b9cc5(0x1ee)],_0x179cf8[_0x4b9cc5(0x205)]=_0x39c518['qgEvn'];const _0x3c5fe9={};_0x3c5fe9[_0x4b9cc5(0x1fa)]=_0xace4ce,_0x3c5fe9[_0x4b9cc5(0x1ba)]=_0x179cf8;const _0x472b23=_0x3c5fe9;_0x39c518['KbMDW'](nodeRequest,_0x39c518[_0x4b9cc5(0x21d)],_0x181ebf,_0x176ecd,_0x472b23,![])[_0x4b9cc5(0x21b)](_0x2e856e=>{const _0x399d99=_0x4b9cc5;_0x39c518[_0x399d99(0x1da)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x399d99(0x204)](_0x2e856e));})[_0x4b9cc5(0x1f5)](_0x49fe0d=>{const _0x445861=_0x4b9cc5;_0x39c518[_0x445861(0x1da)](debug,_0x445861(0x1e9)+util['format'](_0x49fe0d));});}static[a85_0x18e6a1(0x1bb)](_0x340eba){const _0x177563=a85_0x18e6a1,_0x56c6a2={};_0x56c6a2[_0x177563(0x20a)]=_0x177563(0x1ef),_0x56c6a2[_0x177563(0x21e)]=_0x177563(0x218),_0x56c6a2[_0x177563(0x1eb)]=_0x177563(0x1d7),_0x56c6a2[_0x177563(0x1b7)]=_0x177563(0x1c6),_0x56c6a2[_0x177563(0x1ea)]=_0x177563(0x212),_0x56c6a2['hRcWV']=function(_0x439f66,_0x5befef){return _0x439f66===_0x5befef;},_0x56c6a2[_0x177563(0x1b8)]='object';const _0x58ee92=_0x56c6a2;if(!_0x340eba)return;const _0x36aa1a=[_0x58ee92[_0x177563(0x20a)],_0x58ee92[_0x177563(0x21e)],_0x58ee92[_0x177563(0x1eb)],_0x58ee92[_0x177563(0x1b7)],_0x58ee92[_0x177563(0x1ea)]];for(const _0x134052 in _0x340eba){if(_0x36aa1a[_0x177563(0x1b5)](_0x134052[_0x177563(0x1fd)]()))delete _0x340eba[_0x134052];else _0x58ee92[_0x177563(0x1bf)](typeof _0x340eba[_0x134052],_0x58ee92[_0x177563(0x1b8)])&&this[_0x177563(0x1bb)](_0x340eba[_0x134052]);}}static[a85_0x18e6a1(0x1b4)](_0xbebcb3){const _0x1a8349=a85_0x18e6a1,_0x52fd56=JSON[_0x1a8349(0x1b6)](JSON['stringify'](_0xbebcb3));return this['recursivelyDeletePIIKeysFromObject'](_0x52fd56),_0x52fd56;}}const a85_0x46f967={};a85_0x46f967[a85_0x18e6a1(0x20f)]=o11yErrorHandler,a85_0x46f967['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x46f967[a85_0x18e6a1(0x1d0)]=CrashReporter,module[a85_0x18e6a1(0x1c8)]=a85_0x46f967;
1
+ const a85_0x2e0166=a85_0x705a;function a85_0x4add(){const _0xa53a1b=['exports','util','rshNW','2plKstT','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','stringify','getPerformance','setConfigDetails','function','filterPII','CREDENTIALS_FOR_CRASH_REPORTING','ZBzMV','693572GIgIFM','fyyjZ','wTxYK','object','SlSef','constructor','BROWSERSTACK_O11Y_PERF_MEASUREMENT','setFrameworkDetails','CTfcC','parse',',\x20Argument\x20-\x20','jcvpv','setAllDetails','lvHQU','password','/api/v1/analytics','JzIjj','application/json','XyrvP','getCredentials','toString','VagDS',',\x20PID\x20-\x20','X-BSTACK-TESTOPS','headers','./utils','credentials','env','2893456IpasWu','[Crash_Report_Upload]\x20Success\x20response:\x20','userConfig','dPenm','recursivelyDeletePIIKeysFromObject','CrashReporter','includes','ZKxBk','18059624XXUIMJ','vqDia','USER_CONFIG_FOR_REPORTING','frameworkName','13482LdKpxq','forEach','username','key','length','../performance/performance-tester','o11yClassErrorHandler','../helper','apply','2799933zVIdvm','timerify','QgVgn','10212SkfiyH','jFelY','accessKey','4848781HMSuyV','POST','name','OFROM','Error\x20in\x20executing\x20','uploadCrashReport','205rsrhXf','HRYse','true','6uyxGOM','Content-Type','o11yErrorHandler','getFramework','rIavJ','getConfig','HjDzD','auth','keys','ZzEaP','\x20--\x20','ncTbL','pid','then','captureError','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','nebUP','AtWBe','call','1070BYJMYO','NirBd','frameworkDetails','.\x20Error\x20-\x20','setCredentials','getOwnPropertyNames','yqhyk','hzgLU','AqdNT','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','CxYhp','frameworkVersion','xYlal','format','.\x20Args\x20-\x20','HAUat','catch'];a85_0x4add=function(){return _0xa53a1b;};return a85_0x4add();}(function(_0x3b8bc9,_0x365ff8){const _0xa07c77=a85_0x705a,_0x54d808=_0x3b8bc9();while(!![]){try{const _0x28140c=parseInt(_0xa07c77(0x118))/0x1+-parseInt(_0xa07c77(0x10f))/0x2*(parseInt(_0xa07c77(0xd9))/0x3)+-parseInt(_0xa07c77(0xdc))/0x4*(-parseInt(_0xa07c77(0xe5))/0x5)+-parseInt(_0xa07c77(0xe8))/0x6*(parseInt(_0xa07c77(0xdf))/0x7)+-parseInt(_0xa07c77(0xc4))/0x8+parseInt(_0xa07c77(0xd0))/0x9*(parseInt(_0xa07c77(0xfb))/0xa)+parseInt(_0xa07c77(0xcc))/0xb;if(_0x28140c===_0x365ff8)break;else _0x54d808['push'](_0x54d808['shift']());}catch(_0x39b2b0){_0x54d808['push'](_0x54d808['shift']());}}}(a85_0x4add,0x9591f));const util=require(a85_0x2e0166(0x10d)),PerformanceTester=require(a85_0x2e0166(0xd5)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x2e0166(0xc1)),{getAgentVersion,nestedKeyValue}=require(a85_0x2e0166(0xd7)),o11yErrorHandler=(_0x264958,_0x5d7722='',_0x5b4891=[''],_0x31683e=![])=>{const _0x558348={'HjDzD':function(_0x3d8817,_0x3fbceb){return _0x3d8817(_0x3fbceb);},'ZBzMV':function(_0x3bb067,_0x490361,_0x576c33){return _0x3bb067(_0x490361,_0x576c33);},'XheLk':function(_0x31ad1e,_0x16f231){return _0x31ad1e instanceof _0x16f231;},'QgVgn':function(_0x442460,_0xe0dc6f,_0x414cb7,_0x32b7a5,_0x2788a1){return _0x442460(_0xe0dc6f,_0x414cb7,_0x32b7a5,_0x2788a1);}};return function(..._0x4eb687){const _0x585e60=a85_0x705a;try{let _0x14a65a=_0x264958;process[_0x585e60(0xc3)][_0x585e60(0x11e)]&&(_0x14a65a=PerformanceTester[_0x585e60(0x112)]()['timerify'](_0x14a65a));_0x31683e&&_0x558348[_0x585e60(0xee)](trace,'Started\x20::\x20'+_0x5d7722+',\x20PID\x20-\x20'+process[_0x585e60(0xf4)]+',\x20Argument\x20-\x20'+_0x558348[_0x585e60(0x117)](nestedKeyValue,arguments[0x0],_0x5b4891));const _0x3129db=_0x14a65a[_0x585e60(0xd8)](null,arguments);_0x31683e&&_0x558348[_0x585e60(0xee)](trace,'Finished\x20::\x20'+_0x5d7722+_0x585e60(0x12e)+process['pid']+_0x585e60(0x122)+_0x558348[_0x585e60(0x117)](nestedKeyValue,arguments[0x0],_0x5b4891));if(_0x558348['XheLk'](_0x3129db,Promise))return _0x3129db[_0x585e60(0x10b)](_0x5bd579=>processError(_0x5bd579,_0x264958,_0x4eb687,_0x5d7722));return _0x3129db;}catch(_0x5df3a4){_0x558348[_0x585e60(0xdb)](processError,_0x5df3a4,_0x264958,_0x4eb687,_0x5d7722);}};},o11yClassErrorHandler=(_0x9e7a14,_0x19ec1d,_0x1c5547='')=>{const _0x414eb0=a85_0x2e0166,_0x1e4b15={'ncTbL':function(_0x21cd0b,_0x30a600){return _0x21cd0b instanceof _0x30a600;},'eeDBK':function(_0x28b9cc,_0x311d57,_0x4d2651,_0x493ecc,_0x13018a){return _0x28b9cc(_0x311d57,_0x4d2651,_0x493ecc,_0x13018a);},'CxYhp':function(_0x146b3e,_0x320383){return _0x146b3e===_0x320383;},'ZzEaP':_0x414eb0(0x114),'VagDS':function(_0x23154d,_0x92b6b7){return _0x23154d!==_0x92b6b7;},'SlSef':_0x414eb0(0x11d),'XKjEK':function(_0x3c713,_0x1f27ee){return _0x3c713<_0x1f27ee;}},_0x64ce0=_0x9e7a14['prototype'];if(_0x1e4b15['XKjEK'](Object[_0x414eb0(0x100)](_0x64ce0)[_0x414eb0(0xd4)],0x2))return _0x9e7a14;return Object[_0x414eb0(0x100)](_0x64ce0)[_0x414eb0(0xd1)](_0x207cfc=>{const _0x329b7b=_0x414eb0,_0xa50fe9={'JzIjj':function(_0x332ab2,_0x180597){const _0x1e1351=a85_0x705a;return _0x1e4b15[_0x1e1351(0xf3)](_0x332ab2,_0x180597);},'lvHQU':function(_0x32df69,_0x2d1adc,_0x4eeef1,_0x8bd8fe,_0xbf90ce){return _0x1e4b15['eeDBK'](_0x32df69,_0x2d1adc,_0x4eeef1,_0x8bd8fe,_0xbf90ce);}};if(!(_0x19ec1d&&_0x19ec1d['includes'](_0x207cfc)))return;const _0x5b0287=_0x64ce0[_0x207cfc];_0x1e4b15[_0x329b7b(0x105)](typeof _0x5b0287,_0x1e4b15[_0x329b7b(0xf1)])&&_0x1e4b15[_0x329b7b(0x12d)](_0x207cfc,_0x1e4b15[_0x329b7b(0x11c)])&&Object['defineProperty'](_0x64ce0,_0x207cfc,{'writable':!![],'value':function(..._0x135ccb){const _0x28f5f4=_0x329b7b;try{const _0x30f7cc=(process[_0x28f5f4(0xc3)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x28f5f4(0x112)]()[_0x28f5f4(0xda)](_0x5b0287):_0x5b0287)[_0x28f5f4(0xfa)](this,..._0x135ccb);if(_0xa50fe9[_0x28f5f4(0x128)](_0x30f7cc,Promise))return _0x30f7cc[_0x28f5f4(0x10b)](_0x46ff43=>processError(_0x46ff43,_0x5b0287,_0x135ccb,_0x1c5547));return _0x30f7cc;}catch(_0xe76c21){_0xa50fe9[_0x28f5f4(0x125)](processError,_0xe76c21,_0x5b0287,_0x135ccb,_0x1c5547);}}});}),_0x9e7a14;};function processError(_0x24fde7,_0x22b9d3,_0x192d28,_0x50957f){const _0x253933=a85_0x2e0166,_0x4eaafc={'rshNW':function(_0x2845bf,_0x17e398){return _0x2845bf(_0x17e398);}};_0x4eaafc[_0x253933(0x10e)](debug,_0x253933(0xe3)+_0x22b9d3[_0x253933(0xe1)]+_0x253933(0xf2)+_0x50957f+_0x253933(0xfe)+_0x24fde7+_0x253933(0x109)+_0x192d28+'.'),PerformanceTester[_0x253933(0xf6)](_0x24fde7);let _0x35e3e1;try{_0x35e3e1=JSON[_0x253933(0x111)](_0x192d28);}catch(_0x42567e){const _0x3c86c9={};_0x3c86c9['depth']=0x2,_0x35e3e1=util['inspect'](_0x192d28,_0x3c86c9);}CrashReporter[_0x253933(0xe4)](_0x253933(0xe3)+_0x22b9d3[_0x253933(0xe1)]+'\x20--\x20'+_0x50957f+_0x253933(0xfe)+_0x24fde7+_0x253933(0x109)+_0x35e3e1+'.',_0x24fde7&&_0x24fde7['stack']);}function a85_0x705a(_0x312c90,_0x58d5a5){const _0x4addee=a85_0x4add();return a85_0x705a=function(_0x705a35,_0x193585){_0x705a35=_0x705a35-0xc0;let _0x77d1c3=_0x4addee[_0x705a35];return _0x77d1c3;},a85_0x705a(_0x312c90,_0x58d5a5);}class CrashReporter{static [a85_0x2e0166(0xc6)]={};static [a85_0x2e0166(0xc2)];static [a85_0x2e0166(0xfd)]={};static['initialize'](_0x3ab4a5,_0x5d8c40,_0x229533=null){const _0x3049c3=a85_0x2e0166,_0x385234={'nebUP':function(_0x2ff23a,_0x5b6502){return _0x2ff23a(_0x5b6502);},'AtWBe':function(_0x1086a6,_0x58c159){return _0x1086a6(_0x58c159);},'PvBqE':function(_0x451e36,_0x3d82fa){return _0x451e36(_0x3d82fa);}},_0x158772=_0x3ab4a5[_0x3049c3(0xcf)],_0x424f37=_0x3ab4a5[_0x3049c3(0x106)];!_0x229533&&(_0x229533=_0x385234[_0x3049c3(0xf8)](getBrowserStackConfig,_0x158772));!_0x424f37&&_0x385234[_0x3049c3(0xf9)](getFrameworkVersion,_0x158772);const _0x57cf60={};_0x57cf60[_0x3049c3(0xcf)]=_0x158772,_0x57cf60[_0x3049c3(0x106)]=_0x424f37,this['setAllDetails'](_0x57cf60,_0x5d8c40,_0x385234['PvBqE'](getUserCredentials,_0x229533));}static[a85_0x2e0166(0xff)](_0x2463fe,_0x4628b6){const _0x5d17ec=a85_0x2e0166,_0x24e788={};_0x24e788[_0x5d17ec(0xd2)]=_0x2463fe,_0x24e788[_0x5d17ec(0xde)]=_0x4628b6,this[_0x5d17ec(0xc2)]=_0x24e788,process[_0x5d17ec(0xc3)][_0x5d17ec(0x116)]=JSON[_0x5d17ec(0x111)](this[_0x5d17ec(0xc2)]);}static[a85_0x2e0166(0x12b)](){const _0xadcc6c=a85_0x2e0166,_0x1639d6={'ArmpX':function(_0x414f2a,_0x6d032d){return _0x414f2a(_0x6d032d);}};if(!this[_0xadcc6c(0xc2)]&&process[_0xadcc6c(0xc3)][_0xadcc6c(0x116)])try{this[_0xadcc6c(0xc2)]=JSON[_0xadcc6c(0x121)](process['env'][_0xadcc6c(0x116)]);}catch(_0x112f0f){_0x1639d6['ArmpX'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x112f0f['toString']());}return this[_0xadcc6c(0xc2)];}static[a85_0x2e0166(0x113)](_0x29ec3a){const _0x38640e=a85_0x2e0166;this['userConfig']=this[_0x38640e(0x115)](_0x29ec3a),process[_0x38640e(0xc3)][_0x38640e(0xce)]=JSON[_0x38640e(0x111)](this['userConfig']);}static['getConfig'](){const _0x1bb570=a85_0x2e0166,_0x17a097={'OFROM':function(_0x4fc41e,_0x178e31){return _0x4fc41e===_0x178e31;},'CTfcC':function(_0x2a093e,_0x40a8d5){return _0x2a093e(_0x40a8d5);}};if(_0x17a097[_0x1bb570(0xe2)](Object['keys'](this[_0x1bb570(0xc6)])[_0x1bb570(0xd4)],0x0)&&process[_0x1bb570(0xc3)][_0x1bb570(0xce)])try{this[_0x1bb570(0xc6)]=JSON[_0x1bb570(0x121)](process['env'][_0x1bb570(0xce)]);}catch(_0x345226){_0x17a097[_0x1bb570(0x120)](debug,_0x1bb570(0x110)+_0x345226[_0x1bb570(0x12c)]()),this[_0x1bb570(0xc6)]={};}return this[_0x1bb570(0xc6)];}static[a85_0x2e0166(0x11f)](_0x220fe1){const _0x15ee9b=a85_0x2e0166;this['frameworkDetails']=_0x220fe1,process[_0x15ee9b(0xc3)][_0x15ee9b(0xf7)]=JSON[_0x15ee9b(0x111)](this[_0x15ee9b(0xfd)]);}static['getFramework'](){const _0x59653f=a85_0x2e0166,_0xd3dc1c={'HAUat':function(_0x3cbdf5,_0x1fa534){return _0x3cbdf5===_0x1fa534;},'XyrvP':function(_0xb437bc,_0x238cff){return _0xb437bc(_0x238cff);}};if(_0xd3dc1c[_0x59653f(0x10a)](Object[_0x59653f(0xf0)](this[_0x59653f(0xfd)])[_0x59653f(0xd4)],0x0)&&process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x59653f(0xfd)]=JSON['parse'](process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0xceac8c){_0xd3dc1c[_0x59653f(0x12a)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xceac8c['toString']());}return this[_0x59653f(0xfd)];}static[a85_0x2e0166(0x124)](_0x41e821,_0x3561f4,_0x4a865f){const _0x250154=a85_0x2e0166;_0x41e821&&this[_0x250154(0x11f)](_0x41e821),_0x3561f4&&this['setConfigDetails'](_0x3561f4),_0x4a865f&&this['setCredentials'](_0x4a865f[_0x250154(0xd2)],_0x4a865f[_0x250154(0xde)]);}static async['uploadCrashReport'](_0x247480,_0xb448ed){const _0x1ba6f5=a85_0x2e0166,_0xf5e879={'jFelY':function(_0xc63989,_0x26f9f0){return _0xc63989(_0x26f9f0);},'rIavJ':function(_0x242df0,_0x57e441){return _0x242df0(_0x57e441);},'NirBd':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','vAYuR':function(_0x484c69){return _0x484c69();},'dPenm':_0x1ba6f5(0x127),'ZKxBk':_0x1ba6f5(0x129),'jTpBs':_0x1ba6f5(0xe7),'jcvpv':function(_0x939be5,_0x34de30,_0x353074,_0x3823db,_0x9bd128,_0x3d15d2){return _0x939be5(_0x34de30,_0x353074,_0x3823db,_0x9bd128,_0x3d15d2);},'yqhyk':_0x1ba6f5(0xe0)};this['getCredentials']();if(!this['credentials'])return _0xf5e879['rIavJ'](debug,_0xf5e879[_0x1ba6f5(0xfc)]);this[_0x1ba6f5(0xed)](),this[_0x1ba6f5(0xeb)]();const _0x3dd656={'hashed_id':process['env']['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0xf5e879['vAYuR'](getAgentVersion),'frameworkName':this[_0x1ba6f5(0xfd)][_0x1ba6f5(0xcf)],'frameworkVersion':this[_0x1ba6f5(0xfd)]['frameworkVersion']},'exception':{'error':_0x247480[_0x1ba6f5(0x12c)](),'stackTrace':_0xb448ed},'config':this[_0x1ba6f5(0xc6)]},_0x8cca6b=_0xf5e879[_0x1ba6f5(0xc7)],_0x3ec41e={};_0x3ec41e[_0x1ba6f5(0xd2)]=this[_0x1ba6f5(0xc2)][_0x1ba6f5(0xd2)],_0x3ec41e[_0x1ba6f5(0x126)]=this[_0x1ba6f5(0xc2)][_0x1ba6f5(0xde)];const _0x13117a={};_0x13117a[_0x1ba6f5(0xe9)]=_0xf5e879[_0x1ba6f5(0xcb)],_0x13117a[_0x1ba6f5(0x12f)]=_0xf5e879['jTpBs'];const _0x1b2026={};_0x1b2026[_0x1ba6f5(0xef)]=_0x3ec41e,_0x1b2026[_0x1ba6f5(0xc0)]=_0x13117a;const _0x71f9fb=_0x1b2026;_0xf5e879[_0x1ba6f5(0x123)](nodeRequest,_0xf5e879[_0x1ba6f5(0x101)],_0x8cca6b,_0x3dd656,_0x71f9fb,![])[_0x1ba6f5(0xf5)](_0x1b31a2=>{const _0x2446c=_0x1ba6f5;_0xf5e879[_0x2446c(0xdd)](debug,_0x2446c(0xc5)+JSON[_0x2446c(0x111)](_0x1b31a2));})['catch'](_0x289205=>{const _0x42c294=_0x1ba6f5;_0xf5e879[_0x42c294(0xec)](debug,_0x42c294(0x104)+util[_0x42c294(0x108)](_0x289205));});}static['recursivelyDeletePIIKeysFromObject'](_0xa096c4){const _0x4fc26e=a85_0x2e0166,_0x5c1647={};_0x5c1647[_0x4fc26e(0x102)]='user',_0x5c1647['wTxYK']=_0x4fc26e(0xd2),_0x5c1647['xYlal']=_0x4fc26e(0xd3),_0x5c1647[_0x4fc26e(0xe6)]=_0x4fc26e(0xde),_0x5c1647['fyyjZ']='password',_0x5c1647[_0x4fc26e(0xcd)]=function(_0x32c921,_0x1c8fad){return _0x32c921===_0x1c8fad;},_0x5c1647['AqdNT']=_0x4fc26e(0x11b);const _0x2e3c88=_0x5c1647;if(!_0xa096c4)return;const _0x36c6a7=[_0x2e3c88[_0x4fc26e(0x102)],_0x2e3c88[_0x4fc26e(0x11a)],_0x2e3c88[_0x4fc26e(0x107)],_0x2e3c88[_0x4fc26e(0xe6)],_0x2e3c88[_0x4fc26e(0x119)]];for(const _0x1b9b07 in _0xa096c4){if(_0x36c6a7[_0x4fc26e(0xca)](_0x1b9b07['toLowerCase']()))delete _0xa096c4[_0x1b9b07];else _0x2e3c88[_0x4fc26e(0xcd)](typeof _0xa096c4[_0x1b9b07],_0x2e3c88[_0x4fc26e(0x103)])&&this[_0x4fc26e(0xc8)](_0xa096c4[_0x1b9b07]);}}static[a85_0x2e0166(0x115)](_0x145ae9){const _0x135af8=a85_0x2e0166,_0x1d423b=JSON['parse'](JSON[_0x135af8(0x111)](_0x145ae9));return this['recursivelyDeletePIIKeysFromObject'](_0x1d423b),_0x1d423b;}}const a85_0x15b2c0={};a85_0x15b2c0[a85_0x2e0166(0xea)]=o11yErrorHandler,a85_0x15b2c0[a85_0x2e0166(0xd6)]=o11yClassErrorHandler,a85_0x15b2c0[a85_0x2e0166(0xc9)]=CrashReporter,module[a85_0x2e0166(0x10c)]=a85_0x15b2c0;
@@ -1 +1 @@
1
- function a86_0x38ed(_0x1c9391,_0x4021d2){const _0x23aff3=a86_0x23af();return a86_0x38ed=function(_0x38ed6a,_0x2ae043){_0x38ed6a=_0x38ed6a-0x182;let _0x2e9e61=_0x23aff3[_0x38ed6a];return _0x2e9e61;},a86_0x38ed(_0x1c9391,_0x4021d2);}function a86_0x23af(){const _0x284d73=['3288196uGNaKH','shouldProceed','CBTSessionCreated','\x20--\x20','BOvjp','splice','test_run','join','RIoor','InKBG','uploadPending','fdEcK','split','NHCWG','./utils','GicaF','exports','upload-attachments','REMOVING','4750386PlSIxr','slice','EXCEPTION\x20IN\x20','LBSUT','uuid','DXxgK','hgEwk','hook_run','Processing\x20batch\x20events\x20for\x20','UFIsE','lhFBk','batchAndPostEvents','started','instance','length','screenshotEventUrl','error','startEventBatchPolling','utf8','3118464wMheFY','BATCH_EVENT_TYPES','queue','shutdown','TestRunFinished','PODlk','HuKYO','TestRunSkipped','statusText','byteLength','RESETTING','proceedWithUrl','GGYxV','RSxJE','api/v1/batch','response','pQzDm','max','BcXRQ','jhqyX','util','proceedWithData','getInstance','kind','data','11384944njxAZD','30324987HqHBKm','2050410rfvZto','kiywn','Processing\x20events.\x20Queue\x20Length\x20-\x20','logs','dtdFI','CgDND','\x20event\x20successful\x20for\x20events\x20','JrJzB','format','push','cTCYx','MijXd','DXnzB','WdhmO','KwPLk','Yzioo','eventUrl','Shutdown-Queue','wgzeN','ObYew','resetEventBatchPolling','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','TQwPh','7DfAsbz','.\x20Request\x20Size\x20-\x20','1|3|0|2|4|6|5','YCKea','NAOEq','TwjSW','ICCwo','8fHkgQl','skmyL','\x20bytes.\x20Events\x20are\x20','event_type','pollEventBatchInterval','VEccv','Interval-Queue','includes','IQHAd','removeEventBatchPolling','./constants','57047VuyrtU','QHkLd','pendingUploads','POST'];a86_0x23af=function(){return _0x284d73;};return a86_0x23af();}const a86_0x3d72e6=a86_0x38ed;(function(_0x52ee84,_0x30fd4c){const _0x393937=a86_0x38ed,_0x33e753=_0x52ee84();while(!![]){try{const _0x2981e1=parseInt(_0x393937(0x1ae))/0x1*(-parseInt(_0x393937(0x1a3))/0x2)+parseInt(_0x393937(0x1d8))/0x3+-parseInt(_0x393937(0x1b2))/0x4+-parseInt(_0x393937(0x184))/0x5+parseInt(_0x393937(0x1c5))/0x6*(-parseInt(_0x393937(0x19c))/0x7)+-parseInt(_0x393937(0x182))/0x8+parseInt(_0x393937(0x183))/0x9;if(_0x2981e1===_0x30fd4c)break;else _0x33e753['push'](_0x33e753['shift']());}catch(_0x1a95f2){_0x33e753['push'](_0x33e753['shift']());}}}(a86_0x23af,0xb3243));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x3d72e6(0x1ad)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x3d72e6(0x1c0)),{nestedKeyValue}=require('../helper'),util=require(a86_0x3d72e6(0x1ec));class RequestQueueHandler{static [a86_0x3d72e6(0x1d2)];['pendingUploads']=0x0;constructor(){const _0x596543=a86_0x3d72e6,_0x35800a={};_0x35800a['jhqyX']=_0x596543(0x19e),_0x35800a['DXnzB']=_0x596543(0x1e6),_0x35800a['LBSUT']='api/v1/screenshots',_0x35800a[_0x596543(0x1de)]=_0x596543(0x1c3),_0x35800a[_0x596543(0x1dd)]='LogCreated',_0x35800a['BcXRQ']=_0x596543(0x1b4),_0x35800a[_0x596543(0x1bd)]=_0x596543(0x1dc),_0x35800a[_0x596543(0x1a8)]=_0x596543(0x1df),_0x35800a[_0x596543(0x18b)]='HookRunFinished',_0x35800a[_0x596543(0x1ba)]='TestRunStarted',_0x35800a[_0x596543(0x1e8)]='HookRunStarted';const _0x3b5304=_0x35800a,_0x5b006a=_0x3b5304[_0x596543(0x1eb)][_0x596543(0x1be)]('|');let _0x59c890=0x0;while(!![]){switch(_0x5b006a[_0x59c890++]){case'0':this[_0x596543(0x194)]=_0x3b5304[_0x596543(0x190)];continue;case'1':this[_0x596543(0x1da)]=[];continue;case'2':this[_0x596543(0x1d4)]=_0x3b5304[_0x596543(0x1c8)];continue;case'3':this[_0x596543(0x1d1)]=![];continue;case'4':this['uploadAttachmentUrl']=_0x3b5304[_0x596543(0x1de)];continue;case'5':this[_0x596543(0x1a7)]=null;continue;case'6':this[_0x596543(0x1d9)]=[_0x3b5304[_0x596543(0x1dd)],_0x3b5304[_0x596543(0x1ea)],_0x3b5304[_0x596543(0x1bd)],_0x3b5304[_0x596543(0x1a8)],_0x3b5304['JrJzB'],_0x3b5304[_0x596543(0x1ba)],_0x3b5304[_0x596543(0x1e8)]];continue;}break;}}static[a86_0x3d72e6(0x1ee)](){return!RequestQueueHandler['instance']&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x46ae83=a86_0x3d72e6;!this[_0x46ae83(0x1d1)]&&(this['started']=!![],this['startEventBatchPolling']());};['add']=_0x2f0535=>{const _0x20e16e=a86_0x3d72e6,_0x1fa6f0={'YCKea':function(_0x2e483c,_0x377772){return _0x2e483c===_0x377772;},'NHCWG':'TEST_SCREENSHOT','CjrHK':function(_0x3affa0,_0x493307){return _0x3affa0>_0x493307;},'InKBG':function(_0x1dc682,_0x2e3613){return _0x1dc682===_0x2e3613;},'uBZAa':'TEST_ATTACHMENT','IQHAd':function(_0x23f2f5,_0x232cbe){return _0x23f2f5!==_0x232cbe;},'QHkLd':'TestRunFinished','hgEwk':function(_0x365b02,_0x409460){return _0x365b02(_0x409460);},'GoPdR':_0x20e16e(0x199)};if(this['BATCH_EVENT_TYPES'][_0x20e16e(0x1aa)](_0x2f0535[_0x20e16e(0x1a6)])){if(_0x2f0535['logs']&&_0x2f0535['logs'][0x0]&&_0x1fa6f0[_0x20e16e(0x19f)](_0x2f0535[_0x20e16e(0x187)][0x0]['kind'],_0x1fa6f0[_0x20e16e(0x1bf)])){const _0x7aaa84={};return _0x7aaa84['shouldProceed']=!![],_0x7aaa84[_0x20e16e(0x1ed)]=[_0x2f0535],_0x7aaa84[_0x20e16e(0x1e3)]=this[_0x20e16e(0x1d4)],_0x7aaa84;}if(_0x2f0535[_0x20e16e(0x187)]&&_0x1fa6f0['CjrHK'](_0x2f0535[_0x20e16e(0x187)][_0x20e16e(0x1d3)],0x0)&&_0x1fa6f0[_0x20e16e(0x1bb)](_0x2f0535[_0x20e16e(0x187)][0x0][_0x20e16e(0x1ef)],_0x1fa6f0['uBZAa'])&&_0x1fa6f0[_0x20e16e(0x1ab)](_0x2f0535['event_type'],_0x1fa6f0[_0x20e16e(0x1af)])){const _0x2f0a21={};return _0x2f0a21[_0x20e16e(0x1b3)]=!![],_0x2f0a21['proceedWithData']=[_0x2f0535],_0x2f0a21[_0x20e16e(0x1e3)]=this['uploadAttachmentUrl'],_0x2f0a21;}this[_0x20e16e(0x1da)][_0x20e16e(0x18d)](_0x2f0535);let _0x36552b=null;const _0x1d91a6=this['shouldProceed']();_0x1d91a6&&(_0x1fa6f0[_0x20e16e(0x1cb)](trace,_0x1fa6f0['GoPdR']),_0x36552b=this['queue']['slice'](0x0,BATCH_SIZE),this[_0x20e16e(0x1da)][_0x20e16e(0x1b7)](0x0,BATCH_SIZE),this[_0x20e16e(0x198)]());const _0x6a3cf9={};return _0x6a3cf9['shouldProceed']=_0x1d91a6,_0x6a3cf9[_0x20e16e(0x1ed)]=_0x36552b,_0x6a3cf9[_0x20e16e(0x1e3)]=this[_0x20e16e(0x194)],_0x6a3cf9;}const _0x38a394={};return _0x38a394[_0x20e16e(0x1b3)]=!![],_0x38a394;};[a86_0x3d72e6(0x1db)]=async()=>{const _0x1a49eb=a86_0x3d72e6,_0x2b2e1b={'KwPLk':_0x1a49eb(0x1c4),'skmyL':function(_0x4475ec,_0xbe368a){return _0x4475ec>_0xbe368a;},'TwjSW':_0x1a49eb(0x195),'lhFBk':function(_0x544c9e,_0x29c565){return _0x544c9e(_0x29c565);}};await this[_0x1a49eb(0x1bc)](),this['removeEventBatchPolling'](_0x2b2e1b[_0x1a49eb(0x192)]);while(_0x2b2e1b['skmyL'](this['queue'][_0x1a49eb(0x1d3)],0x0)){const _0x348a09=this[_0x1a49eb(0x1da)][_0x1a49eb(0x1c6)](0x0,BATCH_SIZE);this[_0x1a49eb(0x1da)]['splice'](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x1a49eb(0x194)],_0x2b2e1b[_0x1a49eb(0x1a1)],_0x348a09);}_0x2b2e1b[_0x1a49eb(0x1a4)](this[_0x1a49eb(0x1b0)],0x0)&&_0x2b2e1b[_0x1a49eb(0x1cf)](debug,_0x1a49eb(0x19a)+this[_0x1a49eb(0x1b0)]);};[a86_0x3d72e6(0x1d0)]=async(_0x1d418e,_0x148c7b,_0x465cdb)=>{const _0x2d7ebc=a86_0x3d72e6,_0x90fc9e={'dtdFI':function(_0x2b392b,_0xbcc12e){return _0x2b392b(_0xbcc12e);},'xOEJH':_0x2d7ebc(0x1d7),'NAOEq':function(_0x26f1dd,_0x553b47){return _0x26f1dd(_0x553b47);},'tHybJ':function(_0x3f6be9){return _0x3f6be9();},'BOvjp':function(_0x1490dd,_0x477c13,_0x51e8ea,_0x3fba5c,_0x4e115b){return _0x1490dd(_0x477c13,_0x51e8ea,_0x3fba5c,_0x4e115b);},'Yzioo':_0x2d7ebc(0x1b1),'ICCwo':function(_0xc4f47,_0x202eb6){return _0xc4f47(_0x202eb6);},'CgDND':function(_0x45d2fb,_0x1e9dbf){return _0x45d2fb-_0x1e9dbf;}};let _0x2f83e4='';try{_0x2f83e4=_0x465cdb['map'](_0x4bfd3d=>'\x27'+_0x4bfd3d[_0x2d7ebc(0x1a6)]+'\x27:'+(nestedKeyValue(_0x4bfd3d,[_0x2d7ebc(0x1b8),_0x2d7ebc(0x1c9)])||nestedKeyValue(_0x4bfd3d,[_0x2d7ebc(0x1cc),_0x2d7ebc(0x1c9)])))[_0x2d7ebc(0x1b9)](','),_0x90fc9e[_0x2d7ebc(0x188)](debug,_0x2d7ebc(0x1cd)+_0x148c7b+_0x2d7ebc(0x19d)+Buffer[_0x2d7ebc(0x1e1)](util[_0x2d7ebc(0x18c)]('%j',_0x465cdb),_0x90fc9e['xOEJH'])+_0x2d7ebc(0x1a5)+_0x2f83e4);}catch(_0x1a8796){_0x90fc9e[_0x2d7ebc(0x1a0)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util[_0x2d7ebc(0x18c)](_0x1a8796)+'}');}const _0x4c01eb={'headers':_0x90fc9e['tHybJ'](getDefaultHeaders)};try{const _0x4b6488=await _0x90fc9e[_0x2d7ebc(0x1b6)](nodeRequest,_0x90fc9e[_0x2d7ebc(0x193)],_0x1d418e,_0x465cdb,_0x4c01eb);if(_0x4b6488[_0x2d7ebc(0x1f0)][_0x2d7ebc(0x1d5)]){const _0x446231={};_0x446231['message']=_0x4b6488[_0x2d7ebc(0x1f0)][_0x2d7ebc(0x1d5)];throw _0x446231;}else _0x90fc9e[_0x2d7ebc(0x1a2)](debug,_0x148c7b+_0x2d7ebc(0x18a)+_0x2f83e4+_0x2d7ebc(0x1b5)+util[_0x2d7ebc(0x18c)]('%j',_0x4b6488[_0x2d7ebc(0x1f0)])),this[_0x2d7ebc(0x1b0)]=Math[_0x2d7ebc(0x1e9)](0x0,_0x90fc9e[_0x2d7ebc(0x189)](this[_0x2d7ebc(0x1b0)],_0x465cdb[_0x2d7ebc(0x1d3)]));}catch(_0x39a357){_0x39a357[_0x2d7ebc(0x1e7)]?_0x90fc9e[_0x2d7ebc(0x1a2)](debug,_0x2d7ebc(0x1c7)+_0x148c7b+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x39a357[_0x2d7ebc(0x1e7)]['status']+'\x20'+_0x39a357['response'][_0x2d7ebc(0x1e0)]+'\x20'+util[_0x2d7ebc(0x18c)]('%j',_0x39a357[_0x2d7ebc(0x1e7)])):_0x90fc9e[_0x2d7ebc(0x1a0)](debug,_0x2d7ebc(0x1c7)+_0x148c7b+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x39a357['message']||_0x39a357)),this[_0x2d7ebc(0x1b0)]=Math[_0x2d7ebc(0x1e9)](0x0,_0x90fc9e[_0x2d7ebc(0x189)](this['pendingUploads'],_0x465cdb['length']));}};['startEventBatchPolling']=()=>{const _0x120083=a86_0x3d72e6,_0x2a3af5={'GGYxV':function(_0x46e8ee,_0x50af31){return _0x46e8ee>_0x50af31;},'TQwPh':function(_0x40faf5,_0x475fe6){return _0x40faf5(_0x475fe6);},'cTCYx':_0x120083(0x1a9),'ObYew':function(_0x5ffcbf,_0x1a83cf){return _0x5ffcbf(_0x1a83cf);},'UFIsE':function(_0x2ca25e,_0x1053fe,_0x364c35){return _0x2ca25e(_0x1053fe,_0x364c35);}};this[_0x120083(0x1a7)]=_0x2a3af5[_0x120083(0x1ce)](setInterval,async()=>{const _0x516e2c=_0x120083;if(_0x2a3af5[_0x516e2c(0x1e4)](this[_0x516e2c(0x1da)][_0x516e2c(0x1d3)],0x0)){_0x2a3af5[_0x516e2c(0x19b)](trace,_0x516e2c(0x186)+this[_0x516e2c(0x1da)]['length']);const _0x2b262e=this[_0x516e2c(0x1da)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x516e2c(0x1b7)](0x0,BATCH_SIZE),await this[_0x516e2c(0x1d0)](this[_0x516e2c(0x194)],_0x2a3af5[_0x516e2c(0x18e)],_0x2b262e),_0x2a3af5[_0x516e2c(0x197)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x516e2c(0x1da)]['length']);}},BATCH_INTERVAL);};[a86_0x3d72e6(0x198)]=()=>{const _0x5d7b3=a86_0x3d72e6,_0x4d5938={};_0x4d5938['kiywn']=_0x5d7b3(0x1e2);const _0x31ea41=_0x4d5938;this[_0x5d7b3(0x1ac)](_0x31ea41[_0x5d7b3(0x185)]),this[_0x5d7b3(0x1d6)]();};['removeEventBatchPolling']=_0x28799d=>{const _0x26a2ed=a86_0x3d72e6,_0x34e435={'GicaF':function(_0x5a83b5,_0x37b28c){return _0x5a83b5(_0x37b28c);},'RSxJE':function(_0x513718,_0xebc49e){return _0x513718===_0xebc49e;},'wgzeN':_0x26a2ed(0x1c4)};this['pollEventBatchInterval']&&(_0x34e435[_0x26a2ed(0x1c1)](clearInterval,this[_0x26a2ed(0x1a7)]),this[_0x26a2ed(0x1a7)]=null,_0x34e435[_0x26a2ed(0x1e5)](_0x28799d,_0x34e435[_0x26a2ed(0x196)])&&(this['started']=![]));};[a86_0x3d72e6(0x1b3)]=()=>{const _0x141caf=a86_0x3d72e6,_0x58daee={};_0x58daee['WdhmO']=function(_0x1614aa,_0x2ee0bc){return _0x1614aa>=_0x2ee0bc;};const _0x27b069=_0x58daee;return _0x27b069[_0x141caf(0x191)](this[_0x141caf(0x1da)]['length'],BATCH_SIZE);};async[a86_0x3d72e6(0x1bc)](_0x8e028b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x398810=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x43dd5c=a86_0x3d72e6,_0x517a9c={'DXxgK':function(_0x885967,_0x315d1f){return _0x885967<=_0x315d1f;},'MijXd':function(_0x7a29c0,_0x2f737d){return _0x7a29c0(_0x2f737d);},'lyWVM':function(_0x25dd16,_0x2c992a){return _0x25dd16-_0x2c992a;}};if(_0x517a9c[_0x43dd5c(0x1ca)](this[_0x43dd5c(0x1b0)],0x0)||_0x517a9c[_0x43dd5c(0x1ca)](_0x8e028b,0x0))return;return await _0x517a9c[_0x43dd5c(0x18f)](sleep,_0x398810),this[_0x43dd5c(0x1bc)](_0x517a9c['lyWVM'](_0x8e028b,_0x398810));}}module[a86_0x3d72e6(0x1c2)]=RequestQueueHandler;
1
+ function a86_0x44bc(){const _0xcaf91=['data','started','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','rLBMn','POST','skLpS','YNNQM','uploadAttachmentUrl','slice','462943qLgPRm','zMlAo','./utils','format','PWSVd','BATCH_EVENT_TYPES','batchAndPostEvents','kind','Interval-Queue','JQbJz','ZFHRF','length','test_run','PDGQI','WBlGc','8388cFMqFl','pollEventBatchInterval','TestRunStarted','removeEventBatchPolling','add','RgKQw','max','map','MOzPw','split','splice','logs','IZgAL','ziAio','TEST_SCREENSHOT','uzwwU','raefS','PDyjF','hook_run','message','eSQRY','TEST_ATTACHMENT','2103661DvClVD','EXCEPTION\x20IN\x20','63430MjANYG','join','AsXgE','HyAen','error','eventUrl','byteLength','tzYCE','kHKcY','Shutdown-Queue','TestRunFinished','kMceY','Processing\x20batch\x20events\x20for\x20','screenshotEventUrl','DwLop','proceedWithData','utf8','LogCreated','Remaining\x20Queue\x20Length\x20-\x20','nVTzT','.\x20Request\x20Size\x20-\x20','queue','vJHfh','getInstance','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','pOgNw','MSRDp','proceedWithUrl','XZRjz','shouldProceed','pendingUploads','push','shutdown','resetEventBatchPolling','OXxMi','includes','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','cJSIR','BQgPh','instance','xUNOx','KPrIv','jbEyS','uuid','TestRunSkipped','yhCZx','response','2820306lgSioX','599064lyRulc','status','ZQART','REMOVING','statusText','\x20--\x20','startEventBatchPolling','uploadPending','pXKCz','204OURlAU','event_type','11938500uZvSTU','dYDeK','136TwylkL','CNbYJ','api/v1/batch','RESETTING','TFbJp','HookRunFinished','ckFoe','util','start','sUrSs','\x20bytes.\x20Events\x20are\x20','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','api/v1/screenshots','9andLnE'];a86_0x44bc=function(){return _0xcaf91;};return a86_0x44bc();}function a86_0x4915(_0x4c1aa3,_0x4e1c70){const _0x44bcb8=a86_0x44bc();return a86_0x4915=function(_0x49154d,_0x1236db){_0x49154d=_0x49154d-0x7d;let _0xf4eb20=_0x44bcb8[_0x49154d];return _0xf4eb20;},a86_0x4915(_0x4c1aa3,_0x4e1c70);}const a86_0x16190e=a86_0x4915;(function(_0x42a46e,_0x2fe2b1){const _0x39d841=a86_0x4915,_0x522959=_0x42a46e();while(!![]){try{const _0x8fc622=parseInt(_0x39d841(0xb6))/0x1+parseInt(_0x39d841(0xc5))/0x2*(-parseInt(_0x39d841(0x9b))/0x3)+-parseInt(_0x39d841(0x9f))/0x4*(parseInt(_0x39d841(0xdd))/0x5)+-parseInt(_0x39d841(0x91))/0x6+-parseInt(_0x39d841(0xdb))/0x7+-parseInt(_0x39d841(0x92))/0x8*(-parseInt(_0x39d841(0xac))/0x9)+parseInt(_0x39d841(0x9d))/0xa;if(_0x8fc622===_0x2fe2b1)break;else _0x522959['push'](_0x522959['shift']());}catch(_0x102dac){_0x522959['push'](_0x522959['shift']());}}}(a86_0x44bc,0x3bb6a));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_0x16190e(0xb8)),{nestedKeyValue}=require('../helper'),util=require(a86_0x16190e(0xa6));class RequestQueueHandler{static [a86_0x16190e(0x89)];[a86_0x16190e(0x80)]=0x0;constructor(){const _0xc7990c=a86_0x16190e,_0x554273={};_0x554273[_0xc7990c(0x7e)]='0|3|4|1|2|5|6',_0x554273['ziAio']=_0xc7990c(0xab),_0x554273[_0xc7990c(0xa8)]='upload-attachments',_0x554273[_0xc7990c(0xc4)]=_0xc7990c(0xa1),_0x554273['kHKcY']=_0xc7990c(0xee),_0x554273['RgKQw']='CBTSessionCreated',_0x554273['MOzPw']=_0xc7990c(0xe7),_0x554273[_0xc7990c(0x8c)]=_0xc7990c(0x8e),_0x554273[_0xc7990c(0x87)]=_0xc7990c(0xa4),_0x554273[_0xc7990c(0x8f)]=_0xc7990c(0xc7),_0x554273['tzYCE']='HookRunStarted';const _0x2c3854=_0x554273,_0x405d91=_0x2c3854[_0xc7990c(0x7e)][_0xc7990c(0xce)]('|');let _0x2159f6=0x0;while(!![]){switch(_0x405d91[_0x2159f6++]){case'0':this[_0xc7990c(0xf2)]=[];continue;case'1':this[_0xc7990c(0xea)]=_0x2c3854[_0xc7990c(0xd2)];continue;case'2':this[_0xc7990c(0xb4)]=_0x2c3854['sUrSs'];continue;case'3':this[_0xc7990c(0xae)]=![];continue;case'4':this['eventUrl']=_0x2c3854['WBlGc'];continue;case'5':this[_0xc7990c(0xbb)]=[_0x2c3854[_0xc7990c(0xe5)],_0x2c3854[_0xc7990c(0xca)],_0x2c3854[_0xc7990c(0xcd)],_0x2c3854[_0xc7990c(0x8c)],_0x2c3854[_0xc7990c(0x87)],_0x2c3854['yhCZx'],_0x2c3854[_0xc7990c(0xe4)]];continue;case'6':this[_0xc7990c(0xc6)]=null;continue;}break;}}static[a86_0x16190e(0xf4)](){const _0x11a813=a86_0x16190e;return!RequestQueueHandler[_0x11a813(0x89)]&&(RequestQueueHandler[_0x11a813(0x89)]=new RequestQueueHandler()),RequestQueueHandler[_0x11a813(0x89)];}[a86_0x16190e(0xa7)]=()=>{const _0x21a923=a86_0x16190e;!this[_0x21a923(0xae)]&&(this['started']=!![],this['startEventBatchPolling']());};[a86_0x16190e(0xc9)]=_0x52525b=>{const _0x5ee41c=a86_0x16190e,_0x2f458d={'zMlAo':function(_0x390508,_0xd67ece){return _0x390508===_0xd67ece;},'JQbJz':_0x5ee41c(0xd3),'aRipa':function(_0x2b0b53,_0x823e81){return _0x2b0b53>_0x823e81;},'ZQART':function(_0x3be11e,_0x24d913){return _0x3be11e===_0x24d913;},'CNbYJ':_0x5ee41c(0xda),'kMceY':function(_0x2add31,_0x367e6b){return _0x2add31!==_0x367e6b;},'KPrIv':_0x5ee41c(0xe7),'nVTzT':function(_0x10f3d5,_0x392636){return _0x10f3d5(_0x392636);},'YNNQM':_0x5ee41c(0x86)};if(this[_0x5ee41c(0xbb)][_0x5ee41c(0x85)](_0x52525b[_0x5ee41c(0x9c)])){if(_0x52525b[_0x5ee41c(0xd0)]&&_0x52525b['logs'][0x0]&&_0x2f458d[_0x5ee41c(0xb7)](_0x52525b[_0x5ee41c(0xd0)][0x0]['kind'],_0x2f458d[_0x5ee41c(0xbf)])){const _0x3ccb85={};return _0x3ccb85['shouldProceed']=!![],_0x3ccb85[_0x5ee41c(0xec)]=[_0x52525b],_0x3ccb85[_0x5ee41c(0x7d)]=this['screenshotEventUrl'],_0x3ccb85;}if(_0x52525b[_0x5ee41c(0xd0)]&&_0x2f458d['aRipa'](_0x52525b['logs'][_0x5ee41c(0xc1)],0x0)&&_0x2f458d[_0x5ee41c(0x94)](_0x52525b['logs'][0x0][_0x5ee41c(0xbd)],_0x2f458d[_0x5ee41c(0xa0)])&&_0x2f458d[_0x5ee41c(0xe8)](_0x52525b[_0x5ee41c(0x9c)],_0x2f458d[_0x5ee41c(0x8b)])){const _0x4c893a={};return _0x4c893a[_0x5ee41c(0x7f)]=!![],_0x4c893a[_0x5ee41c(0xec)]=[_0x52525b],_0x4c893a[_0x5ee41c(0x7d)]=this['uploadAttachmentUrl'],_0x4c893a;}this[_0x5ee41c(0xf2)][_0x5ee41c(0x81)](_0x52525b);let _0x5f4b66=null;const _0x1006e7=this[_0x5ee41c(0x7f)]();_0x1006e7&&(_0x2f458d[_0x5ee41c(0xf0)](trace,_0x2f458d[_0x5ee41c(0xb3)]),_0x5f4b66=this[_0x5ee41c(0xf2)]['slice'](0x0,BATCH_SIZE),this[_0x5ee41c(0xf2)]['splice'](0x0,BATCH_SIZE),this[_0x5ee41c(0x83)]());const _0x562dae={};return _0x562dae[_0x5ee41c(0x7f)]=_0x1006e7,_0x562dae[_0x5ee41c(0xec)]=_0x5f4b66,_0x562dae[_0x5ee41c(0x7d)]=this[_0x5ee41c(0xe2)],_0x562dae;}const _0x317f3a={};return _0x317f3a[_0x5ee41c(0x7f)]=!![],_0x317f3a;};[a86_0x16190e(0x82)]=async()=>{const _0x5da6d8=a86_0x16190e,_0x44f4ad={'vJHfh':_0x5da6d8(0x95),'MSRDp':function(_0x6f4296,_0x4e853e){return _0x6f4296>_0x4e853e;},'xUNOx':_0x5da6d8(0xe6),'eSQRY':function(_0x5afa7a,_0x49d1a2){return _0x5afa7a>_0x49d1a2;},'ZFHRF':function(_0x163457,_0xa26397){return _0x163457(_0xa26397);}};await this[_0x5da6d8(0x99)](),this[_0x5da6d8(0xc8)](_0x44f4ad[_0x5da6d8(0xf3)]);while(_0x44f4ad[_0x5da6d8(0xf7)](this[_0x5da6d8(0xf2)][_0x5da6d8(0xc1)],0x0)){const _0x46439c=this[_0x5da6d8(0xf2)][_0x5da6d8(0xb5)](0x0,BATCH_SIZE);this[_0x5da6d8(0xf2)][_0x5da6d8(0xcf)](0x0,BATCH_SIZE),await this[_0x5da6d8(0xbc)](this[_0x5da6d8(0xe2)],_0x44f4ad[_0x5da6d8(0x8a)],_0x46439c);}_0x44f4ad[_0x5da6d8(0xd9)](this[_0x5da6d8(0x80)],0x0)&&_0x44f4ad[_0x5da6d8(0xc0)](debug,_0x5da6d8(0xaf)+this[_0x5da6d8(0x80)]);};[a86_0x16190e(0xbc)]=async(_0x68debd,_0x4da14a,_0x297adf)=>{const _0x1e2a63=a86_0x16190e,_0x3c22c3={'OXxMi':function(_0x445426,_0x4a4061){return _0x445426(_0x4a4061);},'dYDeK':_0x1e2a63(0xed),'iPQaA':function(_0x1c8762){return _0x1c8762();},'PDyjF':function(_0x4de5f1,_0x45187d,_0xd1957e,_0x436f9b,_0x36afb5){return _0x4de5f1(_0x45187d,_0xd1957e,_0x436f9b,_0x36afb5);},'DwLop':_0x1e2a63(0xb1),'pXKCz':function(_0x2abd94,_0x555197){return _0x2abd94(_0x555197);},'rLBMn':function(_0xf2685,_0x5d4215){return _0xf2685-_0x5d4215;},'PDGQI':function(_0x401a97,_0x3a767b){return _0x401a97(_0x3a767b);},'pOgNw':function(_0x2f0f6b,_0x58f693){return _0x2f0f6b(_0x58f693);}};let _0x562e46='';try{_0x562e46=_0x297adf[_0x1e2a63(0xcc)](_0x5bd65e=>'\x27'+_0x5bd65e[_0x1e2a63(0x9c)]+'\x27:'+(nestedKeyValue(_0x5bd65e,[_0x1e2a63(0xc2),_0x1e2a63(0x8d)])||nestedKeyValue(_0x5bd65e,[_0x1e2a63(0xd7),'uuid'])))[_0x1e2a63(0xde)](','),_0x3c22c3[_0x1e2a63(0x84)](debug,_0x1e2a63(0xe9)+_0x4da14a+_0x1e2a63(0xf1)+Buffer[_0x1e2a63(0xe3)](util[_0x1e2a63(0xb9)]('%j',_0x297adf),_0x3c22c3[_0x1e2a63(0x9e)])+_0x1e2a63(0xa9)+_0x562e46);}catch(_0x1067ea){_0x3c22c3[_0x1e2a63(0x84)](debug,_0x1e2a63(0xaa)+util['format'](_0x1067ea)+'}');}const _0x1d4cbc={'headers':_0x3c22c3['iPQaA'](getDefaultHeaders)};try{const _0x116cf9=await _0x3c22c3[_0x1e2a63(0xd6)](nodeRequest,_0x3c22c3[_0x1e2a63(0xeb)],_0x68debd,_0x297adf,_0x1d4cbc);if(_0x116cf9['data'][_0x1e2a63(0xe1)]){const _0x31e4d5={};_0x31e4d5['message']=_0x116cf9[_0x1e2a63(0xad)][_0x1e2a63(0xe1)];throw _0x31e4d5;}else _0x3c22c3[_0x1e2a63(0x9a)](debug,_0x4da14a+'\x20event\x20successful\x20for\x20events\x20'+_0x562e46+_0x1e2a63(0x97)+util[_0x1e2a63(0xb9)]('%j',_0x116cf9[_0x1e2a63(0xad)])),this[_0x1e2a63(0x80)]=Math[_0x1e2a63(0xcb)](0x0,_0x3c22c3[_0x1e2a63(0xb0)](this[_0x1e2a63(0x80)],_0x297adf['length']));}catch(_0x14e505){_0x14e505[_0x1e2a63(0x90)]?_0x3c22c3[_0x1e2a63(0xc3)](debug,_0x1e2a63(0xdc)+_0x4da14a+_0x1e2a63(0xf5)+_0x14e505[_0x1e2a63(0x90)][_0x1e2a63(0x93)]+'\x20'+_0x14e505['response'][_0x1e2a63(0x96)]+'\x20'+util[_0x1e2a63(0xb9)]('%j',_0x14e505['response'])):_0x3c22c3[_0x1e2a63(0xf6)](debug,'EXCEPTION\x20IN\x20'+_0x4da14a+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x14e505[_0x1e2a63(0xd8)]||_0x14e505)),this[_0x1e2a63(0x80)]=Math['max'](0x0,_0x3c22c3[_0x1e2a63(0xb0)](this[_0x1e2a63(0x80)],_0x297adf[_0x1e2a63(0xc1)]));}};[a86_0x16190e(0x98)]=()=>{const _0x2977b8=a86_0x16190e,_0x582e33={'zmUps':function(_0x514aeb,_0x5c2a3c){return _0x514aeb>_0x5c2a3c;},'IZgAL':function(_0x383aad,_0x2de463){return _0x383aad(_0x2de463);},'mkBUq':_0x2977b8(0xbe),'raefS':function(_0x42344b,_0x3318b9){return _0x42344b(_0x3318b9);},'AsXgE':function(_0x10c4e0,_0x337145,_0x3ea92f){return _0x10c4e0(_0x337145,_0x3ea92f);}};this[_0x2977b8(0xc6)]=_0x582e33[_0x2977b8(0xdf)](setInterval,async()=>{const _0x353616=_0x2977b8;if(_0x582e33['zmUps'](this[_0x353616(0xf2)][_0x353616(0xc1)],0x0)){_0x582e33[_0x353616(0xd1)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x353616(0xf2)][_0x353616(0xc1)]);const _0x2b3bde=this['queue'][_0x353616(0xb5)](0x0,BATCH_SIZE);this['queue'][_0x353616(0xcf)](0x0,BATCH_SIZE),await this[_0x353616(0xbc)](this[_0x353616(0xe2)],_0x582e33['mkBUq'],_0x2b3bde),_0x582e33[_0x353616(0xd5)](trace,_0x353616(0xef)+this['queue']['length']);}},BATCH_INTERVAL);};[a86_0x16190e(0x83)]=()=>{const _0x3560b1=a86_0x16190e,_0xb486ac={};_0xb486ac[_0x3560b1(0xa3)]=_0x3560b1(0xa2);const _0x35bea3=_0xb486ac;this[_0x3560b1(0xc8)](_0x35bea3['TFbJp']),this['startEventBatchPolling']();};[a86_0x16190e(0xc8)]=_0x30de94=>{const _0xb035b4=a86_0x16190e,_0x1dafa4={'ckFoe':function(_0x349d99,_0x37f2c8){return _0x349d99(_0x37f2c8);},'PWSVd':function(_0x4ee9db,_0x17e55e){return _0x4ee9db===_0x17e55e;},'XmDxQ':_0xb035b4(0x95)};this[_0xb035b4(0xc6)]&&(_0x1dafa4[_0xb035b4(0xa5)](clearInterval,this['pollEventBatchInterval']),this[_0xb035b4(0xc6)]=null,_0x1dafa4[_0xb035b4(0xba)](_0x30de94,_0x1dafa4['XmDxQ'])&&(this[_0xb035b4(0xae)]=![]));};[a86_0x16190e(0x7f)]=()=>{const _0x2fc65a=a86_0x16190e,_0x2e9bab={};_0x2e9bab[_0x2fc65a(0xe0)]=function(_0x5c6e5c,_0x42179e){return _0x5c6e5c>=_0x42179e;};const _0x150bbd=_0x2e9bab;return _0x150bbd[_0x2fc65a(0xe0)](this[_0x2fc65a(0xf2)]['length'],BATCH_SIZE);};async[a86_0x16190e(0x99)](_0x259853=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x55a971=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x349533=a86_0x16190e,_0x4db54d={'BQgPh':function(_0x3d230e,_0x5077b6){return _0x3d230e<=_0x5077b6;},'skLpS':function(_0x576f12,_0x11fa92){return _0x576f12(_0x11fa92);},'uzwwU':function(_0x5eae64,_0x46c258){return _0x5eae64-_0x46c258;}};if(_0x4db54d[_0x349533(0x88)](this['pendingUploads'],0x0)||_0x4db54d[_0x349533(0x88)](_0x259853,0x0))return;return await _0x4db54d[_0x349533(0xb2)](sleep,_0x55a971),this[_0x349533(0x99)](_0x4db54d[_0x349533(0xd4)](_0x259853,_0x55a971));}}module['exports']=RequestQueueHandler;
@@ -1 +1 @@
1
- const a87_0xf9c95c=a87_0x8a33;function a87_0x8a33(_0x4a0399,_0xbf81ee){const _0xacc491=a87_0xacc4();return a87_0x8a33=function(_0x8a33b5,_0x2b96f3){_0x8a33b5=_0x8a33b5-0x64;let _0x2e4438=_0xacc491[_0x8a33b5];return _0x2e4438;},a87_0x8a33(_0x4a0399,_0xbf81ee);}(function(_0x13fcf2,_0x49c91a){const _0x4177a7=a87_0x8a33,_0x3d8399=_0x13fcf2();while(!![]){try{const _0x5dd51f=-parseInt(_0x4177a7(0xb8))/0x1+parseInt(_0x4177a7(0xfd))/0x2*(-parseInt(_0x4177a7(0xdb))/0x3)+-parseInt(_0x4177a7(0xd0))/0x4*(parseInt(_0x4177a7(0xdf))/0x5)+parseInt(_0x4177a7(0x8b))/0x6+parseInt(_0x4177a7(0x8a))/0x7*(parseInt(_0x4177a7(0x76))/0x8)+-parseInt(_0x4177a7(0xbc))/0x9+parseInt(_0x4177a7(0xdd))/0xa;if(_0x5dd51f===_0x49c91a)break;else _0x3d8399['push'](_0x3d8399['shift']());}catch(_0x436856){_0x3d8399['push'](_0x3d8399['shift']());}}}(a87_0xacc4,0x71f79));const bsSetupHelper=require('../helper'),path=require(a87_0xf9c95c(0xf8)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0xf9c95c(0x85)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0xf9c95c(0x9c)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0xf9c95c(0x99))[a87_0xf9c95c(0xd1)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0xf9c95c(0xb0));class SessionHandler{static [a87_0xf9c95c(0xd5)]=RequestQueueHandler[a87_0xf9c95c(0x10a)]();static async[a87_0xf9c95c(0xad)](_0x4fb613,_0x26e938){const _0x7de082=a87_0xf9c95c,_0x5a03b5={'hmSeH':function(_0x58fb98,_0x3b251c){return _0x58fb98||_0x3b251c;},'bvmzd':function(_0x542333,_0x44fba4){return _0x542333||_0x44fba4;},'ZUtaQ':function(_0x278b95,_0xfd8eff){return _0x278b95===_0xfd8eff;},'XQgrz':function(_0x1c974a,_0x28967b){return _0x1c974a(_0x28967b);},'kUzOo':_0x7de082(0x102),'whWON':_0x7de082(0x8d),'dONfS':_0x7de082(0x98),'TfNwR':function(_0xaa4582,_0x412081){return _0xaa4582(_0x412081);},'enTxD':function(_0x3c3696,_0x356d34){return _0x3c3696(_0x356d34);},'vBhGg':function(_0x84a5a1,_0x195b26,_0x53f80f,_0x4ddc7b,_0x293a72){return _0x84a5a1(_0x195b26,_0x53f80f,_0x4ddc7b,_0x293a72);},'epYtH':_0x7de082(0x73),'cQNQG':_0x7de082(0x94),'MkvNi':function(_0x42d276,_0x71c273){return _0x42d276(_0x71c273);},'FJrbR':_0x7de082(0xf3),'kxrNF':function(_0x27efd7){return _0x27efd7();},'QiYXT':_0x7de082(0xcd),'hTaUb':'null','lVQPw':_0x7de082(0xf0),'bJsBK':_0x7de082(0xe4),'uyIau':_0x7de082(0xf6)},_0x43c111=bsSetupHelper[_0x7de082(0xe9)](_0x4fb613),_0x1d1049=bsSetupHelper[_0x7de082(0x82)](_0x4fb613),_0x403dca=_0x5a03b5[_0x7de082(0xbd)](_0x43c111,'')+':'+_0x5a03b5[_0x7de082(0xce)](_0x1d1049,'');if(_0x5a03b5[_0x7de082(0xe2)](_0x403dca,':'))return _0x5a03b5['XQgrz'](debug,_0x5a03b5[_0x7de082(0x103)]),process['env'][_0x7de082(0xee)]=_0x5a03b5['whWON'],[null,null];let _0x1794d0=![],_0x47ff20=![];if(_0x4fb613[_0x7de082(0x72)]&&_0x4fb613[_0x7de082(0x97)])_0x47ff20=!![];else _0x4fb613['browserstackAutomation']&&(_0x1794d0=!![]);try{const _0xe4b046={'format':_0x5a03b5[_0x7de082(0xa5)],'project_name':_0x4fb613['projectName']||'','name':_0x4fb613[_0x7de082(0xa4)]||path[_0x7de082(0x66)](path['resolve'](process[_0x7de082(0xaa)]())),'build_identifier':_0x4fb613[_0x7de082(0xfc)],'description':_0x4fb613[_0x7de082(0x8c)]||'','start_time':new Date()[_0x7de082(0xc0)](),'tags':_0x5a03b5[_0x7de082(0xab)](getCustomTags,_0x4fb613),'host_info':bsSetupHelper[_0x7de082(0xf7)](),'ci_info':bsSetupHelper[_0x7de082(0x104)](),'build_run_identifier':process['env'][_0x7de082(0x10d)],'failed_tests_rerun':process[_0x7de082(0xe1)][_0x7de082(0xc9)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x26e938['frameworkName'],'frameworkVersion':_0x26e938[_0x7de082(0x10f)],'sdkVersion':bsSetupHelper[_0x7de082(0x7b)]()},'product_map':_0x5a03b5['TfNwR'](getProductMap,_0x4fb613)},_0x2add51={};_0x2add51[_0x7de082(0x83)]=_0x43c111,_0x2add51['password']=_0x1d1049;const _0x451471={'auth':_0x2add51,'headers':_0x5a03b5[_0x7de082(0x80)](getDefaultHeaders,![])},_0xe2baab=await _0x5a03b5[_0x7de082(0xe8)](nodeRequest,_0x5a03b5[_0x7de082(0xd9)],_0x5a03b5[_0x7de082(0xd3)],_0xe4b046,_0x451471);_0x5a03b5[_0x7de082(0x68)](debug,_0x5a03b5[_0x7de082(0x109)]);const _0x2d388f=_0xe2baab['data'];_0x2d388f[_0x7de082(0x91)]&&(process[_0x7de082(0xe1)][_0x7de082(0xf4)]=_0x2d388f[_0x7de082(0x91)]);if(_0x5a03b5[_0x7de082(0xdc)](isTestObservabilitySession)){process[_0x7de082(0xe1)][_0x7de082(0xee)]=_0x5a03b5[_0x7de082(0x110)];if(_0x2d388f['jwt']){process[_0x7de082(0xe1)][_0x7de082(0x84)]=_0x2d388f[_0x7de082(0xc7)];const _0x34dd90={};_0x34dd90[_0x7de082(0x83)]=_0x43c111,_0x34dd90[_0x7de082(0x86)]=_0x1d1049,process[_0x7de082(0xe1)][_0x7de082(0x75)]=JSON['stringify'](_0x34dd90);}_0x2d388f[_0x7de082(0x91)]&&(process[_0x7de082(0xe1)][_0x7de082(0xae)]=_0x2d388f['build_hashed_id']),_0x2d388f[_0x7de082(0xca)]&&(process[_0x7de082(0xe1)][_0x7de082(0x74)]=_0x2d388f[_0x7de082(0xca)]['toString']());}return[_0xe2baab['data'][_0x7de082(0xc7)],_0xe2baab['data'][_0x7de082(0x91)],_0xe2baab[_0x7de082(0xc4)][_0x7de082(0xca)]];}catch(_0x32f9cf){process[_0x7de082(0xe1)][_0x7de082(0xf4)]=_0x5a03b5[_0x7de082(0xd4)],process[_0x7de082(0xe1)][_0x7de082(0xee)]=_0x5a03b5['whWON'],process['env'][_0x7de082(0x84)]=_0x5a03b5[_0x7de082(0xd4)],process['env'][_0x7de082(0xae)]=_0x5a03b5[_0x7de082(0xd4)],process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x5a03b5['hTaUb'];_0x32f9cf[_0x7de082(0xa1)]?_0x5a03b5['TfNwR'](debug,_0x7de082(0xcb)+_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xec)]+'\x20'+_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xfa)]+'\x20'+JSON['stringify'](_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xc4)])):_0x5a03b5[_0x7de082(0x68)](debug,_0x7de082(0xcb)+(_0x32f9cf['message']||_0x32f9cf));if(_0x32f9cf&&_0x32f9cf[_0x7de082(0xa8)]){const _0x4e6bb5=_0x32f9cf['message'];switch(_0x32f9cf[_0x7de082(0x100)]){case _0x5a03b5['lVQPw']:logger[_0x7de082(0xe7)](_0x4e6bb5);break;case _0x5a03b5[_0x7de082(0xa9)]:logger[_0x7de082(0xba)](_0x4e6bb5);break;case _0x5a03b5[_0x7de082(0xa6)]:logger[_0x7de082(0xe7)](_0x4e6bb5);break;default:logger[_0x7de082(0xe7)](_0x4e6bb5);}}else console[_0x7de082(0xba)](_0x7de082(0x10c)+_0x32f9cf);return[null,null,null];}}static async[a87_0xf9c95c(0xf2)](){const _0x47239b=a87_0xf9c95c,_0x3376f8={'RFkKX':_0x47239b(0xcd),'xglye':_0x47239b(0x8d),'hgeNr':function(_0x1584f3,_0x15b012){return _0x1584f3(_0x15b012);}},_0x15b506=process[_0x47239b(0xe1)][_0x47239b(0xee)];if([_0x3376f8['RFkKX'],_0x3376f8[_0x47239b(0x9b)]][_0x47239b(0x71)](_0x15b506))return;while([_0x3376f8[_0x47239b(0xc6)],_0x3376f8['xglye']][_0x47239b(0x71)](_0x15b506)){await _0x3376f8[_0x47239b(0xc3)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0xf9c95c(0xa3)](_0x5c0d1c){const _0x359afc=a87_0xf9c95c,_0x5be79f={};_0x5be79f[_0x359afc(0x9d)]=_0x359afc(0x78),_0x5be79f[_0x359afc(0xfe)]='Test_End_Upload',_0x5be79f['pGsUn']=_0x359afc(0xbe),_0x5be79f[_0x359afc(0x10e)]=_0x359afc(0x7c),_0x5be79f[_0x359afc(0xb7)]=_0x359afc(0x10b),_0x5be79f['qnryI']='Hook_End_Upload',_0x5be79f[_0x359afc(0x8f)]=_0x359afc(0x6f);const _0x3b22e2=_0x5be79f,_0xa0b440={};return _0xa0b440[_0x359afc(0xed)]=_0x3b22e2['IBFpj'],_0xa0b440['TestRunFinished']=_0x3b22e2[_0x359afc(0xfe)],_0xa0b440[_0x359afc(0x77)]=_0x3b22e2[_0x359afc(0xb4)],_0xa0b440[_0x359afc(0x9e)]=_0x3b22e2[_0x359afc(0x10e)],_0xa0b440[_0x359afc(0x69)]=_0x3b22e2[_0x359afc(0xb7)],_0xa0b440[_0x359afc(0x79)]=_0x3b22e2[_0x359afc(0x6b)],_0xa0b440['CBTSessionCreated']=_0x3b22e2[_0x359afc(0x8f)],_0xa0b440[_0x5c0d1c[_0x359afc(0x65)]];}static async[a87_0xf9c95c(0x9a)](_0x31dbaa,_0xca8c83=0x0,_0x60f337=null){const _0x25294a=a87_0xf9c95c,_0x239372={'PvHao':function(_0x447304,_0x421969){return _0x447304===_0x421969;},'zkssd':_0x25294a(0x101),'qNZaV':function(_0x581be3,_0x525a5a){return _0x581be3!==_0x525a5a;},'cdemY':_0x25294a(0x92),'UiMqP':'true','lihrR':function(_0x41212d,_0x27b16b,_0x4bf807,_0x317df3,_0x461d0b){return _0x41212d(_0x27b16b,_0x4bf807,_0x317df3,_0x461d0b);},'zakrC':_0x25294a(0x73),'Afqmm':function(_0x548219,_0x1a2127,_0x2aa599,_0x28618d,_0x3dfc34){return _0x548219(_0x1a2127,_0x2aa599,_0x28618d,_0x3dfc34);},'AYENl':function(_0x369802,_0x23c91a){return _0x369802(_0x23c91a);},'VluXq':_0x25294a(0xb3),'IvsHT':function(_0xc90905,_0x2c42ec){return _0xc90905-_0x2c42ec;},'nWlqe':'api/v1/event','HbwaR':_0x25294a(0xd6),'NSFwK':function(_0xcf86b1,_0x328cab){return _0xcf86b1(_0x328cab);},'DnnXB':function(_0x246222,_0x1a7b70){return _0x246222!==_0x1a7b70;},'fkBHC':function(_0x16f6ca,_0x2a70e7){return _0x16f6ca-_0x2a70e7;},'UaXmC':function(_0x8add4c,_0x4c2270){return _0x8add4c===_0x4c2270;},'ZQiej':'error'};_0x239372[_0x25294a(0x7d)](_0x60f337,_0x239372[_0x25294a(0x8e)])&&logger[_0x25294a(0xcf)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x31dbaa[_0x25294a(0xef)][0x0][_0x25294a(0x7e)]);const _0x5c01a9=await this['getLogTag'](_0x31dbaa);let _0x4c7e53=_0x31dbaa,_0x7ca4c4=EVENT_ENDPOINT;_0x239372[_0x25294a(0x90)](_0x60f337,_0x239372[_0x25294a(0x8e)])&&this[_0x25294a(0xd5)][_0x25294a(0xda)]();const {shouldProceed:_0x536abf,proceedWithData:_0x1a25e7,proceedWithUrl:_0x16f383}=this['requestQueueHandler'][_0x25294a(0x107)](_0x31dbaa);if(!_0x536abf)return;else _0x1a25e7&&(_0x4c7e53=_0x1a25e7,_0x7ca4c4=_0x16f383);const _0x198014={};_0x198014[_0x25294a(0xf1)]=_0x25294a(0xa0)+process[_0x25294a(0xe1)][_0x25294a(0xf9)],_0x198014[_0x25294a(0xc5)]=_0x239372[_0x25294a(0xb1)],_0x198014[_0x25294a(0xa7)]=_0x239372[_0x25294a(0xe3)];const _0x172423={};_0x172423[_0x25294a(0x70)]=_0x198014;const _0x39a94a=_0x172423;let _0x4e8683;try{_0x239372[_0x25294a(0x7d)](_0x60f337,_0x239372[_0x25294a(0x8e)])?(logger[_0x25294a(0xcf)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x31dbaa?.[_0x25294a(0xef)][0x0]?.[_0x25294a(0x7e)]),_0x4e8683=await _0x239372['lihrR'](asyncAwaitNodeReq,_0x239372[_0x25294a(0xea)],_0x7ca4c4,_0x4c7e53,_0x39a94a),logger[_0x25294a(0xcf)](_0x25294a(0x105)+_0x31dbaa?.[_0x25294a(0xef)][0x0]?.[_0x25294a(0x7e)])):_0x4e8683=await _0x239372[_0x25294a(0xeb)](nodeRequest,_0x239372[_0x25294a(0xea)],_0x7ca4c4,_0x4c7e53,_0x39a94a);if(_0x4e8683['data']['error']){const _0x481a22={};_0x481a22[_0x25294a(0xa8)]=_0x4e8683['data'][_0x25294a(0xe7)];throw _0x481a22;}else{_0x239372[_0x25294a(0xd2)](debug,(_0x239372[_0x25294a(0x90)](_0x7ca4c4,this['requestQueueHandler'][_0x25294a(0xc8)])?_0x5c01a9:_0x239372['VluXq'])+'['+_0xca8c83+']\x20event\x20successful!'),this[_0x25294a(0xd5)][_0x25294a(0xaf)]=Math[_0x25294a(0x7f)](0x0,_0x239372['IvsHT'](this[_0x25294a(0xd5)][_0x25294a(0xaf)],_0x239372[_0x25294a(0x7d)](_0x7ca4c4,_0x239372[_0x25294a(0x81)])?0x1:_0x4c7e53[_0x25294a(0x9f)]));const _0x4fb945={};return _0x4fb945[_0x25294a(0xec)]=_0x239372[_0x25294a(0x96)],_0x4fb945[_0x25294a(0xa8)]='',_0x4fb945;}}catch(_0x533e0d){_0x533e0d[_0x25294a(0xa1)]?_0x239372[_0x25294a(0xd2)](debug,_0x25294a(0xbb)+(_0x239372[_0x25294a(0x90)](_0x7ca4c4,this[_0x25294a(0xd5)]['eventUrl'])?_0x5c01a9:_0x239372[_0x25294a(0xfb)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x533e0d[_0x25294a(0xa1)]['status']+'\x20'+_0x533e0d[_0x25294a(0xa1)]['statusText']+'\x20'+util[_0x25294a(0xa2)](_0x533e0d[_0x25294a(0xa1)][_0x25294a(0xc4)])):_0x239372[_0x25294a(0xc2)](debug,_0x25294a(0xbb)+(_0x239372[_0x25294a(0x6e)](_0x7ca4c4,this[_0x25294a(0xd5)][_0x25294a(0xc8)])?_0x5c01a9:_0x239372[_0x25294a(0xfb)])+_0x25294a(0x64)+util[_0x25294a(0xa2)](_0x533e0d));this[_0x25294a(0xd5)]['pendingUploads']=Math[_0x25294a(0x7f)](0x0,_0x239372[_0x25294a(0x67)](this[_0x25294a(0xd5)][_0x25294a(0xaf)],_0x239372[_0x25294a(0xe6)](_0x7ca4c4,_0x239372[_0x25294a(0x81)])?0x1:_0x4c7e53[_0x25294a(0x9f)]));const _0x5398ca={};return _0x5398ca[_0x25294a(0xec)]=_0x239372[_0x25294a(0x87)],_0x5398ca[_0x25294a(0xa8)]=_0x533e0d[_0x25294a(0xa8)]||(_0x533e0d[_0x25294a(0xa1)]?_0x533e0d['response'][_0x25294a(0xec)]+':'+_0x533e0d[_0x25294a(0xa1)]['statusText']:_0x533e0d),_0x5398ca;}}static async[a87_0xf9c95c(0xde)](_0x44df65,_0x5128a5=0x0){const _0x191a52=a87_0xf9c95c,_0x643d2e={'hYEpu':function(_0x4f2334,_0x21f09b){return _0x4f2334+_0x21f09b;},'YxkYc':function(_0x28731f,_0x432509){return _0x28731f(_0x432509);},'jKxdV':_0x191a52(0x108),'QSPmn':_0x191a52(0xb2),'MHCZw':_0x191a52(0x106),'EKtzp':function(_0x3581f2,_0x1f328e,_0x35fb4d){return _0x3581f2(_0x1f328e,_0x35fb4d);},'OXIrH':_0x191a52(0xde),'ZVOGe':function(_0x2f35a5,_0x41ae26){return _0x2f35a5===_0x41ae26;},'VlIpu':function(_0x11072d,_0xb0dd02){return _0x11072d!==_0xb0dd02;},'ELBJc':_0x191a52(0xcc),'IRTHT':function(_0x16bdb9,_0x775de2){return _0x16bdb9===_0x775de2;},'YFmTD':_0x191a52(0xcd),'jyvYt':function(_0x560773){return _0x560773();},'pQwoH':function(_0x39d6f5,_0x96ca44){return _0x39d6f5===_0x96ca44;},'xZLfj':function(_0xb9a3dc,_0x3e4fe6){return _0xb9a3dc-_0x3e4fe6;},'iNioS':_0x191a52(0xe7),'fetDX':_0x191a52(0xac),'TBkqH':function(_0x15830a,_0x42c6d1){return _0x15830a>=_0x42c6d1;},'QcDZU':function(_0x20fecf,_0x4e6171){return _0x20fecf(_0x4e6171);},'lfkSq':_0x191a52(0xb6),'SIXbX':_0x191a52(0x8d)},_0x55ec9d=this[_0x191a52(0xa3)](_0x44df65);_0x643d2e[_0x191a52(0xff)](trace,'Processing\x20event\x20-\x20\x27'+_0x44df65[_0x191a52(0x65)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x44df65,[_0x643d2e[_0x191a52(0x93)],_0x643d2e[_0x191a52(0x6d)]])||bsSetupHelper['nestedKeyValue'](_0x44df65,[_0x643d2e['MHCZw'],_0x643d2e[_0x191a52(0x6d)]])));if(!_0x643d2e[_0x191a52(0x7a)](shouldProcessEventForTesthub,_0x44df65['event_type'],_0x643d2e['OXIrH']))return;_0x643d2e['ZVOGe'](_0x5128a5,0x0)&&process[_0x191a52(0xe1)][_0x191a52(0xf9)]&&_0x643d2e[_0x191a52(0x95)](process[_0x191a52(0xe1)][_0x191a52(0xf9)],_0x643d2e['ELBJc'])&&(this['requestQueueHandler'][_0x191a52(0xaf)]+=0x1);if(_0x643d2e[_0x191a52(0xc1)](process[_0x191a52(0xe1)][_0x191a52(0xee)],_0x643d2e['YFmTD'])||process[_0x191a52(0xe1)][_0x191a52(0xf5)]||_0x643d2e['jyvYt'](isPercyBuild)){if(_0x643d2e['pQwoH'](process[_0x191a52(0xe1)][_0x191a52(0xf9)],_0x643d2e[_0x191a52(0x6c)])){_0x643d2e['YxkYc'](debug,_0x191a52(0xbb)+_0x55ec9d+_0x191a52(0x88)),this[_0x191a52(0xd5)][_0x191a52(0xaf)]=Math[_0x191a52(0x7f)](0x0,_0x643d2e[_0x191a52(0xb9)](this[_0x191a52(0xd5)][_0x191a52(0xaf)],0x1));const _0x1d2f68={};return _0x1d2f68[_0x191a52(0xec)]=_0x643d2e[_0x191a52(0x6a)],_0x1d2f68[_0x191a52(0xa8)]=_0x643d2e[_0x191a52(0x89)],_0x1d2f68;}return await this[_0x191a52(0x9a)](_0x44df65,_0x5128a5);}else{if(_0x643d2e['TBkqH'](_0x5128a5,0x5)){_0x643d2e[_0x191a52(0xbf)](debug,_0x191a52(0xbb)+_0x55ec9d+_0x191a52(0xe0)+_0x55ec9d+_0x191a52(0xe5));_0x643d2e['VlIpu'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x643d2e[_0x191a52(0x6c)])&&(this[_0x191a52(0xd5)][_0x191a52(0xaf)]=Math[_0x191a52(0x7f)](0x0,_0x643d2e[_0x191a52(0xb9)](this[_0x191a52(0xd5)][_0x191a52(0xaf)],0x1)));const _0x84d7d9={};return _0x84d7d9['status']=_0x643d2e[_0x191a52(0x6a)],_0x84d7d9[_0x191a52(0xa8)]=_0x643d2e[_0x191a52(0xb5)],_0x84d7d9;}else _0x643d2e[_0x191a52(0x95)](process[_0x191a52(0xe1)][_0x191a52(0xee)],_0x643d2e[_0x191a52(0xd8)])&&_0x643d2e[_0x191a52(0x7a)](setTimeout,()=>{const _0x194934=_0x191a52;this[_0x194934(0xde)](_0x44df65,_0x643d2e['hYEpu'](_0x5128a5,0x1));},0x3e8);}}}module[a87_0xf9c95c(0xd7)]=SessionHandler;function a87_0xacc4(){const _0x5e8cad=['xglye','./constants','IBFpj','LogCreated','length','Bearer\x20','response','format','getLogTag','buildName','dONfS','uyIau','X-BSTACK-TESTOPS','message','bJsBK','cwd','XQgrz','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','launch','BS_TESTOPS_BUILD_HASHED_ID','pendingUploads','util','cdemY','uuid','Batch-Queue','pGsUn','lfkSq','Retry\x20runs\x20exceeded','hSQRq','730708ASllDf','xZLfj','info','EXCEPTION\x20IN\x20','1866510UQAqBK','hmSeH','Test_Skipped_Upload','QcDZU','toISOString','IRTHT','NSFwK','hgeNr','data','Content-Type','RFkKX','jwt','eventUrl','BROWSERSTACK_RERUN','allow_screenshots','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','null','true','bvmzd','debug','28XHHqrp','winstonLogger','AYENl','cQNQG','hTaUb','requestQueueHandler','success','exports','SIXbX','epYtH','start','30543Slywmc','kxrNF','16666670vODHIM','uploadEventData','237960lyHvkg','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','env','ZUtaQ','UiMqP','ERROR_ACCESS_DENIED','\x20retry\x20runs\x20exceeded','UaXmC','error','vBhGg','getUserName','zakrC','Afqmm','status','TestRunStarted','BS_TESTOPS_BUILD_COMPLETED','logs','ERROR_INVALID_CREDENTIALS','Authorization','waitForBuildStatus','Build\x20creation\x20successful!','BROWSERSTACK_TESTHUB_UUID','BS_A11Y_JWT','ERROR_SDK_DEPRECATED','getHostInfo','path','BROWSERSTACK_TESTHUB_JWT','statusText','VluXq','buildIdentifier','138NZOXnk','FTvWU','YxkYc','errorType','sendTraceZip','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','kUzOo','getCiInfo','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','hook_run','add','test_run','FJrbR','getInstance','Hook_Start_Upload','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jLMnG','frameworkVersion','QiYXT','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','event_type','basename','fkBHC','MkvNi','HookRunStarted','iNioS','qnryI','ELBJc','QSPmn','DnnXB','CBT_Upload','headers','includes','browserstackAutomation','POST','BS_TESTOPS_ALLOW_SCREENSHOTS','CREDENTIALS_FOR_CRASH_REPORTING','8nPJtVB','TestRunSkipped','Test_Start_Upload','HookRunFinished','EKtzp','getAgentVersion','Log_Upload','PvHao','test_run_uuid','max','enTxD','nWlqe','getAccessKey','username','BS_TESTOPS_JWT','./utils','password','ZQiej','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','fetDX','2969442iqUPaH','2098002GKZRTf','buildDescription','false','zkssd','PFjti','qNZaV','build_hashed_id','application/json','jKxdV','api/v1/builds','VlIpu','HbwaR','app','json','../logger','sendEventData'];a87_0xacc4=function(){return _0x5e8cad;};return a87_0xacc4();}
1
+ function a87_0x44e9(_0x283d44,_0x2e9928){const _0x165c50=a87_0x165c();return a87_0x44e9=function(_0x44e935,_0x5f4903){_0x44e935=_0x44e935-0x1d4;let _0x22ccfb=_0x165c50[_0x44e935];return _0x22ccfb;},a87_0x44e9(_0x283d44,_0x2e9928);}const a87_0x3d00c3=a87_0x44e9;(function(_0x39ebff,_0x401372){const _0x32bd23=a87_0x44e9,_0x3ae299=_0x39ebff();while(!![]){try{const _0x446b57=parseInt(_0x32bd23(0x27c))/0x1+parseInt(_0x32bd23(0x1fa))/0x2*(parseInt(_0x32bd23(0x247))/0x3)+parseInt(_0x32bd23(0x214))/0x4+parseInt(_0x32bd23(0x1f1))/0x5*(parseInt(_0x32bd23(0x1e5))/0x6)+-parseInt(_0x32bd23(0x27a))/0x7*(-parseInt(_0x32bd23(0x1d9))/0x8)+-parseInt(_0x32bd23(0x20f))/0x9+parseInt(_0x32bd23(0x246))/0xa*(-parseInt(_0x32bd23(0x21d))/0xb);if(_0x446b57===_0x401372)break;else _0x3ae299['push'](_0x3ae299['shift']());}catch(_0xed4246){_0x3ae299['push'](_0x3ae299['shift']());}}}(a87_0x165c,0x4ec28));function a87_0x165c(){const _0x2e2f7f=['Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','POST','message','hHZci','getAccessKey','resolve','pRkgg','kAjWA','exports','hyDpE','debug','winstonLogger','response','uuid','includes','ShGbm','eOzbO','VVGKD','CyJdr','test_run_uuid','FBITE','HookRunFinished','gwDhh','BS_TESTOPS_BUILD_COMPLETED','YjDNa','getCiInfo','21YuRGCr','requestQueueHandler','502111yCGZcP','build_hashed_id','KRuxv','\x20retry\x20runs\x20exceeded','Hook_End_Upload','browserstackAutomation','ERROR_INVALID_CREDENTIALS','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','format','eventUrl','success','toString','QmlBN','RqBWl','data','FUmYB','qbuSt','1019688jaarNY','json','frameworkName','ykTyQ','bDFWc','ZUYEJ','test_run','klvSZ','HMyqd','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','./utils','jRCKp','12bqEJEG','Retry\x20runs\x20exceeded','CREDENTIALS_FOR_CRASH_REPORTING','nestedKeyValue','sendEventData','X-BSTACK-TESTOPS','BS_TESTOPS_ALLOW_SCREENSHOTS','Build\x20creation\x20successful!','DSaEU','DRCIj','stringify','waitForBuildStatus','1347550hDCslJ','SzxLG','application/json','tYxiG','TestRunFinished','RSMQY','ouiqa','LogCreated','GEzKA','4SCjuMy','IfNuR','sendTraceZip','BS_TESTOPS_BUILD_HASHED_ID','NxHKY','cwd','PPiNg','util','IHjyL','HzcMP','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','event_type','lXKnn','YwFpR','username','Sending\x20trace\x20zip\x20for\x20test:\x20','uploadEventData','ouzLf','BS_TESTOPS_JWT','pendingUploads','getLogTag','4886316wMFYAM','BS_A11Y_JWT','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','nxQgG','true','1456592wucVbQ','Test_Start_Upload','Fmxbf','Test_End_Upload',']\x20event\x20successful!','length','false','HyFGT','../logger','12349502ipWhFj','XPMaD','BollT','add','projectName','./requestQueueHandler','dZval','viAwm','EXCEPTION\x20IN\x20','IuyqQ','HookRunStarted','TgrBX','PKdRU','eFBMx','error','api/v1/event','TestRunSkipped','Batch-Queue','allow_screenshots','password','TestRunStarted','errorType','ERROR_SDK_DEPRECATED','Content-Type','info','BROWSERSTACK_TESTHUB_UUID','getInstance','api/v1/builds','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','UWjMU','SAjDd','env','BROWSERSTACK_TESTHUB_JWT','buildIdentifier','path','statusText','basename','launch','xsPCe','jwt','Authorization','10zDSetN','300816Tjmfcj','Gjffs','app','logs','jHUvX','RiwzM','start','sWUWG','../helper','Processing\x20event\x20-\x20\x27','headers','YgngY','status','RyCAM','frameworkVersion','rGjtl','CBT_Upload','buildName','Msahd','vvVUM','max','toISOString','BfVym','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','getHostInfo'];a87_0x165c=function(){return _0x2e2f7f;};return a87_0x165c();}const bsSetupHelper=require(a87_0x3d00c3(0x24f)),path=require(a87_0x3d00c3(0x23f)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x3d00c3(0x1e3)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x3d00c3(0x222)),logger=require(a87_0x3d00c3(0x21c))[a87_0x3d00c3(0x26b)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0x3d00c3(0x201));class SessionHandler{static [a87_0x3d00c3(0x27b)]=RequestQueueHandler[a87_0x3d00c3(0x237)]();static async[a87_0x3d00c3(0x242)](_0x19f8ea,_0x1fc650){const _0x427cfa=a87_0x3d00c3,_0x4c8141={'tYxiG':function(_0x344ad7,_0x2baf4e){return _0x344ad7||_0x2baf4e;},'jRCKp':function(_0xc89163,_0x515331){return _0xc89163===_0x515331;},'RqBWl':function(_0x229155,_0x119af3){return _0x229155(_0x119af3);},'Fmxbf':_0x427cfa(0x204),'HzcMP':_0x427cfa(0x21a),'BfVym':_0x427cfa(0x1da),'YgngY':function(_0x2f2001,_0xce7460){return _0x2f2001(_0xce7460);},'SAjDd':function(_0x2f6381,_0x24c297,_0x284232,_0x47464f,_0x421ac2){return _0x2f6381(_0x24c297,_0x284232,_0x47464f,_0x421ac2);},'klvSZ':_0x427cfa(0x261),'IHjyL':_0x427cfa(0x238),'GEzKA':function(_0xc740ef,_0x5d227e){return _0xc740ef(_0x5d227e);},'dZval':_0x427cfa(0x1ec),'lXKnn':function(_0x12177e){return _0x12177e();},'WmkZu':_0x427cfa(0x213),'DRCIj':'null','PKdRU':_0x427cfa(0x282),'FUmYB':'ERROR_ACCESS_DENIED','XPMaD':_0x427cfa(0x233)},_0x3c9bc6=bsSetupHelper['getUserName'](_0x19f8ea),_0x3c7902=bsSetupHelper[_0x427cfa(0x264)](_0x19f8ea),_0x26a0b8=_0x4c8141[_0x427cfa(0x1f4)](_0x3c9bc6,'')+':'+_0x4c8141[_0x427cfa(0x1f4)](_0x3c7902,'');if(_0x4c8141[_0x427cfa(0x1e4)](_0x26a0b8,':'))return _0x4c8141['RqBWl'](debug,_0x4c8141[_0x427cfa(0x216)]),process[_0x427cfa(0x23c)][_0x427cfa(0x277)]=_0x4c8141[_0x427cfa(0x203)],[null,null];let _0x27130f=![],_0x50c4aa=![];if(_0x19f8ea[_0x427cfa(0x281)]&&_0x19f8ea[_0x427cfa(0x249)])_0x50c4aa=!![];else _0x19f8ea[_0x427cfa(0x281)]&&(_0x27130f=!![]);try{const _0x48fb52={'format':_0x4c8141[_0x427cfa(0x25d)],'project_name':_0x19f8ea[_0x427cfa(0x221)]||'','name':_0x19f8ea[_0x427cfa(0x258)]||path[_0x427cfa(0x241)](path[_0x427cfa(0x265)](process[_0x427cfa(0x1ff)]())),'build_identifier':_0x19f8ea[_0x427cfa(0x23e)],'description':_0x19f8ea['buildDescription']||'','start_time':new Date()[_0x427cfa(0x25c)](),'tags':_0x4c8141[_0x427cfa(0x252)](getCustomTags,_0x19f8ea),'host_info':bsSetupHelper[_0x427cfa(0x25f)](),'ci_info':bsSetupHelper[_0x427cfa(0x279)](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x427cfa(0x23c)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x1fc650[_0x427cfa(0x1db)],'frameworkVersion':_0x1fc650[_0x427cfa(0x255)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x4c8141['RqBWl'](getProductMap,_0x19f8ea)},_0x23d79b={};_0x23d79b[_0x427cfa(0x208)]=_0x3c9bc6,_0x23d79b[_0x427cfa(0x230)]=_0x3c7902;const _0x35a921={'auth':_0x23d79b,'headers':_0x4c8141[_0x427cfa(0x1d5)](getDefaultHeaders,![])},_0x25bf80=await _0x4c8141[_0x427cfa(0x23b)](nodeRequest,_0x4c8141[_0x427cfa(0x1e0)],_0x4c8141[_0x427cfa(0x202)],_0x48fb52,_0x35a921);_0x4c8141[_0x427cfa(0x1f9)](debug,_0x4c8141[_0x427cfa(0x223)]);const _0x2939a2=_0x25bf80[_0x427cfa(0x1d6)];_0x2939a2['build_hashed_id']&&(process['env'][_0x427cfa(0x236)]=_0x2939a2[_0x427cfa(0x27d)]);if(_0x4c8141[_0x427cfa(0x206)](isTestObservabilitySession)){process[_0x427cfa(0x23c)][_0x427cfa(0x277)]=_0x4c8141['WmkZu'];if(_0x2939a2['jwt']){process[_0x427cfa(0x23c)][_0x427cfa(0x20c)]=_0x2939a2[_0x427cfa(0x244)];const _0x3da374={};_0x3da374['username']=_0x3c9bc6,_0x3da374[_0x427cfa(0x230)]=_0x3c7902,process[_0x427cfa(0x23c)][_0x427cfa(0x1e7)]=JSON[_0x427cfa(0x1ef)](_0x3da374);}_0x2939a2[_0x427cfa(0x27d)]&&(process[_0x427cfa(0x23c)][_0x427cfa(0x1fd)]=_0x2939a2[_0x427cfa(0x27d)]),_0x2939a2[_0x427cfa(0x22f)]&&(process[_0x427cfa(0x23c)][_0x427cfa(0x1eb)]=_0x2939a2[_0x427cfa(0x22f)][_0x427cfa(0x287)]());}return[_0x25bf80[_0x427cfa(0x1d6)][_0x427cfa(0x244)],_0x25bf80['data'][_0x427cfa(0x27d)],_0x25bf80['data']['allow_screenshots']];}catch(_0x147104){process[_0x427cfa(0x23c)][_0x427cfa(0x236)]=_0x4c8141[_0x427cfa(0x1ee)],process[_0x427cfa(0x23c)][_0x427cfa(0x277)]=_0x4c8141['HzcMP'],process[_0x427cfa(0x23c)][_0x427cfa(0x20c)]=_0x4c8141[_0x427cfa(0x1ee)],process[_0x427cfa(0x23c)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x4c8141[_0x427cfa(0x1ee)],process[_0x427cfa(0x23c)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x4c8141[_0x427cfa(0x1ee)];_0x147104[_0x427cfa(0x26c)]?_0x4c8141[_0x427cfa(0x1d5)](debug,_0x427cfa(0x239)+_0x147104[_0x427cfa(0x26c)][_0x427cfa(0x253)]+'\x20'+_0x147104[_0x427cfa(0x26c)]['statusText']+'\x20'+JSON[_0x427cfa(0x1ef)](_0x147104[_0x427cfa(0x26c)]['data'])):_0x4c8141[_0x427cfa(0x252)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x147104[_0x427cfa(0x262)]||_0x147104));if(_0x147104&&_0x147104[_0x427cfa(0x262)]){const _0xc18ed5=_0x147104['message'];switch(_0x147104[_0x427cfa(0x232)]){case _0x4c8141[_0x427cfa(0x229)]:logger[_0x427cfa(0x22b)](_0xc18ed5);break;case _0x4c8141[_0x427cfa(0x1d7)]:logger[_0x427cfa(0x235)](_0xc18ed5);break;case _0x4c8141[_0x427cfa(0x21e)]:logger[_0x427cfa(0x22b)](_0xc18ed5);break;default:logger[_0x427cfa(0x22b)](_0xc18ed5);}}else console[_0x427cfa(0x235)](_0x427cfa(0x260)+_0x147104);return[null,null,null];}}static async[a87_0x3d00c3(0x1f0)](){const _0x278826=a87_0x3d00c3,_0x312ca7={'ouzLf':'true','HyFGT':_0x278826(0x21a),'YztLG':function(_0xd1fb8d,_0x479c87){return _0xd1fb8d(_0x479c87);}},_0x4df99d=process[_0x278826(0x23c)][_0x278826(0x277)];if([_0x312ca7[_0x278826(0x20b)],_0x312ca7[_0x278826(0x21b)]][_0x278826(0x26e)](_0x4df99d))return;while([_0x312ca7[_0x278826(0x20b)],_0x312ca7[_0x278826(0x21b)]]['includes'](_0x4df99d)){await _0x312ca7['YztLG'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x3d00c3(0x20e)](_0x2ba39b){const _0x490883=a87_0x3d00c3,_0x127b71={};_0x127b71[_0x490883(0x1de)]=_0x490883(0x215),_0x127b71[_0x490883(0x248)]=_0x490883(0x217),_0x127b71[_0x490883(0x25a)]='Test_Skipped_Upload',_0x127b71[_0x490883(0x1fb)]='Log_Upload',_0x127b71[_0x490883(0x24b)]='Hook_Start_Upload',_0x127b71[_0x490883(0x1f7)]=_0x490883(0x280),_0x127b71['KRuxv']=_0x490883(0x257);const _0x427279=_0x127b71,_0x4b4ef5={};return _0x4b4ef5[_0x490883(0x231)]=_0x427279[_0x490883(0x1de)],_0x4b4ef5[_0x490883(0x1f5)]=_0x427279[_0x490883(0x248)],_0x4b4ef5[_0x490883(0x22d)]=_0x427279[_0x490883(0x25a)],_0x4b4ef5[_0x490883(0x1f8)]=_0x427279['IfNuR'],_0x4b4ef5[_0x490883(0x227)]=_0x427279['jHUvX'],_0x4b4ef5[_0x490883(0x275)]=_0x427279['ouiqa'],_0x4b4ef5['CBTSessionCreated']=_0x427279[_0x490883(0x27e)],_0x4b4ef5[_0x2ba39b['event_type']];}static async[a87_0x3d00c3(0x1e9)](_0x242d90,_0x26ffc3=0x0,_0x5a062b=null){const _0x2cd71c=a87_0x3d00c3,_0x3715c9={'DHUld':function(_0x44629a,_0x96d1c7){return _0x44629a===_0x96d1c7;},'PPiNg':_0x2cd71c(0x1fc),'qbuSt':function(_0x24929c,_0x267147){return _0x24929c!==_0x267147;},'RSMQY':_0x2cd71c(0x1f3),'CyJdr':_0x2cd71c(0x213),'UWjMU':function(_0x264b34,_0x184901){return _0x264b34===_0x184901;},'ShGbm':function(_0x194a40,_0xea7bac,_0x1459c0,_0x3252a5,_0x4b22dd){return _0x194a40(_0xea7bac,_0x1459c0,_0x3252a5,_0x4b22dd);},'nxQgG':_0x2cd71c(0x261),'IuyqQ':function(_0x2e0793,_0x4f6718){return _0x2e0793(_0x4f6718);},'tlEEC':function(_0x405653,_0x2e49de){return _0x405653!==_0x2e49de;},'YwFpR':_0x2cd71c(0x22e),'RiwzM':function(_0x29a4c0,_0x552588){return _0x29a4c0-_0x552588;},'FlrLm':function(_0x2dda9d,_0x45ecfd){return _0x2dda9d===_0x45ecfd;},'FBITE':_0x2cd71c(0x22c),'TgrBX':_0x2cd71c(0x286),'RyCAM':function(_0x115b20,_0x2a22a3){return _0x115b20!==_0x2a22a3;},'MOyRH':function(_0x34c827,_0x6c0e68){return _0x34c827-_0x6c0e68;},'bDFWc':_0x2cd71c(0x22b)};_0x3715c9['DHUld'](_0x5a062b,_0x3715c9[_0x2cd71c(0x200)])&&logger[_0x2cd71c(0x26a)](_0x2cd71c(0x209)+_0x242d90[_0x2cd71c(0x24a)][0x0][_0x2cd71c(0x273)]);const _0x412be6=await this[_0x2cd71c(0x20e)](_0x242d90);let _0x545758=_0x242d90,_0x3303fc=EVENT_ENDPOINT;_0x3715c9[_0x2cd71c(0x1d8)](_0x5a062b,_0x3715c9['PPiNg'])&&this[_0x2cd71c(0x27b)][_0x2cd71c(0x24d)]();const {shouldProceed:_0xa54e58,proceedWithData:_0x4a8228,proceedWithUrl:_0x289b4d}=this['requestQueueHandler'][_0x2cd71c(0x220)](_0x242d90);if(!_0xa54e58)return;else _0x4a8228&&(_0x545758=_0x4a8228,_0x3303fc=_0x289b4d);const _0x5927c8={};_0x5927c8[_0x2cd71c(0x245)]='Bearer\x20'+process[_0x2cd71c(0x23c)]['BROWSERSTACK_TESTHUB_JWT'],_0x5927c8[_0x2cd71c(0x234)]=_0x3715c9[_0x2cd71c(0x1f6)],_0x5927c8[_0x2cd71c(0x1ea)]=_0x3715c9[_0x2cd71c(0x272)];const _0x5bbf93={};_0x5bbf93[_0x2cd71c(0x251)]=_0x5927c8;const _0x4c57de=_0x5bbf93;let _0x95dd3d;try{_0x3715c9[_0x2cd71c(0x23a)](_0x5a062b,_0x3715c9[_0x2cd71c(0x200)])?(logger['debug'](_0x2cd71c(0x283)+_0x242d90?.[_0x2cd71c(0x24a)][0x0]?.[_0x2cd71c(0x273)]),_0x95dd3d=await _0x3715c9[_0x2cd71c(0x26f)](asyncAwaitNodeReq,_0x3715c9[_0x2cd71c(0x212)],_0x3303fc,_0x545758,_0x4c57de),logger['debug']('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x242d90?.[_0x2cd71c(0x24a)][0x0]?.['test_run_uuid'])):_0x95dd3d=await _0x3715c9['ShGbm'](nodeRequest,_0x3715c9['nxQgG'],_0x3303fc,_0x545758,_0x4c57de);if(_0x95dd3d[_0x2cd71c(0x1d6)][_0x2cd71c(0x22b)]){const _0x46ae8e={};_0x46ae8e[_0x2cd71c(0x262)]=_0x95dd3d[_0x2cd71c(0x1d6)]['error'];throw _0x46ae8e;}else{_0x3715c9[_0x2cd71c(0x226)](debug,(_0x3715c9['tlEEC'](_0x3303fc,this['requestQueueHandler'][_0x2cd71c(0x285)])?_0x412be6:_0x3715c9[_0x2cd71c(0x207)])+'['+_0x26ffc3+_0x2cd71c(0x218)),this[_0x2cd71c(0x27b)][_0x2cd71c(0x20d)]=Math[_0x2cd71c(0x25b)](0x0,_0x3715c9[_0x2cd71c(0x24c)](this[_0x2cd71c(0x27b)][_0x2cd71c(0x20d)],_0x3715c9['FlrLm'](_0x3303fc,_0x3715c9['FBITE'])?0x1:_0x545758[_0x2cd71c(0x219)]));const _0x5a14f7={};return _0x5a14f7['status']=_0x3715c9[_0x2cd71c(0x228)],_0x5a14f7[_0x2cd71c(0x262)]='',_0x5a14f7;}}catch(_0x59ce17){_0x59ce17['response']?_0x3715c9[_0x2cd71c(0x226)](debug,_0x2cd71c(0x225)+(_0x3715c9[_0x2cd71c(0x254)](_0x3303fc,this[_0x2cd71c(0x27b)][_0x2cd71c(0x285)])?_0x412be6:_0x3715c9['YwFpR'])+_0x2cd71c(0x1e2)+_0x59ce17[_0x2cd71c(0x26c)][_0x2cd71c(0x253)]+'\x20'+_0x59ce17['response'][_0x2cd71c(0x240)]+'\x20'+util['format'](_0x59ce17[_0x2cd71c(0x26c)]['data'])):_0x3715c9[_0x2cd71c(0x226)](debug,_0x2cd71c(0x225)+(_0x3715c9[_0x2cd71c(0x1d8)](_0x3303fc,this['requestQueueHandler']['eventUrl'])?_0x412be6:_0x3715c9['YwFpR'])+_0x2cd71c(0x1e2)+util[_0x2cd71c(0x284)](_0x59ce17));this['requestQueueHandler']['pendingUploads']=Math[_0x2cd71c(0x25b)](0x0,_0x3715c9['MOyRH'](this[_0x2cd71c(0x27b)][_0x2cd71c(0x20d)],_0x3715c9[_0x2cd71c(0x23a)](_0x3303fc,_0x3715c9[_0x2cd71c(0x274)])?0x1:_0x545758[_0x2cd71c(0x219)]));const _0x3a0c53={};return _0x3a0c53[_0x2cd71c(0x253)]=_0x3715c9[_0x2cd71c(0x1dd)],_0x3a0c53[_0x2cd71c(0x262)]=_0x59ce17[_0x2cd71c(0x262)]||(_0x59ce17[_0x2cd71c(0x26c)]?_0x59ce17['response'][_0x2cd71c(0x253)]+':'+_0x59ce17[_0x2cd71c(0x26c)][_0x2cd71c(0x240)]:_0x59ce17),_0x3a0c53;}}static async['uploadEventData'](_0x160685,_0x18533c=0x0){const _0x591472=a87_0x3d00c3,_0x1fb5bf={'VVGKD':function(_0x13097e,_0x1b047f){return _0x13097e+_0x1b047f;},'NxHKY':function(_0x242f4f,_0x5dc6ba){return _0x242f4f(_0x5dc6ba);},'MiscF':_0x591472(0x1df),'hyDpE':_0x591472(0x26d),'sWUWG':'hook_run','SzxLG':function(_0x341e0f,_0x26366f,_0x647a59){return _0x341e0f(_0x26366f,_0x647a59);},'rGjtl':_0x591472(0x20a),'BollT':function(_0x584056,_0x41acc2){return _0x584056===_0x41acc2;},'Msahd':function(_0x5adaca,_0x47ef90){return _0x5adaca!==_0x47ef90;},'hHZci':'null','ykTyQ':function(_0x39b2ce,_0x9652b){return _0x39b2ce===_0x9652b;},'HMyqd':_0x591472(0x213),'eOzbO':function(_0x3abc0d){return _0x3abc0d();},'xsPCe':function(_0x2234b2,_0x375156){return _0x2234b2(_0x375156);},'DSaEU':function(_0x56f6fe,_0x17d05d){return _0x56f6fe-_0x17d05d;},'gwDhh':_0x591472(0x22b),'Hfgzy':_0x591472(0x211),'viAwm':function(_0x36bb80,_0x21af3e){return _0x36bb80>=_0x21af3e;},'YjDNa':function(_0x47f6e4,_0x52f895){return _0x47f6e4(_0x52f895);},'pRkgg':function(_0x4b4104,_0x3634bc){return _0x4b4104!==_0x3634bc;},'QmlBN':function(_0x4873f1,_0x241b1c){return _0x4873f1-_0x241b1c;},'kAjWA':_0x591472(0x1e6),'eFBMx':_0x591472(0x21a)},_0x119edf=this['getLogTag'](_0x160685);_0x1fb5bf[_0x591472(0x1fe)](trace,_0x591472(0x250)+_0x160685[_0x591472(0x205)]+'\x27\x20'+(bsSetupHelper[_0x591472(0x1e8)](_0x160685,[_0x1fb5bf['MiscF'],_0x1fb5bf[_0x591472(0x269)]])||bsSetupHelper[_0x591472(0x1e8)](_0x160685,[_0x1fb5bf[_0x591472(0x24e)],_0x1fb5bf['hyDpE']])));if(!_0x1fb5bf['SzxLG'](shouldProcessEventForTesthub,_0x160685['event_type'],_0x1fb5bf[_0x591472(0x256)]))return;_0x1fb5bf['BollT'](_0x18533c,0x0)&&process['env'][_0x591472(0x23d)]&&_0x1fb5bf[_0x591472(0x259)](process[_0x591472(0x23c)][_0x591472(0x23d)],_0x1fb5bf[_0x591472(0x263)])&&(this['requestQueueHandler'][_0x591472(0x20d)]+=0x1);if(_0x1fb5bf[_0x591472(0x1dc)](process[_0x591472(0x23c)][_0x591472(0x277)],_0x1fb5bf[_0x591472(0x1e1)])||process['env'][_0x591472(0x210)]||_0x1fb5bf[_0x591472(0x270)](isPercyBuild)){if(_0x1fb5bf[_0x591472(0x21f)](process[_0x591472(0x23c)][_0x591472(0x23d)],_0x1fb5bf[_0x591472(0x263)])){_0x1fb5bf[_0x591472(0x243)](debug,'EXCEPTION\x20IN\x20'+_0x119edf+_0x591472(0x25e)),this[_0x591472(0x27b)][_0x591472(0x20d)]=Math['max'](0x0,_0x1fb5bf[_0x591472(0x1ed)](this['requestQueueHandler'][_0x591472(0x20d)],0x1));const _0x255f6f={};return _0x255f6f[_0x591472(0x253)]=_0x1fb5bf[_0x591472(0x276)],_0x255f6f[_0x591472(0x262)]=_0x1fb5bf['Hfgzy'],_0x255f6f;}return await this['sendEventData'](_0x160685,_0x18533c);}else{if(_0x1fb5bf[_0x591472(0x224)](_0x18533c,0x5)){_0x1fb5bf[_0x591472(0x278)](debug,'EXCEPTION\x20IN\x20'+_0x119edf+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x119edf+_0x591472(0x27f));_0x1fb5bf[_0x591472(0x266)](process['env'][_0x591472(0x23d)],_0x1fb5bf['hHZci'])&&(this[_0x591472(0x27b)]['pendingUploads']=Math['max'](0x0,_0x1fb5bf[_0x591472(0x1d4)](this[_0x591472(0x27b)][_0x591472(0x20d)],0x1)));const _0x528a57={};return _0x528a57[_0x591472(0x253)]=_0x1fb5bf[_0x591472(0x276)],_0x528a57[_0x591472(0x262)]=_0x1fb5bf[_0x591472(0x267)],_0x528a57;}else _0x1fb5bf[_0x591472(0x266)](process[_0x591472(0x23c)][_0x591472(0x277)],_0x1fb5bf[_0x591472(0x22a)])&&_0x1fb5bf[_0x591472(0x1f2)](setTimeout,()=>{const _0x32663e=_0x591472;this[_0x32663e(0x20a)](_0x160685,_0x1fb5bf[_0x32663e(0x271)](_0x18533c,0x1));},0x3e8);}}}module[a87_0x3d00c3(0x268)]=SessionHandler;